|
@ -13,10 +13,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 |
|
@ -24,40 +24,40 @@ |
|
|
/> |
|
|
/> |
|
|
</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> |
|
|
</div> |
|
|
</div> |
|
|
<!-- 规则条件 --> |
|
|
<!-- 规则条件 --> |
|
|
<div class="item mt-20px"> |
|
|
<div class="item mt-20px" key="规则条件"> |
|
|
<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" |
|
@ -67,10 +67,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="'供应商类型Operator'+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" |
|
@ -80,19 +80,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="'供应商类型Value'+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" |
|
@ -102,10 +102,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="'供应商Operator'+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" |
|
@ -116,7 +116,7 @@ |
|
|
> |
|
|
> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="cur in options.supplierList" |
|
|
v-for="cur in options.supplierList" |
|
|
:key="cur.code" |
|
|
:key="'供应商Value'+cur.code" |
|
|
:label="cur.name" |
|
|
:label="cur.name" |
|
|
:value="cur.code" |
|
|
:value="cur.code" |
|
|
/> |
|
|
/> |
|
@ -126,28 +126,28 @@ |
|
|
</el-row> |
|
|
</el-row> |
|
|
</div> |
|
|
</div> |
|
|
<!-- 规则配置 --> |
|
|
<!-- 规则配置 --> |
|
|
<div class="item mt-20px"> |
|
|
<div class="item mt-20px" key="规则配置"> |
|
|
<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 key="不拆分formItem" label="不拆分"> |
|
|
<el-switch v-model="formData.configuration.NotGroup" active-value="TRUE" inactive-value="FALSE" @change="changeGroup"/> |
|
|
<el-switch key="不拆分switch" v-model="formData.configuration.NotGroup" active-value="TRUE" inactive-value="FALSE" @change="changeGroup"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<!-- 按零件拆分 --> |
|
|
<!-- 按零件拆分 --> |
|
|
<el-form-item label="按零件拆分"> |
|
|
<el-form-item key="按零件拆分formItem" label="按零件拆分"> |
|
|
<el-switch v-model="formData.configuration.ByItem" active-value="TRUE" inactive-value="FALSE" @change="changeGroup"/> |
|
|
<el-switch key="按零件拆分switch" v-model="formData.configuration.ByItem" active-value="TRUE" inactive-value="FALSE" @change="changeGroup"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<!-- 按库位拆分 --> |
|
|
<!-- 按库位拆分 --> |
|
|
<el-form-item label="按库位拆分"> |
|
|
<el-form-item key="按库位拆分formItem" label="按库位拆分"> |
|
|
<el-switch v-model="formData.configuration.ByLocation" active-value="TRUE" inactive-value="FALSE" @change="changeGroup"/> |
|
|
<el-switch key="按库位拆分switch" v-model="formData.configuration.ByLocation" active-value="TRUE" inactive-value="FALSE" @change="changeGroup"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<!--按器具拆分--> |
|
|
<!--按器具拆分--> |
|
|
<el-form-item label="按器具拆分"> |
|
|
<el-form-item key="按器具拆分formItem" label="按器具拆分"> |
|
|
<el-switch v-model="formData.configuration.ByContainer" active-value="TRUE" inactive-value="FALSE" @change="changeGroup"/> |
|
|
<el-switch key="按器具拆分switch" v-model="formData.configuration.ByContainer" active-value="TRUE" inactive-value="FALSE" @change="changeGroup"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<!-- 每个任务明细数量 --> |
|
|
<!-- 每个任务明细数量 --> |
|
|
<el-form-item label="每个任务明细数量" v-show="false"> |
|
|
<el-form-item key="每个任务明细数量formItem" label="每个任务明细数量" v-show="false"> |
|
|
<el-input-number v-model="formData.configuration.JobDetailCount" :min="0" /> |
|
|
<el-input-number key="每个任务明细数量input" v-model="formData.configuration.JobDetailCount" :min="0" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|