|
|
@ -25,22 +25,22 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="名称" prop="name"> |
|
|
|
<el-input key="name" v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
|
<el-input key="name" v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.priority==0&&formType=='update'"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="描述" prop="description"> |
|
|
|
<el-input key="description" v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
|
<el-input key="description" v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.priority==0&&formType=='update'"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="优先级" prop="priority"> |
|
|
|
<el-input-number key="priority" v-model="formData.priority" :min="1" :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
|
<el-input-number key="priority" v-model="formData.priority" :min="formData.priority==0&&formType=='update'?0:1" :disabled="formData.priority==0&&formType=='update'"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="状态" prop="status"> |
|
|
|
<el-switch key="status" v-model="formData.status" :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
|
<el-switch key="status" v-model="formData.status" :disabled="formData.priority==0&&formType=='update'"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
@ -57,6 +57,7 @@ |
|
|
|
v-model="item.ParamCode" |
|
|
|
placeholder="" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
@ -69,7 +70,7 @@ |
|
|
|
v-model="item.Operator" |
|
|
|
placeholder="请选择范围" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
@ -79,7 +80,7 @@ |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
<!-- 仓库 --> |
|
|
|
<el-input style="flex:1" v-show="item.ParamCode == 'WarehouseCode'" placeholder="请选择仓库" v-model="item.Value" @blur="blurWarehouse({module:'condition',type:'WarehouseCode'})"> |
|
|
|
<el-input style="flex:1" v-show="item.ParamCode == 'WarehouseCode'" placeholder="请选择仓库" v-model="item.Value" @blur="blurWarehouse({module:'condition',type:'WarehouseCode'})" :disabled="formData.priority==0&&formType=='update'"> |
|
|
|
<template #suffix> |
|
|
|
<el-button type="text" plain style="color:var(--el-button-text-color)" @click="searchWarehouse({module:'condition',type:'WarehouseCode'})"> |
|
|
|
<Icon icon="ep:search" class="mr-5px" /> |
|
|
@ -121,7 +122,7 @@ |
|
|
|
placeholder="" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
@change="changeSupplierCustomer" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
@ -134,7 +135,7 @@ |
|
|
|
v-model="item.Operator" |
|
|
|
placeholder="请选择范围" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
@ -152,7 +153,7 @@ |
|
|
|
collapse-tags |
|
|
|
filterable |
|
|
|
:filter-method="filterMethod" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="cur in options.supplierList" |
|
|
@ -169,7 +170,7 @@ |
|
|
|
placeholder="" |
|
|
|
@change="changeItemsType" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="item.label" |
|
|
@ -182,7 +183,7 @@ |
|
|
|
v-model="item.Operator" |
|
|
|
placeholder="请选择范围" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
@ -199,7 +200,7 @@ |
|
|
|
multiple |
|
|
|
collapse-tags |
|
|
|
v-if="item.ParamCode == 'ItemType'" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="cur in getStrDictOptions(DICT_TYPE.ITEM_TYPE)" |
|
|
@ -216,7 +217,7 @@ |
|
|
|
multiple |
|
|
|
collapse-tags |
|
|
|
v-else-if="item.ParamCode == 'AbcClass'" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="cur in getStrDictOptions(DICT_TYPE.ABC_CLASS)" |
|
|
@ -231,7 +232,7 @@ |
|
|
|
clearable |
|
|
|
style="flex: 1" |
|
|
|
v-else-if="item.ParamCode == 'ItemGroup'" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
/> |
|
|
|
<el-input key="项目" |
|
|
|
v-model="item.Value" |
|
|
@ -239,7 +240,7 @@ |
|
|
|
clearable |
|
|
|
style="flex: 1" |
|
|
|
v-else-if="item.ParamCode == 'Project'" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
/> |
|
|
|
<el-input key="物料" |
|
|
|
v-model="item.Value" |
|
|
@ -247,7 +248,7 @@ |
|
|
|
clearable |
|
|
|
style="flex: 1" |
|
|
|
v-else-if="item.ParamCode == 'ItemCode'" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<!-- 选择重量体积还是面积 --> |
|
|
@ -257,7 +258,7 @@ |
|
|
|
placeholder="" |
|
|
|
@change="changeCalculation" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
@ -270,7 +271,7 @@ |
|
|
|
v-model="item.Operator" |
|
|
|
placeholder="请选择范围" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
@ -286,7 +287,7 @@ |
|
|
|
}`" |
|
|
|
clearable |
|
|
|
style="flex: 1" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
/> |
|
|
|
</el-form-item> --> |
|
|
|
<!-- 库存状态 --> |
|
|
@ -295,7 +296,7 @@ |
|
|
|
v-model="item.Operator" |
|
|
|
placeholder="请选择范围" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
@ -311,7 +312,7 @@ |
|
|
|
clearable |
|
|
|
multiple |
|
|
|
collapse-tags |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="cur in getStrDictOptions(DICT_TYPE.INVENTORY_STATUS)" |
|
|
@ -327,7 +328,7 @@ |
|
|
|
v-model="item.Operator" |
|
|
|
placeholder="请选择范围" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
@ -343,7 +344,7 @@ |
|
|
|
clearable |
|
|
|
multiple |
|
|
|
collapse-tags |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="cur in getStrDictOptions(DICT_TYPE.STORAGE_TYPE)" |
|
|
@ -359,7 +360,7 @@ |
|
|
|
v-model="item.Operator" |
|
|
|
placeholder="请选择范围" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
@ -370,7 +371,7 @@ |
|
|
|
</el-select> |
|
|
|
<el-input key="库存事务Value" style="flex:1" placeholder="请选择库存事务" disabled v-model="item.Value" @blur="blurTransactionType"> |
|
|
|
<template #suffix> |
|
|
|
<el-button :disabled="formData.name=='默认规则'&&formType=='update'" type="text" plain style="color:var(--el-button-text-color)" @click="searchTransactionType"> |
|
|
|
<el-button :disabled="formData.priority==0&&formType=='update'" type="text" plain style="color:var(--el-button-text-color)" @click="searchTransactionType"> |
|
|
|
<Icon icon="ep:search" class="mr-5px" /> |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
@ -382,7 +383,7 @@ |
|
|
|
v-model="item.Operator" |
|
|
|
placeholder="请选择范围" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
@ -393,7 +394,7 @@ |
|
|
|
</el-select> |
|
|
|
<el-input key="业务类型Value" style="flex:1" placeholder="请选择业务类型" disabled v-model="item.Value" @blur="blurTransactionType"> |
|
|
|
<template #suffix> |
|
|
|
<el-button :disabled="formData.name=='默认规则'&&formType=='update'" type="text" plain style="color:var(--el-button-text-color)" @click="searchBusinessType"> |
|
|
|
<el-button :disabled="formData.priority==0&&formType=='update'" type="text" plain style="color:var(--el-button-text-color)" @click="searchBusinessType"> |
|
|
|
<Icon icon="ep:search" class="mr-5px" /> |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|