Sfoglia il codice sorgente

Merge branch 'superman' of http://git.shengws.com/zhangbj/xt_vue into superman

csx 5 anni fa
parent
commit
d7010f9e28
29 ha cambiato i file con 2995 aggiunte e 2091 eliminazioni
  1. 239 243
      src/api/manage.js
  2. 6 6
      src/xt_pages/dialysis/schedualPatient.vue
  3. 2459 1563
      src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue
  4. 9 9
      src/xt_pages/management/home.vue
  5. 1 1
      src/xt_pages/management/index.vue
  6. 1 1
      src/xt_pages/qcd/patientAnalysis/total.vue
  7. 1 1
      src/xt_pages/sign/index.vue
  8. 1 1
      src/xt_pages/stock/cancelStockOrder.vue
  9. 1 1
      src/xt_pages/stock/detail/cancelStockDetail.vue
  10. 1 1
      src/xt_pages/stock/detail/stockInDetail.vue
  11. 1 1
      src/xt_pages/stock/detail/stockOutDetail.vue
  12. 1 1
      src/xt_pages/stock/otherCancelStockOrder.vue
  13. 1 1
      src/xt_pages/stock/otherSalesReturnOrder.vue
  14. 1 1
      src/xt_pages/stock/otherStockInOrder.vue
  15. 1 1
      src/xt_pages/stock/otherStockOutOrder.vue
  16. 1 1
      src/xt_pages/stock/salesReturnOrder.vue
  17. 1 1
      src/xt_pages/stock/stockDetail.vue
  18. 1 1
      src/xt_pages/stock/stockInOrder.vue
  19. 122 122
      src/xt_pages/stock/stockOutOrder.vue
  20. 2 2
      src/xt_pages/stock/stockQuery.vue
  21. 8 7
      src/xt_pages/upload/data/DataCity.vue
  22. 8 7
      src/xt_pages/upload/data/DataCountry.vue
  23. 8 7
      src/xt_pages/upload/data/DataProvince.vue
  24. 1 1
      src/xt_pages/upload/fast/FastInspectionSidebar.vue
  25. 1 1
      src/xt_pages/upload/fast/FastPatientsSidebar.vue
  26. 1 1
      src/xt_pages/user/components/PatientSidebar.1.vue
  27. 112 102
      src/xt_pages/user/components/PatientSidebar.vue
  28. 4 5
      src/xt_pages/user/patients.vue
  29. 1 1
      src/xt_pages/workforce/components/tableData.vue

+ 239 - 243
src/api/manage.js Vedi File

1
-import request from "@/utils/request";
1
+import request from '@/utils/request'
2
 
2
 
3
 export function getAllSubregion(params) {
3
 export function getAllSubregion(params) {
4
   return request({
4
   return request({
5
-    url: "/api/management/getallsubregion",
6
-    method: "Get",
5
+    url: '/api/management/getallsubregion',
6
+    method: 'Get',
7
     params: params
7
     params: params
8
-  });
8
+  })
9
 }
9
 }
10
 
10
 
11
 export function SaveManageInfo(data) {
11
 export function SaveManageInfo(data) {
12
   return request({
12
   return request({
13
-    url: "/api/management/savemanageinfo",
14
-    method: "Post",
13
+    url: '/api/management/savemanageinfo',
14
+    method: 'Post',
15
     data: data
15
     data: data
16
-  });
16
+  })
17
 }
17
 }
18
 
18
 
19
 export function getAllMachineInfo(
19
 export function getAllMachineInfo(
31
     zoneid: zoneid,
31
     zoneid: zoneid,
32
     equipmentid: equipmentid,
32
     equipmentid: equipmentid,
33
     statusid: statusid
33
     statusid: statusid
34
-  };
34
+  }
35
   return request({
35
   return request({
36
-    url: "/api/management/getallmachineinfo",
37
-    method: "Get",
36
+    url: '/api/management/getallmachineinfo',
37
+    method: 'Get',
38
     params: params
38
     params: params
39
-  });
39
+  })
40
 }
40
 }
41
 
41
 
42
 export function getAllMachine(zoneid, deviceid) {
42
 export function getAllMachine(zoneid, deviceid) {
43
   const params = {
43
   const params = {
44
     zoneid: zoneid,
44
     zoneid: zoneid,
45
     deviceid: deviceid
45
     deviceid: deviceid
46
-  };
46
+  }
47
   return request({
47
   return request({
48
-    url: "/api/management/getallmachine",
49
-    method: "Get",
48
+    url: '/api/management/getallmachine',
49
+    method: 'Get',
50
     params: params
50
     params: params
51
-  });
51
+  })
52
 }
52
 }
53
 
53
 
54
 export function getMachineDetailById(id, params) {
54
 export function getMachineDetailById(id, params) {
55
   return request({
55
   return request({
56
-    url: "/api/management/getmachinedetail?id=" + id,
57
-    method: "Get",
56
+    url: '/api/management/getmachinedetail?id=' + id,
57
+    method: 'Get',
58
     params: params
58
     params: params
59
-  });
59
+  })
60
 }
60
 }
61
 
61
 
62
 export function UpdateMachineInfo(data) {
62
 export function UpdateMachineInfo(data) {
63
-  console.log("data", data);
63
+  console.log('data', data)
64
   return request({
64
   return request({
65
-    url: "/api/management/updatemachineinfo",
66
-    method: "Post",
65
+    url: '/api/management/updatemachineinfo',
66
+    method: 'Post',
67
     data: data
67
     data: data
68
-  });
68
+  })
69
 }
69
 }
70
 
70
 
71
 export function UpdateMachineInfoTwo(data) {
71
 export function UpdateMachineInfoTwo(data) {
72
-  console.log("data", data);
72
+  console.log('data', data)
73
   return request({
73
   return request({
74
-    url: "/api/management/updatemachineinfotwo",
75
-    method: "post",
74
+    url: '/api/management/updatemachineinfotwo',
75
+    method: 'post',
76
     data: data
76
     data: data
77
-  });
77
+  })
78
 }
78
 }
79
 
79
 
80
 export function getAllEquimentName(params) {
80
 export function getAllEquimentName(params) {
81
   return request({
81
   return request({
82
-    url: "/api/management/getallequimentname",
83
-    method: "Get",
82
+    url: '/api/management/getallequimentname',
83
+    method: 'Get',
84
     params: params
84
     params: params
85
-  });
85
+  })
86
 }
86
 }
87
 
87
 
88
 export function savePlan(data, id) {
88
 export function savePlan(data, id) {
89
   return request({
89
   return request({
90
-    url: "/api/management/saveplan?id=" + id,
91
-    method: "Post",
90
+    url: '/api/management/saveplan?id=' + id,
91
+    method: 'Post',
92
     data: data
92
     data: data
93
-  });
93
+  })
94
 }
94
 }
95
 
95
 
96
-export function getAllPlan(bedid) {
97
-  const params = {
98
-    bedid: bedid
99
-  };
96
+export function getAllPlan(params) {
100
   return request({
97
   return request({
101
-    url: "/api/management/getallplan",
102
-    method: "Get",
98
+    url: '/api/management/getallplan',
99
+    method: 'Get',
103
     params: params
100
     params: params
104
-  });
101
+  })
105
 }
102
 }
106
 
103
 
107
-export function getAllPlanDetail(unitype, bedid) {
104
+export function getAllPlanDetail(unitype) {
108
   // eslint-disable-next-line no-redeclare
105
   // eslint-disable-next-line no-redeclare
109
   const params = {
106
   const params = {
110
-    unitype: unitype,
111
-    bedid: bedid
112
-  };
107
+    unitype: unitype
108
+  }
113
   return request({
109
   return request({
114
-    url: "/api/management/getallplandetail",
115
-    method: "Get",
110
+    url: '/api/management/getallplandetail',
111
+    method: 'Get',
116
     params: params
112
     params: params
117
-  });
113
+  })
118
 }
114
 }
119
 
115
 
120
 export function getEditMachine(id, params) {
116
 export function getEditMachine(id, params) {
121
   return request({
117
   return request({
122
-    url: "/api/management/geteditmachine?id=" + id,
123
-    method: "Get",
118
+    url: '/api/management/geteditmachine?id=' + id,
119
+    method: 'Get',
124
     params: params
120
     params: params
125
-  });
121
+  })
126
 }
122
 }
127
 
123
 
128
 export function DeletePlans(data) {
124
 export function DeletePlans(data) {
129
   return request({
125
   return request({
130
-    url: "/api/staff/deleteplans",
131
-    method: "delete",
126
+    url: '/api/staff/deleteplans',
127
+    method: 'delete',
132
     data: data
128
     data: data
133
-  });
129
+  })
134
 }
130
 }
135
 
131
 
136
 export function EditPlanDetail(id, params) {
132
 export function EditPlanDetail(id, params) {
137
   return request({
133
   return request({
138
-    url: "/api/manage/editplandetail?id=" + id,
139
-    method: "get",
134
+    url: '/api/manage/editplandetail?id=' + id,
135
+    method: 'get',
140
     params: params
136
     params: params
141
-  });
137
+  })
142
 }
138
 }
143
 
139
 
144
 export function UpdatePlanInfo(data) {
140
 export function UpdatePlanInfo(data) {
145
   return request({
141
   return request({
146
-    url: "/api/manage/updateplaninfo",
147
-    method: "Post",
142
+    url: '/api/manage/updateplaninfo',
143
+    method: 'Post',
148
     data: data
144
     data: data
149
-  });
145
+  })
150
 }
146
 }
151
 
147
 
152
 export function getComprehensive(params) {
148
 export function getComprehensive(params) {
153
   return request({
149
   return request({
154
-    url: "/api/manage/getcomprehensive",
155
-    method: "Get",
150
+    url: '/api/manage/getcomprehensive',
151
+    method: 'Get',
156
     params: params
152
     params: params
157
-  });
153
+  })
158
 }
154
 }
159
 
155
 
160
 export function SaveInformation(eid, data) {
156
 export function SaveInformation(eid, data) {
161
   return request({
157
   return request({
162
-    url: "/api/manage/saveinformation?eid=" + eid,
163
-    method: "Post",
158
+    url: '/api/manage/saveinformation?eid=' + eid,
159
+    method: 'Post',
164
     data: data
160
     data: data
165
-  });
161
+  })
166
 }
162
 }
167
 
163
 
168
 export function getPatientInfo(id, params) {
164
 export function getPatientInfo(id, params) {
169
   return request({
165
   return request({
170
-    url: "/api/manage/getpatientinfo?id=" + id,
171
-    method: "Get",
166
+    url: '/api/manage/getpatientinfo?id=' + id,
167
+    method: 'Get',
172
     params: params
168
     params: params
173
-  });
169
+  })
174
 }
170
 }
175
 
171
 
176
 export function ChangeClass(equitid, id) {
172
 export function ChangeClass(equitid, id) {
177
   const params = {
173
   const params = {
178
     equitid: equitid,
174
     equitid: equitid,
179
     id: id
175
     id: id
180
-  };
176
+  }
181
   return request({
177
   return request({
182
-    url: "/api/manage/changeclass",
183
-    method: "Get",
178
+    url: '/api/manage/changeclass',
179
+    method: 'Get',
184
     params: params
180
     params: params
185
-  });
181
+  })
186
 }
182
 }
187
 
183
 
188
 export function changePatient(equitid, id) {
184
 export function changePatient(equitid, id) {
189
   const params = {
185
   const params = {
190
     equitid: equitid,
186
     equitid: equitid,
191
     id: id
187
     id: id
192
-  };
188
+  }
193
   return request({
189
   return request({
194
-    url: "/api/manage/changepatient",
195
-    method: "Get",
190
+    url: '/api/manage/changepatient',
191
+    method: 'Get',
196
     params: params
192
     params: params
197
-  });
193
+  })
198
 }
194
 }
199
 
195
 
200
 export function getAllOrganization(params) {
196
 export function getAllOrganization(params) {
201
   return request({
197
   return request({
202
-    url: "/api/manage/getallorganization",
203
-    method: "Get",
198
+    url: '/api/manage/getallorganization',
199
+    method: 'Get',
204
     params: params
200
     params: params
205
-  });
201
+  })
206
 }
202
 }
207
 
203
 
208
 export function getUserRegister(id, params) {
204
 export function getUserRegister(id, params) {
209
   return request({
205
   return request({
210
-    url: "/api/manage/getregisterinfo?id=" + id,
211
-    method: "Get",
206
+    url: '/api/manage/getregisterinfo?id=' + id,
207
+    method: 'Get',
212
     params: params
208
     params: params
213
-  });
209
+  })
214
 }
210
 }
215
 
211
 
216
 export function getInformationData(limit, page) {
212
 export function getInformationData(limit, page) {
217
   const params = {
213
   const params = {
218
     limit: limit,
214
     limit: limit,
219
     page: page
215
     page: page
220
-  };
216
+  }
221
   return request({
217
   return request({
222
-    url: "/api/manage/getinformationdata",
223
-    method: "Get",
218
+    url: '/api/manage/getinformationdata',
219
+    method: 'Get',
224
     params: params
220
     params: params
225
-  });
221
+  })
226
 }
222
 }
227
 
223
 
228
 export function SaveBacteria(id, data) {
224
 export function SaveBacteria(id, data) {
229
   return request({
225
   return request({
230
-    url: "/api/manage/savebacteria?id=" + id,
231
-    method: "Post",
226
+    url: '/api/manage/savebacteria?id=' + id,
227
+    method: 'Post',
232
     data: data
228
     data: data
233
-  });
229
+  })
234
 }
230
 }
235
 
231
 
236
 export function SaveLincomycin(id, data) {
232
 export function SaveLincomycin(id, data) {
237
   return request({
233
   return request({
238
-    url: "/api/manage/savelincomycin?id=" + id,
239
-    method: "Post",
234
+    url: '/api/manage/savelincomycin?id=' + id,
235
+    method: 'Post',
240
     data: data
236
     data: data
241
-  });
237
+  })
242
 }
238
 }
243
 
239
 
244
 export function SaveQualityControl(id, data) {
240
 export function SaveQualityControl(id, data) {
245
   return request({
241
   return request({
246
-    url: "/api/manage/savequalitycontrol?id=" + id,
247
-    method: "Post",
242
+    url: '/api/manage/savequalitycontrol?id=' + id,
243
+    method: 'Post',
248
     data: data
244
     data: data
249
-  });
245
+  })
250
 }
246
 }
251
 
247
 
252
 export function getOrgName(params) {
248
 export function getOrgName(params) {
253
   return request({
249
   return request({
254
-    url: "/api/manage/getorgname",
255
-    method: "Get",
250
+    url: '/api/manage/getorgname',
251
+    method: 'Get',
256
     params: params
252
     params: params
257
-  });
253
+  })
258
 }
254
 }
259
 
255
 
260
 export function getAllQulityInfo(params) {
256
 export function getAllQulityInfo(params) {
261
   return request({
257
   return request({
262
-    url: "/api/manage/getallqulityinfo",
263
-    method: "Get",
258
+    url: '/api/manage/getallqulityinfo',
259
+    method: 'Get',
264
     params: params
260
     params: params
265
-  });
261
+  })
266
 }
262
 }
267
 
263
 
268
 export function EditCulture(id, userid) {
264
 export function EditCulture(id, userid) {
269
   const params = {
265
   const params = {
270
     id: id,
266
     id: id,
271
     userid: userid
267
     userid: userid
272
-  };
268
+  }
273
   return request({
269
   return request({
274
-    url: "/api/manage/editculture",
275
-    method: "Get",
270
+    url: '/api/manage/editculture',
271
+    method: 'Get',
276
     params: params
272
     params: params
277
-  });
273
+  })
278
 }
274
 }
279
 
275
 
280
 export function UpdateCulture(data) {
276
 export function UpdateCulture(data) {
281
   return request({
277
   return request({
282
-    url: "/api/manage/updateculture",
283
-    method: "Post",
278
+    url: '/api/manage/updateculture',
279
+    method: 'Post',
284
     data: data
280
     data: data
285
-  });
281
+  })
286
 }
282
 }
287
 
283
 
288
 export function DeleteCultrue(data) {
284
 export function DeleteCultrue(data) {
289
   return request({
285
   return request({
290
-    url: "/api/manage/deletecultrue",
291
-    method: "delete",
286
+    url: '/api/manage/deletecultrue',
287
+    method: 'delete',
292
     data: data
288
     data: data
293
-  });
289
+  })
294
 }
290
 }
295
 
291
 
296
 export function EditDialyState(id, params) {
292
 export function EditDialyState(id, params) {
297
   return request({
293
   return request({
298
-    url: "/api/manage/editdialystate?id=" + id,
299
-    method: "Get",
294
+    url: '/api/manage/editdialystate?id=' + id,
295
+    method: 'Get',
300
     params: params
296
     params: params
301
-  });
297
+  })
302
 }
298
 }
303
 
299
 
304
 export function UpdateDialyState(data) {
300
 export function UpdateDialyState(data) {
305
   return request({
301
   return request({
306
-    url: "/api/manage/updatedialystate",
307
-    method: "post",
302
+    url: '/api/manage/updatedialystate',
303
+    method: 'post',
308
     data: data
304
     data: data
309
-  });
305
+  })
310
 }
306
 }
311
 
307
 
312
 export function DeleteDialystate(data) {
308
 export function DeleteDialystate(data) {
313
   return request({
309
   return request({
314
-    url: "/api/manage/deletedialystate",
315
-    method: "delete",
310
+    url: '/api/manage/deletedialystate',
311
+    method: 'delete',
316
     data: data
312
     data: data
317
-  });
313
+  })
318
 }
314
 }
319
 
315
 
320
 export function EditIon(id, params) {
316
 export function EditIon(id, params) {
321
   return request({
317
   return request({
322
-    url: "/api/manage/edition?id=" + id,
323
-    method: "Get",
318
+    url: '/api/manage/edition?id=' + id,
319
+    method: 'Get',
324
     params: params
320
     params: params
325
-  });
321
+  })
326
 }
322
 }
327
 
323
 
328
 export function UpdateIon(data) {
324
 export function UpdateIon(data) {
329
   return request({
325
   return request({
330
-    url: "/api/manage/updateion",
331
-    method: "Post",
326
+    url: '/api/manage/updateion',
327
+    method: 'Post',
332
     data: data
328
     data: data
333
-  });
329
+  })
334
 }
330
 }
335
 
331
 
336
 export function DeleteIon(data) {
332
 export function DeleteIon(data) {
337
   return request({
333
   return request({
338
-    url: "/api/manage/deleteion",
339
-    method: "delete",
334
+    url: '/api/manage/deleteion',
335
+    method: 'delete',
340
     data: data
336
     data: data
341
-  });
337
+  })
342
 }
338
 }
343
 
339
 
344
 export function queryTable(bedid, startime, endtime) {
340
 export function queryTable(bedid, startime, endtime) {
346
     bedid: bedid,
342
     bedid: bedid,
347
     startime: startime,
343
     startime: startime,
348
     endtime: endtime
344
     endtime: endtime
349
-  };
345
+  }
350
   return request({
346
   return request({
351
-    url: "/api/manage/query",
352
-    method: "Get",
347
+    url: '/api/manage/query',
348
+    method: 'Get',
353
     params: params
349
     params: params
354
-  });
350
+  })
355
 }
351
 }
356
 
352
 
357
 export function SaveRepair(id, data) {
353
 export function SaveRepair(id, data) {
358
   return request({
354
   return request({
359
-    url: "/api/manage/saverepair?id=" + id,
360
-    method: "post",
355
+    url: '/api/manage/saverepair?id=' + id,
356
+    method: 'post',
361
     data: data
357
     data: data
362
-  });
358
+  })
363
 }
359
 }
364
 
360
 
365
 export function getAllRepair(limit, page) {
361
 export function getAllRepair(limit, page) {
366
   const params = {
362
   const params = {
367
     limit: limit,
363
     limit: limit,
368
     page: page
364
     page: page
369
-  };
365
+  }
370
   return request({
366
   return request({
371
-    url: "/api/manage/getallrepair",
372
-    method: "Get",
367
+    url: '/api/manage/getallrepair',
368
+    method: 'Get',
373
     params: params
369
     params: params
374
-  });
370
+  })
375
 }
371
 }
376
 
372
 
377
 export function EditRepair(id, params) {
373
 export function EditRepair(id, params) {
378
   return request({
374
   return request({
379
-    url: "/api/manage/editrepair?id=" + id,
380
-    method: "Get",
375
+    url: '/api/manage/editrepair?id=' + id,
376
+    method: 'Get',
381
     params: params
377
     params: params
382
-  });
378
+  })
383
 }
379
 }
384
 
380
 
385
 export function UpdateRepair(data) {
381
 export function UpdateRepair(data) {
386
   return request({
382
   return request({
387
-    url: "/api/manage/updaterepair",
388
-    method: "Post",
383
+    url: '/api/manage/updaterepair',
384
+    method: 'Post',
389
     data: data
385
     data: data
390
-  });
386
+  })
391
 }
387
 }
392
 
388
 
393
 export function DeleteRepair(data) {
389
 export function DeleteRepair(data) {
394
   return request({
390
   return request({
395
-    url: "/api/manage/deleterepair",
396
-    method: "delete",
391
+    url: '/api/manage/deleterepair',
392
+    method: 'delete',
397
     data: data
393
     data: data
398
-  });
394
+  })
399
 }
395
 }
400
 
396
 
401
 export function queryRepair(bedid, startime, endtime) {
397
 export function queryRepair(bedid, startime, endtime) {
403
     bedid: bedid,
399
     bedid: bedid,
404
     startime: startime,
400
     startime: startime,
405
     endtime: endtime
401
     endtime: endtime
406
-  };
402
+  }
407
 
403
 
408
   return request({
404
   return request({
409
-    url: "/api/manage/queryrepair",
410
-    method: "Get",
405
+    url: '/api/manage/queryrepair',
406
+    method: 'Get',
411
     params: params
407
     params: params
412
-  });
408
+  })
413
 }
409
 }
414
 
410
 
415
 export function EditUser(id, patientid) {
411
 export function EditUser(id, patientid) {
416
   const params = {
412
   const params = {
417
     id: id,
413
     id: id,
418
     patientid: patientid
414
     patientid: patientid
419
-  };
415
+  }
420
   return request({
416
   return request({
421
-    url: "/api/manage/edituser",
422
-    method: "Get",
417
+    url: '/api/manage/edituser',
418
+    method: 'Get',
423
     params: params
419
     params: params
424
-  });
420
+  })
425
 }
421
 }
426
 
422
 
427
 export function DeleteUserform(data) {
423
 export function DeleteUserform(data) {
428
   return request({
424
   return request({
429
-    url: "/api/manage/deleteform",
430
-    method: "delete",
425
+    url: '/api/manage/deleteform',
426
+    method: 'delete',
431
     data: data
427
     data: data
432
-  });
428
+  })
433
 }
429
 }
434
 
430
 
435
 export function UpdateForm(data) {
431
 export function UpdateForm(data) {
436
   return request({
432
   return request({
437
-    url: "/api/manage/updateform",
438
-    method: "post",
433
+    url: '/api/manage/updateform',
434
+    method: 'post',
439
     data: data
435
     data: data
440
-  });
436
+  })
441
 }
437
 }
442
 
438
 
443
 export function queryInfo(zone, bed, startime, endtime, limit, page) {
439
 export function queryInfo(zone, bed, startime, endtime, limit, page) {
448
     endtime: endtime,
444
     endtime: endtime,
449
     limit: limit,
445
     limit: limit,
450
     page: page
446
     page: page
451
-  };
447
+  }
452
   return request({
448
   return request({
453
-    url: "/api/manage/queryinfo",
454
-    method: "Get",
449
+    url: '/api/manage/queryinfo',
450
+    method: 'Get',
455
     params: params
451
     params: params
456
-  });
452
+  })
457
 }
453
 }
458
 
454
 
459
 export function getAutoData(id, params) {
455
 export function getAutoData(id, params) {
460
   return request({
456
   return request({
461
-    url: "/api/manage/insertautodata?id=" + id,
462
-    method: "Get",
457
+    url: '/api/manage/insertautodata?id=' + id,
458
+    method: 'Get',
463
     params: params
459
     params: params
464
-  });
460
+  })
465
 }
461
 }
466
 
462
 
467
 export function getAllEquitType(params) {
463
 export function getAllEquitType(params) {
468
   return request({
464
   return request({
469
-    url: "/api/manage/getallequittype",
470
-    method: "Get",
465
+    url: '/api/manage/getallequittype',
466
+    method: 'Get',
471
     params: params
467
     params: params
472
-  });
468
+  })
473
 }
469
 }
474
 
470
 
475
 export function getUserForm(id, limit, page) {
471
 export function getUserForm(id, limit, page) {
477
     id: id,
473
     id: id,
478
     limit: limit,
474
     limit: limit,
479
     page: page
475
     page: page
480
-  };
476
+  }
481
   return request({
477
   return request({
482
-    url: "/api/manage/getuserform",
483
-    method: "Get",
478
+    url: '/api/manage/getuserform',
479
+    method: 'Get',
484
     params: params
480
     params: params
485
-  });
481
+  })
486
 }
482
 }
487
 
483
 
488
 export function UpdateMacheineTwo(data) {
484
 export function UpdateMacheineTwo(data) {
489
   return request({
485
   return request({
490
-    url: "/api/manage/updatemacheinettwo",
491
-    method: "post",
486
+    url: '/api/manage/updatemacheinettwo',
487
+    method: 'post',
492
     data: data
488
     data: data
493
-  });
489
+  })
494
 }
490
 }
495
 
491
 
496
 export function getBedForm(id, params) {
492
 export function getBedForm(id, params) {
497
   return request({
493
   return request({
498
-    url: "/api/manage/getbedform?id=" + id,
499
-    method: "get",
494
+    url: '/api/manage/getbedform?id=' + id,
495
+    method: 'get',
500
     params: params
496
     params: params
501
-  });
497
+  })
502
 }
498
 }
503
 
499
 
504
 export function getTotalCount(params) {
500
 export function getTotalCount(params) {
505
   return request({
501
   return request({
506
-    url: "/api/manage/gettotalcount",
507
-    method: "Get",
502
+    url: '/api/manage/gettotalcount',
503
+    method: 'Get',
508
     params: params
504
     params: params
509
-  });
505
+  })
510
 }
506
 }
511
 
507
 
512
 export function getTotalNumber(id, params) {
508
 export function getTotalNumber(id, params) {
513
   return request({
509
   return request({
514
-    url: "/api/manage/getotalnumber?id=" + id,
515
-    method: "Get",
510
+    url: '/api/manage/getotalnumber?id=' + id,
511
+    method: 'Get',
516
     params: params
512
     params: params
517
-  });
513
+  })
518
 }
514
 }
519
 
515
 
520
 export function getTimeWarning(id, params) {
516
 export function getTimeWarning(id, params) {
521
   return request({
517
   return request({
522
-    url: "/api/manage/gettimewarning?id=" + id,
523
-    method: "Get",
518
+    url: '/api/manage/gettimewarning?id=' + id,
519
+    method: 'Get',
524
     params: params
520
     params: params
525
-  });
521
+  })
526
 }
522
 }
527
 
523
 
528
 export function SaveManageInfoTwo(data, beds) {
524
 export function SaveManageInfoTwo(data, beds) {
529
-  console.log("data", beds);
525
+  console.log('data', beds)
530
   return request({
526
   return request({
531
-    url: "/api/manage/savemanageinfotwo?beds=" + beds,
532
-    method: "post",
527
+    url: '/api/manage/savemanageinfotwo?beds=' + beds,
528
+    method: 'post',
533
     data: data
529
     data: data
534
-  });
530
+  })
535
 }
531
 }
536
 
532
 
537
 export function getAllpatient(params) {
533
 export function getAllpatient(params) {
538
   return request({
534
   return request({
539
-    url: "/api/manage/getallpatient",
540
-    method: "get",
535
+    url: '/api/manage/getallpatient',
536
+    method: 'get',
541
     params: params
537
     params: params
542
-  });
538
+  })
543
 }
539
 }
544
 
540
 
545
 export function changeBed(id, params) {
541
 export function changeBed(id, params) {
546
   return request({
542
   return request({
547
-    url: "/api/manage/changebed?id=" + id,
548
-    method: "get",
543
+    url: '/api/manage/changebed?id=' + id,
544
+    method: 'get',
549
     params: params
545
     params: params
550
-  });
546
+  })
551
 }
547
 }
552
 
548
 
553
 export function getPatientDetail(id, params) {
549
 export function getPatientDetail(id, params) {
554
   return request({
550
   return request({
555
-    url: "/api/manage/getpatientdetail?id=" + id,
556
-    method: "get",
551
+    url: '/api/manage/getpatientdetail?id=' + id,
552
+    method: 'get',
557
     params: params
553
     params: params
558
-  });
554
+  })
559
 }
555
 }
560
 
556
 
561
 export function changeRun(id, data) {
557
 export function changeRun(id, data) {
562
   return request({
558
   return request({
563
-    url: "/api/manage/changrun?id=" + id,
564
-    method: "post",
559
+    url: '/api/manage/changrun?id=' + id,
560
+    method: 'post',
565
     data: data
561
     data: data
566
-  });
562
+  })
567
 }
563
 }
568
 
564
 
569
 export function getRemanderData(params) {
565
 export function getRemanderData(params) {
570
   return request({
566
   return request({
571
-    url: "/api/manage/getremanderdata",
572
-    method: "get",
567
+    url: '/api/manage/getremanderdata',
568
+    method: 'get',
573
     params: params
569
     params: params
574
-  });
570
+  })
575
 }
571
 }
576
 
572
 
577
 export function openDelete(id, params) {
573
 export function openDelete(id, params) {
578
   return request({
574
   return request({
579
-    url: "/api/manage/opendelete?id=" + id,
580
-    method: "delete",
575
+    url: '/api/manage/opendelete?id=' + id,
576
+    method: 'delete',
581
     params: params
577
     params: params
582
-  });
578
+  })
583
 }
579
 }
584
 
580
 
585
 export function DeleteUserLogin(id, params) {
581
 export function DeleteUserLogin(id, params) {
586
   return request({
582
   return request({
587
-    url: "/api/manage/deleteuserlogin?id=" + id,
588
-    method: "delete",
583
+    url: '/api/manage/deleteuserlogin?id=' + id,
584
+    method: 'delete',
589
     params: params
585
     params: params
590
-  });
586
+  })
591
 }
587
 }
592
 
588
 
593
 export function DeleteCultrues(id, params) {
589
 export function DeleteCultrues(id, params) {
594
   return request({
590
   return request({
595
-    url: "/api/manage/deletecultrues?id=" + id,
596
-    method: "delete",
591
+    url: '/api/manage/deletecultrues?id=' + id,
592
+    method: 'delete',
597
     params: params
593
     params: params
598
-  });
594
+  })
599
 }
595
 }
600
 
596
 
601
 export function DeleteDialystates(id, params) {
597
 export function DeleteDialystates(id, params) {
602
   return request({
598
   return request({
603
-    url: "/api/manage/deletedialystates?id=" + id,
604
-    method: "delete",
599
+    url: '/api/manage/deletedialystates?id=' + id,
600
+    method: 'delete',
605
     params: params
601
     params: params
606
-  });
602
+  })
607
 }
603
 }
608
 
604
 
609
 export function DeleteIons(id, params) {
605
 export function DeleteIons(id, params) {
610
   return request({
606
   return request({
611
-    url: "/api/manage/deleteions?id=" + id,
612
-    method: "delete",
607
+    url: '/api/manage/deleteions?id=' + id,
608
+    method: 'delete',
613
     params: params
609
     params: params
614
-  });
610
+  })
615
 }
611
 }
616
 
612
 
617
 export function DeleteRepairs(id, params) {
613
 export function DeleteRepairs(id, params) {
618
   return request({
614
   return request({
619
-    url: "/api/manage/deleterepairs?id=" + id,
620
-    method: "delete",
615
+    url: '/api/manage/deleterepairs?id=' + id,
616
+    method: 'delete',
621
     params: params
617
     params: params
622
-  });
618
+  })
623
 }
619
 }
624
 
620
 
625
 export function SaveMode(data) {
621
 export function SaveMode(data) {
626
   return request({
622
   return request({
627
-    url: "/api/manage/savemode",
628
-    method: "post",
623
+    url: '/api/manage/savemode',
624
+    method: 'post',
629
     data: data
625
     data: data
630
-  });
626
+  })
631
 }
627
 }
632
 
628
 
633
 export function getAllMode(params) {
629
 export function getAllMode(params) {
634
   return request({
630
   return request({
635
-    url: "/api/manage/getallmode",
636
-    method: "get",
631
+    url: '/api/manage/getallmode',
632
+    method: 'get',
637
     params: params
633
     params: params
638
-  });
634
+  })
639
 }
635
 }
640
 
636
 
641
 export function EditMode(id, params) {
637
 export function EditMode(id, params) {
642
   return request({
638
   return request({
643
-    url: "/api/manage/editmode?id=" + id,
644
-    method: "get",
639
+    url: '/api/manage/editmode?id=' + id,
640
+    method: 'get',
645
     params: params
641
     params: params
646
-  });
642
+  })
647
 }
643
 }
648
 
644
 
649
 export function UpdateMode(id, data) {
645
 export function UpdateMode(id, data) {
650
   return request({
646
   return request({
651
-    url: "/api/manage/updatemode?id=" + id,
652
-    method: "post",
647
+    url: '/api/manage/updatemode?id=' + id,
648
+    method: 'post',
653
     data: data
649
     data: data
654
-  });
650
+  })
655
 }
651
 }
656
 
652
 
657
 export function DeleteMode(id, params) {
653
 export function DeleteMode(id, params) {
658
   return request({
654
   return request({
659
-    url: "/api/manage/deletemode?id=" + id,
660
-    method: "delete",
655
+    url: '/api/manage/deletemode?id=' + id,
656
+    method: 'delete',
661
     params: params
657
     params: params
662
-  });
658
+  })
663
 }
659
 }

+ 6 - 6
src/xt_pages/dialysis/schedualPatient.vue Vedi File

6
   <div class="app-container">
6
   <div class="app-container">
7
     <div class="cell clearfix">
7
     <div class="cell clearfix">
8
       <!-- <label class="title"><span class="name">病人查询</span> : </label> -->
8
       <!-- <label class="title"><span class="name">病人查询</span> : </label> -->
9
-      <el-input size="small" style="width: 280px;" v-model="search_input" class="filter-item"/>
9
+      <el-input size="small" style="width: 280px;" v-model.trim="search_input" class="filter-item"/>
10
       <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="searchAction">搜索</el-button>
10
       <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="searchAction">搜索</el-button>
11
     </div>
11
     </div>
12
     <div class="cell clearfix">
12
     <div class="cell clearfix">
61
       return {
61
       return {
62
         crumbs: [
62
         crumbs: [
63
           { path: false, name: '透析管理' },
63
           { path: false, name: '透析管理' },
64
-          { path: 'dialysis/dialysisrecord', name: '透析记录' },
64
+          { path: 'dialysis/dialysisrecord', name: '透析记录' }
65
         ],
65
         ],
66
         selected_date: new Date(), // this.$store.getters.app.dialysis_area.schedule_date,
66
         selected_date: new Date(), // this.$store.getters.app.dialysis_area.schedule_date,
67
         schedule_type_selected: 0, // this.$store.getters.app.dialysis_area.schedule_type_select_index,
67
         schedule_type_selected: 0, // this.$store.getters.app.dialysis_area.schedule_type_select_index,
187
     created() {
187
     created() {
188
       var schedule_type_selected = this.$store.getters.schedule_type_selected
188
       var schedule_type_selected = this.$store.getters.schedule_type_selected
189
       var zone_selected = this.$store.getters.zone_selected
189
       var zone_selected = this.$store.getters.zone_selected
190
-      if(schedule_type_selected){
190
+      if (schedule_type_selected) {
191
         this.schedule_type_selected = schedule_type_selected.schedule_type_selected
191
         this.schedule_type_selected = schedule_type_selected.schedule_type_selected
192
       }
192
       }
193
-      if(zone_selected){
193
+      if (zone_selected) {
194
         this.zone_selected = zone_selected.zone_selected
194
         this.zone_selected = zone_selected.zone_selected
195
       }
195
       }
196
       this.getInitData()
196
       this.getInitData()
198
     methods: {
198
     methods: {
199
       handletimeType: function(index) {
199
       handletimeType: function(index) {
200
         this.schedule_type_selected = index
200
         this.schedule_type_selected = index
201
-        this.$store.dispatch("SetScheduleTypeSelected",{schedule_type_selected:index})
201
+        this.$store.dispatch('SetScheduleTypeSelected', { schedule_type_selected: index })
202
         this.search_keyword = this.search_input = ''
202
         this.search_keyword = this.search_input = ''
203
         // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
203
         // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
204
         //   zone: this.zone_selected,
204
         //   zone: this.zone_selected,
208
       },
208
       },
209
       handleZoneChange: function(index) {
209
       handleZoneChange: function(index) {
210
         this.zone_selected = index
210
         this.zone_selected = index
211
-        this.$store.dispatch("SetZoneSelected",{zone_selected:index})
211
+        this.$store.dispatch('SetZoneSelected', { zone_selected: index })
212
         this.search_keyword = this.search_input = ''
212
         this.search_keyword = this.search_input = ''
213
         // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
213
         // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
214
         //   zone: this.zone_selected,
214
         //   zone: this.zone_selected,

File diff suppressed because it is too large
+ 2459 - 1563
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue


+ 9 - 9
src/xt_pages/management/home.vue Vedi File

2651
         this.getMachineDetailById(val.id)
2651
         this.getMachineDetailById(val.id)
2652
         this.equimentid = val.id
2652
         this.equimentid = val.id
2653
         this.userdata = val.id
2653
         this.userdata = val.id
2654
-        this.getAllPlanDetail(val.unit_type, val.bed_id)
2654
+        this.getAllPlanDetail(val.unit_type)
2655
         this.getPatientInfo(val.id)
2655
         this.getPatientInfo(val.id)
2656
         // 获取基本信息
2656
         // 获取基本信息
2657
         this.getUserRegister(val.id)
2657
         this.getUserRegister(val.id)
3070
           this.form.rubbish_reason = ''
3070
           this.form.rubbish_reason = ''
3071
         }
3071
         }
3072
       },
3072
       },
3073
-      getAllPlan(bedid) {
3074
-        getAllPlan(bedid).then(response => {
3073
+      getAllPlan() {
3074
+        getAllPlan().then(response => {
3075
           if (response.data.state === 1) {
3075
           if (response.data.state === 1) {
3076
             var plan = response.data.data.plan
3076
             var plan = response.data.data.plan
3077
 
3077
 
3204
           }
3204
           }
3205
         })
3205
         })
3206
       },
3206
       },
3207
-      getAllPlanDetail(unit_type, bedid) {
3208
-        getAllPlanDetail(unit_type, bedid).then(response => {
3207
+      getAllPlanDetail(unit_type) {
3208
+        getAllPlanDetail(unit_type).then(response => {
3209
           if (response.data.state === 1) {
3209
           if (response.data.state === 1) {
3210
             var plandetail = response.data.data.plandetail
3210
             var plandetail = response.data.data.plandetail
3211
             console.log('plandetail', plandetail)
3211
             console.log('plandetail', plandetail)
3393
             var plan = response.data.data.plan
3393
             var plan = response.data.data.plan
3394
             this.dialogVisible = false
3394
             this.dialogVisible = false
3395
             this.$message.success('修改成功')
3395
             this.$message.success('修改成功')
3396
-            this.getAllPlanDetail(this.unitType, this.$route.query.bedid)
3397
-            this.getAllPlan(this.$route.query.bedid)
3396
+            this.getAllPlanDetail(this.unitType)
3397
+            this.getAllPlan()
3398
           }
3398
           }
3399
         })
3399
         })
3400
       },
3400
       },
4235
       // 通过自组建传值改变表格数据
4235
       // 通过自组建传值改变表格数据
4236
       getPlanData(data) {
4236
       getPlanData(data) {
4237
         if (data === 1) {
4237
         if (data === 1) {
4238
-          this.getAllPlanDetail(this.unitType, this.$route.query.bedid)
4238
+          this.getAllPlanDetail(this.unitType)
4239
         }
4239
         }
4240
       },
4240
       },
4241
       getAllMode() {
4241
       getAllMode() {
4253
       // var id = this.$route.query.id
4253
       // var id = this.$route.query.id
4254
       // this.equimentid = id
4254
       // this.equimentid = id
4255
       this.bedid = bedid
4255
       this.bedid = bedid
4256
-      this.getAllPlan(bedid)
4256
+      this.getAllPlan()
4257
       this.getAllEquimentName()
4257
       this.getAllEquimentName()
4258
       this.getAllOrganization()
4258
       this.getAllOrganization()
4259
       this.getOrgName()
4259
       this.getOrgName()

+ 1 - 1
src/xt_pages/management/index.vue Vedi File

16
       <div class="cell clearfix">
16
       <div class="cell clearfix">
17
         <el-input
17
         <el-input
18
           style="width: 400px;"
18
           style="width: 400px;"
19
-          v-model="listQuery.searchKey"
19
+          v-model.trim="listQuery.searchKey"
20
           class="filter-item"
20
           class="filter-item"
21
           placeholder="输入序列号/设备名/型号搜索"
21
           placeholder="输入序列号/设备名/型号搜索"
22
           size="small"
22
           size="small"

+ 1 - 1
src/xt_pages/qcd/patientAnalysis/total.vue Vedi File

10
         <el-form :inline="true" :model="listQuery">
10
         <el-form :inline="true" :model="listQuery">
11
           <el-form-item label="">
11
           <el-form-item label="">
12
             <el-input
12
             <el-input
13
-              v-model="listQuery.search"
13
+              v-model.trim="listQuery.search"
14
               placeholder="姓名/透析号"
14
               placeholder="姓名/透析号"
15
               style="width: 377px;"
15
               style="width: 377px;"
16
             ></el-input>
16
             ></el-input>

+ 1 - 1
src/xt_pages/sign/index.vue Vedi File

9
             <el-col :span="8">
9
             <el-col :span="8">
10
                 <div class="dataTitle">患者列表</div>
10
                 <div class="dataTitle">患者列表</div>
11
                 <div style="margin-bottom: 10px;">
11
                 <div style="margin-bottom: 10px;">
12
-                    <el-input v-model="queryParams.keywords" placeholder="姓名/透析号" style="width: 150px;" @change="changeSearch"></el-input>&nbsp;
12
+                    <el-input v-model.trim="queryParams.keywords" placeholder="姓名/透析号" style="width: 150px;" @change="changeSearch"></el-input>&nbsp;
13
                     <el-button type="primary" @change="changeSearch" icon="el-icon-search">搜索</el-button>&nbsp;&nbsp;&nbsp;&nbsp;
13
                     <el-button type="primary" @change="changeSearch" icon="el-icon-search">搜索</el-button>&nbsp;&nbsp;&nbsp;&nbsp;
14
                     <el-select v-model="queryParams.schedule_type" style="width: 100px;" @change="changeSearch">
14
                     <el-select v-model="queryParams.schedule_type" style="width: 100px;" @change="changeSearch">
15
                     <el-option v-for="item in shiftOptions" :label="item.label" :value="item.value" :key="item.value"></el-option>
15
                     <el-option v-for="item in shiftOptions" :label="item.label" :value="item.value" :key="item.value"></el-option>

+ 1 - 1
src/xt_pages/stock/cancelStockOrder.vue Vedi File

19
           size="small"
19
           size="small"
20
           style="width: 400px;"
20
           style="width: 400px;"
21
           class="filter-item"
21
           class="filter-item"
22
-          v-model="searchKey"
22
+          v-model.trim="searchKey"
23
           placeholder="单据编码/制单人/厂商"
23
           placeholder="单据编码/制单人/厂商"
24
         />
24
         />
25
         <el-button
25
         <el-button

+ 1 - 1
src/xt_pages/stock/detail/cancelStockDetail.vue Vedi File

13
         size="small"
13
         size="small"
14
         style="width: 400px;"
14
         style="width: 400px;"
15
         class="filter-item"
15
         class="filter-item"
16
-        v-model="searchKey"
16
+        v-model.trim="searchKey"
17
         placeholder="单据编码/制单人/规格名称"
17
         placeholder="单据编码/制单人/规格名称"
18
       />
18
       />
19
       <el-button
19
       <el-button

+ 1 - 1
src/xt_pages/stock/detail/stockInDetail.vue Vedi File

14
         size="small"
14
         size="small"
15
         style="width: 400px;"
15
         style="width: 400px;"
16
         class="filter-item"
16
         class="filter-item"
17
-        v-model="searchKey"
17
+        v-model.trim="searchKey"
18
         placeholder="单据编码/制单人/规格名称"
18
         placeholder="单据编码/制单人/规格名称"
19
       />
19
       />
20
       <el-button
20
       <el-button

+ 1 - 1
src/xt_pages/stock/detail/stockOutDetail.vue Vedi File

13
         size="small"
13
         size="small"
14
         style="width: 400px;"
14
         style="width: 400px;"
15
         class="filter-item"
15
         class="filter-item"
16
-        v-model="searchKey"
16
+        v-model.trim="searchKey"
17
         placeholder="单据编码/制单人/规格名称"
17
         placeholder="单据编码/制单人/规格名称"
18
       />
18
       />
19
       <el-button
19
       <el-button

+ 1 - 1
src/xt_pages/stock/otherCancelStockOrder.vue Vedi File

19
           size="small"
19
           size="small"
20
           style="width: 400px;"
20
           style="width: 400px;"
21
           class="filter-item"
21
           class="filter-item"
22
-          v-model="searchKey"
22
+          v-model.trim="searchKey"
23
           placeholder="单据编码/制单人/厂商"
23
           placeholder="单据编码/制单人/厂商"
24
         />
24
         />
25
         <el-button
25
         <el-button

+ 1 - 1
src/xt_pages/stock/otherSalesReturnOrder.vue Vedi File

19
           size="small"
19
           size="small"
20
           style="width: 400px;"
20
           style="width: 400px;"
21
           class="filter-item"
21
           class="filter-item"
22
-          v-model="searchKey"
22
+          v-model.trim="searchKey"
23
           placeholder="单据编码/制单人/厂商"
23
           placeholder="单据编码/制单人/厂商"
24
         />
24
         />
25
         <el-button
25
         <el-button

+ 1 - 1
src/xt_pages/stock/otherStockInOrder.vue Vedi File

20
           size="small"
20
           size="small"
21
           style="width: 400px;"
21
           style="width: 400px;"
22
           class="filter-item"
22
           class="filter-item"
23
-          v-model="searchKey"
23
+          v-model.trim="searchKey"
24
           placeholder="单据编码/制单人/厂商"
24
           placeholder="单据编码/制单人/厂商"
25
         />
25
         />
26
         <el-button
26
         <el-button

+ 1 - 1
src/xt_pages/stock/otherStockOutOrder.vue Vedi File

18
           size="small"
18
           size="small"
19
           style="width: 400px;"
19
           style="width: 400px;"
20
           class="filter-item"
20
           class="filter-item"
21
-          v-model="searchKey"
21
+          v-model.trim="searchKey"
22
           placeholder="单据编码/制单人/厂商"
22
           placeholder="单据编码/制单人/厂商"
23
         />
23
         />
24
         <el-button
24
         <el-button

+ 1 - 1
src/xt_pages/stock/salesReturnOrder.vue Vedi File

18
         <el-input
18
         <el-input
19
           style="width: 400px;"
19
           style="width: 400px;"
20
           class="filter-item"
20
           class="filter-item"
21
-          v-model="searchKey"
21
+          v-model.trim="searchKey"
22
           placeholder="单据编码/制单人/厂商"
22
           placeholder="单据编码/制单人/厂商"
23
         />
23
         />
24
         <el-button
24
         <el-button

+ 1 - 1
src/xt_pages/stock/stockDetail.vue Vedi File

12
 
12
 
13
 
13
 
14
       <div class="cell clearfix" >
14
       <div class="cell clearfix" >
15
-        <el-input size="small" style="width: 400px;" class="filter-item" v-model="searchKey" placeholder="单据编码/制单人/厂商"/>
15
+        <el-input size="small" style="width: 400px;" class="filter-item" v-model.trim="searchKey" placeholder="单据编码/制单人/厂商"/>
16
         <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
16
         <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
17
       </div>
17
       </div>
18
 
18
 

+ 1 - 1
src/xt_pages/stock/stockInOrder.vue Vedi File

19
         <el-input
19
         <el-input
20
           size="small"
20
           size="small"
21
           style="width: 400px;"
21
           style="width: 400px;"
22
-          v-model="searchKey"
22
+          v-model.trim="searchKey"
23
           class="filter-item"
23
           class="filter-item"
24
           placeholder="单据编码/制单人/厂商"
24
           placeholder="单据编码/制单人/厂商"
25
         />
25
         />

+ 122 - 122
src/xt_pages/stock/stockOutOrder.vue Vedi File

18
           size="small"
18
           size="small"
19
           style="width: 400px;"
19
           style="width: 400px;"
20
           class="filter-item"
20
           class="filter-item"
21
-          v-model="searchKey"
21
+          v-model.trim="searchKey"
22
           placeholder="单据编码/制单人/厂商"
22
           placeholder="单据编码/制单人/厂商"
23
         />
23
         />
24
         <el-button
24
         <el-button
168
 </template>
168
 </template>
169
 
169
 
170
 <script>
170
 <script>
171
-import { uParseTime } from '@/utils/tools'
172
-import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from '@/api/doctor'
171
+import { uParseTime } from "@/utils/tools";
172
+import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from "@/api/doctor";
173
 
173
 
174
 import {
174
 import {
175
   deleteWarehouseOut,
175
   deleteWarehouseOut,
176
   GetAllConfig,
176
   GetAllConfig,
177
   getWarehouseOutList
177
   getWarehouseOutList
178
-} from '@/api/stock'
179
-import BreadCrumb from '../components/bread-crumb'
178
+} from "@/api/stock";
179
+import BreadCrumb from "../components/bread-crumb";
180
 
180
 
181
 export default {
181
 export default {
182
-  name: 'salesReturnOrder',
182
+  name: "salesReturnOrder",
183
   components: { BreadCrumb },
183
   components: { BreadCrumb },
184
   created() {
184
   created() {
185
-    var nowDate = new Date()
186
-    var nowYear = nowDate.getFullYear()
187
-    var nowMonth = nowDate.getMonth() + 1
188
-    var nowDay = nowDate.getDate()
185
+    var nowDate = new Date();
186
+    var nowYear = nowDate.getFullYear();
187
+    var nowMonth = nowDate.getMonth() + 1;
188
+    var nowDay = nowDate.getDate();
189
     this.end_time =
189
     this.end_time =
190
       nowYear +
190
       nowYear +
191
-      '-' +
192
-      (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
193
-      '-' +
194
-      (nowDay < 10 ? '0' + nowDay : nowDay)
195
-    nowDate.setMonth(nowDate.getMonth() - 1)
196
-    nowYear = nowDate.getFullYear()
197
-    nowMonth = nowDate.getMonth() + 1
198
-    nowDay = nowDate.getDate()
191
+      "-" +
192
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
193
+      "-" +
194
+      (nowDay < 10 ? "0" + nowDay : nowDay);
195
+    nowDate.setMonth(nowDate.getMonth() - 1);
196
+    nowYear = nowDate.getFullYear();
197
+    nowMonth = nowDate.getMonth() + 1;
198
+    nowDay = nowDate.getDate();
199
     this.start_time =
199
     this.start_time =
200
       nowYear +
200
       nowYear +
201
-      '-' +
202
-      (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
203
-      '-' +
204
-      (nowDay < 10 ? '0' + nowDay : nowDay)
205
-    this.GetWarehouseOut()
206
-    this.GetConfigInfo()
207
-    this.fetchAllAdminUsers()
201
+      "-" +
202
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
203
+      "-" +
204
+      (nowDay < 10 ? "0" + nowDay : nowDay);
205
+    this.GetWarehouseOut();
206
+    this.GetConfigInfo();
207
+    this.fetchAllAdminUsers();
208
   },
208
   },
209
   data() {
209
   data() {
210
     return {
210
     return {
211
-      searchKey: '',
211
+      searchKey: "",
212
       crumbs: [
212
       crumbs: [
213
-        { path: false, name: '库存管理' },
214
-        { path: false, name: '出库单' }
213
+        { path: false, name: "库存管理" },
214
+        { path: false, name: "出库单" }
215
       ],
215
       ],
216
       page: 1,
216
       page: 1,
217
       limit: 10,
217
       limit: 10,
221
       pageSelect: 0,
221
       pageSelect: 0,
222
       adminUserOptions: [],
222
       adminUserOptions: [],
223
       multipleSelection: [],
223
       multipleSelection: [],
224
-      signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
225
-      start_time: '',
224
+      signAndWeighBoxPatients: "sign-and-weigh-box-patients",
225
+      start_time: "",
226
       warehouseOutDate: [],
226
       warehouseOutDate: [],
227
-      end_time: '',
227
+      end_time: "",
228
       goodType: [],
228
       goodType: [],
229
       goodInfo: [],
229
       goodInfo: [],
230
       manufacturer: [],
230
       manufacturer: [],
231
       selectedTableData: [],
231
       selectedTableData: [],
232
       dealer: [],
232
       dealer: [],
233
       type: 1
233
       type: 1
234
-    }
234
+    };
235
   },
235
   },
236
   methods: {
236
   methods: {
237
     search: function() {
237
     search: function() {
242
         end_time: this.end_time,
242
         end_time: this.end_time,
243
         type: this.type,
243
         type: this.type,
244
         keywords: this.searchKey
244
         keywords: this.searchKey
245
-      }
246
-      this.warehouseOutDate = []
245
+      };
246
+      this.warehouseOutDate = [];
247
       getWarehouseOutList(Params).then(response => {
247
       getWarehouseOutList(Params).then(response => {
248
         if (response.data.state == 0) {
248
         if (response.data.state == 0) {
249
-          this.$message.error(response.data.msg)
250
-          return false
249
+          this.$message.error(response.data.msg);
250
+          return false;
251
         } else {
251
         } else {
252
-          this.total = response.data.data.total
252
+          this.total = response.data.data.total;
253
           for (let i = 0; i < response.data.data.list.length; i++) {
253
           for (let i = 0; i < response.data.data.list.length; i++) {
254
-            this.warehouseOutDate.push(response.data.data.list[i])
254
+            this.warehouseOutDate.push(response.data.data.list[i]);
255
           }
255
           }
256
         }
256
         }
257
-      })
257
+      });
258
     },
258
     },
259
     AddNewOrder: function() {
259
     AddNewOrder: function() {
260
       this.$router.push({
260
       this.$router.push({
261
-        name: 'stockOutOrderAdd',
261
+        name: "stockOutOrderAdd",
262
         query: { type: this.type }
262
         query: { type: this.type }
263
-      })
263
+      });
264
     },
264
     },
265
     GetWarehouseOut: function() {
265
     GetWarehouseOut: function() {
266
       const Params = {
266
       const Params = {
269
         start_time: this.start_time,
269
         start_time: this.start_time,
270
         end_time: this.end_time,
270
         end_time: this.end_time,
271
         type: this.type
271
         type: this.type
272
-      }
273
-      this.warehouseOutDate = []
272
+      };
273
+      this.warehouseOutDate = [];
274
       getWarehouseOutList(Params).then(response => {
274
       getWarehouseOutList(Params).then(response => {
275
         if (response.data.state == 0) {
275
         if (response.data.state == 0) {
276
-          this.$message.error(response.data.msg)
277
-          return false
276
+          this.$message.error(response.data.msg);
277
+          return false;
278
         } else {
278
         } else {
279
-          this.total = response.data.data.total
279
+          this.total = response.data.data.total;
280
           for (let i = 0; i < response.data.data.list.length; i++) {
280
           for (let i = 0; i < response.data.data.list.length; i++) {
281
-            this.warehouseOutDate.push(response.data.data.list[i])
281
+            this.warehouseOutDate.push(response.data.data.list[i]);
282
           }
282
           }
283
         }
283
         }
284
-      })
284
+      });
285
     },
285
     },
286
     getXuserName(id) {
286
     getXuserName(id) {
287
       if (id <= 0) {
287
       if (id <= 0) {
288
-        return ''
288
+        return "";
289
       }
289
       }
290
-      var name = ''
290
+      var name = "";
291
       if (
291
       if (
292
         this.adminUserOptions == null ||
292
         this.adminUserOptions == null ||
293
-        typeof this.adminUserOptions.length === 'undefined'
293
+        typeof this.adminUserOptions.length === "undefined"
294
       ) {
294
       ) {
295
-        return name
295
+        return name;
296
       }
296
       }
297
-      var leng = this.adminUserOptions.length
297
+      var leng = this.adminUserOptions.length;
298
       if (leng == 0) {
298
       if (leng == 0) {
299
-        return name
299
+        return name;
300
       }
300
       }
301
       for (let index = 0; index < leng; index++) {
301
       for (let index = 0; index < leng; index++) {
302
         if (this.adminUserOptions[index].id == id) {
302
         if (this.adminUserOptions[index].id == id) {
303
-          name = this.adminUserOptions[index].name
304
-          break
303
+          name = this.adminUserOptions[index].name;
304
+          break;
305
         }
305
         }
306
       }
306
       }
307
-      return name
307
+      return name;
308
     },
308
     },
309
     fetchAllAdminUsers() {
309
     fetchAllAdminUsers() {
310
       fetchAllAdminUsers().then(response => {
310
       fetchAllAdminUsers().then(response => {
311
-        console.log(response)
311
+        console.log(response);
312
         if (response.data.state == 1) {
312
         if (response.data.state == 1) {
313
-          this.adminUserOptions = response.data.data.users
314
-          var alen = this.adminUserOptions.length
313
+          this.adminUserOptions = response.data.data.users;
314
+          var alen = this.adminUserOptions.length;
315
           for (let index = 0; index < alen; index++) {
315
           for (let index = 0; index < alen; index++) {
316
             if (this.adminUserOptions[index].user_type == 2) {
316
             if (this.adminUserOptions[index].user_type == 2) {
317
               // this.doctorOptions.push(this.adminUserOptions[index]);
317
               // this.doctorOptions.push(this.adminUserOptions[index]);
318
             }
318
             }
319
           }
319
           }
320
         }
320
         }
321
-      })
321
+      });
322
     },
322
     },
323
     handleSelectionChange: function(val) {
323
     handleSelectionChange: function(val) {
324
-      this.multipleSelection = val
324
+      this.multipleSelection = val;
325
     },
325
     },
326
     handleSizeChange(val) {
326
     handleSizeChange(val) {
327
-      this.limit = val
328
-      this.GetWarehouseOut()
327
+      this.limit = val;
328
+      this.GetWarehouseOut();
329
     },
329
     },
330
     handleCurrentChange(val) {
330
     handleCurrentChange(val) {
331
-      this.page = val
332
-      this.GetWarehouseOut()
331
+      this.page = val;
332
+      this.GetWarehouseOut();
333
     },
333
     },
334
     startTimeChange(val) {
334
     startTimeChange(val) {
335
-      this.GetWarehouseOut()
335
+      this.GetWarehouseOut();
336
     },
336
     },
337
     endTimeChange(val) {
337
     endTimeChange(val) {
338
-      var time = this.getTimestamp(val) - this.getTimestamp(this.start_time)
338
+      var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
339
       if (time < 0) {
339
       if (time < 0) {
340
-        this.$message.error('结束时间不能小于开始时间')
341
-        this.end_time = ''
340
+        this.$message.error("结束时间不能小于开始时间");
341
+        this.end_time = "";
342
       } else {
342
       } else {
343
-        this.GetWarehouseOut()
343
+        this.GetWarehouseOut();
344
       }
344
       }
345
     },
345
     },
346
     getTimestamp(time) {
346
     getTimestamp(time) {
347
       // 把时间日期转成时间戳
347
       // 把时间日期转成时间戳
348
-      return new Date(time).getTime() / 1000
348
+      return new Date(time).getTime() / 1000;
349
     },
349
     },
350
     calculate: function(val) {
350
     calculate: function(val) {
351
-      return Math.round(parseFloat(val) * 100) / 100
351
+      return Math.round(parseFloat(val) * 100) / 100;
352
     },
352
     },
353
     GetConfigInfo: function() {
353
     GetConfigInfo: function() {
354
       GetAllConfig().then(response => {
354
       GetAllConfig().then(response => {
355
         if (response.data.state == 0) {
355
         if (response.data.state == 0) {
356
-          this.$message.error(response.data.msg)
357
-          return false
356
+          this.$message.error(response.data.msg);
357
+          return false;
358
         } else {
358
         } else {
359
-          this.manufacturer = response.data.data.manufacturer
360
-          this.dealer = response.data.data.dealer
359
+          this.manufacturer = response.data.data.manufacturer;
360
+          this.dealer = response.data.data.dealer;
361
         }
361
         }
362
-      })
362
+      });
363
     },
363
     },
364
     getManufactuerName: function(manufacturer_id) {
364
     getManufactuerName: function(manufacturer_id) {
365
       for (let i = 0; i < this.manufacturer.length; i++) {
365
       for (let i = 0; i < this.manufacturer.length; i++) {
366
         if (this.manufacturer[i].id == manufacturer_id) {
366
         if (this.manufacturer[i].id == manufacturer_id) {
367
-          return this.manufacturer[i].manufacturer_name
367
+          return this.manufacturer[i].manufacturer_name;
368
         }
368
         }
369
       }
369
       }
370
     },
370
     },
371
     getDealerName: function(dealer_id) {
371
     getDealerName: function(dealer_id) {
372
       for (let i = 0; i < this.dealer.length; i++) {
372
       for (let i = 0; i < this.dealer.length; i++) {
373
         if (this.dealer[i].id == dealer_id) {
373
         if (this.dealer[i].id == dealer_id) {
374
-          return this.dealer[i].dealer_name
374
+          return this.dealer[i].dealer_name;
375
         }
375
         }
376
       }
376
       }
377
     },
377
     },
378
     handleEdit: function(index, row) {
378
     handleEdit: function(index, row) {
379
       this.$router.push({
379
       this.$router.push({
380
-        name: 'stockOutDetail',
380
+        name: "stockOutDetail",
381
         query: { id: row.id, type: this.type }
381
         query: { id: row.id, type: this.type }
382
-      })
382
+      });
383
     },
383
     },
384
     handleDelete: function(index, row) {
384
     handleDelete: function(index, row) {
385
-      const ids = []
386
-      ids.push(row.id)
387
-      const idStr = ids.join(',')
385
+      const ids = [];
386
+      ids.push(row.id);
387
+      const idStr = ids.join(",");
388
 
388
 
389
       const params = {
389
       const params = {
390
         ids: idStr
390
         ids: idStr
391
-      }
391
+      };
392
 
392
 
393
-      this.$confirm('确认删除出库单记录?', '删除出库单记录', {
394
-        confirmButtonText: '确定',
395
-        cancelButtonText: '取消',
396
-        type: 'warning'
393
+      this.$confirm("确认删除出库单记录?", "删除出库单记录", {
394
+        confirmButtonText: "确定",
395
+        cancelButtonText: "取消",
396
+        type: "warning"
397
       })
397
       })
398
         .then(() => {
398
         .then(() => {
399
           deleteWarehouseOut(params).then(response => {
399
           deleteWarehouseOut(params).then(response => {
400
             if (response.data.state == 0) {
400
             if (response.data.state == 0) {
401
-              this.$message.error(response.data.msg)
402
-              return false
401
+              this.$message.error(response.data.msg);
402
+              return false;
403
             } else {
403
             } else {
404
               this.$notify({
404
               this.$notify({
405
-                title: '成功',
406
-                message: '删除成功',
407
-                type: 'success',
405
+                title: "成功",
406
+                message: "删除成功",
407
+                type: "success",
408
                 duration: 2000
408
                 duration: 2000
409
-              })
409
+              });
410
               for (let i = 0; i < ids.length; i++) {
410
               for (let i = 0; i < ids.length; i++) {
411
                 for (let y = 0; y < this.warehouseOutDate.length; y++) {
411
                 for (let y = 0; y < this.warehouseOutDate.length; y++) {
412
                   if (ids[i] == this.warehouseOutDate[y].id) {
412
                   if (ids[i] == this.warehouseOutDate[y].id) {
413
-                    this.warehouseOutDate.splice(y, 1)
413
+                    this.warehouseOutDate.splice(y, 1);
414
                   }
414
                   }
415
                 }
415
                 }
416
               }
416
               }
417
             }
417
             }
418
-          })
418
+          });
419
         })
419
         })
420
-        .catch(() => {})
420
+        .catch(() => {});
421
     },
421
     },
422
     changeAllSelected: function(val) {
422
     changeAllSelected: function(val) {
423
       if (val) {
423
       if (val) {
424
-        this.$refs.multipleTable.toggleAllSelection()
424
+        this.$refs.multipleTable.toggleAllSelection();
425
       } else {
425
       } else {
426
-        this.$refs.multipleTable.clearSelection()
426
+        this.$refs.multipleTable.clearSelection();
427
       }
427
       }
428
     },
428
     },
429
     select(selection) {
429
     select(selection) {
430
-      this.selectedTableData = selection
430
+      this.selectedTableData = selection;
431
     },
431
     },
432
     batchDelete() {
432
     batchDelete() {
433
       if (this.selectedTableData.length <= 0) {
433
       if (this.selectedTableData.length <= 0) {
434
-        this.$message.error('请选择要删除的记录')
435
-        return
434
+        this.$message.error("请选择要删除的记录");
435
+        return;
436
       }
436
       }
437
-      const ids = []
437
+      const ids = [];
438
       for (let i = 0; i < this.selectedTableData.length; i++) {
438
       for (let i = 0; i < this.selectedTableData.length; i++) {
439
-        ids.push(this.selectedTableData[i].id)
439
+        ids.push(this.selectedTableData[i].id);
440
       }
440
       }
441
-      const idStr = ids.join(',')
441
+      const idStr = ids.join(",");
442
       const params = {
442
       const params = {
443
         ids: idStr
443
         ids: idStr
444
-      }
445
-      this.$confirm('确认删除退货单记录?', '删除退货单记录', {
446
-        confirmButtonText: '确定',
447
-        cancelButtonText: '取消',
448
-        type: 'warning'
444
+      };
445
+      this.$confirm("确认删除退货单记录?", "删除退货单记录", {
446
+        confirmButtonText: "确定",
447
+        cancelButtonText: "取消",
448
+        type: "warning"
449
       })
449
       })
450
         .then(() => {
450
         .then(() => {
451
           deleteWarehouseOut(params).then(response => {
451
           deleteWarehouseOut(params).then(response => {
452
             if (response.data.state == 0) {
452
             if (response.data.state == 0) {
453
-              this.$message.error(response.data.msg)
454
-              return false
453
+              this.$message.error(response.data.msg);
454
+              return false;
455
             } else {
455
             } else {
456
               this.$notify({
456
               this.$notify({
457
-                title: '成功',
458
-                message: '删除成功',
459
-                type: 'success',
457
+                title: "成功",
458
+                message: "删除成功",
459
+                type: "success",
460
                 duration: 2000
460
                 duration: 2000
461
-              })
461
+              });
462
 
462
 
463
               for (let i = 0; i < ids.length; i++) {
463
               for (let i = 0; i < ids.length; i++) {
464
                 for (let y = 0; y < this.warehouseOutDate.length; y++) {
464
                 for (let y = 0; y < this.warehouseOutDate.length; y++) {
465
                   if (ids[i] == this.warehouseOutDate[y].id) {
465
                   if (ids[i] == this.warehouseOutDate[y].id) {
466
-                    this.warehouseOutDate.splice(y, 1)
466
+                    this.warehouseOutDate.splice(y, 1);
467
                   }
467
                   }
468
                 }
468
                 }
469
               }
469
               }
470
             }
470
             }
471
-          })
471
+          });
472
         })
472
         })
473
-        .catch(() => {})
473
+        .catch(() => {});
474
     }
474
     }
475
   }
475
   }
476
-}
476
+};
477
 </script>
477
 </script>
478
 
478
 
479
 <style rel="stylesheet/scss" lang="scss">
479
 <style rel="stylesheet/scss" lang="scss">

+ 2 - 2
src/xt_pages/stock/stockQuery.vue Vedi File

9
           size="small"
9
           size="small"
10
           style="width: 400px;"
10
           style="width: 400px;"
11
           class="filter-item"
11
           class="filter-item"
12
-          v-model="keywords"
12
+          v-model.trim="keywords"
13
           placeholder="商品编码/商品名称/规格名称"
13
           placeholder="商品编码/商品名称/规格名称"
14
         />
14
         />
15
         <el-button
15
         <el-button
166
   methods: {
166
   methods: {
167
     GetAllStockQuery: function() {
167
     GetAllStockQuery: function() {
168
       console.log(this.keywords);
168
       console.log(this.keywords);
169
-      let Params = {
169
+      const Params = {
170
         page: this.page,
170
         page: this.page,
171
         limit: this.limit,
171
         limit: this.limit,
172
         keyword: this.keywords
172
         keyword: this.keywords

+ 8 - 7
src/xt_pages/upload/data/DataCity.vue Vedi File

63
     </div>
63
     </div>
64
     <div v-else>
64
     <div v-else>
65
       <div class="cell clearfix">
65
       <div class="cell clearfix">
66
-        <el-row :gutter="20">
67
-          <el-col :span="24" :offset="6">
68
-            <div>
69
-              质控平台上报配置未完成!请在"质控上报>质控上报配置"中完成集成配置内容,再重新打开此功能。
70
-            </div>
71
-          </el-col>
72
-        </el-row>
66
+        <div class="cellTitle">
67
+          质控平台上报配置未完成!请在"质控上报>质控上报配置"中完成集成配置内容,再重新打开此功能。
68
+        </div>
73
       </div>
69
       </div>
74
     </div>
70
     </div>
75
   </div>
71
   </div>
134
 .marginBottom2 {
130
 .marginBottom2 {
135
   margin-bottom: 20px !important;
131
   margin-bottom: 20px !important;
136
 }
132
 }
133
+.cellTitle {
134
+  width: 100%;
135
+  text-align: center;
136
+  margin-top: 50px;
137
+}
137
 </style>
138
 </style>
138
 
139
 
139
 <style>
140
 <style>

+ 8 - 7
src/xt_pages/upload/data/DataCountry.vue Vedi File

63
     </div>
63
     </div>
64
     <div v-else>
64
     <div v-else>
65
       <div class="cell clearfix">
65
       <div class="cell clearfix">
66
-        <el-row :gutter="20">
67
-          <el-col :span="24" :offset="6">
68
-            <div>
69
-              质控平台上报配置未完成!请在"质控上报>质控上报配置"中完成集成配置内容,再重新打开此功能。
70
-            </div>
71
-          </el-col>
72
-        </el-row>
66
+        <div class="cellTitle">
67
+          质控平台上报配置未完成!请在"质控上报>质控上报配置"中完成集成配置内容,再重新打开此功能。
68
+        </div>
73
       </div>
69
       </div>
74
     </div>
70
     </div>
75
   </div>
71
   </div>
134
 .marginBottom2 {
130
 .marginBottom2 {
135
   margin-bottom: 20px !important;
131
   margin-bottom: 20px !important;
136
 }
132
 }
133
+.cellTitle {
134
+  width: 100%;
135
+  text-align: center;
136
+  margin-top: 50px;
137
+}
137
 </style>
138
 </style>
138
 
139
 
139
 <style>
140
 <style>

+ 8 - 7
src/xt_pages/upload/data/DataProvince.vue Vedi File

64
     </div>
64
     </div>
65
     <div v-else>
65
     <div v-else>
66
       <div class="cell clearfix">
66
       <div class="cell clearfix">
67
-        <el-row :gutter="20">
68
-          <el-col :span="24" :offset="6">
69
-            <div>
70
-              质控平台上报配置未完成!请在"质控上报>质控上报配置"中完成集成配置内容,再重新打开此功能。
71
-            </div>
72
-          </el-col>
73
-        </el-row>
67
+        <div class="cellTitle">
68
+          质控平台上报配置未完成!请在"质控上报>质控上报配置"中完成集成配置内容,再重新打开此功能。
69
+        </div>
74
       </div>
70
       </div>
75
     </div>
71
     </div>
76
   </div>
72
   </div>
135
 .marginBottom2 {
131
 .marginBottom2 {
136
   margin-bottom: 20px !important;
132
   margin-bottom: 20px !important;
137
 }
133
 }
134
+.cellTitle {
135
+  width: 100%;
136
+  text-align: center;
137
+  margin-top: 50px;
138
+}
138
 </style>
139
 </style>
139
 
140
 
140
 <style>
141
 <style>

+ 1 - 1
src/xt_pages/upload/fast/FastInspectionSidebar.vue Vedi File

4
     <el-autocomplete
4
     <el-autocomplete
5
       style="margin:16px 5px"
5
       style="margin:16px 5px"
6
       popper-class="my-autocomplete"
6
       popper-class="my-autocomplete"
7
-      v-model="value"
7
+      v-model.trim="value"
8
       :fetch-suggestions="querySearchAsync"
8
       :fetch-suggestions="querySearchAsync"
9
       :trigger-on-focus="false"
9
       :trigger-on-focus="false"
10
       placeholder="病人名字或者透析号"
10
       placeholder="病人名字或者透析号"

+ 1 - 1
src/xt_pages/upload/fast/FastPatientsSidebar.vue Vedi File

4
     <el-autocomplete
4
     <el-autocomplete
5
       style="margin:16px 5px"
5
       style="margin:16px 5px"
6
       popper-class="my-autocomplete"
6
       popper-class="my-autocomplete"
7
-      v-model="value"
7
+      v-model.trim="value"
8
       :fetch-suggestions="querySearchAsync"
8
       :fetch-suggestions="querySearchAsync"
9
       :trigger-on-focus="false"
9
       :trigger-on-focus="false"
10
       placeholder="病人名字或者透析号"
10
       placeholder="病人名字或者透析号"

+ 1 - 1
src/xt_pages/user/components/PatientSidebar.1.vue Vedi File

4
       <el-autocomplete
4
       <el-autocomplete
5
         style="margin:16px 5px"
5
         style="margin:16px 5px"
6
         popper-class="my-autocomplete"
6
         popper-class="my-autocomplete"
7
-        v-model="value"
7
+        v-model.trim="value"
8
         :fetch-suggestions="querySearchAsync"
8
         :fetch-suggestions="querySearchAsync"
9
         :trigger-on-focus="false"
9
         :trigger-on-focus="false"
10
         placeholder="病人名字或者透析号"
10
         placeholder="病人名字或者透析号"

+ 112 - 102
src/xt_pages/user/components/PatientSidebar.vue Vedi File

4
       <el-autocomplete
4
       <el-autocomplete
5
         style="margin:16px 5px"
5
         style="margin:16px 5px"
6
         popper-class="my-autocomplete"
6
         popper-class="my-autocomplete"
7
-        v-model="value"
7
+        v-model.trim="value"
8
         :fetch-suggestions="querySearchAsync"
8
         :fetch-suggestions="querySearchAsync"
9
         :trigger-on-focus="false"
9
         :trigger-on-focus="false"
10
         placeholder="病人名字或者透析号"
10
         placeholder="病人名字或者透析号"
11
         @select="handleSelect"
11
         @select="handleSelect"
12
-       >
13
-        <i class="el-icon-search el-input__icon" slot="suffix" > </i>
12
+      >
13
+        <i class="el-icon-search el-input__icon" slot="suffix"> </i>
14
         <template slot-scope="{ item }">
14
         <template slot-scope="{ item }">
15
           <div class="name">{{ item.name }}</div>
15
           <div class="name">{{ item.name }}</div>
16
         </template>
16
         </template>
17
       </el-autocomplete>
17
       </el-autocomplete>
18
-      <el-select v-model="selectID" style="margin:0 5px 0px 5px;text-align: center;" @change="changePatient" placeholder="请选择">
18
+      <el-select
19
+        v-model="selectID"
20
+        style="margin:0 5px 0px 5px;text-align: center;"
21
+        @change="changePatient"
22
+        placeholder="请选择"
23
+      >
19
         <el-option
24
         <el-option
20
           v-for="item in patientsList"
25
           v-for="item in patientsList"
21
           :key="item.id"
26
           :key="item.id"
22
           :label="item.name"
27
           :label="item.name"
23
-          :value="item.id">
28
+          :value="item.id"
29
+        >
24
         </el-option>
30
         </el-option>
25
       </el-select>
31
       </el-select>
26
 
32
 
32
         :current-node-key="treeKey"
38
         :current-node-key="treeKey"
33
         :default-expanded-keys="[defaultActive]"
39
         :default-expanded-keys="[defaultActive]"
34
         @node-click="handleNodeClick"
40
         @node-click="handleNodeClick"
35
-        >
41
+      >
36
       </el-tree>
42
       </el-tree>
37
     </div>
43
     </div>
38
     <div class="patient-app-container ">
44
     <div class="patient-app-container ">
39
-      <span class="patient-name">姓名:{{currentPatient.name}} &nbsp;&nbsp; 性别:{{tranSex(currentPatient.gender)}} &nbsp;&nbsp; 年龄:{{tranAge(currentPatient.birthday)}} &nbsp;&nbsp; 透析号:{{currentPatient.dialysis_no}} </span>
45
+      <span class="patient-name"
46
+        >姓名:{{ currentPatient.name }} &nbsp;&nbsp; 性别:{{
47
+          tranSex(currentPatient.gender)
48
+        }}
49
+        &nbsp;&nbsp; 年龄:{{ tranAge(currentPatient.birthday) }} &nbsp;&nbsp;
50
+        透析号:{{ currentPatient.dialysis_no }}
51
+      </span>
40
     </div>
52
     </div>
41
   </div>
53
   </div>
42
-
43
 </template>
54
 </template>
44
 <script>
55
 <script>
45
-import { fetchAllList, PostSearch } from '@/api/patient'
46
-import { jsGetAge, uParseTime } from '@/utils/tools'
56
+import { fetchAllList, PostSearch } from "@/api/patient";
57
+import { jsGetAge, uParseTime } from "@/utils/tools";
47
 
58
 
48
 export default {
59
 export default {
49
-  name: 'patientSidebar',
50
-  value: '',
60
+  name: "patientSidebar",
61
+  value: "",
51
   searchArray: [],
62
   searchArray: [],
52
   props: {
63
   props: {
53
     id: 0,
64
     id: 0,
54
     defaultActive: {
65
     defaultActive: {
55
       type: String,
66
       type: String,
56
-      default: '1-1'
67
+      default: "1-1"
57
     }
68
     }
58
   },
69
   },
59
   data() {
70
   data() {
62
       patientsList: null,
73
       patientsList: null,
63
       currentPatient: {},
74
       currentPatient: {},
64
       selectID: 0,
75
       selectID: 0,
65
-      keyword: '',
66
-      value: '',
67
-      treeKey: '',
76
+      keyword: "",
77
+      value: "",
78
+      treeKey: "",
68
       treeData: [
79
       treeData: [
69
         {
80
         {
70
-          name: '1',
71
-          label: '电子病历',
81
+          name: "1",
82
+          label: "电子病历",
72
           children: [
83
           children: [
73
             {
84
             {
74
-              name: '1-1',
75
-              label: '基本信息'
85
+              name: "1-1",
86
+              label: "基本信息"
76
             },
87
             },
77
             {
88
             {
78
-              name: '1-4',
79
-              label: '医嘱管理'
89
+              name: "1-4",
90
+              label: "医嘱管理"
80
             },
91
             },
81
             {
92
             {
82
-              name: '1-6',
83
-              label: '干体重'
93
+              name: "1-6",
94
+              label: "干体重"
84
             },
95
             },
85
             {
96
             {
86
-              name: '1-2',
87
-              label: '病程管理'
97
+              name: "1-2",
98
+              label: "病程管理"
88
             },
99
             },
89
             {
100
             {
90
-              name: '1-3',
91
-              label: '检验检查'
101
+              name: "1-3",
102
+              label: "检验检查"
92
             },
103
             },
93
             {
104
             {
94
-              name: '1-5',
95
-              label: '抢救记录'
105
+              name: "1-5",
106
+              label: "抢救记录"
96
             }
107
             }
97
-
98
           ]
108
           ]
99
         },
109
         },
100
         {
110
         {
101
-          name: '2',
102
-          label: '透析管理',
111
+          name: "2",
112
+          label: "透析管理",
103
           children: [
113
           children: [
104
             {
114
             {
105
-              name: '2-1',
106
-              label: '长期透析处方'
115
+              name: "2-1",
116
+              label: "长期透析处方"
107
             },
117
             },
108
             {
118
             {
109
-              name: '2-2',
110
-              label: '透析记录'
119
+              name: "2-2",
120
+              label: "透析记录"
111
             },
121
             },
112
             {
122
             {
113
-              name: '2-4',
114
-              label: '排班信息'
123
+              name: "2-4",
124
+              label: "排班信息"
115
             },
125
             },
116
             {
126
             {
117
-              name: '2-5',
118
-              label: '宣教信息'
127
+              name: "2-5",
128
+              label: "宣教信息"
119
             }
129
             }
120
           ]
130
           ]
121
         }
131
         }
122
       ]
132
       ]
123
-    }
133
+    };
124
   },
134
   },
125
   methods: {
135
   methods: {
126
     handleNodeClick(data) {
136
     handleNodeClick(data) {
127
-      var name = data.name
128
-      if (name == '1-1') {
129
-        this.$router.push({ path: '/patients/patient/' + this.id })
130
-      } else if (name == '1-2') {
131
-        this.$router.push({ path: '/patients/course?id=' + this.id })
132
-      } else if (name == '1-3') {
133
-        this.$router.push({ path: '/patients/inspection?id=' + this.id })
134
-      } else if (name == '1-4') {
137
+      var name = data.name;
138
+      if (name == "1-1") {
139
+        this.$router.push({ path: "/patients/patient/" + this.id });
140
+      } else if (name == "1-2") {
141
+        this.$router.push({ path: "/patients/course?id=" + this.id });
142
+      } else if (name == "1-3") {
143
+        this.$router.push({ path: "/patients/inspection?id=" + this.id });
144
+      } else if (name == "1-4") {
135
         this.$router.push({
145
         this.$router.push({
136
-          path: '/patients/patient/' + this.id + '/doctorAdvice'
137
-        })
138
-      } else if (name == '1-6') {
146
+          path: "/patients/patient/" + this.id + "/doctorAdvice"
147
+        });
148
+      } else if (name == "1-6") {
139
         this.$router.push({
149
         this.$router.push({
140
-          path: '/patients/patient/' + this.id + '/dryWeight'
141
-        })
142
-      } else if (name == '1-5') {
143
-        this.$router.push({ path: '/patients/rescue?id=' + this.id })
144
-      } else if (name == '2-1') {
150
+          path: "/patients/patient/" + this.id + "/dryWeight"
151
+        });
152
+      } else if (name == "1-5") {
153
+        this.$router.push({ path: "/patients/rescue?id=" + this.id });
154
+      } else if (name == "2-1") {
145
         this.$router.push({
155
         this.$router.push({
146
-          path: '/patients/patient/' + this.id + '/dialysisSolution'
147
-        })
148
-      } else if (name == '2-2') {
156
+          path: "/patients/patient/" + this.id + "/dialysisSolution"
157
+        });
158
+      } else if (name == "2-2") {
149
         this.$router.push({
159
         this.$router.push({
150
-          path: '/patients/patient/' + this.id + '/dialysisRecord'
151
-        })
152
-      } else if (name == '2-4') {
160
+          path: "/patients/patient/" + this.id + "/dialysisRecord"
161
+        });
162
+      } else if (name == "2-4") {
153
         this.$router.push({
163
         this.$router.push({
154
-          path: '/patients/patient/' + this.id + '/scheduling'
155
-        })
156
-      } else if (name == '2-5') {
164
+          path: "/patients/patient/" + this.id + "/scheduling"
165
+        });
166
+      } else if (name == "2-5") {
157
         this.$router.push({
167
         this.$router.push({
158
-          path: '/patients/patient/' + this.id + '/proeducation'
159
-        })
168
+          path: "/patients/patient/" + this.id + "/proeducation"
169
+        });
160
       }
170
       }
161
     },
171
     },
162
     changePatient(value) {
172
     changePatient(value) {
163
-      console.log(value)
164
-      this.$router.push('/patients/patient/' + value)
173
+      console.log(value);
174
+      this.$router.push("/patients/patient/" + value);
165
     },
175
     },
166
     getList() {
176
     getList() {
167
       fetchAllList().then(response => {
177
       fetchAllList().then(response => {
168
         if (response.data.state == 1) {
178
         if (response.data.state == 1) {
169
-          this.patientsList = response.data.data.patients
170
-          var len = this.patientsList.length
179
+          this.patientsList = response.data.data.patients;
180
+          var len = this.patientsList.length;
171
           if (len > 0) {
181
           if (len > 0) {
172
             for (let index = 0; index < len; index++) {
182
             for (let index = 0; index < len; index++) {
173
               if (this.patientsList[index].id == this.id) {
183
               if (this.patientsList[index].id == this.id) {
174
-                this.currentPatient = this.patientsList[index]
184
+                this.currentPatient = this.patientsList[index];
175
 
185
 
176
-                this.selectID = this.patientsList[index].id
177
-                this.$emit('tran-patient', this.currentPatient)
178
-                break
186
+                this.selectID = this.patientsList[index].id;
187
+                this.$emit("tran-patient", this.currentPatient);
188
+                break;
179
               }
189
               }
180
             }
190
             }
181
           }
191
           }
182
         }
192
         }
183
-      })
193
+      });
184
     },
194
     },
185
     tranAge(birthday) {
195
     tranAge(birthday) {
186
-      var birth = uParseTime(birthday, '{y}-{m}-{d}')
187
-      return jsGetAge(birth, '-')
196
+      var birth = uParseTime(birthday, "{y}-{m}-{d}");
197
+      return jsGetAge(birth, "-");
188
     },
198
     },
189
     tranSex(gender) {
199
     tranSex(gender) {
190
-      var sex = '未知'
200
+      var sex = "未知";
191
       switch (gender) {
201
       switch (gender) {
192
         case 1:
202
         case 1:
193
-          sex = '男'
194
-          break
203
+          sex = "男";
204
+          break;
195
         case 2:
205
         case 2:
196
-          sex = '女'
197
-          break
206
+          sex = "女";
207
+          break;
198
         default:
208
         default:
199
-          break
209
+          break;
200
       }
210
       }
201
-      return sex
211
+      return sex;
202
     },
212
     },
203
     querySearchAsync(keyword, cb) {
213
     querySearchAsync(keyword, cb) {
204
-      let key = ''
214
+      let key = "";
205
       if (keyword != undefined) {
215
       if (keyword != undefined) {
206
-        key = keyword
216
+        key = keyword;
207
       }
217
       }
208
-      let searchArray = []
218
+      let searchArray = [];
209
       PostSearch(key).then(response => {
219
       PostSearch(key).then(response => {
210
         if (response.data.state == 1) {
220
         if (response.data.state == 1) {
211
-          searchArray = response.data.data.patient
212
-          cb(searchArray)
221
+          searchArray = response.data.data.patient;
222
+          cb(searchArray);
213
         } else {
223
         } else {
214
-          this.$message.error(response.data.msg)
215
-          cb([])
224
+          this.$message.error(response.data.msg);
225
+          cb([]);
216
         }
226
         }
217
-      })
227
+      });
218
     },
228
     },
219
     handleSelect(val) {
229
     handleSelect(val) {
220
-      this.$router.push('/patients/patient/' + val.id)
230
+      this.$router.push("/patients/patient/" + val.id);
221
     }
231
     }
222
   },
232
   },
223
   created() {
233
   created() {
224
-    this.treeKey = this.defaultActive
225
-    this.getList()
234
+    this.treeKey = this.defaultActive;
235
+    this.getList();
226
   }
236
   }
227
-}
237
+};
228
 </script>
238
 </script>
229
 
239
 
230
 <style>
240
 <style>
234
   font-weight: 400;
244
   font-weight: 400;
235
 }
245
 }
236
 .patient-menu .el-tree-node__label:hover {
246
 .patient-menu .el-tree-node__label:hover {
237
-  color:#409eff;
247
+  color: #409eff;
238
 }
248
 }
239
 .patient-menu .el-tree-node:focus > .el-tree-node__content {
249
 .patient-menu .el-tree-node:focus > .el-tree-node__content {
240
-  color:#409eff;
250
+  color: #409eff;
241
 }
251
 }
242
 .patient-menu .el-tree-node .el-tree-node.is-current > .el-tree-node__content {
252
 .patient-menu .el-tree-node .el-tree-node.is-current > .el-tree-node__content {
243
-  color:#409eff;
253
+  color: #409eff;
244
 }
254
 }
245
 .patient-menu .el-tree {
255
 .patient-menu .el-tree {
246
   background: #f6f8f9;
256
   background: #f6f8f9;

+ 4 - 5
src/xt_pages/user/patients.vue Vedi File

7
   <div class="app-container">
7
   <div class="app-container">
8
     <div class="cell clearfix">
8
     <div class="cell clearfix">
9
       <!-- <label class="title"><span class="name">病人搜索</span> : </label> -->
9
       <!-- <label class="title"><span class="name">病人搜索</span> : </label> -->
10
-      <el-input   style="width: 400px;" v-model="searchKey" class="filter-item" placeholder="病人姓名/透析号" size="small"/>
10
+      <el-input   style="width: 400px;" v-model.trim="searchKey" class="filter-item" placeholder="病人姓名/透析号" size="small"/>
11
       <el-button  class="filter-item" type="primary" icon="el-icon-search" @click="search" size="small" >搜索</el-button>
11
       <el-button  class="filter-item" type="primary" icon="el-icon-search" @click="search" size="small" >搜索</el-button>
12
     </div>
12
     </div>
13
 
13
 
368
         idcardno: '',
368
         idcardno: '',
369
         phone: '',
369
         phone: '',
370
         healthcareno: '',
370
         healthcareno: '',
371
-        startTime:'',
371
+        startTime: ''
372
       }
372
       }
373
     },
373
     },
374
     created() {
374
     created() {
382
         this.searchKey = keyword
382
         this.searchKey = keyword
383
       }
383
       }
384
     },
384
     },
385
-    
386
-
385
+  
387
     methods: {
386
     methods: {
388
       EditLapseto() {
387
       EditLapseto() {
389
         if (this.lapsetoForm.lapseto_time == '') {
388
         if (this.lapsetoForm.lapseto_time == '') {
612
     // var ehealthcareno = this.Base64.encode(healthcareno)
611
     // var ehealthcareno = this.Base64.encode(healthcareno)
613
     // var edialysisno = this.Base64.encode(dialysis_no)
612
     // var edialysisno = this.Base64.encode(dialysis_no)
614
     var eid = id
613
     var eid = id
615
-    var ename =name
614
+    var ename = name
616
     var egender = gender
615
     var egender = gender
617
     var eidcardno = idcardno
616
     var eidcardno = idcardno
618
     var ephone = phone
617
     var ephone = phone

+ 1 - 1
src/xt_pages/workforce/components/tableData.vue Vedi File

5
         size="small"
5
         size="small"
6
         style="width: 400px;"
6
         style="width: 400px;"
7
         class="filter-item"
7
         class="filter-item"
8
-        v-model="keywords"
8
+        v-model.trim="keywords"
9
         placeholder="病人名称/透析号"
9
         placeholder="病人名称/透析号"
10
       />
10
       />
11
       <el-button
11
       <el-button