Browse Source

YT-2222SCP《供应商发货申请》中【打印标签】按钮,如果没点击过【打印标签】按钮时,按钮颜色是蓝色;如果已经点击过【打印标签】按钮,按钮颜色变成橙色。(只在不切换页面的情况下,实现这个功能即可)

intex_online20250327
张立 2 weeks ago
parent
commit
7bd977579c
  1. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

2
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -560,6 +560,7 @@ const butttondata = (row, $index) => {
}, },
defaultButtons.mainListPointBtn({ defaultButtons.mainListPointBtn({
hide: isShowMainButton(row, ['3', '8']), hide: isShowMainButton(row, ['3', '8']),
type: row.isShowSuccess ? 'success' : 'primary',
hasPermi: 'wms:supplierdeliver-request-main:printLabel' hasPermi: 'wms:supplierdeliver-request-main:printLabel'
}), // }), //
//defaultButtons.mainListDocumentPrintBtn({ hide: isShowMainButton(row, ['3','8']) }), // //defaultButtons.mainListDocumentPrintBtn({ hide: isShowMainButton(row, ['3','8']) }), //
@ -1233,6 +1234,7 @@ const labelPrint = async (row) => {
tableColumns.forEach((item) => { tableColumns.forEach((item) => {
item.width = item.table?.width item.width = item.table?.width
}) })
row.isShowSuccess = true
searchTableRef.value.openData(t('ts.标签信息'), tableObjectPrint, { tableColumns }, true) searchTableRef.value.openData(t('ts.标签信息'), tableObjectPrint, { tableColumns }, true)
} }

Loading…
Cancel
Save