|
@ -1,89 +1,28 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="mod-config"> |
|
|
<div class="mod-config"> |
|
|
<el-descriptions class="margin-top" title="工单详情" :column="2" :size="size" border> |
|
|
<el-descriptions title="工单详情" direction="vertical" :column="column" size="mini" border> |
|
|
<!-- <template slot="extra"> |
|
|
<template slot="extra"> |
|
|
<el-button type="primary" size="small">操作</el-button> |
|
|
<el-button type="primary" size="small">审批</el-button> |
|
|
</template> --> |
|
|
</template> |
|
|
<el-descriptions-item> |
|
|
<el-descriptions-item label="工单ID"> |
|
|
<template slot="label"> |
|
|
<el-tag size="small">{{ ticketsData.ticketsId }}</el-tag> |
|
|
<!-- <i class="el-icon-user"></i> --> |
|
|
|
|
|
工单ID |
|
|
|
|
|
</template> |
|
|
|
|
|
{{ ticketsData.ticketsId }} |
|
|
|
|
|
</el-descriptions-item> |
|
|
</el-descriptions-item> |
|
|
<el-descriptions-item> |
|
|
<el-descriptions-item label="小车类型"> |
|
|
<template slot="label"> |
|
|
|
|
|
小车类型 |
|
|
|
|
|
</template> |
|
|
|
|
|
{{ ticketsData.carName }} |
|
|
{{ ticketsData.carName }} |
|
|
</el-descriptions-item> |
|
|
</el-descriptions-item> |
|
|
<el-descriptions-item> |
|
|
<el-descriptions-item label="异常类型"> |
|
|
<template slot="label"> |
|
|
|
|
|
异常类型 |
|
|
|
|
|
</template> |
|
|
|
|
|
{{ ticketsData.errorType }} |
|
|
{{ ticketsData.errorType }} |
|
|
</el-descriptions-item> |
|
|
</el-descriptions-item> |
|
|
<el-descriptions-item> |
|
|
<el-descriptions-item label="合同编号">{{ ticketsData.contractNumber }}</el-descriptions-item> |
|
|
<template slot="label"> |
|
|
<el-descriptions-item label="客户">{{ ticketsData.clientName }}</el-descriptions-item> |
|
|
合同编号 |
|
|
<el-descriptions-item label="故障描述">{{ ticketsData.description }}</el-descriptions-item> |
|
|
</template> |
|
|
<el-descriptions-item label="部门对接人">{{ ticketsData.deptPeople }}</el-descriptions-item> |
|
|
{{ ticketsData.contractNumber }} |
|
|
<el-descriptions-item label="客户联系电话">{{ ticketsData.deptPhone }}</el-descriptions-item> |
|
|
<!-- <el-tag size="small">学校</el-tag> --> |
|
|
<el-descriptions-item label="创建者">{{ ticketsData.createUserId }}</el-descriptions-item> |
|
|
</el-descriptions-item> |
|
|
<el-descriptions-item label="创建时间">{{ ticketsData.createTime }}</el-descriptions-item> |
|
|
<el-descriptions-item> |
|
|
<el-descriptions-item label="是否验收">{{ ['否', '是'][Number(ticketsData.isCheck)] }}</el-descriptions-item> |
|
|
<template slot="label"> |
|
|
<el-descriptions-item label="工单状态">{{ statusOpt | findByValue(ticketsData.status) }}</el-descriptions-item> |
|
|
客户 |
|
|
<el-descriptions-item label="工单关闭时间">{{ ticketsData.updateTime }}</el-descriptions-item> |
|
|
</template> |
|
|
|
|
|
{{ ticketsData.clientName }} |
|
|
|
|
|
</el-descriptions-item> |
|
|
|
|
|
<el-descriptions-item> |
|
|
|
|
|
<template slot="label"> |
|
|
|
|
|
故障描述 |
|
|
|
|
|
</template> |
|
|
|
|
|
{{ ticketsData.description }} |
|
|
|
|
|
</el-descriptions-item> |
|
|
|
|
|
<el-descriptions-item> |
|
|
|
|
|
<template slot="label"> |
|
|
|
|
|
部门对接人 |
|
|
|
|
|
</template> |
|
|
|
|
|
{{ ticketsData.deptPeople }} |
|
|
|
|
|
</el-descriptions-item> |
|
|
|
|
|
<el-descriptions-item> |
|
|
|
|
|
<template slot="label"> |
|
|
|
|
|
客户联系电话 |
|
|
|
|
|
</template> |
|
|
|
|
|
{{ ticketsData.deptPhone }} |
|
|
|
|
|
</el-descriptions-item> |
|
|
|
|
|
<el-descriptions-item> |
|
|
|
|
|
<template slot="label"> |
|
|
|
|
|
创建者 |
|
|
|
|
|
</template> |
|
|
|
|
|
{{ ticketsData.createUserId }} |
|
|
|
|
|
</el-descriptions-item> |
|
|
|
|
|
<el-descriptions-item> |
|
|
|
|
|
<template slot="label"> |
|
|
|
|
|
创建时间 |
|
|
|
|
|
</template> |
|
|
|
|
|
{{ ticketsData.createTime }} |
|
|
|
|
|
</el-descriptions-item> |
|
|
|
|
|
<el-descriptions-item> |
|
|
|
|
|
<template slot="label"> |
|
|
|
|
|
是否验收 |
|
|
|
|
|
</template> |
|
|
|
|
|
{{ ['否', '是'][Number(ticketsData.isCheck)] }} |
|
|
|
|
|
</el-descriptions-item> |
|
|
|
|
|
<el-descriptions-item> |
|
|
|
|
|
<template slot="label"> |
|
|
|
|
|
工单状态 |
|
|
|
|
|
</template> |
|
|
|
|
|
{{ statusOpt | findByValue(ticketsData.status) }} |
|
|
|
|
|
</el-descriptions-item> |
|
|
|
|
|
<el-descriptions-item> |
|
|
|
|
|
<template slot="label"> |
|
|
|
|
|
工单关闭时间 |
|
|
|
|
|
</template> |
|
|
|
|
|
{{ ticketsData.updateTime }} |
|
|
|
|
|
</el-descriptions-item> |
|
|
|
|
|
</el-descriptions> |
|
|
</el-descriptions> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
@ -92,14 +31,34 @@ |
|
|
export default { |
|
|
export default { |
|
|
data () { |
|
|
data () { |
|
|
return { |
|
|
return { |
|
|
|
|
|
column: 0, |
|
|
ticketsData: {}, |
|
|
ticketsData: {}, |
|
|
statusOpt: [{value: '0', label: '未开始'}, {value: '1', label: '已指派'}, {value: '2', label: '处理中'}, {value: '3', label: '已完成'}] |
|
|
statusOpt: [{value: '0', label: '未开始'}, {value: '1', label: '已指派'}, {value: '2', label: '处理中'}, {value: '3', label: '已完成'}] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created () { |
|
|
created () { |
|
|
|
|
|
if (this.isMobile() || window.innerWidth < 768) { |
|
|
|
|
|
this.column = 2 |
|
|
|
|
|
} else { |
|
|
|
|
|
this.column = 4 |
|
|
|
|
|
} |
|
|
this.getDataList() |
|
|
this.getDataList() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
isMobile() { |
|
|
|
|
|
const userAgentInfo = navigator.userAgent; |
|
|
|
|
|
const mobileAgents = [ |
|
|
|
|
|
"Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod" |
|
|
|
|
|
]; |
|
|
|
|
|
let isMobile = false; |
|
|
|
|
|
for (let i = 0; i < mobileAgents.length; i++) { |
|
|
|
|
|
if (userAgentInfo.indexOf(mobileAgents[i]) > -1) { |
|
|
|
|
|
isMobile = true; |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
return isMobile; |
|
|
|
|
|
}, |
|
|
// 获取数据列表 |
|
|
// 获取数据列表 |
|
|
getDataList () { |
|
|
getDataList () { |
|
|
this.$http({ |
|
|
this.$http({ |
|
@ -129,7 +88,7 @@ |
|
|
|
|
|
|
|
|
<style scoped> |
|
|
<style scoped> |
|
|
.mod-config { |
|
|
.mod-config { |
|
|
padding: 20px 10px; |
|
|
padding: 30px 30px; |
|
|
} |
|
|
} |
|
|
.el-pagination { |
|
|
.el-pagination { |
|
|
margin-top: 15px; |
|
|
margin-top: 15px; |
|
|