Browse Source

HL-5886所有策略的默认规则不允许删除,不允许关闭(状态必须是开启),不允许修改优先级,不允许修改规则条件,但允许修改规则配置

hella_online_20240911
yufei_wang 2 months ago
parent
commit
43978bc62c
  1. 6
      src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue
  2. 12
      src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue
  3. 22
      src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue
  4. 8
      src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/AddForm.vue
  5. 6
      src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/AddForm.vue
  6. 12
      src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/AddForm.vue
  7. 8
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue
  8. 22
      src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue
  9. 11
      src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/AddForm.vue
  10. 5
      src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/AddForm.vue

6
src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue

@ -35,7 +35,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="优先级" prop="priority">
<el-input-number v-model="formData.priority" :min="0" />
<el-input-number v-model="formData.priority" :min="0" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -60,6 +60,7 @@
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -74,6 +75,7 @@
style="flex: 1"
clearable
@change="changeSupplierType"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)"
@ -93,6 +95,7 @@
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -108,6 +111,7 @@
clearable
multiple
collapse-tags
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
v-for="cur in options.supplierList"

12
src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue

@ -35,7 +35,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="优先级" prop="priority">
<el-input-number v-model="formData.priority" :min="0" />
<el-input-number v-model="formData.priority" :min="0" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -58,6 +58,7 @@
placeholder=""
style="width: 110px; margin-right: 10px"
@change="changeSupplierCustomer"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -70,6 +71,7 @@
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -85,6 +87,7 @@
clearable
multiple
collapse-tags
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
v-for="cur in options.supplierList"
@ -101,6 +104,7 @@
placeholder=""
@change="changeItemsType"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="item.label"
@ -113,6 +117,7 @@
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -129,6 +134,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)"
@ -145,6 +151,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)"
@ -159,6 +166,7 @@
clearable
style="flex: 1"
v-else-if="item.ParamCode == 'ItemGroup'"
:disabled="formData.name=='默认规则'&&formType=='update'"
/>
<el-input
v-model="item.Value"
@ -166,6 +174,7 @@
clearable
style="flex: 1"
v-else-if="item.ParamCode == 'Project'"
:disabled="formData.name=='默认规则'&&formType=='update'"
/>
<el-input
v-model="item.Value"
@ -173,6 +182,7 @@
clearable
style="flex: 1"
v-else-if="item.ParamCode == 'ItemCode'"
:disabled="formData.name=='默认规则'&&formType=='update'"
/>
</el-form-item>
</el-col>

22
src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue

@ -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>

8
src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/AddForm.vue

@ -36,7 +36,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="优先级" prop="priority">
<el-input-number v-model="formData.priority" :min="0" />
<el-input-number v-model="formData.priority" :min="0" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -57,6 +57,7 @@
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -71,6 +72,7 @@
style="flex: 1"
clearable
@change="changeSupplierType"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)"
@ -96,6 +98,7 @@
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -109,6 +112,7 @@
placeholder="请选择供应商"
style="flex: 1"
clearable
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
v-for="cur in options.supplierList"
@ -124,6 +128,7 @@
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -137,6 +142,7 @@
placeholder="请输入物料,多个物料以逗号分隔"
clearable
style="flex: 1"
:disabled="formData.name=='默认规则'&&formType=='update'"
/>
</el-form-item>
</el-col>

6
src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/AddForm.vue

@ -36,7 +36,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="优先级" prop="priority">
<el-input-number v-model="formData.priority" :min="0" />
<el-input-number v-model="formData.priority" :min="0" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -61,6 +61,7 @@
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -75,6 +76,7 @@
style="flex: 1"
clearable
@change="changeSupplierType"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)"
@ -94,6 +96,7 @@
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -109,6 +112,7 @@
clearable
multiple
collapse-tags
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
v-for="cur in options.supplierList"

12
src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/AddForm.vue

@ -35,7 +35,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="优先级" prop="priority">
<el-input-number v-model="formData.priority" :min="0" />
<el-input-number v-model="formData.priority" :min="0" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -58,6 +58,7 @@
placeholder=""
@change="changeItemsType"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -70,6 +71,7 @@
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -86,6 +88,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)"
@ -102,6 +105,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)"
@ -116,6 +120,7 @@
clearable
style="flex: 1"
v-else-if="item.ParamCode == 'ItemGroup'"
:disabled="formData.name=='默认规则'&&formType=='update'"
/>
<el-input
v-model="item.Value"
@ -123,6 +128,7 @@
clearable
style="flex: 1"
v-else-if="item.ParamCode == 'Project'"
:disabled="formData.name=='默认规则'&&formType=='update'"
/>
<el-input
v-model="item.Value"
@ -130,6 +136,7 @@
clearable
style="flex: 1"
v-else-if="item.ParamCode == 'ItemCode'"
:disabled="formData.name=='默认规则'&&formType=='update'"
/>
</el-form-item>
<!-- 仓库 库区 库位组 库位 -->
@ -139,6 +146,7 @@
placeholder=""
style="width: 110px; margin-right: 10px"
@change="changeWarehouse"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -151,6 +159,7 @@
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -176,6 +185,7 @@
multiple
collapse-tags
style="flex: 1"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
v-for="cur in options.warehouseList"

8
src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue

@ -36,7 +36,7 @@
</el-col>
<el-col :span="12">
<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" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -61,6 +61,7 @@
v-model="item.Operator"
:placeholder="t('ts.请选择范围').replace('ts.','')"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="t(`ts.${cur.label}`).replace('ts.','')"
@ -75,6 +76,7 @@
style="flex: 1"
clearable
@change="changeSupplierType"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)"
@ -94,6 +96,7 @@
v-model="item.Operator"
:placeholder="t('ts.请选择范围').replace('ts.','')"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="t(`ts.${cur.label}`).replace('ts.','')"
@ -109,6 +112,7 @@
clearable
multiple
collapse-tags
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
v-for="cur in options.supplierList"
@ -128,6 +132,7 @@
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="t(`ts.${cur.label}`).replace('ts.','')"
@ -142,6 +147,7 @@
:label="t(`ts.${cur.label}`).replace('ts.','')"
v-for="cur in options.weekOptions"
:key="'星期几Value'+cur.value"
:disabled="formData.name=='默认规则'&&formType=='update'"
/>
</el-checkbox-group>
</div>

22
src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue

@ -35,7 +35,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">
@ -58,6 +58,7 @@
placeholder=""
style="width: 110px; margin-right: 10px"
@change="changeSupplierCustomer"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -70,6 +71,7 @@
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -87,6 +89,7 @@
collapse-tags
filterable
:filter-method="filterMethod"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
v-for="cur in options.supplierList"
@ -103,6 +106,7 @@
placeholder=""
@change="changeItemsType"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="item.label"
@ -115,6 +119,7 @@
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -131,6 +136,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)"
@ -147,6 +153,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)"
@ -161,6 +168,7 @@
clearable
style="flex: 1"
v-else-if="item.ParamCode == 'ItemGroup'"
:disabled="formData.name=='默认规则'&&formType=='update'"
/>
<el-input key="项目"
v-model="item.Value"
@ -168,6 +176,7 @@
clearable
style="flex: 1"
v-else-if="item.ParamCode == 'Project'"
:disabled="formData.name=='默认规则'&&formType=='update'"
/>
<el-input key="物料"
v-model="item.Value"
@ -175,6 +184,7 @@
clearable
style="flex: 1"
v-else-if="item.ParamCode == 'ItemCode'"
:disabled="formData.name=='默认规则'&&formType=='update'"
/>
</el-form-item>
<!-- 选择重量体积还是面积 -->
@ -184,6 +194,7 @@
placeholder=""
@change="changeCalculation"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -196,6 +207,7 @@
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -211,6 +223,7 @@
}`"
clearable
style="flex: 1"
:disabled="formData.name=='默认规则'&&formType=='update'"
/>
</el-form-item>
<!-- 库存状态 -->
@ -219,6 +232,7 @@
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -234,6 +248,7 @@
clearable
multiple
collapse-tags
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
v-for="cur in getStrDictOptions(DICT_TYPE.INVENTORY_STATUS)"
@ -249,6 +264,7 @@
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -264,6 +280,7 @@
clearable
multiple
collapse-tags
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
v-for="cur in getStrDictOptions(DICT_TYPE.STORAGE_TYPE)"
@ -279,6 +296,7 @@
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -295,7 +313,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>

11
src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/AddForm.vue

@ -35,7 +35,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="优先级" prop="priority">
<el-input-number v-model="formData.priority" :min="0" />
<el-input-number v-model="formData.priority" :min="0" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -67,6 +67,7 @@
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -82,6 +83,7 @@
clearable
multiple
collapse-tags
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
v-for="cur in getStrDictOptions(DICT_TYPE.CONTAINER_TYPE)"
@ -98,6 +100,7 @@
placeholder=""
@change="changeItemsType"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -110,6 +113,7 @@
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -126,6 +130,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)"
@ -142,6 +147,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)"
@ -156,6 +162,7 @@
clearable
style="flex: 1"
v-else-if="item.ParamCode == 'ItemGroup'"
:disabled="formData.name=='默认规则'&&formType=='update'"
/>
<el-input
v-model="item.Value"
@ -163,6 +170,7 @@
clearable
style="flex: 1"
v-else-if="item.ParamCode == 'Project'"
:disabled="formData.name=='默认规则'&&formType=='update'"
/>
<el-input
v-model="item.Value"
@ -170,6 +178,7 @@
clearable
style="flex: 1"
v-else-if="item.ParamCode == 'ItemCode'"
:disabled="formData.name=='默认规则'&&formType=='update'"
/>
</el-form-item>
</el-col>

5
src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/AddForm.vue

@ -35,7 +35,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="优先级" prop="priority">
<el-input-number v-model="formData.priority" :min="0" />
<el-input-number v-model="formData.priority" :min="0" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -59,6 +59,7 @@
placeholder=""
style="width: 120px; margin-right: 10px"
@change="changeWarehouse"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -71,6 +72,7 @@
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
@ -96,6 +98,7 @@
style="flex: 1"
multiple
collapse-tags
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
v-for="cur in options.warehouseList"

Loading…
Cancel
Save