|
|
|
|
@ -221,7 +221,7 @@ export default { |
|
|
|
|
// }, |
|
|
|
|
{ |
|
|
|
|
label: '订单需求量', |
|
|
|
|
prop: 'quantity', |
|
|
|
|
prop: 'demandNum', |
|
|
|
|
search: false, |
|
|
|
|
sortable: true, |
|
|
|
|
width:120, |
|
|
|
|
@ -249,28 +249,28 @@ export default { |
|
|
|
|
// }, |
|
|
|
|
{ |
|
|
|
|
label: '关联订单个数', |
|
|
|
|
prop: 'linkOrderIds', |
|
|
|
|
prop: 'linkOrderNum', |
|
|
|
|
search: false, |
|
|
|
|
sortable: true, |
|
|
|
|
span: 12, |
|
|
|
|
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} |
|
|
|
|
// ] |
|
|
|
|
} |
|
|
|
|
// { |
|
|
|
|
// // 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} |
|
|
|
|
// // ] |
|
|
|
|
// } |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
@ -290,11 +290,11 @@ export default { |
|
|
|
|
this.$message.error('请至少选择一条数据!'); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
let tmp = this.selectionList.map(item => item.statusName != '待出库'); |
|
|
|
|
if(tmp){ |
|
|
|
|
this.$message.error("请选择状态为【待出库】的数据") |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
// let tmp = this.selectionList.map(item => item.statusName != '待出库'); |
|
|
|
|
// if(tmp){ |
|
|
|
|
// this.$message.error("请选择状态为【待出库】的数据") |
|
|
|
|
// return |
|
|
|
|
// } |
|
|
|
|
this.$confirm('确定将选择数据批量关闭?', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
@ -302,7 +302,7 @@ export default { |
|
|
|
|
}) |
|
|
|
|
.then(() => { |
|
|
|
|
const ids = this.selectionList.map(item => item.id).join(','); |
|
|
|
|
closeBatchs({ ids }).then(res => { |
|
|
|
|
closeBatchs(ids).then(res => { |
|
|
|
|
if (res.data.code === 200) { |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
|