|
|
@ -126,6 +126,9 @@ |
|
|
|
<div class="title">规则配置</div> |
|
|
|
<el-row gutter="10"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="不拆分"> |
|
|
|
<el-switch v-model="formData.configuration.NotGroup" active-value="TRUE" inactive-value="FALSE" chang = "changeGroup"/> |
|
|
|
</el-form-item> |
|
|
|
<!-- 按零件拆分 --> |
|
|
|
<el-form-item label="按零件拆分"> |
|
|
|
<el-switch v-model="formData.configuration.ByItem" active-value="TRUE" inactive-value="FALSE"/> |
|
|
@ -161,6 +164,7 @@ import { getSupplierList } from '@/api/wms/supplier' |
|
|
|
import * as RuleApi from '@/api/wms/rule' |
|
|
|
import { object } from 'vue-types' |
|
|
|
import { isString } from '@/utils/is' |
|
|
|
import { log } from 'console'; |
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化 |
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
@ -188,6 +192,8 @@ const formData = ref({ |
|
|
|
{ ParamCode: 'SupplierCode', Operator: 'IN', Value: '' } |
|
|
|
], |
|
|
|
configuration: { |
|
|
|
// 不拆分 |
|
|
|
NotGroup: 'FALSE', |
|
|
|
// 按零件拆分 |
|
|
|
ByItem: 'FALSE', |
|
|
|
// 按库位拆分 |
|
|
@ -276,6 +282,14 @@ const changeSupplierType = (e) => { |
|
|
|
getFormSupplierList() |
|
|
|
} |
|
|
|
|
|
|
|
const changeGroup = () =>{ |
|
|
|
console.log(formData.configuration.NotGroup.value); |
|
|
|
if(formData.configuration.NotGroup.value = "TRUE"){ |
|
|
|
formData.configuration.ByItem.value = "FALSE" |
|
|
|
formData.configuration.ByLocation.value = "FALSE" |
|
|
|
formData.configuration.ByContainer.value = "FALSE" |
|
|
|
} |
|
|
|
} |
|
|
|
getFormSupplierList() |
|
|
|
|
|
|
|
/** 打开弹窗 */ |
|
|
@ -416,6 +430,8 @@ const resetForm = () => { |
|
|
|
{ ParamCode: 'SupplierCode', Operator: 'IN', Value: '' } |
|
|
|
], |
|
|
|
configuration: { |
|
|
|
// 不拆分 |
|
|
|
NotGroup: 'FALSE', |
|
|
|
// 按零件拆分 |
|
|
|
ByItem: 'FALSE', |
|
|
|
// 按库位拆分 |
|
|
|