|
@ -12,10 +12,10 @@ |
|
|
> |
|
|
> |
|
|
<div class="item"> |
|
|
<div class="item"> |
|
|
<div class="title">规则</div> |
|
|
<div class="title">规则</div> |
|
|
<el-row gutter="10"> |
|
|
<el-row gutter="10" key="规则row"> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24" key="代码col"> |
|
|
<el-form-item label="代码" prop="strategyCode"> |
|
|
<el-form-item key="代码formItem" label="代码" prop="strategyCode"> |
|
|
<el-input |
|
|
<el-input key="代码input" |
|
|
v-model="formData.strategyCode" |
|
|
v-model="formData.strategyCode" |
|
|
placeholder="请输入代码" |
|
|
placeholder="请输入代码" |
|
|
clearable |
|
|
clearable |
|
@ -23,24 +23,24 @@ |
|
|
/> |
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24" key="名称col"> |
|
|
<el-form-item label="名称" prop="name"> |
|
|
<el-form-item key="名称formItem" label="名称" prop="name"> |
|
|
<el-input v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
<el-input key="名称input" v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24" key="描述col"> |
|
|
<el-form-item label="描述" prop="description"> |
|
|
<el-form-item key="描述formItem" label="描述" prop="description"> |
|
|
<el-input v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
<el-input key="描述input" v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12" key="优先级col"> |
|
|
<el-form-item label="优先级" prop="priority"> |
|
|
<el-form-item key="优先级formItem" label="优先级" prop="priority"> |
|
|
<el-input-number v-model="formData.priority" :min="0" :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
<el-input-number key="优先级input" v-model="formData.priority" :min="0" :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12" key="状态col"> |
|
|
<el-form-item label="状态" prop="status"> |
|
|
<el-form-item key="状态formItem" label="状态" prop="status"> |
|
|
<el-switch v-model="formData.status" :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
<el-switch key="状态switch" v-model="formData.status" :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
@ -48,15 +48,15 @@ |
|
|
<!-- 规则条件 --> |
|
|
<!-- 规则条件 --> |
|
|
<div class="item mt-20px"> |
|
|
<div class="item mt-20px"> |
|
|
<div class="title">规则条件</div> |
|
|
<div class="title">规则条件</div> |
|
|
<el-row gutter="10"> |
|
|
<el-row gutter="10" key="规则条件row"> |
|
|
<el-col :span="24" v-for="(item, index) in formData.condition" :key="index"> |
|
|
<el-col :span="24" v-for="(item, index) in formData.condition" :key="'规则条件col'+index"> |
|
|
<!-- 供应商类型 --> |
|
|
<!-- 供应商类型 --> |
|
|
<el-form-item |
|
|
<el-form-item key="供应商类型formItem" |
|
|
v-if="item.ParamCode == 'SupplierType'" |
|
|
v-if="item.ParamCode == 'SupplierType'" |
|
|
label="供应商类型" |
|
|
label="供应商类型" |
|
|
class="flex-top err-120" |
|
|
class="flex-top err-120" |
|
|
> |
|
|
> |
|
|
<el-select |
|
|
<el-select key="供应商类型Operator" |
|
|
v-model="item.Operator" |
|
|
v-model="item.Operator" |
|
|
placeholder="请选择范围" |
|
|
placeholder="请选择范围" |
|
|
style="width: 110px; margin-right: 10px" |
|
|
style="width: 110px; margin-right: 10px" |
|
@ -66,10 +66,10 @@ |
|
|
:label="cur.label" |
|
|
:label="cur.label" |
|
|
:value="cur.value" |
|
|
:value="cur.value" |
|
|
v-for="cur in options.supplierTypeRangeOptions" |
|
|
v-for="cur in options.supplierTypeRangeOptions" |
|
|
:key="cur.value" |
|
|
:key="'供应商类型OperatorOption'+cur.value" |
|
|
/> |
|
|
/> |
|
|
</el-select> |
|
|
</el-select> |
|
|
<el-select |
|
|
<el-select key="供应商类型Value" |
|
|
v-model="item.Value" |
|
|
v-model="item.Value" |
|
|
placeholder="请选择供应商类型" |
|
|
placeholder="请选择供应商类型" |
|
|
style="flex: 1" |
|
|
style="flex: 1" |
|
@ -79,19 +79,19 @@ |
|
|
> |
|
|
> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)" |
|
|
v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)" |
|
|
:key="dict.value" |
|
|
:key="'供应商类型ValueOption'+dict.value" |
|
|
:label="dict.label" |
|
|
:label="dict.label" |
|
|
:value="dict.value" |
|
|
:value="dict.value" |
|
|
/> |
|
|
/> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<!-- 供应商 --> |
|
|
<!-- 供应商 --> |
|
|
<el-form-item |
|
|
<el-form-item key="供应商formItem" |
|
|
v-else-if="item.ParamCode == 'SupplierCode'" |
|
|
v-else-if="item.ParamCode == 'SupplierCode'" |
|
|
label="供应商" |
|
|
label="供应商" |
|
|
class="err-120" |
|
|
class="err-120" |
|
|
> |
|
|
> |
|
|
<el-select |
|
|
<el-select key="供应商Operator" |
|
|
v-model="item.Operator" |
|
|
v-model="item.Operator" |
|
|
placeholder="请选择范围" |
|
|
placeholder="请选择范围" |
|
|
style="width: 110px; margin-right: 10px" |
|
|
style="width: 110px; margin-right: 10px" |
|
@ -101,10 +101,10 @@ |
|
|
:label="cur.label" |
|
|
:label="cur.label" |
|
|
:value="cur.value" |
|
|
:value="cur.value" |
|
|
v-for="cur in options.supplierRangeOptions" |
|
|
v-for="cur in options.supplierRangeOptions" |
|
|
:key="cur.value" |
|
|
:key="'供应商OperatorOption'+cur.value" |
|
|
/> |
|
|
/> |
|
|
</el-select> |
|
|
</el-select> |
|
|
<el-select |
|
|
<el-select key="供应商Value" |
|
|
v-model="item.Value" |
|
|
v-model="item.Value" |
|
|
placeholder="请选择供应商" |
|
|
placeholder="请选择供应商" |
|
|
style="flex: 1" |
|
|
style="flex: 1" |
|
@ -115,7 +115,7 @@ |
|
|
> |
|
|
> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="cur in options.supplierList" |
|
|
v-for="cur in options.supplierList" |
|
|
:key="cur.code" |
|
|
:key="'供应商ValueOption'+cur.code" |
|
|
:label="cur.name" |
|
|
:label="cur.name" |
|
|
:value="cur.code" |
|
|
:value="cur.code" |
|
|
/> |
|
|
/> |
|
@ -127,17 +127,17 @@ |
|
|
<!-- 规则配置 --> |
|
|
<!-- 规则配置 --> |
|
|
<div class="item mt-20px"> |
|
|
<div class="item mt-20px"> |
|
|
<div class="title">规则配置</div> |
|
|
<div class="title">规则配置</div> |
|
|
<el-row gutter="10"> |
|
|
<el-row gutter="10" key="规则配置row"> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24" key="按零件拆分col"> |
|
|
<!-- 按零件拆分 --> |
|
|
<!-- 按零件拆分 --> |
|
|
<el-form-item label="按零件拆分"> |
|
|
<el-form-item label="按零件拆分" key="按零件拆分formItem"> |
|
|
<el-switch v-model="formData.configuration.ByItem" active-value="TRUE" inactive-value="FALSE"/> |
|
|
<el-switch key="按零件拆分switch" v-model="formData.configuration.ByItem" active-value="TRUE" inactive-value="FALSE"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<!-- 按批次拆分 --> |
|
|
<!-- 按批次拆分 --> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24" key="按批次拆分col"> |
|
|
<el-form-item label="按批次拆分"> |
|
|
<el-form-item label="按批次拆分" key="按批次拆分formItem"> |
|
|
<el-switch v-model="formData.configuration.ByBatch" active-value="TRUE" inactive-value="FALSE"/> |
|
|
<el-switch key="按批次拆分switch" v-model="formData.configuration.ByBatch" active-value="TRUE" inactive-value="FALSE"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|