|
|
|
|
@ -164,7 +164,7 @@ export default { |
|
|
|
|
column: [ |
|
|
|
|
{ |
|
|
|
|
label: '需求单号', |
|
|
|
|
prop: 'partCode', |
|
|
|
|
prop: 'mdCode', |
|
|
|
|
search: false, |
|
|
|
|
sortable: true, |
|
|
|
|
span: 12, |
|
|
|
|
@ -246,6 +246,21 @@ export default { |
|
|
|
|
headerAlign: 'center', |
|
|
|
|
align: 'center', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
// STATUS_WAITING("待出库", 10000), |
|
|
|
|
// STATUS_OUT_STORE("已出库", 10001), |
|
|
|
|
// STATUS_DONE("完成", 10002), |
|
|
|
|
// STATUS_CLOSE("关闭", 10003), |
|
|
|
|
label:'状态', |
|
|
|
|
// type:"select", |
|
|
|
|
prop:"statusName", |
|
|
|
|
// dicData:[ |
|
|
|
|
// {label:'待出库',value:10000}, |
|
|
|
|
// {label:'已出库',value:10001}, |
|
|
|
|
// {label:'完成',value:10002}, |
|
|
|
|
// {label:'关闭',value:10003} |
|
|
|
|
// ] |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
@ -265,6 +280,11 @@ export default { |
|
|
|
|
this.$message.error('请至少选择一条数据!'); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
let tmp = this.selectionList.map(item => item.statusName != '待出库'); |
|
|
|
|
if(tmp){ |
|
|
|
|
this.$message.error("请选择状态为【待出库】的数据") |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
this.$confirm('确定将选择数据批量关闭?', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
@ -273,13 +293,14 @@ export default { |
|
|
|
|
.then(() => { |
|
|
|
|
const ids = this.selectionList.map(item => item.id).join(','); |
|
|
|
|
closeBatchs({ ids }).then(res => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
if (res.data.code === 200) { |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '操作成功!', |
|
|
|
|
message: '关闭成功!', |
|
|
|
|
}); |
|
|
|
|
this.onLoad(); |
|
|
|
|
} |
|
|
|
|
this.onLoad(); |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// this.onLoad(this.page); |
|
|
|
|
|