Browse Source

标签生产线代码换字段

intex_online20241224
张立 2 months ago
parent
commit
678fff52b2
  1. 2
      src/views/wms/inventoryManage/balance/balance.data.ts
  2. 10
      src/views/wms/inventoryManage/balance/index.vue

2
src/views/wms/inventoryManage/balance/balance.data.ts

@ -936,7 +936,7 @@ export const BalancePackage = useCrudSchemas(reactive<CrudSchema[]>([
},
{
label: '标签生产线代码',
field: 'productionLineCodePackage',
field: 'productionLine',
sort: 'custom',
table: {
width: 150

10
src/views/wms/inventoryManage/balance/index.vue

@ -413,8 +413,8 @@ const getLabelDetailPage = async (row, useToPackingNumber) => {
})
if (enableBuy.value == "TRUE" && enableMake.value == "FALSE") {
detailListTableColumns.tableFormColumns = BalancePackage.allSchemas.tableFormColumns.filter(item=>item.field != 'productionLineCodePackage')
delete detailListTableColumnsRules.value.productionLineCodePackage
detailListTableColumns.tableFormColumns = BalancePackage.allSchemas.tableFormColumns.filter(item=>item.field != 'productionLine')
delete detailListTableColumnsRules.value.productionLine
// tableform
await SupplieritemApi.getSupplieritemPage({
pageSize: 10,
@ -441,8 +441,8 @@ const getLabelDetailPage = async (row, useToPackingNumber) => {
by: 'ASC',
}).then(response => {
detailListTableColumns.tableFormColumns.map(itemColumns => {
if(itemColumns.field == 'productionLineCodePackage') {
row.productionLineCodePackage = response?.list[0]?.productionLineCode
if(itemColumns.field == 'productionLine') {
row.productionLine = response?.list[0]?.productionLineCode
}
})
})
@ -607,7 +607,7 @@ const pointLabel = async () => {
packUnit:detatableData1.value[0].packUnit,
packQty:detatableData1.value[0].packQty,
uom:detatableData1.value[0].uom,
productionLineCodePackage:detatableData1.value[0].productionLineCodePackage,
productionLine:detatableData1.value[0].productionLine,
supplierCode:detatableData1.value[0].supplierItemCode,
}
// const isHave = detatableData1.value.find(item => parseFloat(item.printQty) <= 0)

Loading…
Cancel
Save