|
|
@ -66,6 +66,7 @@ import { SupplierdeliverRecordMain,SupplierdeliverRecordMainRules,Supplierdelive |
|
|
|
import * as SupplierdeliverRecordMainApi from '@/api/wms/supplierdeliverRecordMain' |
|
|
|
import * as SupplierdeliverRecordDetailApi from '@/api/wms/supplierdeliverRecordDetail' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import { getAccessToken } from '@/utils/auth' |
|
|
|
|
|
|
|
// 供应商发货记录主 |
|
|
|
defineOptions({ name: 'SupplierdeliverRecordMain' }) |
|
|
@ -128,6 +129,7 @@ const buttonBaseClick = (val, item) => { |
|
|
|
const butttondata = (row) => { |
|
|
|
return [ |
|
|
|
defaultButtons.mainListGenerateApplicationBtn({hasPermi:'wms:supplierdeliver-record-main:createPurchasereceiptRequest',hide:!row.purchasereceiptRequestFlag}), // 生成采购申请 |
|
|
|
defaultButtons.mainListDocumentPrintBtn({}) // 单据打印 |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
@ -135,6 +137,9 @@ const butttondata = (row) => { |
|
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
if(val == 'generateApplication'){ |
|
|
|
handlerCreatePurchasereceiptRequest(row.number) |
|
|
|
}else if (val == 'documentPrint') { |
|
|
|
// 单据打印 |
|
|
|
handleDocumentPrint(row.id) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -151,6 +156,13 @@ const handlerCreatePurchasereceiptRequest = async (number:string) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 单据打印 |
|
|
|
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL |
|
|
|
const documentSrc = ref(BASE_URL + '/jmreport/view/884680688168280064?token=' + getAccessToken()) |
|
|
|
const handleDocumentPrint = async (id) => { |
|
|
|
window.open(documentSrc.value + '&id=' + id) |
|
|
|
} |
|
|
|
|
|
|
|
/** 详情操作 */ |
|
|
|
const detailRef = ref() |
|
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
|