瀏覽代碼

财务收款付款 更换接口

chenrui 4 年之前
父節點
當前提交
9cf5e1f212

+ 2 - 2
src/api/settlePay.js

@@ -48,7 +48,7 @@ export const queryByTypeSum = (params) => {
 // 付款
 // 付款
 export const settlePayMoney = (params) => {
 export const settlePayMoney = (params) => {
   return axios({
   return axios({
-    url: `settle/pay/payMoney`,
+    url: `settle/pay/payBatch`,
     data: params,
     data: params,
     method: 'post'
     method: 'post'
   })
   })
@@ -68,4 +68,4 @@ export const delPay = (params) => {
     url: `settle/pay/delete/${params.id}`,
     url: `settle/pay/delete/${params.id}`,
     method: 'get'
     method: 'get'
   })
   })
-}
+}

+ 2 - 2
src/api/settleReceipt.js

@@ -48,7 +48,7 @@ export const queryByTypeSum = (params) => {
 // 付款
 // 付款
 export const settleReceiptMoney = (params) => {
 export const settleReceiptMoney = (params) => {
   return axios({
   return axios({
-    url: `settle/receipt/receiptMoney`,
+    url: `settle/receipt/receiptBatch`,
     data: params,
     data: params,
     method: 'post'
     method: 'post'
   })
   })
@@ -68,4 +68,4 @@ export const delReceipt = (params) => {
     url: `settle/receipt/delete/${params.id}`,
     url: `settle/receipt/delete/${params.id}`,
     method: 'get'
     method: 'get'
   })
   })
-}
+}

+ 5 - 5
src/views/financialManagement/financialCollection/list.vue

@@ -83,7 +83,7 @@
       :rowKey="record => record.id"
       :rowKey="record => record.id"
       :columns="columns"
       :columns="columns"
       :data="loadData"
       :data="loadData"
-      :scroll="{ x: 1290, y: tableHeight }"
+      :scroll="{ x: 1460, y: tableHeight }"
       bordered
       bordered
     >
     >
       <!-- 操作 -->
       <!-- 操作 -->
@@ -146,7 +146,7 @@ export default {
         {
         {
           title: '收款单号',
           title: '收款单号',
           dataIndex: 'settleNo',
           dataIndex: 'settleNo',
-          width: 140,
+          width: 220,
           align: 'center',
           align: 'center',
           customRender: function (text) {
           customRender: function (text) {
             return text || '--'
             return text || '--'
@@ -155,7 +155,7 @@ export default {
         {
         {
           title: '关联单号',
           title: '关联单号',
           dataIndex: 'bizNo',
           dataIndex: 'bizNo',
-          width: 140,
+          width: 220,
           align: 'center',
           align: 'center',
           customRender: function (text) {
           customRender: function (text) {
             return text || '--'
             return text || '--'
@@ -295,7 +295,7 @@ export default {
     // 收款
     // 收款
     handleCollectionSing (row) {
     handleCollectionSing (row) {
       this.loading = true
       this.loading = true
-      settleReceiptMoney({ id: row.id }).then(res => {
+      settleReceiptMoney([row.id]).then(res => {
         this.loading = false
         this.loading = false
         if (res.status == 200) {
         if (res.status == 200) {
           this.$message.success(res.message)
           this.$message.success(res.message)
@@ -317,7 +317,7 @@ export default {
         return
         return
       }
       }
       this.loading = true
       this.loading = true
-      settleReceiptMoney({ settleChangeIds: this.selectedRowKeys }).then(res => {
+      settleReceiptMoney(this.selectedRowKeys).then(res => {
         this.loading = false
         this.loading = false
         if (res.status == 200) {
         if (res.status == 200) {
           this.$message.success(res.message)
           this.$message.success(res.message)

+ 5 - 5
src/views/financialManagement/financialPayment/list.vue

@@ -82,7 +82,7 @@
       :rowKey="record => record.id"
       :rowKey="record => record.id"
       :columns="columns"
       :columns="columns"
       :data="loadData"
       :data="loadData"
-      :scroll="{ x: 1280, y: tableHeight }"
+      :scroll="{ x: 1460, y: tableHeight }"
       bordered
       bordered
     >
     >
       <!-- 操作 -->
       <!-- 操作 -->
@@ -146,7 +146,7 @@ export default {
         {
         {
           title: '付款单号',
           title: '付款单号',
           dataIndex: 'settleNo',
           dataIndex: 'settleNo',
-          width: 140,
+          width: 220,
           align: 'center',
           align: 'center',
           customRender: function (text) {
           customRender: function (text) {
             return text || '--'
             return text || '--'
@@ -155,7 +155,7 @@ export default {
         {
         {
           title: '关联单号',
           title: '关联单号',
           dataIndex: 'bizNo',
           dataIndex: 'bizNo',
-          width: 140,
+          width: 220,
           align: 'center',
           align: 'center',
           customRender: function (text) {
           customRender: function (text) {
             return text || '--'
             return text || '--'
@@ -295,7 +295,7 @@ export default {
     // 付款
     // 付款
     handlePay (row) {
     handlePay (row) {
       this.loading = true
       this.loading = true
-      settlePayMoney({ id: row.id }).then(res => {
+      settlePayMoney([row.id]).then(res => {
         this.loading = false
         this.loading = false
         if (res.status == 200) {
         if (res.status == 200) {
           this.$message.success(res.message)
           this.$message.success(res.message)
@@ -317,7 +317,7 @@ export default {
         return
         return
       }
       }
       this.loading = true
       this.loading = true
-      settlePayMoney({ settleChangeIds: this.selectedRowKeys }).then(res => {
+      settlePayMoney(this.selectedRowKeys).then(res => {
         this.loading = false
         this.loading = false
         if (res.status == 200) {
         if (res.status == 200) {
           this.$message.success(res.message)
           this.$message.success(res.message)