|
|
|
@ -190,16 +190,15 @@ export default { |
|
|
|
getPalletList(queryParams).then(({ data }) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.palletList = data.rows || []; |
|
|
|
//如果有些是用batchNo或者serialNo查的 这些字段要一起加进去 呼叫栈板时保存 |
|
|
|
for (let i = 0; i <this.palletList.length ; i++) { |
|
|
|
this.palletList[i].batchNo=this.formData.batchNo |
|
|
|
this.palletList[i].serialNo=this.formData.serialNo |
|
|
|
} |
|
|
|
//如果有些是用batchNo查的 这些字段要一起加进去 呼叫栈板时保存 |
|
|
|
if (this.palletList.length === 0) { |
|
|
|
this.$message.warning('未找到满足条件的栈板'); |
|
|
|
} else { |
|
|
|
this.$message.success(`找到 ${this.palletList.length} 个栈板`); |
|
|
|
} |
|
|
|
for (let i = 0; i <this.palletList.length ; i++) { |
|
|
|
this.palletList[i].batchNo=this.formData.batchNo |
|
|
|
} |
|
|
|
// 清空之前选中的栈板 |
|
|
|
this.selectedPallet = null; |
|
|
|
this.selectedPallets = []; // 清空多选选中的栈板 |
|
|
|
|