|
|
@ -465,7 +465,10 @@ const butttondata = (row, $index) => { |
|
|
|
defaultButtons.mainListEditBtn({ |
|
|
|
hide: isShowMainButton(row, ['1']), |
|
|
|
hasPermi: 'wms:purchasereturn-request-main:update' |
|
|
|
}) // 编辑 |
|
|
|
}),// 编辑 |
|
|
|
defaultButtons.mainListDocumentPrintBtn({ |
|
|
|
hide: isShowMainButton(row, ['8']) |
|
|
|
})// 打印标签 |
|
|
|
// { |
|
|
|
// label: '生成标签', |
|
|
|
// name: 'ssbq', |
|
|
@ -511,12 +514,23 @@ const buttonTableClick = async (val, row) => { |
|
|
|
genLabelId.value = row.masterId |
|
|
|
await getDetailList() |
|
|
|
formLabelRef.value.open('create', row, null, 'createLabel') //创建标签页面 createLabel 标题 |
|
|
|
} else if (val == 'point') { |
|
|
|
} |
|
|
|
else if (val == 'documentPrint') { |
|
|
|
// 单据打印 |
|
|
|
handleDocumentPrint(row.number,row.itemCode) |
|
|
|
}else if (val == 'point') { |
|
|
|
// 标签打印 |
|
|
|
labelPrint(row) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 单据打印 |
|
|
|
const BASE_URL2 = getJmreportBaseUrl() |
|
|
|
const documentSrc = ref(BASE_URL2 + '/jmreport/view/920874172025987072?token=' + getAccessToken()) |
|
|
|
const handleDocumentPrint = async (number,itemCode) => { |
|
|
|
window.open(documentSrc.value + '&requestNumber=' + number +'&itemCode=' + itemCode) |
|
|
|
} |
|
|
|
|
|
|
|
/** 添加/修改操作 */ |
|
|
|
const formRef = ref() |
|
|
|
const openForm = async (type: string, row?: Object) => { |
|
|
|