|
|
@ -13,10 +13,10 @@ |
|
|
|
> |
|
|
|
<div class="item"> |
|
|
|
<div class="title">规则</div> |
|
|
|
<el-row gutter="10"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="代码" prop="strategyCode"> |
|
|
|
<el-input |
|
|
|
<el-row gutter="10" key="代码row"> |
|
|
|
<el-col :span="24" key="代码Col"> |
|
|
|
<el-form-item key="代码formItem" label="代码" prop="strategyCode"> |
|
|
|
<el-input key="代码input" |
|
|
|
v-model="formData.strategyCode" |
|
|
|
placeholder="请输入代码" |
|
|
|
clearable |
|
|
@ -24,40 +24,40 @@ |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="名称" prop="name"> |
|
|
|
<el-input v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
|
<el-col :span="24" key="名称Col"> |
|
|
|
<el-form-item key="名称formItem" label="名称" prop="name"> |
|
|
|
<el-input key="名称input" v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="描述" prop="description"> |
|
|
|
<el-input v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
|
<el-col :span="24" key="描述Col"> |
|
|
|
<el-form-item key="描述formItem" label="描述" prop="description"> |
|
|
|
<el-input key="描述input" v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="优先级" prop="priority"> |
|
|
|
<el-input-number v-model="formData.priority" :min="0" :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
|
<el-col :span="12" key="优先级Col"> |
|
|
|
<el-form-item key="优先级formItem" label="优先级" prop="priority"> |
|
|
|
<el-input-number key="优先级input" v-model="formData.priority" :min="0" :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="状态" prop="status"> |
|
|
|
<el-switch v-model="formData.status" :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
|
<el-col :span="12" key="状态Col"> |
|
|
|
<el-form-item key="状态formItem" label="状态" prop="status"> |
|
|
|
<el-switch key="状态switch" v-model="formData.status" :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</div> |
|
|
|
<!-- 规则条件 --> |
|
|
|
<div class="item mt-20px"> |
|
|
|
<div class="item mt-20px" key="规则条件"> |
|
|
|
<div class="title">规则条件</div> |
|
|
|
<el-row gutter="10"> |
|
|
|
<el-col :span="24" v-for="(item, index) in formData.condition" :key="index"> |
|
|
|
<el-row gutter="10" key="规则条件row"> |
|
|
|
<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'" |
|
|
|
label="供应商类型" |
|
|
|
class="flex-top err-120" |
|
|
|
> |
|
|
|
<el-select |
|
|
|
<el-select key="供应商类型Operator" |
|
|
|
v-model="item.Operator" |
|
|
|
placeholder="请选择范围" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
@ -67,10 +67,10 @@ |
|
|
|
:label="cur.label" |
|
|
|
:value="cur.value" |
|
|
|
v-for="cur in options.supplierTypeRangeOptions" |
|
|
|
:key="cur.value" |
|
|
|
:key="'供应商类型Operator'+cur.value" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
<el-select |
|
|
|
<el-select key="供应商类型Value" |
|
|
|
v-model="item.Value" |
|
|
|
placeholder="请选择供应商类型" |
|
|
|
style="flex: 1" |
|
|
@ -80,19 +80,19 @@ |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)" |
|
|
|
:key="dict.value" |
|
|
|
:key="'供应商类型Value'+dict.value" |
|
|
|
:label="dict.label" |
|
|
|
:value="dict.value" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<!-- 供应商 --> |
|
|
|
<el-form-item |
|
|
|
<el-form-item key="供应商formItem" |
|
|
|
v-else-if="item.ParamCode == 'SupplierCode'" |
|
|
|
label="供应商" |
|
|
|
class="err-120" |
|
|
|
> |
|
|
|
<el-select |
|
|
|
<el-select key="供应商Operator" |
|
|
|
v-model="item.Operator" |
|
|
|
placeholder="请选择范围" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
@ -102,10 +102,10 @@ |
|
|
|
:label="cur.label" |
|
|
|
:value="cur.value" |
|
|
|
v-for="cur in options.supplierRangeOptions" |
|
|
|
:key="cur.value" |
|
|
|
:key="'供应商Operator'+cur.value" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
<el-select |
|
|
|
<el-select key="供应商Value" |
|
|
|
v-model="item.Value" |
|
|
|
placeholder="请选择供应商" |
|
|
|
style="flex: 1" |
|
|
@ -116,7 +116,7 @@ |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="cur in options.supplierList" |
|
|
|
:key="cur.code" |
|
|
|
:key="'供应商Value'+cur.code" |
|
|
|
:label="cur.name" |
|
|
|
:value="cur.code" |
|
|
|
/> |
|
|
@ -126,28 +126,28 @@ |
|
|
|
</el-row> |
|
|
|
</div> |
|
|
|
<!-- 规则配置 --> |
|
|
|
<div class="item mt-20px"> |
|
|
|
<div class="item mt-20px" key="规则配置"> |
|
|
|
<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" @change="changeGroup"/> |
|
|
|
<el-row gutter="10" key="规则配置row"> |
|
|
|
<el-col :span="24" key="规则配置col"> |
|
|
|
<el-form-item key="不拆分formItem" label="不拆分"> |
|
|
|
<el-switch key="不拆分switch" v-model="formData.configuration.NotGroup" active-value="TRUE" inactive-value="FALSE" @change="changeGroup"/> |
|
|
|
</el-form-item> |
|
|
|
<!-- 按零件拆分 --> |
|
|
|
<el-form-item label="按零件拆分"> |
|
|
|
<el-switch v-model="formData.configuration.ByItem" active-value="TRUE" inactive-value="FALSE" @change="changeGroup"/> |
|
|
|
<el-form-item key="按零件拆分formItem" label="按零件拆分"> |
|
|
|
<el-switch key="按零件拆分switch" v-model="formData.configuration.ByItem" active-value="TRUE" inactive-value="FALSE" @change="changeGroup"/> |
|
|
|
</el-form-item> |
|
|
|
<!-- 按库位拆分 --> |
|
|
|
<el-form-item label="按库位拆分"> |
|
|
|
<el-switch v-model="formData.configuration.ByLocation" active-value="TRUE" inactive-value="FALSE" @change="changeGroup"/> |
|
|
|
<el-form-item key="按库位拆分formItem" label="按库位拆分"> |
|
|
|
<el-switch key="按库位拆分switch" v-model="formData.configuration.ByLocation" active-value="TRUE" inactive-value="FALSE" @change="changeGroup"/> |
|
|
|
</el-form-item> |
|
|
|
<!--按器具拆分--> |
|
|
|
<el-form-item label="按器具拆分"> |
|
|
|
<el-switch v-model="formData.configuration.ByContainer" active-value="TRUE" inactive-value="FALSE" @change="changeGroup"/> |
|
|
|
<el-form-item key="按器具拆分formItem" label="按器具拆分"> |
|
|
|
<el-switch key="按器具拆分switch" v-model="formData.configuration.ByContainer" active-value="TRUE" inactive-value="FALSE" @change="changeGroup"/> |
|
|
|
</el-form-item> |
|
|
|
<!-- 每个任务明细数量 --> |
|
|
|
<el-form-item label="每个任务明细数量" v-show="false"> |
|
|
|
<el-input-number v-model="formData.configuration.JobDetailCount" :min="0" /> |
|
|
|
<el-form-item key="每个任务明细数量formItem" label="每个任务明细数量" v-show="false"> |
|
|
|
<el-input-number key="每个任务明细数量input" v-model="formData.configuration.JobDetailCount" :min="0" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|