Browse Source

HL-4976问题修改

linshi20240813
zhaoxuebing 4 months ago
parent
commit
64b1853d8e
  1. 2
      src/api/wms/balance/index.ts
  2. 4
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
  3. 173
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts

2
src/api/wms/balance/index.ts

@ -58,7 +58,7 @@ export const getBalancePageReturn= async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/balance/senior', data }) return await request.post({ url: '/wms/balance/seniorReturn', data })
} else { } else {
return await request.get({ url: `/wms/balance/pageReturn`, params }) return await request.get({ url: `/wms/balance/pageReturn`, params })
} }

4
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

@ -304,6 +304,8 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro
tableData.value.push(newRow) tableData.value.push(newRow)
} }
}) })
row['fromLocationCode'] = val[0]['locationCode']
row['batch'] = val[0]['batch']
// row['inventoryBalance'] = val[0]['qty'] // // row['inventoryBalance'] = val[0]['qty'] //
}else{ }else{
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
@ -450,6 +452,8 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef) => {
} else if (formField == 'packingNumber'){ } else if (formField == 'packingNumber'){
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
setV['inventoryBalance'] = val[0]['qty'] setV['inventoryBalance'] = val[0]['qty']
setV['batch'] = val[0]['batch']
setV['fromLocationCode'] = val[0]['locationCode']
} }
else { else {
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]

173
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts

@ -1024,70 +1024,73 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
tableForm:{ tableForm:{
enterSearch: true, disabled:true
// labelMessage: '信息提示说明!!!',
isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择从库位代码',
searchField: 'code',
searchTitle: '库位代码信息',
searchAllSchemas: Location.allSchemas,
searchPage: LocationApi.getLocationListByAreaAndBusinesstype,
searchCondition: [{
key: 'businessType',
value: 'PurchaseReturn',
message: '请填写业务类型',
isMainValue: false
},{
key: 'isIn',
value: 'out',
message: '',
isMainValue: false
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
// form: { // tableForm: {
// componentProps:{ // enterSearch: true,
// disabled:true // // labelMessage: '信息提示说明!!!',
// } // isInpuFocusShow: true, // 开启查询弹窗
// searchListPlaceholder: '请选择从库位代码',
// searchField: 'code',
// searchTitle: '库位代码信息',
// searchAllSchemas: Location.allSchemas,
// searchPage: LocationApi.getLocationListByAreaAndBusinesstype,
// searchCondition: [{
// key: 'businessType',
// value: 'PurchaseReturn',
// message: '请填写业务类型',
// isMainValue: false
// },{
// key: 'isIn',
// value: 'out',
// message: '',
// isMainValue: false
// }],
// verificationParams: [{
// key: 'code',
// action: '==',
// value: '',
// isMainValue: false,
// isSearch: true,
// isFormModel: true,
// }], // 失去焦点校验参数
// }, // },
form: { form: {
// labelMessage: '信息提示说明!!!',
componentProps:{ componentProps:{
enterSearch: true, disabled:true
isSearchList: true,
searchListPlaceholder: '请选择从库位代码',
searchField: 'code',
searchTitle: '库位代码信息',
searchAllSchemas: Location.allSchemas,
searchPage: LocationApi.getLocationListByAreaAndBusinesstype,
searchCondition: [{
key: 'businessType',
value: 'PurchaseReturn',
message: '请填写业务类型',
isMainValue: false
},{
key: 'isIn',
value: 'out',
message: '',
isMainValue: false
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
}, },
// form:{
// // labelMessage: '信息提示说明!!!',
// componentProps: {
// enterSearch: true,
// isSearchList: true,
// searchListPlaceholder: '请选择从库位代码',
// searchField: 'code',
// searchTitle: '库位代码信息',
// searchAllSchemas: Location.allSchemas,
// searchPage: LocationApi.getLocationListByAreaAndBusinesstype,
// searchCondition: [{
// key: 'businessType',
// value: 'PurchaseReturn',
// message: '请填写业务类型',
// isMainValue: false
// },{
// key: 'isIn',
// value: 'out',
// message: '',
// isMainValue: false
// }],
// verificationParams: [{
// key: 'code',
// action: '==',
// value: '',
// isMainValue: false,
// isSearch: true,
// isFormModel: true,
// }], // 失去焦点校验参数
// }
// },
hiddenInMain: true, hiddenInMain: true,
isTable: false, isTable: false,
}, },
@ -1113,7 +1116,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
searchField: 'packingNumber', searchField: 'packingNumber',
searchTitle: '库存余额信息', // 查询弹窗标题 searchTitle: '库存余额信息', // 查询弹窗标题
searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类 searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类
searchPage: BalanceApi.getBalancePage, searchPage: BalanceApi.getBalancePageReturn,
searchCondition: [{ searchCondition: [{
key: 'itemCode', key: 'itemCode',
value: 'itemCode', value: 'itemCode',
@ -1121,21 +1124,16 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
isTableRowValue: true, //查询当前searchTable表中行数据的值 isTableRowValue: true, //查询当前searchTable表中行数据的值
required:true, required:true,
isMainValue:true isMainValue:true
},{ },
key: 'batch', // {
value: 'batch', // key: 'batch',
message: '请填写批次', // value: 'batch',
isTableRowValue: true, //查询当前searchTable表中行数据的值 // message: '请填写批次',
// required:true, // isTableRowValue: true, //查询当前searchTable表中行数据的值
isMainValue:true // // required:true,
},{ // isMainValue:true
key: 'locationCode', // }
value: 'fromLocationCode', ],
message: '请选择从库位代码',
isTableRowValue: true, //查询当前searchTable表中行数据的值
required:true,
isMainValue:true
}],
verificationParams: [{ verificationParams: [{
key: 'packingNumber', key: 'packingNumber',
action: '==', action: '==',
@ -1155,7 +1153,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
searchField: 'packingNumber', searchField: 'packingNumber',
searchTitle: '库存余额信息', // 查询弹窗标题 searchTitle: '库存余额信息', // 查询弹窗标题
searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类 searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类
searchPage: BalanceApi.getBalancePage, searchPage: BalanceApi.getBalancePageReturn,
searchCondition: [{ searchCondition: [{
key: 'itemCode', key: 'itemCode',
value: 'itemCode', value: 'itemCode',
@ -1163,21 +1161,16 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
isTableRowValue: true, //查询当前searchTable表中行数据的值 isTableRowValue: true, //查询当前searchTable表中行数据的值
required:true, required:true,
isMainValue:false isMainValue:false
},{ },
key: 'batch', // {
value: 'batch', // key: 'batch',
message: '请填写批次', // value: 'batch',
isTableRowValue: true, //查询当前searchTable表中行数据的值 // message: '请填写批次',
required:true, // isTableRowValue: true, //查询当前searchTable表中行数据的值
isMainValue:false // required:true,
},{ // isMainValue:false
key: 'locationCode', // }
value: 'fromLocationCode', ],
message: '请选择从库位代码',
isTableRowValue: true, //查询当前searchTable表中行数据的值
required:true,
isMainValue:false
}],
verificationParams: [{ verificationParams: [{
key: 'packingNumber', key: 'packingNumber',
action: '==', action: '==',

Loading…
Cancel
Save