|
@ -628,7 +628,7 @@ const formData = ref({ |
|
|
// 存储类型 |
|
|
// 存储类型 |
|
|
{ ParamCode: 'StorageType', Operator: 'IN', Value: [] }, |
|
|
{ ParamCode: 'StorageType', Operator: 'IN', Value: [] }, |
|
|
// 库存事务 |
|
|
// 库存事务 |
|
|
{ ParamCode: 'TransactionType', Operator: 'IN', Value: [] } |
|
|
{ ParamCode: 'TransactionType', Operator: 'IN', Value: '' } |
|
|
], |
|
|
], |
|
|
configuration: { |
|
|
configuration: { |
|
|
// 仓库代码 |
|
|
// 仓库代码 |
|
@ -895,7 +895,9 @@ const searchWarehouse = ()=>{ |
|
|
const blurWarehouse = async ()=>{ |
|
|
const blurWarehouse = async ()=>{ |
|
|
// 校验的值 |
|
|
// 校验的值 |
|
|
let warehouseValue = formData.value.configuration[warehouseType.value] |
|
|
let warehouseValue = formData.value.configuration[warehouseType.value] |
|
|
|
|
|
if(!warehouseValue){ |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
if(warehouseType.value == 'WarehouseCode'){ |
|
|
if(warehouseType.value == 'WarehouseCode'){ |
|
|
// 仓库 |
|
|
// 仓库 |
|
|
let verifyRes = await WarehouseApi.verifyWarehouse({ |
|
|
let verifyRes = await WarehouseApi.verifyWarehouse({ |
|
@ -977,7 +979,8 @@ const searchTransactionType = ()=>{ |
|
|
// 失去焦点校验 |
|
|
// 失去焦点校验 |
|
|
const blurTransactionType = async ()=>{ |
|
|
const blurTransactionType = async ()=>{ |
|
|
let transactionType = formData.value.condition.find(item=>item['ParamCode']=='TransactionType') |
|
|
let transactionType = formData.value.condition.find(item=>item['ParamCode']=='TransactionType') |
|
|
if(transactionType){ |
|
|
console.log('transactionType',transactionType) |
|
|
|
|
|
if(transactionType&&transactionType.Value){ |
|
|
let verifyRes = await TransactiontypeApi.verifyTransactiontype({ |
|
|
let verifyRes = await TransactiontypeApi.verifyTransactiontype({ |
|
|
code:transactionType.Value |
|
|
code:transactionType.Value |
|
|
}) |
|
|
}) |
|
@ -1064,7 +1067,7 @@ const open = async (type: string, strategyCode: string, id?: number) => { |
|
|
if (data.condition) { |
|
|
if (data.condition) { |
|
|
formData.value.condition = JSON.parse(data.condition) |
|
|
formData.value.condition = JSON.parse(data.condition) |
|
|
formData.value.condition.forEach((item, index) => { |
|
|
formData.value.condition.forEach((item, index) => { |
|
|
if (item.Operator == 'IN' || item.Operator == 'NOT IN') { |
|
|
if ((item.Operator == 'IN' || item.Operator == 'NOT IN')&& Array.isArray(item.Value)) { |
|
|
item.Value = item.Value.split(',') |
|
|
item.Value = item.Value.split(',') |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
@ -1217,7 +1220,7 @@ const resetForm = () => { |
|
|
// 存储类型 |
|
|
// 存储类型 |
|
|
{ ParamCode: 'StorageType', Operator: 'IN', Value: [] }, |
|
|
{ ParamCode: 'StorageType', Operator: 'IN', Value: [] }, |
|
|
// 库存事务 |
|
|
// 库存事务 |
|
|
{ ParamCode: 'TransactionType', Operator: 'IN', Value: [] } |
|
|
{ ParamCode: 'TransactionType', Operator: 'IN', Value: '' } |
|
|
], |
|
|
], |
|
|
configuration: { |
|
|
configuration: { |
|
|
// 仓库代码 |
|
|
// 仓库代码 |
|
|