|
|
@ -152,6 +152,7 @@ defineOptions({ name: 'SupplieDeliveryStrategyAddForm' }) |
|
|
|
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|
|
|
import { getSupplierList } from '@/api/wms/supplier' |
|
|
|
import * as RuleApi from '@/api/wms/rule' |
|
|
|
import { isString } from '@/utils/is' |
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化 |
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
@ -343,10 +344,16 @@ const submitForm = async () => { |
|
|
|
formLoading.value = true |
|
|
|
try { |
|
|
|
const arr = formData.value.condition.map(item=> { |
|
|
|
let str = item.Value |
|
|
|
let str = item.Value |
|
|
|
if(isString(item.Value)){ |
|
|
|
if(item.Value.indexOf(','>-1)){ |
|
|
|
str = item.Value.split(',').join(',') |
|
|
|
} |
|
|
|
} |
|
|
|
if ((item.Operator == 'IN' || item.Operator == 'NOT IN')&& Array.isArray(item.Value)) { |
|
|
|
str = item.Value.join(',') |
|
|
|
} |
|
|
|
|
|
|
|
return { |
|
|
|
ParamCode:item.ParamCode, |
|
|
|
Operator:item.Operator, |
|
|
|