Commit ceaa6ce2 authored by zhanglw's avatar zhanglw

咨询列表

parent 3bf9ee55
......@@ -170,6 +170,13 @@ export const HttpReq = {
return res
})
},
// 查询咨询信息列表
queryInformation: function(params) {
return request({
url: '/api/bsw/information/queryInformation?' + qs.stringify(params, { indices: false }),
method: 'get'
})
},
xxx: null
}
}
......
......@@ -2,19 +2,19 @@
<div class="app-container">
<!--工具栏-->
<div class="head-container">
<el-select v-model="query.area" clearable placeholder="请选择产品分类" style="width: 150px">
<el-option v-for="item in dict.product_type" :key="item.value" :label="item.label" :value="item.value" />
<el-select v-model="query.type" clearable placeholder="请选择咨询类型" style="width: 150px">
<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.registeredAddressProvince" clearable placeholder="请选择地区" style="width: 120px">
<el-select v-model="query.area" 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.username" clearable placeholder="请输入咨询产品名称" style="width:280px;" />
<el-input v-model="query.username" clearable placeholder="请输入产品ID" style="width:150px;" />
<el-input v-model="query.productName" clearable placeholder="请输入咨询产品名称" style="width:280px;" />
<el-input v-model="query.productId" clearable placeholder="请输入产品ID" style="width:150px;" />
<el-select v-model="query.status" clearable placeholder="请选择状态" style="width: 120px">
<el-option v-for="item in dict.consult_status" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
<date-range-picker v-model="query.createTime" start-placeholder="咨询开始日期" style="width: 280px" />
<date-range-picker v-model="query.createTime" start-placeholder="处理开始日期" style="width: 280px" />
<date-range-picker v-model="query.handleTime" start-placeholder="处理开始日期" style="width: 280px" />
<el-button type="success" icon="el-icon-search" @click="toSearch">搜索</el-button>
<el-button type="warning" icon="el-icon-refresh" @click="clearLimit">重置</el-button>
</div>
......@@ -29,18 +29,18 @@
<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="username" label="咨询产品类型" width="180" />
<el-table-column prop="area" label="地区" width="100" />
<el-table-column prop="xxx" label="咨询产品名称" />
<el-table-column prop="username" label="产品ID" width="140" />
<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="productName" label="咨询产品名称" />
<el-table-column prop="productId" label="产品ID" width="100" />
<el-table-column label="状态" width="100">
<template slot-scope="scope">
<div :style="'color:'+textColors[scope.row.status]">{{ dict.label.consult_status[scope.row.status] }}</div>
</template>
</el-table-column>
<el-table-column prop="xxx" label="咨询日期" align="center" width="100" />
<el-table-column prop="xxx" label="处理日期" align="center" width="100" />
<el-table-column prop="xxx" label="操作" align="right" width="140">
<el-table-column prop="createTime" label="咨询日期" align="center" width="180" />
<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 content="查看"><el-button round plain icon="el-icon-view" @click="toView(scope.row)" /></el-tooltip>
......@@ -60,7 +60,7 @@ import viewPage from './view'
export default {
components: { DateRangePicker, viewPage },
dicts: ['consult_status', 'product_type', 'area_province'],
dicts: ['consult_status', 'consult_type', 'area_province'],
data() {
return {
textColors: ['#ccc', '#32cd32', '#000', '#ff4949'],
......@@ -88,17 +88,18 @@ export default {
this.multipleSelection = val
},
loadData() {
var sort = 'id,desc'
var param = { ...this.query }
param.page = this.page
param.pageSize = this.pageSize
param.sort = sort
this.tableData = [
{ username: '张三', area: '火星', status: 1, enabled: false, xxx: '2023-05-09' },
{ username: '张三', area: '火星', status: 2, enabled: false, xxx: '2023-05-09' },
{ username: '张三', area: '火星', status: 3, enabled: false, xxx: '2023-05-09' }
]
this.total = 2
// 清除参数无值的情况
Object.keys(this.query).length !== 0 && Object.keys(this.query).forEach(item => {
if (this.query[item] === null || this.query[item] === '') this.query[item] = undefined
})
HttpReq.backstageApi.queryInformation({
page: this.page - 1,
pageSize: this.pageSize,
...this.query
}).then((res) => {
this.tableData = res.data.data
this.total = res.data.total
})
},
batchOperate(opt) {
if (!this.multipleSelection.length) {
......
......@@ -55,14 +55,14 @@
<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.info_status" :key="item.value" :label="item.label" :value="item.value" />
<el-option v-for="item in dict.consult_status" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
</div>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer" style="text-align: center">
<el-button @click="cancelView">关闭</el-button>
<el-button v-if="isReview" type="primary" @click="submitForm(true)">处理</el-button>
<el-button type="primary" @click="submitForm(true)">处理</el-button>
</div>
</el-dialog>
</template>
......@@ -70,7 +70,7 @@
import { HttpReq } from '@/api/common'
export default {
dicts: ['product_type', 'area_province', 'info_status'],
dicts: ['product_type', 'area_province', 'consult_status'],
data() {
return {
stampImgSrc: '',
......
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