Browse Source

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

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

21
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 = [
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) => {

21
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 = [
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) => {

21
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 = [
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) => {

21
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 = [
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) => {

21
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 = [
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) => {

21
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 = [
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) => {

21
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 = [
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) => {

21
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 = [
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) => {

21
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 = [
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) => {

21
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 = [
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) => {

21
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 = [
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) => {

21
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 = [
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) => {

Loading…
Cancel
Save