Browse Source

2023.10.20

bulusiLuo 1 year ago
parent
commit
ce44047195

+ 6 - 6
public/envConfig/evn.dev.js

@@ -4,9 +4,9 @@ export default {
   // ESRI_COBFIG_URL: '192.168.2.91:9000',
   // MAP_SERVICE_URL: '192.168.2.91:9000',
   // 公司环境
-  // BASE_URL: 'http://221.182.8.141:8382',
-  // ESRI_COBFIG_URL: '221.182.8.141:8382',
-  // MAP_SERVICE_URL: '221.182.8.141:8382'
+  BASE_URL: 'http://221.182.8.141:8382',
+  ESRI_COBFIG_URL: '221.182.8.141:8382',
+  MAP_SERVICE_URL: '221.182.8.141:8382'
   // 测试接口
   // BASE_URL: 'http://192.168.2.15:8382',
   // ESRI_COBFIG_URL: '192.168.2.15:8382',
@@ -19,7 +19,7 @@ export default {
   // ESRI_COBFIG_URL: '192.168.2.20:9000',
   // MAP_SERVICE_URL: '192.168.2.20:9000',
   //* ***************正式环境接口地址**************** */
-  BASE_URL: 'http://36.134.27.109:10082',
-  ESRI_COBFIG_URL: '36.134.27.109:10082',
-  MAP_SERVICE_URL: '36.134.27.109:10082'
+  // BASE_URL: 'http://36.134.27.109:10082',
+  // ESRI_COBFIG_URL: '36.134.27.109:10082',
+  // MAP_SERVICE_URL: '36.134.27.109:10082'
 }

+ 6 - 1
src/utils/commonFlow.js

@@ -364,7 +364,7 @@ class CommonFlow {
   }
 
   // 工程结算款确认带表格
-  getSettleTable(data, serverName) {
+  getSettleTable(data, serverName, serverName2) {
     const dto = { userId: "", stepNode: "", processStep: "", handleState: "", handleRemark: "", tablelList: [], nextSteps: [], fileName: "", saveState: 0, };
     const fileName = [];
     const fileList = [];
@@ -383,16 +383,21 @@ class CommonFlow {
     }
     console.log("dto", dto);
     delete dto.tablelList;
+    delete dto.tableBudget;
     dto.fileName = fileName;
     dto.remark = data.remark;
     dto.opinion = data.explain;
     dto.numberValue = data.realhushu;
 
     const tempMap = JSON.stringify(data.tablelList);
+    const tempMap2 = JSON.stringify(data.tableBudget);
     dto.map = {};
     if (serverName) {
       dto.map[serverName] = tempMap;
     }
+    if (serverName2) {
+      dto.map[serverName2] = tempMap2;
+    }
     dto.processId = data.processId || "";
     console.log("最终格式", dto);
     sendData.append('dto', new Blob([JSON.stringify(dto)], { type: 'application/json' }));

+ 1 - 1
src/views/zhpt/projectManager/IndoorRenovation/projRecieveMaterial/addProject/detailPage.vue

@@ -5,7 +5,7 @@
     </input-legend>
     <input-legend label="领料信息" isopen="true">
       <look-form v-if="!fetchingDetail && !fetchingUserInfo" :config="config" />
-      <!-- <el-button class="btnReport" type="primary" size="small" @click="openReport">打印领料单</el-button> -->
+      <el-button class="btnReport" type="primary" size="small" @click="openReport">打印领料单</el-button>
     </input-legend>
     <input-legend label="材料信息" isopen="true">
       <span style="display: block; padding-bottom: 10px"

+ 81 - 25
src/views/zhpt/projectManager/newInstall/proSettlement/addSettle/detailPage.vue

@@ -4,7 +4,7 @@
       <lookForm :config="projectInfo" ref="lookinfo"></lookForm>
     </inputLegend>
     <inputLegend :label="'工程结算单'" isopen="true">
-      <div style="margin: 0 0 20px" v-show="!isBaogan">
+      <!-- <div style="margin: 0 0 20px" v-show="!isBaogan">
         <tableDispatch
           @getTotalPrice="getTotalPrice"
           v-if="moneyShow"
@@ -13,8 +13,15 @@
           :desArr="desArr"
           :isDetailShow="true"
         />
-      </div>
-      <lookForm :config="config1" v-if="inputFormShow"></lookForm>
+      </div> -->
+      <lookForm :config="config4" v-if="inputFormShow && !isBaogan"></lookForm>
+      <lookForm :config="config1" v-if="inputFormShow && isBaogan"></lookForm>
+
+      <legendLook :label="'结算费用'" isopen="true" v-if="inputFormShow">
+        <div style="margin: 0 0 20px">
+          <tableBudget :eidtAction="false" v-show="!isBaogan" ref="tableBudget" :settleArr="settleArr2"></tableBudget>
+        </div>
+      </legendLook>
       <div style="margin: 0 0 20px">
         <tablePriceTotal v-if="moneyShow" ref="tablePrice" :moneyObj="moneyObj"></tablePriceTotal>
       </div>
@@ -26,8 +33,10 @@
 <script>
 // import flowMap from "@/components/flowMap/mainFlow.vue";
 import lookForm from '@/components/projectCom/lookForm/index.vue'
+import legendLook from '@/components/projectCom/legendLook/index.vue'
 import inputLegend from '@/components/projectCom/legend/index.vue'
 import proNews from '@/components/projectCom/proNews/index.vue'
+import tableBudget from './tableBudget'
 import tableDispatch from './tableDispatch'
 import tablePriceTotal from './tablePriceTotal.vue'
 import { getProjcetInfo } from '@/api/process/processDetail.ts'
@@ -36,7 +45,7 @@ import { detailInfo } from '@/views/zhpt/projectManager/newInstall/common/detail
 import commonMe from '@/utils/common.js'
 export default {
   name: 'wxCheck',
-  components: { lookForm, proNews, inputLegend, tableDispatch, tablePriceTotal },
+  components: { lookForm, proNews, inputLegend, tableDispatch, tablePriceTotal, tableBudget, legendLook },
   props: {
     inputData: {} //当前数据的信息
   },
@@ -51,6 +60,7 @@ export default {
       str3: '',
       str4: '',
       settleArr: [],
+      settleArr2: null,
       isBaogan: false,
       isJizhong: false,
       moneyShow: false,
@@ -78,6 +88,23 @@ export default {
           }
         ]
       },
+      config4: {
+        data: {}, //原始数据
+        showfield: [
+          {
+            group: [
+              {
+                field: 'settlementModeName', //存储字段
+                label: '结算方式' //显示标签
+              },
+              {
+                field: 'realhushu', //存储字段
+                label: '实际户数' //显示标签
+              }
+            ]
+          }
+        ]
+      },
       config2: {
         data: {}, //原始数据
         showfield: [
@@ -171,16 +198,18 @@ export default {
      * 按实结算计算费用
      */
     getTotalPriceAn(value) {
-      this.config1.showfield.forEach((item) => {
-        item.group.forEach((item2, index) => {
-          if (item2.field) {
-            if (item2.field == 'SettleTotalPrice') {
-              item2.value = value
-              this.moneyObj.receivable = value
+      if (this.isBaogan) {
+        this.config1.showfield.forEach((item) => {
+          item.group.forEach((item2, index) => {
+            if (item2.field) {
+              if (item2.field == 'SettleTotalPrice') {
+                item2.value = value
+                this.moneyObj.receivable = value
+              }
             }
-          }
+          })
         })
-      })
+      }
       this.config2.showfield.forEach((item) => {
         item.group.forEach((item2, index) => {
           if (item2.field) {
@@ -196,16 +225,18 @@ export default {
      * 计算费用
      */
     getTotalPrice(value) {
-      this.config1.showfield.forEach((item) => {
-        item.group.forEach((item2, index) => {
-          if (item2.field) {
-            if (item2.field == 'SettleTotalPrice') {
-              item2.value = value
-              this.moneyObj.receivable = (value - this.moneyObj.waterElectricity).toFixed(2)
+      if (this.isBaogan) {
+        this.config1.showfield.forEach((item) => {
+          item.group.forEach((item2, index) => {
+            if (item2.field) {
+              if (item2.field == 'SettleTotalPrice') {
+                item2.value = value
+                this.moneyObj.receivable = (value - this.moneyObj.waterElectricity).toFixed(2)
+              }
             }
-          }
+          })
         })
-      })
+      }
       this.config2.showfield.forEach((item) => {
         item.group.forEach((item2, index) => {
           if (item2.field) {
@@ -228,6 +259,10 @@ export default {
                 if (val.dataMap && val.dataMap.tfBillWService && val.dataMap.tfBillWService[0]) {
                   this.settleArr = val.dataMap.tfBillWService
                 }
+                if (val.dataMap && val.dataMap.tfChargeWService && val.dataMap.tfChargeWService[0]) {
+                  this.settleArr2 = val.dataMap.tfChargeWService[0]
+                  console.log('settleArr2', this.settleArr2)
+                }
                 this.config2.showfield.forEach((item) => {
                   item.group.forEach((item2, index) => {
                     if (item2.field) {
@@ -255,6 +290,15 @@ export default {
                     }
                   })
                 })
+                this.config4.showfield.forEach((item) => {
+                  item.group.forEach((item2, index) => {
+                    if (item2.field) {
+                      if (item2.field == 'realhushu') {
+                        item2.value = val.numberValue
+                      }
+                    }
+                  })
+                })
               } else if (val.pageCode == 'contractCheck_addProject' && val.isValid) {
                 if (val.dataMap && val.dataMap.tfContractWService && val.dataMap.tfContractWService[0]) {
                   let {
@@ -298,6 +342,15 @@ export default {
                       }
                     })
                   })
+                  this.config4.showfield.forEach((item) => {
+                    item.group.forEach((item2, index) => {
+                      if (item2.field) {
+                        if (item2.field == 'settlementModeName') {
+                          item2.value = settlementModeName
+                        }
+                      }
+                    })
+                  })
                 }
               } else if (val.pageCode == 'userPayment_addUserSettle' && val.isValid) {
                 if (val.dataMap && val.dataMap.tfChargeRefundWService && val.dataMap.tfChargeRefundWService[0]) {
@@ -368,11 +421,14 @@ export default {
               ).toFixed(2)
               this.getTotalPriceAn(allPrice)
             } else {
-              if (this.settleArr) {
-                this.settleArr.forEach((item) => {
-                  allPrice += item.amountMoney
-                })
-                allPrice = allPrice.toFixed(2)
+              // if (this.settleArr) {
+              //   this.settleArr.forEach((item) => {
+              //     allPrice += item.amountMoney
+              //   })
+              //   allPrice = allPrice.toFixed(2)
+              // } else
+              if (this.settleArr2) {
+                allPrice = this.settleArr2.realAmount
               } else {
                 allPrice = (this.str1 + this.str2 + this.str3 + this.str4).toFixed(2)
               }

+ 73 - 27
src/views/zhpt/projectManager/newInstall/proSettlement/addSettle/inputPage.vue

@@ -8,7 +8,7 @@
       </keep-alive>
       <keep-alive>
         <inputLegend :label="'工程结算单'" v-if="inputFormShow" isopen="true">
-          <div style="margin: 0 0 20px" v-show="!isBaogan">
+          <!-- <div style="margin: 0 0 20px" v-show="!isBaogan">
             <tableDispatch
               @getTotalPrice="getTotalPrice"
               v-if="moneyShow"
@@ -17,7 +17,7 @@
               :desArr="desArr"
               :isDetailShow="false"
             />
-          </div>
+          </div> -->
           <div class="inputFormPage">
             <el-form
               ref="form"
@@ -53,12 +53,18 @@
                     "
                   ></el-input>
                 </el-form-item>
-                <el-form-item label="结算总价" class="textDiv" :style="'width:' + 100 / 3 + '%;'" required>
+                <el-form-item
+                  label="结算总价"
+                  v-if="isBaogan"
+                  class="textDiv"
+                  :style="'width:' + 100 / 3 + '%;'"
+                  required
+                >
                   <el-input
                     size="small"
                     v-model="ruleFormList.form1.ruleForm.SettleTotalPrice"
                     style="width: 91%; color: red"
-                    disabled
+                    @change="getJisuanFn"
                   >
                   </el-input>
 
@@ -77,11 +83,17 @@
               </div>
             </el-form>
           </div>
-          <!-- <legendLook :label="'结算费用'" isopen="true">
+          <legendLook :label="'结算费用'" isopen="true">
             <div style="margin: 0 0 20px">
-              <tableBudget :unitNum="unitNum" :eidtAction="true" ref="tableBudget"></tableBudget>
+              <tableBudget
+                :eidtAction="true"
+                v-show="!isBaogan"
+                ref="tableBudget"
+                :settleArr="settleArr2"
+                @getJisuanFn="getJisuanFn"
+              ></tableBudget>
             </div>
-          </legendLook> -->
+          </legendLook>
           <legendLook :label="'缴费情况'" isopen="true">
             <div style="margin: 0 0 20px">
               <tablePriceTotal
@@ -179,6 +191,7 @@ export default {
       totalPrice: '', // 工程结算款确认总价
       flowMoveInfo: null,
       settleArr: null,
+      settleArr2: null,
       isBaogan: false,
       isJizhong: false,
       isAnshiJiesuan: false,
@@ -256,6 +269,35 @@ export default {
     this.gitSettleMed()
   },
   methods: {
+    getJisuanFn(e) {
+      if (this.isBaogan) {
+        this.moneyObj.receivable = Number(e)
+      } else {
+        this.moneyObj.receivable = (Number(e) - this.moneyObj.waterElectricity).toFixed(2)
+      }
+      // this.totalPrice = this.moneyObj.receivable
+      this.inputConfig4.data.forEach((item) => {
+        item.group.forEach((item2, index) => {
+          if (item2.field) {
+            if (item2.field == 'payablePrice') {
+              item2.value = (this.moneyObj.receivable - this.moneyObj.amount).toFixed(2) + ''
+              if (this.moneyObj.receivable - this.moneyObj.amount >= 0) {
+                this.customClassName = 'moneyDiv red'
+              } else {
+                this.customClassName = 'moneyDiv green'
+              }
+              this.$nextTick(() => {
+                console.log('应缴金额', item2.value)
+                this.flowMoveInfo.data.payablePrice = parseFloat(item2.value)
+                this.$refs.nextNodeInfo.inputChangeHandle()
+                this.$refs.inputForm.getInputInfo()
+              })
+            }
+          }
+        })
+      })
+      this.index11++
+    },
     /**
      * 分支流程判断的初始化
      * */
@@ -349,14 +391,14 @@ export default {
                 val.stepNode == this.inputData.data.stepNode &&
                 val.isValid
               ) {
-                if (
-                  val.dataMap &&
-                  val.dataMap[this.inputData.currentserviceImpls] &&
-                  val.dataMap[this.inputData.currentserviceImpls][0]
-                ) {
-                  this.settleArr = val.dataMap[this.inputData.currentserviceImpls]
+                if (val.dataMap && val.dataMap.tfBillWService && val.dataMap.tfBillWService[0]) {
+                  this.settleArr = val.dataMap.tfBillWService
                   console.log('90909090', this.settleArr)
                 }
+                if (val.dataMap && val.dataMap.tfChargeWService && val.dataMap.tfChargeWService[0]) {
+                  this.settleArr2 = val.dataMap.tfChargeWService[0]
+                  console.log('settleArr2', this.settleArr2)
+                }
                 this.ruleFormList.form1.ruleForm.realhushu = val.numberValue
                 this.inputConfig4.data.forEach((item) => {
                   item.group.forEach((item2, index) => {
@@ -476,11 +518,14 @@ export default {
                 this.moneyObj.waterElectricity
               ).toFixed(2)
             } else {
-              if (this.settleArr) {
-                this.settleArr.forEach((item) => {
-                  allPrice += item.amountMoney
-                })
-                allPrice = allPrice.toFixed(2)
+              // if (this.settleArr) {
+              //   this.settleArr.forEach((item) => {
+              //     allPrice += item.amountMoney
+              //   })
+              //   allPrice = allPrice.toFixed(2)
+              // } else
+              if (this.settleArr2) {
+                allPrice = this.settleArr2.realAmount
               } else {
                 allPrice = (this.str1 + this.str2 + this.str3 + this.str4).toFixed(2)
               }
@@ -523,13 +568,11 @@ export default {
      * 计算费用
      */
     getTotalPrice(value, type) {
-      this.ruleFormList.form1.ruleForm['SettleTotalPrice'] = Number(value).toFixed(2)
       if (type) {
-        this.moneyObj.receivable = this.ruleFormList.form1.ruleForm.SettleTotalPrice
+        this.ruleFormList.form1.ruleForm['SettleTotalPrice'] = Number(value).toFixed(2)
+        this.moneyObj.receivable = value
       } else {
-        this.moneyObj.receivable = (
-          this.ruleFormList.form1.ruleForm.SettleTotalPrice - this.moneyObj.waterElectricity
-        ).toFixed(2)
+        this.moneyObj.receivable = (value - this.moneyObj.waterElectricity).toFixed(2)
       }
       // this.totalPrice = this.moneyObj.receivable
       this.inputConfig4.data.forEach((item) => {
@@ -559,8 +602,10 @@ export default {
      */
     getFormData(value) {
       // if (!this.isBaogan) {
-      this.tableDispatch = this.$refs.tableDispatch.submitData()
-      console.log('表格数据', this.tableDispatch)
+      // this.tableDispatch = this.$refs.tableDispatch.submitData()
+      let tableBudget = this.$refs.tableBudget.submitData()
+      // console.log('表格数据', this.tableDispatch)
+      console.log('表格数据2', tableBudget)
       // }
       console.log('ruleFormList', this.ruleFormList)
       const sgParams = {}
@@ -576,10 +621,11 @@ export default {
         }
       }
       sgParams.saveState = value
-      sgParams.tablelList = this.tableDispatch
+      // sgParams.tablelList = this.tableDispatch
+      sgParams.tableBudget = tableBudget
       // sgParams.totalPrice = this.totalPrice
       console.log('表单数据', sgParams)
-      return commonFlow.getSettleTable(sgParams, 'tfBillWService')
+      return commonFlow.getSettleTable(sgParams, 'tfBillWService', 'tfChargeWService')
     },
 
     /**

+ 73 - 38
src/views/zhpt/projectManager/newInstall/proSettlement/addSettle/tableBudget.vue

@@ -14,12 +14,12 @@
       }"
     >
       <el-table-column prop="costType" label="费用类型" width="180" align="center"> </el-table-column>
-      <el-table-column prop="projectBudget" label="工程结算金额(元)" width="180" align="center">
+      <el-table-column prop="chargeAmount" label="工程结算金额(元)" width="180" align="center">
         <template slot-scope="scope">
           <el-input
             v-if="scope.$index === 0"
             class="tf-input-border"
-            v-model="scope.row.projectBudget"
+            v-model="scope.row.chargeAmount"
             v-bind:ref="'r' + scope.$index + 'c' + 1"
             size="small"
             :disabled="!eidtAction"
@@ -42,7 +42,7 @@
           </el-input> -->
         </template>
       </el-table-column>
-      <el-table-column prop="design" label="设计费费率(%)" align="center">
+      <el-table-column prop="designAmount" label="设计费费率(%)" align="center">
         <template slot-scope="scope">
           <el-input
             class="tf-input-border"
@@ -57,11 +57,11 @@
           ></el-input>
         </template>
       </el-table-column>
-      <el-table-column prop="design" label="设计费(元)" align="center">
+      <el-table-column prop="designAmount" label="设计费(元)" align="center">
         <template slot-scope="scope">
           <el-input
             class="tf-input-border"
-            v-model="scope.row.design"
+            v-model="scope.row.designAmount"
             v-bind:ref="'r' + scope.$index + 'c' + 1"
             size="small"
             :maxlength="6"
@@ -71,11 +71,11 @@
           ></el-input>
         </template>
       </el-table-column>
-      <el-table-column prop="design" label="监理费费率(%)" align="center">
+      <el-table-column prop="designAmount" label="监理费费率(%)" align="center">
         <template slot-scope="scope">
           <el-input
             class="tf-input-border"
-            v-model="scope.row.supervisorRate"
+            v-model="scope.row.spvRate"
             v-bind:ref="'r' + scope.$index + 'c' + 1"
             size="small"
             :maxlength="6"
@@ -86,11 +86,11 @@
           ></el-input>
         </template>
       </el-table-column>
-      <el-table-column prop="supervisor" label="监理费(元)" align="center">
+      <el-table-column prop="spvAmount" label="监理费(元)" align="center">
         <template slot-scope="scope">
           <el-input
             class="tf-input-border"
-            v-model="scope.row.supervisor"
+            v-model="scope.row.spvAmount"
             v-bind:ref="'r' + scope.$index + 'c' + 1"
             size="small"
             :disabled="true"
@@ -99,11 +99,11 @@
           ></el-input>
         </template>
       </el-table-column>
-      <el-table-column prop="budget" label="项目合计(元)" align="center">
+      <el-table-column prop="totalAmount" label="项目合计(元)" align="center">
         <template slot-scope="scope">
           <el-input
             class="tf-input-border"
-            v-model="scope.row.budget"
+            v-model="scope.row.totalAmount"
             v-bind:ref="'r' + scope.$index + 'c' + 1"
             size="small"
             maxlength="15"
@@ -112,6 +112,22 @@
           ></el-input>
         </template>
       </el-table-column>
+      <el-table-column prop="realAmount" label="最终实际结算金额" align="center">
+        <template slot-scope="scope">
+          <el-input
+            class="tf-input-border"
+            v-model="scope.row.realAmount"
+            v-bind:ref="'r' + scope.$index + 'c' + 1"
+            size="small"
+            :maxlength="6"
+            show-word-limit
+            :disabled="!eidtAction"
+            type="number"
+            @blur="getTotal"
+            @change="getJisuan"
+          ></el-input>
+        </template>
+      </el-table-column>
       <!-- <el-table-column prop="unitPrice" label="户均单价(元)" align="center">
         <template slot-scope="scope">
           <el-input
@@ -131,49 +147,65 @@
 
 <script>
 export default {
-  props: { unitNum: null, eidtAction: null },
+  props: {
+    eidtAction: null,
+    settleArr: {
+      type: Object
+    }
+  },
   data() {
     return {
       tableData: [
         {
           costType: '费用价格',
-          projectBudget: 0,
+          chargeAmount: 0,
           designRate: 4.5,
-          design: 0,
-          supervisorRate: 3.3,
-          supervisor: 0,
+          designAmount: 0,
+          spvRate: 3.3,
+          spvAmount: 0,
           // unitPrice: 0,
-          budget: 0
+          realAmount: 0,
+          totalAmount: 0
         }
         // { costType: '说明', explain: '' }
       ]
     }
   },
+  created() {
+    console.log('保存', this.settleArr)
+    if (this.settleArr) {
+      this.tableData = [{ costType: '费用价格', ...this.settleArr }]
+    } else {
+      // this.tableData = this.desArr
+    }
+  },
   methods: {
+    getJisuan(e) {
+      this.$emit('getJisuanFn', e)
+    },
     getTotal() {
-      let { projectBudget, supervisorRate, designRate } = this.tableData[0]
+      let { chargeAmount, spvRate, designRate } = this.tableData[0]
       if (
-        isNaN(projectBudget) ||
-        isNaN(supervisorRate) ||
+        isNaN(chargeAmount) ||
+        isNaN(spvRate) ||
         isNaN(designRate) ||
-        projectBudget < 0 ||
-        supervisorRate < 0 ||
+        chargeAmount < 0 ||
+        spvRate < 0 ||
         designRate < 0
       ) {
         console.log('请正确填写费用')
       } else {
         // 总价
-        this.tableData[0].design = ((Number(this.tableData[0].projectBudget) * Number(designRate)) / 100).toFixed(2)
-        this.tableData[0].supervisor = (
-          (Number(this.tableData[0].projectBudget) * Number(supervisorRate)) /
-          100
-        ).toFixed(2)
+        this.tableData[0].designAmount = ((Number(this.tableData[0].chargeAmount) * Number(designRate)) / 100).toFixed(
+          2
+        )
+        this.tableData[0].spvAmount = ((Number(this.tableData[0].chargeAmount) * Number(spvRate)) / 100).toFixed(2)
         console.log(this.tableData[0])
-        let { design, supervisor } = this.tableData[0]
-        this.tableData[0].budget = (Number(projectBudget) + Number(supervisor) + Number(design)).toFixed(3)
+        let { designAmount, spvAmount } = this.tableData[0]
+        this.tableData[0].totalAmount = (Number(chargeAmount) + Number(spvAmount) + Number(designAmount)).toFixed(3)
         // if (this.unitNum) {
         //   // 户均
-        //   this.tableData[0].unitPrice = (this.tableData[0].budget / this.unitNum).toFixed(3)
+        //   this.tableData[0].unitPrice = (this.tableData[0].totalAmount / this.unitNum).toFixed(3)
         // }
       }
     },
@@ -219,21 +251,24 @@ export default {
       if (params.designRate == '') {
         this.tableData[0].designRate = 0
       }
-      if (params.projectBudget == '') {
-        this.tableData[0].projectBudget = 0
+      if (params.chargeAmount == '') {
+        this.tableData[0].chargeAmount = 0
+      }
+      if (params.spvRate == '') {
+        this.tableData[0].spvRate = 0
       }
-      if (params.supervisorRate == '') {
-        this.tableData[0].supervisorRate = 0
+      if (params.realAmount == '') {
+        this.tableData[0].realAmount = 0
       }
       // for (let key in params) {
       //   if (!params[key]) {
       //     hasEdit = false
       //     let text = {
-      //       projectBudget: '工程预算款',
+      //       chargeAmount: '工程预算款',
       //       designRate: '设计费费率',
-      //       design: '设计预算费',
-      //       supervisorRate: '监理费费率',
-      //       supervisor: '监理预算费'
+      //       designAmount: '设计预算费',
+      //       spvRate: '监理费费率',
+      //       spvAmount: '监理预算费'
       //     }
       //     if (text[key]) {
       //       errText.push(text[key])