Browse Source

策略 默认规则隐藏删除按钮

master
陈薪名 10 months ago
parent
commit
32fde4977a
  1. 17
      src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/index.vue
  2. 17
      src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/index.vue
  3. 17
      src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/index.vue
  4. 17
      src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/index.vue
  5. 17
      src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/index.vue
  6. 17
      src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/index.vue
  7. 17
      src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/index.vue
  8. 17
      src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/index.vue
  9. 17
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue
  10. 17
      src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue
  11. 17
      src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/index.vue
  12. 17
      src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/index.vue

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

@ -36,7 +36,7 @@
</el-table-column>
<el-table-column align="center" label="操作" fixed="right" width="240">
<template #default="scope">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event, scope.row)" />
<ButtonBase :Butttondata="butttondata(scope.row)" @button-base-click="buttonTableClick($event, scope.row)" />
</template>
</el-table-column>
</el-table>
@ -132,11 +132,22 @@ const buttonBaseClick = (val, item) => {
}
}
//
const isShowMainButton = (row,val) => {
if (val == row.name) {
return true
} else {
return false
}
}
// -
const butttondata = [
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), //
defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), //
]
}
// -
const buttonTableClick = (val, row) => {

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

@ -36,7 +36,7 @@
</el-table-column>
<el-table-column align="center" label="操作" fixed="right" width="240">
<template #default="scope">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event, scope.row)" />
<ButtonBase :Butttondata="butttondata(scope.row)" @button-base-click="buttonTableClick($event, scope.row)" />
</template>
</el-table-column>
</el-table>
@ -132,11 +132,22 @@ const buttonBaseClick = (val, item) => {
}
}
//
const isShowMainButton = (row,val) => {
if (val == row.name) {
return true
} else {
return false
}
}
// -
const butttondata = [
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), //
defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), //
]
}
// -
const buttonTableClick = (val, row) => {

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

@ -36,7 +36,7 @@
</el-table-column>
<el-table-column align="center" label="操作" fixed="right" width="240">
<template #default="scope">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event, scope.row)" />
<ButtonBase :Butttondata="butttondata(scope.row)" @button-base-click="buttonTableClick($event, scope.row)" />
</template>
</el-table-column>
</el-table>
@ -134,11 +134,22 @@ const buttonBaseClick = (val, item) => {
}
}
//
const isShowMainButton = (row,val) => {
if (val == row.name) {
return true
} else {
return false
}
}
// -
const butttondata = [
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), //
defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), //
]
}
// -
const buttonTableClick = (val, row) => {

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

@ -36,7 +36,7 @@
</el-table-column>
<el-table-column align="center" label="操作" fixed="right" width="240">
<template #default="scope">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event, scope.row)" />
<ButtonBase :Butttondata="butttondata(scope.row)" @button-base-click="buttonTableClick($event, scope.row)" />
</template>
</el-table-column>
</el-table>
@ -130,11 +130,22 @@ const buttonBaseClick = (val, item) => {
}
}
//
const isShowMainButton = (row,val) => {
if (val == row.name) {
return true
} else {
return false
}
}
// -
const butttondata = [
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), //
defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), //
]
}
// -
const buttonTableClick = (val, row) => {

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

@ -36,7 +36,7 @@
</el-table-column>
<el-table-column align="center" label="操作" fixed="right" width="240">
<template #default="scope">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event, scope.row)" />
<ButtonBase :Butttondata="butttondata(scope.row)" @button-base-click="buttonTableClick($event, scope.row)" />
</template>
</el-table-column>
</el-table>
@ -132,11 +132,22 @@ const buttonBaseClick = (val, item) => {
}
}
//
const isShowMainButton = (row,val) => {
if (val == row.name) {
return true
} else {
return false
}
}
// -
const butttondata = [
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), //
defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), //
]
}
// -
const buttonTableClick = (val, row) => {

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

@ -37,7 +37,7 @@
</el-table-column>
<el-table-column align="center" label="操作" fixed="right" width="240">
<template #default="scope">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event, scope.row)" />
<ButtonBase :Butttondata="butttondata(scope.row)" @button-base-click="buttonTableClick($event, scope.row)" />
</template>
</el-table-column>
</el-table>
@ -133,11 +133,22 @@ const buttonBaseClick = (val, item) => {
}
}
//
const isShowMainButton = (row,val) => {
if (val == row.name) {
return true
} else {
return false
}
}
// -
const butttondata = [
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), //
defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), //
]
}
// -
const buttonTableClick = (val, row) => {

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

@ -36,7 +36,7 @@
</el-table-column>
<el-table-column align="center" label="操作" fixed="right" width="240">
<template #default="scope">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event, scope.row)" />
<ButtonBase :Butttondata="butttondata(scope.row)" @button-base-click="buttonTableClick($event, scope.row)" />
</template>
</el-table-column>
</el-table>
@ -132,11 +132,22 @@ const buttonBaseClick = (val, item) => {
}
}
//
const isShowMainButton = (row,val) => {
if (val == row.name) {
return true
} else {
return false
}
}
// -
const butttondata = [
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), //
defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), //
]
}
// -
const buttonTableClick = (val, row) => {

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

@ -36,7 +36,7 @@
</el-table-column>
<el-table-column align="center" label="操作" fixed="right" width="240">
<template #default="scope">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event, scope.row)" />
<ButtonBase :Butttondata="butttondata(scope.row)" @button-base-click="buttonTableClick($event, scope.row)" />
</template>
</el-table-column>
</el-table>
@ -132,11 +132,22 @@ const buttonBaseClick = (val, item) => {
}
}
//
const isShowMainButton = (row,val) => {
if (val == row.name) {
return true
} else {
return false
}
}
// -
const butttondata = [
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), //
defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), //
]
}
// -
const buttonTableClick = (val, row) => {

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

@ -37,7 +37,7 @@
</el-table-column>
<el-table-column align="center" label="操作" fixed="right" width="240">
<template #default="scope">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event, scope.row)" />
<ButtonBase :Butttondata="butttondata(scope.row)" @button-base-click="buttonTableClick($event, scope.row)" />
</template>
</el-table-column>
</el-table>
@ -133,11 +133,22 @@ const buttonBaseClick = (val, item) => {
}
}
//
const isShowMainButton = (row,val) => {
if (val == row.name) {
return true
} else {
return false
}
}
// -
const butttondata = [
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), //
defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), //
]
}
// -
const buttonTableClick = (val, row) => {

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

@ -37,7 +37,7 @@
</el-table-column>
<el-table-column align="center" label="操作" fixed="right" width="240">
<template #default="scope">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event, scope.row)" />
<ButtonBase :Butttondata="butttondata(scope.row)" @button-base-click="buttonTableClick($event, scope.row)" />
</template>
</el-table-column>
</el-table>
@ -134,11 +134,22 @@ const buttonBaseClick = (val, item) => {
}
}
//
const isShowMainButton = (row,val) => {
if (val == row.name) {
return true
} else {
return false
}
}
// -
const butttondata = [
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), //
defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), //
]
}
// -
const buttonTableClick = (val, row) => {

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

@ -36,7 +36,7 @@
</el-table-column>
<el-table-column align="center" label="操作" fixed="right" width="240">
<template #default="scope">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event, scope.row)" />
<ButtonBase :Butttondata="butttondata(scope.row)" @button-base-click="buttonTableClick($event, scope.row)" />
</template>
</el-table-column>
</el-table>
@ -132,11 +132,22 @@ const buttonBaseClick = (val, item) => {
}
}
//
const isShowMainButton = (row,val) => {
if (val == row.name) {
return true
} else {
return false
}
}
// -
const butttondata = [
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), //
defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), //
]
}
// -
const buttonTableClick = (val, row) => {

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

@ -37,7 +37,7 @@
</el-table-column>
<el-table-column align="center" label="操作" fixed="right" width="240">
<template #default="scope">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event, scope.row)" />
<ButtonBase :Butttondata="butttondata(scope.row)" @button-base-click="buttonTableClick($event, scope.row)" />
</template>
</el-table-column>
</el-table>
@ -133,11 +133,22 @@ const buttonBaseClick = (val, item) => {
}
}
//
const isShowMainButton = (row,val) => {
if (val == row.name) {
return true
} else {
return false
}
}
// -
const butttondata = [
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), //
defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:itembasic:delete' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), //
]
}
// -
const buttonTableClick = (val, row) => {

Loading…
Cancel
Save