|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+<template>
|
|
|
2
|
+ <div>
|
|
|
3
|
+ <el-table
|
|
|
4
|
+ v-loading="loading"
|
|
|
5
|
+ ref="multipleTable"
|
|
|
6
|
+ :data="dataLists"
|
|
|
7
|
+ element-loading-text="加载中..."
|
|
|
8
|
+ border
|
|
|
9
|
+ stripe
|
|
|
10
|
+ row-key="F_Id"
|
|
|
11
|
+ height="500px"
|
|
|
12
|
+ >
|
|
|
13
|
+ <el-table-column prop="F_WoCode" label="工单编号" align="center" min-width="150">
|
|
|
14
|
+ <template slot-scope="scope">
|
|
|
15
|
+ <span
|
|
|
16
|
+ style="color: #409eff ; cursor: pointer"
|
|
|
17
|
+ @click="hadndleOrderCode(scope.row)"
|
|
|
18
|
+ >{{ scope.row.F_WoCode }}</span>
|
|
|
19
|
+ <el-tag
|
|
|
20
|
+ v-if="scope.row.F_ReturnNum > 0"
|
|
|
21
|
+ style="color: #2d6116border: 1px solid #2d6116background: none"
|
|
|
22
|
+ >返修{{ scope.row.F_ReturnNum }}</el-tag>
|
|
|
23
|
+ <el-tag
|
|
|
24
|
+ v-if="scope.row.F_EmergencyTypes == '紧急'"
|
|
|
25
|
+ style="color: #ff0000border: 1px solid #ff0000background: none"
|
|
|
26
|
+ >紧急</el-tag>
|
|
|
27
|
+ <el-tag
|
|
|
28
|
+ v-if="scope.row.F_UrgeCount > 0"
|
|
|
29
|
+ style="color: #60c136border: 1px solid #60c136background: none"
|
|
|
30
|
+ >催办{{ scope.row.F_UrgeCount }}</el-tag>
|
|
|
31
|
+ <el-tag
|
|
|
32
|
+ v-if="scope.row.F_IsBack == 1"
|
|
|
33
|
+ style="color: #3478f6border: 1px solid #3478f6background: none"
|
|
|
34
|
+ >退单</el-tag>
|
|
|
35
|
+ <el-tag
|
|
|
36
|
+ v-if="scope.row.F_ReplayCount > 0"
|
|
|
37
|
+ style="color: #ddb642border: 1px solid #ddb642background: none"
|
|
|
38
|
+ >延期{{ scope.row.F_ReplayCount }}</el-tag>
|
|
|
39
|
+ <el-tag
|
|
|
40
|
+ v-if="scope.row.F_IsStop == 1"
|
|
|
41
|
+ style="color: #4fa0f4border: 1px solid #4fa0f4background: none"
|
|
|
42
|
+ >挂起</el-tag>
|
|
|
43
|
+ <el-tag
|
|
|
44
|
+ v-if="scope.row.GapTime && scope.row.GapTime.indexOf('超时') >= 0"
|
|
|
45
|
+ style="color: #880000border: 1px solid #a80000background: none"
|
|
|
46
|
+ >超期</el-tag>
|
|
|
47
|
+ <el-tag
|
|
|
48
|
+ v-if="scope.row.F_TransferCount && scope.row.F_TransferCount > 1"
|
|
|
49
|
+ style="color: #55aa7fborder: 1px solid #55aa7fbackground: none"
|
|
|
50
|
+ >转{{ scope.row.F_TransferCount - 1 }}</el-tag>
|
|
|
51
|
+ <el-tag
|
|
|
52
|
+ v-if="scope.row.F_IsCollaborate == 1"
|
|
|
53
|
+ style="color: #e1ad3aborder: 1px solid #e1ad3abackground: none"
|
|
|
54
|
+ >协作</el-tag>
|
|
|
55
|
+ </template>
|
|
|
56
|
+ </el-table-column>
|
|
|
57
|
+ <el-table-column prop="F_ProposerDept" label="申请科室" align="center" min-width />
|
|
|
58
|
+ <el-table-column prop="F_ProposerName" label="申请人" align="center" min-width />
|
|
|
59
|
+ <el-table-column prop="F_Location" label="报工位置" align="center" min-width />
|
|
|
60
|
+ <el-table-column prop="F_LocationNew" label="科室位置" align="center" min-width />
|
|
|
61
|
+ <el-table-column prop="F_Type" label="业务类别" align="center" min-width>
|
|
|
62
|
+ <template slot-scope="scope">
|
|
|
63
|
+ <span v-if="scope.row.F_Type == 1000">业务咨询</span>
|
|
|
64
|
+ <span v-if="scope.row.F_Type == 2000">综合调度</span>
|
|
|
65
|
+ <span v-if="scope.row.F_Type == 3000">故障报修</span>
|
|
|
66
|
+ <span v-if="scope.row.F_Type == 4000">车辆调度</span>
|
|
|
67
|
+ </template>
|
|
|
68
|
+ </el-table-column>
|
|
|
69
|
+ <el-table-column prop="F_SonType" label="工单类别" align="center" />
|
|
|
70
|
+ <el-table-column prop="F_Content" label="工单内容" align="center" min-width="150" />
|
|
|
71
|
+ <el-table-column prop="F_CreateTime" label="创建时间" align="center" min-width="150" />
|
|
|
72
|
+ </el-table>
|
|
|
73
|
+ <el-pagination
|
|
|
74
|
+ :page-size="pagData.pageSize"
|
|
|
75
|
+ :total="pagData.total"
|
|
|
76
|
+ :pager-count="5"
|
|
|
77
|
+ layout="prev, pager, next"
|
|
|
78
|
+ @current-change="getList"
|
|
|
79
|
+ />
|
|
|
80
|
+ </div>
|
|
|
81
|
+</template>
|
|
|
82
|
+
|
|
|
83
|
+<script>
|
|
|
84
|
+import { dataModalListAjax } from '@/api/orderManagement/orderList'
|
|
|
85
|
+
|
|
|
86
|
+import detail from '@/views/orderManage/components/orderDetail.vue'
|
|
|
87
|
+import dispatchDetail from '@/views/comDispatch/components/dispatchdetail.vue'
|
|
|
88
|
+import askDetail from '@/views/orderManage/components/askdetail.vue'
|
|
|
89
|
+
|
|
|
90
|
+export default {
|
|
|
91
|
+ props: {
|
|
|
92
|
+ modalrowdata: {
|
|
|
93
|
+ type: Object,
|
|
|
94
|
+ default: () => {}
|
|
|
95
|
+ }
|
|
|
96
|
+ },
|
|
|
97
|
+ data() {
|
|
|
98
|
+ return {
|
|
|
99
|
+ dataLists: [], // 列表数据数据
|
|
|
100
|
+ loading: false, // 加载中
|
|
|
101
|
+ pagData: {
|
|
|
102
|
+ pageSize: 10,
|
|
|
103
|
+ total: 0
|
|
|
104
|
+ }
|
|
|
105
|
+ }
|
|
|
106
|
+ },
|
|
|
107
|
+ created() {
|
|
|
108
|
+ this.getList()
|
|
|
109
|
+ },
|
|
|
110
|
+ methods: {
|
|
|
111
|
+ getList(pageSize = 1) {
|
|
|
112
|
+ this.loading = true
|
|
|
113
|
+
|
|
|
114
|
+ const params = {
|
|
|
115
|
+ pageindex: pageSize,
|
|
|
116
|
+ pagesize: this.pagData.pageSize,
|
|
|
117
|
+ ...this.modalrowdata
|
|
|
118
|
+ }
|
|
|
119
|
+
|
|
|
120
|
+ this.dataLists = []
|
|
|
121
|
+
|
|
|
122
|
+ dataModalListAjax(params)
|
|
|
123
|
+ .then(response => {
|
|
|
124
|
+ if (response.state.toLowerCase() === 'success') {
|
|
|
125
|
+ this.dataLists = response.rows
|
|
|
126
|
+ this.pagData.total = response.total
|
|
|
127
|
+ }
|
|
|
128
|
+ })
|
|
|
129
|
+ .finally(() => {
|
|
|
130
|
+ this.loading = false
|
|
|
131
|
+ })
|
|
|
132
|
+ },
|
|
|
133
|
+ hadndleOrderCode(row) {
|
|
|
134
|
+ if (row.F_Type === 3000) {
|
|
|
135
|
+ this.$layer.iframe({
|
|
|
136
|
+ content: {
|
|
|
137
|
+ content: detail, // 传递的组件对象
|
|
|
138
|
+ parent: this, // 当前的vue对象
|
|
|
139
|
+ data: {
|
|
|
140
|
+ rowid: row.F_WoCode,
|
|
|
141
|
+ listtype: '0'
|
|
|
142
|
+ } // props
|
|
|
143
|
+ },
|
|
|
144
|
+ area: ['80%', '90%'],
|
|
|
145
|
+ title: '工单详情',
|
|
|
146
|
+ appendToBody: true
|
|
|
147
|
+ })
|
|
|
148
|
+ }
|
|
|
149
|
+ if (row.F_Type === 1000) {
|
|
|
150
|
+ this.$layer.iframe({
|
|
|
151
|
+ content: {
|
|
|
152
|
+ content: askDetail,
|
|
|
153
|
+ parent: this,
|
|
|
154
|
+ data: {
|
|
|
155
|
+ rowid: row.F_WoCode,
|
|
|
156
|
+ listtype: '0'
|
|
|
157
|
+ } // props
|
|
|
158
|
+ },
|
|
|
159
|
+ area: ['80%', '90%'],
|
|
|
160
|
+ title: '工单详情'
|
|
|
161
|
+ })
|
|
|
162
|
+ }
|
|
|
163
|
+ if (row.F_Type === 2000) {
|
|
|
164
|
+ this.$layer.iframe({
|
|
|
165
|
+ content: {
|
|
|
166
|
+ content: dispatchDetail,
|
|
|
167
|
+ parent: this,
|
|
|
168
|
+ data: {
|
|
|
169
|
+ rowid: row.F_WoCode
|
|
|
170
|
+ } // props
|
|
|
171
|
+ },
|
|
|
172
|
+ area: ['80%', '90%'],
|
|
|
173
|
+ title: '工单详情'
|
|
|
174
|
+ })
|
|
|
175
|
+ }
|
|
|
176
|
+ }
|
|
|
177
|
+ }
|
|
|
178
|
+}
|
|
|
179
|
+</script>
|
|
|
180
|
+
|
|
|
181
|
+<style>
|
|
|
182
|
+</style>
|