|
|
@ -36,7 +36,7 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="优先级" prop="priority"> |
|
|
|
<el-input-number key="priority" v-model="formData.priority" :min="0" /> |
|
|
|
<el-input-number key="priority" v-model="formData.priority" :min="0" :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
@ -60,6 +60,7 @@ |
|
|
|
placeholder="" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
@change="changeSupplierCustomer" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
@ -72,6 +73,7 @@ |
|
|
|
v-model="item.Operator" |
|
|
|
placeholder="请选择范围" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
@ -89,6 +91,7 @@ |
|
|
|
collapse-tags |
|
|
|
filterable |
|
|
|
:filter-method="filterMethod" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="cur in options.supplierList" |
|
|
@ -105,6 +108,7 @@ |
|
|
|
placeholder="" |
|
|
|
@change="changeItemsType" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="item.label" |
|
|
@ -117,6 +121,7 @@ |
|
|
|
v-model="item.Operator" |
|
|
|
placeholder="请选择范围" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
@ -133,6 +138,7 @@ |
|
|
|
multiple |
|
|
|
collapse-tags |
|
|
|
v-if="item.ParamCode == 'ItemType'" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="cur in getStrDictOptions(DICT_TYPE.ITEM_TYPE)" |
|
|
@ -149,6 +155,7 @@ |
|
|
|
multiple |
|
|
|
collapse-tags |
|
|
|
v-else-if="item.ParamCode == 'AbcClass'" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="cur in getStrDictOptions(DICT_TYPE.ABC_CLASS)" |
|
|
@ -165,6 +172,7 @@ |
|
|
|
multiple |
|
|
|
collapse-tags |
|
|
|
v-if="item.ParamCode == 'ItemGroup'" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="cur in getStrDictOptions(DICT_TYPE.ITEM_GROUP)" |
|
|
@ -186,6 +194,7 @@ |
|
|
|
clearable |
|
|
|
style="flex: 1" |
|
|
|
v-else-if="item.ParamCode == 'Project'" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
/> |
|
|
|
<el-input key="物料" |
|
|
|
v-model="item.Value" |
|
|
@ -193,6 +202,7 @@ |
|
|
|
clearable |
|
|
|
style="flex: 1" |
|
|
|
v-else-if="item.ParamCode == 'ItemCode'" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<!-- 选择重量体积还是面积 --> |
|
|
@ -202,6 +212,7 @@ |
|
|
|
placeholder="" |
|
|
|
@change="changeCalculation" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
@ -214,6 +225,7 @@ |
|
|
|
v-model="item.Operator" |
|
|
|
placeholder="请选择范围" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
@ -229,6 +241,7 @@ |
|
|
|
}`" |
|
|
|
clearable |
|
|
|
style="flex: 1" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<!-- 库存状态 --> |
|
|
@ -237,6 +250,7 @@ |
|
|
|
v-model="item.Operator" |
|
|
|
placeholder="请选择范围" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
@ -252,6 +266,7 @@ |
|
|
|
clearable |
|
|
|
multiple |
|
|
|
collapse-tags |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="cur in getStrDictOptions(DICT_TYPE.INVENTORY_STATUS)" |
|
|
@ -267,6 +282,7 @@ |
|
|
|
v-model="item.Operator" |
|
|
|
placeholder="请选择范围" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
@ -282,6 +298,7 @@ |
|
|
|
clearable |
|
|
|
multiple |
|
|
|
collapse-tags |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="cur in getStrDictOptions(DICT_TYPE.STORAGE_TYPE)" |
|
|
@ -297,6 +314,7 @@ |
|
|
|
v-model="item.Operator" |
|
|
|
placeholder="请选择范围" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
:disabled="formData.name=='默认规则'&&formType=='update'" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
@ -313,7 +331,7 @@ |
|
|
|
/> --> |
|
|
|
<el-input key="库存事务Value" style="flex:1" placeholder="请选择库存事务" disabled v-model="item.Value" @blur="blurTransactionType"> |
|
|
|
<template #suffix> |
|
|
|
<el-button type="text" plain style="color:var(--el-button-text-color)" @click="searchTransactionType"> |
|
|
|
<el-button :disabled="formData.name=='默认规则'&&formType=='update'" type="text" plain style="color:var(--el-button-text-color)" @click="searchTransactionType"> |
|
|
|
<Icon icon="ep:search" class="mr-5px" /> |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|