|
@ -573,11 +573,10 @@ const buttonTableClick = async (val, row) => { |
|
|
// 判断物料 可采购 |
|
|
// 判断物料 可采购 |
|
|
detailListTableColumnsRules.value = cloneDeep(ProductionreturnRequestDetailLabelRules) |
|
|
detailListTableColumnsRules.value = cloneDeep(ProductionreturnRequestDetailLabelRules) |
|
|
if (res.list[0].enableBuy == "TRUE") { |
|
|
if (res.list[0].enableBuy == "TRUE") { |
|
|
detailListTableColumns.tableFormColumns = ProductionreturnRequestDetailLabel.allSchemas.tableFormColumns.filter(item=>item.field != 'productionLineCodePackage') |
|
|
detailListTableColumns.tableFormColumns = ProductionreturnRequestDetailLabel.allSchemas.tableFormColumns.filter(item=>item.field != 'productionLineCode') |
|
|
delete detailListTableColumnsRules.value.productionLineCodePackage |
|
|
|
|
|
// 修改 tableform 属性 |
|
|
// 修改 tableform 属性 |
|
|
detailListTableColumns.tableFormColumns.map(itemColumns => { |
|
|
detailListTableColumns.tableFormColumns.map(itemColumns => { |
|
|
if(itemColumns.field == 'supplierItemCode') { |
|
|
if(itemColumns.field == 'supplierCode') { |
|
|
SupplieritemApi.getSupplieritemPage({ |
|
|
SupplieritemApi.getSupplieritemPage({ |
|
|
pageSize: 10, |
|
|
pageSize: 10, |
|
|
pageNo: 1, |
|
|
pageNo: 1, |
|
@ -585,7 +584,7 @@ const buttonTableClick = async (val, row) => { |
|
|
sort: '', |
|
|
sort: '', |
|
|
by: 'ASC', |
|
|
by: 'ASC', |
|
|
}).then(response => { |
|
|
}).then(response => { |
|
|
item.supplierItemCode = response.list[0].supplierCode |
|
|
item.supplierCode = response.list[0].supplierCode |
|
|
formLabelRef.value.formLoading = false |
|
|
formLabelRef.value.formLoading = false |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
@ -594,17 +593,16 @@ const buttonTableClick = async (val, row) => { |
|
|
// 判断物料 可制造 |
|
|
// 判断物料 可制造 |
|
|
if (res.list[0].enableMake == "TRUE") { |
|
|
if (res.list[0].enableMake == "TRUE") { |
|
|
// 修改 tableform 属性 |
|
|
// 修改 tableform 属性 |
|
|
detailListTableColumns.tableFormColumns = ProductionreturnRequestDetailLabel.allSchemas.tableFormColumns.filter(item=>item.field != 'supplierItemCode') |
|
|
detailListTableColumns.tableFormColumns = ProductionreturnRequestDetailLabel.allSchemas.tableFormColumns.filter(item=>item.field != 'supplierCode') |
|
|
delete detailListTableColumnsRules.value.supplierItemCode |
|
|
|
|
|
detailListTableColumns.tableFormColumns.map(itemColumns => { |
|
|
detailListTableColumns.tableFormColumns.map(itemColumns => { |
|
|
if(itemColumns.field == 'productionLineCodePackage') { |
|
|
if(itemColumns.field == 'productionLineCode') { |
|
|
ProductionlineitemApi.getProductionlineitemPage({ |
|
|
ProductionlineitemApi.getProductionlineitemPage({ |
|
|
pageNo: 1, |
|
|
pageNo: 1, |
|
|
itemCode: item.itemCode, |
|
|
itemCode: item.itemCode, |
|
|
sort: '', |
|
|
sort: '', |
|
|
by: 'ASC', |
|
|
by: 'ASC', |
|
|
}).then(response => { |
|
|
}).then(response => { |
|
|
item.supplierItemCode = response.list[0].supplierCode |
|
|
item.productionLineCode = response.list[0].productionLineCode |
|
|
formLabelRef.value.formLoading = false |
|
|
formLabelRef.value.formLoading = false |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
@ -729,7 +727,7 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r |
|
|
if (array1.length > 0) { |
|
|
if (array1.length > 0) { |
|
|
await PackageApi.batchPrintingLable(array1.map(item1=>item1.number).join(',')).then(res => { |
|
|
await PackageApi.batchPrintingLable(array1.map(item1=>item1.number).join(',')).then(res => { |
|
|
console.log(res) |
|
|
console.log(res) |
|
|
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) |
|
|
const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) |
|
|
window.open(src.value + '&asn_number=' + res) |
|
|
window.open(src.value + '&asn_number=' + res) |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
console.log(err) |
|
|
console.log(err) |
|
@ -908,7 +906,7 @@ const handlePoint = async (row) => { |
|
|
}).then((res) => { |
|
|
}).then((res) => { |
|
|
if(res.list.length > 0) { |
|
|
if(res.list.length > 0) { |
|
|
isCreateLabel.value = true |
|
|
isCreateLabel.value = true |
|
|
if (res.list[0].supplierItemCode != null) { |
|
|
if (res.list[0].supplierCode != null) { |
|
|
labelType.value = 'cg' |
|
|
labelType.value = 'cg' |
|
|
} else if(res.list[0].productionLineCode != null){ |
|
|
} else if(res.list[0].productionLineCode != null){ |
|
|
labelType.value = 'zz' |
|
|
labelType.value = 'zz' |
|
|