Browse Source

YT-669离散订单生成的要货计划,不允许编辑,编辑按钮隐藏

intex_online20241111
zhang_li 3 weeks ago
parent
commit
7dfa53b8b3
  1. 10
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

10
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -424,13 +424,17 @@ const getSearchTableData = async (number,formField,searchField)=>{
}
//
const isShowMainButton = (row, val) => {
const isShowMainButton = (row, val) => {
if (row.type == 'DISCRETE') {
return true
} else {
if (val.indexOf(row.status) > -1) {
return false
} else {
return true
}
}
}
}
// -
const butttondata = (row,$index) => {
@ -446,7 +450,7 @@ const getSearchTableData = async (number,formField,searchField)=>{
defaultButtons.mainListPurchasePlanRejBtn({ hide: isShowMainButton(row, ['3']) }), //
defaultButtons.mainListPurchasePlanWitBtn({ hide: isShowMainButton(row, ['3']) }), //
defaultButtons.mainListPurchasePlanModBtn({ hide: isShowMainButton(row, ['5']) }), //
// defaultButtons.mainListEditBtn({ hide: isShowMainButton(row, ['1','3','5']), hasPermi: 'wms:purchase-plan-main:update' }), //
defaultButtons.mainListEditBtn({ hide: isShowMainButton(row, ['1','3','5']), hasPermi: 'wms:purchase-plan-main:update' }), //
// defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchase-plan-main:delete'}), //
{
label: t('ts.创建供应商发货申请'),

Loading…
Cancel
Save