Browse Source

BUG修改

master
yejiaxing 11 months ago
parent
commit
875ec848ed
  1. 22
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  2. 5
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

22
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -76,21 +76,27 @@
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
nextTick(async () => {
if (type == 'tableForm') {
//
row[formField] = val[0][searchField]
row['itemCode'] = val[0]['code']
row['poNumber'] = val[0]['number']
row['poLine'] = val[0]['lineNumber']
await PurchaseDetailApi.getPurchaseDetailPage({
number: row['poNumber'],
poLine: row['lineNumber'],
available: 'TRUE',
// poLine: row['lineNumber'],
}).then(res => {
if (res.list.length == 1) {
row['itemCode'] = res.list[0].itemCode
row['poLine'] = res.list[0].lineNumber
row['uom'] = res.list[0].uom
}
// if (formField == 'poLine') {
// row['itemCode'] = res.list[0].itemCode
// row['uom'] = res.list[0].uom
// }
if (res) tableData.value = res.list;
tableData.value.forEach(item => {
item.poNumber = item.number
item.poLine = item.lineNumber
item.planQty =item.orderQty-item.plannedQty
})
})
} else {
const setV = {}
@ -112,7 +118,7 @@
lineNumber: setV['poLine'],
}).then(res => {
if (res.list.length == 1) {
//
//
setV['itemCode'] = res.list[0].itemCode
}
})

5
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

@ -279,8 +279,6 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
value: 2,
isMainValue: false
}
]
},
form: {
@ -478,9 +476,8 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
},
tableForm: {
type: 'Select',
default: 'TRUE',
inactiveValue: 'FALSE',
activeValue: 'TRUE'
disabled: true
},
form: {
component: 'Switch',

Loading…
Cancel
Save