Commit a8face2f authored by zhanglw's avatar zhanglw

调整

parent ceaa6ce2
......@@ -177,6 +177,13 @@ export const HttpReq = {
method: 'get'
})
},
// 查询咨询信息详情
queryInformationDetail: function(params) {
return request({
url: '/api/bsw/information/queryInformationDetail?' + qs.stringify(params, { indices: false }),
method: 'get'
})
},
xxx: null
}
}
......
......@@ -2,10 +2,10 @@
<div class="app-container">
<!--工具栏-->
<div class="head-container">
<el-select v-model="query.type" clearable placeholder="请选择咨询类型" style="width: 150px">
<el-select v-model="query.consultType" clearable placeholder="请选择咨询类型" style="width: 120px">
<el-option v-for="item in dict.consult_type" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
<el-select v-model="query.area" clearable placeholder="请选择地区" style="width: 120px">
<el-select v-model="query.contactPersonProvince" clearable placeholder="请选择地区" style="width: 120px">
<el-option v-for="item in dict.area_province" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
<el-input v-model="query.productName" clearable placeholder="请输入咨询产品名称" style="width:280px;" />
......@@ -29,8 +29,8 @@
<el-table id="dataTable" ref="dataTable" v-loading="loading" :data="tableData" tooltip-effect="dark" style="width:auto;min-height: 70vh" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" />
<el-table-column type="index" width="55" label="序号" :index="indexMethod" />
<el-table-column prop="type" label="咨询产品类型" width="180" :formatter="(row, col, val)=>{return dict.label.consult_type[val]}" />
<el-table-column prop="area" label="地区" width="100" :formatter="(row, col, val)=>{return dict.label.area_province[val]}" />
<el-table-column prop="consultType" label="咨询产品类型" width="180" :formatter="(row, col, val)=>{return dict.label.consult_type[val]}" />
<el-table-column prop="area" label="地区" width="120" />
<el-table-column prop="productName" label="咨询产品名称" />
<el-table-column prop="productId" label="产品ID" width="100" />
<el-table-column label="状态" width="100">
......@@ -42,7 +42,7 @@
<el-table-column prop="handleTime" label="处理日期" align="center" width="180" />
<el-table-column label="操作" align="right" width="140">
<template slot-scope="scope">
<el-tooltip v-show="scope.row.status==3" content="处理"><el-button round plain type="success" icon="el-icon-finished" @click="toView(scope.row)" /></el-tooltip>
<el-tooltip v-if="scope.row.status==='2'" content="处理"><el-button round plain type="success" icon="el-icon-finished" @click="toView(scope.row)" /></el-tooltip>
<el-tooltip content="查看"><el-button round plain icon="el-icon-view" @click="toView(scope.row)" /></el-tooltip>
</template>
</el-table-column>
......@@ -63,7 +63,7 @@ export default {
dicts: ['consult_status', 'consult_type', 'area_province'],
data() {
return {
textColors: ['#ccc', '#32cd32', '#000', '#ff4949'],
textColors: ['#ccc', '#000', '#32cd32', '#ff4949'],
loading: false,
page: 1,
pageSize: 20,
......@@ -129,7 +129,7 @@ export default {
},
toView(item) {
this.$refs.viewPage.loadData(item.productId)
this.$refs.viewPage.loadData(item.informationId)
},
toSearch() {
this.page = 1
......
......@@ -5,56 +5,66 @@
<el-form ref="formViewRef" :model="formData" :status-icon="true" label-width="240px">
<el-form-item label="咨询类型:" class="form-cell" prop="supplierLevel">
<div class="cell-box">
<el-select v-model="formData.supplierLevel" disabled placeholder="无" class="cell-select">
<el-option v-for="item in dict.product_type" :key="item.value" :label="item.label" :value="item.value" />
<el-select v-model="formData.type" disabled placeholder="无" class="cell-select">
<el-option v-for="item in dict.consult_type" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
</div>
</el-form-item>
<el-form-item label="区域:" class="form-cell" prop="supplierLevel">
<el-form-item v-if="formData.status<8" label="区域:" class="form-cell" prop="supplierLevel">
<div class="cell-box">
<el-select v-model="formData.supplierLevel" disabled placeholder="无" class="cell-select">
<el-select v-model="formData.area" disabled placeholder="无" class="cell-select">
<el-option v-for="item in dict.area_province" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
</div>
</el-form-item>
<el-form-item label="咨询产品名称:" class="form-cell" prop="enterpriseName">
<el-form-item v-if="formData.status<8" label="咨询产品名称:" class="form-cell" prop="enterpriseName">
<div class="cell-box">
<el-input v-model="formData.enterpriseName" disabled placeholder="请输入企业名称" class="cell-input" />
<el-input v-model="formData.productName" disabled class="cell-input" />
</div>
</el-form-item>
<el-form-item label="产品ID:" class="form-cell" prop="enterpriseName">
<el-form-item v-if="formData.status<8" label="产品ID:" class="form-cell" prop="enterpriseName">
<div class="cell-box">
<el-input v-model="formData.enterpriseName" disabled placeholder="请输入企业名称" class="cell-input" />
<el-input v-model="formData.productId" disabled class="cell-input" />
</div>
</el-form-item>
<el-form-item v-if="formData.status>7" label="标题:" class="form-cell" prop="enterpriseName">
<div class="cell-box">
<el-input v-model="formData.productId" disabled class="cell-input" />
</div>
</el-form-item>
<el-form-item label="咨询内容:" class="form-cell" prop="mainProductsIntroduction">
<div class="cell-box">
<div class="cell-textarea">{{ formData.mainProductsIntroduction }}</div>
<div class="cell-textarea">{{ formData.consultationContent }}</div>
</div>
</el-form-item>
<el-form-item label="咨询企业名称:" class="form-cell" prop="enterpriseName">
<el-form-item v-if="formData.status<8" label="咨询企业名称:" class="form-cell" prop="enterpriseName">
<div class="cell-box">
<el-input v-model="formData.enterpriseName" disabled placeholder="请输入企业名称" class="cell-input" />
<el-input v-model="formData.enterpriseName" disabled class="cell-input" />
</div>
</el-form-item>
<el-form-item label="咨询人:" class="form-cell" prop="enterpriseName">
<div class="cell-box">
<el-input v-model="formData.enterpriseContactPerson" disabled class="cell-input" />
</div>
</el-form-item>
<el-form-item label="咨询人电话:" class="form-cell" prop="enterpriseName">
<div class="cell-box">
<el-input v-model="formData.enterpriseName" disabled placeholder="请输入企业名称" class="cell-input" />
<el-input v-model="formData.enterpriseContactPersonPhone" disabled class="cell-input" />
</div>
</el-form-item>
<el-form-item label="电子邮箱:" class="form-cell" prop="enterpriseName">
<div class="cell-box">
<el-input v-model="formData.enterpriseName" disabled placeholder="请输入企业名称" class="cell-input" />
<el-input v-model="formData.enterpriseEmail" disabled class="cell-input" />
</div>
</el-form-item>
<el-form-item label="联系地址:" class="form-cell" prop="enterpriseName">
<div class="cell-box">
<el-input v-model="formData.enterpriseName" disabled placeholder="请输入企业名称" class="cell-input" />
<el-input v-model="formData.enterpriseAddress" disabled class="cell-input" />
</div>
</el-form-item>
<el-form-item label="处理状态:" class="form-cell" prop="supplierLevel">
<div class="cell-box">
<el-select v-model="formData.supplierLevel" disabled placeholder="无" class="cell-select">
<el-select v-model="formData.status" disabled class="cell-select">
<el-option v-for="item in dict.consult_status" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
</div>
......@@ -62,7 +72,7 @@
</el-form>
<div slot="footer" class="dialog-footer" style="text-align: center">
<el-button @click="cancelView">关闭</el-button>
<el-button type="primary" @click="submitForm(true)">处理</el-button>
<el-button v-if="formData.status==='2'" type="primary" @click="submitForm(true)">处理</el-button>
</div>
</el-dialog>
</template>
......@@ -70,41 +80,25 @@
import { HttpReq } from '@/api/common'
export default {
dicts: ['product_type', 'area_province', 'consult_status'],
dicts: ['consult_type', 'area_province', 'consult_status'],
data() {
return {
stampImgSrc: '',
visible: false,
title: '咨询信息详情',
formData: {
annualInspectionDate: '', // 审核日期
businessLicense: '', // 营业执照的照片名称
businessScope: '', // 经营范围
businessScopeIntroduction: '', // 业务范围介绍
businessStatus: '', // 经营状态
enterpriseAddress: '', // 企业地址
enterpriseContactPerson: '', // 企业联系人
enterpriseContactPersonPhone: '', // 企业联系人手机号
enterpriseEmail: '', // 企业邮箱
enterpriseIntroduction: '', // 企业介绍
enterpriseName: '', // 企业名称
enterpriseType: '', // 企业类型
establishmentDate: '', // 成立日期
industry: '', // 所属行业
legalRepresentative: '', // 法定代表人
mainProductsIntroduction: '', // 主营产品介绍
operatingPeriod: '', // 经营期限
registeredAddressArea: '', // 注册地址-区
registeredAddressCity: '', // 注册地址-市
registeredAddressProvince: '', // 注册地址-省
registeredAddressStreet: '', // 注册地址-街道
registeredCapital: '', // 注册资本
registrationAuthority: '', // 登记机关
supplierLevel: '1', // 供应商级别
taxpayerIdentificationNumber: '', // 纳税人识别号
unifiedSocialCreditCode: '', // 统一社会信用代码
reviewComments: '', // 审核意见
sysUserId: null
area: '',
consultationContent: '',
enterpriseAddress: '',
enterpriseContactPerson: '',
enterpriseContactPersonPhone: '',
enterpriseEmail: '',
enterpriseName: '',
productName: '',
productId: '',
status: '1',
type: '1',
informationId: null
}
}
},
......@@ -142,19 +136,18 @@ export default {
}
})
},
loadData(customerId) {
this.showView()
// HttpReq.backstageApi.queryCustomerDetail({ customerId }).then((res) => {
// if (res.code === 200) {
// this.formData = res.data
// this.showView()
// } else {
// this.$message({
// message: res.msg,
// type: 'error'
// })
// }
// })
loadData(informationId) {
HttpReq.backstageApi.queryInformationDetail({ informationId }).then((res) => {
if (res.code === 200) {
this.formData = res.data
this.showView()
} else {
this.$message({
message: res.msg,
type: 'error'
})
}
})
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment