remitAccountModal.vue
2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<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>