Browse Source

修复bug

master
chenfang 11 months ago
parent
commit
d62d1b2570
  1. 15
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue
  2. 13
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

15
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -162,7 +162,12 @@ InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => {
key: 'businessType', key: 'businessType',
value: businessType.value , value: businessType.value ,
isMainValue: false isMainValue: false
},] },],item.form.componentProps.searchCondition = [
{
key: 'businessType',
value: businessType.value,
isMainValue: false
}]
} else { } else {
delete item.tableForm.searchCondition delete item.tableForm.searchCondition
} }
@ -182,6 +187,12 @@ InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => {
value: businessType.value, value: businessType.value,
isMainValue: false isMainValue: false
}] }]
item.form.componentProps.searchCondition = [
{
key: 'businessType',
value: businessType.value,
isMainValue: false
}]
} }
} }
}) })
@ -431,8 +442,6 @@ const handleDeleteTable = (item, index) => {
const submitForm = async (formType, data) => { const submitForm = async (formType, data) => {
data.subList = tableData.value // data.subList = tableData.value //
data.subList.forEach(item => { data.subList.forEach(item => {
console.log(fromInventoryStatus.value)
console.log(!fromInventoryStatus.value)
if(fromInventoryStatus.value){ if(fromInventoryStatus.value){
item.fromInventoryStatus = fromInventoryStatus.value item.fromInventoryStatus = fromInventoryStatus.value
item.toInventoryStatus = toInventoryStatus.value item.toInventoryStatus = toInventoryStatus.value

13
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

@ -561,7 +561,12 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
searchField: 'packingNumber', searchField: 'packingNumber',
searchTitle: '库存余额信息', searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas, searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.selectLocationTypeToBalance searchPage: BalanceApi.selectLocationTypeToBalance,
searchCondition: [{
key: 'locationCode',
value: 'businessType',
isMainValue: true
}]
} }
} }
}, },
@ -671,6 +676,12 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
searchTitle: '库位信息', searchTitle: '库位信息',
searchAllSchemas: Location.allSchemas, searchAllSchemas: Location.allSchemas,
searchPage: LocationApi.selectBusinessTypeToLocation, searchPage: LocationApi.selectBusinessTypeToLocation,
searchCondition: [
{
key: 'type',
value: 'businessType',
isMainValue: true
}]
} }
} }
}, },

Loading…
Cancel
Save