|
@ -505,7 +505,7 @@ const buttonTableClick = async (val, row) => { |
|
|
formLabelRef.value.open('create', row) |
|
|
formLabelRef.value.open('create', row) |
|
|
detatableData.tableList.map((item) => { |
|
|
detatableData.tableList.map((item) => { |
|
|
if (item.itemType=='可采购') { |
|
|
if (item.itemType=='可采购') { |
|
|
detailListTableColumns.tableFormColumns = UnplannedreceiptRequestDetailLabel.allSchemas.tableFormColumns.filter(item=>item.field != 'productionLineCodePackage') |
|
|
detailListTableColumns.tableFormColumns = UnplannedreceiptRequestDetailLabel.allSchemas.tableFormColumns.filter(item=>item.field != 'productionLineCode') |
|
|
// 修改 tableform 属性 |
|
|
// 修改 tableform 属性 |
|
|
SupplieritemApi.getSupplieritemPage({ |
|
|
SupplieritemApi.getSupplieritemPage({ |
|
|
pageSize: 10, |
|
|
pageSize: 10, |
|
@ -515,13 +515,13 @@ const buttonTableClick = async (val, row) => { |
|
|
by: 'ASC', |
|
|
by: 'ASC', |
|
|
}).then(response => { |
|
|
}).then(response => { |
|
|
detailListTableColumns.tableFormColumns.map(itemColumns => { |
|
|
detailListTableColumns.tableFormColumns.map(itemColumns => { |
|
|
if(itemColumns.field == 'supplierItemCode') { |
|
|
if(itemColumns.field == 'supplierCode') { |
|
|
item.supplierItemCode = response?.list[0]?.supplierCode |
|
|
item.supplierCode = response?.list[0]?.supplierCode |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}else if (item.itemType=='可制造') { |
|
|
}else if (item.itemType=='可制造') { |
|
|
detailListTableColumns.tableFormColumns = UnplannedreceiptRequestDetailLabel.allSchemas.tableFormColumns.filter(item => item.field != 'supplierItemCode') |
|
|
detailListTableColumns.tableFormColumns = UnplannedreceiptRequestDetailLabel.allSchemas.tableFormColumns.filter(item => item.field != 'supplierCode') |
|
|
ProductionlineitemApi.getProductionlineitemPage({ |
|
|
ProductionlineitemApi.getProductionlineitemPage({ |
|
|
pageNo: 1, |
|
|
pageNo: 1, |
|
|
itemCode: item.itemCode, |
|
|
itemCode: item.itemCode, |
|
@ -529,8 +529,8 @@ const buttonTableClick = async (val, row) => { |
|
|
by: 'ASC', |
|
|
by: 'ASC', |
|
|
}).then(response => { |
|
|
}).then(response => { |
|
|
detailListTableColumns.tableFormColumns.map(itemColumns => { |
|
|
detailListTableColumns.tableFormColumns.map(itemColumns => { |
|
|
if(itemColumns.field == 'productionLineCodePackage') { |
|
|
if(itemColumns.field == 'productionLineCode') { |
|
|
item.productionLineCodePackage = response?.list[0]?.productionLineCode |
|
|
item.productionLineCode = response?.list[0]?.productionLineCode |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
@ -930,7 +930,7 @@ const tableFormSelectOnBlur = (field, val, row, index) => { |
|
|
|
|
|
|
|
|
// 标签打印 |
|
|
// 标签打印 |
|
|
const BASE_URL = getJmreportBaseUrl() |
|
|
const BASE_URL = getJmreportBaseUrl() |
|
|
const src = ref(BASE_URL + '/jmreport/view/936912164754612224?token=' + getAccessToken()) |
|
|
const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) |
|
|
const labelPrint = async (row) => { |
|
|
const labelPrint = async (row) => { |
|
|
await UnplannedreceiptRequestDetailApi.getDetailList(row.masterId).then((res) => { |
|
|
await UnplannedreceiptRequestDetailApi.getDetailList(row.masterId).then((res) => { |
|
|
if (res.length > 0) { |
|
|
if (res.length > 0) { |
|
|