Browse Source

HL-5281下架策略编辑,库存事务应该是多选,而不是填写,否则无法保证填写的信息是正确的

hella_online_20240823
wangyufei 3 months ago
parent
commit
481e8d2f29
  1. 39
      src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue

39
src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue

@ -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(','))

Loading…
Cancel
Save