|
|
@ -28,7 +28,7 @@ |
|
|
|
<div class="span-sty spanOneWidth"><span>盘库人员:</span></div> |
|
|
|
<el-form-item> |
|
|
|
<el-select v-model="recipientList" placeholder="请选择" multiple filterable style="width: 40%" @change="changeInventoryName" class="addinputwOne"> |
|
|
|
<el-option v-for="item in staff_list" :key="item.sid" :label="item.namePath" :value="item.sid"></el-option> |
|
|
|
<el-option v-for="item in staff_list" :key="item.namePath" :label="item.namePath" :value="item.sid"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
@ -52,8 +52,8 @@ |
|
|
|
<el-button class="btntopblueline" type="primary" size="mini" @click="handleAdd">盘盈</el-button> |
|
|
|
</div> |
|
|
|
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;"> |
|
|
|
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/> |
|
|
|
<el-table-column label="操作" width="100px" align="center"> |
|
|
|
<el-table-column width="60" label="序号" type="index" :index="indexMethod" align="center"/> |
|
|
|
<el-table-column label="操作" width="80" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="primary" size="mini" @click="handleAffirm(scope.row)">确认</el-button> |
|
|
|
</template> |
|
|
@ -63,17 +63,17 @@ |
|
|
|
<span>{{ scope.row.vinNo }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="存放地点" align="center"> |
|
|
|
<el-table-column label="存放地点" align="center" width="180"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.location }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="上次盘库日期" align="center" width="150px"> |
|
|
|
<el-table-column label="上次盘库日期" align="center" width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.InventoryDate }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="上次盘库人员" align="center" width="150px"> |
|
|
|
<el-table-column label="上次盘库人员" align="center" width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.inventoryName }}</span> |
|
|
|
</template> |
|
|
@ -85,6 +85,15 @@ |
|
|
|
</el-select> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="见证材料" align="center" width="180"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="primary" size="small" @click="handleLookImg(scope.row, scope.index)">查看 |
|
|
|
</el-button> |
|
|
|
<div class="upload_img"> |
|
|
|
<upload_jianchabiao ref="uploadMoreImg" v-model="scope.row.images" :limit="10" bucket="map" :upload-data="{type:'0001'}"/> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="备注" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input v-model="scope.row.remarks" placeholder="" clearable></el-input> |
|
|
@ -99,6 +108,19 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<pankuByPanYing v-show="viewState == 2" ref="divAdd" @doback="restState"/> |
|
|
|
<el-dialog title="见证材料" :visible.sync="dialogVisible"> |
|
|
|
<div v-for="(item,index) in dialogUrl" style="display:inline-block;"> |
|
|
|
<div class="dialogImg"> |
|
|
|
<el-image |
|
|
|
:key="index" |
|
|
|
:src="item" |
|
|
|
style="width: 100px; height: 100px" |
|
|
|
:preview-src-list="dialogUrl"> |
|
|
|
</el-image> |
|
|
|
<el-button class="btn_style" type="danger" size="mini" @click="handleDel(item, index)">删除</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -107,17 +129,22 @@ import req from '@/api/kucunguanli/panku' |
|
|
|
import { getUserByOrgSid, fetchByUseOrgSid, typeValues } from '@/api/cheliang/dictcommons' |
|
|
|
import pankuByPanYing from './pankuByPanYing' |
|
|
|
import Pagination from '@/components/pagination' |
|
|
|
import upload_jianchabiao from '@/components/uploadFile/upload_jianchabiao' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'pankuAdd', |
|
|
|
components: { |
|
|
|
Pagination, |
|
|
|
pankuByPanYing |
|
|
|
pankuByPanYing, |
|
|
|
upload_jianchabiao |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
viewTitle: '盘库操作', |
|
|
|
listLoading: false, |
|
|
|
dialogVisible: false, |
|
|
|
dialogUrl: [], |
|
|
|
dialogindex: '', |
|
|
|
viewState: 1, |
|
|
|
index: 0, |
|
|
|
tableKey: 0, |
|
|
@ -237,19 +264,6 @@ export default { |
|
|
|
} |
|
|
|
this.formobj.inventoryName = aa.join('、') |
|
|
|
this.formobj.inventorySid = bb.join('、') |
|
|
|
// let bb = null |
|
|
|
// this.staff_list.forEach((e) => { |
|
|
|
// if (e.sid === value) { |
|
|
|
// bb = { |
|
|
|
// name: e.name, |
|
|
|
// sid: e.sid |
|
|
|
// } |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// this.listQuery.params.inventoryName = bb.name |
|
|
|
// this.formobj.inventoryName = bb.name |
|
|
|
// this.formobj.inventorySid = bb.sid |
|
|
|
console.log(this.formobj) |
|
|
|
}, |
|
|
|
handleAdd() { |
|
|
|
this.viewState = 2 |
|
|
@ -260,6 +274,10 @@ export default { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '结果不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (row.InventoryState !== '正常' && row.images.length === 0) { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请上传见证材料' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (row.InventoryState !== '正常' && row.remarks === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请填写备注' }) |
|
|
|
return |
|
|
@ -273,6 +291,7 @@ export default { |
|
|
|
this.formobj.InventoryState = row.InventoryState |
|
|
|
this.formobj.InventoryStateKey = row.InventoryStateKey |
|
|
|
this.formobj.remarks = row.remarks |
|
|
|
this.formobj.images = row.images |
|
|
|
if (this.formobj.inventoryName === '') { |
|
|
|
this.formobj.inventorySid = '' |
|
|
|
} |
|
|
@ -302,6 +321,20 @@ export default { |
|
|
|
restState() { |
|
|
|
this.viewState = 1 |
|
|
|
}, |
|
|
|
// 查看上传图片 |
|
|
|
handleLookImg(row, index) { |
|
|
|
this.dialogVisible = true |
|
|
|
this.dialogUrl = row.images |
|
|
|
this.dialogindex = index |
|
|
|
}, |
|
|
|
handleDel(item, index) { |
|
|
|
this.dialogUrl.splice(index, 1) |
|
|
|
for (var i = 0; i < this.list[this.index].images.length; i++) { |
|
|
|
if (this.list[this.index].images[i] === item) { |
|
|
|
this.list[this.index].images.splice(i, 1) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
// 返回(===既判断) |
|
|
|
handleReturn(isreload) { |
|
|
|
if (isreload === 'true') this.$emit('reloadlist') |
|
|
@ -359,5 +392,15 @@ export default { |
|
|
|
.colOneStyle { |
|
|
|
border-right: 0px !important; |
|
|
|
} |
|
|
|
.upload_img { |
|
|
|
display: inline-block; |
|
|
|
padding: 0 10px; |
|
|
|
} |
|
|
|
.dialogImg{ |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|
|
|
|