Browse Source

发票打印发货单

master_hella_20240701
zhaoxuebing 7 months ago
parent
commit
e9f7b40e07
  1. 6
      src/api/wms/supplierinvoiceRequestMain/index.ts
  2. 15
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
  3. 1
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

6
src/api/wms/supplierinvoiceRequestMain/index.ts

@ -95,6 +95,12 @@ export const financerejSupplierinvoiceRequestMain = async (id: number) => {
export const genRecordsSupplierinvoiceRequestMain = async (id) => {
return await request.post({ url: `/wms/supplierinvoice-request-main/genRecords?id=` + id })
}
// 打印单挑供应商发货记录
export const printSupplierRecord = async (asnBillNum:string) => {
return await request.post({ url: `/wms/supplierinvoice-request-main/querySupplierRecord?asnBillNum=`+asnBillNum })
}
// 导出供应商发票申请主 Excel
export const exportSupplierinvoiceRequestMain = async (params) => {
if(params.isSearch){

15
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -663,10 +663,23 @@ const importSuccess = () => {
console.log("点击的按钮",val)
if(val == 'print'){
//
SupplierinvoiceRequestMainApi.printSupplierRecord(item.asnBillNum).then(res =>{
if(res){
handleSupplierdeliverRecordPrint(res);
}
})
}
}
//
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
//
const documentSupplierdeliverRecordSrc = ref(BASE_URL + '/jmreport/view/932556833517789184?token=' + getAccessToken())
const handleSupplierdeliverRecordPrint = async (id) => {
window.open(documentSupplierdeliverRecordSrc.value + '&id=' + id)
}
//
const documentSrc = ref(BASE_URL + '/jmreport/view/936875675614240768?token=' + getAccessToken())
const handleDocumentPrint = async (id) => {
window.open(documentSrc.value + '&id=' + id)

1
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

@ -175,7 +175,6 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
dictType: DICT_TYPE.TAX_RATE_DICT,
dictClass: 'string',
isTable: true,
isSearch: true,
sort: 'custom',
table: {
width: 150

Loading…
Cancel
Save