|
|
|
|
@ -35,7 +35,7 @@ |
|
|
|
|
</template> |
|
|
|
|
<template #location="scope"> |
|
|
|
|
<el-button type="text" @click="editRow(scope.row, scope.row.$index)">{{ |
|
|
|
|
scope.row.location == ''|| scope.row.location == null? '请选择库位' : scope.row.location |
|
|
|
|
scope.row.location == '' || scope.row.location == null ? '请选择库位' : scope.row.location |
|
|
|
|
}}</el-button> |
|
|
|
|
</template> |
|
|
|
|
</avue-crud> |
|
|
|
|
@ -87,7 +87,7 @@ export default { |
|
|
|
|
calcHeight: 32, |
|
|
|
|
simplePage: false, |
|
|
|
|
searchShow: true, |
|
|
|
|
searchMenuSpan: 6, |
|
|
|
|
searchMenuSpan: 12, |
|
|
|
|
searchIcon: true, |
|
|
|
|
searchIndex: 3, |
|
|
|
|
tree: false, |
|
|
|
|
@ -101,7 +101,7 @@ export default { |
|
|
|
|
addBtn: false, |
|
|
|
|
labelWidth: 140, |
|
|
|
|
menu: true, |
|
|
|
|
menuWidth: 150, |
|
|
|
|
menuWidth: 120, |
|
|
|
|
dialogWidth: 1200, |
|
|
|
|
dialogClickModal: false, |
|
|
|
|
searchEnter: true, |
|
|
|
|
@ -144,75 +144,74 @@ export default { |
|
|
|
|
prop: 'goodsName', |
|
|
|
|
span: 8, |
|
|
|
|
overflow: true, |
|
|
|
|
width: 150, |
|
|
|
|
width: 120, |
|
|
|
|
search: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '型号/牌号', |
|
|
|
|
prop: 'materialModel', |
|
|
|
|
label: '出库库位', |
|
|
|
|
prop: 'location', |
|
|
|
|
span: 8, |
|
|
|
|
width: 100, |
|
|
|
|
overflow: true, |
|
|
|
|
width: 120, |
|
|
|
|
search: false, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '规格', |
|
|
|
|
prop: 'specifications', |
|
|
|
|
label: '库房', |
|
|
|
|
prop: 'shName', |
|
|
|
|
span: 8, |
|
|
|
|
overflow: true, |
|
|
|
|
width: 120, |
|
|
|
|
search: false, |
|
|
|
|
width: 100, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '质量编号', |
|
|
|
|
prop: 'checkCode', |
|
|
|
|
label: '批次号', |
|
|
|
|
prop: 'piNo', |
|
|
|
|
span: 8, |
|
|
|
|
overflow: true, |
|
|
|
|
width: 150, |
|
|
|
|
width: 120, |
|
|
|
|
search: false, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '出库库位', |
|
|
|
|
prop: 'location', |
|
|
|
|
label: '出库数量', |
|
|
|
|
prop: 'currentOutQty', |
|
|
|
|
span: 8, |
|
|
|
|
overflow: true, |
|
|
|
|
width: 150, |
|
|
|
|
width: 120, |
|
|
|
|
search: false, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '库房', |
|
|
|
|
prop: 'shName', |
|
|
|
|
label: '领料人', |
|
|
|
|
prop: 'pickerName', |
|
|
|
|
span: 8, |
|
|
|
|
overflow: true, |
|
|
|
|
width: 150, |
|
|
|
|
width: 120, |
|
|
|
|
search: false, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
label: '批次号', |
|
|
|
|
prop: 'piNo', |
|
|
|
|
label: '型号/牌号', |
|
|
|
|
prop: 'materialModel', |
|
|
|
|
span: 8, |
|
|
|
|
width: 100, |
|
|
|
|
overflow: true, |
|
|
|
|
width: 150, |
|
|
|
|
search: false, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '出库数量', |
|
|
|
|
prop: 'currentOutQty', |
|
|
|
|
label: '规格', |
|
|
|
|
prop: 'specifications', |
|
|
|
|
span: 8, |
|
|
|
|
overflow: true, |
|
|
|
|
width: 150, |
|
|
|
|
search: false, |
|
|
|
|
width: 100, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '领料人', |
|
|
|
|
prop: 'pickerName', |
|
|
|
|
label: '质量编号', |
|
|
|
|
prop: 'checkCode', |
|
|
|
|
span: 8, |
|
|
|
|
overflow: true, |
|
|
|
|
width: 150, |
|
|
|
|
search: false, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
label: '总库存', |
|
|
|
|
prop: 'currentStock', |
|
|
|
|
@ -255,28 +254,6 @@ export default { |
|
|
|
|
search: false, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
label: '提请人', |
|
|
|
|
prop: 'crManName', |
|
|
|
|
span: 8, |
|
|
|
|
overflow: true, |
|
|
|
|
width: 100, |
|
|
|
|
search: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '提请日期', |
|
|
|
|
prop: 'crDate', |
|
|
|
|
type: 'date', |
|
|
|
|
valueFormat: 'YYYY-MM-DD', |
|
|
|
|
format: 'YYYY-MM-DD', |
|
|
|
|
searchRange: true, |
|
|
|
|
startPlaceholder: '开始时间', |
|
|
|
|
endPlaceholder: '结束时间', |
|
|
|
|
span: 8, |
|
|
|
|
overflow: true, |
|
|
|
|
search: true, |
|
|
|
|
width: 180, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '备注', |
|
|
|
|
prop: 'memo', |
|
|
|
|
@ -353,8 +330,8 @@ export default { |
|
|
|
|
crId: row.id, |
|
|
|
|
currentOutQty: row.currentOutQty, |
|
|
|
|
rlsId: row.rlsId, |
|
|
|
|
pickerName:row.pickerName, |
|
|
|
|
picker:row.picker |
|
|
|
|
pickerName: row.pickerName, |
|
|
|
|
picker: row.picker, |
|
|
|
|
}, |
|
|
|
|
]; |
|
|
|
|
batchIssue(query).then(res => { |
|
|
|
|
@ -412,6 +389,8 @@ export default { |
|
|
|
|
crId: item.id, // 提请单明细ID |
|
|
|
|
currentOutQty: item.currentOutQty, // 本次出库数量 |
|
|
|
|
rlsId: item.rlsId, // 库位库存ID |
|
|
|
|
pickerName: row.pickerName, |
|
|
|
|
picker: row.picker, |
|
|
|
|
})); |
|
|
|
|
this.$confirm(`确定对选中的 ${this.selectionList.length} 条数据进行出库操作?`, { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
@ -427,16 +406,17 @@ export default { |
|
|
|
|
}, |
|
|
|
|
closeDialog(val) { |
|
|
|
|
this.editDialog = false; |
|
|
|
|
this.data[val.index].shId = val.shId; |
|
|
|
|
this.data[val.index].shName = val.shName; |
|
|
|
|
this.data[val.index].slId = val.slId; |
|
|
|
|
this.data[val.index].location = val.location; |
|
|
|
|
this.data[val.index].piNo = val.piNo; |
|
|
|
|
this.data[val.index].currentOutQty = val.currentOutQty; |
|
|
|
|
this.data[val.index].rlsId = val.id; |
|
|
|
|
this.data[val.index].picker = val.picker |
|
|
|
|
this.data[val.index].pickerName = val.pickerName |
|
|
|
|
|
|
|
|
|
if (val.shId) { |
|
|
|
|
this.data[val.index].shId = val.shId; |
|
|
|
|
this.data[val.index].shName = val.shName; |
|
|
|
|
this.data[val.index].slId = val.slId; |
|
|
|
|
this.data[val.index].location = val.location; |
|
|
|
|
this.data[val.index].piNo = val.piNo; |
|
|
|
|
this.data[val.index].currentOutQty = val.currentOutQty; |
|
|
|
|
this.data[val.index].rlsId = val.id; |
|
|
|
|
this.data[val.index].picker = val.picker; |
|
|
|
|
this.data[val.index].pickerName = val.pickerName; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onLoad() { |
|
|
|
|
this.loading = true; |
|
|
|
|
@ -455,7 +435,7 @@ export default { |
|
|
|
|
}).then(res => { |
|
|
|
|
this.data = res.data.data.records; |
|
|
|
|
this.data.forEach((item, index) => { |
|
|
|
|
item.currentOutQty = item.pendingApplyQty; |
|
|
|
|
// item.currentOutQty = item.pendingApplyQty; |
|
|
|
|
}); |
|
|
|
|
this.page.total = res.data.data.total; |
|
|
|
|
this.loading = false; |
|
|
|
|
|