lilei 2 years ago
parent
commit
92acad7f0e

+ 1 - 8
src/api/financeBook.js

@@ -11,14 +11,7 @@ export const financeBookQueryPage = (params) => {
     method: 'post'
   })
 }
-// 获取最近一次审核信息
-export const queryLastFinish = (params) => {
-  return axios({
-    url: `/financeBook/queryLastFinish`,
-    data: params,
-    method: 'post'
-  })
-}
+
 // 获取最新一次钉钉审核人员信息
 export const queryLastFinishDingUser = (params) => {
   return axios({

+ 2 - 1
src/views/expenseManagement/expenseReimbursement/list.vue

@@ -259,12 +259,13 @@ export default {
         rows.map(item => {
           ret.push({
             id: item.id,
-            printStatus:"PASS"
+            printStatus:"PRINT"
           })
         })
         expenseAccountUpdateBatch(ret).then(res => {
           if(res.status == 200){
             this.$refs.table.refresh()
+            this.$refs.table.clearSelected()
           }
           this.spinning = false
         })

+ 8 - 6
src/views/financialManagement/financialCollection/baseModal.vue

@@ -68,7 +68,7 @@ import { commonMixin } from '@/utils/mixin'
 import { VSelect, Upload } from '@/components'
 import employee from '../../expenseManagement/expenseReimbursement/employee.js'
 import dealerSubareaScopeList from '@/views/common/dealerSubareaScopeList.vue'
-import { financeBookSave, financeBookFindBySn, queryLastFinish } from '@/api/financeBook.js'
+import { financeBookSave, financeBookFindBySn, queryLastFinishDingUser } from '@/api/financeBook.js'
 export default {
   name: 'FcBaseModal',
   mixins: [commonMixin],
@@ -230,11 +230,13 @@ export default {
         this.getDetail()
       }else{
         // 最近一次审核人
-        const lastAuditInfo = await queryLastFinish().then(res => res.data)
-        this.form.dealerSn = lastAuditInfo ? lastAuditInfo.applyPersonSn : undefined
-        this.$nextTick(() => {
-          this.$refs.settleClientName.getDetail(this.form.dealerSn)
-        })
+        const lastAuditInfo = await queryLastFinishDingUser().then(res => res.data)
+        if(lastAuditInfo){
+          this.form.dealerSn = lastAuditInfo ? lastAuditInfo.applyPersonSn : undefined
+          this.$nextTick(() => {
+            this.$refs.settleClientName.getDetail(this.form.dealerSn)
+          })
+        }
       }
     }
   },

+ 5 - 3
src/views/financialManagement/financialCollection/fcDetailModal.vue

@@ -327,9 +327,11 @@ export default {
     },
     handleChange (v) {
       console.log(v)
-      const row = this.bankList.find(item => item.bankAccount == v)
-      this.bankNameList = row.bankName
-      this.form.bankName = undefined
+      if(v){
+        const row = this.bankList.find(item => item.bankAccount == v)
+        this.bankNameList = row.bankName
+        this.form.bankName = undefined  
+      }
     },
     getLastPayerAccount () {
       this.spinning = true