|
|
|
@ -31,10 +31,9 @@ |
|
|
|
|
<a-col :span="12"> |
|
|
|
|
<a-form-item label="法人身份证正面" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<SelectImage |
|
|
|
|
v-if="record.card_front_url" |
|
|
|
|
ref="childComponent" |
|
|
|
|
:type="1" |
|
|
|
|
multiple |
|
|
|
|
:source="1" |
|
|
|
|
:maxNum="1" |
|
|
|
|
:defaultList="record.card_front_url" |
|
|
|
|
/> </a-form-item></a-col |
|
|
|
@ -43,6 +42,7 @@ |
|
|
|
|
<a-col :span="12"> |
|
|
|
|
<a-form-item label="法人身份证反面" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<SelectImage |
|
|
|
|
v-if="record.card_back_url" |
|
|
|
|
ref="childComponent" |
|
|
|
|
:type="1" |
|
|
|
|
multiple |
|
|
|
@ -54,6 +54,7 @@ |
|
|
|
|
<a-col :span="12"> |
|
|
|
|
<a-form-item label="营业执照" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<SelectImage |
|
|
|
|
v-if="record.business_license_url" |
|
|
|
|
ref="childComponent" |
|
|
|
|
:type="1" |
|
|
|
|
multiple |
|
|
|
@ -66,6 +67,7 @@ |
|
|
|
|
<a-col :span="12"> |
|
|
|
|
<a-form-item label="法人手持营业执照" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<SelectImage |
|
|
|
|
v-if="record.photo_url" |
|
|
|
|
ref="childComponent" |
|
|
|
|
:type="1" |
|
|
|
|
multiple |
|
|
|
@ -77,6 +79,7 @@ |
|
|
|
|
<a-col :span="12" v-if="record.type == 20"> |
|
|
|
|
<a-form-item label="法人收款二维码" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<SelectImage |
|
|
|
|
v-if="record.qr_code_url" |
|
|
|
|
ref="childComponent" |
|
|
|
|
:type="1" |
|
|
|
|
multiple |
|
|
|
@ -181,12 +184,11 @@ |
|
|
|
|
<script> |
|
|
|
|
import pick from 'lodash.pick' |
|
|
|
|
import * as Api from '@/api/content/banner' |
|
|
|
|
import { SelectImage, SelectActive } from '@/components' |
|
|
|
|
import { SelectImage } from '@/components' |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
components: { |
|
|
|
|
SelectImage, |
|
|
|
|
SelectActive, |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
@ -211,20 +213,16 @@ export default { |
|
|
|
|
edit(record) { |
|
|
|
|
// 显示窗口 |
|
|
|
|
this.visible = true |
|
|
|
|
this.record = {} |
|
|
|
|
// 当前记录 |
|
|
|
|
this.record = record |
|
|
|
|
// 设置默认值 |
|
|
|
|
this.setFieldsValue() |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 设置默认值 |
|
|
|
|
setFieldsValue() { |
|
|
|
|
const { |
|
|
|
|
record, |
|
|
|
|
form: { setFieldsValue }, |
|
|
|
|
} = this |
|
|
|
|
this.record.card_front_url = null |
|
|
|
|
this.record.card_back_url = null |
|
|
|
|
this.record.business_license_url = null |
|
|
|
|
this.record.photo_url = null |
|
|
|
|
this.record.qr_code_url = null |
|
|
|
|
this.$forceUpdate() |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
setFieldsValue(pick(record, ['name', 'image_id', 'redirect_url', 'status', 'sort'])) |
|
|
|
|
this.record = record |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|