|
@ -12,35 +12,35 @@ |
|
|
> |
|
|
> |
|
|
<!-- 规则 --> |
|
|
<!-- 规则 --> |
|
|
<div class="item"> |
|
|
<div class="item"> |
|
|
<div class="title">规则</div> |
|
|
<div class="title">{{t('ts.规则').replace('ts.','')}}</div> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-form-item label="代码" prop="strategyCode"> |
|
|
<el-form-item :label="t('ts.代码').replace('ts.','')" prop="strategyCode"> |
|
|
<el-input key="strategyCode" |
|
|
<el-input key="strategyCode" |
|
|
v-model="formData.strategyCode" |
|
|
v-model="formData.strategyCode" |
|
|
placeholder="请输入代码" |
|
|
:placeholder="t('ts.请输入代码').replace('ts.','')" |
|
|
clearable |
|
|
clearable |
|
|
disabled |
|
|
disabled |
|
|
/> |
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-form-item label="名称" prop="name"> |
|
|
<el-form-item :label="t('ts.名称').replace('ts.','')" prop="name"> |
|
|
<el-input key="name" v-model="formData.name" placeholder="请输入名称" clearable /> |
|
|
<el-input key="name" v-model="formData.name" :placeholder="t('ts.请输入名称').replace('ts.','')" clearable /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-form-item label="描述" prop="description"> |
|
|
<el-form-item :label="t('ts.描述').replace('ts.','')" prop="description"> |
|
|
<el-input key="description" v-model="formData.description" placeholder="请输入描述" clearable /> |
|
|
<el-input key="description" v-model="formData.description" :placeholder="t('ts.请输入描述').replace('ts.','')" clearable /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item label="优先级" prop="priority"> |
|
|
<el-form-item :label="t('ts.优先级').replace('ts.','')" prop="priority"> |
|
|
<el-input-number key="priority" v-model="formData.priority" :min="0" /> |
|
|
<el-input-number key="priority" v-model="formData.priority" :min="0" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item label="状态" prop="status"> |
|
|
<el-form-item :label="t('ts.状态').replace('ts.','')" prop="status"> |
|
|
<el-switch key="status" v-model="formData.status" /> |
|
|
<el-switch key="status" v-model="formData.status" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
@ -48,22 +48,22 @@ |
|
|
</div> |
|
|
</div> |
|
|
<!-- 规则条件 --> |
|
|
<!-- 规则条件 --> |
|
|
<div key="规则条件" class="item mt-20px"> |
|
|
<div key="规则条件" class="item mt-20px"> |
|
|
<div key="规则条件title" class="title">规则条件</div> |
|
|
<div key="规则条件title" class="title">{{t('ts.规则条件').replace('ts.','')}}</div> |
|
|
<el-row key="规则条件row"> |
|
|
<el-row key="规则条件row"> |
|
|
<el-col :span="24" v-for="(item, index) in formData.condition" :key="'规则条件row'+index"> |
|
|
<el-col :span="24" v-for="(item, index) in formData.condition" :key="'规则条件row'+index"> |
|
|
<!-- 供应商类型 --> |
|
|
<!-- 供应商类型 --> |
|
|
<el-form-item key="供应商类型formItem" |
|
|
<el-form-item key="供应商类型formItem" |
|
|
v-if="item.ParamCode == 'SupplierType'" |
|
|
v-if="item.ParamCode == 'SupplierType'" |
|
|
label="供应商类型" |
|
|
:label="t('ts.供应商类型').replace('ts.','')" |
|
|
class="flex-top err-120" |
|
|
class="flex-top err-120" |
|
|
> |
|
|
> |
|
|
<el-select key="供应商类型Operator" |
|
|
<el-select key="供应商类型Operator" |
|
|
v-model="item.Operator" |
|
|
v-model="item.Operator" |
|
|
placeholder="请选择范围" |
|
|
:placeholder="t('ts.请选择范围').replace('ts.','')" |
|
|
style="width: 110px; margin-right: 10px" |
|
|
style="width: 110px; margin-right: 10px" |
|
|
> |
|
|
> |
|
|
<el-option |
|
|
<el-option |
|
|
:label="cur.label" |
|
|
:label="t(`ts.${cur.label}`).replace('ts.','')" |
|
|
:value="cur.value" |
|
|
:value="cur.value" |
|
|
v-for="cur in options.supplierTypeRangeOptions" |
|
|
v-for="cur in options.supplierTypeRangeOptions" |
|
|
:key="'供应商类型Operator'+cur.value" |
|
|
:key="'供应商类型Operator'+cur.value" |
|
@ -71,7 +71,7 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
<el-select key="供应商类型Value" |
|
|
<el-select key="供应商类型Value" |
|
|
v-model="item.Value" |
|
|
v-model="item.Value" |
|
|
placeholder="请选择供应商类型" |
|
|
:placeholder="t('ts.请选择供应商类型').replace('ts.','')" |
|
|
style="flex: 1" |
|
|
style="flex: 1" |
|
|
clearable |
|
|
clearable |
|
|
@change="changeSupplierType" |
|
|
@change="changeSupplierType" |
|
@ -79,7 +79,7 @@ |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)" |
|
|
v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)" |
|
|
:key="'供应商类型Value'+dict.value" |
|
|
:key="'供应商类型Value'+dict.value" |
|
|
:label="dict.label" |
|
|
:label="t(`ts.${dict.label}`).replace('ts.','')" |
|
|
:value="dict.value" |
|
|
:value="dict.value" |
|
|
/> |
|
|
/> |
|
|
</el-select> |
|
|
</el-select> |
|
@ -87,16 +87,16 @@ |
|
|
<!-- 供应商 --> |
|
|
<!-- 供应商 --> |
|
|
<el-form-item key="供应商formItem" |
|
|
<el-form-item key="供应商formItem" |
|
|
v-else-if="item.ParamCode == 'SupplierCode'" |
|
|
v-else-if="item.ParamCode == 'SupplierCode'" |
|
|
label="供应商" |
|
|
:label="t('ts.供应商').replace('ts.','')" |
|
|
class="err-120" |
|
|
class="err-120" |
|
|
> |
|
|
> |
|
|
<el-select key="供应商Operator" |
|
|
<el-select key="供应商Operator" |
|
|
v-model="item.Operator" |
|
|
v-model="item.Operator" |
|
|
placeholder="请选择范围" |
|
|
:placeholder="t('ts.请选择范围').replace('ts.','')" |
|
|
style="width: 110px; margin-right: 10px" |
|
|
style="width: 110px; margin-right: 10px" |
|
|
> |
|
|
> |
|
|
<el-option |
|
|
<el-option |
|
|
:label="cur.label" |
|
|
:label="t(`ts.${cur.label}`).replace('ts.','')" |
|
|
:value="cur.value" |
|
|
:value="cur.value" |
|
|
v-for="cur in options.supplierRangeOptions" |
|
|
v-for="cur in options.supplierRangeOptions" |
|
|
:key="'供应商Operator'+cur.value" |
|
|
:key="'供应商Operator'+cur.value" |
|
@ -104,7 +104,7 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
<el-select key="供应商Value" |
|
|
<el-select key="供应商Value" |
|
|
v-model="item.Value" |
|
|
v-model="item.Value" |
|
|
placeholder="请选择供应商" |
|
|
:placeholder="t('ts.请选择供应商').replace('ts.','')" |
|
|
style="flex: 1" |
|
|
style="flex: 1" |
|
|
clearable |
|
|
clearable |
|
|
multiple |
|
|
multiple |
|
@ -113,7 +113,7 @@ |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="cur in options.supplierList" |
|
|
v-for="cur in options.supplierList" |
|
|
:key="'供应商Value'+cur.code" |
|
|
:key="'供应商Value'+cur.code" |
|
|
:label="cur.name" |
|
|
:label="t(`ts.${cur.name}`).replace('ts.','')" |
|
|
:value="cur.code" |
|
|
:value="cur.code" |
|
|
/> |
|
|
/> |
|
|
</el-select> |
|
|
</el-select> |
|
@ -121,7 +121,7 @@ |
|
|
<!-- 星期几 --> |
|
|
<!-- 星期几 --> |
|
|
<el-form-item key="星期几formItem" |
|
|
<el-form-item key="星期几formItem" |
|
|
v-else-if="item.ParamCode == 'Weekday'" |
|
|
v-else-if="item.ParamCode == 'Weekday'" |
|
|
label="星期几" |
|
|
:label="t('ts.星期几').replace('ts.','')" |
|
|
class="flex-top err-120" |
|
|
class="flex-top err-120" |
|
|
> |
|
|
> |
|
|
<el-select key="星期几Operator" |
|
|
<el-select key="星期几Operator" |
|
@ -130,8 +130,8 @@ |
|
|
style="width: 110px; margin-right: 10px" |
|
|
style="width: 110px; margin-right: 10px" |
|
|
> |
|
|
> |
|
|
<el-option |
|
|
<el-option |
|
|
:label="cur.label" |
|
|
:label="t(`ts.${cur.label}`).replace('ts.','')" |
|
|
:value="cur.value" |
|
|
:value="cur.value" |
|
|
v-for="cur in options.weekRangeOptions" |
|
|
v-for="cur in options.weekRangeOptions" |
|
|
:key="'星期几Operator'+cur.value" |
|
|
:key="'星期几Operator'+cur.value" |
|
|
/> |
|
|
/> |
|
@ -139,7 +139,7 @@ |
|
|
<div class="checkbox"> |
|
|
<div class="checkbox"> |
|
|
<el-checkbox-group v-model="item.Value"> |
|
|
<el-checkbox-group v-model="item.Value"> |
|
|
<el-checkbox |
|
|
<el-checkbox |
|
|
:label="cur.label" |
|
|
:label="t(`ts.${cur.label}`).replace('ts.','')" |
|
|
v-for="cur in options.weekOptions" |
|
|
v-for="cur in options.weekOptions" |
|
|
:key="'星期几Value'+cur.value" |
|
|
:key="'星期几Value'+cur.value" |
|
|
/> |
|
|
/> |
|
@ -151,37 +151,37 @@ |
|
|
</div> |
|
|
</div> |
|
|
<!-- 规则配置 --> |
|
|
<!-- 规则配置 --> |
|
|
<div class="item mt-20px" key="规则配置"> |
|
|
<div class="item mt-20px" key="规则配置"> |
|
|
<div class="title" key="规则配置title">规则配置</div> |
|
|
<div class="title" key="规则配置title">{{t('ts.规则配置').replace('ts.','')}}</div> |
|
|
<el-row key="规则配置Row"> |
|
|
<el-row key="规则配置Row"> |
|
|
<!-- 开始时间 --> |
|
|
<!-- 开始时间 --> |
|
|
<el-col :span="24" key="规则配置Col"> |
|
|
<el-col :span="24" key="规则配置Col"> |
|
|
<!-- 开始时间 --> |
|
|
<!-- 开始时间 --> |
|
|
<el-form-item key="开始时间formItem" label="开始时间" prop="BeginTime"> |
|
|
<el-form-item key="开始时间formItem" :label="t('ts.开始时间').replace('ts.','')" prop="BeginTime"> |
|
|
<el-time-select key="开始时间time" |
|
|
<el-time-select key="开始时间time" |
|
|
v-model="formData.configuration.BeginTime" |
|
|
v-model="formData.configuration.BeginTime" |
|
|
start="00:00" |
|
|
start="00:00" |
|
|
end="23:59" |
|
|
end="23:59" |
|
|
step="00:15" |
|
|
step="00:15" |
|
|
placeholder="请选择开始时间" |
|
|
:placeholder="t('ts.请选择开始时间').replace('ts.','')" |
|
|
style="width: 100%" |
|
|
style="width: 100%" |
|
|
/> |
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<!-- 结束时间 --> |
|
|
<!-- 结束时间 --> |
|
|
<el-form-item key="结束时间formItem" label="结束时间" prop="EndTime"> |
|
|
<el-form-item key="结束时间formItem" :label="t('ts.结束时间').replace('ts.','')" prop="EndTime"> |
|
|
<el-time-select key="结束时间time" |
|
|
<el-time-select key="结束时间time" |
|
|
v-model="formData.configuration.EndTime" |
|
|
v-model="formData.configuration.EndTime" |
|
|
start="00:00" |
|
|
start="00:00" |
|
|
end="23:59" |
|
|
end="23:59" |
|
|
step="00:15" |
|
|
step="00:15" |
|
|
placeholder="请选择结束时间" |
|
|
:placeholder="t('ts.请选择结束时间').replace('ts.','')" |
|
|
style="width: 100%" |
|
|
style="width: 100%" |
|
|
/> |
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<!-- 仓库 --> |
|
|
<!-- 仓库 --> |
|
|
<el-form-item key="仓库formItem" label="仓库" prop="WarehouseCode"> |
|
|
<el-form-item key="仓库formItem" :label="t('ts.仓库').replace('ts.','')" prop="WarehouseCode"> |
|
|
<el-select key="仓库" |
|
|
<el-select key="仓库" |
|
|
v-model="formData.configuration.WarehouseCode" |
|
|
v-model="formData.configuration.WarehouseCode" |
|
|
:placeholder="`请选择${ |
|
|
:placeholder="`${t('ts.请选择').replace('ts.','')}${ |
|
|
formData.configuration.WarehouseCode == 'WarehouseCode' |
|
|
formData.configuration.WarehouseCode == 'WarehouseCode' |
|
|
? '仓库' |
|
|
? '仓库' |
|
|
: formData.configuration.WarehouseCode == 'AreaCode' |
|
|
: formData.configuration.WarehouseCode == 'AreaCode' |
|
@ -203,10 +203,10 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<!-- 月台 --> |
|
|
<!-- 月台 --> |
|
|
<el-form-item key="月台formItem" label="月台" prop="DockCode"> |
|
|
<el-form-item key="月台formItem" :label="t('ts.月台').replace('ts.','')" prop="DockCode"> |
|
|
<el-select key="月台" |
|
|
<el-select key="月台" |
|
|
v-model="formData.configuration.DockCode" |
|
|
v-model="formData.configuration.DockCode" |
|
|
placeholder="请选择月台" |
|
|
:placeholder="t('ts.请选择月台').replace('ts.','')" |
|
|
clearable |
|
|
clearable |
|
|
> |
|
|
> |
|
|
<el-option |
|
|
<el-option |
|
@ -218,10 +218,10 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<!-- 在途库位 --> |
|
|
<!-- 在途库位 --> |
|
|
<el-form-item key="在途库位formItem" label="在途库位" prop="OnTheWayLocationCode"> |
|
|
<el-form-item key="在途库位formItem" :label="t('ts.在途库位').replace('ts.','')" prop="OnTheWayLocationCode"> |
|
|
<el-select key="在途库位" |
|
|
<el-select key="在途库位" |
|
|
v-model="formData.configuration.OnTheWayLocationCode" |
|
|
v-model="formData.configuration.OnTheWayLocationCode" |
|
|
placeholder="请选择在途库位" |
|
|
:placeholder="t('ts.请选择在途库位').replace('ts.','')" |
|
|
clearable |
|
|
clearable |
|
|
filterable |
|
|
filterable |
|
|
:filter-method="filterMethodFromLocation" |
|
|
:filter-method="filterMethodFromLocation" |
|
@ -235,12 +235,12 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<!-- 收货人 --> |
|
|
<!-- 收货人 --> |
|
|
<el-form-item key="收货人formItem" label="收货人" prop="Receiver"> |
|
|
<el-form-item key="收货人formItem" :label="t('ts.收货人').replace('ts.','')" prop="Receiver"> |
|
|
<el-input key="收货人" v-model="formData.configuration.Receiver" placeholder="请输入收货人名称" clearable /> |
|
|
<el-input key="收货人" v-model="formData.configuration.Receiver" :placeholder="t('ts.请输入收货人名称').replace('ts.','')" clearable /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<!-- 在途库位 --> |
|
|
<!-- 在途库位 --> |
|
|
<el-form-item key="联系电话formItem" label="联系电话" prop="configuration.PhoneNumber"> |
|
|
<el-form-item key="联系电话formItem" :label="t('ts.联系电话').replace('ts.','')" prop="configuration.PhoneNumber"> |
|
|
<el-input key="联系电话" v-model="formData.configuration.PhoneNumber" placeholder="请输入联系电话" clearable /> |
|
|
<el-input key="联系电话" v-model="formData.configuration.PhoneNumber" :placeholder="t('ts.请输入联系电话').replace('ts.','')" clearable /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|