remitAccountModal.vue 2.59 KB
<template>
<a-modal
      :visible="visible"
      :title="title"
      :maskClosable="false" 
      :centered='true'
      :confirmLoading="confirmLoading"
      @ok="handleSubmit"
      @cancel="handleCancel"
      cancelText="关闭"
    >
    <a-spin :spinning="confirmLoading">
      <a-form :form="form" >
          <a-form-item label="公司开户行" :labelCol="{xs: { span: 8 },sm: { span: 5 }}" :wrapperCol="wrapperCol">
            <a-input
              :disabled="true"
              v-decorator="[ 'bankCardName' ]"/>
          </a-form-item>
          <a-form-item label="银行账户" :labelCol="{xs: { span: 8 },sm: { span: 5 }}" :wrapperCol="wrapperCol">
            <a-input
              :disabled="true"
              v-decorator="[ 'bankCardNo']"/>
          </a-form-item>
         <a-form-item label="开户行" :labelCol="{xs: { span: 8 },sm: { span: 5 }}" :wrapperCol="wrapperCol">
            <a-input
              :disabled="true"
              v-decorator="[ 'bankName']"/>
          </a-form-item>
          <a-form-item label="所在地区" :labelCol="{xs: { span: 8 },sm: { span: 5 }}" :wrapperCol="wrapperCol">
            <a-input
              :disabled="true"
              v-decorator="[ 'cityName']"/>
          </a-form-item>
          <a-form-item label="开户行机构名称" :labelCol="{xs: { span: 8 },sm: { span: 5 }}" :wrapperCol="wrapperCol">
            <a-input
              :disabled="true"
              v-decorator="[ 'branchName' ]"/>
        </a-form-item>
      </a-form>
    </a-spin>
</a-modal>

</template>
<script>
  import store from '@/store'
  import pick from 'lodash.pick'
  export default {
    name: "repayFlowUploadModal",
    data () {
      return {
        visible: false,
        confirmLoading: false,
        title: '',
        labelCol: {
          xs: { span: 24 },
          sm: { span: 8 },
        },
        wrapperCol: {
          xs: { span: 24 },
          sm: { span: 16 },
        },
        form: this.$form.createForm(this),
        model: {},
      }
    },
    
    methods: {
      show (record) {
        this.model = record;
        this.picUrl = record.fileUrl
        this.form.resetFields();
        this.visible = true;
        this.$nextTick(() => {
          this.form.setFieldsValue(pick(record,'bankCardName','bankCardNo','bankName','cityName','branchName'));
        });
      },

      close () {
        this.$emit('close');
        this.visible = false;
        this.disableSubmit = false;
      },
      handleSubmit () {
        this.close()
      },
      handleCancel () {
        this.close()
      }
    }
  }
</script>
<style scoped>

</style>