Commit abffa521 by 张杰

v1.4版本需求,新增工单进度组件

1 parent c42d06ef
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
"core-js": "^3.6.5", "core-js": "^3.6.5",
"echarts": "^5.2.2", "echarts": "^5.2.2",
"element-ui": "^2.15.7", "element-ui": "^2.15.7",
"glsx-common": "^1.4.9",
"moment": "^2.29.1", "moment": "^2.29.1",
"sass": "^1.45.1", "sass": "^1.45.1",
"vue": "^2.6.11", "vue": "^2.6.11",
......
...@@ -314,9 +314,6 @@ ...@@ -314,9 +314,6 @@
&>p{ &>p{
display: flex; display: flex;
} }
.lb{
}
.des{ .des{
flex: 1; flex: 1;
word-break: break-all; word-break: break-all;
......
...@@ -75,3 +75,8 @@ export const GET_WORKORDER_OPERLOG = (params) => { ...@@ -75,3 +75,8 @@ export const GET_WORKORDER_OPERLOG = (params) => {
export const GET_WORKORDER_STATUSOPTION = (params) => { export const GET_WORKORDER_STATUSOPTION = (params) => {
return request(params, "/trialdrive/workorder/status/option"); return request(params, "/trialdrive/workorder/status/option");
}; };
// 工单管理-工单列表-工单详情-获取工单进度列表
export const GET_WORKORDER_PROGRESS = params => {
return request(params, "/trialdrive/workorder/getProgress");
}
...@@ -59,8 +59,9 @@ ...@@ -59,8 +59,9 @@
<!-- <el-button @click="goCarDetail">查看详情</el-button> <!-- <el-button @click="goCarDetail">查看详情</el-button>
<map-location></map-location> --> <map-location></map-location> -->
<!-- 测试代码 end -->
<!-- <order-progress id="glsx_1645009975009"></order-progress> -->
<!-- 测试代码 end -->
<!-- 操作区域 开始 --> <!-- 操作区域 开始 -->
<div class="links_group"> <div class="links_group">
...@@ -180,13 +181,15 @@ import store from "@/store"; ...@@ -180,13 +181,15 @@ import store from "@/store";
import GlsxOrganization from "@/components/glsx-organization"; import GlsxOrganization from "@/components/glsx-organization";
import EditOrder from "./edit.vue"; import EditOrder from "./edit.vue";
import moment from "moment"; import moment from "moment";
import MapLocation from '@/components/amap' import MapLocation from "@/components/amap";
import OrderProgress from "./progress";
export default { export default {
components: { components: {
GlsxDialog, GlsxDialog,
GlsxOrganization, GlsxOrganization,
EditOrder, EditOrder,
MapLocation MapLocation,
OrderProgress,
}, },
data() { data() {
return { return {
...@@ -207,6 +210,7 @@ export default { ...@@ -207,6 +210,7 @@ export default {
orderId: "", orderId: "",
menus: [ menus: [
{ id: "orderInfo", name: "工单信息" }, { id: "orderInfo", name: "工单信息" },
{ id: "orderProgress", name: "工单进度" },
{ id: "deviceInfo", name: "设备信息" }, { id: "deviceInfo", name: "设备信息" },
{ id: "lesseeInfo", name: "承租人信息" }, { id: "lesseeInfo", name: "承租人信息" },
{ id: "carInfo", name: "车辆信息" }, { id: "carInfo", name: "车辆信息" },
...@@ -487,13 +491,12 @@ export default { ...@@ -487,13 +491,12 @@ export default {
}, },
// 查看车辆详情 // 查看车辆详情
goCarDetail(){ goCarDetail() {
let oParams = {}; let oParams = {};
oParams.vin = 'LGBF5AE08FR305952'; oParams.vin = "LGBF5AE08FR305952";
let path = `/trialRun#/vehicleManage/vehicleList`; let path = `/trialRun#/vehicleManage/vehicleList`;
history.pushState(oParams, "车辆列表", path); history.pushState(oParams, "车辆列表", path);
} },
}, },
}; };
</script> </script>
......
<template>
<div>
<el-timeline>
<el-timeline-item v-for="(item, index) in list" :key="index" hide-timestamp>
<el-card class="el_card" :body-style="{ padding: '0px' }">
<h2 class="title">
<div class="name">【{{ item.userName?item.userName:'--' }}】{{ item.status?item.status:'--' }}</div>
<span class="time">{{ item.updateTime?item.updateTime:'--' }}</span>
</h2>
<template v-if="item.activeStatus == 8">
<p v-if="item.property1">安装地址:{{ item.property1?item.property1:'--' }}</p>
<p v-if="item.property2">激活地址:{{ item.property2?item.property2:'--' }}</p>
</template>
<template v-if="item.activeStatus == 125">
<p>打卡地址:{{ item.property1?item.property1:'--' }}</p>
<p v-if="item.property2">超时打卡原因:{{ item.property2?item.property2:'--' }}</p>
<p v-if="item.property2">超时备注:{{ item.reason?item.reason:'--' }}</p>
</template>
<template v-if="item.activeStatus == 120 || item.activeStatus == 7">
<p>联系人:{{ item.property1?item.property1 +' '+item.phone1:'--' }}</p>
<p>预约上门时间:{{ item.property2?item.property2:'--' }}</p>
<p>预约原因:{{ item.reason?item.reason:'--' }}</p>
</template>
<template v-if="item.activeStatus == 110">
<p>原指派技工:{{ item.property1?item.property1 +' '+item.phone1:'--' }}</p>
<p>新指派技工:{{ item.property2?item.property2 +' '+item.phone2:'--' }}</p>
</template>
<template v-if="item.activeStatus == 115">
<p>原安装地址:{{ item.property1?item.property1:'--' }}</p>
<p>新安装地址:{{ item.property2?item.property2:'--' }}</p>
</template>
</el-card>
</el-timeline-item>
</el-timeline>
</div>
</template>
<script>
import { GET_WORKORDER_PROGRESS } from "@/services/order";
export default {
name: "OrderProgress",
props: {
id: {
type: [String, Number],
default: "1000013780",
},
},
data() {
return {
list: [],
};
},
watch: {
id: {
handler: function (n, o) {
if (n) {
this.getList();
}
},
immediate: true,
},
},
mounted() {
this.getList();
},
methods: {
// 获取工单进度
getList() {
let oParams = {};
oParams.workOrderNo = this.id;
GET_WORKORDER_PROGRESS(oParams).then((res) => {
this.list = res.data || [];
});
},
},
};
</script>
<style lang="scss" scoped>
.el_card {
padding: 0 10px;
.title {
display: flex;
align-items: center;
justify-content: space-between;
font-weight: normal;
font-size: 14px;
color: #999;
.name {
font-weight: bold;
color: #333;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!