BUG 31036

This commit is contained in:
aixianling
2022-09-21 16:11:15 +08:00
parent 15f5d59794
commit b70bff5807
2 changed files with 39 additions and 2 deletions

View File

@@ -22,6 +22,9 @@
maxlength="11"/>
</el-form-item>
</el-row>
<el-form-item label="企业微信二维码" prop="qrCodeUrl" v-if="!isGuarantee">
<ai-uploader v-model="form.qrCodeUrl" :instance="instance" :limit="1" isShowTip valueIsUrl/>
</el-form-item>
</template>
</ai-card>
<ai-card title="适用范围">
@@ -29,7 +32,7 @@
<el-form-item label="适用范围" prop="areaId">
<ai-area-get :instance="instance" v-model="form.areaId" showAll/>
</el-form-item>
<el-form-item label="面向对象" prop="faceUser">
<el-form-item label="面向对象" prop="faceUser" v-if="isGuarantee">
<el-checkbox-group v-model="form.faceUser">
<el-checkbox v-for="op in dict.getDict('productFaceUser')" :key="op.dictValue" :label="op.dictValue">
{{ op.dictName }}
@@ -38,6 +41,25 @@
</el-form-item>
</template>
</ai-card>
<ai-card title="产品信息" v-if="!isGuarantee">
<template #content>
<el-form-item label="申请条件" prop="applyCondition">
<el-input type="textarea" rows="5" v-model="form.applyCondition" placeholder="请输入" clearable
maxlength="500"
show-word-limit/>
</el-form-item>
<el-form-item label="所需材料" prop="needMaterial">
<el-input type="textarea" rows="5" v-model="form.needMaterial" placeholder="请输入" clearable
maxlength="500"
show-word-limit/>
</el-form-item>
<el-form-item label="产品特色" prop="productFeatures">
<el-input type="textarea" rows="5" v-model="form.productFeatures" placeholder="请输入" clearable
maxlength="500"
show-word-limit/>
</el-form-item>
</template>
</ai-card>
</el-form>
</template>
<template #footer>
@@ -49,6 +71,8 @@
</template>
<script>
import {mapState} from "vuex";
export default {
name: "productAdd",
props: {
@@ -58,7 +82,9 @@ export default {
menuName: String
},
computed: {
...mapState(['user']),
addTitle: v => `${!!v.$route.query.id ? "编辑" : "添加"}${v.menuName}`,
isGuarantee: v => v.user.financeUser.organizationType == 2,
rules() {
return {
productName: [{required: true, message: "请输入产品名称", trigger: 'blur'}],

View File

@@ -19,12 +19,22 @@
<el-form-item label="客户经理" class="half">{{ detail.bankCounterpart }}</el-form-item>
<el-form-item label="联系方式" class="half">{{ detail.consultationTelephone }}</el-form-item>
</el-row>
<el-form-item label="企业微信二维码" v-if="detail.qrCodeUrl">
<el-image class="qrCode" :src="detail.qrCodeUrl" :preview-src-list="[detail.qrCodeUrl]"/>
</el-form-item>
</template>
</ai-card>
<ai-card title="适用范围">
<template #content>
<el-form-item label="适用范围">{{ detail.areaName }}</el-form-item>
<el-form-item label="面向对象">{{ detail.faceUserLabel }}</el-form-item>
<el-form-item label="面向对象" v-if="isGuarantee">{{ detail.faceUserLabel }}</el-form-item>
</template>
</ai-card>
<ai-card title="产品信息" v-if="!isGuarantee">
<template #content>
<el-form-item label="申请条件">{{ detail.applyCondition }}</el-form-item>
<el-form-item label="所需材料">{{ detail.needMaterial }}</el-form-item>
<el-form-item label="产品特色">{{ detail.productFeatures }}</el-form-item>
</template>
</ai-card>
<ai-card title="审核结果" v-if="!isAuthing">
@@ -68,6 +78,7 @@ export default {
},
computed: {
...mapState(['user']),
isGuarantee: v => v.user.financeUser.organizationType == 2,
isAuthing() {
return this.detail.status == "0"
},