From 32fde4977a1aa71e3f415057b9e4c5ac2125f8ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Thu, 18 Jan 2024 10:40:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=96=E7=95=A5=20=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E8=A7=84=E5=88=99=E9=9A=90=E8=97=8F=E5=88=A0=E9=99=A4=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../arrivalInspectionStrategy/index.vue | 21 ++++++++++++++----- .../strategy/batchStrategy/index.vue | 21 ++++++++++++++----- .../strategy/downShelfStrategy/index.vue | 21 ++++++++++++++----- .../strategy/inspectStrategy/index.vue | 21 ++++++++++++++----- .../strategy/manageAccuracyStrategy/index.vue | 21 ++++++++++++++----- .../purchaseReceiptStrategy/index.vue | 21 ++++++++++++++----- .../strategy/repairMaterialStrategy/index.vue | 21 ++++++++++++++----- .../storageCapacityStrategy/index.vue | 21 ++++++++++++++----- .../supplieDeliveryStrategy/index.vue | 21 ++++++++++++++----- .../strategy/upShelfStrategy/index.vue | 21 ++++++++++++++----- .../utensilCapacityStrategy/index.vue | 21 ++++++++++++++----- .../warehouseStorageStrategy/index.vue | 21 ++++++++++++++----- 12 files changed, 192 insertions(+), 60 deletions(-) diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/index.vue index 639e9593f..bf2781811 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/index.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/index.vue @@ -36,7 +36,7 @@ @@ -132,11 +132,22 @@ const buttonBaseClick = (val, item) => { } } +// 根据状态返回该按钮是否显示 +const isShowMainButton = (row,val) => { + if (val == row.name) { + return true + } else { + return false + } +} + // 列表-操作按钮 -const butttondata = [ - defaultButtons.mainListEditBtn({ hasPermi: 'wms:itembasic:update' }), // 编辑 - defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), // 删除 -] +const butttondata = (row) => { + return [ + defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 编辑 + defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), // 删除 + ] +} // 列表-操作按钮事件 const buttonTableClick = (val, row) => { diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/index.vue index 937394b63..5fce21349 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/index.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/index.vue @@ -36,7 +36,7 @@ @@ -132,11 +132,22 @@ const buttonBaseClick = (val, item) => { } } +// 根据状态返回该按钮是否显示 +const isShowMainButton = (row,val) => { + if (val == row.name) { + return true + } else { + return false + } +} + // 列表-操作按钮 -const butttondata = [ - defaultButtons.mainListEditBtn({ hasPermi: 'wms:itembasic:update' }), // 编辑 - defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), // 删除 -] +const butttondata = (row) => { + return [ + defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 编辑 + defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), // 删除 + ] +} // 列表-操作按钮事件 const buttonTableClick = (val, row) => { diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/index.vue index 7e7e3431e..c652f6b13 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/index.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/index.vue @@ -36,7 +36,7 @@ @@ -134,11 +134,22 @@ const buttonBaseClick = (val, item) => { } } +// 根据状态返回该按钮是否显示 +const isShowMainButton = (row,val) => { + if (val == row.name) { + return true + } else { + return false + } +} + // 列表-操作按钮 -const butttondata = [ - defaultButtons.mainListEditBtn({ hasPermi: 'wms:itembasic:update' }), // 编辑 - defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), // 删除 -] +const butttondata = (row) => { + return [ + defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 编辑 + defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), // 删除 + ] +} // 列表-操作按钮事件 const buttonTableClick = (val, row) => { diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/index.vue index ca8a89b3d..5342aea96 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/index.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/index.vue @@ -36,7 +36,7 @@ @@ -130,11 +130,22 @@ const buttonBaseClick = (val, item) => { } } +// 根据状态返回该按钮是否显示 +const isShowMainButton = (row,val) => { + if (val == row.name) { + return true + } else { + return false + } +} + // 列表-操作按钮 -const butttondata = [ - defaultButtons.mainListEditBtn({ hasPermi: 'wms:itembasic:update' }), // 编辑 - defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), // 删除 -] +const butttondata = (row) => { + return [ + defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 编辑 + defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), // 删除 + ] +} // 列表-操作按钮事件 const buttonTableClick = (val, row) => { diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/index.vue index 5dbb91f7d..f5371ddbb 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/index.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/index.vue @@ -36,7 +36,7 @@ @@ -132,11 +132,22 @@ const buttonBaseClick = (val, item) => { } } +// 根据状态返回该按钮是否显示 +const isShowMainButton = (row,val) => { + if (val == row.name) { + return true + } else { + return false + } +} + // 列表-操作按钮 -const butttondata = [ - defaultButtons.mainListEditBtn({ hasPermi: 'wms:itembasic:update' }), // 编辑 - defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), // 删除 -] +const butttondata = (row) => { + return [ + defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 编辑 + defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), // 删除 + ] +} // 列表-操作按钮事件 const buttonTableClick = (val, row) => { diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/index.vue index 3e9401b00..f696720c5 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/index.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/index.vue @@ -37,7 +37,7 @@ @@ -133,11 +133,22 @@ const buttonBaseClick = (val, item) => { } } +// 根据状态返回该按钮是否显示 +const isShowMainButton = (row,val) => { + if (val == row.name) { + return true + } else { + return false + } +} + // 列表-操作按钮 -const butttondata = [ - defaultButtons.mainListEditBtn({ hasPermi: 'wms:itembasic:update' }), // 编辑 - defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), // 删除 -] +const butttondata = (row) => { + return [ + defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 编辑 + defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), // 删除 + ] +} // 列表-操作按钮事件 const buttonTableClick = (val, row) => { diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/index.vue index 039ee0989..756920356 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/index.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/index.vue @@ -36,7 +36,7 @@ @@ -132,11 +132,22 @@ const buttonBaseClick = (val, item) => { } } +// 根据状态返回该按钮是否显示 +const isShowMainButton = (row,val) => { + if (val == row.name) { + return true + } else { + return false + } +} + // 列表-操作按钮 -const butttondata = [ - defaultButtons.mainListEditBtn({ hasPermi: 'wms:itembasic:update' }), // 编辑 - defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), // 删除 -] +const butttondata = (row) => { + return [ + defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 编辑 + defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), // 删除 + ] +} // 列表-操作按钮事件 const buttonTableClick = (val, row) => { diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/index.vue index e1eea8c30..16b6a56ea 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/index.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/index.vue @@ -36,7 +36,7 @@ @@ -132,11 +132,22 @@ const buttonBaseClick = (val, item) => { } } +// 根据状态返回该按钮是否显示 +const isShowMainButton = (row,val) => { + if (val == row.name) { + return true + } else { + return false + } +} + // 列表-操作按钮 -const butttondata = [ - defaultButtons.mainListEditBtn({ hasPermi: 'wms:itembasic:update' }), // 编辑 - defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), // 删除 -] +const butttondata = (row) => { + return [ + defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 编辑 + defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), // 删除 + ] +} // 列表-操作按钮事件 const buttonTableClick = (val, row) => { diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue index 4508c9f67..6d95b59c1 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue @@ -37,7 +37,7 @@ @@ -133,11 +133,22 @@ const buttonBaseClick = (val, item) => { } } +// 根据状态返回该按钮是否显示 +const isShowMainButton = (row,val) => { + if (val == row.name) { + return true + } else { + return false + } +} + // 列表-操作按钮 -const butttondata = [ - defaultButtons.mainListEditBtn({ hasPermi: 'wms:itembasic:update' }), // 编辑 - defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), // 删除 -] +const butttondata = (row) => { + return [ + defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 编辑 + defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), // 删除 + ] +} // 列表-操作按钮事件 const buttonTableClick = (val, row) => { diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue index f7b39fd6f..5bdc5971f 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue @@ -37,7 +37,7 @@ @@ -134,11 +134,22 @@ const buttonBaseClick = (val, item) => { } } +// 根据状态返回该按钮是否显示 +const isShowMainButton = (row,val) => { + if (val == row.name) { + return true + } else { + return false + } +} + // 列表-操作按钮 -const butttondata = [ - defaultButtons.mainListEditBtn({ hasPermi: 'wms:itembasic:update' }), // 编辑 - defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), // 删除 -] +const butttondata = (row) => { + return [ + defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 编辑 + defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), // 删除 + ] +} // 列表-操作按钮事件 const buttonTableClick = (val, row) => { diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/index.vue index f94f16352..b02200172 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/index.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/index.vue @@ -36,7 +36,7 @@ @@ -132,11 +132,22 @@ const buttonBaseClick = (val, item) => { } } +// 根据状态返回该按钮是否显示 +const isShowMainButton = (row,val) => { + if (val == row.name) { + return true + } else { + return false + } +} + // 列表-操作按钮 -const butttondata = [ - defaultButtons.mainListEditBtn({ hasPermi: 'wms:itembasic:update' }), // 编辑 - defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), // 删除 -] +const butttondata = (row) => { + return [ + defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 编辑 + defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), // 删除 + ] +} // 列表-操作按钮事件 const buttonTableClick = (val, row) => { diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/index.vue index 0c45d13b3..ac262f9b0 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/index.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/index.vue @@ -37,7 +37,7 @@ @@ -133,11 +133,22 @@ const buttonBaseClick = (val, item) => { } } +// 根据状态返回该按钮是否显示 +const isShowMainButton = (row,val) => { + if (val == row.name) { + return true + } else { + return false + } +} + // 列表-操作按钮 -const butttondata = [ - defaultButtons.mainListEditBtn({ hasPermi: 'wms:itembasic:update' }), // 编辑 - defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), // 删除 -] +const butttondata = (row) => { + return [ + defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 编辑 + defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), // 删除 + ] +} // 列表-操作按钮事件 const buttonTableClick = (val, row) => {