Browse Source

成本分配表-备注-修改更新会清空

jbb 1 year ago
parent
commit
d9038e9704
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/views/reportForms/cost-allocation-table.vue

+ 4 - 1
src/views/reportForms/cost-allocation-table.vue

@@ -533,9 +533,11 @@ export default {
       this.$nextTick(() => {
         // TODO:接口完善后,type 应改为 add(暂时为了回显数据)
         this.loading = true
-        var Staging = ''
+        var Staging = '',
+        StagingLast = ''
         if(data=='queryNew'){
           Staging =this.detailsPlanNum.memo
+          StagingLast = this.detailsPlanNum.remarks
         }
         seachPlanNum({ plannum: this.detailsPlanNum.planNum, type: data }).then(res => {
           if (res.success) {
@@ -544,6 +546,7 @@ export default {
             this.detailsPlanNum = res.result //所有详情
             if(data=='queryNew'){
               this.detailsPlanNum.memo = Staging
+              this.detailsPlanNum.remarks = StagingLast
              }
             if(Number(this.detailsPlanNum.shortseveral)<0){
               this.detailsPlanNum.shortseveral = 0