Browse Source

成本分配表-加载状态/表头字段缓存

jbb 1 year ago
parent
commit
0f31623886
1 changed files with 9 additions and 2 deletions
  1. 9 2
      src/views/reportForms/cost-allocation-table.vue

+ 9 - 2
src/views/reportForms/cost-allocation-table.vue

@@ -1,6 +1,7 @@
 <template>
   <!--报表 成本分配表 (保存后数据到单证的成本分配汇总内)-->
   <div id="costAllocationTable">
+    <a-spin :spinning="loading">
     <a-card :bordered="false">
       <!-- 主表信息 点击搜索后 回显--->
       <a-row :gutter="24">
@@ -309,7 +310,6 @@
         <h6 class="table-title">事故单</h6>
         <a-table
           rowKey="id"
-          :loading="loading"
           :columns="accidentListColumns"
           :data-source="accidentListData"
           bordered
@@ -328,7 +328,6 @@
         <h6 class="table-title" >费用支出</h6>
         <a-table
           rowKey="id"
-          :loading="loading"
           :columns="costPayColumns"
           :data-source="costPayData"
            bordered
@@ -372,6 +371,7 @@
       <!-- 事故单 -->
       <accidentList-modal ref="accidentListModal" :father="cc"></accidentList-modal>
     </div>
+  </a-spin>
   </div>
 </template>
 
@@ -533,11 +533,18 @@ export default {
       this.$nextTick(() => {
         // TODO:接口完善后,type 应改为 add(暂时为了回显数据)
         this.loading = true
+        var Staging = ''
+        if(data=='queryNew'){
+          Staging =this.detailsPlanNum.memo
+        }
         seachPlanNum({ plannum: this.detailsPlanNum.planNum, type: data }).then(res => {
           if (res.success) {
             this.PrintButton = false
              this.loading = false
             this.detailsPlanNum = res.result //所有详情
+            if(data=='queryNew'){
+              this.detailsPlanNum.memo = Staging
+             }
             if(Number(this.detailsPlanNum.shortseveral)<0){
               this.detailsPlanNum.shortseveral = 0
               this.detailsPlanNum.shortvalue = 0