|
|
@@ -1,18 +1,39 @@
|
|
1
|
1
|
<template>
|
|
2
|
2
|
<div class="app-container">
|
|
3
|
3
|
<div class="filter-container">
|
|
4
|
|
- <el-date-picker v-model="searchData.searchTime" type="daterange" format="yyyy年MM月dd日" value-format="yyyy-MM-dd"
|
|
5
|
|
- align="left" unlink-panels range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" size="medium" />
|
|
|
4
|
+ <el-date-picker
|
|
|
5
|
+ v-model="searchData.searchTime"
|
|
|
6
|
+ type="daterange"
|
|
|
7
|
+ format="yyyy年MM月dd日"
|
|
|
8
|
+ value-format="yyyy-MM-dd"
|
|
|
9
|
+ align="left"
|
|
|
10
|
+ unlink-panels
|
|
|
11
|
+ range-separator="至"
|
|
|
12
|
+ start-placeholder="开始日期"
|
|
|
13
|
+ end-placeholder="结束日期"
|
|
|
14
|
+ size="medium" />
|
|
6
|
15
|
<!-- <el-input v-model="searchData.keyword" placeholder="请输入关键字" class="filter-item" size="medium" /> -->
|
|
7
|
16
|
<el-select v-model="searchData.type" clearable placeholder="请选择业务类别" size="medium" @change="changeOrder">
|
|
8
|
17
|
<el-option v-for="item in orderData" :key="item.id" :label="item.text" :value="item.id" />
|
|
9
|
18
|
</el-select>
|
|
10
|
|
- <el-cascader ref="cascader" v-model="searchData.orderids" :options="subclassData" :props="defaultProps"
|
|
11
|
|
- size="medium" placeholder="请选择工单类别" filterable clearable @change="handleChange" />
|
|
|
19
|
+ <el-cascader
|
|
|
20
|
+ ref="cascader"
|
|
|
21
|
+ v-model="searchData.orderids"
|
|
|
22
|
+ :options="subclassData"
|
|
|
23
|
+ :props="defaultProps"
|
|
|
24
|
+ size="medium"
|
|
|
25
|
+ placeholder="请选择工单类别"
|
|
|
26
|
+ filterable
|
|
|
27
|
+ clearable
|
|
|
28
|
+ @change="handleChange" />
|
|
12
|
29
|
<el-button type="primary" class="filter-btn" icon="el-icon-search" @click="btn_search">
|
|
13
|
30
|
搜索
|
|
14
|
31
|
</el-button>
|
|
15
|
|
- <el-button v-permission="'orderListSetList'" type="primary" class="filter-btn" icon="el-icon-s-tools"
|
|
|
32
|
+ <el-button
|
|
|
33
|
+ v-permission="'orderListSetList'"
|
|
|
34
|
+ type="primary"
|
|
|
35
|
+ class="filter-btn"
|
|
|
36
|
+ icon="el-icon-s-tools"
|
|
16
|
37
|
@click="btn_add_list">
|
|
17
|
38
|
设置列
|
|
18
|
39
|
</el-button>
|
|
|
@@ -27,349 +48,375 @@
|
|
27
|
48
|
</template>
|
|
28
|
49
|
</el-table-column>
|
|
29
|
50
|
<el-table-column v-if="fieldListFlag.F_ProposerName" prop="F_ProposerName" label="姓名" align="center" min-width />
|
|
30
|
|
- <el-table-column v-if="fieldListFlag.F_SonType" :formatter="formtOrder" prop="F_SonType" label="工单类别"
|
|
|
51
|
+ <el-table-column
|
|
|
52
|
+ v-if="fieldListFlag.F_SonType"
|
|
|
53
|
+ :formatter="formtOrder"
|
|
|
54
|
+ prop="F_SonType"
|
|
|
55
|
+ label="工单类别"
|
|
31
|
56
|
align="center" />
|
|
32
|
57
|
<el-table-column v-if="fieldListFlag.F_Content" prop="F_Content" label="工单内容" align="center" />
|
|
33
|
58
|
<el-table-column v-if="fieldListFlag.StateName" prop="StateName" label="工单状态" align="center" />
|
|
34
|
59
|
<el-table-column v-if="fieldListFlag.F_CreateTime" prop="F_CreateTime" label="创建时间" align="center" />
|
|
35
|
60
|
<el-table-column label="操作" align="center" class-name="oparate_btn">
|
|
36
|
61
|
<template slot-scope="scope">
|
|
37
|
|
- <el-button v-for="item in scope.row.Buttons" :key="item.key" type="text"
|
|
|
62
|
+ <el-button
|
|
|
63
|
+ v-for="item in scope.row.Buttons"
|
|
|
64
|
+ :key="item.key"
|
|
|
65
|
+ type="text"
|
|
38
|
66
|
@click="btnClickEvents(item, scope.row.F_WoCode, scope.row)">
|
|
39
|
67
|
{{ item.value }}
|
|
40
|
68
|
</el-button>
|
|
41
|
69
|
</template>
|
|
42
|
70
|
</el-table-column>
|
|
43
|
71
|
</el-table>
|
|
44
|
|
- <pagination v-show="pageParams.total > 0" :total="pageParams.total" :pageindex.sync="pageParams.pageindex"
|
|
45
|
|
- :pagesize.sync="pageParams.pagesize" class="pagination" @pagination="getList" />
|
|
|
72
|
+ <pagination
|
|
|
73
|
+ v-show="pageParams.total > 0"
|
|
|
74
|
+ :total="pageParams.total"
|
|
|
75
|
+ :pageindex.sync="pageParams.pageindex"
|
|
|
76
|
+ :pagesize.sync="pageParams.pagesize"
|
|
|
77
|
+ class="pagination"
|
|
|
78
|
+ @pagination="getList" />
|
|
46
|
79
|
<order-button-operation ref="butOption" @refList="refList" />
|
|
47
|
80
|
</div>
|
|
48
|
81
|
</template>
|
|
49
|
82
|
|
|
50
|
83
|
<script>
|
|
51
|
|
- // import { getDictionaryValueList } from '@/api/commonAPI'
|
|
52
|
|
- import {
|
|
53
|
|
- deleteOrder,
|
|
54
|
|
- CompleteOrder,
|
|
55
|
|
- comOrderList,
|
|
56
|
|
- getOrderStateData
|
|
57
|
|
- } from '@/api/orderManagement/orderList'
|
|
58
|
|
- import {
|
|
59
|
|
- getOrderTypeDrop
|
|
60
|
|
- } from '@/api/systemSetup/roleSetting/menuSetup'
|
|
61
|
|
- import addDefinedList from '@/components/context/addDefinedList'
|
|
62
|
|
- import addOrEditFaultRepair from '../../faultRepair/clinicalReporting/components/addRepairbase.vue'
|
|
63
|
|
- import addOrEditOrder from '../../callScreen/components/AddOrEditOrder.vue'
|
|
64
|
|
- import detail from '../components/orderDetail.vue'
|
|
65
|
|
- import askDetail from '../components/askdetail.vue'
|
|
66
|
|
- import addAudit from './addAudit'
|
|
67
|
|
- import {
|
|
68
|
|
- GetFiledState,
|
|
69
|
|
- AddFiled
|
|
70
|
|
- } from '@/api/commonAPI'
|
|
71
|
|
- import fieldDATA from '@/utils/fieldsData.js'
|
|
72
|
|
- import orderDeal from './orderDeal'
|
|
73
|
|
- import Pagination from '@/components/context/Pagination' // 对el-pagination 二次封装
|
|
74
|
|
- import OrderButtonOperation from '@/components/button/orderList'
|
|
|
84
|
+// import { getDictionaryValueList } from '@/api/commonAPI'
|
|
|
85
|
+import {
|
|
|
86
|
+ deleteOrder,
|
|
|
87
|
+ CompleteOrder,
|
|
|
88
|
+ comOrderList,
|
|
|
89
|
+ getOrderStateData
|
|
|
90
|
+} from '@/api/orderManagement/orderList'
|
|
|
91
|
+import {
|
|
|
92
|
+ getOrderTypeDrop
|
|
|
93
|
+} from '@/api/systemSetup/roleSetting/menuSetup'
|
|
|
94
|
+import addDefinedList from '@/components/context/addDefinedList'
|
|
|
95
|
+import addOrEditFaultRepair from '../../faultRepair/clinicalReporting/components/addRepairbase.vue'
|
|
|
96
|
+import addOrEditOrder from '../../callScreen/components/AddOrEditOrder.vue'
|
|
|
97
|
+import detail from '../components/orderDetail.vue'
|
|
|
98
|
+import askDetail from '../components/askdetail.vue'
|
|
|
99
|
+import dispatchDetail from '../../comDispatch/components/dispatchdetail.vue'
|
|
|
100
|
+import addAudit from './addAudit'
|
|
|
101
|
+import {
|
|
|
102
|
+ GetFiledState,
|
|
|
103
|
+ AddFiled
|
|
|
104
|
+} from '@/api/commonAPI'
|
|
|
105
|
+import fieldDATA from '@/utils/fieldsData.js'
|
|
|
106
|
+import orderDeal from './orderDeal'
|
|
|
107
|
+import Pagination from '@/components/context/Pagination' // 对el-pagination 二次封装
|
|
|
108
|
+import OrderButtonOperation from '@/components/button/orderList'
|
|
75
|
109
|
|
|
76
|
|
- export default {
|
|
77
|
|
- name: 'OrderList',
|
|
78
|
|
- components: {
|
|
79
|
|
- Pagination,
|
|
80
|
|
- OrderButtonOperation
|
|
81
|
|
- },
|
|
82
|
|
- data() {
|
|
83
|
|
- return {
|
|
84
|
|
- isDisable: false, // 防止多次点击
|
|
85
|
|
- loading: false,
|
|
86
|
|
- isedit: '1',
|
|
87
|
|
- deleteId: [],
|
|
88
|
|
- fieldListFlag: {},
|
|
89
|
|
- buttonName: '',
|
|
90
|
|
- searchData: {
|
|
91
|
|
- keyword: '', // 关键字
|
|
92
|
|
- searchTime: '', // 时间
|
|
93
|
|
- starttime: '', // 开始时间
|
|
94
|
|
- endtime: '', // 结束时间
|
|
95
|
|
- type: '', // 工单类型
|
|
96
|
|
- orderids: [],
|
|
97
|
|
- menutypeid: '',
|
|
98
|
|
- menutype: '',
|
|
99
|
|
- state: '' // 工单状态
|
|
100
|
|
- },
|
|
101
|
|
- pageParams: {
|
|
102
|
|
- pageindex: 1, // 当前第几页
|
|
103
|
|
- pagesize: Number(this.$store.getters.serverConfig.PAGESIZE), // 每页几条数据
|
|
104
|
|
- total: 0 // 总共多少数据
|
|
105
|
|
- },
|
|
106
|
|
- dataLists: [], // 列表数据数据
|
|
107
|
|
- defaultProps: {
|
|
108
|
|
- checkStrictly: true,
|
|
109
|
|
- children: 'children',
|
|
110
|
|
- label: 'text',
|
|
111
|
|
- value: 'id'
|
|
112
|
|
- },
|
|
113
|
|
- orderData: [],
|
|
114
|
|
- subclassData: [],
|
|
115
|
|
- orderstate: [], // 工单状态数据
|
|
116
|
|
- DefinedId: ''
|
|
|
110
|
+export default {
|
|
|
111
|
+ name: 'OrderList',
|
|
|
112
|
+ components: {
|
|
|
113
|
+ Pagination,
|
|
|
114
|
+ OrderButtonOperation
|
|
|
115
|
+ },
|
|
|
116
|
+ data() {
|
|
|
117
|
+ return {
|
|
|
118
|
+ isDisable: false, // 防止多次点击
|
|
|
119
|
+ loading: false,
|
|
|
120
|
+ isedit: '1',
|
|
|
121
|
+ deleteId: [],
|
|
|
122
|
+ fieldListFlag: {},
|
|
|
123
|
+ buttonName: '',
|
|
|
124
|
+ searchData: {
|
|
|
125
|
+ keyword: '', // 关键字
|
|
|
126
|
+ searchTime: '', // 时间
|
|
|
127
|
+ starttime: '', // 开始时间
|
|
|
128
|
+ endtime: '', // 结束时间
|
|
|
129
|
+ type: '', // 工单类型
|
|
|
130
|
+ orderids: [],
|
|
|
131
|
+ menutypeid: '',
|
|
|
132
|
+ menutype: '',
|
|
|
133
|
+ state: '' // 工单状态
|
|
|
134
|
+ },
|
|
|
135
|
+ pageParams: {
|
|
|
136
|
+ pageindex: 1, // 当前第几页
|
|
|
137
|
+ pagesize: Number(this.$store.getters.serverConfig.PAGESIZE), // 每页几条数据
|
|
|
138
|
+ total: 0 // 总共多少数据
|
|
|
139
|
+ },
|
|
|
140
|
+ dataLists: [], // 列表数据数据
|
|
|
141
|
+ defaultProps: {
|
|
|
142
|
+ checkStrictly: true,
|
|
|
143
|
+ children: 'children',
|
|
|
144
|
+ label: 'text',
|
|
|
145
|
+ value: 'id'
|
|
|
146
|
+ },
|
|
|
147
|
+ orderData: [],
|
|
|
148
|
+ subclassData: [],
|
|
|
149
|
+ orderstate: [], // 工单状态数据
|
|
|
150
|
+ DefinedId: ''
|
|
|
151
|
+ }
|
|
|
152
|
+ },
|
|
|
153
|
+ created() {
|
|
|
154
|
+ this.getList()
|
|
|
155
|
+ this.getTreeList()
|
|
|
156
|
+ this.getOrderStat()
|
|
|
157
|
+
|
|
|
158
|
+ this.getFiledTabDetail(this.$route.path.split('/').join('_'))
|
|
|
159
|
+ document.onkeyup = (e) => {
|
|
|
160
|
+ if (e.keyCode === 13) {
|
|
|
161
|
+ this.getList()
|
|
117
|
162
|
}
|
|
|
163
|
+ }
|
|
|
164
|
+ },
|
|
|
165
|
+ methods: {
|
|
|
166
|
+ refList() {
|
|
|
167
|
+ this.getList()
|
|
118
|
168
|
},
|
|
119
|
|
- created() {
|
|
|
169
|
+ handleClick(res) {
|
|
|
170
|
+ this.searchData.state = Number(res.name)
|
|
120
|
171
|
this.getList()
|
|
121
|
|
- this.getTreeList()
|
|
122
|
|
- this.getOrderStat()
|
|
123
|
|
-
|
|
124
|
|
- this.getFiledTabDetail(this.$route.path.split('/').join('_'))
|
|
125
|
|
- document.onkeyup = (e) => {
|
|
126
|
|
- if (e.keyCode === 13) {
|
|
127
|
|
- this.getList()
|
|
128
|
|
- }
|
|
|
172
|
+ },
|
|
|
173
|
+ formtOrder(row, column) {
|
|
|
174
|
+ if (row.F_SonType) {
|
|
|
175
|
+ return this.$store.getters.workTypeMap[parseInt(row.F_SonType)].text
|
|
129
|
176
|
}
|
|
130
|
177
|
},
|
|
131
|
|
- methods: {
|
|
132
|
|
- refList() {
|
|
133
|
|
- this.getList()
|
|
134
|
|
- },
|
|
135
|
|
- handleClick(res) {
|
|
136
|
|
- this.searchData.state = Number(res.name)
|
|
137
|
|
- this.getList()
|
|
138
|
|
- },
|
|
139
|
|
- formtOrder(row, column) {
|
|
140
|
|
- if (row.F_SonType) {
|
|
141
|
|
- return this.$store.getters.workTypeMap[parseInt(row.F_SonType)].text
|
|
142
|
|
- }
|
|
143
|
|
- },
|
|
144
|
|
- btnClickEvents(button, wocode, row) {
|
|
145
|
|
- this.buttonName = button.key
|
|
146
|
|
- this.$refs.butOption.butOptionMethod(this.buttonName, wocode, row)
|
|
147
|
|
- if (this.buttonName === 'bianji') {
|
|
148
|
|
- this.btn_edit(wocode, row.F_Type)
|
|
|
178
|
+ btnClickEvents(button, wocode, row) {
|
|
|
179
|
+ this.buttonName = button.key
|
|
|
180
|
+ this.$refs.butOption.butOptionMethod(this.buttonName, wocode, row)
|
|
|
181
|
+ if (this.buttonName === 'bianji') {
|
|
|
182
|
+ this.btn_edit(wocode, row.F_Type)
|
|
|
183
|
+ }
|
|
|
184
|
+ },
|
|
|
185
|
+ getList() {
|
|
|
186
|
+ this.loading = true
|
|
|
187
|
+ return new Promise((resolve) => {
|
|
|
188
|
+ const params = {
|
|
|
189
|
+ // keyword: this.searchData.keyword, // 关键字
|
|
|
190
|
+ starttime: this.searchData.searchTime[0], // 开始时间
|
|
|
191
|
+ endtime: this.searchData.searchTime[1], // 结束时间
|
|
|
192
|
+ type: this.searchData.type, // 工单类型
|
|
|
193
|
+ loweltype: this.searchData.orderids[this.searchData.orderids.length - 1],
|
|
|
194
|
+ state: this.searchData.state, // 工单状态
|
|
|
195
|
+ pageindex: this.pageParams.pageindex, // int 第几页
|
|
|
196
|
+ pagesize: this.pageParams.pagesize // int 每页几条信息
|
|
149
|
197
|
}
|
|
150
|
|
- },
|
|
151
|
|
- getList() {
|
|
152
|
|
- this.loading = true
|
|
153
|
|
- return new Promise((resolve) => {
|
|
154
|
|
- const params = {
|
|
155
|
|
- // keyword: this.searchData.keyword, // 关键字
|
|
156
|
|
- starttime: this.searchData.searchTime[0], // 开始时间
|
|
157
|
|
- endtime: this.searchData.searchTime[1], // 结束时间
|
|
158
|
|
- type: this.searchData.type, // 工单类型
|
|
159
|
|
- loweltype: this.searchData.orderids[this.searchData.orderids.length - 1],
|
|
160
|
|
- state: this.searchData.state, // 工单状态
|
|
161
|
|
- pageindex: this.pageParams.pageindex, // int 第几页
|
|
162
|
|
- pagesize: this.pageParams.pagesize // int 每页几条信息
|
|
|
198
|
+ comOrderList(params).then((response) => {
|
|
|
199
|
+ this.loading = false
|
|
|
200
|
+ if (response.state.toLowerCase() === 'success') {
|
|
|
201
|
+ this.pageParams.total = response.total
|
|
|
202
|
+ this.dataLists = response.rows
|
|
163
|
203
|
}
|
|
164
|
|
- comOrderList(params).then((response) => {
|
|
165
|
|
- this.loading = false
|
|
166
|
|
- if (response.state.toLowerCase() === 'success') {
|
|
167
|
|
- this.pageParams.total = response.total
|
|
168
|
|
- this.dataLists = response.rows
|
|
169
|
|
- }
|
|
170
|
|
- })
|
|
171
|
|
- resolve()
|
|
172
|
204
|
})
|
|
173
|
|
- },
|
|
174
|
|
- getFiledTabDetail(TableId) {
|
|
175
|
|
- GetFiledState(TableId).then((res) => {
|
|
176
|
|
- if (res.F_Fileds) {
|
|
177
|
|
- this.fieldListFlag = fieldDATA.getFieldListFlag(res.F_Fileds)
|
|
178
|
|
- this.$refs['multipleTable'].doLayout()
|
|
179
|
|
- } else {
|
|
180
|
|
- const Fileds = fieldDATA.getOptionsValue(fieldDATA[TableId])
|
|
181
|
|
- AddFiled({
|
|
182
|
|
- TableId,
|
|
183
|
|
- Fileds
|
|
184
|
|
- })
|
|
185
|
|
- .then((response) => {
|
|
186
|
|
- if (response.state.toLowerCase() === 'success') {
|
|
187
|
|
- this.getFiledTabDetail(TableId)
|
|
188
|
|
- }
|
|
189
|
|
- })
|
|
190
|
|
- .catch(() => {
|
|
191
|
|
- this.loading = false
|
|
192
|
|
- })
|
|
193
|
|
- }
|
|
194
|
|
- })
|
|
195
|
|
- },
|
|
196
|
|
- btn_search() {
|
|
197
|
|
- this.pageParams.pageindex = 1
|
|
198
|
|
- this.getList()
|
|
199
|
|
- },
|
|
200
|
|
- btn_add_list() {
|
|
|
205
|
+ resolve()
|
|
|
206
|
+ })
|
|
|
207
|
+ },
|
|
|
208
|
+ getFiledTabDetail(TableId) {
|
|
|
209
|
+ GetFiledState(TableId).then((res) => {
|
|
|
210
|
+ if (res.F_Fileds) {
|
|
|
211
|
+ this.fieldListFlag = fieldDATA.getFieldListFlag(res.F_Fileds)
|
|
|
212
|
+ this.$refs['multipleTable'].doLayout()
|
|
|
213
|
+ } else {
|
|
|
214
|
+ const Fileds = fieldDATA.getOptionsValue(fieldDATA[TableId])
|
|
|
215
|
+ AddFiled({
|
|
|
216
|
+ TableId,
|
|
|
217
|
+ Fileds
|
|
|
218
|
+ })
|
|
|
219
|
+ .then((response) => {
|
|
|
220
|
+ if (response.state.toLowerCase() === 'success') {
|
|
|
221
|
+ this.getFiledTabDetail(TableId)
|
|
|
222
|
+ }
|
|
|
223
|
+ })
|
|
|
224
|
+ .catch(() => {
|
|
|
225
|
+ this.loading = false
|
|
|
226
|
+ })
|
|
|
227
|
+ }
|
|
|
228
|
+ })
|
|
|
229
|
+ },
|
|
|
230
|
+ btn_search() {
|
|
|
231
|
+ this.pageParams.pageindex = 1
|
|
|
232
|
+ this.getList()
|
|
|
233
|
+ },
|
|
|
234
|
+ btn_add_list() {
|
|
|
235
|
+ this.$layer.iframe({
|
|
|
236
|
+ content: {
|
|
|
237
|
+ content: addDefinedList, // 传递的组件对象
|
|
|
238
|
+ parent: this, // 当前的vue对象
|
|
|
239
|
+ data: {
|
|
|
240
|
+ definedId: this.$route.path
|
|
|
241
|
+ } // props
|
|
|
242
|
+ },
|
|
|
243
|
+ area: ['70%', '30%'],
|
|
|
244
|
+ title: '自定义字段'
|
|
|
245
|
+ })
|
|
|
246
|
+ },
|
|
|
247
|
+ // 编辑
|
|
|
248
|
+ btn_edit(rid, rtype) {
|
|
|
249
|
+ this.$layer.iframe({
|
|
|
250
|
+ content: {
|
|
|
251
|
+ content: addOrEditOrder, // 传递的组件对象
|
|
|
252
|
+ parent: this, // 当前的vue对象
|
|
|
253
|
+ data: {
|
|
|
254
|
+ wid: rid,
|
|
|
255
|
+ rtype: rtype.toString(),
|
|
|
256
|
+ iswomanage: '1',
|
|
|
257
|
+ isedit: '1'
|
|
|
258
|
+ } // props
|
|
|
259
|
+ },
|
|
|
260
|
+ area: ['70%', '70%'],
|
|
|
261
|
+ title: '编辑工单'
|
|
|
262
|
+ })
|
|
|
263
|
+ },
|
|
|
264
|
+ hadndleOrderCode(row) {
|
|
|
265
|
+ if (row.F_Type === 3000) {
|
|
201
|
266
|
this.$layer.iframe({
|
|
202
|
267
|
content: {
|
|
203
|
|
- content: addDefinedList, // 传递的组件对象
|
|
|
268
|
+ content: detail, // 传递的组件对象
|
|
204
|
269
|
parent: this, // 当前的vue对象
|
|
205
|
270
|
data: {
|
|
206
|
|
- definedId: this.$route.path
|
|
|
271
|
+ rowid: row.F_WoCode
|
|
207
|
272
|
} // props
|
|
208
|
273
|
},
|
|
209
|
|
- area: ['70%', '30%'],
|
|
210
|
|
- title: '自定义字段'
|
|
|
274
|
+ area: ['80%', '90%'],
|
|
|
275
|
+ title: '订单详情'
|
|
211
|
276
|
})
|
|
212
|
|
- },
|
|
213
|
|
- // 编辑
|
|
214
|
|
- btn_edit(rid, rtype) {
|
|
|
277
|
+ }
|
|
|
278
|
+ if (row.F_Type === 1000) {
|
|
215
|
279
|
this.$layer.iframe({
|
|
216
|
280
|
content: {
|
|
217
|
|
- content: addOrEditOrder, // 传递的组件对象
|
|
218
|
|
- parent: this, // 当前的vue对象
|
|
|
281
|
+ content: askDetail,
|
|
|
282
|
+ parent: this,
|
|
219
|
283
|
data: {
|
|
220
|
|
- wid: rid,
|
|
221
|
|
- rtype: rtype.toString(),
|
|
222
|
|
- iswomanage: '1',
|
|
223
|
|
- isedit: '1'
|
|
|
284
|
+ rowid: row.F_WoCode
|
|
224
|
285
|
} // props
|
|
225
|
286
|
},
|
|
226
|
|
- area: ['70%', '70%'],
|
|
227
|
|
- title: '编辑工单'
|
|
|
287
|
+ area: ['80%', '90%'],
|
|
|
288
|
+ title: '订单详情'
|
|
228
|
289
|
})
|
|
229
|
|
- },
|
|
230
|
|
- hadndleOrderCode(row) {
|
|
231
|
|
- if (row.F_Type === 3000) {
|
|
232
|
|
- this.$layer.iframe({
|
|
233
|
|
- content: {
|
|
234
|
|
- content: detail, // 传递的组件对象
|
|
235
|
|
- parent: this, // 当前的vue对象
|
|
236
|
|
- data: {
|
|
237
|
|
- rowid: row.F_WoCode
|
|
238
|
|
- } // props
|
|
239
|
|
- },
|
|
240
|
|
- area: ['80%', '90%'],
|
|
241
|
|
- title: '订单详情'
|
|
242
|
|
- })
|
|
243
|
|
- }
|
|
244
|
|
- if (row.F_Type === 1000) {
|
|
245
|
|
- this.$layer.iframe({
|
|
246
|
|
- content: {
|
|
247
|
|
- content: askDetail,
|
|
248
|
|
- parent: this,
|
|
249
|
|
- data: {
|
|
250
|
|
- rowid: row.F_WoCode
|
|
251
|
|
- } // props
|
|
252
|
|
- },
|
|
253
|
|
- area: ['80%', '90%'],
|
|
254
|
|
- title: '订单详情'
|
|
255
|
|
- })
|
|
256
|
|
- }
|
|
257
|
|
- },
|
|
258
|
|
- // 删除弹框
|
|
259
|
|
- btn_delete(operateId) {
|
|
260
|
|
- this.deleteId = []
|
|
261
|
|
- this.deleteId.push(operateId)
|
|
262
|
|
- this.$confirm('此操作将永久删除当前工单, 是否继续?', '提示', {
|
|
263
|
|
- confirmButtonText: '确定',
|
|
264
|
|
- cancelButtonText: '取消',
|
|
265
|
|
- type: 'warning'
|
|
266
|
|
- })
|
|
267
|
|
- .then(() => {
|
|
268
|
|
- deleteOrder(this.deleteId).then((response) => {
|
|
269
|
|
- if (response.state.toLowerCase() === 'success') {
|
|
270
|
|
- this.getList()
|
|
271
|
|
- this.$message.success('删除成功!')
|
|
272
|
|
- }
|
|
273
|
|
- })
|
|
274
|
|
- })
|
|
275
|
|
- .catch(() => {
|
|
276
|
|
- this.$message.info('已取消删除')
|
|
277
|
|
- })
|
|
278
|
|
- },
|
|
279
|
|
- // 工单完结
|
|
280
|
|
- btn_Complete(operateId) {
|
|
281
|
|
- this.$confirm('此操作完结当前工单, 是否继续?', '提示', {
|
|
282
|
|
- confirmButtonText: '确定',
|
|
283
|
|
- cancelButtonText: '取消',
|
|
284
|
|
- type: 'warning'
|
|
285
|
|
- })
|
|
286
|
|
- .then(() => {
|
|
287
|
|
- CompleteOrder(operateId).then((response) => {
|
|
288
|
|
- if (response.state.toLowerCase() === 'success') {
|
|
289
|
|
- this.getList()
|
|
290
|
|
- this.$message.success('完结成功!')
|
|
291
|
|
- }
|
|
292
|
|
- })
|
|
293
|
|
- })
|
|
294
|
|
- .catch(() => {
|
|
295
|
|
- this.$message.info('已取消完结')
|
|
296
|
|
- })
|
|
297
|
|
- },
|
|
298
|
|
- // 工单处理 orderDeal
|
|
299
|
|
- // btn_Deal(operateId) {
|
|
300
|
|
- // this.$layer.iframe({
|
|
301
|
|
- // content: {
|
|
302
|
|
- // content: orderDeal, // 传递的组件对象
|
|
303
|
|
- // parent: this, // 当前的vue对象
|
|
304
|
|
- // data: {
|
|
305
|
|
- // rowid: operateId
|
|
306
|
|
- // } // props
|
|
307
|
|
- // },
|
|
308
|
|
- // area: ['40%', '30%'],
|
|
309
|
|
- // title: '订单详情'
|
|
310
|
|
- // })
|
|
311
|
|
- // },
|
|
312
|
|
- // 工单审核
|
|
313
|
|
- // btn_Audit(operateId) {
|
|
314
|
|
- // this.$layer.iframe({
|
|
315
|
|
- // content: {
|
|
316
|
|
- // content: addAudit, // 传递的组件对象
|
|
317
|
|
- // parent: this, // 当前的vue对象
|
|
318
|
|
- // data: {
|
|
319
|
|
- // rowid: operateId
|
|
320
|
|
- // } // props
|
|
321
|
|
- // },
|
|
322
|
|
- // area: ['40%', '30%'],
|
|
323
|
|
- // title: '订单详情'
|
|
324
|
|
- // })
|
|
325
|
|
- // },
|
|
326
|
|
- // 工单状态
|
|
327
|
|
- getOrderStat() {
|
|
328
|
|
- return new Promise((resolve) => {
|
|
329
|
|
- const params = {}
|
|
330
|
|
- getOrderStateData(params).then((response) => {
|
|
331
|
|
- this.loading = false
|
|
332
|
|
- if (response) {
|
|
333
|
|
- this.orderstate = response
|
|
334
|
|
- }
|
|
335
|
|
- })
|
|
336
|
|
- resolve()
|
|
|
290
|
+ }
|
|
|
291
|
+ if (row.F_Type === 2000) {
|
|
|
292
|
+ this.$layer.iframe({
|
|
|
293
|
+ content: {
|
|
|
294
|
+ content: dispatchDetail,
|
|
|
295
|
+ parent: this,
|
|
|
296
|
+ data: {
|
|
|
297
|
+ rowid: row.F_WoCode
|
|
|
298
|
+ } // props
|
|
|
299
|
+ },
|
|
|
300
|
+ area: ['80%', '90%'],
|
|
|
301
|
+ title: '订单详情'
|
|
337
|
302
|
})
|
|
338
|
|
- },
|
|
339
|
|
- getTreeList() {
|
|
340
|
|
- return new Promise((resolve) => {
|
|
341
|
|
- getOrderTypeDrop(this.pid).then((response) => {
|
|
|
303
|
+ }
|
|
|
304
|
+ },
|
|
|
305
|
+ // 删除弹框
|
|
|
306
|
+ btn_delete(operateId) {
|
|
|
307
|
+ this.deleteId = []
|
|
|
308
|
+ this.deleteId.push(operateId)
|
|
|
309
|
+ this.$confirm('此操作将永久删除当前工单, 是否继续?', '提示', {
|
|
|
310
|
+ confirmButtonText: '确定',
|
|
|
311
|
+ cancelButtonText: '取消',
|
|
|
312
|
+ type: 'warning'
|
|
|
313
|
+ })
|
|
|
314
|
+ .then(() => {
|
|
|
315
|
+ deleteOrder(this.deleteId).then((response) => {
|
|
342
|
316
|
if (response.state.toLowerCase() === 'success') {
|
|
343
|
|
- this.orderData = response.data
|
|
|
317
|
+ this.getList()
|
|
|
318
|
+ this.$message.success('删除成功!')
|
|
344
|
319
|
}
|
|
345
|
320
|
})
|
|
346
|
|
- resolve()
|
|
347
|
321
|
})
|
|
348
|
|
- },
|
|
349
|
|
- handleChange(data) {
|
|
350
|
|
- this.searchData.menutype = data[data.length - 1]
|
|
351
|
|
- this.searchData.orderids = data
|
|
352
|
|
- },
|
|
353
|
|
- changeOrder(data) {
|
|
354
|
|
- if (!data) {
|
|
355
|
|
- return
|
|
356
|
|
- }
|
|
357
|
|
- this.searchData.menutypeid = data
|
|
358
|
|
- const params = {
|
|
359
|
|
- pid: data,
|
|
360
|
|
- flag: 1
|
|
361
|
|
- }
|
|
362
|
|
- return new Promise((resolve) => {
|
|
363
|
|
- getOrderTypeDrop(params).then((response) => {
|
|
|
322
|
+ .catch(() => {
|
|
|
323
|
+ this.$message.info('已取消删除')
|
|
|
324
|
+ })
|
|
|
325
|
+ },
|
|
|
326
|
+ // 工单完结
|
|
|
327
|
+ btn_Complete(operateId) {
|
|
|
328
|
+ this.$confirm('此操作完结当前工单, 是否继续?', '提示', {
|
|
|
329
|
+ confirmButtonText: '确定',
|
|
|
330
|
+ cancelButtonText: '取消',
|
|
|
331
|
+ type: 'warning'
|
|
|
332
|
+ })
|
|
|
333
|
+ .then(() => {
|
|
|
334
|
+ CompleteOrder(operateId).then((response) => {
|
|
364
|
335
|
if (response.state.toLowerCase() === 'success') {
|
|
365
|
|
- this.subclassData = response.data
|
|
|
336
|
+ this.getList()
|
|
|
337
|
+ this.$message.success('完结成功!')
|
|
366
|
338
|
}
|
|
367
|
339
|
})
|
|
368
|
|
- resolve()
|
|
369
|
340
|
})
|
|
|
341
|
+ .catch(() => {
|
|
|
342
|
+ this.$message.info('已取消完结')
|
|
|
343
|
+ })
|
|
|
344
|
+ },
|
|
|
345
|
+ // 工单处理 orderDeal
|
|
|
346
|
+ // btn_Deal(operateId) {
|
|
|
347
|
+ // this.$layer.iframe({
|
|
|
348
|
+ // content: {
|
|
|
349
|
+ // content: orderDeal, // 传递的组件对象
|
|
|
350
|
+ // parent: this, // 当前的vue对象
|
|
|
351
|
+ // data: {
|
|
|
352
|
+ // rowid: operateId
|
|
|
353
|
+ // } // props
|
|
|
354
|
+ // },
|
|
|
355
|
+ // area: ['40%', '30%'],
|
|
|
356
|
+ // title: '订单详情'
|
|
|
357
|
+ // })
|
|
|
358
|
+ // },
|
|
|
359
|
+ // 工单审核
|
|
|
360
|
+ // btn_Audit(operateId) {
|
|
|
361
|
+ // this.$layer.iframe({
|
|
|
362
|
+ // content: {
|
|
|
363
|
+ // content: addAudit, // 传递的组件对象
|
|
|
364
|
+ // parent: this, // 当前的vue对象
|
|
|
365
|
+ // data: {
|
|
|
366
|
+ // rowid: operateId
|
|
|
367
|
+ // } // props
|
|
|
368
|
+ // },
|
|
|
369
|
+ // area: ['40%', '30%'],
|
|
|
370
|
+ // title: '订单详情'
|
|
|
371
|
+ // })
|
|
|
372
|
+ // },
|
|
|
373
|
+ // 工单状态
|
|
|
374
|
+ getOrderStat() {
|
|
|
375
|
+ return new Promise((resolve) => {
|
|
|
376
|
+ const params = {}
|
|
|
377
|
+ getOrderStateData(params).then((response) => {
|
|
|
378
|
+ this.loading = false
|
|
|
379
|
+ if (response) {
|
|
|
380
|
+ this.orderstate = response
|
|
|
381
|
+ }
|
|
|
382
|
+ })
|
|
|
383
|
+ resolve()
|
|
|
384
|
+ })
|
|
|
385
|
+ },
|
|
|
386
|
+ getTreeList() {
|
|
|
387
|
+ return new Promise((resolve) => {
|
|
|
388
|
+ getOrderTypeDrop(this.pid).then((response) => {
|
|
|
389
|
+ if (response.state.toLowerCase() === 'success') {
|
|
|
390
|
+ this.orderData = response.data
|
|
|
391
|
+ }
|
|
|
392
|
+ })
|
|
|
393
|
+ resolve()
|
|
|
394
|
+ })
|
|
|
395
|
+ },
|
|
|
396
|
+ handleChange(data) {
|
|
|
397
|
+ this.searchData.menutype = data[data.length - 1]
|
|
|
398
|
+ this.searchData.orderids = data
|
|
|
399
|
+ },
|
|
|
400
|
+ changeOrder(data) {
|
|
|
401
|
+ if (!data) {
|
|
|
402
|
+ return
|
|
370
|
403
|
}
|
|
|
404
|
+ this.searchData.menutypeid = data
|
|
|
405
|
+ const params = {
|
|
|
406
|
+ pid: data,
|
|
|
407
|
+ flag: 1
|
|
|
408
|
+ }
|
|
|
409
|
+ return new Promise((resolve) => {
|
|
|
410
|
+ getOrderTypeDrop(params).then((response) => {
|
|
|
411
|
+ if (response.state.toLowerCase() === 'success') {
|
|
|
412
|
+ this.subclassData = response.data
|
|
|
413
|
+ }
|
|
|
414
|
+ })
|
|
|
415
|
+ resolve()
|
|
|
416
|
+ })
|
|
371
|
417
|
}
|
|
372
|
418
|
}
|
|
|
419
|
+}
|
|
373
|
420
|
</script>
|
|
374
|
421
|
|
|
375
|
422
|
<style rel="stylesheet/scss" lang="scss" scoped>
|