Browse Source

策略整体删除按钮和判断问题

intex
zhang_li 2 weeks ago
parent
commit
1000609158
  1. 16
      src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue
  2. 4
      src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/index.vue
  3. 28
      src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue
  4. 4
      src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/index.vue
  5. 46
      src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue
  6. 4
      src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/index.vue
  7. 20
      src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/AddForm.vue
  8. 4
      src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/index.vue
  9. 23
      src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/AddForm.vue
  10. 4
      src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/index.vue
  11. 2
      src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/AddForm.vue
  12. 4
      src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/index.vue
  13. 16
      src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/AddForm.vue
  14. 4
      src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/index.vue
  15. 28
      src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/AddForm.vue
  16. 4
      src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/index.vue
  17. 18
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue
  18. 4
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue
  19. 55
      src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue
  20. 4
      src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue
  21. 2
      src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/AddForm.vue
  22. 4
      src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/index.vue
  23. 14
      src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/AddForm.vue
  24. 4
      src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/index.vue

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

@ -25,22 +25,22 @@
</el-col> </el-col>
<el-col :span="24" key="名称col"> <el-col :span="24" key="名称col">
<el-form-item key="名称formItem" label="名称" prop="name"> <el-form-item key="名称formItem" label="名称" prop="name">
<el-input key="名称input" v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-input key="名称input" v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.priority==0&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24" key="描述col"> <el-col :span="24" key="描述col">
<el-form-item key="描述formItem" label="描述" prop="description"> <el-form-item key="描述formItem" label="描述" prop="description">
<el-input key="描述input" v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-input key="描述input" v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.priority==0&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" key="优先级col"> <el-col :span="12" key="优先级col">
<el-form-item key="优先级formItem" label="优先级" prop="priority"> <el-form-item key="优先级formItem" label="优先级" prop="priority">
<el-input-number key="优先级input" v-model="formData.priority" :min="1" :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-input-number key="优先级input" v-model="formData.priority" :min="formData.priority==0&&formType=='update'?0:1" :disabled="formData.priority==0&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" key="状态col"> <el-col :span="12" key="状态col">
<el-form-item key="状态formItem" label="状态" prop="status"> <el-form-item key="状态formItem" label="状态" prop="status">
<el-switch key="状态switch" v-model="formData.status" :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-switch key="状态switch" v-model="formData.status" :disabled="formData.priority==0&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -60,7 +60,7 @@
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -75,7 +75,7 @@
style="flex: 1" style="flex: 1"
clearable clearable
@change="changeSupplierType" @change="changeSupplierType"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)" v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)"
@ -95,7 +95,7 @@
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -111,7 +111,7 @@
clearable clearable
multiple multiple
collapse-tags collapse-tags
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
v-for="cur in options.supplierList" v-for="cur in options.supplierList"

4
src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/index.vue

@ -144,8 +144,8 @@ const isShowMainButton = (row,val) => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0), hasPermi: 'wms:itembasic:delete' }), // defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0)}), //
] ]
} }

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

@ -25,22 +25,22 @@
</el-col> </el-col>
<el-col :span="24" key="名称col"> <el-col :span="24" key="名称col">
<el-form-item label="名称" prop="name" key="名称formItem"> <el-form-item label="名称" prop="name" key="名称formItem">
<el-input key="名称input" v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-input key="名称input" v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.priority==0&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24" key="描述col"> <el-col :span="24" key="描述col">
<el-form-item label="描述" prop="description" key="描述formItem"> <el-form-item label="描述" prop="description" key="描述formItem">
<el-input key="描述input" v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-input key="描述input" v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.priority==0&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" key="优先级col"> <el-col :span="12" key="优先级col">
<el-form-item label="优先级" prop="priority" key="优先级formItem"> <el-form-item label="优先级" prop="priority" key="优先级formItem">
<el-input-number key="优先级input" v-model="formData.priority" :min="1" :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-input-number key="优先级input" v-model="formData.priority" :min="formData.priority==0&&formType=='update'?0:1" :disabled="formData.priority==0&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" key="状态col"> <el-col :span="12" key="状态col">
<el-form-item label="状态" prop="status" key="状态formItem"> <el-form-item label="状态" prop="status" key="状态formItem">
<el-switch key="状态input" v-model="formData.status" :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-switch key="状态input" v-model="formData.status" :disabled="formData.priority==0&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -58,7 +58,7 @@
placeholder="" placeholder=""
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
@change="changeSupplierCustomer" @change="changeSupplierCustomer"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -71,7 +71,7 @@
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -87,7 +87,7 @@
clearable clearable
multiple multiple
collapse-tags collapse-tags
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
v-for="cur in options.supplierList" v-for="cur in options.supplierList"
@ -104,7 +104,7 @@
placeholder="" placeholder=""
@change="changeItemsType" @change="changeItemsType"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="item.label" :label="item.label"
@ -117,7 +117,7 @@
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -134,7 +134,7 @@
multiple multiple
collapse-tags collapse-tags
v-if="item.ParamCode == 'ItemType'" v-if="item.ParamCode == 'ItemType'"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
v-for="cur in getStrDictOptions(DICT_TYPE.ITEM_TYPE)" v-for="cur in getStrDictOptions(DICT_TYPE.ITEM_TYPE)"
@ -151,7 +151,7 @@
multiple multiple
collapse-tags collapse-tags
v-else-if="item.ParamCode == 'AbcClass'" v-else-if="item.ParamCode == 'AbcClass'"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
v-for="cur in getStrDictOptions(DICT_TYPE.ABC_CLASS)" v-for="cur in getStrDictOptions(DICT_TYPE.ABC_CLASS)"
@ -166,7 +166,7 @@
clearable clearable
style="flex: 1" style="flex: 1"
v-else-if="item.ParamCode == 'ItemGroup'" v-else-if="item.ParamCode == 'ItemGroup'"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
/> />
<el-input :key="'项目Value'+index" <el-input :key="'项目Value'+index"
v-model="item.Value" v-model="item.Value"
@ -174,7 +174,7 @@
clearable clearable
style="flex: 1" style="flex: 1"
v-else-if="item.ParamCode == 'Project'" v-else-if="item.ParamCode == 'Project'"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
/> />
<el-input :key="'物料Value'+index" <el-input :key="'物料Value'+index"
v-model="item.Value" v-model="item.Value"
@ -182,7 +182,7 @@
clearable clearable
style="flex: 1" style="flex: 1"
v-else-if="item.ParamCode == 'ItemCode'" v-else-if="item.ParamCode == 'ItemCode'"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>

4
src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/index.vue

@ -144,8 +144,8 @@ const isShowMainButton = (row,val) => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0), hasPermi: 'wms:itembasic:delete' }), // defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0)}), //
] ]
} }

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

@ -26,22 +26,22 @@
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="名称" prop="name"> <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-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="描述" prop="description"> <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-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="优先级" prop="priority"> <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-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="状态" prop="status"> <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-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -60,7 +60,7 @@
placeholder="" placeholder=""
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
@change="changeSupplierCustomer" @change="changeSupplierCustomer"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -73,7 +73,7 @@
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -91,7 +91,7 @@
collapse-tags collapse-tags
filterable filterable
:filter-method="filterMethod" :filter-method="filterMethod"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
v-for="cur in options.supplierList" v-for="cur in options.supplierList"
@ -108,7 +108,7 @@
placeholder="" placeholder=""
@change="changeItemsType" @change="changeItemsType"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="item.label" :label="item.label"
@ -121,7 +121,7 @@
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -138,7 +138,7 @@
multiple multiple
collapse-tags collapse-tags
v-if="item.ParamCode == 'ItemType'" v-if="item.ParamCode == 'ItemType'"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
v-for="cur in getStrDictOptions(DICT_TYPE.ITEM_TYPE)" v-for="cur in getStrDictOptions(DICT_TYPE.ITEM_TYPE)"
@ -155,7 +155,7 @@
multiple multiple
collapse-tags collapse-tags
v-else-if="item.ParamCode == 'AbcClass'" v-else-if="item.ParamCode == 'AbcClass'"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
v-for="cur in getStrDictOptions(DICT_TYPE.ABC_CLASS)" v-for="cur in getStrDictOptions(DICT_TYPE.ABC_CLASS)"
@ -172,7 +172,7 @@
multiple multiple
collapse-tags collapse-tags
v-if="item.ParamCode == 'ItemGroup'" v-if="item.ParamCode == 'ItemGroup'"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
v-for="cur in getStrDictOptions(DICT_TYPE.ITEM_GROUP)" v-for="cur in getStrDictOptions(DICT_TYPE.ITEM_GROUP)"
@ -194,7 +194,7 @@
clearable clearable
style="flex: 1" style="flex: 1"
v-else-if="item.ParamCode == 'Project'" v-else-if="item.ParamCode == 'Project'"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
/> />
<el-input key="物料" <el-input key="物料"
v-model="item.Value" v-model="item.Value"
@ -202,7 +202,7 @@
clearable clearable
style="flex: 1" style="flex: 1"
v-else-if="item.ParamCode == 'ItemCode'" v-else-if="item.ParamCode == 'ItemCode'"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
/> />
</el-form-item> </el-form-item>
<!-- 选择重量体积还是面积 --> <!-- 选择重量体积还是面积 -->
@ -212,7 +212,7 @@
placeholder="" placeholder=""
@change="changeCalculation" @change="changeCalculation"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -225,7 +225,7 @@
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -241,7 +241,7 @@
}`" }`"
clearable clearable
style="flex: 1" style="flex: 1"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
/> />
</el-form-item> </el-form-item>
<!-- 库存状态 --> <!-- 库存状态 -->
@ -250,7 +250,7 @@
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -266,7 +266,7 @@
clearable clearable
multiple multiple
collapse-tags collapse-tags
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
v-for="cur in getStrDictOptions(DICT_TYPE.INVENTORY_STATUS)" v-for="cur in getStrDictOptions(DICT_TYPE.INVENTORY_STATUS)"
@ -282,7 +282,7 @@
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -298,7 +298,7 @@
clearable clearable
multiple multiple
collapse-tags collapse-tags
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
v-for="cur in getStrDictOptions(DICT_TYPE.STORAGE_TYPE)" v-for="cur in getStrDictOptions(DICT_TYPE.STORAGE_TYPE)"
@ -314,7 +314,7 @@
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -331,7 +331,7 @@
/> --> /> -->
<el-input key="库存事务Value" style="flex:1" placeholder="请选择库存事务" disabled v-model="item.Value" @blur="blurTransactionType"> <el-input key="库存事务Value" style="flex:1" placeholder="请选择库存事务" disabled v-model="item.Value" @blur="blurTransactionType">
<template #suffix> <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" /> <Icon icon="ep:search" class="mr-5px" />
</el-button> </el-button>
</template> </template>

4
src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/index.vue

@ -148,8 +148,8 @@ const isShowMainButton = (row,val) => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0), hasPermi: 'wms:itembasic:delete' }), // defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0)}), //
] ]
} }

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

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

4
src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/index.vue

@ -142,8 +142,8 @@ const isShowMainButton = (row,val) => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0), hasPermi: 'wms:itembasic:delete' }), // defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0)}), //
] ]
} }

23
src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/AddForm.vue

@ -25,17 +25,17 @@
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="名称" prop="name"> <el-form-item label="名称" prop="name">
<el-input v-model="formData.name" placeholder="请输入名称" clearable /> <el-input v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.priority==0&&formType=='update'" />
</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="描述" prop="description">
<el-input v-model="formData.description" placeholder="请输入描述" clearable /> <el-input v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.priority==0&&formType=='update'" />
</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="优先级" prop="priority">
<el-input-number v-model="formData.priority" :min="1" /> <el-input-number v-model="formData.priority" :min="formData.priority==0&&formType=='update'?0:1" :disabled="formData.priority==0&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
@ -58,6 +58,7 @@
placeholder="" placeholder=""
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
@change="changeSupplierCustomer" @change="changeSupplierCustomer"
:disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -70,6 +71,7 @@
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -85,6 +87,7 @@
clearable clearable
multiple multiple
collapse-tags collapse-tags
:disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
v-for="cur in options.supplierList" v-for="cur in options.supplierList"
@ -100,6 +103,7 @@
v-model="item.ParamCode" v-model="item.ParamCode"
placeholder="" placeholder=""
@change="changeItemsType" @change="changeItemsType"
:disabled="formData.priority==0&&formType=='update'"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
> >
<el-option <el-option
@ -112,6 +116,7 @@
<el-select <el-select
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
:disabled="formData.priority==0&&formType=='update'"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
> >
<el-option <el-option
@ -128,6 +133,7 @@
clearable clearable
multiple multiple
collapse-tags collapse-tags
:disabled="formData.priority==0&&formType=='update'"
v-if="item.ParamCode == 'ItemType'" v-if="item.ParamCode == 'ItemType'"
> >
<el-option <el-option
@ -144,6 +150,7 @@
clearable clearable
multiple multiple
collapse-tags collapse-tags
:disabled="formData.priority==0&&formType=='update'"
v-else-if="item.ParamCode == 'AbcClass'" v-else-if="item.ParamCode == 'AbcClass'"
> >
<el-option <el-option
@ -158,6 +165,7 @@
placeholder="请输入物料分组,多个物料分组以逗号分隔" placeholder="请输入物料分组,多个物料分组以逗号分隔"
clearable clearable
style="flex: 1" style="flex: 1"
:disabled="formData.priority==0&&formType=='update'"
v-else-if="item.ParamCode == 'ItemGroup'" v-else-if="item.ParamCode == 'ItemGroup'"
/> />
<el-input <el-input
@ -165,6 +173,7 @@
placeholder="请输入项目,多个项目以逗号分隔" placeholder="请输入项目,多个项目以逗号分隔"
clearable clearable
style="flex: 1" style="flex: 1"
:disabled="formData.priority==0&&formType=='update'"
v-else-if="item.ParamCode == 'Project'" v-else-if="item.ParamCode == 'Project'"
/> />
<el-input <el-input
@ -172,6 +181,7 @@
placeholder="请输入物料,多个物料以逗号分隔" placeholder="请输入物料,多个物料以逗号分隔"
clearable clearable
style="flex: 1" style="flex: 1"
:disabled="formData.priority==0&&formType=='update'"
v-else-if="item.ParamCode == 'ItemCode'" v-else-if="item.ParamCode == 'ItemCode'"
/> />
</el-form-item> </el-form-item>
@ -182,6 +192,7 @@
placeholder="" placeholder=""
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
@change="changeWarehouse" @change="changeWarehouse"
:disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -193,6 +204,7 @@
<el-select <el-select
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
:disabled="formData.priority==0&&formType=='update'"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
> >
<el-option <el-option
@ -204,6 +216,7 @@
</el-select> </el-select>
<el-select <el-select
v-model="item.Value" v-model="item.Value"
:disabled="formData.priority==0&&formType=='update'"
:placeholder="`请选择${ :placeholder="`请选择${
item.ParamCode == 'WarehouseCode' item.ParamCode == 'WarehouseCode'
? '仓库' ? '仓库'
@ -234,6 +247,7 @@
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -249,6 +263,7 @@
multiple multiple
collapse-tags collapse-tags
style="flex: 1" style="flex: 1"
:disabled="formData.priority==0&&formType=='update'"
/> />
</el-form-item> </el-form-item>
<!-- 忽略库位 --> <!-- 忽略库位 -->
@ -257,6 +272,7 @@
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -272,6 +288,7 @@
multiple multiple
collapse-tags collapse-tags
style="flex: 1" style="flex: 1"
:disabled="formData.priority==0&&formType=='update'"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>

4
src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/index.vue

@ -150,8 +150,8 @@ const isShowMainButton = (row,val) => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0), hasPermi: 'wms:itembasic:delete' }), // defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0)}), //
] ]
} }

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

@ -36,7 +36,7 @@
</el-col> </el-col>
<el-col :span="12" key="优先级Col"> <el-col :span="12" key="优先级Col">
<el-form-item key="优先级formItem" label="优先级" prop="priority"> <el-form-item key="优先级formItem" label="优先级" prop="priority">
<el-input-number key="优先级input" v-model="formData.priority" :min="1" :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-input-number key="优先级input" v-model="formData.priority" :min="formData.priority==0&&formType=='update'?0:1" :disabled="formData.priority==0&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" key="状态Col"> <el-col :span="12" key="状态Col">

4
src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/index.vue

@ -145,8 +145,8 @@ const isShowMainButton = (row,val) => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0), hasPermi: 'wms:itembasic:delete' }), // defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0)}), //
] ]
} }

16
src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/AddForm.vue

@ -25,17 +25,17 @@
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="名称" prop="name"> <el-form-item label="名称" prop="name">
<el-input v-model="formData.name" placeholder="请输入名称" clearable /> <el-input v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.priority==0&&formType=='update'" />
</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="描述" prop="description">
<el-input v-model="formData.description" placeholder="请输入描述" clearable /> <el-input v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.priority==0&&formType=='update'" />
</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="优先级" prop="priority">
<el-input-number v-model="formData.priority" :min="1" /> <el-input-number v-model="formData.priority" :min="formData.priority==0&&formType=='update'?0:1" :disabled="formData.priority==0&&formType=='update'" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
@ -57,6 +57,7 @@
v-model="item.ParamCode" v-model="item.ParamCode"
placeholder="" placeholder=""
@change="changeItemsType" @change="changeItemsType"
:disabled="formData.priority==0&&formType=='update'"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
> >
<el-option <el-option
@ -68,6 +69,7 @@
</el-select> </el-select>
<el-select <el-select
v-model="item.Operator" v-model="item.Operator"
:disabled="formData.priority==0&&formType=='update'"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
> >
@ -85,6 +87,7 @@
clearable clearable
multiple multiple
collapse-tags collapse-tags
:disabled="formData.priority==0&&formType=='update'"
v-if="item.ParamCode == 'ItemType'" v-if="item.ParamCode == 'ItemType'"
> >
<el-option <el-option
@ -101,6 +104,7 @@
clearable clearable
multiple multiple
collapse-tags collapse-tags
:disabled="formData.priority==0&&formType=='update'"
v-else-if="item.ParamCode == 'AbcClass'" v-else-if="item.ParamCode == 'AbcClass'"
> >
<el-option <el-option
@ -115,6 +119,7 @@
placeholder="请输入物料分组,多个物料分组以逗号分隔" placeholder="请输入物料分组,多个物料分组以逗号分隔"
clearable clearable
style="flex: 1" style="flex: 1"
:disabled="formData.priority==0&&formType=='update'"
v-else-if="item.ParamCode == 'ItemGroup'" v-else-if="item.ParamCode == 'ItemGroup'"
/> />
<el-input <el-input
@ -122,6 +127,7 @@
placeholder="请输入项目,多个项目以逗号分隔" placeholder="请输入项目,多个项目以逗号分隔"
clearable clearable
style="flex: 1" style="flex: 1"
:disabled="formData.priority==0&&formType=='update'"
v-else-if="item.ParamCode == 'Project'" v-else-if="item.ParamCode == 'Project'"
/> />
<el-input <el-input
@ -129,6 +135,7 @@
placeholder="请输入物料,多个物料以逗号分隔" placeholder="请输入物料,多个物料以逗号分隔"
clearable clearable
style="flex: 1" style="flex: 1"
:disabled="formData.priority==0&&formType=='update'"
v-else-if="item.ParamCode == 'ItemCode'" v-else-if="item.ParamCode == 'ItemCode'"
/> />
</el-form-item> </el-form-item>
@ -139,6 +146,7 @@
placeholder="" placeholder=""
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
@change="changeWarehouse" @change="changeWarehouse"
:disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -151,6 +159,7 @@
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -176,6 +185,7 @@
multiple multiple
collapse-tags collapse-tags
style="flex: 1" style="flex: 1"
:disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
v-for="cur in options.warehouseList" v-for="cur in options.warehouseList"

4
src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/index.vue

@ -150,8 +150,8 @@ const isShowMainButton = (row,val) => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0), hasPermi: 'wms:itembasic:delete' }), // defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0)}), //
] ]
} }

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

@ -25,22 +25,22 @@
</el-col> </el-col>
<el-col :span="24" key="名称col"> <el-col :span="24" key="名称col">
<el-form-item key="名称formItem" label="名称" prop="name"> <el-form-item key="名称formItem" label="名称" prop="name">
<el-input key="名称input" v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-input key="名称input" v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.priority==0&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24" key="描述col"> <el-col :span="24" key="描述col">
<el-form-item key="描述formItem" label="描述" prop="description"> <el-form-item key="描述formItem" label="描述" prop="description">
<el-input key="描述input" v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-input key="描述input" v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.priority==0&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" key="优先级col"> <el-col :span="12" key="优先级col">
<el-form-item key="优先级formItem" label="优先级" prop="priority"> <el-form-item key="优先级formItem" label="优先级" prop="priority">
<el-input-number key="优先级input" v-model="formData.priority" :min="1" :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-input-number key="优先级input" v-model="formData.priority" :min="formData.priority==0&&formType=='update'?0:1" :disabled="formData.priority==0&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" key="状态col"> <el-col :span="12" key="状态col">
<el-form-item key="状态formItem" label="状态" prop="status"> <el-form-item key="状态formItem" label="状态" prop="status">
<el-switch key="优先级switch" v-model="formData.status" :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-switch key="优先级switch" v-model="formData.status" :disabled="formData.priority==0&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -58,7 +58,7 @@
placeholder="" placeholder=""
@change="changeItemsType" @change="changeItemsType"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -71,7 +71,7 @@
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -88,7 +88,7 @@
multiple multiple
collapse-tags collapse-tags
v-if="item.ParamCode == 'ItemType'" v-if="item.ParamCode == 'ItemType'"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
v-for="cur in getStrDictOptions(DICT_TYPE.ITEM_TYPE)" v-for="cur in getStrDictOptions(DICT_TYPE.ITEM_TYPE)"
@ -105,7 +105,7 @@
multiple multiple
collapse-tags collapse-tags
v-else-if="item.ParamCode == 'AbcClass'" v-else-if="item.ParamCode == 'AbcClass'"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
v-for="cur in getStrDictOptions(DICT_TYPE.ABC_CLASS)" v-for="cur in getStrDictOptions(DICT_TYPE.ABC_CLASS)"
@ -120,7 +120,7 @@
clearable clearable
style="flex: 1" style="flex: 1"
v-else-if="item.ParamCode == 'ItemGroup'" v-else-if="item.ParamCode == 'ItemGroup'"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
/> />
<el-input :key="'项目Value'+index" <el-input :key="'项目Value'+index"
v-model="item.Value" v-model="item.Value"
@ -128,7 +128,7 @@
clearable clearable
style="flex: 1" style="flex: 1"
v-else-if="item.ParamCode == 'Project'" v-else-if="item.ParamCode == 'Project'"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
/> />
<el-input :key="'物料Value'+index" <el-input :key="'物料Value'+index"
v-model="item.Value" v-model="item.Value"
@ -136,7 +136,7 @@
clearable clearable
style="flex: 1" style="flex: 1"
v-else-if="item.ParamCode == 'ItemCode'" v-else-if="item.ParamCode == 'ItemCode'"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
/> />
</el-form-item> </el-form-item>
<!-- 仓库 库区 库位组 库位 --> <!-- 仓库 库区 库位组 库位 -->
@ -146,7 +146,7 @@
placeholder="" placeholder=""
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
@change="changeWarehouse" @change="changeWarehouse"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -159,7 +159,7 @@
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -185,7 +185,7 @@
multiple multiple
collapse-tags collapse-tags
style="flex: 1" style="flex: 1"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
v-for="cur in options.warehouseList" v-for="cur in options.warehouseList"

4
src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/index.vue

@ -144,8 +144,8 @@ const isShowMainButton = (row,val) => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0), hasPermi: 'wms:itembasic:delete' }), // defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0)}), //
] ]
} }

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

@ -37,7 +37,7 @@
</el-col> </el-col>
<el-col :span="12" key="优先级col"> <el-col :span="12" key="优先级col">
<el-form-item key="优先级formItem" :label="t('ts.优先级').replace('ts.','')" prop="priority"> <el-form-item key="优先级formItem" :label="t('ts.优先级').replace('ts.','')" prop="priority">
<el-input-number key="优先级input" v-model="formData.priority" :min="1" :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-input-number key="优先级input" v-model="formData.priority" :min="formData.priority==0&&formType=='update'?0:1" :disabled="formData.priority==0&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" key="状态col"> <el-col :span="12" key="状态col">
@ -58,8 +58,8 @@
v-model="item.ParamCode" v-model="item.ParamCode"
placeholder="" placeholder=""
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.priority==0&&formType=='update'"
@change="changeWarehouseArea" @change="changeWarehouseArea"
:disabled="formData.name=='默认规则'&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -72,7 +72,7 @@
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
@change="OperatorChange($event,item)" @change="OperatorChange($event,item)"
> >
<el-option <el-option
@ -82,8 +82,8 @@
:key="'仓库和库区Operator'+cur.value" :key="'仓库和库区Operator'+cur.value"
/> />
</el-select> </el-select>
<el-input key="仓库和库区Value" style="flex:1" placeholder="请选择仓库或者库区" v-model="item.Value" @blur="blurWarehouseByCodes" /> <el-input key="仓库和库区Value" style="flex:1" placeholder="请选择仓库或者库区" v-model="item.Value" @blur="blurWarehouseByCodes" :disabled="formData.priority==0&&formType=='update'"/>
<el-button :disabled="formData.name=='默认规则'&&formType=='update'" type="info" plain @click="searchWarehouse"> <el-button type="info" plain @click="searchWarehouse" :disabled="formData.priority==0&&formType=='update'">
<Icon icon="ep:search" /> <Icon icon="ep:search" />
</el-button> </el-button>
</el-form-item> </el-form-item>
@ -97,7 +97,7 @@
v-model="item.Operator" v-model="item.Operator"
:placeholder="t('ts.请选择范围').replace('ts.','')" :placeholder="t('ts.请选择范围').replace('ts.','')"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
@change="OperatorChange($event,item)" @change="OperatorChange($event,item)"
> >
<el-option <el-option
@ -107,8 +107,8 @@
:key="'供应商代码Operator'+cur.value" :key="'供应商代码Operator'+cur.value"
/> />
</el-select> </el-select>
<el-input key="供应商代码Value" style="flex:1" placeholder="请选择供应商代码" v-model="item.Value" @blur="blurSupplierCode" /> <el-input key="供应商代码Value" style="flex:1" placeholder="请选择供应商代码" v-model="item.Value" @blur="blurSupplierCode" :disabled="formData.priority==0&&formType=='update'"/>
<el-button :disabled="formData.name=='默认规则'&&formType=='update'" type="info" plain @click="searchSupplier"> <el-button type="info" plain @click="searchSupplier" :disabled="formData.priority==0&&formType=='update'">
<Icon icon="ep:search" /> <Icon icon="ep:search" />
</el-button> </el-button>
</el-form-item> </el-form-item>
@ -146,7 +146,7 @@
<!-- 月台 --> <!-- 月台 -->
<el-form-item key="月台formItem" :label="t('ts.月台').replace('ts.','')" prop="configuration.DockCode"> <el-form-item key="月台formItem" :label="t('ts.月台').replace('ts.','')" prop="configuration.DockCode">
<el-input key="月台Value" style="flex:1" placeholder="请选择月台" v-model="formData.configuration.DockCode" @blur="blurDockCode"/> <el-input key="月台Value" style="flex:1" placeholder="请选择月台" v-model="formData.configuration.DockCode" @blur="blurDockCode"/>
<el-button :disabled="formData.name=='默认规则'&&formType=='update'" type="info" plain @click="searchDockCode"> <el-button type="info" plain @click="searchDockCode">
<Icon icon="ep:search" /> <Icon icon="ep:search" />
</el-button> </el-button>
</el-form-item> </el-form-item>

4
src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue

@ -173,8 +173,8 @@ const isShowMainButton = (row,val) => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:strategy:update' }), // defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0), hasPermi: 'wms:strategy:delete' }), // defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0)}), //
] ]
} }

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

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

4
src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue

@ -198,8 +198,8 @@ const importSuccess = () => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0), hasPermi: 'wms:itembasic:delete' }), // defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0)}), //
] ]
} }

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

@ -35,7 +35,7 @@
</el-col> </el-col>
<el-col :span="12" key="优先级col"> <el-col :span="12" key="优先级col">
<el-form-item key="优先级formItem" label="优先级" prop="priority"> <el-form-item key="优先级formItem" label="优先级" prop="priority">
<el-input-number key="优先级input" v-model="formData.priority" :min="1" :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-input-number key="优先级input" v-model="formData.priority" :min="formData.priority==0&&formType=='update'?0:1" :disabled="formData.priority==0&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" key="状态col"> <el-col :span="12" key="状态col">

4
src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/index.vue

@ -144,8 +144,8 @@ const isShowMainButton = (row,val) => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0), hasPermi: 'wms:itembasic:delete' }), // defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0)}), //
] ]
} }

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

@ -25,22 +25,22 @@
</el-col> </el-col>
<el-col :span="24" key="名称col"> <el-col :span="24" key="名称col">
<el-form-item label="名称" prop="name" key="名称formItem"> <el-form-item label="名称" prop="name" key="名称formItem">
<el-input key="名称input" v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-input key="名称input" v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.priority==0&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24" key="描述col"> <el-col :span="24" key="描述col">
<el-form-item label="描述" prop="description" key="描述formItem"> <el-form-item label="描述" prop="description" key="描述formItem">
<el-input key="描述input" v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-input key="描述input" v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.priority==0&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" key="优先级col"> <el-col :span="12" key="优先级col">
<el-form-item label="优先级" prop="priority" key="优先级formItem"> <el-form-item label="优先级" prop="priority" key="优先级formItem">
<el-input-number key="优先级input" v-model="formData.priority" :min="1" :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-input-number key="优先级input" v-model="formData.priority" :min="formData.priority==0&&formType=='update'?0:1" :disabled="formData.priority==0&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" key="状态col"> <el-col :span="12" key="状态col">
<el-form-item label="状态" prop="status" key="状态formItem"> <el-form-item label="状态" prop="status" key="状态formItem">
<el-switch key="状态switch" v-model="formData.status" :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-switch key="状态switch" v-model="formData.status" :disabled="formData.priority==0&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -59,7 +59,7 @@
placeholder="" placeholder=""
style="width: 120px; margin-right: 10px" style="width: 120px; margin-right: 10px"
@change="changeWarehouse" @change="changeWarehouse"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -72,7 +72,7 @@
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
:label="cur.label" :label="cur.label"
@ -98,7 +98,7 @@
style="flex: 1" style="flex: 1"
multiple multiple
collapse-tags collapse-tags
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.priority==0&&formType=='update'"
> >
<el-option <el-option
v-for="cur in options.warehouseList" v-for="cur in options.warehouseList"

4
src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/index.vue

@ -145,8 +145,8 @@ const isShowMainButton = (row,val) => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0), hasPermi: 'wms:itembasic:delete' }), // defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0)}), //
] ]
} }

Loading…
Cancel
Save