add:增加展示

This commit is contained in:
zhangzq
2025-09-26 16:31:48 +08:00
parent aaf52a7085
commit 8926db30a6
28 changed files with 1502 additions and 240 deletions

View File

@@ -52,7 +52,24 @@
<el-table-column
header-align="center"
align="center"
label="小车类型">
label="项目号">
<template slot-scope="scope">
{{ dictData[2] | findByValue(scope.row.contractCode) }}
</template>
</el-table-column>
<el-table-column
prop="status"
header-align="center"
align="center"
label="工单状态">
<template slot-scope="scope">
{{ statusOpt | findByValue(scope.row.status) }}
</template>
</el-table-column>
<el-table-column
header-align="center"
align="center"
label="车型">
<template slot-scope="scope">
{{ dictData[0] | findByValue(scope.row.carType) }}
</template>
@@ -60,19 +77,12 @@
<el-table-column
header-align="center"
align="center"
label="异常类型">
label="问题属性">
<template slot-scope="scope">
{{ dictData[1] | findByValue(scope.row.errorType) }}
</template>
</el-table-column>
<el-table-column
header-align="center"
align="center"
label="合同编号">
<template slot-scope="scope">
{{ dictData[2] | findByValue(scope.row.contractId) }}
</template>
</el-table-column>
<el-table-column
header-align="center"
align="center"
@@ -81,6 +91,13 @@
{{ dictData[3] | findByValue(scope.row.clientId) }}
</template>
</el-table-column>
<el-table-column
prop="clientPhone"
header-align="center"
align="center"
min-width="90px"
label="客户电话">
</el-table-column>
<el-table-column
prop="description"
header-align="center"
@@ -88,18 +105,18 @@
label="故障描述">
</el-table-column>
<el-table-column
prop="deptPeople"
prop="ticketContract "
header-align="center"
min-width="120px"
align="center"
label="售后合同编号">
</el-table-column>
<el-table-column
prop="assignPeople"
header-align="center"
align="center"
min-width="90px"
label="工单对接人">
</el-table-column>
<el-table-column
prop="deptPhone"
header-align="center"
align="center"
min-width="100px"
label="客户联系电话">
label="当前审批人">
</el-table-column>
<el-table-column
prop="createUser"
@@ -123,21 +140,19 @@
{{ ['否', '是'][Number(scope.row.isCheck)] }}
</template>
</el-table-column> -->
<el-table-column
prop="status"
header-align="center"
align="center"
label="工单状态">
<template slot-scope="scope">
{{ statusOpt | findByValue(scope.row.status) }}
</template>
</el-table-column>
<el-table-column
prop="updateTime"
header-align="center"
align="center"
min-width="100px"
label="工单审批完成时间">
label="更新时间">
</el-table-column>
<el-table-column
prop="finishTime"
header-align="center"
align="center"
min-width="100px"
label="完结时间">
</el-table-column>
<el-table-column
fixed="right"
@@ -149,7 +164,8 @@
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.ticketsId)">修改</el-button>
<el-button type="text" size="small" @click="deleteHandle(scope.row.ticketsId)">删除</el-button>
<el-button v-if="!scope.row.status" type="text" size="small" @click="startFlowHandle(scope.row.ticketsId)">指派</el-button>
<el-button type="text" size="small" @click="$router.push(`/tickets-detail?id=${scope.row.ticketsId}`)">详情</el-button>
<el-button type="text" size="small" @click="addTempHandle(scope.row.ticketsId)">详情2</el-button>
<el-button type="text" size="small" @click="showFlowImgHandle(scope.row.id)">查看流程图</el-button>
</template>
</el-table-column>
</el-table>
@@ -164,6 +180,8 @@
</el-pagination>
<!-- 弹窗, 新增 / 修改 -->
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" :dictData="dictData" @refreshDataList="getDataList"></add-or-update>
<temp v-if="tempVisible" ref="tempAdd" :dictData="dictData"></temp>
<el-dialog
title="发起流程"
:visible.sync="dialogFormVisible"
@@ -212,6 +230,8 @@
<script>
import AddOrUpdate from './tickets-add-or-update'
import { apiUtils } from '@/utils/dict'
// eslint-disable-next-line no-unused-vars
import temp from './temp'
export default {
data () {
return {
@@ -221,6 +241,7 @@
status: ''
},
dataList: [],
tempVisible: false,
pageIndex: 1,
pageSize: 10,
totalPage: 0,
@@ -230,8 +251,8 @@
dictConfigs: [{url: '/car/car/list', type: 'list', value: 'carId', label: 'carName'}, {type: 'dict', code: 'error_type'}, {url: '/flow/contract/list', type: 'list', value: 'contractId', label: 'contractNumber'}, {url: '/client/client/list', type: 'list', value: 'clientId', label: 'clientName'}],
dictData: [],
dialogFormVisible: false,
flowForm:{ticketsId: null},
dynamiForm:[],
flowForm: {ticketsId: null},
dynamiForm: [],
users: [],
roles: [],
statusOpt: [{value: '0', label: '未开始'}, {value: '1', label: '已指派'}, {value: '2', label: '处理中'}, {value: '3', label: '已完成'}]
@@ -239,7 +260,8 @@
},
mixins: [apiUtils],
components: {
AddOrUpdate
AddOrUpdate,
temp
},
activated () {
this.getDataList()
@@ -256,7 +278,7 @@
'limit': this.pageSize,
'deptPeople': this.dataForm.deptPeople,
'errorType': this.dataForm.errorType,
'status': this.dataForm.status,
'status': this.dataForm.status
})
}).then(({data}) => {
if (data && data.code === 0) {
@@ -269,6 +291,17 @@
this.dataListLoading = false
})
},
showFlowImgHandle (id) {
this.flowImg = this.$imgBasePath + 'downloadFlowImg?defId=' + id
this.dialogVisible = true
},
// 生成模板
addTempHandle (id) {
this.tempVisible = true
this.$nextTick(() => {
this.$refs.tempAdd.init(id)
})
},
// 每页数
sizeChangeHandle (val) {
this.pageSize = val
@@ -321,7 +354,7 @@
})
}).catch(() => {})
},
startFlowHandle(id){
startFlowHandle (id) {
this.flowForm = {}
this.flowForm.ticketsId = id
this.$http({
@@ -337,7 +370,7 @@
}
})
},
submitStartFlow(){
submitStartFlow () {
// 提交表单数据
this.$http({
url: this.$http.adornUrl(`/flw/instance/startFlowInstance`),