Browse Source

bug修改

master
yejiaxing 11 months ago
parent
commit
71b036a564
  1. 6
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  2. 55
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

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

@ -76,6 +76,7 @@
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']
@ -83,13 +84,16 @@
row['poLine'] = val[0]['lineNumber'] row['poLine'] = val[0]['lineNumber']
await PurchaseDetailApi.getPurchaseDetailPage({ await PurchaseDetailApi.getPurchaseDetailPage({
number: row['poNumber'], number: row['poNumber'],
lineNumber: row['poLine'], poLine: row['lineNumber'],
}).then(res => { }).then(res => {
if (res.list.length == 1) { if (res.list.length == 1) {
row['itemCode'] = res.list[0].itemCode row['itemCode'] = res.list[0].itemCode
row['poLine'] = res.list[0].lineNumber
row['uom'] = res.list[0].uom
} }
}) })
} else { } else {
console.log(456)
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
formRef.setValues(setV) formRef.setValues(setV)

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

@ -292,51 +292,20 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '订单行', label: '订单行',
field: 'poLine', field: 'poLine',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm: { form: {
isInpuFocusShow: true, componentProps: {
searchListPlaceholder: '请选择订单行', disabled: true
searchField: 'lineNumber', }
searchTitle: '采购订单信息', },
searchAllSchemas: PurchaseDetail.allSchemas, tableForm: {
searchPage: PurchaseDetailApi.getPurchaseDetailPage, disabled: true
searchCondition: [{ }
key: 'number',
value: 'number',
isMainValue: true
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true,
searchListPlaceholder: '请选择订单行',
searchField: 'lineNumber',
searchTitle: '采购订单信息',
searchAllSchemas: PurchaseDetail.allSchemas,
searchPage: PurchaseDetailApi.getPurchaseDetailPage,
searchCondition: [{
key: 'number',
value: 'poNumber',
isMainValue: true
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
}
}, },
{ {
label: '单据号', label: '单据号11',
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
isTableForm: false, isTableForm: false,

Loading…
Cancel
Save