user5 3 years ago
parent
commit
0829f8a855

+ 12 - 0
src/views/modules/reimbursementSys/user/reimbursementUserList.vue

@@ -81,6 +81,7 @@
           <vxe-column  title="剩余额度" field="remainReimbursementAmount"></vxe-column>
           <vxe-column  title="已报天数" field="alreadyReimbursementDay"></vxe-column>
           <vxe-column  title="剩余天数" field="surplusReimbursementDay"></vxe-column>
+          <vxe-column  title="报销来源" field="addressName" :formatter="addressType"></vxe-column>
           <vxe-column title="操作" width="300px" fixed="right" align="center">
             <template  slot-scope="scope">
               <el-button v-if="hasPermission('reimbursementUser:view')" type="text" icon="el-icon-view" size="small" @click="viewBusinessInfo(scope.row.id)">报销详情</el-button>
@@ -210,6 +211,17 @@ export default {
     viewBusinessInfo (id) {
       this.$router.push({path: `/reimbursementSys/user/reimbursementUserBusinessList`, query: {id: id, title: '报销详情'}})
     },
+    addressType (row, column) {
+      let type = row.row.addressName
+      console.log(row)
+      // eslint-disable-next-line eqeqeq
+      if (type == 0) {
+        return ''
+        // eslint-disable-next-line eqeqeq
+      } else if (type == 1) {
+        return '武汉'
+      }
+    },
     // 删除
     del (id) {
       let ids = id || this.$refs.reimbursementUserTable.getCheckboxRecords().map(item => {

+ 1 - 1
src/views/modules/reimbursementSys/wuHanReimbursementList.vue

@@ -342,7 +342,7 @@ export default {
     addBusinessInfo (id, businessCode) {
       this.$refs.reimbursementBusinessForm.init('addBusinessInfo', {id: '', businessCodeId: id, businessCode: businessCode, parent: {id: '', name: ''}})
     },
-    // 查看业务报销详情
+    // 查看业务报销详情/reimbursementSys/reimbursementBusinessList
     viewBusinessInfo (id) {
       this.$router.push({path: `/reimbursementSys/wuHanReimbursementBusinessList`, query: {id: id, title: '业务报销详情'}})
     },