|
@ -232,7 +232,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
handleSearch() { |
|
|
handleSearch() { |
|
|
debugger |
|
|
//debugger |
|
|
this.multipleSelection = this.multipleSelection.filter(i => { |
|
|
this.multipleSelection = this.multipleSelection.filter(i => { |
|
|
return this.$refs.dis_table.selection.includes(i) |
|
|
return this.$refs.dis_table.selection.includes(i) |
|
|
}) |
|
|
}) |
|
@ -315,7 +315,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 表格1的行点击事件 |
|
|
// 表格1的行点击事件 |
|
|
handleRowClick(scope) { |
|
|
handleRowClick(scope) { |
|
|
debugger |
|
|
//debugger |
|
|
// 按钮禁用 |
|
|
// 按钮禁用 |
|
|
this.isButtonDisabled = !!(scope.status !== '99') |
|
|
this.isButtonDisabled = !!(scope.status !== '99') |
|
|
this.isButtonDisabled1 = scope.status === '99' |
|
|
this.isButtonDisabled1 = scope.status === '99' |
|
@ -331,7 +331,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 表格2的行点击事件 |
|
|
// 表格2的行点击事件 |
|
|
handleSelectionChange(selection) { |
|
|
handleSelectionChange(selection) { |
|
|
debugger |
|
|
//debugger |
|
|
if (selection.length > 0) { |
|
|
if (selection.length > 0) { |
|
|
this.isButtonDisabled = !selection.every(item => item.status === '99') |
|
|
this.isButtonDisabled = !selection.every(item => item.status === '99') |
|
|
this.isButtonDisabled1 = selection.some(item => item.status === '99') |
|
|
this.isButtonDisabled1 = selection.some(item => item.status === '99') |
|
@ -346,7 +346,7 @@ export default { |
|
|
this.previousSelection = selection |
|
|
this.previousSelection = selection |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
debugger |
|
|
//debugger |
|
|
if (!this.searchText) { |
|
|
if (!this.searchText) { |
|
|
this.cancelSelection = [] |
|
|
this.cancelSelection = [] |
|
|
this.cancelSelection = [...this.currentSelection] |
|
|
this.cancelSelection = [...this.currentSelection] |
|
@ -378,17 +378,17 @@ export default { |
|
|
row.index = rowIndex |
|
|
row.index = rowIndex |
|
|
}, |
|
|
}, |
|
|
async tableChanged(row) { |
|
|
async tableChanged(row) { |
|
|
debugger |
|
|
//debugger |
|
|
this.form.tableMater = this.currentSelection |
|
|
this.form.tableMater = this.currentSelection |
|
|
if (this.currentSelection.length > row.num) { |
|
|
if (this.currentSelection.length > row.num) { |
|
|
this.crud.notify('子卷数量超过木箱的最大装卷数!', CRUD.NOTIFICATION_TYPE.WARNING) |
|
|
this.crud.notify('子卷数量超过木箱的最大装卷数!', CRUD.NOTIFICATION_TYPE.WARNING) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
debugger |
|
|
//debugger |
|
|
this.form.checked = row.material_code |
|
|
this.form.checked = row.material_code |
|
|
this.form.sale_order_name = this.saleOrderName |
|
|
this.form.sale_order_name = this.saleOrderName |
|
|
await crudPackagerelation.updateEntityList(this.form) |
|
|
await crudPackagerelation.updateEntityList(this.form) |
|
|
debugger |
|
|
//debugger |
|
|
const queryParam = { sale_order_name: this.saleOrderName, type: '0' } |
|
|
const queryParam = { sale_order_name: this.saleOrderName, type: '0' } |
|
|
const res = crudSubpackagerelation.queryContainerization(queryParam) |
|
|
const res = crudSubpackagerelation.queryContainerization(queryParam) |
|
|
this.openParam = res.content |
|
|
this.openParam = res.content |
|
@ -398,9 +398,9 @@ export default { |
|
|
this.$emit('childEvent') |
|
|
this.$emit('childEvent') |
|
|
}, |
|
|
}, |
|
|
divStruct() { |
|
|
divStruct() { |
|
|
debugger |
|
|
//debugger |
|
|
if (this.currentSelection.length > 0 && this.$refs.dis_table.selection.length > 0) { |
|
|
if (this.currentSelection.length > 0 && this.$refs.dis_table.selection.length > 0) { |
|
|
debugger |
|
|
//debugger |
|
|
const weightList = this.currentSelection.filter(item => item.weight === '0' || item.weight === null) |
|
|
const weightList = this.currentSelection.filter(item => item.weight === '0' || item.weight === null) |
|
|
if (weightList.length > 0) { |
|
|
if (weightList.length > 0) { |
|
|
this.crud.notify('该子卷重量不能为空,请检查子卷的分切计划信息!', CRUD.NOTIFICATION_TYPE.WARNING) |
|
|
this.crud.notify('该子卷重量不能为空,请检查子卷的分切计划信息!', CRUD.NOTIFICATION_TYPE.WARNING) |
|
|