Sfoglia il codice sorgente

成分分配表保存

jbb 2 anni fa
parent
commit
ef99c6462d

+ 1 - 1
src/api/document/cost-allocation-total.js

@@ -43,6 +43,6 @@ const cancelItemCheck = params => getAction('/cost/syCostAllocation/dApproveByPl
 const seachPlanNum = params => getAction('/cost/syCostAllocation/queryByPlanNum', params)
 
 //保存 到单证汇总列表
-const addHalfInfo = params => postAction('/cost/syCostAllocation//add', params)
+const addHalfInfo = params => postAction('/cost/syCostAllocation/add', params)
 
 export { costList, costByPlanNum, itemCheck, cancelItemCheck, seachPlanNum,addHalfInfo }

+ 7 - 6
src/views/reportForms/cost-allocation-table.vue

@@ -376,12 +376,13 @@ export default {
       if (this.detailsPlanNum.remarks) {
         // 保存 部分信息
         var halfInfo = {}
-        halfInfo.planNum = this.detailsPlanNum.planNum
-        halfInfo.remarks = this.detailsPlanNum.remarks
-        halfInfo.billstatus = '1'
-        console.log(halfInfo.planNum, halfInfo.remarks, halfInfo.billstatus)
-
-        addHalfInfo(halfInfo).then(res => {
+        // halfInfo.planNum = this.detailsPlanNum.planNum
+        // halfInfo.remarks = this.detailsPlanNum.remarks
+        // halfInfo.billstatus = '1'
+        // console.log(halfInfo.planNum, halfInfo.remarks, halfInfo.billstatus)
+        var planNum = this.detailsPlanNum.planNum,
+            json = this.detailsPlanNum
+        addHalfInfo({planNum,json}).then(res => {
           if (res.success) {
             console.log('保存的部分信息', halfInfo)
             this.$message.success('保存成功')