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