lilei 2 年之前
父节点
当前提交
881e6fcbbb
共有 1 个文件被更改,包括 9 次插入9 次删除
  1. 9 9
      src/views/financialManagement/financialCollection/fcDetailModal.vue

+ 9 - 9
src/views/financialManagement/financialCollection/fcDetailModal.vue

@@ -328,6 +328,7 @@ export default {
     handleChange (v) {
       console.log(v)
       if(v){
+        this.form.bankAccount = v
         const row = this.bankList.find(item => item.bankAccount == v)
         this.bankNameList = row.bankName
         this.form.bankName = undefined  
@@ -427,12 +428,15 @@ export default {
       })
     },
     setDetail (data) {
-      this.handleChange(data.bankAccount)
       this.form = Object.assign(this.form, { payerTypeDictValue: data.payerTypeDictValue, payerType: data.payerType, dealerSn: data.dealerSn, payerName: data.payerName })
       this.$nextTick(() => {
         if(this.form.dealerSn){
           // this.$refs.settleClientName.getDetail(this.form.dealerSn)
           this.getDealerDetail(this.form.dealerSn)
+        }else{
+          this.form.bankAccount = '张丽添'
+          this.form.bankName = '农业银行'
+          this.bankNameList = ['农业银行']
         }
       })
     },
@@ -469,11 +473,12 @@ export default {
     pageInit () {
       this.$nextTick(() => {
         this.title = '新增收款明细'
-        // if (this.$refs.settleClientName) {
-        //   this.$refs.settleClientName.resetForm()
-        // }
       })
       this.bankNameList = []
+      this.bankNameList = ['东莞银行']
+      if(this.$refs.ruleForm){
+        this.$refs.ruleForm.resetFields()
+      }
       this.form = {
         payerType: 'DEALER',
         payerAccountType: 'PUBLIC',
@@ -496,16 +501,11 @@ export default {
         fullPaymentFlag: '1',
         explainInfo: ''
       }
-      this.bankNameList = ['东莞银行']
-      this.$refs.ruleForm.resetFields()
     }
   },
   watch: {
     show (newValue, oldValue) {
       this.opened = newValue
-      if (!newValue) {
-        this.pageInit()
-      }
     }
   }
 }