|
|
@ -754,15 +754,18 @@ const filterMethodWarehouseList = (query: string) => { |
|
|
|
|
|
|
|
|
|
|
|
const searchTableRef = ref() |
|
|
|
|
|
|
|
const moduleValue = ref() |
|
|
|
const typeValue = ref() |
|
|
|
const blurWarehouse = async ({ module = 'config', type }) => { |
|
|
|
console.log(22,warehouseType.value) |
|
|
|
console.log(22,module) |
|
|
|
|
|
|
|
console.log(22, module) |
|
|
|
moduleValue.value = module |
|
|
|
typeValue.value = warehouseType.value |
|
|
|
// 校验的值 |
|
|
|
let warehouseValue = formData.value.configuration[warehouseType.value] |
|
|
|
let conditionObj = null |
|
|
|
if(module=='condition'){ |
|
|
|
typeValue.value = type |
|
|
|
// 规则条件 |
|
|
|
conditionObj = formData.value.condition.find(item=>item['ParamCode']==type) |
|
|
|
if(conditionObj){ |
|
|
@ -1124,7 +1127,7 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗 |
|
|
|
/** 提交表单 */ |
|
|
|
const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调 |
|
|
|
const submitForm = async () => { |
|
|
|
await blurWarehouse() |
|
|
|
await blurWarehouse({module:moduleValue.value,type:typeValue.value}) |
|
|
|
await blurTransactionType() |
|
|
|
console.log('规则条件',formData.value.condition) |
|
|
|
|
|
|
|