Explorar el Código

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx hace 4 años
padre
commit
2d1094a946

+ 5 - 0
package-lock.json Ver fichero

@@ -3190,6 +3190,11 @@
3190 3190
       "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-1.5.2.tgz",
3191 3191
       "integrity": "sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ=="
3192 3192
     },
3193
+    "default-passive-events": {
3194
+      "version": "2.0.0",
3195
+      "resolved": "https://registry.npmjs.org/default-passive-events/-/default-passive-events-2.0.0.tgz",
3196
+      "integrity": "sha512-eMtt76GpDVngZQ3ocgvRcNCklUMwID1PaNbCNxfpDXuiOXttSh0HzBbda1HU9SIUsDc02vb7g9+3I5tlqe/qMQ=="
3197
+    },
3193 3198
     "define-properties": {
3194 3199
       "version": "1.1.3",
3195 3200
       "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz",

+ 1 - 0
package.json Ver fichero

@@ -43,6 +43,7 @@
43 43
     "clipboard": "^1.7.1",
44 44
     "codemirror": "5.32.0",
45 45
     "connect": "3.6.6",
46
+    "default-passive-events": "^2.0.0",
46 47
     "driver.js": "0.5.2",
47 48
     "dropzone": "5.2.0",
48 49
     "echarts": "3.8.5",

+ 5 - 2
src/api/device/device.js Ver fichero

@@ -120,12 +120,14 @@ export function getDeviceNumbers() {
120 120
     })
121 121
 }
122 122
 
123
-export function createDeviceNumber(number, zone_id, group_id) {
123
+export function createDeviceNumber(number, zone_id, group_id,sort) {
124 124
     const params = {
125 125
         number: number,
126 126
         zone: zone_id,
127 127
         group: group_id,
128
+        sort:sort,
128 129
     }
130
+   
129 131
     return request({
130 132
         url: '/api/device/number/create',
131 133
         method: 'post',
@@ -133,12 +135,13 @@ export function createDeviceNumber(number, zone_id, group_id) {
133 135
     })
134 136
 }
135 137
 
136
-export function modifyDeviceNumber(id, number, zone_id, group_id) {
138
+export function modifyDeviceNumber(id, number, zone_id, group_id,sort) {
137 139
     const params = {
138 140
         id: id,
139 141
         number: number,
140 142
         zone: zone_id,
141 143
         group: group_id,
144
+        sort:sort
142 145
     }
143 146
     return request({
144 147
         url: '/api/device/number/modify',

+ 3 - 1
src/api/dialysis.js Ver fichero

@@ -241,7 +241,7 @@ export function postDelMonitorInfo(params) {
241 241
 }
242 242
 
243 243
 export function CreateGroupAdvice(id, groupno, advices) {
244
-  console.log('中国人名', advices)
244
+ 
245 245
   return request({
246 246
     url: '/api/advice_remind/create?id=' + id + '&groupno=' + groupno,
247 247
     method: 'post',
@@ -290,3 +290,5 @@ export function GetDialysisGoodStatistics(params) {
290 290
 
291 291
   })
292 292
 }
293
+
294
+

+ 2 - 0
src/main.js Ver fichero

@@ -29,6 +29,8 @@ import VueClipboard from 'vue-clipboard2'
29 29
 import * as filters from './filters' // global filters
30 30
 
31 31
 import * as voicePromptFun from './utils/voicePrompt' 
32
+
33
+import 'default-passive-events'
32 34
 Vue.prototype.voicePrompt = voicePromptFun.voicePrompt  //语音提醒
33 35
 
34 36
 Vue.use(Element, {

+ 1 - 1
src/views/layout/components/Navbar.vue Ver fichero

@@ -312,7 +312,7 @@ export default {
312 312
               this.showWsErr = false;
313 313
             }
314 314
             this.websocket.send("1");
315
-          }, 3000);
315
+          }, 55000);
316 316
         }
317 317
         
318 318
       }).catch(error => {

+ 1 - 1
src/xt_pages/data/druguseTemplate.vue Ver fichero

@@ -1817,7 +1817,7 @@
1817 1817
             var arr = this.templateForm.advice_name.split("(自备药)")
1818 1818
             this.templateForm.advice_name = arr[0]
1819 1819
         }
1820
-        console.log("2222",this.templateForm)
1820
+        // console.log("2222",this.templateForm)
1821 1821
 
1822 1822
         this.$refs[formName].validate(valid => {
1823 1823
           this.templateForm.single_dose = parseFloat(this.templateForm.single_dose)

+ 25 - 5
src/xt_pages/device/number_main.vue Ver fichero

@@ -36,6 +36,11 @@
36 36
               label="所属分组"
37 37
               align="center"
38 38
             ></el-table-column>
39
+            <el-table-column prop="sort" label="排序" align="center">
40
+                <template slot-scope="scope">
41
+                    {{scope.row.sort?scope.row.sort:""}}
42
+                </template>
43
+            </el-table-column>
39 44
             <el-table-column label="操作" align="center">
40 45
               <template slot-scope="scope">
41 46
                 <el-tooltip
@@ -133,6 +138,9 @@
133 138
               ></el-option>
134 139
             </el-select>
135 140
           </el-form-item>
141
+          <el-form-item label="排序:">
142
+              <el-input style="width:220px" v-model="number_form.sort"></el-input>
143
+          </el-form-item>
136 144
           <!-- <el-form-item>
137 145
                     <el-button @click="cancelModifyDeviceNumber">取 消</el-button>
138 146
                     <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="editDeviceNumberSubmitAction">保存</el-button>
@@ -176,7 +184,8 @@ export default {
176 184
         id: 0,
177 185
         number: "",
178 186
         zone: "",
179
-        group: ""
187
+        group: "",
188
+        sort:"",
180 189
       },
181 190
       formLabelWidth: "110px",
182 191
       showEditDeviceNumber: false,
@@ -194,10 +203,10 @@ export default {
194 203
       this.loading = false;
195 204
       var resp = rs.data;
196 205
       if (resp.state === 1) {
197
-        // console.log(resp)
198 206
         this.zones.push(...resp.data.zones);
199 207
         this.groups.push(...resp.data.groups);
200 208
         this.device_numbers.push(...resp.data.numbers);
209
+        
201 210
       } else {
202 211
         this.$message.error(resp.msg);
203 212
       }
@@ -212,6 +221,13 @@ export default {
212 221
       this.number_form.number = row.number;
213 222
       this.number_form.zone = row.zone_id;
214 223
       this.number_form.group = row.group_id;
224
+      if(row.sort == 0){
225
+        this.number_form.sort = ""
226
+      }
227
+      if(row.sort != 0){
228
+        this.number_form.sort = row.sort
229
+      }
230
+     
215 231
       this.showEditDeviceNumber = true;
216 232
     },
217 233
     cancelModifyDeviceNumber() {
@@ -219,6 +235,7 @@ export default {
219 235
       this.number_form.number = "";
220 236
       this.number_form.zone = "";
221 237
       this.number_form.group = "";
238
+      this.number_form.sort = ""
222 239
       this.$refs.form_number.clearValidate();
223 240
       this.showEditDeviceNumber = false;
224 241
     },
@@ -229,13 +246,14 @@ export default {
229 246
             createDeviceNumber(
230 247
               this.number_form.number,
231 248
               this.number_form.zone,
232
-              this.number_form.group
249
+              this.number_form.group,
250
+              this.number_form.sort
233 251
             ).then(rs => {
234 252
               var resp = rs.data;
235 253
               if (resp.state === 1) {
236 254
                 var newNumber = resp.data.number;
237 255
                 this.device_numbers.push(newNumber);
238
-                this.cancelModifyDeviceNumber();
256
+                this.cancelModifyDeviceNumber();           
239 257
               } else {
240 258
                 this.$message.error("床位号/机号已存在!");
241 259
               }
@@ -245,7 +263,8 @@ export default {
245 263
               this.number_form.id,
246 264
               this.number_form.number,
247 265
               this.number_form.zone,
248
-              this.number_form.group
266
+              this.number_form.group,
267
+              this.number_form.sort
249 268
             ).then(rs => {
250 269
               var resp = rs.data;
251 270
               // console.log(resp.data)
@@ -262,6 +281,7 @@ export default {
262 281
                     number.group_id = resp.data.number.group_id;
263 282
                     number.zone_name = resp.data.number.zone_name;
264 283
                     number.group_name = resp.data.number.group_name;
284
+                    number.sort = resp.data.number.sort;
265 285
                     break;
266 286
                   }
267 287
                 }

+ 2 - 2
src/xt_pages/dialysis/components/allSummary.vue Ver fichero

@@ -298,7 +298,7 @@ export default {
298 298
               }
299 299
 
300 300
 
301
-             console.log("2222222",arr)
301
+            //  console.log("2222222",arr)
302 302
 
303 303
 
304 304
               let newObj = {
@@ -323,7 +323,7 @@ export default {
323 323
 
324 324
               }
325 325
               }
326
-              console.log("list22222",this.list)
326
+              // console.log("list22222",this.list)
327 327
              }
328 328
           })
329 329
         },

+ 2 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Ver fichero

@@ -3218,11 +3218,9 @@
3218 3218
         const res = new Map();
3219 3219
         return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1));
3220 3220
       },
3221
+     
3221 3222
     },
3222
-    // created(){
3223
-    //   var org_id =  this.$store.getters.xt_user.template_info.org_id
3224
-    //   console.log("org_id-----",org_id)
3225
-    // },
3223
+  
3226 3224
     watch: {
3227 3225
       'dialysisPrescription.dialysis_duration_hour': function() {
3228 3226
         let dialysis_duration_minute = 0

+ 4 - 3
src/xt_pages/dialysis/details/index.vue Ver fichero

@@ -970,7 +970,7 @@ export default {
970 970
         if (resp.state == 1) {
971 971
           var patient = resp.data.patient // 患者信息
972 972
           var schedual = resp.data.schedual // 患者排班信息
973
-          // console.log("患者排班信息99999999",schedual)
973
+          console.log("患者排班信息99999999",schedual)
974 974
           var prescription = resp.data.prescription // 透析处方
975 975
           if (prescription != null) {
976 976
             if (prescription.body_fluid == -2) {
@@ -1118,8 +1118,9 @@ export default {
1118 1118
           
1119 1119
           this.his_is_open = resp.data.is_open_config.is_open
1120 1120
           console.log(this.his_is_open)
1121
-
1122
-
1121
+          
1122
+          // var stockType =  resp.data.stockType
1123
+          // console.log("stockTYPW",stockType)
1123 1124
           for (let i = 0; i <  this.doctor_advices.length; i++){
1124 1125
             this.doctor_advices[i]['origin'] = 1
1125 1126
           }

+ 6 - 10
src/xt_pages/dialysis/schedualPatient.vue Ver fichero

@@ -346,17 +346,13 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
346 346
         clearInterval(timer)
347 347
       })
348 348
 
349
-      this.timers = setInterval(() => {
350
-        let obj = {
351
-            cmd: "queue/join",
352
-            data: {type:3,page:0,size:0},
353
-        };
354
-        this.websocketSend(obj)
355
-      }, 1000*50);
349
+      let obj = {
350
+          cmd: "queue/join",
351
+          data: {type:3,page:0,size:0},
352
+      };
353
+      this.websocketSend(obj)
356 354
     },
357 355
     beforeDestroy(){
358
-      clearInterval(this.timers);  // 清除定时器
359
-      this.timers = null
360 356
 
361 357
       let unObj = {
362 358
           cmd: "queue/unjoin",
@@ -380,7 +376,7 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
380 376
         this.websocket.onmessage = e => {
381 377
           let res = JSON.parse(e.data);
382 378
           // let res = re.data;
383
-          // console.log('res3333333333',res)
379
+          console.log('res3333333333',res)
384 380
           if(res.channel == 'queue/join'){
385 381
             if(res.data.fisrtQueueInfo != null){
386 382
               if(res.data.fisrtQueueInfo.create_time){

+ 10 - 7
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Ver fichero

@@ -535,14 +535,17 @@
535 535
                       </td>
536 536
                       <td>{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}
537 537
                       </td>
538
-                      <td v-if="(dialysisOrder && monitor.operate_time > dialysisOrder.end_time ) || (dialysisOrder && monitor.operate_time < dialysisOrder.start_time)">
539
-                        {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}
540
-                      </td>
541
-                      <td v-if="(dialysisOrder && monitor.operate_time <= dialysisOrder.end_time) && (dialysisOrder && monitor.operate_time >= dialysisOrder.start_time)">
542
-                        {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : 0 }}
538
+                      <td>
539
+                        <span v-if="(dialysisOrder && monitor.operate_time > dialysisOrder.end_time ) || (dialysisOrder && monitor.operate_time < dialysisOrder.start_time)">
540
+                          {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}
541
+                        </span>
542
+                        <span v-if="(dialysisOrder && monitor.operate_time <= dialysisOrder.end_time) && (dialysisOrder && monitor.operate_time >= dialysisOrder.start_time)">
543
+                          {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : 0 }}
544
+                        </span>
543 545
                       </td>
544 546
                       <td>{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}</td>
545
-                      <td>{{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }}</td>
547
+                      <td>{{ monitor.conductivity ? monitor.conductivity : "" }}
548
+                      </td>
546 549
                       <td v-if="(dialysisOrder && monitor.operate_time > dialysisOrder.end_time) || (dialysisOrder && monitor.operate_time < dialysisOrder.start_time)">
547 550
                         {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}
548 551
                       </td>
@@ -1340,7 +1343,7 @@ export default {
1340 1343
           this.predialysis.blood_access_part_opera_id
1341 1344
         )
1342 1345
         this.afterdialysis = response.data.data.AssessmentAfterDislysis
1343
-        console.log('透后体重', this.afterdialysis)
1346
+        // console.log('透后体重', this.afterdialysis)
1344 1347
         this.lastafterdialysis = response.data.data.assessmentAfterDislysis
1345 1348
         this.operators = response.data.data.operators
1346 1349
         console.log('operators', this.operators)

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderThirty.vue Ver fichero

@@ -146,7 +146,7 @@
146 146
                 <td width="80">透析前体重:</td>
147 147
                 <td width="70">
148 148
                   <div class="under-line">
149
-                    &nbsp;{{ predialysis.weight_before ? predialysis.weight_before : "" }}
149
+                    &nbsp;{{ predialysis.weight_before ? predialysis.weight_before : "未称重" }}
150 150
                   </div>
151 151
                 </td>
152 152
                 <td width="35">kg</td>
@@ -430,7 +430,7 @@
430 430
                     <td width="30"></td>
431 431
                     <td width='70'>透后体重:</td>
432 432
                     <td width="50">
433
-                      <div class="under-line">&nbsp;{{ afterdialysis.weight_after ? afterdialysis.weight_after : "" }}</div>
433
+                      <div class="under-line">&nbsp;{{ afterdialysis.weight_after ? afterdialysis.weight_after : "未称重" }}</div>
434 434
                     </td>
435 435
                     <td width="10">Kg</td>
436 436
                     <td></td>

+ 8 - 10
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue Ver fichero

@@ -1,9 +1,9 @@
1 1
 <template>
2 2
   <div id="dialysis-print-box">
3 3
     <div id='new-dialysis-1' class="dialysis-print-order">
4
-      <div class="order-yy-name"></div>
5
-      <div class="order-title">{{ orgname }} 血液净化治疗记录单</div>
6
-      <table class="table-box" style="margin-top: 10px;">
4
+      <div class="order-yy-name" style="font-size:28px;font-weight:bold;">{{ orgname }}</div>
5
+      <div class="order-title">血液净化治疗记录单</div>
6
+      <table class="table-box">
7 7
         <tbody>
8 8
           <tr>
9 9
             <td width="50">姓 名:</td>
@@ -93,12 +93,10 @@
93 93
             </td>
94 94
             <td width='30'></td>
95 95
             <td width="30">机位</td>
96
-            <td width="50">
96
+            <td width="120">
97 97
                 <div class="under-line">&nbsp;{{ getNumber() }}</div>
98 98
             </td>
99 99
             <td width="20">号</td>
100
-            
101
-            <td width="20"></td>
102 100
 
103 101
             <td></td>
104 102
 
@@ -168,7 +166,7 @@
168 166
                       </div>
169 167
                     </td>
170 168
                     <td width="100">
171
-                        <div class="under-line">{{ predialysis.hemorrhage_other ? predialysis.hemorrhage_other : '' }}</div>
169
+                        <div class="under-line">&nbsp;{{ predialysis.hemorrhage_other ? predialysis.hemorrhage_other : '' }}</div>
172 170
                     </td>
173 171
                     <td></td>
174 172
                   </tr>
@@ -376,12 +374,12 @@
376 374
                     <td width='50'>血流量</td>
377 375
                     <td width="220">
378 376
                       <div>
379
-                        <label-box :isChecked="predialysis.catheter.indexOf('血流量-好') > -1 ? true : false" showValue="干洁"></label-box>
377
+                        <label-box :isChecked="predialysis.catheter.indexOf('血流量-好') > -1 ? true : false" showValue=""></label-box>
380 378
                         &nbsp;
381 379
                         <label-box :isChecked="predialysis.catheter.indexOf('血流量差-A') > -1 ? true : false" showValue="A"></label-box>
382
-                        &nbsp;
380
+                        /
383 381
                         <label-box :isChecked="predialysis.catheter.indexOf('血流量差-V') > -1 ? true : false" showValue="V"></label-box>
384
-                        &nbsp;
382
+                        &nbsp;
385 383
                         <label-box :isChecked="predialysis.catheter.indexOf('血流量-AV反接') > -1 ? true : false" showValue="AV反接"></label-box>
386 384
                       </div>
387 385
                     </td>

+ 32 - 22
src/xt_pages/sign/lineUp.vue Ver fichero

@@ -43,7 +43,7 @@
43 43
                 <div class="lineUpMain">
44 44
                     <div class="lineUpMainLeft">
45 45
                         <div class="lineUpMainLeftTitle">
46
-                            <p style="width:12%">排号</p>
46
+                            <p style="width:12%">排号</p>
47 47
                             <p style="width:14%">姓名</p>
48 48
                             <p style="width:14%">病例号</p>
49 49
                             <p style="width:14%">床位号</p>
@@ -53,7 +53,12 @@
53 53
                         </div>
54 54
                         <div class="lineUpList">
55 55
                             <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
56
-                                <p style="width:12%">{{ item.queue_no }}</p>
56
+                                <p style="width:12%">
57
+                                    <span v-if="item.schedule_type == 1">上午</span>
58
+                                    <span v-if="item.schedule_type == 2">下午</span>
59
+                                    <span v-if="item.schedule_type == 3">晚上</span>
60
+                                    {{ item.queue_no }}号
61
+                                </p>
57 62
                                 <p style="width:14%">{{ item.patient_name }}</p>
58 63
                                 <p style="width:14%">{{ item.dialysis_no }}</p>
59 64
                                 <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
@@ -76,15 +81,15 @@
76 81
                                 <div class="callingTop" style="margin-bottom:10px;">
77 82
                                     <div class="callingTopTip"><span style="margin: 0 auto;">正在<br />接诊</span></div>
78 83
                                     <div class="callingContent">
79
-                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in receivingPatient.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
80
-                                        <p><span v-for="(item,index) in receivingPatient.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
84
+                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in (receivingPatient || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
85
+                                        <p><span v-for="(item,index) in (receivingPatient || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
81 86
                                     </div>
82 87
                                 </div>
83 88
                                 <div class="callingTop" style="border-radius: 0 0 15px 0;">
84 89
                                     <div class="callingTopTip"><span style="margin: 0 auto;">等待<br />接诊</span></div>
85 90
                                     <div class="callingContent">
86
-                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in waitDoctorList.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
87
-                                        <p><span v-for="(item,index) in waitDoctorList.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
91
+                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in (waitDoctorList || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
92
+                                        <p><span v-for="(item,index) in (waitDoctorList || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
88 93
                                     </div>
89 94
                                 </div>
90 95
                             </div>
@@ -95,15 +100,15 @@
95 100
                                 <div class="callingTop" style="margin-bottom:10px;">
96 101
                                     <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">正在<br />叫号</span></div>
97 102
                                     <div class="callingContent newCallingContent">
98
-                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in upPatientList.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
99
-                                        <p><span v-for="(item,index) in upPatientList.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
103
+                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in (upPatientList || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
104
+                                        <p><span v-for="(item,index) in (upPatientList || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
100 105
                                     </div>
101 106
                                 </div>
102 107
                                 <div class="callingTop" style="border-radius: 0 0 15px 0;">
103 108
                                     <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">等待<br />叫号</span></div>
104 109
                                     <div class="callingContent newCallingContent">
105
-                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in receivingPatient.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
106
-                                        <p><span v-for="(item,index) in receivingPatient.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
110
+                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in (receivingPatient || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
111
+                                        <p><span v-for="(item,index) in (receivingPatient || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
107 112
                                     </div>
108 113
                                 </div>
109 114
                             </div>
@@ -122,7 +127,7 @@
122 127
                 <div class="lineUpMain">
123 128
                     <div class="lineUpMainLeft">
124 129
                         <div class="lineUpMainLeftTitle">
125
-                            <p style="width:12%">排号</p>
130
+                            <p style="width:12%">排号</p>
126 131
                             <p style="width:14%">姓名</p>
127 132
                             <p style="width:14%">病例号</p>
128 133
                             <p style="width:14%">床位号</p>
@@ -132,7 +137,12 @@
132 137
                         </div>
133 138
                         <div class="lineUpList">
134 139
                             <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
135
-                                <p style="width:12%">{{ item.queue_no }}</p>
140
+                                <p style="width:12%">
141
+                                    <span v-if="item.schedule_type == 1">上午</span>
142
+                                    <span v-if="item.schedule_type == 2">下午</span>
143
+                                    <span v-if="item.schedule_type == 3">晚上</span>
144
+                                    {{ item.queue_no }}号
145
+                                </p>
136 146
                                 <p style="width:14%">{{ item.patient_name }}</p>
137 147
                                 <p style="width:14%">{{ item.dialysis_no }}</p>
138 148
                                 <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
@@ -155,15 +165,15 @@
155 165
                                 <div class="callingTop" style="margin-bottom:10px;">
156 166
                                     <div class="callingTopTip"><span style="margin: 0 auto;">正在<br />接诊</span></div>
157 167
                                     <div class="callingContent">
158
-                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in receivingPatient.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
159
-                                        <p><span v-for="(item,index) in receivingPatient.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
168
+                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in (receivingPatient || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
169
+                                        <p><span v-for="(item,index) in (receivingPatient || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
160 170
                                     </div>
161 171
                                 </div>
162 172
                                 <div class="callingTop" style="border-radius: 0 0 15px 0;">
163 173
                                     <div class="callingTopTip"><span style="margin: 0 auto;">等待<br />接诊</span></div>
164 174
                                     <div class="callingContent">
165
-                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in waitDoctorList.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
166
-                                        <p><span v-for="(item,index) in waitDoctorList.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
175
+                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in (waitDoctorList || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
176
+                                        <p><span v-for="(item,index) in (waitDoctorList || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
167 177
                                     </div>
168 178
                                 </div>
169 179
                             </div>
@@ -174,15 +184,15 @@
174 184
                                 <div class="callingTop" style="margin-bottom:10px;">
175 185
                                     <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">正在<br />叫号</span></div>
176 186
                                     <div class="callingContent newCallingContent">
177
-                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in upPatientList.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
178
-                                        <p><span v-for="(item,index) in upPatientList.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
187
+                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in (upPatientList || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
188
+                                        <p><span v-for="(item,index) in (upPatientList || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
179 189
                                     </div>
180 190
                                 </div>
181 191
                                 <div class="callingTop" style="border-radius: 0 0 15px 0;">
182 192
                                     <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">等待<br />叫号</span></div>
183 193
                                     <div class="callingContent newCallingContent">
184
-                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in receivingPatient.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
185
-                                        <p><span v-for="(item,index) in receivingPatient.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
194
+                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in (receivingPatient || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
195
+                                        <p><span v-for="(item,index) in (receivingPatient || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
186 196
                                     </div>
187 197
                                 </div>
188 198
                             </div>
@@ -284,7 +294,7 @@ export default {
284 294
                 this.page++
285 295
                 let obj = {
286 296
                     cmd: "queue/queuelist",
287
-                    data: {page:this.page,size:6}
297
+                    data: {page:this.page,size:6,sort:0}
288 298
                 };
289 299
                 this.websocketSend(obj)
290 300
                 setTimeout(() => {
@@ -295,7 +305,7 @@ export default {
295 305
                 this.page = 1
296 306
                 let a = {
297 307
                     cmd: "queue/queuelist",
298
-                    data: {page:this.page,size:6}
308
+                    data: {page:this.page,size:6,sort:0}
299 309
                 };
300 310
                 this.websocketSend(a)
301 311
                 setTimeout(() => {

+ 49 - 26
src/xt_pages/sign/signIn.vue Ver fichero

@@ -44,14 +44,19 @@
44 44
                     <div style="display: flex;justify-content: space-between;padding:10px;">
45 45
                         <div class="signInMainLeft">
46 46
                             <div class="signInMainLeftTitle">
47
-                                <p>排号</p>
47
+                                <p>排号</p>
48 48
                                 <p>姓名</p>
49 49
                                 <p>病历号</p>
50 50
                                 <p>签到时间</p>
51 51
                             </div>
52 52
                             <div class="signInList">
53 53
                                 <div class="signInListOne" v-for="(item,index) in signInList" :key="index">
54
-                                    <p>{{ item.queue_no }}</p>
54
+                                    <p>
55
+                                        <span v-if="item.schedule_type == 1">上午</span>
56
+                                        <span v-if="item.schedule_type == 2">下午</span>
57
+                                        <span v-if="item.schedule_type == 3">晚上</span>
58
+                                        {{ item.queue_no }}号
59
+                                    </p>
55 60
                                     <p>{{ item.patient_name }}</p>
56 61
                                     <p>{{ item.dialysis_no }}</p>
57 62
                                     <p>{{ item.create_time }}</p>
@@ -61,7 +66,7 @@
61 66
                         <div class="signInMainRight">
62 67
                             <div class="signInMainRightTitle"><span style="margin:0 auto;" v-if='Object.keys(queueInfo).length>0'>{{ queueInfo.patient_name }}</span></div>
63 68
                             <div class="signInMainRightContent">
64
-                                <p style="margin: 0 auto;display:flex;align-items: center;" v-if='Object.keys(queueInfo).length>0'><span>排号&nbsp;</span><span style="font-size:180px;">{{ queueInfo.queue_no }}</span></p>
69
+                                <p style="margin: 0 auto;display:flex;align-items: center;" v-if='Object.keys(queueInfo).length>0'><span>排号&nbsp;</span><span style="font-size:180px;">{{ queueInfo.queue_no }}</span></p>
65 70
                             </div>
66 71
                             <div class="signInMianRightBottom"><span style="margin:0 auto;" v-if='Object.keys(queueInfo).length>0'>签到成功</span></div>
67 72
                         </div>
@@ -82,14 +87,19 @@
82 87
                     <div style="display: flex;justify-content: space-between;padding:10px;">
83 88
                         <div class="signInMainLeft">
84 89
                             <div class="signInMainLeftTitle">
85
-                                <p>排号</p>
90
+                                <p>排号</p>
86 91
                                 <p>姓名</p>
87 92
                                 <p>病历号</p>
88 93
                                 <p>签到时间</p>
89 94
                             </div>
90 95
                             <div class="signInList">
91 96
                                 <div class="signInListOne" v-for="(item,index) in signInList" :key="index">
92
-                                    <p>{{ item.queue_no }}</p>
97
+                                    <p>
98
+                                        <span v-if="item.schedule_type == 1">上午</span>
99
+                                        <span v-if="item.schedule_type == 2">下午</span>
100
+                                        <span v-if="item.schedule_type == 3">晚上</span>
101
+                                        {{ item.queue_no }}号
102
+                                    </p>
93 103
                                     <p>{{ item.patient_name }}</p>
94 104
                                     <p>{{ item.dialysis_no }}</p>
95 105
                                     <p>{{ item.create_time }}</p>
@@ -99,7 +109,7 @@
99 109
                         <div class="signInMainRight">
100 110
                             <div class="signInMainRightTitle"><span style="margin:0 auto;" v-if='Object.keys(queueInfo).length>0'>{{ queueInfo.patient_name }}</span></div>
101 111
                             <div class="signInMainRightContent">
102
-                                <p style="margin: 0 auto;display:flex;align-items: center;" v-if='Object.keys(queueInfo).length>0'><span>排号&nbsp;</span><span style="font-size:180px;">{{ queueInfo.queue_no }}</span></p>
112
+                                <p style="margin: 0 auto;display:flex;align-items: center;" v-if='Object.keys(queueInfo).length>0'><span>排号&nbsp;</span><span style="font-size:180px;">{{ queueInfo.queue_no }}</span></p>
103 113
                             </div>
104 114
                             <div class="signInMianRightBottom"><span style="margin:0 auto;" v-if='Object.keys(queueInfo).length>0'>签到成功</span></div>
105 115
                         </div>
@@ -155,23 +165,25 @@ export default {
155 165
         this.websocketMess();
156 166
     },
157 167
     mounted(){
158
-        if(this.page < Math.ceil(this.count / 10)){
159
-            console.log('执行')
160
-            this.page++
161
-            let obj = {
162
-                cmd: "queue/queuelist",
163
-                data: {page:this.page,size:10}
164
-            };
165
-            this.websocketSend(obj)
166
-        }else{
167
-            console.log('执行2222')
168
-            this.page = 1
169
-            let newobj = {
170
-                cmd: "queue/queuelist",
171
-                data: {page:this.page,size:10}
172
-            };
173
-            this.websocketSend(newobj)
174
-        }
168
+        this.timer = setInterval(() => {
169
+            if(this.page < Math.ceil(this.count / 10)){
170
+                console.log('执行')
171
+                this.page++
172
+                let obj = {
173
+                    cmd: "queue/queuelist",
174
+                    data: {page:this.page,size:10,sort:1}
175
+                };
176
+                this.websocketSend(obj)
177
+            }else{
178
+                console.log('执行2222')
179
+                this.page = 1
180
+                let newobj = {
181
+                    cmd: "queue/queuelist",
182
+                    data: {page:this.page,size:10,sort:1}
183
+                };
184
+                this.websocketSend(newobj)
185
+            }
186
+        }, 20000);
175 187
         
176 188
         this.timerID = setInterval(() => {
177 189
             this.updateTime()
@@ -179,6 +191,7 @@ export default {
179 191
         // this.updateTime();
180 192
     },
181 193
     beforeDestroy(){
194
+        clearInterval(this.timer);  // 清除定时器
182 195
         clearInterval(this.timerID);  // 清除定时器
183 196
         let obj = {
184 197
             cmd: "queue/unjoin",
@@ -211,9 +224,10 @@ export default {
211 224
                 }else if(res.channel == "patientQueueInfo"){
212 225
 
213 226
                     this.queueInfo = res.data.queueInfo
227
+                    this.page = 1
214 228
                     let obj = {
215 229
                         cmd: "queue/queuelist",
216
-                        data: {page:1,size:10}
230
+                        data: {page:1,size:10,sort:1}
217 231
                     };
218 232
                     this.websocketSend(obj)
219 233
                     
@@ -295,7 +309,7 @@ export default {
295 309
         
296 310
     }
297 311
     .signInMainLeft{
298
-        width:65%;
312
+        width:69%;
299 313
         height: 980px;
300 314
         border-radius: 15px;
301 315
     }
@@ -317,6 +331,15 @@ export default {
317 331
     .signInList{
318 332
         font-size: 36px;
319 333
         font-weight: 600;
334
+        >div:nth-child(1){
335
+            font-size: 50px;
336
+        }
337
+        >div:nth-child(2){
338
+            font-size: 50px;
339
+        }
340
+        >div:nth-child(3){
341
+            font-size: 50px;
342
+        }
320 343
         >div:nth-child(odd){
321 344
             background: #F9FDFF;
322 345
         }
@@ -339,7 +362,7 @@ export default {
339 362
         }
340 363
     }
341 364
     .signInMainRight{
342
-        width: 34%;
365
+        width: 30%;
343 366
         height: 980px;
344 367
     }
345 368
     .signInMainRightTitle{

+ 17 - 4
src/xt_pages/stock/Dialog/goodTypeDialog.vue Ver fichero

@@ -9,11 +9,20 @@
9 9
           </el-form-item>
10 10
         </el-col>
11 11
       </el-row>
12
+      <el-row>
13
+        <el-col>
14
+          <el-form-item label="耗材属性">
15
+              <el-radio v-model="formValue.stock_attribute" label="1">无</el-radio>
16
+              <el-radio v-model="formValue.stock_attribute" label="2">透析器</el-radio>
17
+              <el-radio v-model="formValue.stock_attribute" label="3">灌流器</el-radio>
18
+          </el-form-item>
19
+        </el-col>
20
+      </el-row>
12 21
       <el-row>
13 22
         <el-col>
14 23
           <el-form-item label="耗材出库" prop="out_stock">
15
-             <el-radio v-model="out_stock" label="1">是</el-radio>
16
-             <el-radio v-model="out_stock" label="2">否</el-radio>
24
+             <el-radio v-model="formValue.out_stock" label="1">是</el-radio>
25
+             <el-radio v-model="formValue.out_stock" label="2">否</el-radio>
17 26
           </el-form-item>     
18 27
         </el-col>
19 28
       </el-row>
@@ -57,7 +66,8 @@ export default {
57 66
           { required: true, message: "请输入类型名称", trigger: "blur" }
58 67
         ]
59 68
       },
60
-       out_stock: '1'
69
+       out_stock: '1',
70
+       stock_attribute:"1"
61 71
     };
62 72
   },
63 73
   props: {
@@ -96,7 +106,8 @@ export default {
96 106
       form["type_name"] = this.formValue.type_name;
97 107
       form["remark"] = this.formValue.remark;
98 108
       form["isCreated"] = this.isCreated;
99
-      form['out_stock'] = this.out_stock;
109
+      form['out_stock'] = this.formValue.out_stock;
110
+      form["stock_attribute"] = this.formValue.stock_attribute
100 111
       return form;
101 112
     }
102 113
   },
@@ -107,6 +118,8 @@ export default {
107 118
           this.$refs["formValue"].resetFields();
108 119
           this.formValue.remark = "";
109 120
           this.formValue.type_name = "";
121
+          this.formValue.stock_attribute="1";
122
+          this.formValue.out_stock = "1"
110 123
         }, 0);
111 124
     }
112 125
   }

+ 11 - 5
src/xt_pages/stock/config/goodType.vue Ver fichero

@@ -228,7 +228,9 @@ export default {
228 228
           isCreated: 1, //1.创建 2.编辑 3.查看详情
229 229
           formValue: {
230 230
             type_name: "",
231
-            remark: ""
231
+            remark: "",
232
+            stock_attribute:"1",
233
+            out_stock:"1",
232 234
           },
233 235
           isVisibility: false
234 236
         }
@@ -251,13 +253,15 @@ export default {
251 253
           this.$message.error(response.data.msg);
252 254
           return false;
253 255
         } else {
254
-          this.goodType.goodTypeDialog.formValue.remark =
255
-            response.data.data.goodType.remark;
256
-          this.goodType.goodTypeDialog.formValue.type_name =
257
-            response.data.data.goodType.type_name;
256
+          console.log("response.data.data",response.data.data.goodType)
257
+          this.goodType.goodTypeDialog.formValue.remark = response.data.data.goodType.remark;
258
+          this.goodType.goodTypeDialog.formValue.type_name =response.data.data.goodType.type_name;
259
+          this.goodType.goodTypeDialog.formValue.stock_attribute = response.data.data.goodType.stock_attribute.toString()
260
+          this.goodType.goodTypeDialog.formValue.out_stock = response.data.data.goodType.out_stock.toString()
258 261
           this.goodType.goodTypeDialog.isCreated = 2;
259 262
           this.$refs.dialog.show();
260 263
           this.goodType.type_code = response.data.data.goodType.type_code;
264
+
261 265
         }
262 266
       });
263 267
     },
@@ -315,6 +319,7 @@ export default {
315 319
           type_code: this.goodType.type_code,
316 320
           id: this.goodType.editTypeId,
317 321
           out_stock:val.out_stock,
322
+          stock_attribute:val.stock_attribute,
318 323
         };
319 324
       
320 325
         modifyGoodType(params).then(response => {
@@ -334,6 +339,7 @@ export default {
334 339
         });
335 340
       } else if (val.isCreated == 1) {
336 341
         //新增
342
+        console.log("val22222",val)
337 343
        
338 344
         createGoodType(val).then(response => {
339 345
           

+ 1 - 1
src/xt_pages/upload/fast/basicInfo.vue Ver fichero

@@ -198,7 +198,7 @@ export default {
198 198
     watch:{
199 199
         patient:{
200 200
             handler:function(val) {
201
-                console.log(1111111111111,val)
201
+                // console.log(1111111111111,val)
202 202
                 Object.keys(val).map((item,index) => {
203 203
                     this.$set(this.form, item, val[item])
204 204
                     this.$forceUpdate()