Browse Source

BUG修改

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

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

@ -76,21 +76,27 @@
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
nextTick(async () => { nextTick(async () => {
if (type == 'tableForm') { if (type == 'tableForm') {
// //
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
row['itemCode'] = val[0]['code'] row['itemCode'] = val[0]['code']
row['poNumber'] = val[0]['number'] row['poNumber'] = val[0]['number']
row['poLine'] = val[0]['lineNumber'] row['poLine'] = val[0]['lineNumber']
await PurchaseDetailApi.getPurchaseDetailPage({ await PurchaseDetailApi.getPurchaseDetailPage({
number: row['poNumber'], number: row['poNumber'],
poLine: row['lineNumber'], available: 'TRUE',
// poLine: row['lineNumber'],
}).then(res => { }).then(res => {
if (res.list.length == 1) { // if (formField == 'poLine') {
row['itemCode'] = res.list[0].itemCode // row['itemCode'] = res.list[0].itemCode
row['poLine'] = res.list[0].lineNumber // row['uom'] = res.list[0].uom
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 { } else {
const setV = {} const setV = {}

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

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

Loading…
Cancel
Save