|
|
@@ -9,71 +9,148 @@
|
|
|
tableName="serveBillTable"
|
|
|
idName="sa_serviceorderid"
|
|
|
:apiId="{ query: 20230206091703, del: 20230206091803 }"
|
|
|
- :options="options"
|
|
|
:detailPath="{
|
|
|
path: '/serveBillMagDetail',
|
|
|
}"
|
|
|
- @listData="list"
|
|
|
+ :autoQuery="false"
|
|
|
>
|
|
|
- <div slot="custom" style="display: flex">
|
|
|
- <div class="label_center">
|
|
|
+ <template #custom>
|
|
|
+ <div class="mt-10">
|
|
|
<label class="search__label">{{ $t("状态") }}:</label>
|
|
|
<el-select
|
|
|
- class="inline-24"
|
|
|
- v-model="where.status"
|
|
|
- :placeholder="$t(`请选择状态`)"
|
|
|
- @change="selectChange"
|
|
|
- size="small"
|
|
|
- clearable
|
|
|
+ class="inline-24"
|
|
|
+ v-model="status"
|
|
|
+ :placeholder="$t(`请选择状态`)"
|
|
|
+ @change="selectChange"
|
|
|
+ size="small"
|
|
|
+ clearable
|
|
|
>
|
|
|
- <el-option :label="$t(`待指派`)" value="待指派"></el-option>
|
|
|
- <el-option :label="$t(`待处理`)" value="待处理"></el-option>
|
|
|
- <el-option :label="$t(`进行中`)" value="进行中"></el-option>
|
|
|
- <el-option :label="$t(`已完成`)" value="已完成"></el-option>
|
|
|
+ <el-option :label="$t(`新建`)" value="新建"></el-option>
|
|
|
+ <el-option :label="$t(`已提交`)" value="已提交"></el-option>
|
|
|
+ <el-option :label="$t(`已受理`)" value="已受理"></el-option>
|
|
|
+ <el-option :label="$t(`已中止`)" value="已中止"></el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
- <div class="label_center">
|
|
|
+ <div class="mt-10">
|
|
|
<label class="search__label">{{ $t("服务类型") }}:</label>
|
|
|
<el-select
|
|
|
- class="inline-24"
|
|
|
- v-model="where.servicetype"
|
|
|
- :placeholder="$t(`请选择服务类型`)"
|
|
|
- @change="selectChange"
|
|
|
- size="small"
|
|
|
- clearable
|
|
|
+ class="inline-24"
|
|
|
+ v-model="where.servicetype"
|
|
|
+ :placeholder="$t(`请选择服务类型`)"
|
|
|
+ @change="selectChange"
|
|
|
+ size="small"
|
|
|
+ clearable
|
|
|
>
|
|
|
<el-option :label="$t(`售前`)" value="售前"></el-option>
|
|
|
<el-option :label="$t(`售中`)" value="售中"></el-option>
|
|
|
<el-option :label="$t(`售后`)" value="售后"></el-option>
|
|
|
<el-option
|
|
|
- :label="$t(`历史售后`)"
|
|
|
- :value="$t(`历史售后`)"
|
|
|
+ :label="$t(`历史售后`)"
|
|
|
+ :value="$t(`历史售后`)"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
- <div class="label_center">
|
|
|
+ <div class="mt-10">
|
|
|
+ <label class="search__label">{{ $t("客诉大类") }}:</label>
|
|
|
+ <el-select
|
|
|
+ class="inline-24"
|
|
|
+ v-model="where.class2"
|
|
|
+ :placeholder="$t(`请选择客诉大类`)"
|
|
|
+ @focus="queryType('customerclass')"
|
|
|
+ @change="selectChange"
|
|
|
+ size="small"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in options.customerclass"
|
|
|
+ :key="item.value"
|
|
|
+ :label="$t(item.value)"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div class="mt-10">
|
|
|
+ <label class="search__label">{{ $t("异常类型") }}:</label>
|
|
|
+ <el-select
|
|
|
+ class="inline-24"
|
|
|
+ v-model="where.exception_type"
|
|
|
+ :placeholder="$t(`请选择异常类型`)"
|
|
|
+ @focus="queryType('exceptiontype')"
|
|
|
+ @change="selectChange"
|
|
|
+ size="small"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in options.exceptiontype"
|
|
|
+ :key="item.value"
|
|
|
+ :label="$t(item.value)"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div class="mt-10">
|
|
|
+ <label class="search__label">{{ $t("服务等级") }}:</label>
|
|
|
+ <el-select
|
|
|
+ class="inline-24"
|
|
|
+ v-model="where.service_level"
|
|
|
+ :placeholder="$t(`请选择服务等级`)"
|
|
|
+ @focus="queryType('servicelevel')"
|
|
|
+ @change="selectChange"
|
|
|
+ size="small"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in options.servicelevel"
|
|
|
+ :key="item.value"
|
|
|
+ :label="$t(item.value)"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div class="mt-10">
|
|
|
+ <label class="search__label">{{ $t("创建日期") }}:</label>
|
|
|
+ <el-date-picker
|
|
|
+ style="margin-right: 24px !important"
|
|
|
+ size="small"
|
|
|
+ @change="selectChange"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ v-model="createDate"
|
|
|
+ type="daterange"
|
|
|
+ :range-separator="$t(`至`)"
|
|
|
+ :start-placeholder="$t(`开始日期`)"
|
|
|
+ :end-placeholder="$t(`结束日期`)"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
+ </div>
|
|
|
+ <div class="mt-10">
|
|
|
<label class="search__label">{{ $t("提交日期") }}:</label>
|
|
|
<el-date-picker
|
|
|
- style="margin-right: 24px !important"
|
|
|
- size="small"
|
|
|
- @change="dateChange"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- v-model="where.date"
|
|
|
- type="daterange"
|
|
|
- :range-separator="$t(`至`)"
|
|
|
- :start-placeholder="$t(`开始日期`)"
|
|
|
- :end-placeholder="$t(`结束日期`)"
|
|
|
- clearable
|
|
|
+ style="margin-right: 24px !important"
|
|
|
+ size="small"
|
|
|
+ @change="selectChange"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ v-model="submitDate"
|
|
|
+ type="daterange"
|
|
|
+ :range-separator="$t(`至`)"
|
|
|
+ :start-placeholder="$t(`开始日期`)"
|
|
|
+ :end-placeholder="$t(`结束日期`)"
|
|
|
+ clearable
|
|
|
>
|
|
|
</el-date-picker>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </template>
|
|
|
<template v-slot:tbList="scope">
|
|
|
<div v-if="scope.data.column.columnname == 'status'">
|
|
|
<span :style="tool.getStatusColor(scope.data.column.data[[scope.data.column.columnname]])">{{
|
|
|
$t(scope.data.column.data[[scope.data.column.columnname]])
|
|
|
}}</span>
|
|
|
</div>
|
|
|
+ <div v-else-if="scope.data.column.columnname == 'service_level'">
|
|
|
+ <span :style="tool.getStatusColor(scope.data.column.data[[scope.data.column.columnname]])">{{
|
|
|
+ $t(scope.data.column.data[[scope.data.column.columnname]] || '--')
|
|
|
+ }}</span>
|
|
|
+ </div>
|
|
|
<div v-else-if="scope.data.column.columnname == 'province'">
|
|
|
{{
|
|
|
`${scope.data.column.data.province}-${scope.data.column.data.city}-${scope.data.column.data.county}`
|
|
|
@@ -101,34 +178,67 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- options: [],
|
|
|
where: {
|
|
|
- status: "",
|
|
|
- date: "",
|
|
|
- servicetype: "",
|
|
|
+ condition: "",
|
|
|
+ status: [], // 数组,状态
|
|
|
+ service_level: "", //服务等级
|
|
|
+ exception_type: "", //异常类型
|
|
|
+ class2: "", //客诉大类
|
|
|
+ servicetype: "", //服务类型
|
|
|
+ begindate: "", //创建时间
|
|
|
+ enddate: "", //创建时间
|
|
|
+ begindate2: "", //提交日期
|
|
|
+ enddate2: "" //提交日期
|
|
|
},
|
|
|
+ status:'',
|
|
|
+ options:{
|
|
|
+ customerclass:[],
|
|
|
+ exceptiontype:[],
|
|
|
+ servicelevel:[]
|
|
|
+ },
|
|
|
+ createDate:'',
|
|
|
+ submitDate:''
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
- list(data) {
|
|
|
- console.log(data);
|
|
|
+ list() {
|
|
|
+ this.$refs.list.param.content.isManage = true
|
|
|
+ this.$refs.list.param.content.where = this.where
|
|
|
+ this.$refs.list.listData()
|
|
|
},
|
|
|
selectChange() {
|
|
|
- this.$refs.list.param.content.where = this.where;
|
|
|
- this.$refs.list.listData();
|
|
|
- },
|
|
|
- dateChange(date) {
|
|
|
- if (date) {
|
|
|
- this.where.begindate = date[0];
|
|
|
- this.where.enddate = date[1];
|
|
|
- } else {
|
|
|
- this.where.begindate = "";
|
|
|
- this.where.enddate = "";
|
|
|
+ if (this.status){
|
|
|
+ this.where.status[0] = this.status
|
|
|
+ }else {
|
|
|
+ this.where.status = []
|
|
|
+ }
|
|
|
+ if (this.createDate){
|
|
|
+ this.where.begindate = this.createDate[0]
|
|
|
+ this.where.enddate = this.createDate[1]
|
|
|
+ }else {
|
|
|
+ this.where.begindate = ''
|
|
|
+ this.where.enddate = ''
|
|
|
+ }
|
|
|
+ if (this.submitDate){
|
|
|
+ this.where.begindate2 = this.submitDate[0]
|
|
|
+ this.where.enddate2 = this.submitDate[1]
|
|
|
+ }else {
|
|
|
+ this.where.begindate2 = ''
|
|
|
+ this.where.enddate2 = ''
|
|
|
}
|
|
|
this.$refs.list.param.content.where = this.where;
|
|
|
this.$refs.list.listData();
|
|
|
},
|
|
|
+ async queryType(type){
|
|
|
+ if (this.options[type].length == 0){
|
|
|
+ const res = await this.$store.dispatch('optiontypeselect',type)
|
|
|
+ this.options[type] = res.data
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ this.list()
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
<style>
|