|
|
@ -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: { |
|
|
|
// 仓库代码 |
|
|
|