浏览代码

前端 sdy

zhongtianhaoyuan 3 年之前
父节点
当前提交
0a06d3b5fd

+ 1 - 1
src/api/V2/houseSelfCollect/index.js

@@ -83,4 +83,4 @@ export const API_GET_INSPECT_GETDRYGRAINPRICE = '/purchasePrice/dryGrainPrice'
 //付款权限查询
 export const API_GET_INSPECT_GETJURISDICTION = '/paymentManagement/selectTaskId'
 //财务开票
-export const API_POST_INVOICING = '/paymentManagement/readXmlManagement'
+export const API_GET_INVOICING = '/paymentManagement/readXmlManagement'

+ 2 - 2
src/model/houseSelfCollect/index.js

@@ -43,7 +43,7 @@ import {
   API_GET_CUSTOMER_CODEJY,
   API_GET_INSPECT_GETDRYGRAINPRICE,
   API_GET_INSPECT_GETJURISDICTION,
-  API_POST_INVOICING
+  API_GET_INVOICING
 } from '@/api/V2/houseSelfCollect'
 //客户管理列表
 export const getCustomerManage = appRx.get(API_GET_CUSTOMER_MANAGE, errorCatcher, errorHandle, filter)
@@ -130,4 +130,4 @@ export const getDryGrainPrice = appRx.get(API_GET_INSPECT_GETDRYGRAINPRICE, erro
 //付款权限查询
 export const getJurisdiction  = appRx.get(API_GET_INSPECT_GETJURISDICTION, errorCatcher, errorHandle, filter)
 //财务开票
-export const invoicing  = appRx.post(API_POST_INVOICING, errorCatcher, errorHandle, filter)
+export const invoicing  = appRx.get(API_GET_INVOICING, errorCatcher, errorHandle, filter)

+ 5 - 2
src/views/houseSelfCollect/paymentManagement.vue

@@ -337,8 +337,11 @@ export default {
   },
   methods: {
     invoicingClick(){
-      let data = JSON.stringify(this.modification)
-      console.log("开票",this.modification)
+      
+      let data = JSON.stringify({
+        paymentManagement :this.modification
+      })
+      console.log("开票",data)
       //开票
         invoicing(data)
         .toPromise()