Browse Source

上架策略-业务类型用库存事务字段

hella_online_20240919
yufei_wang 2 months ago
parent
commit
e39f226753
  1. 30
      src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue

30
src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue

@ -314,7 +314,7 @@
</el-input>
</el-form-item> -->
<!-- 业务类型 -->
<el-form-item key="业务类型formItem" label="业务类型" class="err-120" v-if="index == 6">
<el-form-item key="业务类型formItem" label="业务类型" class="err-120" v-if="index == 5">
<el-select key="业务类型Operator"
v-model="item.Operator"
placeholder="请选择范围"
@ -684,10 +684,8 @@ const formData = ref({
{ ParamCode: 'InventoryStatus', Operator: 'IN', Value: [] },
//
{ ParamCode: 'StorageType', Operator: 'IN', Value: [] },
//
// //
{ ParamCode: 'TransactionType', Operator: 'IN', Value: '' },
//
{ ParamCode: 'BusinessType', Operator: 'IN', Value: '' },
],
configuration: {
//
@ -1030,7 +1028,7 @@ const searchBusinessType = ()=>{
'请选择业务类型',
Businesstype.allSchemas,
BusinesstypeApi.getBusinesstypePage,
'BusinessType',
'TransactionType',
'code',
true,
undefined,
@ -1074,14 +1072,15 @@ const searchTableSuccess = (formField, searchField, val, type, row) => {
// 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(','))
// if(formField=='TransactionType'){
// let transactionType = formData.value.condition.find(item=>item['ParamCode']=='TransactionType')
// if(transactionType){
// transactionType.Value = val.map(item=>(item['code'])).join(',')
// }
// return
// }else
if(formField=='TransactionType'){
let transactionType = formData.value.condition.find(item=>item['ParamCode']=='TransactionType')
if(transactionType){
transactionType.Value = val.map(item=>(item['code'])).join(',')
}
return
}else if(formField=='BusinessType'){
let businessType = formData.value.condition.find(item=>item['ParamCode']=='BusinessType')
let businessType = formData.value.condition.find(item=>item['ParamCode']=='TransactionType')
if(businessType){
businessType.Value = val.map(item=>(item['code'])).join(',')
}
@ -1153,9 +1152,6 @@ const open = async (type: string, strategyCode: string, id?: number) => {
item.Value = item.Value.split(',')
}
})
if(!formData.value.condition[6]){
formData.value.condition[6] = { ParamCode: 'BusinessType', Operator: 'IN', Value: '' }
}
}
if (data.configuration) {
formData.value.configuration = JSON.parse(data.configuration)
@ -1314,10 +1310,8 @@ const resetForm = () => {
{ ParamCode: 'InventoryStatus', Operator: 'IN', Value: [] },
//
{ ParamCode: 'StorageType', Operator: 'IN', Value: [] },
//
// //
{ ParamCode: 'TransactionType', Operator: 'IN', Value: '' },
//
{ ParamCode: 'BusinessType', Operator: 'IN', Value: '' },
],
configuration: {
//

Loading…
Cancel
Save