lilei 3 years ago
parent
commit
60c176570c
1 changed files with 12 additions and 6 deletions
  1. 12 6
      src/views/financialManagement/fundAccountManagement/detail.vue

+ 12 - 6
src/views/financialManagement/fundAccountManagement/detail.vue

@@ -5,6 +5,7 @@
         <!-- 自定义的二级文字标题 -->
         <template slot="subTitle">
           <a id="fundAcountDetail-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
+          <span style="color: #333;margin-left: 30px;font-weight: bold;" v-if="detailData">{{ detailData.settleStyleName }}({{ detailData.accountName }} {{ detailData.accountNo }})</span>
         </template>
       </a-page-header>
       <a-card size="small" :bordered="false">
@@ -79,7 +80,7 @@
 import { commonMixin } from '@/utils/mixin'
 import { STable, VSelect } from '@/components'
 import rangeDate from '@/views/common/rangeDate.vue'
-import { findSettleFlowPage } from '@/api/settleAcount'
+import { findSettleFlowPage, settleAccountDetail } from '@/api/settleAcount'
 export default {
   name: 'ExpenseManagementList',
   components: { STable, VSelect, rangeDate },
@@ -106,8 +107,7 @@ export default {
       tableHeight: 0,
       disabled: false, //  查询、重置按钮是否可操作
       advanced: true, //  高级搜索 展开/关闭
-      costTypeList: [], // 费用类型
-      costType: [],
+      detailData: null, // 详细基础信息
       // 查询参数
       queryParam: {
         beginDate: '',
@@ -144,9 +144,7 @@ export default {
           this.spinning = false
           return data
         })
-      },
-      openModal: false, //  查看详情  弹框
-      itemId: '' //  当前id
+      }
     }
   },
   methods: {
@@ -172,6 +170,7 @@ export default {
       this.$nextTick(() => { // 页面渲染完成后的回调
         _this.setTableH()
       })
+      this.getDetail()
     },
     setTableH () {
       const tableSearchH = this.$refs.tableSearch.offsetHeight
@@ -184,6 +183,13 @@ export default {
       } else {
         this.$emit('cansel')
       }
+    },
+    getDetail () {
+      settleAccountDetail({ settleAccountSn: this.$route.params.sn }).then(res => {
+        if (res.status == '200') {
+          this.detailData = res.data
+        }
+      })
     }
   },
   watch: {