|
@ -1,12 +1,12 @@ |
|
|
<!-- 到货验货任务拆分策略弹出层 --> |
|
|
<!-- 到货验货任务拆分策略弹出层 --> |
|
|
<template> |
|
|
<template> |
|
|
<Dialog :title="dialogTitle" v-model="dialogVisible"> |
|
|
<Dialog :title="dialogTitle" v-model="dialogVisible" style="width: 700px;"> |
|
|
<div class="p-20px m--10px" style="max-height: 500px;overflow-y: auto;"> |
|
|
<div class="p-20px m--10px" style="max-height: 50vh;overflow-y: auto;"> |
|
|
<!-- 规则 --> |
|
|
<!-- 规则 --> |
|
|
<el-form ref="formRef" :model="formData" :rules="rules" label-width="140px" label-position="left"> |
|
|
<el-form ref="formRef" :model="formData" :rules="rules" label-width="140px" label-position="left"> |
|
|
<div class="item"> |
|
|
<div class="item"> |
|
|
<div class="title">规则</div> |
|
|
<div class="title">规则</div> |
|
|
<el-row> |
|
|
<el-row gutter="10"> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-form-item label="代码" prop="strategyCode"> |
|
|
<el-form-item label="代码" prop="strategyCode"> |
|
|
<el-input v-model="formData.strategyCode" placeholder="请输入代码" clearable disabled /> |
|
|
<el-input v-model="formData.strategyCode" placeholder="请输入代码" clearable disabled /> |
|
@ -37,7 +37,7 @@ |
|
|
<!-- 规则条件 --> |
|
|
<!-- 规则条件 --> |
|
|
<div class="item mt-20px"> |
|
|
<div class="item mt-20px"> |
|
|
<div class="title">规则条件</div> |
|
|
<div class="title">规则条件</div> |
|
|
<el-row> |
|
|
<el-row gutter="10"> |
|
|
<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="index"> |
|
|
<!-- 供应商类型 --> |
|
|
<!-- 供应商类型 --> |
|
|
<el-form-item v-if="item.ParamCode == 'SupplierType'" label="供应商类型" class="flex-top err-120"> |
|
|
<el-form-item v-if="item.ParamCode == 'SupplierType'" label="供应商类型" class="flex-top err-120"> |
|
@ -67,7 +67,7 @@ |
|
|
<!-- 规则配置 --> |
|
|
<!-- 规则配置 --> |
|
|
<div class="item mt-20px"> |
|
|
<div class="item mt-20px"> |
|
|
<div class="title">规则配置</div> |
|
|
<div class="title">规则配置</div> |
|
|
<el-row> |
|
|
<el-row gutter="10"> |
|
|
<el-col :span="24" v-for="(item, index) in formData.configuration" :key="index"> |
|
|
<el-col :span="24" v-for="(item, index) in formData.configuration" :key="index"> |
|
|
<!-- 按零件拆分 --> |
|
|
<!-- 按零件拆分 --> |
|
|
<el-form-item v-if="item.ParamCode == 'ByItem'" label="按零件拆分"> |
|
|
<el-form-item v-if="item.ParamCode == 'ByItem'" label="按零件拆分"> |
|
@ -276,7 +276,7 @@ const resetForm = () => { |
|
|
{ ParamCode: 'SupplierCode', Operator: "IN", Value: "" }, |
|
|
{ ParamCode: 'SupplierCode', Operator: "IN", Value: "" }, |
|
|
], |
|
|
], |
|
|
configuration: [ |
|
|
configuration: [ |
|
|
// 按零件拆分 |
|
|
// 按零件拆分 |
|
|
{ ParamCode: 'ByItem', Value: false }, |
|
|
{ ParamCode: 'ByItem', Value: false }, |
|
|
// 按批次拆分 |
|
|
// 按批次拆分 |
|
|
{ ParamCode: 'ByBatch', Value: false }, |
|
|
{ ParamCode: 'ByBatch', Value: false }, |
|
|