Browse Source

YT-681供应商发货申请,生成标签时包装数量是0无法修改箱规格数量

intex_online20241111
zhang_li 3 weeks ago
parent
commit
6082bf23f8
  1. 30
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

30
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -723,6 +723,21 @@ const getGenerateLabelList = async (row) => {
if (obj) {
item.packUnit = obj.packUnit
item.packQty = obj.packQty
if (!item.packQty) {
//
SupplierdeliverRequestDetailLabel.allSchemas.tableFormColumns.forEach(item => {
if (item.field == 'packQty') {
item.tableForm.disabled = false
}
})
} else {
//
SupplierdeliverRequestDetailLabel.allSchemas.tableFormColumns.forEach(item => {
if (item.field == 'packQty') {
item.tableForm.disabled = true
}
})
}
} else {
item.packUnit = ''
item.packQty = ''
@ -775,6 +790,21 @@ const formSelectChangeLabel = (field, val, row) => {
let obj = row.boxPackaging.find((item) => item.packUnit == val)
if (obj) {
row.packQty = obj.packQty
//
if (!row.packQty) {
SupplierdeliverRequestDetailLabel.allSchemas.tableFormColumns.forEach(item => {
if (item.field == 'packQty') {
item.tableForm.disabled = false
}
})
} else {
//
SupplierdeliverRequestDetailLabel.allSchemas.tableFormColumns.forEach(item => {
if (item.field == 'packQty') {
item.tableForm.disabled = true
}
})
}
//
const params1 = {
itemCode: row.itemCode,

Loading…
Cancel
Save