miaofuhao 2 lat temu
rodzic
commit
631220f85f

+ 54 - 3
CallCenterWeb.UI/RMYY/src/views/leadConcern/cpns/reportComList.vue

18
         align="center"
18
         align="center"
19
         min-width="110"
19
         min-width="110"
20
       >
20
       >
21
-        <!-- <template slot-scope="scope">
21
+        <template slot-scope="scope">
22
           <span
22
           <span
23
             style="color: #409eff; cursor: pointer"
23
             style="color: #409eff; cursor: pointer"
24
             @click="hadndleOrderCode(scope.row)"
24
             @click="hadndleOrderCode(scope.row)"
27
           <el-tag v-if="scope.row.F_UrgeCount > 0" type="success"
27
           <el-tag v-if="scope.row.F_UrgeCount > 0" type="success"
28
             >催{{ scope.row.F_UrgeCount }}</el-tag
28
             >催{{ scope.row.F_UrgeCount }}</el-tag
29
           >
29
           >
30
-        </template> -->
30
+        </template>
31
       </el-table-column>
31
       </el-table-column>
32
       <el-table-column
32
       <el-table-column
33
         prop="F_ProposerDept"
33
         prop="F_ProposerDept"
140
   </div>
140
   </div>
141
 </template>
141
 </template>
142
 <script>
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
 import {
148
 import {
144
   ReportGetComList,
149
   ReportGetComList,
145
   ReportGetComListExpt,
150
   ReportGetComListExpt,
159
         return {};
164
         return {};
160
       },
165
       },
161
     },
166
     },
167
+    keyValue: {
168
+      type: String,
169
+      default: "",
170
+    },
162
   },
171
   },
163
   data() {
172
   data() {
164
     return {
173
     return {
187
       return new Promise((resolve) => {
196
       return new Promise((resolve) => {
188
         this.dataParams.pageindex = this.pageParams.pageindex; // 第几页
197
         this.dataParams.pageindex = this.pageParams.pageindex; // 第几页
189
         this.dataParams.pagesize = this.pageParams.pagesize; // 第几页
198
         this.dataParams.pagesize = this.pageParams.pagesize; // 第几页
199
+        if (this.keyValue) {
200
+          this.dataParams[this.keyValue] = 1;
201
+        }
202
+
190
         console.log(this.dataParams);
203
         console.log(this.dataParams);
191
         ReportGetComList(this.dataParams).then((response) => {
204
         ReportGetComList(this.dataParams).then((response) => {
192
           this.loading = false;
205
           this.loading = false;
193
           if (response.rows.length >= 0) {
206
           if (response.rows.length >= 0) {
207
+            if (this.keyValue) {
208
+              delete this.dataParams[this.keyValue];
209
+            }
194
             this.pageParams.total = response.total;
210
             this.pageParams.total = response.total;
195
             this.dataLists = response.rows;
211
             this.dataLists = response.rows;
196
           }
212
           }
202
       this.pageParams.pageindex = 1;
218
       this.pageParams.pageindex = 1;
203
       this.getList();
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
     formtDept(row, column) {
257
     formtDept(row, column) {
206
       if (
258
       if (
207
         row.F_ProposerDept &&
259
         row.F_ProposerDept &&
231
       }
283
       }
232
     },
284
     },
233
     btn_export() {
285
     btn_export() {
234
-      console.log(this.ruleForm);
235
       this.dataParams.isdc = 1;
286
       this.dataParams.isdc = 1;
236
       exportExcel(this.dataParams, ReportGetComListExpt);
287
       exportExcel(this.dataParams, ReportGetComListExpt);
237
     },
288
     },