diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue index ed8ffd727..d9fb3656a 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue @@ -305,12 +305,19 @@ :key="'库存事务Operator'+cur.value" /> - + /> --> + + + @@ -639,6 +646,11 @@ import * as LocationApi from '@/api/wms/location' import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' import { isString } from '@/utils/is' import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' +import * as TransactiontypeApi from '@/api/wms/transactiontype' +import { Transactiontype } from '@/views/wms/basicDataManage/documentSetting/transactiontype/transactiontype.data' + + + const { t } = useI18n() // 国际化 const message = useMessage() // 消息弹窗 @@ -904,8 +916,22 @@ const filterMethodWarehouseList = (query: string) => { const searchTableRef = ref() -const searchWarehouse = ()=>{ +//事务类型 +const searchTransactionType = ()=>{ + searchTableRef.value.open( + '请选择事务类型', + Transactiontype.allSchemas, + TransactiontypeApi.getTransactiontypePage, + 'TransactionType', + 'code', + true, + undefined, + undefined, + undefined + ) +} +const searchWarehouse = ()=>{ if(warehouseType.value == 'WarehouseCode'){ // 仓库 @@ -964,6 +990,13 @@ const searchWarehouse = ()=>{ } const searchTableSuccess = (formField, searchField, val, type, row) => { + if(formField=='TransactionType'){ + let transactionType = formData.value.condition.find(item=>item['ParamCode']=='TransactionType') + if(transactionType){ + transactionType.Value = val.map(item=>(item['code'])).join(',') + } + return + } // let searchTableTitle = warehouseType.value == 'WarehouseCode'?'请选择仓库':warehouseType.value == 'AreaCode'?'请选择库区':warehouseType.value == 'LocationGroupCode'?'请选择库位组':warehouseType.value == 'LocationCode'?'请选择库位':'' console.log('searchTableSuccess',formField, searchField, val, type, row) console.log(val.map(item=>(item['code'])).join(','))