|
|
@@ -18,7 +18,7 @@
|
|
18
|
18
|
align="center"
|
|
19
|
19
|
min-width="110"
|
|
20
|
20
|
>
|
|
21
|
|
- <!-- <template slot-scope="scope">
|
|
|
21
|
+ <template slot-scope="scope">
|
|
22
|
22
|
<span
|
|
23
|
23
|
style="color: #409eff; cursor: pointer"
|
|
24
|
24
|
@click="hadndleOrderCode(scope.row)"
|
|
|
@@ -27,7 +27,7 @@
|
|
27
|
27
|
<el-tag v-if="scope.row.F_UrgeCount > 0" type="success"
|
|
28
|
28
|
>催{{ scope.row.F_UrgeCount }}</el-tag
|
|
29
|
29
|
>
|
|
30
|
|
- </template> -->
|
|
|
30
|
+ </template>
|
|
31
|
31
|
</el-table-column>
|
|
32
|
32
|
<el-table-column
|
|
33
|
33
|
prop="F_ProposerDept"
|
|
|
@@ -140,6 +140,11 @@
|
|
140
|
140
|
</div>
|
|
141
|
141
|
</template>
|
|
142
|
142
|
<script>
|
|
|
143
|
+import askDetail from "@/views/orderManage/components/askdetail.vue";
|
|
|
144
|
+import dispatchDetail from "@/views/comDispatch/components/dispatchdetail.vue";
|
|
|
145
|
+import detail from "@/views/orderManage/components/orderDetail.vue";
|
|
|
146
|
+import carDetail from "@/views/orderManage/components/cardetail.vue";
|
|
|
147
|
+
|
|
143
|
148
|
import {
|
|
144
|
149
|
ReportGetComList,
|
|
145
|
150
|
ReportGetComListExpt,
|
|
|
@@ -159,6 +164,10 @@ export default {
|
|
159
|
164
|
return {};
|
|
160
|
165
|
},
|
|
161
|
166
|
},
|
|
|
167
|
+ keyValue: {
|
|
|
168
|
+ type: String,
|
|
|
169
|
+ default: "",
|
|
|
170
|
+ },
|
|
162
|
171
|
},
|
|
163
|
172
|
data() {
|
|
164
|
173
|
return {
|
|
|
@@ -187,10 +196,17 @@ export default {
|
|
187
|
196
|
return new Promise((resolve) => {
|
|
188
|
197
|
this.dataParams.pageindex = this.pageParams.pageindex; // 第几页
|
|
189
|
198
|
this.dataParams.pagesize = this.pageParams.pagesize; // 第几页
|
|
|
199
|
+ if (this.keyValue) {
|
|
|
200
|
+ this.dataParams[this.keyValue] = 1;
|
|
|
201
|
+ }
|
|
|
202
|
+
|
|
190
|
203
|
console.log(this.dataParams);
|
|
191
|
204
|
ReportGetComList(this.dataParams).then((response) => {
|
|
192
|
205
|
this.loading = false;
|
|
193
|
206
|
if (response.rows.length >= 0) {
|
|
|
207
|
+ if (this.keyValue) {
|
|
|
208
|
+ delete this.dataParams[this.keyValue];
|
|
|
209
|
+ }
|
|
194
|
210
|
this.pageParams.total = response.total;
|
|
195
|
211
|
this.dataLists = response.rows;
|
|
196
|
212
|
}
|
|
|
@@ -202,6 +218,42 @@ export default {
|
|
202
|
218
|
this.pageParams.pageindex = 1;
|
|
203
|
219
|
this.getList();
|
|
204
|
220
|
},
|
|
|
221
|
+ hadndleOrderCode(row) {
|
|
|
222
|
+ console.log(row.F_Type);
|
|
|
223
|
+ let detailContent;
|
|
|
224
|
+ switch (Number(row.F_Type)) {
|
|
|
225
|
+ case 1000: //咨询
|
|
|
226
|
+ detailContent = askDetail;
|
|
|
227
|
+ break;
|
|
|
228
|
+ case 2000: //调度
|
|
|
229
|
+ detailContent = dispatchDetail;
|
|
|
230
|
+ break;
|
|
|
231
|
+ case 3000: //报修
|
|
|
232
|
+ detailContent = detail;
|
|
|
233
|
+ break;
|
|
|
234
|
+ case 4000: //车辆
|
|
|
235
|
+ detailContent = carDetail;
|
|
|
236
|
+ break;
|
|
|
237
|
+ default:
|
|
|
238
|
+ detailContent = "";
|
|
|
239
|
+ break;
|
|
|
240
|
+ }
|
|
|
241
|
+ console.log(detailContent);
|
|
|
242
|
+ if (detailContent) {
|
|
|
243
|
+ console.log(detailContent);
|
|
|
244
|
+ this.$layer.iframe({
|
|
|
245
|
+ content: {
|
|
|
246
|
+ content: detailContent, // 传递的组件对象
|
|
|
247
|
+ parent: this, // 当前的vue对象
|
|
|
248
|
+ data: {
|
|
|
249
|
+ rowid: row.F_WoCode,
|
|
|
250
|
+ }, // props
|
|
|
251
|
+ },
|
|
|
252
|
+ area: ["80%", "90%"],
|
|
|
253
|
+ title: "工单详情",
|
|
|
254
|
+ });
|
|
|
255
|
+ }
|
|
|
256
|
+ },
|
|
205
|
257
|
formtDept(row, column) {
|
|
206
|
258
|
if (
|
|
207
|
259
|
row.F_ProposerDept &&
|
|
|
@@ -231,7 +283,6 @@ export default {
|
|
231
|
283
|
}
|
|
232
|
284
|
},
|
|
233
|
285
|
btn_export() {
|
|
234
|
|
- console.log(this.ruleForm);
|
|
235
|
286
|
this.dataParams.isdc = 1;
|
|
236
|
287
|
exportExcel(this.dataParams, ReportGetComListExpt);
|
|
237
|
288
|
},
|