浏览代码

费用报销 bug 修复

lilei 3 年之前
父节点
当前提交
5ed9e99ba0
共有 2 个文件被更改,包括 10 次插入7 次删除
  1. 8 5
      src/views/expenseManagement/expenseReimbursement/productInfoModal.vue
  2. 2 2
      vue.config.js

+ 8 - 5
src/views/expenseManagement/expenseReimbursement/productInfoModal.vue

@@ -214,10 +214,10 @@ export default {
       // 校验数据
       const retList = JSON.parse(JSON.stringify(this.dataList))
       console.log(retList)
-      if (retList.length == 0) {
-        this.$message.info('请添加产品信息')
-        return
-      }
+      // if (retList.length == 0) {
+      //   this.$message.info('请添加产品信息')
+      //   return
+      // }
       let hasError = 0
       retList.map(item => {
         if (!item.expense) {
@@ -238,7 +238,10 @@ export default {
         return
       }
       this.spinning = true
-      expenseAcctDetailSaveProducts(retList).then(res => {
+      expenseAcctDetailSaveProducts({
+        'expenseAccountDetailSn': this.expenseAccountDetailSn,
+        'detailProductsList': retList
+      }).then(res => {
         this.spinning = false
         if (res.status == 200) {
           this.$message.success(res.message)

+ 2 - 2
vue.config.js

@@ -108,9 +108,9 @@ const vueConfig = {
     // If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
     proxy: {
       '/api': {
-        // target: 'http://192.168.16.155:8602/ocs-admin',
+        target: 'http://192.168.16.105:8602/ocs-admin',
         // target: 'https://t.ocs.360arrow.com/ocs-admin', //  Á·Ï°
-        target: 'http://p.ocs.360arrow.com/ocs-admin', //  Ô¤·¢²¼
+        // target: 'http://p.ocs.360arrow.com/ocs-admin', //  Ô¤·¢²¼
         ws: false,
         changeOrigin: true,
         pathRewrite: {