miaofuhao 2 anni fa
parent
commit
1c5d088d80

File diff suppressed because it is too large
+ 579 - 478
CallCenterWeb.UI/RMYY/src/components/workOrder/vehicleDispatch/addOrEdit.vue


File diff suppressed because it is too large
+ 481 - 430
CallCenterWeb.UI/RMYY/src/views/login/index.vue


+ 321 - 231
CallCenterWeb.UI/RMYY/src/views/vehicleDispatch/vehicleScheduling/vehicleSchedulingList/components/addOrEdit.vue

@@ -1,6 +1,11 @@
1 1
 <template>
2 2
   <div v-loading="loading">
3
-    <el-form ref="ruleForm" :model="ruleForm" :rules="rules" label-width="150px">
3
+    <el-form
4
+      ref="ruleForm"
5
+      :model="ruleForm"
6
+      :rules="rules"
7
+      label-width="150px"
8
+    >
4 9
       <el-col :span="24">
5 10
         <!-- <el-row v-if="wocode!=''">
6 11
           <el-col :span="24">
@@ -19,51 +24,92 @@
19 24
           </el-col>
20 25
           <el-col :span="12">
21 26
             <el-form-item label="申请人" prop="needman">
22
-              <el-select v-model="ruleForm.needman" placeholder="请选择申请人" style="width:100%;" @change="changeRepairman">
27
+              <el-select
28
+                v-model="ruleForm.needman"
29
+                placeholder="请选择申请人"
30
+                style="width: 100%"
31
+                @change="changeRepairman"
32
+              >
23 33
                 <el-option
24 34
                   v-for="item in repairman"
25 35
                   :key="item.usercode"
26 36
                   :label="item.username"
27
-                  :value="item.usercode" />
37
+                  :value="item.usercode"
38
+                />
28 39
               </el-select>
29 40
             </el-form-item>
30 41
           </el-col>
31 42
         </el-row>
32 43
         <el-row>
33 44
           <el-col :span="12">
34
-            <el-form-item label="联系电话" prop="phon">
35
-              <el-input v-model="ruleForm.phon" placeholder="请输入联系电话" />
45
+            <el-form-item label="申请人电话" prop="phon">
46
+              <el-input
47
+                v-model="ruleForm.phon"
48
+                placeholder="请输入申请人电话"
49
+              />
36 50
             </el-form-item>
37 51
           </el-col>
38 52
           <el-col :span="12">
39 53
             <el-form-item label="车辆要求" prop="cartype">
40
-              <el-select v-model="ruleForm.cartype" style="width: 100%;">
54
+              <el-select v-model="ruleForm.cartype" style="width: 100%">
41 55
                 <el-option
42
-                  v-for="(item,index) in carArr"
56
+                  v-for="(item, index) in carArr"
43 57
                   :key="index"
44 58
                   :label="item.F_Name"
45
-                  :value="item.F_DictionaryValueId"/>
59
+                  :value="item.F_DictionaryValueId"
60
+                />
46 61
               </el-select>
47 62
             </el-form-item>
48 63
           </el-col>
49 64
         </el-row>
50 65
         <el-row>
51 66
           <el-col :span="12">
67
+            <el-form-item label="联系人" prop="contact">
68
+              <el-input v-model="ruleForm.contact" placeholder="请输入联系人" />
69
+            </el-form-item>
70
+          </el-col>
71
+          <el-col :span="12">
72
+            <el-form-item label="联系人电话" prop="contactnumber">
73
+              <el-input
74
+                v-model="ruleForm.contactnumber"
75
+                placeholder="请输入联系人电话"
76
+              />
77
+            </el-form-item>
78
+          </el-col>
79
+        </el-row>
80
+        <el-row>
81
+          <el-col :span="12">
52 82
             <el-form-item label="科室位置" prop="startplace">
53
-              <el-input v-model="ruleForm.startplace" placeholder="请输入科室位置" />
83
+              <el-input
84
+                v-model="ruleForm.startplace"
85
+                placeholder="请输入科室位置"
86
+              />
54 87
             </el-form-item>
55 88
           </el-col>
56 89
           <el-col :span="12">
57 90
             <el-form-item label="目的地" prop="endplace">
58
-              <el-input v-model="ruleForm.endplace" placeholder="请输入目的地" />
91
+              <el-input
92
+                v-model="ruleForm.endplace"
93
+                placeholder="请输入目的地"
94
+              />
59 95
             </el-form-item>
60 96
           </el-col>
61 97
         </el-row>
62 98
         <el-row>
63 99
           <el-col :span="12">
64 100
             <el-form-item label="出车地点" prop="dispatch">
65
-              <el-select v-model="ruleForm.dispatch" style="width: 100%" clearable placeholder="请选择出车地点">
66
-                <el-option v-for="(item, index) in yqarr" :key="index" :label="item.T_Woname" :value="item.T_Woname">
101
+              <el-select
102
+                v-model="ruleForm.dispatch"
103
+                style="width: 100%"
104
+                clearable
105
+                placeholder="请选择出车地点"
106
+              >
107
+                <el-option
108
+                  v-for="(item, index) in yqarr"
109
+                  :key="index"
110
+                  :label="item.T_Woname"
111
+                  :value="item.T_Woname"
112
+                >
67 113
                 </el-option>
68 114
               </el-select>
69 115
             </el-form-item>
@@ -72,15 +118,16 @@
72 118
             <el-form-item label="发车时间" prop="usertime">
73 119
               <el-date-picker
74 120
                 v-model="ruleForm.usertime"
75
-                style="width: 100%;"
121
+                style="width: 100%"
76 122
                 value-format="yyyy-MM-dd HH:mm:ss"
77 123
                 format="yyyy-MM-dd HH:mm:ss"
78 124
                 type="datetime"
79
-                placeholder="选择发车时间"/>
125
+                placeholder="选择发车时间"
126
+              />
80 127
             </el-form-item>
81 128
           </el-col>
82 129
         </el-row>
83
-        <el-row v-if="type&&type==9017">
130
+        <el-row v-if="type && type == 9017">
84 131
           <el-col :span="24">
85 132
             <el-form-item label="是否出生" prop="birth">
86 133
               <el-radio v-model="ruleForm.birth" :label="0">否</el-radio>
@@ -91,7 +138,11 @@
91 138
         <el-row>
92 139
           <el-col :span="24">
93 140
             <el-form-item label="工单内容" prop="content">
94
-              <el-input v-model="ruleForm.content" type="textarea" placeholder="请输入工单内容" />
141
+              <el-input
142
+                v-model="ruleForm.content"
143
+                type="textarea"
144
+                placeholder="请输入工单内容"
145
+              />
95 146
             </el-form-item>
96 147
           </el-col>
97 148
         </el-row>
@@ -109,190 +160,220 @@ import {
109 160
   // getList,
110 161
   getModelDetail,
111 162
   getAddWorkOrder,
112
-  getUpdateWorkOrder
113
-} from '@/api/vehicleDispatch/vehicleScheduling.js'
114
-import {
115
-    GetYuanqu
116
-  } from "@/api/telCall/report";
117
-import {
118
-  getOrderTypeList
119
-} from '@/api/commonAPI.js'
120
-  // import selectDeptTree from '@/components/context/commonSelect/selectDeptTree.vue'
121
-import {
122
-  getCartype
123
-} from '@/api/vehicleDispatch/vehicleManagement'
124
-import {
125
-  GetPerson
126
-} from '@/api/commonAPI'
163
+  getUpdateWorkOrder,
164
+} from "@/api/vehicleDispatch/vehicleScheduling.js";
165
+import { GetYuanqu } from "@/api/telCall/report";
166
+import { getOrderTypeList } from "@/api/commonAPI.js";
167
+// import selectDeptTree from '@/components/context/commonSelect/selectDeptTree.vue'
168
+import { getCartype } from "@/api/vehicleDispatch/vehicleManagement";
169
+import { GetPerson } from "@/api/commonAPI";
127 170
 export default {
128
-  name: 'AddOrEdit',
171
+  name: "AddOrEdit",
129 172
   props: {
130 173
     orderTypeData: {
131 174
       type: Object,
132 175
       default() {
133
-        return {}
134
-      }
176
+        return {};
177
+      },
135 178
     },
136 179
     callid: {
137 180
       type: String,
138
-      default: ''
181
+      default: "",
139 182
     },
140 183
     rowid: {
141 184
       type: String,
142
-      default: ''
185
+      default: "",
143 186
     },
144 187
     wid: {
145 188
       type: String,
146
-      default: ''
189
+      default: "",
147 190
     },
148 191
     fid: {
149 192
       type: String,
150
-      default: ''
193
+      default: "",
151 194
     },
152 195
     wocode: {
153 196
       type: String,
154
-      default: ''
197
+      default: "",
155 198
     },
156 199
     layerid: {
157 200
       type: String,
158
-      default: ''
201
+      default: "",
159 202
     },
160 203
     iswomanage: {
161 204
       type: String,
162
-      default: ''
163
-    }
205
+      default: "",
206
+    },
164 207
   },
165 208
   data() {
166 209
     return {
167
-      cid: '',
168
-      type:'',
210
+      cid: "",
211
+      type: "",
169 212
       yqarr: [],
170 213
       typeList: [],
171 214
       carArr: [],
172 215
       repairman: [], // 申请人数据
173
-      sourceList: [{
174
-        value: '电话',
175
-        label: '电话'
176
-      }, {
177
-        value: '电脑',
178
-        label: '电脑'
179
-      }, {
180
-        value: '微信',
181
-        label: '微信'
182
-      }],
216
+      sourceList: [
217
+        {
218
+          value: "电话",
219
+          label: "电话",
220
+        },
221
+        {
222
+          value: "电脑",
223
+          label: "电脑",
224
+        },
225
+        {
226
+          value: "微信",
227
+          label: "微信",
228
+        },
229
+      ],
183 230
       hospitalsParam: {
184 231
         id: 0,
185
-        name: ''
232
+        name: "",
186 233
       },
187 234
       departmentsParam: {
188 235
         id: 0,
189
-        name: ''
236
+        name: "",
190 237
       },
191 238
       repairmanParam: {
192 239
         id: 0,
193
-        name: ''
240
+        name: "",
194 241
       },
195 242
       rules: {
196
-        type: [{
197
-          required: true,
198
-          message: '请选择',
199
-          trigger: 'change'
200
-        }],
201
-        deptid: [{
202
-          required: true,
203
-          message: '请选择',
204
-          trigger: 'change'
205
-        }],
206
-        needman: [{
207
-          required: true,
208
-          message: '请选择',
209
-          trigger: 'change'
210
-        }],
211
-        cartype: [{
212
-          required: true,
213
-          message: '请选择',
214
-          trigger: 'change'
215
-        }],
243
+        type: [
244
+          {
245
+            required: true,
246
+            message: "请选择",
247
+            trigger: "change",
248
+          },
249
+        ],
250
+        deptid: [
251
+          {
252
+            required: true,
253
+            message: "请选择",
254
+            trigger: "change",
255
+          },
256
+        ],
257
+        needman: [
258
+          {
259
+            required: true,
260
+            message: "请选择",
261
+            trigger: "change",
262
+          },
263
+        ],
264
+        cartype: [
265
+          {
266
+            required: true,
267
+            message: "请选择",
268
+            trigger: "change",
269
+          },
270
+        ],
216 271
         // usertime: [{
217 272
         //   type: 'string',
218 273
         //   required: true,
219 274
         //   message: '请选择',
220 275
         //   trigger: 'change'
221 276
         // }],
222
-        phon: [{
223
-          required: true,
224
-          message: '请输入联系电话',
225
-          trigger: 'blur'
226
-        },
227
-        {
228
-          pattern: /^((0\d{2,3}-\d{5,8})|(1[345789]\d{9}))$/,
229
-          message: '请输入正确的电话号码或者固话号码',
230
-          trigger: 'blur'
231
-        }],
232
-        startplace: [{
233
-          required: true,
234
-          message: '请输入',
235
-          trigger: 'blur'
236
-        }],
237
-        endplace: [{
238
-          required: true,
239
-          message: '请输入',
240
-          trigger: 'blur'
241
-        }],
242
-        content: [{
243
-          required: true,
244
-          message: '请输入',
245
-          trigger: 'blur'
246
-        }]
277
+        phon: [
278
+          {
279
+            required: true,
280
+            message: "请输入电话",
281
+            trigger: "blur",
282
+          },
283
+          {
284
+            pattern: /^((0\d{2,3}-\d{5,8})|(1[345789]\d{9}))$/,
285
+            message: "请输入正确的电话号码或者固话号码",
286
+            trigger: "blur",
287
+          },
288
+        ],
289
+        contact: [
290
+          {
291
+            required: true,
292
+            message: "请输入联系人",
293
+            trigger: "blur",
294
+          },
295
+        ],
296
+        contactnumber: [
297
+          {
298
+            required: true,
299
+            trigger: "blur",
300
+            pattern: /^((0\d{2,3}-\d{5,8})|(1[345789]\d{9}))$/,
301
+            message: "请输入正确的电话号码",
302
+          },
303
+        ],
304
+        startplace: [
305
+          {
306
+            required: true,
307
+            message: "请输入",
308
+            trigger: "blur",
309
+          },
310
+        ],
311
+        endplace: [
312
+          {
313
+            required: true,
314
+            message: "请输入",
315
+            trigger: "blur",
316
+          },
317
+        ],
318
+        // content: [
319
+        //   {
320
+        //     required: true,
321
+        //     message: "请输入",
322
+        //     trigger: "blur",
323
+        //   },
324
+        // ],
247 325
       },
248 326
       ruleForm: {
249
-        F_ID: '',
250
-        startplace: '',
251
-        endplace: '',
252
-        source: '',
253
-        hosid: '', // 院区id
254
-        hosname: '', // 院区id
255
-        deptid: '', // 申请科室id
256
-        deptname: '', // 申请科室名称
257
-        usercode: '', // 申请人编码
258
-        username: '', //	申请人
259
-        needman: '',
260
-        birth: '',
261
-        phon: '',
262
-        type: '',
263
-        cartype: '',
264
-        F_CarMessage: '',
265
-        remark: '',
266
-        content: '',
267
-        dispatch:'',
327
+        F_ID: "",
328
+        startplace: "",
329
+        endplace: "",
330
+        source: "",
331
+        hosid: "", // 院区id
332
+        hosname: "", // 院区id
333
+        deptid: "", // 申请科室id
334
+        deptname: "", // 申请科室名称
335
+        usercode: "", // 申请人编码
336
+        username: "", //	申请人
337
+        needman: "",
338
+        birth: "",
339
+        phon: "",
340
+        contact: "",
341
+        contactnumber: "",
342
+        usertime: "",
343
+        type: "",
344
+        cartype: "",
345
+        F_CarMessage: "",
346
+        remark: "",
347
+        content: "",
348
+        dispatch: "",
268 349
       },
269 350
       deptid: [],
270
-      loading: false
271
-    }
351
+      loading: false,
352
+    };
272 353
   },
273 354
   created() {
274
-    this.cid = this.callid
355
+    this.cid = this.callid;
275 356
     if (!this.cid) {
276
-      this.cid = window.localStorage.getItem('callidSave')
357
+      this.cid = window.localStorage.getItem("callidSave");
277 358
     }
278
-    this.getTypeOrder()
279
-    this.getCarlist()
280
-    this.getHos()
359
+    this.getTypeOrder();
360
+    this.getCarlist();
361
+    this.getHos();
281 362
     if (this.wocode) {
282
-      this.wocode = this.wocode
283
-      this.getDetail('0')
363
+      this.wocode = this.wocode;
364
+      this.getDetail("0");
284 365
     }
285 366
     if (this.wid) {
286
-      this.wocode = this.wid
287
-      this.getDetail('0')
367
+      this.wocode = this.wid;
368
+      this.getDetail("0");
288 369
     }
289
-    if (this.iswomanage === '1') {
290
-      const dept = this.$store.getters.teamId
291
-      this.deptid = this.$store.getters.deptmap[parseInt(dept)].ids
292
-      this.ruleForm.deptid = dept
293
-      this.getRepairman(dept)
294
-      this.ruleForm.needman = this.$store.getters.usercode
295
-      this.ruleForm.phon = this.$store.getters.mobile
370
+    if (this.iswomanage === "1") {
371
+      const dept = this.$store.getters.teamId;
372
+      this.deptid = this.$store.getters.deptmap[parseInt(dept)].ids;
373
+      this.ruleForm.deptid = dept;
374
+      this.getRepairman(dept);
375
+      this.ruleForm.needman = this.$store.getters.usercode;
376
+      this.ruleForm.phon = this.$store.getters.mobile;
296 377
     }
297 378
   },
298 379
   methods: {
@@ -306,47 +387,47 @@ export default {
306 387
     getRepairman(id) {
307 388
       return new Promise((resolve) => {
308 389
         const params = {
309
-          deptid: id // 字典管理的工单标识
310
-        }
390
+          deptid: id, // 字典管理的工单标识
391
+        };
311 392
         GetPerson(params).then((res) => {
312
-          this.repairman = res.rows
313
-        })
314
-        resolve()
315
-      })
393
+          this.repairman = res.rows;
394
+        });
395
+        resolve();
396
+      });
316 397
     },
317 398
     // 申请人
318 399
     changeRepairman(data) {
319
-      this.ruleForm.needman = data
400
+      this.ruleForm.needman = data;
320 401
       const user = this.repairman.find((o) => {
321
-        return o.usercode === data.toString()
322
-      })
402
+        return o.usercode === data.toString();
403
+      });
323 404
       if (user) {
324
-        this.ruleForm.phon = user.usertelphone
405
+        this.ruleForm.phon = user.usertelphone;
325 406
       }
326 407
     },
327 408
     getCarlist() {
328 409
       const params = {
329
-        Flag: 'CLLX',
330
-        Name: ''
331
-      }
332
-      getCartype(params).then(res => {
333
-        this.carArr = res.rows
334
-      })
410
+        Flag: "CLLX",
411
+        Name: "",
412
+      };
413
+      getCartype(params).then((res) => {
414
+        this.carArr = res.rows;
415
+      });
335 416
     },
336 417
     getTypeOrder() {
337 418
       const params = {
338 419
         pid: 2,
339
-        typeid: 4000
340
-      }
341
-      getOrderTypeList(params.pid, params.typeid).then(res => {
342
-        this.typeList = res.rows
343
-      })
420
+        typeid: 4000,
421
+      };
422
+      getOrderTypeList(params.pid, params.typeid).then((res) => {
423
+        this.typeList = res.rows;
424
+      });
344 425
     },
345 426
     getDeptid(data) {
346
-      this.ruleForm.hosid = data[0]
347
-      this.ruleForm.deptid = data[data.length - 1]
348
-      this.deptid = data
349
-      this.getRepairman(data[data.length - 1])
427
+      this.ruleForm.hosid = data[0];
428
+      this.ruleForm.deptid = data[data.length - 1];
429
+      this.deptid = data;
430
+      this.getRepairman(data[data.length - 1]);
350 431
     },
351 432
     submitForm() {
352 433
       this.$refs.ruleForm.validate((valid) => {
@@ -356,38 +437,42 @@ export default {
356 437
             const datas = {
357 438
               callid: this.cid,
358 439
               LeaveRecordId: this.fid,
359
-              type: this.orderTypeData.type2Arr[this.orderTypeData.type2Arr.length - 1],
440
+              type: this.orderTypeData.type2Arr[
441
+                this.orderTypeData.type2Arr.length - 1
442
+              ],
360 443
               hosid: this.ruleForm.hosid, //	院区id
361 444
               detpid: this.ruleForm.deptid, //	申请科室id
362 445
               startplace: this.ruleForm.startplace,
363 446
               endplace: this.ruleForm.endplace,
364 447
               needman: this.ruleForm.needman, //	申请人
365 448
               phon: this.ruleForm.phon,
449
+              contact: this.ruleForm.contact,
450
+              contactnumber: this.ruleForm.contactnumber,
366 451
               cartype: this.ruleForm.cartype,
367 452
               usertime: this.ruleForm.usertime,
368 453
               birth: this.ruleForm.birth,
369
-              dispatch:this.ruleForm.dispatch,
370
-              content: this.ruleForm.content //	备注
371
-            }
454
+              dispatch: this.ruleForm.dispatch,
455
+              content: this.ruleForm.content, //	备注
456
+            };
372 457
             getAddWorkOrder(datas)
373 458
               .then((response) => {
374
-                this.loading = false
375
-                if (response.state.toLowerCase() === 'success') {
376
-                  this.$parent.$layer.closeAll()
459
+                this.loading = false;
460
+                if (response.state.toLowerCase() === "success") {
461
+                  this.$parent.$layer.closeAll();
377 462
                   // this.$parent.$layer.close(this.layerid)
378 463
                   // this.$parent.$parent.getList() // 重新加载父级数据
379 464
                   this.$message({
380
-                    message: '恭喜你,添加工单成功!',
381
-                    type: 'success',
382
-                    duration: 1000
383
-                  })
384
-                  this.$refs.ruleForm.resetFields()
385
-                  this.deptid = []
465
+                    message: "恭喜你,添加工单成功!",
466
+                    type: "success",
467
+                    duration: 1000,
468
+                  });
469
+                  this.$refs.ruleForm.resetFields();
470
+                  this.deptid = [];
386 471
                 }
387 472
               })
388 473
               .catch(() => {
389
-                this.loading = false
390
-              })
474
+                this.loading = false;
475
+              });
391 476
           } else {
392 477
             // 编辑
393 478
             const datas = {
@@ -399,35 +484,37 @@ export default {
399 484
               endplace: this.ruleForm.endplace,
400 485
               needman: this.ruleForm.needman, //	申请人
401 486
               phon: this.ruleForm.phon,
487
+              contact: this.ruleForm.contact,
488
+              contactnumber: this.ruleForm.contactnumber,
402 489
               cartype: this.ruleForm.cartype,
403 490
               usertime: this.ruleForm.usertime,
404 491
               birth: this.ruleForm.birth,
405
-              dispatch:this.ruleForm.dispatch,
406
-              content: this.ruleForm.content //	备注
407
-            }
492
+              dispatch: this.ruleForm.dispatch,
493
+              content: this.ruleForm.content, //	备注
494
+            };
408 495
             getUpdateWorkOrder(datas)
409 496
               .then((response) => {
410
-                if (response.state.toLowerCase() === 'success') {
411
-                  this.$parent.$layer.closeAll()
497
+                if (response.state.toLowerCase() === "success") {
498
+                  this.$parent.$layer.closeAll();
412 499
                   // this.$parent.$layer.close(this.layerid)
413
-                  this.$parent.getList() // 重新加载父级数据
500
+                  this.$parent.getList(); // 重新加载父级数据
414 501
                   this.$message({
415
-                    message: '恭喜你,编辑工单成功!',
416
-                    type: 'success',
417
-                    duration: 1000
418
-                  })
502
+                    message: "恭喜你,编辑工单成功!",
503
+                    type: "success",
504
+                    duration: 1000,
505
+                  });
419 506
                 }
420 507
               })
421
-              .catch(() => {})
508
+              .catch(() => {});
422 509
           }
423 510
         } else {
424
-          this.$message.error('请输入有效的必填项信息!')
425
-          return false
511
+          this.$message.error("请输入有效的必填项信息!");
512
+          return false;
426 513
         }
427
-      })
514
+      });
428 515
     },
429 516
     resetForm() {
430
-      this.$refs.ruleForm.resetFields()
517
+      this.$refs.ruleForm.resetFields();
431 518
     },
432 519
 
433 520
     // 获取详情
@@ -435,43 +522,46 @@ export default {
435 522
       const params = {
436 523
         // orderid: this.rowid,
437 524
         WorkOrderCode: this.wocode,
438
-        type: num
439
-      }
525
+        type: num,
526
+      };
440 527
       getModelDetail(params).then((response) => {
441
-        if (response.state.toLowerCase() === 'success') {
442
-          const res = response.model
443
-          this.getRepairman(res.F_ProposerDeptId)
444
-          this.ruleForm.F_ID = res.F_ID
445
-          this.ruleForm.type = res.F_Type
446
-          this.type = res.F_Type
447
-          this.hospitalsParam.id = res.F_HosId
448
-          this.hospitalsParam.name = res.HosName
449
-          this.departmentsParam.id = res.F_ProposerDeptId
450
-          this.departmentsParam.name = res.F_ProposerDeptName
451
-          this.repairmanParam.id = res.F_ProposerCode
452
-          this.repairmanParam.name = res.F_ProposerName
453
-          this.ruleForm.username = res.F_ProposerName
454
-          this.ruleForm.hosid = res.F_HosId
455
-          this.ruleForm.hosname = res.HosName
456
-          this.ruleForm.deptid = res.F_ProposerDeptId
457
-          this.ruleForm.deptname = res.F_ProposerDeptName
458
-          this.ruleForm.usercode = res.F_ProposerCode
459
-          this.ruleForm.username = res.F_ProposerName
460
-          this.ruleForm.phon = res.F_Phon
461
-          this.ruleForm.cartype = res.F_CarType
462
-          this.ruleForm.startplace = res.F_DepartPlace
463
-          this.ruleForm.endplace = res.F_Destination
464
-          this.ruleForm.F_CarMessage = res.F_CarMessage
465
-          this.ruleForm.remark = res.F_Remark
466
-          this.ruleForm.usertime = res.F_UseTime
467
-          this.ruleForm.birth = res.F_Birth
468
-          this.ruleForm.dispatch = res.F_Dispatch
469
-          this.ruleForm.content = res.F_Content
470
-          this.deptid = this.$store.getters.deptmap[parseInt(res.F_ProposerDeptId)].ids
471
-          this.ruleForm.needman = res.F_ProposerCode
528
+        if (response.state.toLowerCase() === "success") {
529
+          const res = response.model;
530
+          this.getRepairman(res.F_ProposerDeptId);
531
+          this.ruleForm.F_ID = res.F_ID;
532
+          this.ruleForm.type = res.F_Type;
533
+          this.type = res.F_Type;
534
+          this.hospitalsParam.id = res.F_HosId;
535
+          this.hospitalsParam.name = res.HosName;
536
+          this.departmentsParam.id = res.F_ProposerDeptId;
537
+          this.departmentsParam.name = res.F_ProposerDeptName;
538
+          this.repairmanParam.id = res.F_ProposerCode;
539
+          this.repairmanParam.name = res.F_ProposerName;
540
+          this.ruleForm.username = res.F_ProposerName;
541
+          this.ruleForm.hosid = res.F_HosId;
542
+          this.ruleForm.hosname = res.HosName;
543
+          this.ruleForm.deptid = res.F_ProposerDeptId;
544
+          this.ruleForm.deptname = res.F_ProposerDeptName;
545
+          this.ruleForm.usercode = res.F_ProposerCode;
546
+          this.ruleForm.username = res.F_ProposerName;
547
+          this.ruleForm.phon = res.F_Phon;
548
+          this.ruleForm.contact = res.F_Contact;
549
+          this.ruleForm.contactnumber = res.F_ContactNumber;
550
+          this.ruleForm.cartype = res.F_CarType;
551
+          this.ruleForm.startplace = res.F_DepartPlace;
552
+          this.ruleForm.endplace = res.F_Destination;
553
+          this.ruleForm.F_CarMessage = res.F_CarMessage;
554
+          this.ruleForm.remark = res.F_Remark;
555
+          this.ruleForm.usertime = res.F_UseTime;
556
+          this.ruleForm.birth = res.F_Birth;
557
+          this.ruleForm.dispatch = res.F_Dispatch;
558
+          this.ruleForm.content = res.F_Content;
559
+          this.deptid =
560
+            this.$store.getters.deptmap[parseInt(res.F_ProposerDeptId)].ids;
561
+          this.ruleForm.needman = res.F_ProposerCode;
472 562
         }
473
-      })
474
-    }
563
+      });
564
+    },
475 565
     // 科室下拉改变事件
476 566
     // getDepartments(data) {
477 567
     //   this.ruleForm.deptid = data.value
@@ -487,8 +577,8 @@ export default {
487 577
     //   this.ruleForm.usercode = data.value
488 578
     //   this.ruleForm.username = data.name
489 579
     // },
490
-  }
491
-}
580
+  },
581
+};
492 582
 </script>
493 583
 
494 584
 <style rel="stylesheet/scss" lang="scss" scoped>

+ 9 - 3
CallCenterWeb.UI/RMYY/src/views/vehicleDispatch/vehicleScheduling/vehicleSchedulingList/components/detail.vue

@@ -34,7 +34,7 @@
34 34
                 <td>{{ orderDetailData.F_ProposerName }}</td>
35 35
               </tr>
36 36
               <tr>
37
-                <th>联系电话:</th>
37
+                <th>申请人电话:</th>
38 38
                 <td>{{ orderDetailData.F_Phon }}</td>
39 39
                 <th>车辆要求:</th>
40 40
                 <td>{{ orderDetailData.F_CarName }}</td>
@@ -42,8 +42,12 @@
42 42
                 <td>{{ orderDetailData.F_DepartPlace }}</td>
43 43
               </tr>
44 44
               <tr>
45
+                <th>联系人:</th>
46
+                <td>{{ orderDetailData.F_Contact || "-" }}</td>
47
+                <th>联系人电话:</th>
48
+                <td>{{ orderDetailData.F_ContactNumber || "-" }}</td>
45 49
                 <th>出车地点:</th>
46
-                <td colspan="5">{{ orderDetailData.F_Dispatch || '-'}}</td>
50
+                <td>{{ orderDetailData.F_Dispatch || "-" }}</td>
47 51
               </tr>
48 52
               <tr>
49 53
                 <th>目的地:</th>
@@ -55,7 +59,9 @@
55 59
               </tr>
56 60
               <tr>
57 61
                 <th>紧急情况:</th>
58
-                <td colspan="5">{{ orderDetailData.F_EmergencyTypes || '-'}}</td>
62
+                <td colspan="5">
63
+                  {{ orderDetailData.F_EmergencyTypes || "-" }}
64
+                </td>
59 65
               </tr>
60 66
               <tr>
61 67
                 <th>工单内容:</th>

+ 289 - 0
CallCenterWeb.UI/RMYY/src/views/versionUpdate/versionUpdate/cpns/addOrEdit.vue

@@ -0,0 +1,289 @@
1
+<template>
2
+  <div v-loading="loading">
3
+    <el-form
4
+      ref="ruleForm"
5
+      :rules="rules"
6
+      :model="ruleForm"
7
+      label-width="100px"
8
+    >
9
+      <el-row>
10
+        <el-col :span="16">
11
+          <el-form-item label="应用分类" prop="F_Type">
12
+            <el-select
13
+              @change="typechange"
14
+              v-model="ruleForm.F_Type"
15
+              placeholder="请选择分类"
16
+            >
17
+              <el-option
18
+                v-for="item in typeData"
19
+                :key="item.value"
20
+                :label="item.label"
21
+                :value="item.value"
22
+              >
23
+              </el-option>
24
+            </el-select>
25
+          </el-form-item>
26
+        </el-col>
27
+      </el-row>
28
+      <el-row>
29
+        <el-col :span="16">
30
+          <el-form-item label="版本名称" prop="F_VersionName">
31
+            <el-input
32
+              v-model="ruleForm.F_VersionName"
33
+              placeholder="请输入"
34
+            ></el-input>
35
+          </el-form-item>
36
+        </el-col>
37
+      </el-row>
38
+      <el-row>
39
+        <el-col :span="16">
40
+          <el-form-item label="版本号" prop="F_VersionCode">
41
+            <el-input
42
+              v-model="ruleForm.F_VersionCode"
43
+              placeholder="请输入"
44
+            ></el-input>
45
+          </el-form-item>
46
+        </el-col>
47
+      </el-row>
48
+      <el-row v-if="versionType">
49
+        <el-col :span="16">
50
+          <el-form-item
51
+            v-if="versionType"
52
+            label="上传附件"
53
+            prop="repairImageid"
54
+          >
55
+            <el-upload
56
+              :headers="headers"
57
+              :file-list="fileList"
58
+              :on-remove="handle_remove"
59
+              :on-success="handle_success"
60
+              :action="imgUrl"
61
+              :limit="1"
62
+              list-type="text"
63
+            >
64
+              <el-button size="small" type="primary">点击上传</el-button>
65
+            </el-upload>
66
+          </el-form-item>
67
+        </el-col>
68
+      </el-row>
69
+      <el-row v-if="!versionType">
70
+        <el-col :span="16">
71
+          <el-form-item label="ios链接地址" prop="F_Url">
72
+            <el-input v-model="ruleForm.F_Url" placeholder="请输入"></el-input>
73
+          </el-form-item>
74
+        </el-col>
75
+      </el-row>
76
+      <el-row>
77
+        <el-col :span="16">
78
+          <el-form-item label="排序" prop="F_Sort">
79
+            <el-input v-model="ruleForm.F_Sort" placeholder="请输入"></el-input>
80
+          </el-form-item>
81
+        </el-col>
82
+      </el-row>
83
+      <el-row>
84
+        <el-col :span="16">
85
+          <el-form-item label="备注" prop="F_Remarks">
86
+            <el-input
87
+              type="textarea"
88
+              v-model="ruleForm.F_Remarks"
89
+              placeholder="请输入备注"
90
+            />
91
+          </el-form-item>
92
+        </el-col>
93
+      </el-row>
94
+
95
+      <el-form-item>
96
+        <el-button type="primary" @click="submitForm">保存</el-button>
97
+        <el-button @click="resetForm">重置</el-button>
98
+      </el-form-item>
99
+    </el-form>
100
+  </div>
101
+</template>
102
+
103
+<script>
104
+import {
105
+  getDeatil,
106
+  addData,
107
+  editData,
108
+} from "@/api/versionUpdate/versionUpdate";
109
+
110
+export default {
111
+  name: "AddOrEdit",
112
+  props: {
113
+    rowid: {
114
+      type: String,
115
+      default: "",
116
+    },
117
+    layerid: {
118
+      type: String,
119
+      default: "",
120
+    },
121
+  },
122
+  data() {
123
+    return {
124
+      typeData: [
125
+        {
126
+          value: 0,
127
+          label: "安卓",
128
+        },
129
+        {
130
+          value: 1,
131
+          label: "ios",
132
+        },
133
+      ],
134
+      imgUrl:
135
+        this.$store.getters.serverConfig.BASE_API + "FaultRepair/UploadFile",
136
+      headers: {
137
+        Authorization: localStorage.getItem("Admin-Token"),
138
+      },
139
+      fileList: [],
140
+      versionType: true,
141
+      ruleForm: {
142
+        F_ID: "",
143
+        F_Type: 0, //	应用分类
144
+        F_VersionName: "", //	版本名称
145
+        F_VersionCode: "", //版本号
146
+        F_Files: "", //附件id
147
+        F_Url: "", //ios链接地址
148
+        F_Sort: "", //排序
149
+        F_Remarks: "", //备注
150
+      },
151
+      rules: {
152
+        F_Type: [
153
+          {
154
+            required: true,
155
+            message: "请选择分类",
156
+            trigger: "change",
157
+          },
158
+        ],
159
+        F_VersionName: [
160
+          {
161
+            required: true,
162
+            message: "请输入版本名称",
163
+            trigger: "change",
164
+          },
165
+        ],
166
+        F_VersionCode: [
167
+          {
168
+            required: true,
169
+            message: "请输入版本号",
170
+            trigger: "change",
171
+          },
172
+        ],
173
+      },
174
+      loading: false,
175
+    };
176
+  },
177
+  created() {
178
+    if (this.rowid) {
179
+      this.ruleForm.F_Id = this.rowid;
180
+      this.getDetail(this.rowid);
181
+    }
182
+  },
183
+  methods: {
184
+    typechange(value) {
185
+      console.log(value);
186
+      if (value === 0) {
187
+        this.versionType = true;
188
+      } else if (value === 1) {
189
+        this.versionType = false;
190
+      }
191
+    },
192
+    handle_remove(res) {
193
+      this.ruleForm.F_Files = "";
194
+    },
195
+    handle_success(res) {
196
+      this.ruleForm.F_Files += res.data[0].F_FileId;
197
+    },
198
+    submitForm() {
199
+      this.$refs.ruleForm.validate((valid) => {
200
+        if (valid) {
201
+          this.loading = true;
202
+          const datas = {
203
+            F_ID: this.ruleForm.F_ID, //  主键id
204
+            F_Type: this.ruleForm.F_Type, //	应用分类
205
+            F_VersionName: this.ruleForm.F_VersionName, //	版本名称
206
+            F_VersionCode: this.ruleForm.F_VersionCode, //	版本号
207
+            F_Files: this.ruleForm.F_Files, //	附件id
208
+            F_Url: this.ruleForm.F_Url, //	ios链接地址
209
+            F_Sort: this.ruleForm.F_Sort, //	排序
210
+            F_Remarks: this.ruleForm.F_Remarks, //	备注
211
+          };
212
+
213
+          // 添加
214
+          if (!this.rowid) {
215
+            addData(datas)
216
+              .then((response) => {
217
+                this.loading = false;
218
+                if (response.state.toLowerCase() === "success") {
219
+                  this.fileList = [];
220
+                  this.ruleForm.F_Files = "";
221
+                  this.$parent.$layer.close(this.layerid);
222
+                  this.$parent.getList(); // 重新加载父级数据
223
+                  this.$message.success("恭喜你,添加成功!");
224
+                }
225
+              })
226
+              .catch(() => {
227
+                this.loading = false;
228
+              });
229
+          } else {
230
+            console.log(datas);
231
+            // 编辑
232
+            editData(datas)
233
+              .then((response) => {
234
+                this.loading = false;
235
+                if (response.state.toLowerCase() === "success") {
236
+                  this.fileList = [];
237
+                  this.ruleForm.F_Files = "";
238
+                  this.$parent.$layer.close(this.layerid);
239
+                  this.$parent.getList(); // 重新加载父级数据
240
+                  this.$message.success("恭喜你,编辑成功!");
241
+                }
242
+              })
243
+              .catch(() => {
244
+                this.loading = false;
245
+              });
246
+          }
247
+        } else {
248
+          this.$message.error("请输入有效的必填项信息!");
249
+          return false;
250
+        }
251
+      });
252
+    },
253
+    resetForm() {
254
+      this.$refs.ruleForm.resetFields();
255
+    },
256
+
257
+    // 获取详情
258
+    getDetail(rid) {
259
+      getDeatil(rid).then((response) => {
260
+        if (response.state.toLowerCase() === "success") {
261
+          const res = response.rows[0];
262
+          this.ruleForm.F_ID = res.F_ID; //主键id
263
+          this.ruleForm.F_Type = res.F_Type; //应用分类
264
+          this.versionType = !res.F_Type;
265
+          this.ruleForm.F_VersionName = res.F_VersionName; //版本名称
266
+          this.ruleForm.F_VersionCode = res.F_VersionCode; //版本号
267
+          this.ruleForm.F_Files = res.F_Files; //附件id
268
+          this.ruleForm.F_Url = res.F_Url; //ios链接地址
269
+          this.ruleForm.F_Sort = res.F_Sort; //排序
270
+          this.ruleForm.F_Remarks = res.F_Remarks; //备注
271
+          if (res.FileUrl) {
272
+            for (var i = 0; i < res.FileUrl.length; i++) {
273
+              this.ruleForm.repairImageid += res.FileUrl[i].F_FileId + ",";
274
+              this.fileList.push({
275
+                F_FileId: res.FileUrl[i].F_FileId,
276
+                name: res.FileUrl[i].F_FileName,
277
+                url: res.FileUrl[i].F_FileUrl,
278
+              });
279
+            }
280
+          }
281
+        }
282
+      });
283
+    },
284
+  },
285
+};
286
+</script>
287
+
288
+<style rel="stylesheet/scss" lang="scss" scoped>
289
+</style>

+ 219 - 0
CallCenterWeb.UI/RMYY/src/views/versionUpdate/versionUpdate/index.vue

@@ -0,0 +1,219 @@
1
+<template>
2
+  <div class="app-container">
3
+    <div class="filter-container">
4
+      <el-input
5
+        v-model="keyword"
6
+        placeholder="请输入关键词"
7
+        class="filter-item"
8
+      />
9
+      <el-button
10
+        type="primary"
11
+        class="filter-item"
12
+        icon="el-icon-search"
13
+        @click="btn_search"
14
+        >搜索</el-button
15
+      >
16
+      <el-button
17
+        type="primary"
18
+        class="filter-item"
19
+        icon="el-icon-plus"
20
+        @click="btn_add"
21
+        >添加</el-button
22
+      >
23
+    </div>
24
+    <el-table v-loading="loading" :data="dataLists" border stripe>
25
+      <el-table-column
26
+        type="index"
27
+        label="编号"
28
+        align="center"
29
+        fixed
30
+        width="80"
31
+      />
32
+      <el-table-column label="应用分类" align="center">
33
+        <template slot-scope="scope">{{
34
+          scope.row.F_Type | typeFilter
35
+        }}</template>
36
+      </el-table-column>
37
+      <el-table-column
38
+        :show-overflow-tooltip="true"
39
+        prop="F_VersionName"
40
+        label="版本名称"
41
+        align="center"
42
+      />
43
+      <el-table-column
44
+        :show-overflow-tooltip="true"
45
+        prop="F_VersionCode"
46
+        label="版本号"
47
+        align="center"
48
+      />
49
+      <el-table-column
50
+        :show-overflow-tooltip="true"
51
+        label="下载地址"
52
+        align="center"
53
+      >
54
+        <template slot-scope="scope">
55
+          <el-link
56
+            :href="scope.row.FileUrl[0].F_FileUrl"
57
+            v-if="scope.row.FileUrl.length && !scope.row.F_Type"
58
+            type="primary"
59
+            :download="scope.row.FileUrl[0].F_FileUrl"
60
+            >{{ scope.row.FileUrl[0].F_FileName }}</el-link
61
+          >
62
+          <el-link
63
+            :href="scope.row.F_Url"
64
+            v-if="scope.row.F_Url && scope.row.F_Type"
65
+            type="primary"
66
+            target="_blank"
67
+            >{{ scope.row.F_Url }}</el-link
68
+          >
69
+        </template>
70
+      </el-table-column>
71
+
72
+      <el-table-column
73
+        label="操作"
74
+        width="180"
75
+        align="center"
76
+        class-name="oparate_btn"
77
+        fixed="right"
78
+      >
79
+        <template slot-scope="scope">
80
+          <el-button
81
+            size="mini"
82
+            plain
83
+            type="primary"
84
+            @click="btn_edit(scope.row.F_ID)"
85
+            >编辑</el-button
86
+          >
87
+          <el-button
88
+            size="mini"
89
+            plain
90
+            type="danger"
91
+            @click="btn_delete(scope.row.F_ID)"
92
+            >删除</el-button
93
+          >
94
+        </template>
95
+      </el-table-column>
96
+    </el-table>
97
+    <pagination
98
+      v-show="pageParams.total > 0"
99
+      :total="pageParams.total"
100
+      :pageindex.sync="pageParams.pageindex"
101
+      :pagesize.sync="pageParams.pagesize"
102
+      class="pagination"
103
+      @pagination="getList"
104
+    />
105
+  </div>
106
+</template>
107
+<script>
108
+import { getList, deleteData } from "@/api/versionUpdate/versionUpdate";
109
+import addOrEdit from "./cpns/addOrEdit";
110
+// import detail from './components/detail'
111
+
112
+import Pagination from "@/components/context/Pagination";
113
+
114
+export default {
115
+  name: "vehicleManagement",
116
+  components: {
117
+    Pagination,
118
+  },
119
+  data() {
120
+    return {
121
+      loading: false,
122
+      keyword: "",
123
+      pageParams: {
124
+        pageindex: 1, //Number(this.$store.getters.serverConfig.PAGESIZE)
125
+        pagesize: Number(this.$store.getters.serverConfig.PAGESIZE),
126
+        total: 0,
127
+      },
128
+      dataLists: [],
129
+    };
130
+  },
131
+  created() {
132
+    this.getList();
133
+    document.onkeyup = (e) => {
134
+      if (e.keyCode === 13) {
135
+        this.getList();
136
+      }
137
+    };
138
+  },
139
+  filters: {
140
+    // 应用分类
141
+    typeFilter(status) {
142
+      const statusMap = {
143
+        0: "安卓",
144
+        1: "ios",
145
+      };
146
+      return statusMap[status];
147
+    },
148
+  },
149
+  methods: {
150
+    getList() {
151
+      this.loading = true;
152
+      return new Promise((resolve) => {
153
+        const params = {
154
+          pageindex: this.pageParams.pageindex, // 第几页
155
+          pagesize: this.pageParams.pagesize, // 每页几条信息
156
+
157
+          keywords: this.keyword.replace(/\s+/g, ""),
158
+        };
159
+        getList(params).then((response) => {
160
+          this.loading = false;
161
+          if (response.rows) {
162
+            this.pageParams.total = response.total;
163
+            this.dataLists = response.rows;
164
+          } else {
165
+            this.dataLists = [];
166
+          }
167
+        });
168
+        resolve();
169
+      });
170
+    },
171
+    btn_search() {
172
+      this.pageParams.pageindex = 1;
173
+      this.getList();
174
+    },
175
+    btn_add() {
176
+      this.$layer.iframe({
177
+        content: {
178
+          content: addOrEdit, // 传递的组件对象
179
+          parent: this, // 当前的vue对象
180
+          data: { rowid: "" },
181
+        },
182
+        area: ["60%", "500px"],
183
+        title: "添加",
184
+      });
185
+    },
186
+    btn_edit(editId) {
187
+      this.$layer.iframe({
188
+        content: {
189
+          content: addOrEdit, // 传递的组件对象
190
+          parent: this, // 当前的vue对象
191
+          data: { rowid: editId.toString() }, // props
192
+        },
193
+        area: ["60%", "500px"],
194
+        title: "编辑",
195
+      });
196
+    },
197
+    btn_delete(editId) {
198
+      this.$confirm("您确定要删除此信息吗?", "提示", {
199
+        confirmButtonText: "确定",
200
+        cancelButtonText: "取消",
201
+        type: "warning",
202
+      })
203
+        .then(() => {
204
+          deleteData(editId).then((response) => {
205
+            if (response.state.toLowerCase() === "success") {
206
+              this.getList();
207
+              this.$message.success("删除成功!");
208
+            }
209
+          });
210
+        })
211
+        .catch(() => {
212
+          this.$message.info("已取消删除");
213
+        });
214
+    },
215
+  },
216
+};
217
+</script>
218
+<style rel="stylesheet/scss" lang="scss" scoped>
219
+</style>

+ 24 - 14
CallCenterWeb.UI/RMYYAPP/config/constData.config.js

@@ -20,15 +20,16 @@ export default {
20 20
 		}],
21 21
 		// 管理员
22 22
 		administratorList: [
23
-			
23
+
24
+
24 25
 			
25 26
 			{
26
-				id: "1",
27
-				imagePath: "../../static/icon_repair.png",
28
-				imageBg: "#fe940a",
29
-				text: "维修工单", //WorkOrder/GetLDDealList
30
-				navigateToUrl: "/pages/myTask/repairList/repairList?segmenter=0",
31
-			},
27
+					id: "1",
28
+					imagePath: "../../static/icon_repair.png",
29
+					imageBg: "#fe940a",
30
+					text: "维修工单", //WorkOrder/GetLDDealList
31
+					navigateToUrl: "/pages/myTask/repairList/repairList?segmenter=0",
32
+				},
32 33
 			{
33 34
 				id: "2",
34 35
 				imagePath: "../../static/icon_leasing.png",
@@ -153,13 +154,22 @@ export default {
153 154
 			}
154 155
 		],
155 156
 		// 基础工单
156
-		applyRepairList: [{
157
-			id: "11",
158
-			imagePath: "../../static/reppair.png",
159
-			imageBg: "#1ccd8d",
160
-			text: "故障报修", //WorkOrder/GetLDDealList
161
-			navigateToUrl: "/pages/myTask/repairList/myRepairOrderList/myRepairOrderList?segmenter=0&urlIndex=0",
162
-		}, {
157
+		applyRepairList: [
158
+		// 	{
159
+		// 	id: "11",
160
+		// 	imagePath: "../../static/reppair.png",
161
+		// 	imageBg: "#1ccd8d",
162
+		// 	text: "故障报修", //WorkOrder/GetLDDealList
163
+		// 	navigateToUrl: "/pages/myTask/repairList/myRepairOrderList/myRepairOrderList?segmenter=0&urlIndex=0",
164
+		// }, 
165
+		{
166
+				id: "1",
167
+				imagePath: "../../static/icon_repair.png",
168
+				imageBg: "#fe940a",
169
+				text: "维修工单", //WorkOrder/GetLDDealList
170
+				navigateToUrl: "/pages/myTask/repairList/repairList?segmenter=0",
171
+			},
172
+		{
163 173
 			id: "2",
164 174
 			imagePath: "../../static/consult.png",
165 175
 			imageBg: "#1ccd8d",

+ 2 - 2
CallCenterWeb.UI/RMYYAPP/config/index.config.js

@@ -3,8 +3,8 @@ const CONFIG = {
3 3
     development: {
4 4
         assetsPath: '/static', // 静态资源路径
5 5
 				// baseUrl: 'http://192.168.8.10:8033/',
6
-				baseUrl: 'https://zyfb.zzrmyy.com/', // 本地外网地址
7
-				// baseUrl: 'http://39.164.159.192:8000/', // 本地外网地址s
6
+				// baseUrl: 'https://zyfb.zzrmyy.com/', // 本地外网地址
7
+				baseUrl: 'http://39.164.159.192:8000/', // 本地外网地址s
8 8
 		// baseUrl: 'http://172.16.10.22:8000/',	
9 9
         hostUrl: '', // H5地址(前端运行地址)
10 10
         weixinAppId: '' // 微信公众号appid

+ 1 - 1
CallCenterWeb.UI/RMYYAPP/manifest.json

@@ -2,7 +2,7 @@
2 2
     "name" : "郑州人民医院综合服务保障调度平台",
3 3
     "appid" : "__UNI__5A5207D",
4 4
     "description" : "",
5
-    "versionName" : "1.2.12",
5
+    "versionName" : "1.2.13",
6 6
     "versionCode" : 1211,
7 7
     "transformPx" : false,
8 8
     /* 5+App特有相关 */

+ 1 - 1
CallCenterWeb.UI/RMYYAPP/pages/login/login.vue

@@ -90,7 +90,7 @@
90 90
 						
91 91
 						const code = uni.getStorageSync("roleCode"); 
92 92
 						 // ||code == 'GLY' || code == 'DDZX'
93
-						if(code == 'WXY' || code == 'DDZX' || code == 'jcgn'  || code == 'GQY' || code == 'SJ' || code == 'WXBZZ' || code == 'APRY' || code == 'APRY') {
93
+						if(code == 'WXY' || code == 'DDZX'|| code == 'GLY' || code == 'jcgn'  || code == 'GQY' || code == 'SJ' || code == 'WXBZZ' || code == 'APRY' || code == 'APRY') {
94 94
 							uni.switchTab({
95 95
 								url: '/pages/myTask/myTask'
96 96
 							});

+ 15 - 11
CallCenterWeb.UI/RMYYAPP/pages/myTask/myTask.vue

@@ -86,7 +86,7 @@
86 86
 					});	
87 87
 				}, 5000)
88 88
 				
89
-				this.upData()
89
+				// this.upData()
90 90
 				// #endif
91 91
 				this.bannnerData = this.$mConstDataConfig.bannnerData
92 92
 				this.getMenuPermissions() //获取用户权限
@@ -146,33 +146,37 @@
146 146
 				});
147 147
 				let typeUp = ''
148 148
 				if (plus.device.model.indexOf('iPhone') > -1) {
149
-					typeUp='ios'; 
149
+					typeUp=1; 
150 150
 				}else{
151
-					typeUp='android'; 
151
+					typeUp=0; 
152 152
 				}
153 153
 				const params = {
154
-					versionName: typeUp,
154
+					type:typeUp,
155
+					isNew: true, 
155 156
 				}
156
-				this.$http.get('/ApplicationsRefresh/GetAllList', params).then((response) => {
157
-					if (response.rows.length > 0) {
158
-						let data = response.rows
157
+				this.$http.get('/ApplicationsVersion/GetAndroid', params).then((response) => {
158
+					if (response.state == "success") {
159
+						let data = response.data
160
+						console.log(data)
161
+						//NewCode_ = data.data.F_VersionCode; 
159 162
 						const nowVersionCode = uni.getStorageSync('versionCode')
160
-						const serveVersionCode = data[0].F_VersionCode
163
+						const serveVersionCode = data.F_VersionCode
161 164
 						console.log(nowVersionCode + "---" +serveVersionCode)
162 165
 						if (nowVersionCode !== serveVersionCode) {
163
-							if(typeUp === 'android'){
166
+							if(typeUp === 0){
164 167
 								uni.showModal({
165 168
 									title: '更新',
166 169
 									content: '是否更新',
167 170
 									success: function (res) {
168 171
 										if (res.confirm) {
169
-											plus.runtime.openURL(data[0].F_DownUrl);
172
+											console.log(data.F_FileUrl)
173
+											plus.runtime.openURL(data.FileUrl[0].F_FileUrl);
170 174
 										} else if (res.cancel) {
171 175
 											this.$mHelper.toast("取消更新");
172 176
 										}
173 177
 									}
174 178
 								});
175
-							}else if(typeUp === 'ios'){
179
+							}else if(typeUp === 1){
176 180
 								plus.runtime.openURL('https://apps.apple.com/cn/app/%E9%83%91%E5%B7%9E%E4%BA%BA%E6%B0%91%E5%8C%BB%E9%99%A2%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E4%BF%9D%E9%9A%9C%E8%B0%83%E5%BA%A6%E5%B9%B3%E5%8F%B0/id6444557705');
177 181
 							}
178 182
 							

+ 47 - 7
CallCenterWeb.UI/RMYYAPP/pages/myTask/vehicleSchedulList/applicantsList/addVehicle/addVehicle.vue

@@ -19,14 +19,20 @@
19 19
 					<uni-easyinput disabled v-model="valiFormData.F_ProposerName" v-if="detpReadonly" />
20 20
 					<!-- <uni-data-select v-model="valiFormData.needman" :localdata="ApplicantData" @change="changeApplicant" /> -->
21 21
 				</uni-forms-item>
22
-				<uni-forms-item label="联系电话" required name="Phone">
22
+				<uni-forms-item label="申请人电话" required name="Phone">
23 23
 					<uni-easyinput v-model="valiFormData.Phone" :disabled="detpReadonly" placeholder="请输入联系电话" />
24 24
 				</uni-forms-item>
25
+				<uni-forms-item label="联系人" required name="contact">
26
+					<uni-easyinput v-model="valiFormData.contact" placeholder="请输入联系人" />
27
+				</uni-forms-item>
28
+				<uni-forms-item label="联系电话" required name="contactnumber">
29
+					<uni-easyinput v-model="valiFormData.contactnumber" placeholder="请输入联系电话" />
30
+				</uni-forms-item>
25 31
 				<uni-forms-item label="车辆要求" required name="cartype">
26 32
 					<uni-data-select v-model="valiFormData.cartype" :localdata="cartypeData" />
27 33
 				</uni-forms-item>
28
-				<uni-forms-item label="调度内容" name="content">
29
-					<uni-easyinput type="textarea" v-model="valiFormData.content" placeholder="请输入调度内容" />
34
+				<uni-forms-item label="工单内容" name="content">
35
+					<uni-easyinput type="textarea" v-model="valiFormData.content" placeholder="请输入工单内容" />
30 36
 				</uni-forms-item>
31 37
 				<uni-forms-item label="科室位置" required name="startplace">
32 38
 					<uni-easyinput v-model="valiFormData.startplace" placeholder="请输入科室位置" />
@@ -86,13 +92,15 @@
86 92
 					F_ProposerDeptName:'',
87 93
 					F_ProposerName:'',
88 94
 					needman: '', //申请人
89
-					phone: '', //电话
95
+					Phone: '', //电话
96
+					contact: "",
97
+					contactnumber: "",
90 98
 					cartype:'',	//	车辆类型
91 99
 					content: '', // 调度内容
92 100
 					startplace:'', // 出发地
93 101
 					endplace:'', // 目的地
94 102
 					usertime:'',	//	用车时间
95
-					birth:0,	//	是否新生儿转运0否1是
103
+					birth:1,	//	是否新生儿转运0否1是
96 104
 					remark:'',	//	备注
97 105
 					EmergencyTypes: '一般',
98 106
 					dispatch:''
@@ -139,9 +147,30 @@
139 147
 					Phone: {
140 148
 						rules: [{
141 149
 							required: true,
142
-							errorMessage: '请输入联系电话'
150
+							errorMessage: '请输入正确的电话号码'
151
+						},
152
+						{ 
153
+							pattern: "^[1][3,4,5,6,7,8,9][0-9]{9}$", 
154
+							errorMessage: "请输入正确的手机号码", 
155
+						},
156
+						]
157
+					}, 
158
+					contact: {
159
+						rules: [{
160
+							required: true,
161
+							errorMessage: '请输入联系人'
143 162
 						}]
144 163
 					},
164
+					contactnumber: {
165
+						rules: [{
166
+							required: true,
167
+							errorMessage: '请输入正确的电话号码'
168
+						},
169
+						{
170
+							pattern: "^[1][3,4,5,6,7,8,9][0-9]{9}$", 
171
+							errorMessage: "请输入正确的手机号码", 
172
+						},]
173
+					},
145 174
 					cartype: {
146 175
 						rules: [{
147 176
 							required: true,
@@ -300,14 +329,21 @@
300 329
 			submit(ref) {
301 330
 				this.disabledButton = false
302 331
 				this.$refs[ref].validate().then(res => {
332
+					if(this.valiFormData.birth ===0&&this.valiFormData.content ===""){
333
+						this.$mHelper.toast('请输入工单内容') 
334
+						return
335
+					}
303 336
 					const params = {
304 337
 						type: this.valiFormData.WorkOrderCategory, //工单类型
305 338
 						hosid: this.valiFormData.hosid, //申请院区
306 339
 						detpid: this.valiFormData.detpid.split('_')[1], //申请部门
307 340
 						needman: this.valiFormData.needman, //申请人
308 341
 						phon: this.valiFormData.Phone, //电话
342
+						contact: this.valiFormData.contact, //联系人
343
+						contactnumber: this.valiFormData.contactnumber, //联系电话
344
+
309 345
 						cartype: this.valiFormData.cartype, //车辆类型
310
-						content: this.valiFormData.content, //调度内容
346
+						content: this.valiFormData.content, //工单内容
311 347
 						startplace: this.valiFormData.startplace, //出发地
312 348
 						endplace: this.valiFormData.endplace, //目的地
313 349
 						usertime: this.valiFormData.usertime, //用车时间
@@ -317,6 +353,7 @@
317 353
 						EmergencyTypes: this.valiFormData.EmergencyTypes,
318 354
 						dispatch:this.valiFormData.dispatch
319 355
 					}
356
+
320 357
 					if(this.workorderid){
321 358
 						this.$mHelper.httpPost("T_Car_WorkOrder/UpdateWorkOrder", params, 2,res=>this.disabledButton=res)
322 359
 					}else{
@@ -348,6 +385,9 @@
348 385
 							this.valiFormData.F_ProposerName = this.detailContentData.F_ProposerName.toString() //申请人姓名
349 386
 							
350 387
 							this.valiFormData.Phone = this.detailContentData.F_Phon //电话
388
+							this.valiFormData.contact = this.detailContentData.F_Contact //联系人
389
+							this.valiFormData.contactnumber = this.detailContentData.F_ContactNumber //联系人电话
390
+							
351 391
 							this.valiFormData.cartype = this.detailContentData.F_CarType.toString() //车辆类型 F_CarType F_CarName 
352 392
 							this.valiFormData.content = this.detailContentData.F_Content //调度内容
353 393
 							this.valiFormData.startplace = this.detailContentData.F_DepartPlace //出发地

+ 49 - 8
CallCenterWeb.UI/RMYYAPP/pages/myTask/vehicleSchedulList/components/vehiccleDetail/vehiccleDetail.vue

@@ -3,8 +3,14 @@
3 3
 		<page-meta :root-font-size="getFontSizeValue"></page-meta>
4 4
 		<view class="wrapper">
5 5
 
6
-			<view class="uniStep" v-if="listFlag">
6
+			<view class="uniStep" v-if="listFlag" style="display: flex;">
7
+				<uni-icons type="left" style="margin-left: 20px; color: #1e90ff;" size="30" @click="changeListSub"></uni-icons>
7 8
 				<uni-steps :options="list1" :active="active" />
9
+				<uni-icons type="right" style="margin-right: 20px; color: #1e90ff;" size="30" @click="changeListAdd"></uni-icons>
10
+				<!-- <div style="margin: 15px 0px 0px 0px; display: flex;">
11
+					<button type="primary" size="mini" style="text-align: left; margin-left: 15px;">左移</button>
12
+					<button type="primary" size="mini" style="text-align: right; margin-right: 15px;">右移</button>
13
+				</div> -->
8 14
 			</view>
9 15
 
10 16
 			<view class="detailContent">
@@ -31,13 +37,25 @@
31 37
 						class="contentText">{{ $mHelper.findUserName(userCodeList, detailContentData.F_ProposerCode ) }}</text>
32 38
 				</view>
33 39
 				<view class="contentTable">
34
-					<text class="contentTitle">联系电话:</text>
40
+					<text class="contentTitle">申请人电话:</text>
35 41
 					<text class="contentText" style="margin-top: -5px;">{{ detailContentData.F_Phon  }}
36 42
 						<uni-icons @click="callHandle(detailContentData.F_Phon)" class="frContentText" type="phone"
37 43
 							size="30"></uni-icons>
38 44
 					</text>
39 45
 				</view>
40 46
 				<view class="contentTable">
47
+					<text class="contentTitle">联系人:</text>
48
+					<text class="contentText" style="margin-top: -5px;">{{ detailContentData.F_Contact  }}
49
+					</text>
50
+				</view>
51
+				<view class="contentTable">
52
+					<text class="contentTitle">联系电话:</text>
53
+					<text class="contentText" style="margin-top: -5px;">{{ detailContentData.F_ContactNumber  }}
54
+						<uni-icons @click="callHandle(detailContentData.F_ContactNumber)" class="frContentText" type="phone"
55
+							size="30"></uni-icons>
56
+					</text>
57
+				</view>
58
+				<view class="contentTable">
41 59
 					<text class="contentTitle">工单内容:</text>
42 60
 					<text class="contentText">{{ detailContentData.F_Content }}</text>
43 61
 				</view>
@@ -158,6 +176,25 @@
158 176
 				if (res.state.toLowerCase() === "success") this.orderTypeList = res.data
159 177
 				console.log(this.orderTypeList, 'this.orderTypeList')
160 178
 			},
179
+			changeListAdd(){
180
+				if (this.active < this.list1.length - 1) {
181
+					this.active += 1
182
+				} else {
183
+					this.active = 0
184
+				}
185
+				this.workorderid = this.list1[this.active].workid
186
+				this.getDetail(3)
187
+			},
188
+			changeListSub(){
189
+				if (this.active ===0) {
190
+					this.active = this.list1.length - 1
191
+				} else {
192
+					this.active -= 1
193
+				}
194
+				console.log(this.list1[this.active].workid)
195
+				this.workorderid = this.list1[this.active].workid
196
+				this.getDetail(3)
197
+			},
161 198
 			callHandle(phone) {
162 199
 				if (!phone) {
163 200
 					this.$mHelper.toast('无号码信息')
@@ -209,14 +246,17 @@
209 246
 							// }
210 247
 
211 248
 						} else if (type === 3) {
212
-							let activeFlag = 0
249
+							// let activeFlag = 0
250
+							this.list1 = []
251
+							this.workOrderButton = []
213 252
 							response.Carlist.forEach((ele) => {
214
-								this.active = activeFlag
215
-								if (ele.Buttons.length === 0) {
216
-									activeFlag++
217
-								}
253
+								// this.active = activeFlag
254
+								// if (ele.Buttons.length === 0) {
255
+								// 	activeFlag++
256
+								// }
218 257
 								const obj = {}
219
-								obj.title = ele.F_WorkOrderCode
258
+								obj.workid = ele.F_WorkOrderCode
259
+								obj.title = ""
220 260
 								this.list1.push(obj)
221 261
 							})
222 262
 							this.detailContentData = response.Carlist[this.active]
@@ -244,6 +284,7 @@
244 284
 								this.orderButtonData = this.workOrderButton
245 285
 							});
246 286
 						}
287
+						console.log(this.orderButtonData)
247 288
 						pageData.getApplicant(this.detailContentData.F_ProposerDeptId, (res) => {
248 289
 							this.userCodeList = res
249 290
 						})

+ 2 - 2
CallCenterWeb.UI/RMYYAPP/unpackage/cache/certdataios

@@ -1,3 +1,3 @@
1
-iosProfile=D:/YJF_work/五院/CallCenterWeb.UI/4.0/正式/wuyuan (2).mobileprovision
2
-ioscertFile=D:/YJF_work/五院/CallCenterWeb.UI/4.0/正式/证书.p12
1
+iosProfile=E:/desktopFile/证书/RMYY证书/ios/4.0/正式/wuyuan (2).mobileprovision
2
+ioscertFile=E:/desktopFile/证书/RMYY证书/ios/4.0/正式/证书.p12
3 3
 ioscertPassword=LN4Bq2cDrCPQMwql//0+Pw==