Browse Source

修改检验申请添加页面数据选择的问题

master
zhaoxuebing 11 months ago
parent
commit
328e45f71b
  1. 20
      src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue
  2. 13
      src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/inspectRequestMain.data.ts

20
src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue

@ -71,25 +71,33 @@
// //
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
nextTick(() => { nextTick(() => {
const setV = {}
if (type == 'tableForm') { if (type == 'tableForm') {
// //
row[formField] = val[0][searchField] if(formField == 'fromLocationCode'){
row['itemCode'] = val[0]['code'] row['fromLocationCode'] = val[0]['code']
}else if(formField == 'itemCode'){
row['itemCode'] = val[0]['itemCode']
}
} else { } else {
const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
setV['purchaseReceiptRecordNumber'] = val[0]['number'] setV['purchaseReceiptRecordNumber'] = val[0]['number']
// setV['supplierCode'] = val[0]['supplierCode'] // setV['supplierCode'] = val[0]['supplierCode']
formRef.setValues(setV)
} }
formRef.setValues(setV)
}) })
} }
// //
const searchTableSuccessDetail = (formField, searchField, val, formRef) => { const searchTableSuccessDetail = (formField, searchField, val, formRef) => {
nextTick(() => { nextTick(() => {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] if(formField == 'fromLocationCode'){
setV['itemCode'] = val[0]['code'] setV['fromLocationCode'] = val[0]['code']
}else if(formField == 'itemCode'){
setV['itemCode'] = val[0]['itemCode']
}else {
setV[formField] = val[0][searchField]
}
formRef.setValues(setV) formRef.setValues(setV)
}) })
} }

13
src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/inspectRequestMain.data.ts

@ -591,19 +591,10 @@ export const InspectRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
disabled: true, disabled: true,
isInpuFocusShow: true, isInpuFocusShow: true,
earchListPlaceholder: '请选择包装号', earchListPlaceholder: '请选择包装号',
searchField: 'packingNumber', searchField: 'itemCode',
searchTitle: '库存余额信息', searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas, searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalancePagePutaway, searchPage: BalanceApi.getBalancePagePutaway
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}, {
key: 'workshopCode',
value: 'workshopCode',
isMainValue: true
}]
}, },
}, },
{ {

Loading…
Cancel
Save