Browse Source

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

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

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

@ -71,25 +71,33 @@
//
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
nextTick(() => {
const setV = {}
if (type == 'tableForm') {
//
row[formField] = val[0][searchField]
row['itemCode'] = val[0]['code']
if(formField == 'fromLocationCode'){
row['fromLocationCode'] = val[0]['code']
}else if(formField == 'itemCode'){
row['itemCode'] = val[0]['itemCode']
}
} else {
const setV = {}
setV[formField] = val[0][searchField]
setV['purchaseReceiptRecordNumber'] = val[0]['number']
// setV['supplierCode'] = val[0]['supplierCode']
formRef.setValues(setV)
}
formRef.setValues(setV)
})
}
//
const searchTableSuccessDetail = (formField, searchField, val, formRef) => {
nextTick(() => {
const setV = {}
if(formField == 'fromLocationCode'){
setV['fromLocationCode'] = val[0]['code']
}else if(formField == 'itemCode'){
setV['itemCode'] = val[0]['itemCode']
}else {
setV[formField] = val[0][searchField]
setV['itemCode'] = val[0]['code']
}
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,
isInpuFocusShow: true,
earchListPlaceholder: '请选择包装号',
searchField: 'packingNumber',
searchField: 'itemCode',
searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalancePagePutaway,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}, {
key: 'workshopCode',
value: 'workshopCode',
isMainValue: true
}]
searchPage: BalanceApi.getBalancePagePutaway
},
},
{

Loading…
Cancel
Save