Browse Source

采购退货申请bug修复

hella_online_20240829
TengXF 2 months ago
parent
commit
59ac86f297
  1. 9
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
  2. 79
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts

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

@ -418,7 +418,8 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef) => {
setV['singlePrice'] = val[0]['singlePrice']
setV['amount'] = val[0]['amount']
setV['projectCode'] = val[0]['projectCode']
setV['packingNumber'] = val[0]['packingNumber']
// setV['packingNumber'] = val[0]['packingNumber']
// setV['inventoryBalance'] = val[0]['qty']
if (formField == 'itemCode') {
setV['batch'] = val[0]['toBatch']
@ -428,7 +429,11 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef) => {
// setV['fromLocationCode'] = val[0]['fromLocationCode']
// setV['toLocationCode'] = val[0]['toLocationCode']
}
} else {
} else if (formField == 'packingNumber'){
setV[formField] = val[0][searchField]
setV['inventoryBalance'] = val[0]['qty']
}
else {
setV[formField] = val[0][searchField]
}
formRef.setValues(setV)

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

@ -780,6 +780,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
isTableForm:false,
isTable:false,
hiddenInMain: true,
isForm: false,
tableForm:{
disabled:true
},
@ -799,6 +800,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
isTableForm:false,
isTable:false,
hiddenInMain: true,
isForm: false,
tableForm:{
disabled:true
},
@ -834,6 +836,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
hiddenInMain: true,
isTableForm: false,
isTable: false,
isForm: false,
tableForm:{
disabled:true
},
@ -856,6 +859,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
},
isTableForm: false,
isTable: false,
isForm: false,
form: {
componentProps:{
disabled:true
@ -939,11 +943,6 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
form: {
componentProps:{
disabled:true
}
},
tableForm:{
// labelMessage: '信息提示说明!!!',
isInpuFocusShow: true, // 开启查询弹窗
@ -964,6 +963,33 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
isMainValue: false
}]
},
// form: {
// componentProps:{
// disabled:true
// }
// },
form:{
// labelMessage: '信息提示说明!!!',
componentProps: {
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
}]
}
},
hiddenInMain: true,
isTable: false,
},
@ -976,9 +1002,41 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
},
hiddenInMain: true,
isTable: false,
// form: {
// componentProps:{
// disabled: true,
// }
// },
form: {
componentProps:{
disabled:true
isSearchList: true,
searchListPlaceholder: '请选择包装号',
searchField: 'packingNumber',
searchTitle: '库存余额信息', // 查询弹窗标题
searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类
searchPage: BalanceApi.getBalancePage,
searchCondition: [{
key: 'itemCode',
value: 'itemCode',
message: '请填写物料代码',
isTableRowValue: true, //查询当前searchTable表中行数据的值
required:true,
isMainValue:true
},{
key: 'batch',
value: 'batch',
message: '请填写批次',
isTableRowValue: true, //查询当前searchTable表中行数据的值
// required:true,
isMainValue:true
},{
key: 'locationCode',
value: 'fromLocationCode',
message: '请选择从库位代码',
isTableRowValue: true, //查询当前searchTable表中行数据的值
required:true,
isMainValue:true
}]
}
},
tableForm:{
@ -1024,6 +1082,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
form: {
component: 'InputNumber',
componentProps: {
disabled: true,
min: 0,
precision: 6
}
@ -1036,6 +1095,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
},
hiddenInMain: true,
isTable: false,
isDetail: false,
},
{
label: '退货数量',
@ -1075,6 +1135,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
},
isTableForm: false,
isTable: false,
isForm: false,
form: {
componentProps:{
disabled:true
@ -1094,6 +1155,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
hiddenInMain: true,
isTableForm: false,
isTable: false,
isForm: false,
form: {
componentProps:{
disabled:true
@ -1113,6 +1175,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
hiddenInMain: true,
isTableForm: false,
isTable: false,
isForm: false,
form: {
componentProps:{
disabled:true
@ -1132,6 +1195,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
hiddenInMain: true,
isTableForm: false,
isTable: false,
isForm: false,
form: {
componentProps:{
disabled:true
@ -1257,6 +1321,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
tableForm:{
disabled:true
},
isForm: false,
isTableForm: false,
isTable: false,
hiddenInMain: true,
@ -1278,6 +1343,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
tableForm:{
disabled:true
},
isForm: false,
isTableForm:false,
isForm:false
},
@ -1317,6 +1383,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
isTableForm: false,
isTable: false,
hiddenInMain: true,
isForm: false,
form: {
componentProps:{
disabled:true

Loading…
Cancel
Save