|
@ -305,12 +305,19 @@ |
|
|
:key="'库存事务Operator'+cur.value" |
|
|
:key="'库存事务Operator'+cur.value" |
|
|
/> |
|
|
/> |
|
|
</el-select> |
|
|
</el-select> |
|
|
<el-input key="库存事务Value" |
|
|
<!-- <el-input key="库存事务Value" |
|
|
v-model="item.Value" |
|
|
v-model="item.Value" |
|
|
placeholder="请输入库存事务,多个库存事务以逗号分隔" |
|
|
placeholder="请输入库存事务,多个库存事务以逗号分隔" |
|
|
clearable |
|
|
clearable |
|
|
style="flex: 1" |
|
|
style="flex: 1" |
|
|
/> |
|
|
/> --> |
|
|
|
|
|
<el-input key="库存事务Value" style="flex:1" vplaceholder="请选择库存事务" v-model="item.Value"> |
|
|
|
|
|
<template #suffix> |
|
|
|
|
|
<el-button type="text" plain style="color:var(--el-button-text-color)" @click="searchTransactionType"> |
|
|
|
|
|
<Icon icon="ep:search" class="mr-5px" /> |
|
|
|
|
|
</el-button> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
@ -639,6 +646,11 @@ import * as LocationApi from '@/api/wms/location' |
|
|
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' |
|
|
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' |
|
|
import { isString } from '@/utils/is' |
|
|
import { isString } from '@/utils/is' |
|
|
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|
|
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 { t } = useI18n() // 国际化 |
|
|
const message = useMessage() // 消息弹窗 |
|
|
const message = useMessage() // 消息弹窗 |
|
@ -904,8 +916,22 @@ const filterMethodWarehouseList = (query: string) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const searchTableRef = ref() |
|
|
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'){ |
|
|
if(warehouseType.value == 'WarehouseCode'){ |
|
|
// 仓库 |
|
|
// 仓库 |
|
@ -964,6 +990,13 @@ const searchWarehouse = ()=>{ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
const searchTableSuccess = (formField, searchField, val, type, row) => { |
|
|
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'?'请选择库位':'' |
|
|
// let searchTableTitle = warehouseType.value == 'WarehouseCode'?'请选择仓库':warehouseType.value == 'AreaCode'?'请选择库区':warehouseType.value == 'LocationGroupCode'?'请选择库位组':warehouseType.value == 'LocationCode'?'请选择库位':'' |
|
|
console.log('searchTableSuccess',formField, searchField, val, type, row) |
|
|
console.log('searchTableSuccess',formField, searchField, val, type, row) |
|
|
console.log(val.map(item=>(item['code'])).join(',')) |
|
|
console.log(val.map(item=>(item['code'])).join(',')) |
|
|