|
|
@ -12,10 +12,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 |
|
|
@ -23,24 +23,24 @@ |
|
|
|
/> |
|
|
|
</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 label="名称" prop="name" key="名称formItem"> |
|
|
|
<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 label="描述" prop="description" key="描述formItem"> |
|
|
|
<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 label="优先级" prop="priority" key="优先级formItem"> |
|
|
|
<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 label="状态" prop="status" key="状态formItem"> |
|
|
|
<el-switch key="状态switch" v-model="formData.status" :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
@ -50,11 +50,11 @@ |
|
|
|
|
|
|
|
<div class="item mt-20px"> |
|
|
|
<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 label="" label-width="0" class="err-130" v-if="index == 0"> |
|
|
|
<el-select |
|
|
|
<el-form-item :key="'规则条件formItem'+index" label="" label-width="0" class="err-130" v-if="index == 0"> |
|
|
|
<el-select :key="'规则条件select'+index" |
|
|
|
v-model="item.ParamCode" |
|
|
|
placeholder="" |
|
|
|
style="width: 120px; margin-right: 10px" |
|
|
@ -65,10 +65,10 @@ |
|
|
|
:label="cur.label" |
|
|
|
:value="cur.value" |
|
|
|
v-for="(cur, index) in options.warehouseTypeOptions" |
|
|
|
:key="index" |
|
|
|
:key="'规则条件option'+index" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
<el-select |
|
|
|
<el-select :key="'请选择范围select'+index" |
|
|
|
v-model="item.Operator" |
|
|
|
placeholder="请选择范围" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
@ -78,10 +78,10 @@ |
|
|
|
:label="cur.label" |
|
|
|
:value="cur.value" |
|
|
|
v-for="cur in options.RangeOptions" |
|
|
|
:key="cur.value" |
|
|
|
:key="'选择范围option'+cur.value" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
<el-select |
|
|
|
<el-select :key="'规则条件Value'+index" |
|
|
|
v-model="item.Value" |
|
|
|
:placeholder="`请选择${ |
|
|
|
item.ParamCode == 'WarehouseCode' |
|
|
@ -102,7 +102,7 @@ |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="cur in options.warehouseList" |
|
|
|
:key="cur.code" |
|
|
|
:key="'规则条件option'+cur.code" |
|
|
|
:label="cur.code" |
|
|
|
:value="cur.code" |
|
|
|
/> |
|
|
@ -115,16 +115,16 @@ |
|
|
|
<!-- 规则配置 --> |
|
|
|
<div class="item mt-20px"> |
|
|
|
<div class="title">规则配置</div> |
|
|
|
<el-row gutter="10"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-row gutter="10" key="规则配置row"> |
|
|
|
<el-col :span="24" key="默认库存状态col"> |
|
|
|
<!-- 默认库存状态 --> |
|
|
|
<el-form-item label="默认库存状态" class="flex-top"> |
|
|
|
<el-form-item key="默认库存状态formItem" label="默认库存状态" class="flex-top"> |
|
|
|
<div class="checkbox"> |
|
|
|
<el-radio-group v-model="formData.configuration.DefaultInventoryStatus"> |
|
|
|
<el-radio-group key="默认库存状态radioGroup" v-model="formData.configuration.DefaultInventoryStatus"> |
|
|
|
<el-radio |
|
|
|
:label="cur.value" |
|
|
|
v-for="cur in getStrDictOptions(DICT_TYPE.INVENTORY_STATUS)" |
|
|
|
:key="cur.value" |
|
|
|
:key="'默认库存状态radio'+cur.value" |
|
|
|
>{{ cur.label }}</el-radio |
|
|
|
> |
|
|
|
</el-radio-group> |
|
|
@ -132,16 +132,16 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<!-- 溢流库位 --> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="溢流库位"> |
|
|
|
<el-select |
|
|
|
<el-col :span="24" key="溢流库位col"> |
|
|
|
<el-form-item key="溢流库位formItem" label="溢流库位"> |
|
|
|
<el-select key="溢流库位select" |
|
|
|
v-model="formData.configuration.OverflowLocationCode" |
|
|
|
placeholder="请选择溢流库位" |
|
|
|
clearable |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="cur in options.overflowWarehouseList" |
|
|
|
:key="cur.code" |
|
|
|
:key="'溢流库位option'+cur.code" |
|
|
|
:label="cur.code" |
|
|
|
:value="cur.code" |
|
|
|
/> |
|
|
@ -149,77 +149,77 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<!-- 允许负库存 --> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="允许负库存"> |
|
|
|
<el-switch v-model="formData.configuration.EnableNegative" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
<el-col :span="12" key="允许负库存col"> |
|
|
|
<el-form-item key="允许负库存formItem" label="允许负库存"> |
|
|
|
<el-switch key="允许负库存switch" v-model="formData.configuration.EnableNegative" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<!-- 保留零库存 --> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="保留零库存"> |
|
|
|
<el-switch v-model="formData.configuration.EnableKeepZero" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
<el-col :span="12" key="保留零库存col"> |
|
|
|
<el-form-item label="保留零库存formItem" key="保留零库存formItem"> |
|
|
|
<el-switch key="保留零库存switch" v-model="formData.configuration.EnableKeepZero" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<!-- 允许领料 --> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="允许领料"> |
|
|
|
<el-switch v-model="formData.configuration.EnablePick" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
<el-col :span="12" key="允许领料col"> |
|
|
|
<el-form-item label="允许领料formItem" key="允许领料formItem"> |
|
|
|
<el-switch key="允许领料switch" v-model="formData.configuration.EnablePick" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<!-- 允许过量领料 --> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="允许过量领料"> |
|
|
|
<el-switch v-model="formData.configuration.EnableOverPick" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
<el-col :span="12" key="允许过量领料col"> |
|
|
|
<el-form-item label="允许过量领料formItem" key="允许过量领料formItem"> |
|
|
|
<el-switch key="允许过量领料switch" v-model="formData.configuration.EnableOverPick" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<!-- 允许整包存储 --> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="允许整包存储"> |
|
|
|
<el-switch v-model="formData.configuration.EnableWholeStore" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
<el-col :span="12" key="允许整包存储col"> |
|
|
|
<el-form-item label="允许整包存储formItem" key="允许整包存储formItem"> |
|
|
|
<el-switch key="允许整包存储switch" v-model="formData.configuration.EnableWholeStore" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<!-- 允许散量存储 --> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="允许散量存储"> |
|
|
|
<el-switch v-model="formData.configuration.EnableBreakStore" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
<el-col :span="12" key="允许散量存储col"> |
|
|
|
<el-form-item key="允许散量存储formItem" label="允许散量存储"> |
|
|
|
<el-switch key="允许散量存储switch" v-model="formData.configuration.EnableBreakStore" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<!-- 允许出库 --> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="允许出库"> |
|
|
|
<el-switch v-model="formData.configuration.EnableShip" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
<el-col :span="12" key="允许出库col"> |
|
|
|
<el-form-item key="允许出库formItem" label="允许出库"> |
|
|
|
<el-switch key="允许出库switch" v-model="formData.configuration.EnableShip" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<!-- 允许入库 --> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="允许入库"> |
|
|
|
<el-switch v-model="formData.configuration.EnableReceive" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
<el-col :span="12" key="允许入库col"> |
|
|
|
<el-form-item key="允许入库formItem" label="允许入库"> |
|
|
|
<el-switch key="允许入库switch" v-model="formData.configuration.EnableReceive" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<!-- 允许退货到供应商 --> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="允许退货到供应商"> |
|
|
|
<el-switch v-model="formData.configuration.EnableReturnToSupplier" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
<el-col :span="12" key="允许退货到供应商col"> |
|
|
|
<el-form-item key="允许退货到供应商formItem" label="允许退货到供应商"> |
|
|
|
<el-switch key="允许退货到供应商switch" v-model="formData.configuration.EnableReturnToSupplier" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<!-- 允许接收客户退货 --> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="允许接收客户退货"> |
|
|
|
<el-switch v-model="formData.configuration.EnableReturnFromCustomer" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
<el-col :span="12" key="允许接收客户退货col"> |
|
|
|
<el-form-item key="允许接收客户退货formItem" label="允许接收客户退货"> |
|
|
|
<el-switch key="允许接收客户退货switch" v-model="formData.configuration.EnableReturnFromCustomer" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
<!-- 允许拆箱 --> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="允许拆箱"> |
|
|
|
<el-switch v-model="formData.configuration.EnableSplitBox" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
<el-col :span="12" key="允许拆箱col"> |
|
|
|
<el-form-item key="允许拆箱formItem" label="允许拆箱"> |
|
|
|
<el-switch key="允许拆箱switch" v-model="formData.configuration.EnableSplitBox" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
<!-- 允许拆托 --> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="允许拆托"> |
|
|
|
<el-switch v-model="formData.configuration.EnableSplitPallet" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
<el-col :span="12" key="允许拆托col"> |
|
|
|
<el-form-item key="允许拆托formItem" label="允许拆托"> |
|
|
|
<el-switch key="允许拆托switch" v-model="formData.configuration.EnableSplitPallet" active-value="TRUE" inactive-value="FALSE"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|