Browse Source

bug更新

XMLWAN 5 years ago
parent
commit
fe024d9383

+ 22 - 2
src/api/article.js View File

@@ -12,7 +12,9 @@ export function fetchArticle(id) {
12 12
   return request({
13 13
     url: '/article/detail',
14 14
     method: 'get',
15
-    params: { id }
15
+    params: {
16
+      id
17
+    }
16 18
   })
17 19
 }
18 20
 
@@ -20,7 +22,9 @@ export function fetchPv(pv) {
20 22
   return request({
21 23
     url: '/article/pv',
22 24
     method: 'get',
23
-    params: { pv }
25
+    params: {
26
+      pv
27
+    }
24 28
   })
25 29
 }
26 30
 
@@ -39,3 +43,19 @@ export function updateArticle(data) {
39 43
     data
40 44
   })
41 45
 }
46
+
47
+export function handleUpdateTwo(id, params) {
48
+  return request({
49
+    url: '/article/hanleupdatetwo?id=' + id,
50
+    method: 'get',
51
+    params: params
52
+  })
53
+}
54
+
55
+export function updateDataTwo(id, data) {
56
+  return request({
57
+    url: '/article/updatedatatwo?id=' + id,
58
+    method: 'post',
59
+    data: data
60
+  })
61
+}

+ 1 - 0
src/api/data.js View File

@@ -65,3 +65,4 @@ export function getPrintTemplate() {
65 65
     method: 'get',
66 66
   })
67 67
 }
68
+

+ 109 - 146
src/api/dialysis.js View File

@@ -1,273 +1,236 @@
1 1
 import request from '@/utils/request'
2 2
 
3
-
4
-export function fetchList(params){
3
+export function fetchList(params) {
5 4
   return request({
6
-    url:'/api/patients',
7
-    method:'get',
8
-    params:params
5
+    url: '/api/patients',
6
+    method: 'get',
7
+    params: params
9 8
   })
10 9
 }
11 10
 
12
-
13
-
14
-export function getSchedualPatient(params){
11
+export function getSchedualPatient(params) {
15 12
   return request({
16
-    url:'/api/dialysis/patients',
17
-    method:'get',
18
-    params:params
13
+    url: '/api/dialysis/patients',
14
+    method: 'get',
15
+    params: params
19 16
   })
20 17
 }
21 18
 
22
-
23
-export function PatientInfo(params){
19
+export function PatientInfo(params) {
24 20
   return request({
25
-    url:'/api/dialysis/info',
26
-    method:'get',
27
-    params:params
21
+    url: '/api/dialysis/info',
22
+    method: 'get',
23
+    params: params
28 24
   })
29 25
 }
30 26
 
31
-export function doctorAndNurseList(params){
27
+export function doctorAndNurseList(params) {
32 28
   return request({
33
-    url:'/api/alldoctors',
34
-    method:'get',
35
-    params:params
29
+    url: '/api/alldoctors',
30
+    method: 'get',
31
+    params: params
36 32
   })
37 33
 }
38 34
 
39
-
40
-export function commitDailysisRecord(params){
35
+export function commitDailysisRecord(params) {
41 36
   return request({
42
-    url:'/api/dialysis/record',
43
-    method:'post',
44
-    params:params
37
+    url: '/api/dialysis/record',
38
+    method: 'post',
39
+    params: params
45 40
   })
46 41
 }
47 42
 
48
-export function getGobelInfo(params){
43
+export function getGobelInfo(params) {
49 44
   return request({
50
-    url:'/api/dialysis/golbal',
51
-    method:'post',
52
-    params:params
45
+    url: '/api/dialysis/golbal',
46
+    method: 'post',
47
+    params: params
53 48
   })
54 49
 }
55 50
 
56
-
57
-export function CreateDoctorAdvice(id,dialysisId,record_date,params){
51
+export function CreateDoctorAdvice(id, dialysisId, record_date, params) {
58 52
   return request({
59
-    url:'/api/dialysis/advice/create?id='+id+"&dialysis_id="+dialysisId+"&record_date="+record_date,
60
-    method:'post',
61
-    data:params
53
+    url: '/api/dialysis/advice/create?id=' + id + '&dialysis_id=' + dialysisId + '&record_date=' + record_date,
54
+    method: 'post',
55
+    data: params
62 56
   })
63 57
 }
64 58
 
65
-export function getDoctorAdviceById(params){
59
+export function getDoctorAdviceById(params) {
66 60
   return request({
67
-    url:'/api/dialysis/advice/get',
68
-    method:'get',
69
-    params:params
61
+    url: '/api/dialysis/advice/get',
62
+    method: 'get',
63
+    params: params
70 64
   })
71 65
 }
72 66
 
73
-export function editDoctorAdviceById(params){
67
+export function editDoctorAdviceById(params) {
74 68
   return request({
75
-    url:'/api/dialysis/advice/edit',
76
-    method:'put',
77
-    params:params
69
+    url: '/api/dialysis/advice/edit',
70
+    method: 'put',
71
+    params: params
78 72
   })
79 73
 }
80 74
 
81
-
82
-export function CreateMonitor(params){
75
+export function CreateMonitor(params) {
83 76
   return request({
84
-    url:'/api/dialysis/monitor/create',
85
-    method:'post',
86
-    params:params
77
+    url: '/api/dialysis/monitor/create',
78
+    method: 'post',
79
+    params: params
87 80
   })
88 81
 }
89 82
 
90
-export function DelMonitor(params){
83
+export function DelMonitor(params) {
91 84
   return request({
92
-    url:'/api/dialysis/monitor/del',
93
-    method:'post',
94
-    params:params
85
+    url: '/api/dialysis/monitor/del',
86
+    method: 'post',
87
+    params: params
95 88
   })
96 89
 }
97 90
 
98
-
99
-export function GetAllZone(params){
91
+export function GetAllZone(params) {
100 92
   return request({
101
-    url:'/api/dialysis/zone',
102
-    method:'get',
103
-    params:params
93
+    url: '/api/dialysis/zone',
94
+    method: 'get',
95
+    params: params
104 96
   })
105 97
 }
106 98
 
107
-
108
-export function PostStartRecordInfo(params){
99
+export function PostStartRecordInfo(params) {
109 100
   return request({
110
-    url:'/api/dialysis/start',
111
-    method:'post',
112
-    params:params
101
+    url: '/api/dialysis/start',
102
+    method: 'post',
103
+    params: params
113 104
   })
114 105
 }
115 106
 
116
-export function GetGlobalInfo(params){
107
+export function GetGlobalInfo(params) {
117 108
   return request({
118
-    url:'/api/dialysis/device',
119
-    method:'get',
120
-    params:params
109
+    url: '/api/dialysis/device',
110
+    method: 'get',
111
+    params: params
121 112
   })
122 113
 }
123 114
 
124
-export function GetDeviceInfo(params){
115
+export function GetDeviceInfo(params) {
125 116
   return request({
126
-    url:'/api/dialysis/device',
127
-    method:'get',
128
-    params:params
117
+    url: '/api/dialysis/device',
118
+    method: 'get',
119
+    params: params
129 120
   })
130 121
 }
131 122
 
132
-
133
-export function commitDailysisSolution(params){
123
+export function commitDailysisSolution(params) {
134 124
   return request({
135
-    url:'/api/dialysis/global',
136
-    method:'get',
137
-    params:params
125
+    url: '/api/dialysis/global',
126
+    method: 'get',
127
+    params: params
138 128
   })
139 129
 }
140 130
 
141
-
142
-export function delMonitor(params){
131
+export function delMonitor(params) {
143 132
   return request({
144
-    url:'/api/dialysis/monitor/del',
145
-    method:'post',
146
-    params:params
133
+    url: '/api/dialysis/monitor/del',
134
+    method: 'post',
135
+    params: params
147 136
   })
148 137
 }
149 138
 
150
-
151 139
 export function getDialysisRecord(params) {
140
+  console.log('params容声哦', params)
152 141
   return request({
153
-    url:'/api/dialysis/dialysisorder',
154
-    method:'Get',
155
-    params:params
142
+    url: '/api/dialysis/dialysisorder',
143
+    method: 'Get',
144
+    params: params
156 145
   })
157 146
 }
158 147
 
159
-
160
-
161
-
162
-
163 148
 export function postPrescription(params) {
164 149
   return request({
165
-    url:'/api/dialysis/prescription',
166
-    method:'Post',
167
-    params:params
150
+    url: '/api/dialysis/prescription',
151
+    method: 'Post',
152
+    params: params
168 153
   })
169 154
 }
170 155
 
171
-
172
-
173 156
 export function postSoulution(params) {
174 157
   return request({
175
-    url:'/api/dialysis/soulution',
176
-    method:'Post',
177
-    params:params
158
+    url: '/api/dialysis/soulution',
159
+    method: 'Post',
160
+    params: params
178 161
   })
179 162
 }
180 163
 
181
-
182 164
 export function postDoubleCheck(params) {
183 165
   return request({
184
-    url:'/api/dialysis/dobule',
185
-    method:'Post',
186
-    params:params
166
+    url: '/api/dialysis/dobule',
167
+    method: 'Post',
168
+    params: params
187 169
   })
188 170
 }
189 171
 
190
-
191 172
 export function postAccepts(params) {
192 173
   return request({
193
-    url:'/api/dialysis/accepts',
194
-    method:'Post',
195
-    params:params
174
+    url: '/api/dialysis/accepts',
175
+    method: 'Post',
176
+    params: params
196 177
   })
197 178
 }
198 179
 
199
-
200 180
 export function postAssessmentBeforeDislysis(params) {
201 181
   return request({
202
-    url:'/api/dialysis/assessmentbeforedislysis',
203
-    method:'Post',
204
-    params:params
182
+    url: '/api/dialysis/assessmentbeforedislysis',
183
+    method: 'Post',
184
+    params: params
205 185
   })
206 186
 }
207 187
 
208 188
 export function postTreatmentsummary(params) {
209 189
   return request({
210 190
     url: '/api/dialysis/treatmentsummary',
211
-    method:'Post',
212
-    params:params
191
+    method: 'Post',
192
+    params: params
213 193
   })
214 194
 }
215 195
 
216
-
217
-
218
-
219 196
 export function postAssessmentAfterDislysis(params, data) {
220 197
   return request({
221
-    url:'/api/dialysis/assessmentafterdislysis',
222
-    method:'Post',
223
-    params:params,
224
-    data:data
198
+    url: '/api/dialysis/assessmentafterdislysis',
199
+    method: 'Post',
200
+    params: params,
201
+    data: data
225 202
   })
226 203
 }
227 204
 
228
-
229 205
 export function postDelMonitorInfo(params) {
230 206
   return request({
231
-    url:'/api/dialysis/monitor/del',
232
-    method:'Post',
233
-    params:params,
234
-    data:data
207
+    url: '/api/dialysis/monitor/del',
208
+    method: 'Post',
209
+    params: params,
210
+    data: data
235 211
   })
236 212
 }
237 213
 
238
-
239
-
240
-
241
-
242
-export function CreateGroupAdvice(id, groupno, advices){
214
+export function CreateGroupAdvice(id, groupno, advices) {
243 215
   return request({
244
-    url:'/api/advice_remind/create?id='+id + '&groupno=' + groupno,
245
-    method:'post',
246
-    data:advices,
216
+    url: '/api/advice_remind/create?id=' + id + '&groupno=' + groupno,
217
+    method: 'post',
218
+    data: advices
247 219
   })
248
-
249 220
 }
250 221
 
251
-
252
-
253
-
254
-
255
-export function GetSolution(params){
222
+export function GetSolution(params) {
256 223
   return request({
257
-    url:"/api/solution/get",
258
-    method:'get',
259
-    params:params,
224
+    url: '/api/solution/get',
225
+    method: 'get',
226
+    params: params
260 227
   })
261
-
262 228
 }
263 229
 
264
-
265
-
266
-export function CreateDryWeight(params){
230
+export function CreateDryWeight(params) {
267 231
   return request({
268
-    url:"/api/dryweight/commit",
269
-    method:'post',
270
-    params:params,
232
+    url: '/api/dryweight/commit',
233
+    method: 'post',
234
+    params: params
271 235
   })
272
-
273 236
 }

+ 220 - 220
src/api/manage.js View File

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

+ 51 - 48
src/xt_pages/data/components/table.vue View File

@@ -263,83 +263,86 @@ export default {
263 263
             }
264 264
             const result = response.data.data.dataconfig;
265 265
             // 更新store
266
-            store.dispatch('updateConfigList',result).then(() => {
266
+            store.dispatch("updateConfigList", result).then(() => {});
267 267
 
268
-            })
268
+            this.dialogFormVisible = false;
269 269
 
270
-            this.dialogFormVisible = false
271
-
272
-            this.$message.success("创建成功")
273
-
274
-          })
270
+            this.$message.success("创建成功");
271
+          });
275 272
         }
276
-      })
273
+      });
277 274
     },
278 275
     handleUpdate(row) {
279
-      this.temp = Object.assign({}, row) // copy obj
280
-      this.temp.timestamp = new Date(this.temp.timestamp)
281
-      this.dialogStatus = 'update'
282
-      this.dialogFormVisible = true
276
+      this.temp = Object.assign({}, row); // copy obj
277
+      this.temp.timestamp = new Date(this.temp.timestamp);
278
+      this.dialogStatus = "update";
279
+      this.dialogFormVisible = true;
283 280
       this.$nextTick(() => {
284
-        this.$refs['dataForm'].clearValidate()
285
-      })
281
+        this.$refs["dataForm"].clearValidate();
282
+      });
286 283
     },
287 284
     updateData() {
288
-      this.$refs['dataForm'].validate((valid) => {
285
+      this.$refs["dataForm"].validate(valid => {
289 286
         if (valid) {
290
-          const tempData = Object.assign({}, this.temp)
291
-          tempData.timestamp = +new Date(tempData.timestamp) // change Thu Nov 30 2017 16:41:05 GMT+0800 (CST) to 1512031311464
287
+          const tempData = Object.assign({}, this.temp);
288
+          tempData.timestamp = +new Date(tempData.timestamp); // change Thu Nov 30 2017 16:41:05 GMT+0800 (CST) to 1512031311464
292 289
           updateArticle(tempData).then(() => {
293 290
             for (const v of this.list) {
294 291
               if (v.id === this.temp.id) {
295
-                const index = this.list.indexOf(v)
296
-                this.list.splice(index, 1, this.temp)
297
-                break
292
+                const index = this.list.indexOf(v);
293
+                this.list.splice(index, 1, this.temp);
294
+                break;
298 295
               }
299 296
             }
300
-            this.dialogFormVisible = false
301
-
302
-            this.$message.success("更新成功")
297
+            this.dialogFormVisible = false;
303 298
 
304
-          })
299
+            this.$message.success("更新成功");
300
+          });
305 301
         }
306
-      })
302
+      });
307 303
     },
308 304
     handleDelete(row) {
305
+      this.$message.success("删除成功");
309 306
 
310
-      this.$message.success("删除成功")
311
-
312
-      const index = this.list.indexOf(row)
313
-      this.list.splice(index, 1)
307
+      const index = this.list.indexOf(row);
308
+      this.list.splice(index, 1);
314 309
     },
315 310
     handleFetchPv(pv) {
316 311
       fetchPv(pv).then(response => {
317
-        this.pvData = response.data.pvData
318
-        this.dialogPvVisible = true
319
-      })
312
+        this.pvData = response.data.pvData;
313
+        this.dialogPvVisible = true;
314
+      });
320 315
     },
321 316
     handleDownload() {
322
-      this.downloadLoading = true
323
-      import('@/vendor/Export2Excel').then(excel => {
324
-        const tHeader = ['timestamp', 'title', 'type', 'importance', 'status']
325
-        const filterVal = ['timestamp', 'title', 'type', 'importance', 'status']
326
-        const data = this.formatJson(filterVal, this.list)
317
+      this.downloadLoading = true;
318
+      import("@/vendor/Export2Excel").then(excel => {
319
+        const tHeader = ["timestamp", "title", "type", "importance", "status"];
320
+        const filterVal = [
321
+          "timestamp",
322
+          "title",
323
+          "type",
324
+          "importance",
325
+          "status"
326
+        ];
327
+        const data = this.formatJson(filterVal, this.list);
327 328
         excel.export_json_to_excel({
328 329
           header: tHeader,
329 330
           data,
330
-          filename: 'table-list'
331
-        })
332
-        this.downloadLoading = false
333
-      })
331
+          filename: "table-list"
332
+        });
333
+        this.downloadLoading = false;
334
+      });
334 335
     },
335 336
     formatJson(filterVal, jsonData) {
336
-      return jsonData.map(v => filterVal.map(j => {
337
-        if (j === 'timestamp') {
338
-          return parseTime(v[j])
339
-        } else {
340
-          return v[j]
341
-        }
342
-      }))
337
+      return jsonData.map(v =>
338
+        filterVal.map(j => {
339
+          if (j === "timestamp") {
340
+            return parseTime(v[j]);
341
+          } else {
342
+            return v[j];
343
+          }
344
+        })
345
+      );
343 346
     }
344 347
   }
345 348
 };

+ 2 - 1
src/xt_pages/data/components/tableson.vue View File

@@ -78,7 +78,7 @@
78 78
             <el-form-item label="排序" prop="order">
79 79
               <el-input
80 80
                 type="age"
81
-                v-model.number="temp.order"
81
+                v-model="temp.order"
82 82
                 placeholder="请输入排序值,数值越大,排序越靠前"
83 83
               ></el-input>
84 84
             </el-form-item>
@@ -385,6 +385,7 @@ export default {
385 385
       this.$refs["dataForm"].validate(valid => {
386 386
         if (valid) {
387 387
           const tempData = Object.assign({}, this.temp);
388
+          console.log("tempData", tempData);
388 389
           updateChildConfig(tempData).then(response => {
389 390
             if (!response.data) {
390 391
               // 由于mockjs 不支持自定义状态码只能这样hack

File diff suppressed because it is too large
+ 2128 - 937
src/xt_pages/dialysis/batch_print/batch_print_order.vue


File diff suppressed because it is too large
+ 2282 - 1161
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue


+ 105 - 59
src/xt_pages/dialysis/bloodPresssWatch.1.vue View File

@@ -1,8 +1,15 @@
1 1
 <template>
2
- <div class="main-contain">
2
+  <div class="main-contain">
3 3
     <div class="position">
4
-      <bread-crumb :crumbs='crumbs'></bread-crumb>
5
-      <el-button size="small" icon="el-icon-printer" :disabled="selecting_schs.length == 0" @click="batchPrintAction" type="primary">打印</el-button>
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      <el-button
6
+        size="small"
7
+        icon="el-icon-printer"
8
+        :disabled="selecting_schs.length == 0"
9
+        @click="batchPrintAction"
10
+        type="primary"
11
+        >打印</el-button
12
+      >
6 13
     </div>
7 14
     <div class="app-container">
8 15
       <!-- <div class="filter-container">
@@ -11,7 +18,10 @@
11 18
       </div>-->
12 19
       <div class="cell clearfix">
13 20
         <label class="title">
14
-          <span class="name">{{ search_mode == 1 ? "日期查询" : "病人查询" }}</span> :
21
+          <span class="name">{{
22
+            search_mode == 1 ? "日期查询" : "病人查询"
23
+          }}</span>
24
+          :
15 25
         </label>
16 26
         <el-date-picker
17 27
           v-show="search_mode == 1"
@@ -40,73 +50,109 @@
40 50
             @click="searchPatientAction"
41 51
           ></el-button>
42 52
         </el-input>
43
-        <el-button
44
-          type="primary"
45
-          @click="changeSearchMode"
46
-        >{{ search_mode == 1 ? "改为病人查询" : "改为日期查询" }}</el-button>
53
+        <el-button type="primary" @click="changeSearchMode">{{
54
+          search_mode == 1 ? "改为病人查询" : "改为日期查询"
55
+        }}</el-button>
47 56
         <!-- <el-button type="primary" :disabled="selecting_schs.length == 0" @click="batchPrintAction">打印</el-button> -->
48 57
       </div>
49 58
       <div class="cell clearfix">
50
-        <label class="title">
51
-          <span class="name">排班班次</span> :
52
-        </label>
59
+        <label class="title"> <span class="name">排班班次</span> : </label>
53 60
         <div class="time">
54 61
           <ul class>
55 62
             <li
56
-              :class="item.value==schedulType?'active':''"
63
+              :class="item.value == schedulType ? 'active' : ''"
57 64
               @click="selectSchedulType(item.value)"
58 65
               v-for="item in schedulArr"
59 66
               :key="item.value"
60
-            >{{item.label}}</li>
67
+            >
68
+              {{ item.label }}
69
+            </li>
61 70
           </ul>
62 71
         </div>
63 72
       </div>
64 73
       <div class="cell clearfix">
65
-        <label class="title">
66
-          <span class="name">分区</span> :
67
-        </label>
74
+        <label class="title"> <span class="name">分区</span> : </label>
68 75
         <div class="time">
69 76
           <ul class>
70 77
             <li
71
-              :class="item.id==partitionType?'active':''"
78
+              :class="item.id == partitionType ? 'active' : ''"
72 79
               @click="selectPartitionType(item.id)"
73 80
               v-for="item in partitionArr"
74 81
               :key="item.id"
75
-            >{{item.name}}</li>
82
+            >
83
+              {{ item.name }}
84
+            </li>
76 85
           </ul>
77 86
         </div>
78 87
       </div>
79 88
 
80
-    <el-table
81
-      :data="SchedualPatientsTableData"
82
-      style="width: 100%"
83
-      v-loading="loading"
84
-      @current-change="handleSelectionChange"
85
-      :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
89
+      <el-table
90
+        :data="SchedualPatientsTableData"
91
+        style="width: 100%"
92
+        v-loading="loading"
93
+        @current-change="handleSelectionChange"
94
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
86 95
       >
87
-        <el-table-column type="selection" width="45" align="center"></el-table-column>
88
-        <el-table-column prop="number" label="机号" align="center"></el-table-column>
89
-        <el-table-column label="排班日期" prop="sch_time" align="center" width="120"></el-table-column>
90
-        <el-table-column prop="dialysis_no" label="透析号" align="center"></el-table-column>
91
-        <el-table-column prop="name" label="姓名" align="center"></el-table-column>
96
+        <el-table-column
97
+          type="selection"
98
+          width="45"
99
+          align="center"
100
+        ></el-table-column>
101
+        <el-table-column
102
+          prop="number"
103
+          label="机号"
104
+          align="center"
105
+        ></el-table-column>
106
+        <el-table-column
107
+          label="排班日期"
108
+          prop="sch_time"
109
+          align="center"
110
+          width="120"
111
+        ></el-table-column>
112
+        <el-table-column
113
+          prop="dialysis_no"
114
+          label="透析号"
115
+          align="center"
116
+        ></el-table-column>
117
+        <el-table-column
118
+          prop="name"
119
+          label="姓名"
120
+          align="center"
121
+        ></el-table-column>
92 122
 
93
-        <el-table-column prop="mode_name" label="透析模式" align="center"></el-table-column>
123
+        <el-table-column
124
+          prop="mode_name"
125
+          label="透析模式"
126
+          align="center"
127
+        ></el-table-column>
94 128
 
95
-        <el-table-column prop="dialysis_before_weight" label="透前体重 (kg)" align="center"></el-table-column>
96
-        <el-table-column prop="dialysis_after_weight" label="透后体重 (kg)" align="center"></el-table-column>
129
+        <el-table-column
130
+          prop="dialysis_before_weight"
131
+          label="透前体重 (kg)"
132
+          align="center"
133
+        ></el-table-column>
134
+        <el-table-column
135
+          prop="dialysis_after_weight"
136
+          label="透后体重 (kg)"
137
+          align="center"
138
+        ></el-table-column>
97 139
         <el-table-column label="透中血压">
98
-          <el-table-column v-for="(item, index) in labelArr" :key="index" :label="item">
140
+          <el-table-column
141
+            v-for="(item, index) in labelArr"
142
+            :key="index"
143
+            :label="item"
144
+          >
99 145
             <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
100 146
             <template slot-scope="scope">
101 147
               <!--<span>{{scope.row.bp[index].value}}</span>-->
102
-              <span>{{getValue(scope.row.bp[index])}}</span>
148
+              <span>{{ getValue(scope.row.bp[index]) }}</span>
103 149
             </template>
104 150
           </el-table-column>
105 151
         </el-table-column>
106 152
       </el-table>
107 153
 
108 154
       <el-pagination
109
-      align="right"
155
+        align="right"
110 156
         @current-change="handleCurrentChange"
111 157
         :page-sizes="[10]"
112 158
         :page-size="10"
@@ -119,7 +165,6 @@
119 165
   </div>
120 166
 </template>
121 167
 
122
-
123 168
 <script>
124 169
 import { getSchedualPatient, GetAllZone } from "@/api/dialysis";
125 170
 import { parseTime } from "@/utils";
@@ -129,9 +174,9 @@ export default {
129 174
   name: "Patient",
130 175
   data() {
131 176
     return {
132
-      crumbs:[
133
-        {path:false, name:'透析管理'},
134
-        {path:false, name:'透析监测'},
177
+      crumbs: [
178
+        { path: false, name: "透析管理" },
179
+        { path: false, name: "透析监测" }
135 180
       ],
136 181
       loading: false,
137 182
       time: "",
@@ -226,9 +271,8 @@ export default {
226 271
       });
227 272
     },
228 273
     handleSelectionChange(val) {
229
-      console.log(val);
230 274
       this.selecting_schs = val;
231
-      console.log(this.selecting_schs,this.selecting_schs.length);
275
+      console.log(this.selecting_schs, this.selecting_schs.length);
232 276
     },
233 277
 
234 278
     selectSchedulType(scheduleType) {
@@ -278,11 +322,12 @@ export default {
278 322
           // console.log(response.data.data)
279 323
           for (let i = 0; i < response.data.data.schedule.length; i++) {
280 324
             if (response.data.data.schedule[i].patient.id > 0) {
281
-              let SchedualPatientsTable = {
325
+              const SchedualPatientsTable = {
282 326
                 bp: []
283 327
               };
284 328
 
285
-              SchedualPatientsTable["sch_id"] = response.data.data.schedule[i].id
329
+              SchedualPatientsTable["sch_id"] =
330
+                response.data.data.schedule[i].id;
286 331
               SchedualPatientsTable["sch_time_int"] =
287 332
                 response.data.data.schedule[i].schedule_date;
288 333
               SchedualPatientsTable["sch_time"] = parseTime(
@@ -326,7 +371,7 @@ export default {
326 371
                 a < response.data.data.schedule[i].monitoring_record.length;
327 372
                 a++
328 373
               ) {
329
-                let bp = {};
374
+                const bp = {};
330 375
                 bp["value"] =
331 376
                   response.data.data.schedule[i].monitoring_record[
332 377
                     a
@@ -372,44 +417,45 @@ export default {
372 417
       this.getSchedualPatientList();
373 418
     },
374 419
     batchPrintAction: function() {
375
-      var sch_ids = []
420
+      var sch_ids = [];
376 421
       for (let index = 0; index < this.selecting_schs.length; index++) {
377
-        sch_ids.push(this.selecting_schs[index].sch_id)
422
+        sch_ids.push(this.selecting_schs[index].sch_id);
378 423
       }
379
-      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids)
424
+      console.log("sch_ids", sch_ids);
425
+      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
380 426
       this.$router.push({ path: "/dialysis/print/batch" });
381 427
     }
382 428
   },
383 429
   components: {
384
-      BreadCrumb
430
+    BreadCrumb
385 431
   }
386 432
 };
387 433
 </script>
388 434
 
389 435
 <style rel="stylesheet/scss" lang="scss" scoped>
390 436
 .app-container {
391
-//   margin: 20px;
437
+  //   margin: 20px;
392 438
   font-size: 15px;
393 439
   .filter-container {
394 440
     padding-bottom: 5px;
395 441
   }
396
-  .cqd-dataTitle{
442
+  .cqd-dataTitle {
397 443
     color: #303133;
398 444
     font-size: 14px;
399
-    border-bottom: 2px #E4E7ED solid;
445
+    border-bottom: 2px #e4e7ed solid;
400 446
     height: 36px;
401 447
     line-height: 36px;
402 448
     margin: 0 0 25px 0;
403 449
     position: relative;
404 450
   }
405 451
   .cqd-dataTitle::before {
406
-      position: absolute;
407
-      left: 0;
408
-      bottom: -2px;
409
-      content: "";
410
-      width: 42px;
411
-      height: 2px;
412
-      background: #409eff;
452
+    position: absolute;
453
+    left: 0;
454
+    bottom: -2px;
455
+    content: "";
456
+    width: 42px;
457
+    height: 2px;
458
+    background: #409eff;
413 459
   }
414 460
   .search-component {
415 461
     width: 500px;
@@ -456,4 +502,4 @@ export default {
456 502
     }
457 503
   }
458 504
 }
459
-</style>
505
+</style>

+ 149 - 147
src/xt_pages/dialysis/bloodPresssWatch.vue View File

@@ -157,68 +157,68 @@
157 157
 
158 158
 
159 159
 <script>
160
-import { getSchedualPatient, GetAllZone } from "@/api/dialysis";
161
-import { parseTime } from "@/utils";
162
-import BreadCrumb from "@/xt_pages/components/bread-crumb";
160
+import { getSchedualPatient, GetAllZone } from '@/api/dialysis'
161
+import { parseTime } from '@/utils'
162
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
163 163
 import { getPrintTemplate } from '@/api/data'
164 164
 
165 165
 export default {
166
-  name: "Patient",
166
+  name: 'Patient',
167 167
   data() {
168 168
     return {
169
-      crumbs:[
170
-        {path:false, name:'透析管理'},
171
-        {path:false, name:'透析监测'},
169
+      crumbs: [
170
+        { path: false, name: '透析管理' },
171
+        { path: false, name: '透析监测' }
172 172
       ],
173 173
       loading: false,
174
-      time: "",
174
+      time: '',
175 175
 
176 176
       search_mode: 1, // 搜索模式 1.日期搜索 2.病人搜索
177
-      patient_search_keyword: "",
177
+      patient_search_keyword: '',
178 178
 
179 179
       SchedualPatientsTableData: [],
180 180
       active: true,
181 181
       schedulType: 0,
182 182
       schedulArr: [
183
-        { value: 0, label: "全部" },
184
-        { value: 1, label: "上午" },
185
-        { value: 2, label: "下午" },
186
-        { value: 3, label: "晚上" }
183
+        { value: 0, label: '全部' },
184
+        { value: 1, label: '上午' },
185
+        { value: 2, label: '下午' },
186
+        { value: 3, label: '晚上' }
187 187
       ],
188
-      template_id : 0,
188
+      template_id: 0,
189 189
 
190 190
       partitionType: 0,
191 191
 
192
-      labelArr: ['第1次', "第2次", "第3次", "第4次", "第5次", "第6次", "第7次"],
192
+      labelArr: ['第1次', '第2次', '第3次', '第4次', '第5次', '第6次', '第7次'],
193 193
 
194 194
       pickerOptions1: {
195 195
         shortcuts: [
196 196
           {
197
-            text: "今天",
197
+            text: '今天',
198 198
             onClick(picker) {
199
-              picker.$emit("pick", new Date());
199
+              picker.$emit('pick', new Date())
200 200
             }
201 201
           },
202 202
           {
203
-            text: "昨天",
203
+            text: '昨天',
204 204
             onClick(picker) {
205
-              const date = new Date();
206
-              date.setTime(date.getTime() - 3600 * 1000 * 24);
207
-              picker.$emit("pick", date);
205
+              const date = new Date()
206
+              date.setTime(date.getTime() - 3600 * 1000 * 24)
207
+              picker.$emit('pick', date)
208 208
             }
209 209
           },
210 210
           {
211
-            text: "一周前",
211
+            text: '一周前',
212 212
             onClick(picker) {
213
-              const date = new Date();
214
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
215
-              picker.$emit("pick", date);
213
+              const date = new Date()
214
+              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7)
215
+              picker.$emit('pick', date)
216 216
             }
217 217
           },
218 218
           {
219
-            text: "清空",
219
+            text: '清空',
220 220
             onClick(picker) {
221
-              picker.$emit("pick");
221
+              picker.$emit('pick')
222 222
             }
223 223
           }
224 224
         ]
@@ -230,35 +230,35 @@ export default {
230 230
         limit: 10,
231 231
         schedul_type: 0,
232 232
         partition_type: 0,
233
-        schedul_time: "",
234
-        keywords: ""
233
+        schedul_time: '',
234
+        keywords: ''
235 235
       },
236 236
       selecting_schs: [],
237 237
       partitionArr: []
238
-    };
238
+    }
239 239
   },
240 240
   created() {
241
-    var date = new Date();
242
-    this.time = date;
243
-    var year = date.getFullYear();
244
-    var month = date.getMonth() + 1;
245
-    var day = date.getDate();
241
+    var date = new Date()
242
+    this.time = date
243
+    var year = date.getFullYear()
244
+    var month = date.getMonth() + 1
245
+    var day = date.getDate()
246 246
     if (month < 10) {
247
-      month = "0" + month;
247
+      month = '0' + month
248 248
     }
249 249
     if (day < 10) {
250
-      day = "0" + day;
250
+      day = '0' + day
251 251
     }
252
-    var nowDate = year + "-" + month + "-" + day;
253
-    var date = new Date(nowDate + " 00:00:00");
254
-    this.listQuery.schedul_time = date.getTime();
255
-    this.getAllZone();
256
-    this.getSchedualPatientList();
257
-    this.getTemplateInfo();
252
+    var nowDate = year + '-' + month + '-' + day
253
+    var date = new Date(nowDate + ' 00:00:00')
254
+    this.listQuery.schedul_time = date.getTime()
255
+    this.getAllZone()
256
+    this.getSchedualPatientList()
257
+    this.getTemplateInfo()
258 258
     // this.template_id = this.$store.getters.xt_user.template_info.template_id;
259 259
   },
260 260
   methods: {
261
-    getTemplateInfo(){
261
+    getTemplateInfo() {
262 262
       getPrintTemplate().then(response => {
263 263
         if (response.data.state == 0) {
264 264
           this.$message.error(response.data.msg)
@@ -270,181 +270,182 @@ export default {
270 270
       })
271 271
     },
272 272
     clickCurrent(val) {
273
-      console.log(val);
273
+      console.log(val)
274 274
       this.$router.push({
275
-        path: "/dialysis/details",
275
+        path: '/dialysis/details',
276 276
         query: { patient_id: val.patient_id, date: val.sch_time_int }
277
-      });
277
+      })
278 278
     },
279 279
     handleSelectionChange(val) {
280
-      this.selecting_schs = val;
280
+      this.selecting_schs = val
281 281
     },
282 282
 
283 283
     selectSchedulType(scheduleType) {
284 284
       // alert(scheduleType);/
285
-      this.schedulType = scheduleType;
286
-      this.listQuery.schedul_type = scheduleType;
287
-      this.getSchedualPatientList();
285
+      this.schedulType = scheduleType
286
+      this.listQuery.schedul_type = scheduleType
287
+      this.getSchedualPatientList()
288 288
     },
289 289
     selectPartitionType(partitionType) {
290
-      this.partitionType = partitionType;
291
-      this.listQuery.partition_type = partitionType;
292
-      this.getSchedualPatientList();
290
+      this.partitionType = partitionType
291
+      this.listQuery.partition_type = partitionType
292
+      this.getSchedualPatientList()
293 293
     },
294 294
 
295 295
     changeTime() {
296
-      this.listQuery.schedul_time = this.time;
297
-      this.getSchedualPatientList();
296
+      this.listQuery.schedul_time = this.time
297
+      this.getSchedualPatientList()
298 298
     },
299 299
     getAllZone: function() {
300 300
       GetAllZone().then(response => {
301 301
         if (response.data.state == 0) {
302
-          this.$message.error(response.data.msg);
303
-          return false;
302
+          this.$message.error(response.data.msg)
303
+          return false
304 304
         } else {
305
-          this.partitionArr = response.data.data.zone;
306
-          this.partitionArr.unshift({ id: 0, name: "全部" });
305
+          this.partitionArr = response.data.data.zone
306
+          this.partitionArr.unshift({ id: 0, name: '全部' })
307 307
         }
308
-      });
308
+      })
309 309
     },
310 310
     getSchedualPatientList: function() {
311
-      this.loading = true;
311
+      this.loading = true
312 312
       if (this.search_mode == 1) {
313
-        this.listQuery.keywords = "";
313
+        this.listQuery.keywords = ''
314 314
       } else {
315
-        this.listQuery.schedul_time = "";
315
+        this.listQuery.schedul_time = ''
316 316
       }
317
-      this.SchedualPatientsTableData = [];
317
+      this.SchedualPatientsTableData = []
318 318
       getSchedualPatient(this.listQuery).then(response => {
319 319
         if (response.data.state == 0) {
320
-          this.loading = false;
321
-          this.$message.error(response.data.msg);
322
-          return false;
320
+          this.loading = false
321
+          this.$message.error(response.data.msg)
322
+          return false
323 323
         } else {
324
-          this.loading = false;
325
-          this.total = response.data.data.total;
324
+          this.loading = false
325
+          this.total = response.data.data.total
326 326
           // console.log(response.data.data)
327 327
           for (let i = 0; i < response.data.data.schedule.length; i++) {
328 328
             if (response.data.data.schedule[i].patient.id > 0) {
329
-              let SchedualPatientsTable = {
329
+              const SchedualPatientsTable = {
330 330
                 bp: []
331
-              };
331
+              }
332 332
 
333
-              SchedualPatientsTable["sch_id"] = response.data.data.schedule[i].id
334
-              SchedualPatientsTable["sch_time_int"] =
335
-                response.data.data.schedule[i].schedule_date;
336
-              SchedualPatientsTable["sch_time"] = parseTime(
333
+              SchedualPatientsTable['sch_id'] = response.data.data.schedule[i].id
334
+              SchedualPatientsTable['sch_time_int'] =
335
+                response.data.data.schedule[i].schedule_date
336
+              SchedualPatientsTable['sch_time'] = parseTime(
337 337
                 response.data.data.schedule[i].schedule_date,
338
-                "{y}-{m}-{d}"
339
-              );
340
-              SchedualPatientsTable["dialysis_no"] =
341
-                response.data.data.schedule[i].patient.dialysis_no;
342
-              SchedualPatientsTable["name"] =
343
-                response.data.data.schedule[i].patient.name;
344
-              SchedualPatientsTable["number"] =
345
-                response.data.data.schedule[i].device_number.number;
346
-              SchedualPatientsTable["gender"] =
347
-                response.data.data.schedule[i].patient.gender;
348
-              SchedualPatientsTable["source"] =
349
-                response.data.data.schedule[i].patient.source;
350
-              SchedualPatientsTable["patient_id"] =
351
-                response.data.data.schedule[i].patient_id;
352
-              SchedualPatientsTable["mode_name"] =
353
-                response.data.data.schedule[i].treatment_mode.name;
338
+                '{y}-{m}-{d}'
339
+              )
340
+              SchedualPatientsTable['dialysis_no'] =
341
+                response.data.data.schedule[i].patient.dialysis_no
342
+              SchedualPatientsTable['name'] =
343
+                response.data.data.schedule[i].patient.name
344
+              SchedualPatientsTable['number'] =
345
+                response.data.data.schedule[i].device_number.number
346
+              SchedualPatientsTable['gender'] =
347
+                response.data.data.schedule[i].patient.gender
348
+              SchedualPatientsTable['source'] =
349
+                response.data.data.schedule[i].patient.source
350
+              SchedualPatientsTable['patient_id'] =
351
+                response.data.data.schedule[i].patient_id
352
+              SchedualPatientsTable['mode_name'] =
353
+                response.data.data.schedule[i].treatment_mode.name
354 354
               if (
355 355
                 response.data.data.schedule[i].assessment_before_dislysis.id > 0
356 356
               ) {
357
-                SchedualPatientsTable["dialysis_before_weight"] =
357
+                SchedualPatientsTable['dialysis_before_weight'] =
358 358
                   response.data.data.schedule[
359 359
                     i
360
-                  ].assessment_before_dislysis.weight_before;
360
+                  ].assessment_before_dislysis.weight_before
361 361
               }
362 362
               if (
363 363
                 response.data.data.schedule[i].assessment_after_dislysis.id > 0
364 364
               ) {
365
-                SchedualPatientsTable["dialysis_after_weight"] =
365
+                SchedualPatientsTable['dialysis_after_weight'] =
366 366
                   response.data.data.schedule[
367 367
                     i
368
-                  ].assessment_after_dislysis.weight_after;
368
+                  ].assessment_after_dislysis.weight_after
369 369
               }
370 370
 
371
-              SchedualPatientsTable.bp = [];
371
+              SchedualPatientsTable.bp = []
372 372
               for (
373 373
                 let a = 0;
374 374
                 a < response.data.data.schedule[i].monitoring_record.length;
375 375
                 a++
376 376
               ) {
377
-                let bp = {};
378
-                bp["value"] =
377
+                const bp = {}
378
+                bp['value'] =
379 379
                   response.data.data.schedule[i].monitoring_record[
380 380
                     a
381 381
                   ].systolic_blood_pressure.toString() +
382
-                  "/" +
382
+                  '/' +
383 383
                   response.data.data.schedule[i].monitoring_record[
384 384
                     a
385
-                  ].diastolic_blood_pressure.toString();
385
+                  ].diastolic_blood_pressure.toString()
386 386
 
387
-                SchedualPatientsTable.bp.unshift(bp);
387
+                SchedualPatientsTable.bp.unshift(bp)
388 388
               }
389 389
 
390
-              this.SchedualPatientsTableData.push(SchedualPatientsTable);
390
+              this.SchedualPatientsTableData.push(SchedualPatientsTable)
391 391
             }
392 392
           }
393 393
         }
394
-      });
394
+      })
395 395
     },
396 396
     getValue: function(val) {
397 397
       if (val != undefined) {
398
-        return val.value;
398
+        return val.value
399 399
       } else {
400
-        return "";
400
+        return ''
401 401
       }
402 402
     },
403 403
 
404 404
     handleCurrentChange(val) {
405
-      this.listQuery.page = val;
406
-      this.getSchedualPatientList();
405
+      this.listQuery.page = val
406
+      this.getSchedualPatientList()
407 407
     },
408 408
     changeSearchMode: function() {
409 409
       if (this.search_mode == 1) {
410
-        this.search_mode = 2;
410
+        this.search_mode = 2
411 411
       } else {
412
-        this.search_mode = 1;
412
+        this.search_mode = 1
413 413
       }
414 414
     },
415 415
     searchPatientAction: function() {
416
-      this.listQuery.keywords = this.patient_search_keyword;
417
-      console.log(this.patient_search_keyword);
416
+      this.listQuery.keywords = this.patient_search_keyword
417
+      console.log(this.patient_search_keyword)
418 418
       if (this.patient_search_keyword.length == 0) {
419
-        return;
419
+        return
420 420
       }
421
-      this.getSchedualPatientList();
421
+      this.getSchedualPatientList()
422 422
     },
423 423
     handleSizeChange(val) {
424 424
       this.listQuery.limit = val
425
-      this.getSchedualPatientList();
426
-
425
+      this.getSchedualPatientList()
427 426
     },
428 427
     batchPrintAction: function() {
428
+    // 模板ID为6
429 429
       var sch_ids = []
430
+
430 431
       for (let index = 0; index < this.selecting_schs.length; index++) {
431 432
         sch_ids.push(this.selecting_schs[index].sch_id)
432 433
       }
433
-      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids)
434
-      if (this.template_id == 2 ||this.template_id == 0 ){
435
-        this.$router.push({ path: "/dialysis/print/batch/other" });
436
-      }else if(this.template_id == 1) {
437
-        this.$router.push({ path: "/dialysis/print/batch" });
438
-      }
439
-      else if(this.template_id == 3) {
440
-        this.$router.push({ path: "/dialysis/print/batch/three" });
441
-      }
442
-      else if(this.template_id == 4) {
443
-        this.$router.push({ path: "/dialysis/print/batch/four" });
444
-      } else if (this.template_id == 5  ){
445
-        this.$router.push({ path: "/dialysis/print/batch/five" });
446
-      } else if (this.template_id == 6  ){
447
-        this.$router.push({ path: "/dialysis/print/batch/six" });
434
+      console.log('第一个', sch_ids)
435
+      console.log('模板id', this.template_id)
436
+      this.$store.dispatch('SetBatchPrintDialysisRecordIDs', sch_ids)
437
+      if (this.template_id == 2 || this.template_id == 0) {
438
+        this.$router.push({ path: '/dialysis/print/batch/other' })
439
+      } else if (this.template_id == 1) {
440
+        this.$router.push({ path: '/dialysis/print/batch' })
441
+      } else if (this.template_id == 3) {
442
+        this.$router.push({ path: '/dialysis/print/batch/three' })
443
+      } else if (this.template_id == 4) {
444
+        this.$router.push({ path: '/dialysis/print/batch/four' })
445
+      } else if (this.template_id == 5) {
446
+        this.$router.push({ path: '/dialysis/print/batch/five' })
447
+      } else if (this.template_id == 6) {
448
+        this.$router.push({ path: '/dialysis/print/batch/six' })
448 449
       }
449 450
     },
450 451
     batchPrintActionOne: function() {
@@ -452,13 +453,14 @@ export default {
452 453
       for (let index = 0; index < this.selecting_schs.length; index++) {
453 454
         sch_ids.push(this.selecting_schs[index].sch_id)
454 455
       }
455
-      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids)
456
-      if (this.template_id == 2 ||this.template_id == 0){
457
-        this.$router.push({ path: "/dialysis/print/batch/otherone" });
458
-      }else if(this.template_id == 1) {
459
-        this.$router.push({ path: "/dialysis/print/batch" });
460
-      } else if (this.template_id == 5){
461
-        this.$router.push({ path: "/dialysis/print/batch/fiveone" });
456
+      console.log('第二个', sch_ids)
457
+      this.$store.dispatch('SetBatchPrintDialysisRecordIDs', sch_ids)
458
+      if (this.template_id == 2 || this.template_id == 0) {
459
+        this.$router.push({ path: '/dialysis/print/batch/otherone' })
460
+      } else if (this.template_id == 1) {
461
+        this.$router.push({ path: '/dialysis/print/batch' })
462
+      } else if (this.template_id == 5) {
463
+        this.$router.push({ path: '/dialysis/print/batch/fiveone' })
462 464
       }
463 465
     },
464 466
     batchPrintActionTwo: function() {
@@ -466,20 +468,20 @@ export default {
466 468
       for (let index = 0; index < this.selecting_schs.length; index++) {
467 469
         sch_ids.push(this.selecting_schs[index].sch_id)
468 470
       }
469
-      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids)
470
-      if (this.template_id == 2 ||this.template_id == 0 ){
471
-        this.$router.push({ path: "/dialysis/print/batch/othertwo" });
472
-      }else if(this.template_id == 1){
473
-        this.$router.push({ path: "/dialysis/print/batch" });
474
-      } else if (this.template_id == 5  ){
475
-        this.$router.push({ path: "/dialysis/print/batch/fivetwo" });
471
+      this.$store.dispatch('SetBatchPrintDialysisRecordIDs', sch_ids)
472
+      if (this.template_id == 2 || this.template_id == 0) {
473
+        this.$router.push({ path: '/dialysis/print/batch/othertwo' })
474
+      } else if (this.template_id == 1) {
475
+        this.$router.push({ path: '/dialysis/print/batch' })
476
+      } else if (this.template_id == 5) {
477
+        this.$router.push({ path: '/dialysis/print/batch/fivetwo' })
476 478
       }
477 479
     }
478 480
   },
479 481
   components: {
480
-      BreadCrumb
482
+    BreadCrumb
481 483
   }
482
-};
484
+}
483 485
 </script>
484 486
 
485 487
 <style rel="stylesheet/scss" lang="scss" scoped>

File diff suppressed because it is too large
+ 2547 - 1422
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue


+ 16 - 16
src/xt_pages/management/components/RemanderForm.vue View File

@@ -1,14 +1,14 @@
1 1
 <template>
2 2
   <div>
3 3
     <el-dialog
4
-      title="使用登记系统自动录取数据开启提醒"
4
+      title="设备使用记录自动生成配置"
5 5
       :visible.sync="dialogVisible"
6 6
       width="30%"
7 7
       center
8 8
     >
9 9
       <el-form :model="randerform" ref="randerform">
10 10
         <el-row>
11
-          <el-form-item label="开启提醒:">
11
+          <el-form-item label="是否开启:">
12 12
             <el-radio-group v-model="randerform.run" @change="changeRun">
13 13
               <el-radio
14 14
                 :label="gender.id"
@@ -27,15 +27,15 @@
27 27
 
28 28
 <script>
29 29
 // eslint-disable-next-line no-unused-vars
30
-import { changeRun, getRemanderData } from '@/api/manage'
30
+import { changeRun, getRemanderData } from "@/api/manage";
31 31
 export default {
32
-  name: 'RemanderForm',
32
+  name: "RemanderForm",
33 33
   data() {
34 34
     return {
35 35
       dialogVisible: false,
36 36
       Option: [
37
-        { id: 1, name: '是' },
38
-        { id: 2, name: '否' }
37
+        { id: 1, name: "是" },
38
+        { id: 2, name: "否" }
39 39
       ],
40 40
       randerform: {
41 41
         run: 2
@@ -44,39 +44,39 @@ export default {
44 44
   },
45 45
   methods: {
46 46
     open: function() {
47
-      this.dialogVisible = true
47
+      this.dialogVisible = true;
48 48
     },
49 49
     changeRun(id) {
50 50
       // eslint-disable-next-line no-undef
51 51
       changeRun(id).then(response => {
52 52
         if (response.data.state === 1) {
53
-          var id = response.data.data.id
53
+          var id = response.data.data.id;
54 54
           // eslint-disable-next-line eqeqeq
55 55
           if (id == 1) {
56
-            this.$message.success('开启成功')
56
+            this.$message.success("开启成功");
57 57
           }
58 58
           // eslint-disable-next-line eqeqeq
59 59
           if (id == 2) {
60
-            this.$message.success('关闭成功')
60
+            this.$message.success("关闭成功");
61 61
           }
62 62
         }
63
-      })
63
+      });
64 64
     },
65 65
     getRemanderData() {
66 66
       getRemanderData().then(response => {
67 67
         // eslint-disable-next-line eqeqeq
68 68
         if (response.data.state == 1) {
69
-          var remander = response.data.data.remander
70
-          //console.log('remander=================小夏', remander)
71
-          this.randerform.run = remander.is_run
69
+          var remander = response.data.data.remander;
70
+          // console.log('remander=================小夏', remander)
71
+          this.randerform.run = remander.is_run;
72 72
         }
73 73
       });
74 74
     }
75 75
   },
76 76
   created() {
77
-    this.getRemanderData()
77
+    this.getRemanderData();
78 78
   }
79
-}
79
+};
80 80
 </script>
81 81
 
82 82
 <style scoped></style>

+ 187 - 164
src/xt_pages/management/components/RepairForm.vue View File

@@ -63,7 +63,7 @@
63 63
           width="55"
64 64
         ></el-table-column>
65 65
         <el-table-column prop="date" label="机号" width="80" align="center">
66
-          <template slot-scope="scope">{{ scope.row.bed_number}}</template>
66
+          <template slot-scope="scope">{{ scope.row.bed_number }}</template>
67 67
         </el-table-column>
68 68
         <el-table-column
69 69
           prop="name"
@@ -357,15 +357,17 @@
357 357
                 action="https://upload.qiniup.com"
358 358
                 :on-success="handleSuccess"
359 359
                 :before-upload="beforeUploadFile"
360
-                multiple
361
-                :on-preview="handlePreview"
362 360
                 :limit="1"
363
-                :on-exceed="handleExceed"
361
+                ref="upload"
364 362
               >
365 363
                 <el-button size="small" type="primary">上传图片</el-button>
366
-              </el-upload>            
364
+              </el-upload>
367 365
             </el-form-item>
368
-            <a>{{this.guaForm.images}}</a>
366
+            <a class="el-upload-list__item-name">
367
+              <i
368
+                ><a @click="toLink()">{{ filename }}</a></i
369
+              >
370
+            </a>
369 371
           </el-col>
370 372
         </el-row>
371 373
         <el-row>
@@ -416,139 +418,141 @@ import {
416 418
   DeleteRepair,
417 419
   queryRepair,
418 420
   DeleteRepairs
419
-} from '@/api/manage'
420
-import { uParseTime } from '@/utils/tools'
421
-import { getFileExtension } from '@/utils/tools'
421
+} from "@/api/manage";
422
+import { uParseTime } from "@/utils/tools";
423
+import { getFileExtension } from "@/utils/tools";
422 424
 export default {
423
-  name: 'RepairForm',
425
+  name: "RepairForm",
424 426
   data() {
425 427
     return {
426 428
       dialogVisible: false,
427 429
       selectCulture: [],
428 430
       forms: {
429
-        bed: '',
431
+        bed: "",
430 432
         sename: 1,
431
-        start_time: '',
432
-        end_time: ''
433
+        start_time: "",
434
+        end_time: ""
433 435
       },
434 436
       guaForm: {
435
-        id: '',
436
-        guarantee_date: '',
437
-        start_time: '',
438
-        arrive_time: '',
439
-        finish_time: '',
440
-        total_distance: '',
441
-        failure_stage: '',
442
-        fault_description: '',
443
-        cause_analysis: '',
444
-        treatment_process: '',
445
-        images: '',
446
-        exclude: '',
447
-        reason: '',
448
-        code_information: ''
437
+        id: "",
438
+        guarantee_date: "",
439
+        start_time: "",
440
+        arrive_time: "",
441
+        finish_time: "",
442
+        total_distance: "",
443
+        failure_stage: "",
444
+        fault_description: "",
445
+        cause_analysis: "",
446
+        treatment_process: "",
447
+        images: "",
448
+        exclude: "",
449
+        reason: "",
450
+        code_information: "",
451
+        image_name: ""
449 452
       },
450 453
       isIndeterminate: false,
451 454
       checkAllStatus: false,
452 455
       bedNumber: [],
453 456
       tableData: [],
454
-      qiniuDomain: 'https://images.shengws.com/',
455
-      uploadFileData: { token: '', key: '' },
457
+      qiniuDomain: "https://images.shengws.com/",
458
+      uploadFileData: { token: "", key: "" },
456 459
       faultPhase: [
457
-        { id: 1, name: '开机启动' },
458
-        { id: 2, name: '自检' },
459
-        { id: 3, name: '准备' },
460
-        { id: 4, name: '治疗' },
461
-        { id: 5, name: '消毒' }
460
+        { id: 1, name: "开机启动" },
461
+        { id: 2, name: "自检" },
462
+        { id: 3, name: "准备" },
463
+        { id: 4, name: "治疗" },
464
+        { id: 5, name: "消毒" }
462 465
       ],
463 466
       breakDown: [
464
-        { id: 1, name: '是' },
465
-        { id: 2, name: '待观察' },
466
-        { id: 3, name: '未解决' }
467
+        { id: 1, name: "是" },
468
+        { id: 2, name: "待观察" },
469
+        { id: 3, name: "未解决" }
467 470
       ],
468 471
       repirRules: {
469
-        guarantee_date: [{ required: true, message: '请填写保修日期' }],
470
-        fault_description: [{ required: true, message: '请填写故障描述' }]
472
+        guarantee_date: [{ required: true, message: "请填写保修日期" }],
473
+        fault_description: [{ required: true, message: "请填写故障描述" }]
471 474
       },
472
-      filename: '',
475
+      filename: "",
473 476
       limit: 10,
474 477
       page: 1,
475
-      total: 0
476
-    }
478
+      total: 0,
479
+      filename: ""
480
+    };
477 481
   },
478 482
   methods: {
479 483
     changeCheck() {
480
-      this.$refs.multipleTable.clearSelection()
484
+      this.$refs.multipleTable.clearSelection();
481 485
       if (this.checkAllStatus) {
482
-        this.$refs.multipleTable.toggleAllSelection()
486
+        this.$refs.multipleTable.toggleAllSelection();
483 487
       }
484 488
     },
485 489
     getAllSubregion() {
486 490
       getAllSubregion().then(response => {
487
-        var zones = response.data.data.zones
488
-        var numbers = response.data.data.numbers
489
-        var number = [{ id: 0, number: '全部' }]
491
+        var zones = response.data.data.zones;
492
+        var numbers = response.data.data.numbers;
493
+        var number = [{ id: 0, number: "全部" }];
490 494
         for (let index = 0; index < numbers.length; index++) {
491
-          const item = numbers[index]
492
-          number.push({ id: item.id, number: item.number })
495
+          const item = numbers[index];
496
+          number.push({ id: item.id, number: item.number });
493 497
         }
494
-        this.bedNumber = number
495
-      })
498
+        this.bedNumber = number;
499
+      });
496 500
     },
497 501
     handleSelectionChange(val) {
498
-      this.selectCulture = val
502
+      this.selectCulture = val;
499 503
     },
500 504
     getAllRepair() {
501 505
       getAllRepair(this.limit, this.page).then(response => {
502 506
         if (response.data.state === 1) {
503
-          var repair = response.data.data.repair
507
+          var repair = response.data.data.repair;
504 508
           // console.log('repair是', repair)
505 509
           // eslint-disable-next-line no-unused-vars
506
-          var total = response.data.data.total
507
-          this.total = total
510
+          var total = response.data.data.total;
511
+          this.total = total;
508 512
           for (let index = 0; index < repair.length; index++) {
509 513
             if (repair[index].failure_stage === 0) {
510
-              repair[index].failure_stage = ''
514
+              repair[index].failure_stage = "";
511 515
             }
512 516
 
513 517
             if (repair[index].failure_stage === 1) {
514
-              repair[index].failure_stage = '开机启动'
518
+              repair[index].failure_stage = "开机启动";
515 519
             }
516 520
             if (repair[index].failure_stage === 2) {
517
-              repair[index].failure_stage = '自检'
521
+              repair[index].failure_stage = "自检";
518 522
             }
519 523
             if (repair[index].failure_stage === 3) {
520
-              repair[index].failure_stage = '准备'
524
+              repair[index].failure_stage = "准备";
521 525
             }
522 526
             if (repair[index].failure_stage === 4) {
523
-              repair[index].failure_stage = '治疗'
527
+              repair[index].failure_stage = "治疗";
524 528
             }
525 529
             if (repair[index].failure_stage === 5) {
526
-              repair[index].failure_stage = '消毒'
530
+              repair[index].failure_stage = "消毒";
527 531
             }
528 532
 
529 533
             if (repair[index].exclude === 0) {
530
-              repair[index].exclude = ''
534
+              repair[index].exclude = "";
531 535
             }
532 536
 
533 537
             if (repair[index].exclude === 1) {
534
-              repair[index].exclude = '是'
538
+              repair[index].exclude = "是";
535 539
             }
536 540
             if (repair[index].exclude === 2) {
537
-              repair[index].exclude = '待观察'
541
+              repair[index].exclude = "待观察";
538 542
             }
539 543
             if (repair[index].exclude === 3) {
540
-              repair[index].exclude = '未解决'
544
+              repair[index].exclude = "未解决";
541 545
             }
542 546
           }
543
-          this.tableData = repair
547
+          this.tableData = repair;
544 548
         }
545
-      })
549
+      });
546 550
     },
547 551
     getTime(time) {
548
-      return uParseTime(time, '{y}-{m}-{d}')
552
+      return uParseTime(time, "{y}-{m}-{d}");
549 553
     },
550 554
     getTimes(time) {
551
-      return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
555
+      return uParseTime(time, "{y}-{m}-{d} {h}:{i}");
552 556
     },
553 557
     handleExceed(file) {
554 558
       // console.log(file)
@@ -557,55 +561,62 @@ export default {
557 561
       // console.log(file)
558 562
     },
559 563
     EditRepair(id) {
560
-      this.dialogVisible = true
564
+      this.dialogVisible = true;
561 565
       EditRepair(id).then(response => {
562 566
         if (response.data.state === 1) {
563
-          var repair = response.data.data.repair
567
+          var repair = response.data.data.repair;
568
+          console.log("repair", repair);
564 569
           this.guaForm.guarantee_date = uParseTime(
565 570
             repair.guarantee_date,
566
-            '{y}-{m}-{d}'
567
-          )
571
+            "{y}-{m}-{d}"
572
+          );
568 573
           this.guaForm.start_time = uParseTime(
569 574
             repair.start_time,
570
-            '{y}-{m}-{d} {h}:{i}'
571
-          )
575
+            "{y}-{m}-{d} {h}:{i}"
576
+          );
572 577
           this.guaForm.arrive_time = uParseTime(
573 578
             repair.arrive_time,
574
-            '{y}-{m}-{d} {h}:{i}'
575
-          )
579
+            "{y}-{m}-{d} {h}:{i}"
580
+          );
576 581
           this.guaForm.finish_time = uParseTime(
577 582
             repair.finish_time,
578
-            '{y}-{m}-{d} {h}:{i}'
579
-          )
580
-          this.guaForm.total_distance = repair.total_distance
581
-          this.guaForm.failure_stage = repair.failure_stage
582
-          this.guaForm.fault_description = repair.fault_description
583
-          this.guaForm.cause_analysis = repair.cause_analysis
584
-          this.guaForm.treatment_process = repair.treatment_process
585
-          this.guaForm.images = repair.images
586
-          this.guaForm.exclude = repair.exclude
587
-          this.guaForm.reason = repair.reason
588
-          this.guaForm.code_information = repair.code_information
589
-          this.guaForm.id = repair.id
583
+            "{y}-{m}-{d} {h}:{i}"
584
+          );
585
+          this.guaForm.total_distance = repair.total_distance;
586
+          this.guaForm.failure_stage = repair.failure_stage;
587
+          this.guaForm.fault_description = repair.fault_description;
588
+          this.guaForm.cause_analysis = repair.cause_analysis;
589
+          this.guaForm.treatment_process = repair.treatment_process;
590
+          this.guaForm.images = repair.images;
591
+          this.guaForm.exclude = repair.exclude;
592
+          this.guaForm.reason = repair.reason;
593
+          this.guaForm.code_information = repair.code_information;
594
+          this.guaForm.id = repair.id;
595
+          this.filename = repair.image_name;
590 596
         }
591
-      })
597
+      });
592 598
     },
593 599
     handleSuccess(res, file, fileList) {
594
-      this.guaForm.images = this.qiniuDomain + res.url
595
-      console.log('图片上传', this.guaForm.images)
600
+      this.guaForm.images = this.qiniuDomain + res.url;
601
+      console.log("图片上传", this.guaForm.images);
602
+      this.$refs.upload.clearFiles();
603
+      this.filename = file.name;
604
+      this.guaForm.image_name = file.name;
596 605
     },
597 606
     beforeUploadFile(file) {
598
-      const isLt2M = file.size / 1024 / 1024 <= 2048
599
-      console.log('filename', file)
607
+      this.filename = file.name;
608
+      this.guaForm.image_name = file.name;
609
+      const isLt2M = file.size / 1024 / 1024 <= 2048;
610
+      console.log("filename", file);
600 611
       // console.log('视频大小', file.size / 1024 / 1024)
601 612
       // console.log('isLt2M是什么', isLt2M)
602 613
 
603 614
       if (!isLt2M) {
604
-        this.$message.error('上传视频大小不能超过 2G!')
605
-        return false
615
+        this.$message.error("上传视频大小不能超过 2G!");
616
+        return false;
606 617
       }
607
-      var date = new Date()
608
-      var ext = getFileExtension(file.name)
618
+      var date = new Date();
619
+      var ext = getFileExtension(file.name);
609 620
       var key =
610 621
         date.getFullYear() +
611 622
         (date.getMonth() + 1) +
@@ -613,92 +624,104 @@ export default {
613 624
         date.getHours() +
614 625
         date.getMinutes() +
615 626
         date.getSeconds() +
616
-        '_o_' +
627
+        "_o_" +
617 628
         file.uid +
618
-        '.' +
619
-        ext
620
-      const _self = this
629
+        "." +
630
+        ext;
631
+      const _self = this;
621 632
       return new Promise((resolve, reject) => {
622 633
         // eslint-disable-next-line no-undef
623 634
         getToken()
624 635
           .then(response => {
625
-            const token = response.data.data.uptoken
626
-            console.log('token2是什么?', token)
627
-            _self._data.uploadFileData.token = token
628
-            _self._data.uploadFileData.key = key
629
-            resolve(true)
636
+            const token = response.data.data.uptoken;
637
+            console.log("token2是什么?", token);
638
+            _self._data.uploadFileData.token = token;
639
+            _self._data.uploadFileData.key = key;
640
+            resolve(true);
630 641
           })
631 642
           // eslint-disable-next-line handle-callback-err
632 643
           .catch(err => {
633
-            reject(false)
634
-          })
635
-      })
644
+            reject(false);
645
+          });
646
+      });
647
+    },
648
+    toLink() {
649
+      window.location.href = this.guaForm.images;
636 650
     },
637 651
     UpdateRepair(formName) {
638 652
       this.$refs[formName].validate(valid => {
639
-        this.guaForm.start_time = uParseTime(this.guaForm.start_time, '{y}-{m}-{d} {h}:{i}')
640
-        this.guaForm.arrive_time = uParseTime(this.guaForm.arrive_time, '{y}-{m}-{d} {h}:{i}')
641
-        this.guaForm.finish_time = uParseTime(this.guaForm.finish_time, '{y}-{m}-{d} {h}:{i}')
653
+        this.guaForm.start_time = uParseTime(
654
+          this.guaForm.start_time,
655
+          "{y}-{m}-{d} {h}:{i}"
656
+        );
657
+        this.guaForm.arrive_time = uParseTime(
658
+          this.guaForm.arrive_time,
659
+          "{y}-{m}-{d} {h}:{i}"
660
+        );
661
+        this.guaForm.finish_time = uParseTime(
662
+          this.guaForm.finish_time,
663
+          "{y}-{m}-{d} {h}:{i}"
664
+        );
642 665
 
643
-        if (this.guaForm.failure_stage === '') {
644
-          this.guaForm.failure_stage = 0
666
+        if (this.guaForm.failure_stage === "") {
667
+          this.guaForm.failure_stage = 0;
645 668
         }
646 669
 
647
-        var failurestages = this.guaForm.failure_stage
648
-        var falur = parseInt(failurestages)
649
-        this.guaForm.failure_stage = falur
670
+        var failurestages = this.guaForm.failure_stage;
671
+        var falur = parseInt(failurestages);
672
+        this.guaForm.failure_stage = falur;
650 673
 
651
-        if (this.guaForm.exclude === '') {
652
-          this.guaForm.exclude = 0
674
+        if (this.guaForm.exclude === "") {
675
+          this.guaForm.exclude = 0;
653 676
         }
654
-        var excludes = this.guaForm.exclude
655
-        var exclude = parseInt(excludes)
656
-        this.guaForm.exclude = exclude
677
+        var excludes = this.guaForm.exclude;
678
+        var exclude = parseInt(excludes);
679
+        this.guaForm.exclude = exclude;
657 680
         if (valid) {
658 681
           UpdateRepair(this.guaForm).then(response => {
659 682
             if (response.data.state === 1) {
660
-              var repair = response.data.data.repair
661
-              this.dialogVisible = false
662
-              this.$message.success('修改成功')
683
+              var repair = response.data.data.repair;
684
+              this.dialogVisible = false;
685
+              this.$message.success("修改成功");
663 686
             }
664
-          })
687
+          });
665 688
         }
666
-      })
689
+      });
667 690
     },
668 691
     BatchDelete() {
669 692
       if (this.selectCulture.length == 0) {
670
-        this.$message.error('请选择要删除的信息')
671
-        return false
693
+        this.$message.error("请选择要删除的信息");
694
+        return false;
672 695
       }
673 696
       this.$confirm(
674
-        '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
675
-        '删除提示',
697
+        "确认要删除所选记录吗? <br>删除后,信息将无法恢复",
698
+        "删除提示",
676 699
         {
677 700
           dangerouslyUseHTMLString: true,
678
-          confirmButtonText: '确定',
679
-          cancelButtonText: '取消',
680
-          type: 'warning'
701
+          confirmButtonText: "确定",
702
+          cancelButtonText: "取消",
703
+          type: "warning"
681 704
         }
682 705
       ).then(() => {
683
-        var ids = []
684
-        var idMap = {}
706
+        var ids = [];
707
+        var idMap = {};
685 708
         for (const index in this.selectCulture) {
686
-          ids.push(this.selectCulture[index].id)
687
-          idMap[this.selectCulture[index].id] = this.selectCulture[index].id
709
+          ids.push(this.selectCulture[index].id);
710
+          idMap[this.selectCulture[index].id] = this.selectCulture[index].id;
688 711
         }
689 712
         DeleteRepair({ ids: ids }).then(response => {
690 713
           if (response.data.state === 1) {
691
-            var msg = response.data.data.msg
692
-            var planDataLength = this.tableData.length
714
+            var msg = response.data.data.msg;
715
+            var planDataLength = this.tableData.length;
693 716
             for (let index = planDataLength - 1; index >= 0; index--) {
694 717
               if (this.tableData[index].id in idMap) {
695
-                this.tableData.splice(index, 1)
718
+                this.tableData.splice(index, 1);
696 719
               }
697 720
             }
698
-            this.$message.success('删除成功')
721
+            this.$message.success("删除成功");
699 722
           }
700
-        })
701
-      })
723
+        });
724
+      });
702 725
     },
703 726
     queryRepair() {
704 727
       queryRepair(
@@ -707,44 +730,44 @@ export default {
707 730
         this.forms.end_time
708 731
       ).then(response => {
709 732
         if (response.data.state === 1) {
710
-          var repair = response.data.data.repair
711
-          this.tableData = repair
733
+          var repair = response.data.data.repair;
734
+          this.tableData = repair;
712 735
         }
713
-      })
736
+      });
714 737
     },
715 738
     handleSizeChange(limit) {
716
-      this.limit = limit
717
-      this.getAllRepair()
739
+      this.limit = limit;
740
+      this.getAllRepair();
718 741
     },
719 742
     handleCurrentChange(page) {
720
-      this.page = page
721
-      this.getAllRepair()
743
+      this.page = page;
744
+      this.getAllRepair();
722 745
     },
723 746
     DeleteRepairs(id, index) {
724 747
       this.$confirm(
725
-        '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
726
-        '删除提示',
748
+        "确认要删除所选记录吗? <br>删除后,信息将无法恢复",
749
+        "删除提示",
727 750
         {
728 751
           dangerouslyUseHTMLString: true,
729
-          confirmButtonText: '确定',
730
-          cancelButtonText: '取消',
731
-          type: 'warning'
752
+          confirmButtonText: "确定",
753
+          cancelButtonText: "取消",
754
+          type: "warning"
732 755
         }
733 756
       ).then(() => {
734 757
         DeleteRepairs(id, index).then(response => {
735 758
           if (response.data.state === 1) {
736
-            var msg = response.data.data.msg
737
-            this.tableData.splice(index, 1)
759
+            var msg = response.data.data.msg;
760
+            this.tableData.splice(index, 1);
738 761
           }
739
-        })
740
-      })
762
+        });
763
+      });
741 764
     }
742 765
   },
743 766
   created() {
744
-    this.getAllSubregion()
745
-    this.getAllRepair()
767
+    this.getAllSubregion();
768
+    this.getAllRepair();
746 769
   }
747
-}
770
+};
748 771
 </script>
749 772
 
750 773
 <style scoped></style>

File diff suppressed because it is too large
+ 770 - 644
src/xt_pages/management/components/UserForm.vue


+ 24 - 14
src/xt_pages/management/home.vue View File

@@ -53,7 +53,7 @@
53 53
                           highlight-current-row
54 54
                            border
55 55
                           @current-change="handleCurrentChange"
56
-                           height="1050"
56
+                           height="440"
57 57
                         >
58 58
                      <el-table-column
59 59
                        prop="date"
@@ -901,7 +901,7 @@
901 901
 
902 902
                    <el-tab-pane label="使用登记" name="third">
903 903
                        <div class="userbutton">
904
-                          <el-button @click="ToReminders">使用登记提醒配置</el-button>
904
+                          <el-button @click="ToReminders">自动生成使用登记</el-button>
905 905
                        </div>
906 906
                      <div v-show="UserShow">
907 907
                         <el-tabs v-model="activeNameThree" @tab-click="handleClick">
@@ -1818,11 +1818,13 @@
1818 1818
                                       action="https://upload.qiniup.com"
1819 1819
                                       :on-success="handleSuccess"
1820 1820
                                       :before-upload="beforeUploadFile"
1821
-                                       :limit="1">
1821
+                                      :limit="1"
1822
+                                      ref='upload'
1823
+                                      >
1822 1824
                                         <el-button size="small" type="primary">上传图片</el-button>
1823 1825
                                       </el-upload>
1824 1826
                                      <a class="el-upload-list__item-name">
1825
-                                        <i><a href="guaForm.images">{{filename}}</a></i>
1827
+                                        <i><a @click="toLink()">{{filename}}</a></i>
1826 1828
                                      </a>
1827 1829
                                   </el-form-item>
1828 1830
                                </el-col>
@@ -2469,7 +2471,8 @@ export default {
2469 2471
           images: '',
2470 2472
           exclude: '',
2471 2473
           reason: '',
2472
-          code_information: ''
2474
+          code_information: '',
2475
+          imageName: ''
2473 2476
         },
2474 2477
         filename: '',
2475 2478
         qiniuDomain: 'https://images.shengws.com/',
@@ -2635,20 +2638,20 @@ export default {
2635 2638
         getMachineDetailById(id).then(response => {
2636 2639
           if (response.data.state === 1) {
2637 2640
             var addmacher = response.data.data.addmacher
2638
-            console.log('addmacher', addmacher)
2641
+            // console.log('addmacher', addmacher)
2639 2642
             var warning = response.data.data.warning
2640
-            console.log('warning', warning)
2643
+            // console.log('warning', warning)
2641 2644
             var time = this.getTimestamp(this.userform.date) - warning.stime
2642
-            console.log('时间', time)
2645
+            // console.log('时间', time)
2643 2646
             if (time < 2678400 && warning.dialysis_checked === 1) {
2644 2647
               this.warnShow = false
2645 2648
             } else {
2646 2649
               this.warnShow = true
2647 2650
             }
2648 2651
             var germ = response.data.data.germ
2649
-            console.log('germ', germ)
2652
+            // console.log('germ', germ)
2650 2653
             var timetwo = this.getTimestamp(this.userform.date) - germ.stime
2651
-            console.log('时间', timetwo)
2654
+            // console.log('时间', timetwo)
2652 2655
             if (timetwo < 2678400 && germ.germ_checked === 1) {
2653 2656
               this.warnShowTwo = false
2654 2657
             } else {
@@ -2656,7 +2659,7 @@ export default {
2656 2659
             }
2657 2660
             var clean = response.data.data.clean
2658 2661
             var timethree = this.getTimestamp(this.userform.date) - clean.stime
2659
-            console.log('时间', timethree)
2662
+            // console.log('时间', timethree)
2660 2663
             if (timethree < 2678400 && clean.clean === 1) {
2661 2664
               this.warnShowThree = false
2662 2665
             } else {
@@ -2898,7 +2901,7 @@ export default {
2898 2901
         this.form.bed_number = bed_numberss
2899 2902
         this.$refs[formName].validate(valid => {
2900 2903
           UpdateMachineInfo(this.form).then(response => {
2901
-            console.log('form', this.form)
2904
+            // console.log('form', this.form)
2902 2905
             if (response.data.state === 1) {
2903 2906
               var addmacher = response.data.data.addmacher
2904 2907
               this.$message.success('修改成功')
@@ -3687,6 +3690,9 @@ export default {
3687 3690
           }
3688 3691
         })
3689 3692
       },
3693
+      toLink() {
3694
+        window.location.href = this.guaForm.images
3695
+      },
3690 3696
       // changStartTime(val) {
3691 3697
       //   this.userform.starttime = val
3692 3698
       // },
@@ -3721,7 +3727,7 @@ export default {
3721 3727
         getUserRegister(id).then(response => {
3722 3728
           if (response.data.state === 1) {
3723 3729
             var information = response.data.data.information
3724
-            console.log('使用登记', information)
3730
+            // console.log('使用登记', information)
3725 3731
             // eslint-disable-next-line no-unused-vars
3726 3732
             var role = response.data.data.role
3727 3733
             // console.log('role', role)
@@ -3994,6 +4000,7 @@ export default {
3994 4000
       },
3995 4001
       beforeUploadFile(file) {
3996 4002
         this.filename = file.name
4003
+        this.guaForm.imageName = file.name
3997 4004
         const isLt2M = file.size / 1024 / 1024 <= 2048
3998 4005
         var date = new Date()
3999 4006
         var ext = getFileExtension(file.name)
@@ -4014,7 +4021,10 @@ export default {
4014 4021
       },
4015 4022
       handleSuccess(res, file, fileList) {
4016 4023
         this.guaForm.images = this.qiniuDomain + res.url
4024
+        console.log('图片路径', this.guaForm.images)
4025
+        this.$refs.upload.clearFiles()
4017 4026
         this.filename = file.name
4027
+        this.guaForm.imageName = file.name
4018 4028
       },
4019 4029
       // eslint-disable-next-line no-dupe-keys
4020 4030
       getTime(value, temp) {
@@ -4256,7 +4266,7 @@ export default {
4256 4266
   }
4257 4267
 
4258 4268
   .userbutton{
4259
-    margin-left:985px;
4269
+   margin-left:700px;
4260 4270
   }
4261 4271
 
4262 4272
 </style>