Browse Source

YT-1616备料计划打印提示

intex_20241211
zhaoyiran 2 months ago
parent
commit
67cdb8143d
  1. 14
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

14
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

@ -292,15 +292,6 @@ const isShowMainButton = (row,val) => {
} }
} }
//
const isShowPrintButton = (row) => {
if ('TRUE'.indexOf(row.printFlag) > -1) {
return false
} else {
return true
}
}
// - // -
const butttondata = (row,$index) => { const butttondata = (row,$index) => {
const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
@ -330,7 +321,6 @@ const butttondata = (row,$index) => {
{ {
label: '打印补给品备料单', label: '打印补给品备料单',
name: 'printSupplyList', name: 'printSupplyList',
hide: isShowPrintButton(row),
type: 'primary', type: 'primary',
icon: 'Select', icon: 'Select',
hasPermi:'wms:preparetoissue-main:publish', hasPermi:'wms:preparetoissue-main:publish',
@ -452,6 +442,10 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'delete') { // } else if (val == 'delete') { //
handleDelete(row.masterId) handleDelete(row.masterId)
} else if (val == 'printSupplyList'){ } else if (val == 'printSupplyList'){
if(row.printFlag == 'FALSE'){
message.warning("发料任务未完成,不可打印")
return
}
// //
handlePrintSupplyList(row.masterId) handlePrintSupplyList(row.masterId)
} }

Loading…
Cancel
Save