Преглед изворни кода

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

csx пре 3 година
родитељ
комит
067f33b243

+ 16 - 0
src/api/stock.js Прегледај датотеку

@@ -922,3 +922,19 @@ export function getInventoryDetailPrintList(params) {
922 922
     params: params
923 923
   })
924 924
 }
925
+
926
+export function getGoodWarehouseList(params) {
927
+  return request({
928
+    url: '/api/stock/getgoodwarehouselist',
929
+    method: 'Get',
930
+    params: params
931
+  })
932
+}
933
+
934
+export function proofInventory(params) {
935
+  return request({
936
+    url: '/api/stock/proofinventory',
937
+    method: 'get',
938
+    params: params
939
+  })
940
+}

+ 13 - 6
src/xt_pages/dialysis/details/DialysisPrescription.vue Прегледај датотеку

@@ -58,8 +58,8 @@
58 58
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{anticoagulant_zongliang != "0" ? anticoagulant_zongliang : ""}}</span>
59 59
           <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101">
60 60
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
61
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 &&  this.$store.getters.xt_user.template_info.template_id != 23 &&  this.$store.getters.xt_user.template_info.template_id != 40">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
62
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40)">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
61
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 &&  this.$store.getters.xt_user.template_info.template_id != 23 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 38">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
62
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38)">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
63 63
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3" >{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
64 64
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
65 65
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
@@ -142,8 +142,8 @@
142 142
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_shouji != "0" ? anticoagulant_shouji : "" }}</span>
143 143
           <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101">
144 144
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
145
-            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && this.$store.getters.xt_user.template_info.template_id != 13  && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
146
-            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 ||  this.$store.getters.xt_user.template_info.template_id == 40)" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
145
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && this.$store.getters.xt_user.template_info.template_id != 13  && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 38" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
146
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38)" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
147 147
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
148 148
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
149 149
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span >
@@ -238,8 +238,8 @@
238 238
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_weichi != "0" ? anticoagulant_weichi : "" }}</span>
239 239
           <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101">
240 240
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"></span>
241
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
242
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 ||  this.$store.getters.xt_user.template_info.template_id == 40)">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
241
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 38">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
242
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38)">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
243 243
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
244 244
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
245 245
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
@@ -388,6 +388,13 @@
388 388
             <span>{{this.prescription.oxygen_time}}</span>
389 389
            </span>
390 390
         </li>
391
+
392
+         <li v-if="isShow('最大超滤率')">
393
+          <label>最大超滤率(ml/h):</label>
394
+          <span class="content">
395
+            <span>{{this.prescription.max_ultrafiltration_rate}}</span>
396
+           </span>
397
+        </li>
391 398
        
392 399
       </ul>
393 400
     </div>

+ 1 - 1
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Прегледај датотеку

@@ -2549,7 +2549,7 @@
2549 2549
       this.getSelfMedicalList()
2550 2550
     },mounted(){
2551 2551
       console.log("~~~~~")
2552
-      console.log(this.his_is_open)
2552
+      console.log(this.doctor_advices)
2553 2553
       console.log("~~~~~")
2554 2554
 
2555 2555
 

+ 16 - 9
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Прегледај датотеку

@@ -203,7 +203,7 @@
203 203
                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157">
204 204
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101">
205 205
                             <el-form-item
206
-                                    v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.org_id != 9987 '
206
+                                    v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987 '
207 207
                                     :label="'首剂(' + anticoagulant.shouji_unit + ') : '">
208 208
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
209 209
                                           v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
@@ -212,7 +212,7 @@
212 212
                             </el-form-item>
213 213
 
214 214
                             <el-form-item
215
-                                    v-if='this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.org_id == 9987'
215
+                                    v-if='this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9987'
216 216
                                     :label="'首剂(mg) : '">
217 217
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
218 218
                                           v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
@@ -257,14 +257,14 @@
257 257
                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157">
258 258
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101">
259 259
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
260
-                                          v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.org_id != 9987">
260
+                                          v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987">
261 261
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
262 262
                                           v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
263 263
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
264 264
                                           v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
265 265
                             </el-form-item>
266 266
                             <el-form-item :label="'维持(mg/h) : '"
267
-                                          v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.org_id == 9987">
267
+                                          v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9987">
268 268
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
269 269
                                           v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
270 270
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
@@ -309,7 +309,7 @@
309 309
                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157">
310 310
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101">
311 311
                             <el-form-item
312
-                                    v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.org_id != 9987'
312
+                                    v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987'
313 313
                                     :label="'总量(' + anticoagulant.zongliang_unit + ') : '">
314 314
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
315 315
                                           v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
@@ -317,7 +317,7 @@
317 317
                                           v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
318 318
                             </el-form-item>
319 319
                             <el-form-item
320
-                                    v-if='this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.org_id == 9987'
320
+                                    v-if='this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9987'
321 321
                                     :label="'总量(mg) : '">
322 322
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
323 323
                                           v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
@@ -805,6 +805,13 @@
805 805
                     </el-col>
806 806
 
807 807
 
808
+                     <el-col :span="8" v-if="isShows('最大超滤率')">
809
+                        <el-form-item label="最大超滤率(ml/h)">
810
+                            <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.max_ultrafiltration_rate"></el-input>
811
+                        </el-form-item>
812
+                    </el-col>
813
+
814
+
808 815
                 </el-row>
809 816
 
810 817
 
@@ -1318,7 +1325,7 @@
1318 1325
           puncture_needle_count: '',
1319 1326
           epo: '',
1320 1327
           epo_count: '',
1321
-
1328
+          max_ultrafiltration_rate:'',
1322 1329
           hemodialysisPipelinesOptions: [],
1323 1330
           punctureNeedleOptions: [],
1324 1331
           epoOptions: []
@@ -1530,7 +1537,7 @@
1530 1537
       getBeforeWeight(predialysis) {
1531 1538
         if (predialysis.id > 0) {
1532 1539
           if (predialysis.weight_before > 0) {
1533
-            return predialysis.weight_before - predialysis.additional_weight
1540
+            return parseFloat(predialysis.weight_before - predialysis.additional_weight).toFixed(1)
1534 1541
           } else {
1535 1542
             return ''
1536 1543
           }
@@ -1539,7 +1546,7 @@
1539 1546
       getAfterWeight(record) {
1540 1547
         if (record.id > 0) {
1541 1548
           if (record.weight_after > 0) {
1542
-            return record.weight_after - this.predialysis.additional_weight
1549
+            return parseFloat(record.weight_after - this.predialysis.additional_weight).toFixed(1)
1543 1550
           } else {
1544 1551
             return ''
1545 1552
           }

+ 121 - 2
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Прегледај датотеку

@@ -440,6 +440,67 @@
440 440
            </template>
441 441
           </el-table-column>
442 442
 
443
+           <el-table-column
444
+            prop="heparin"
445
+            align="center"
446
+            label="累计血容量"
447
+            width="140"
448
+            v-if="isShow('累计血容量')"
449
+          >
450
+           <template slot-scope="scope">
451
+              {{scope.row.accumulated_blood_volume}}
452
+           </template>
453
+          </el-table-column>
454
+
455
+           <el-table-column
456
+            prop="heparin"
457
+            align="center"
458
+            label="血温监测"
459
+            width="140"
460
+            v-if="isShow('血温监测')"
461
+          >
462
+           <template slot-scope="scope">
463
+              {{scope.row.blood_temperature}}
464
+           </template>
465
+          </el-table-column>
466
+
467
+           <el-table-column
468
+            prop="heparin"
469
+            align="center"
470
+            label="尿素监测"
471
+            width="140"
472
+            v-if="isShow('尿素监测')"
473
+          >
474
+           <template slot-scope="scope">
475
+              {{scope.row.urea_monitoring}}
476
+           </template>
477
+          </el-table-column>
478
+
479
+          <el-table-column
480
+            prop="heparin"
481
+            align="center"
482
+            label="血浓量"
483
+            width="140"
484
+            v-if="isShow('血浓量')"
485
+          >
486
+           <template slot-scope="scope">
487
+              {{scope.row.blood_thickness}}
488
+           </template>
489
+          </el-table-column>
490
+
491
+         <el-table-column
492
+            prop="heparin"
493
+            align="center"
494
+            label="血压监测"
495
+            width="140"
496
+            v-if="isShow('血压监测')"
497
+          >
498
+           <template slot-scope="scope">
499
+              {{scope.row.blood_monitor}}
500
+           </template>
501
+          </el-table-column>
502
+
503
+
443 504
 
444 505
            <el-table-column
445 506
             prop="heparin"
@@ -714,7 +775,35 @@
714 775
             </el-form-item>
715 776
          </el-col>
716 777
 
778
+          <el-col :span="8" v-if=" isShow('累计血容量')">
779
+            <el-form-item label="累计血容量:">
780
+              <el-input v-model="form.accumulated_blood_volume"></el-input>
781
+            </el-form-item>
782
+          </el-col>
783
+
784
+          <el-col :span="8" v-if=" isShow('血温监测')">
785
+            <el-form-item label="血温监测">
786
+              <el-input v-model="form.blood_temperature"></el-input>
787
+            </el-form-item>
788
+          </el-col>
789
+
790
+          <el-col :span="8" v-if=" isShow('尿素监测')">
791
+            <el-form-item label="尿素监测">
792
+              <el-input v-model="form.urea_monitoring"></el-input>
793
+            </el-form-item>
794
+          </el-col>
717 795
 
796
+          <el-col :span="8" v-if=" isShow('血浓量')">
797
+            <el-form-item label="血浓量">
798
+              <el-input v-model="form.blood_thickness"></el-input>
799
+            </el-form-item>
800
+          </el-col>
801
+
802
+          <el-col :span="8" v-if=" isShow('血压监测')">
803
+            <el-form-item label="血压监测">
804
+              <el-input v-model="form.blood_monitor"></el-input>
805
+            </el-form-item>
806
+          </el-col>
718 807
 
719 808
           <!-- </el-row>
720 809
 
@@ -907,7 +996,12 @@ export default {
907 996
         monitor_anticoagulant:'',
908 997
         monitor_anticoagulant_value:"",
909 998
         blood_pressure_monitoring_site:"",
910
-        complication:""
999
+        complication:"",
1000
+        accumulated_blood_volume:"",
1001
+        blood_temperature:"",
1002
+        urea_monitoring:"",
1003
+        blood_thickness:"",
1004
+        blood_monitor:"",
911 1005
       },
912 1006
 
913 1007
       table_current_row: null,
@@ -1126,7 +1220,11 @@ export default {
1126 1220
         this.form.conductivity = resp.monitor.conductivity?resp.monitor.conductivity:'';
1127 1221
         this.form.monitor_anticoagulant = resp.monitor.monitor_anticoagulant?resp.monitor.monitor_anticoagulant:"";
1128 1222
         this.form.monitor_anticoagulant_value = resp.monitor.monitor_anticoagulant_value?resp.monitor.monitor_anticoagulant_value:""
1129
-
1223
+        this.form.accumulated_blood_volume  = resp.monitor.accumulated_blood_volume?resp.monitor.accumulated_blood_volume:""
1224
+        this.form.blood_temperature = resp.monitor.blood_temperature?resp.monitor.blood_temperature:""
1225
+        this.form.urea_monitoring = resp.monitor.urea_monitoring?resp.monitor.urea_monitoring:""
1226
+        this.form.blood_thickness = resp.monitor.blood_thickness?resp.monitor.blood_thickness:""
1227
+        this.form.blood_monitor = resp.monitor.blood_monitor?resp.monitor.blood_monitor:""
1130 1228
       })
1131 1229
     },
1132 1230
 
@@ -1152,6 +1250,7 @@ export default {
1152 1250
       // console.log("tableCurrentRowChange", currentRow)
1153 1251
     },
1154 1252
     setEditMonitor: function(monitor) {
1253
+      console.log("monitor23223322332",monitor)
1155 1254
       if (monitor == null || monitor == undefined) {
1156 1255
         this.form.id = 0;
1157 1256
         // this.form.operate_date = parseInt((new Date()).getTime() / 1000)
@@ -1190,6 +1289,11 @@ export default {
1190 1289
         this.form.blood_sugar = '';
1191 1290
         this.form.monitor_anticoagulant = '';
1192 1291
         this.form.monitor_anticoagulant_value = ''
1292
+        this.form.accumulated_blood_volume  = ""
1293
+        this.form.blood_temperature = ""
1294
+        this.form.urea_monitoring = ""
1295
+        this.form.blood_thickness = ""
1296
+        this.form.blood_monitor = ""
1193 1297
       } else {
1194 1298
         (this.form.id = monitor.id),
1195 1299
         // this.form.operate_date = monitor.operate_date
@@ -1227,6 +1331,11 @@ export default {
1227 1331
         this.form.blood_sugar = monitor.blood_sugar?monitor.blood_sugar:'';
1228 1332
         this.form.monitor_anticoagulant = monitor.monitor_anticoagulant?monitor.monitor_anticoagulant:'';
1229 1333
         this.form.monitor_anticoagulant_value = monitor.monitor_anticoagulant_value?monitor.monitor_anticoagulant_value:"";
1334
+        this.form.accumulated_blood_volume  = monitor.accumulated_blood_volume?monitor.accumulated_blood_volume:""
1335
+        this.form.blood_temperature = monitor.blood_temperature?monitor.blood_temperature:""
1336
+        this.form.urea_monitoring = monitor.urea_monitoring?monitor.urea_monitoring:""
1337
+        this.form.blood_thickness = monitor.blood_thickness?monitor.blood_thickness:""
1338
+        this.form.blood_monitor = monitor.blood_monitor?monitor.blood_monitor:""
1230 1339
         // 设置三个下拉框的值,直接调用事件偷懒
1231 1340
         this.symptomTextareaBlur();
1232 1341
         this.disposeTextareaBlur();
@@ -1269,6 +1378,11 @@ export default {
1269 1378
       this.form.monitor_anticoagulant_value = this.form.monitor_anticoagulant_value;
1270 1379
       this.form.blood_pressure_monitoring_site = parseInt(this.form.blood_pressure_monitoring_site);
1271 1380
       this.form.complication = parseInt(this.form.complication);
1381
+      this.form.blood_temperature = parseFloat(this.form.blood_temperature) == NaN ? 0 : parseFloat(this.form.blood_temperature);
1382
+      this.form.accumulated_blood_volume = parseFloat(this.form.accumulated_blood_volume) == NaN ? 0 : parseFloat(this.form.accumulated_blood_volume);
1383
+      this.form.urea_monitoring = parseFloat(this.form.urea_monitoring) == NaN ? 0 : parseFloat(this.form.urea_monitoring);
1384
+      this.form.blood_thickness = parseFloat(this.form.blood_thickness) == NaN ? 0 : parseFloat(this.form.blood_thickness);
1385
+      this.form.blood_monitor = parseFloat(this.form.blood_monitor) == NaN ? 0 : parseFloat(this.form.blood_monitor);
1272 1386
       let mode = '1';
1273 1387
       if (this.form.id > 0) {
1274 1388
         mode = '2';
@@ -1329,6 +1443,11 @@ export default {
1329 1443
             this.form.monitor_anticoagulant_value = this.form.monitor_anticoagulant_value;
1330 1444
             this.form.blood_pressure_monitoring_site = this.form.blood_pressure_monitoring_site;
1331 1445
             this.form.complication = this.form.complication;
1446
+            this.form.blood_temperature = parseFloat(this.form.blood_temperature) == NaN ? 0 : parseFloat(this.form.blood_temperature);
1447
+            this.form.accumulated_blood_volume = parseFloat(this.form.accumulated_blood_volume) == NaN ? 0 : parseFloat(this.form.accumulated_blood_volume);
1448
+            this.form.urea_monitoring = parseFloat(this.form.urea_monitoring) == NaN ? 0 : parseFloat(this.form.urea_monitoring);
1449
+            this.form.blood_thickness = parseFloat(this.form.blood_thickness) == NaN ? 0 : parseFloat(this.form.blood_thickness);
1450
+            this.form.blood_monitor = parseFloat(this.form.blood_monitor) == NaN ? 0 : parseFloat(this.form.blood_monitor);
1332 1451
             this.$message.error(resp.msg)
1333 1452
           }
1334 1453
         }

+ 10 - 0
src/xt_pages/dialysis/details/dialysisMonitoring.vue Прегледај датотеку

@@ -31,6 +31,11 @@
31 31
           <th v-if="isShow('透析液流量')" width="92px">透析液流量(ml/h)</th>
32 32
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
33 33
           <th v-if="isShow('抗凝剂')" width="92px">抗凝剂</th>
34
+          <th v-if="isShow('累计血容量')" width="92px">累计血容量</th>
35
+          <th v-if="isShow('血温监测')" width="92px">血温监测</th>
36
+          <th v-if="isShow('尿素监测')" width="92px">尿素监测</th>
37
+          <th v-if="isShow('血浓量')" width="92px">血浓量</th>
38
+          <th v-if="isShow('血压监测')" width="92px">血压监测</th>
34 39
           <!-- <th v-if="isShow('血压监测部位')" width="92px">血压监测部位</th>
35 40
           <th v-if="isShow('并发症')" width="92px">并发症</th> -->
36 41
           <th v-if="isShow('KT/V') && org_id == 9987" width="92px">KT/V</th>
@@ -74,6 +79,11 @@
74 79
           </td>
75 80
           <!-- <th v-if="isShow('血压监测部位')">{{getBloodPressure(monitor.blood_pressure_monitoring_site)}}</th>
76 81
           <th v-if="isShow('并发症')">{{getComplication(monitor.complication)}}</th> -->
82
+          <th v-if="isShow('累计血容量')" width="92px">{{monitor.accumulated_blood_volume ? monitor.accumulated_blood_volume : ""}}</th>
83
+          <th v-if="isShow('血温监测')" width="92px">{{monitor.blood_temperature ? monitor.blood_temperature : ""}}</th>
84
+          <th v-if="isShow('尿素监测')" width="92px">{{monitor.urea_monitoring ? monitor.urea_monitoring : ""}}</th>
85
+          <th v-if="isShow('血浓量')" width="92px">{{monitor.blood_thickness ? monitor.blood_thickness : ""}}</th>
86
+          <th v-if="isShow('血压监测')" width="92px">{{monitor.blood_monitor ? monitor.blood_monitor : ""}}</th>
77 87
           <td v-if="isShow('KT/V') && org_id == 9987">{{ monitor.ktv?monitor.ktv:""}}</td>
78 88
           <td v-if="isShow('病情变化')">{{ monitor.symptom }}</td>
79 89
           <td v-if="isShow('处理')">{{ monitor.dispose }}</td>

+ 1 - 1
src/xt_pages/dialysis/dialysisPrintOrder.vue Прегледај датотеку

@@ -1140,7 +1140,7 @@ export default {
1140 1140
       const style8 =
1141 1141
         '@media print {.dialysis-print-order{width:960px;margin:0 auto;font-size:10px;}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:10px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}.widthLength25{width: 25%;}.lineHeight{line-height: 20px;display: flex;justify-content: space-between;}';
1142 1142
       const style9 =
1143
-        '@media print {.dialysis-print-order{width:920px;margin:0 10px;font-size:10px;}.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 940px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;}';
1143
+        '@media print {#dialysis-print-box-1{margin:0 auto;}.dialysis-print-order{width:920px;margin:0 10px;font-size:10px;}.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 940px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;}';
1144 1144
 
1145 1145
       if (this.org_template_info.template_id == 1) {
1146 1146
         printJS({

+ 39 - 36
src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue Прегледај датотеку

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <div id="dialysis-print-box-1" style="width:920px">
2
+  <div id="dialysis-print-box-1" style="width:940px">
3 3
     <div
4 4
       id="dialysis-print-box-1-1"
5 5
       class="dialysis-print-order print-template-two print_page_main_content"
@@ -39,31 +39,22 @@
39 39
           </div>
40 40
         </div>
41 41
         <div class="inline_block">
42
-          门诊:
43
-          <div class="under_line" style="width: 30px;text-align: center;">
44
-            <check-box :checked="receiverTreatmentAccess.condition == 2 ? true : false"></check-box>
45
-          </div>
46
-        </div>
47
-        
48
-
49
-      </div>
50
-      <div class="row">
51
-        <div class="inline_block">
52
-          病区:
53
-          <div class="under_line" style="width: 120px;text-align: center;">
54
-            {{ patientInfo.DialysisSchedule.device_zone.name ? patientInfo.DialysisSchedule.device_zone.name : '' }}
42
+          <div class="under_line" style="width: 50px;text-align: center;">
43
+            <!-- <check-box :checked="receiverTreatmentAccess.condition == 2 ? true : false"></check-box> -->
44
+            <span v-if="receiverTreatmentAccess.condition == 2">门诊</span>
45
+            <span v-if="receiverTreatmentAccess.condition == 1">住院</span>
55 46
           </div>
56 47
         </div>
57 48
         <div class="inline_block">
58 49
           床号:
59
-          <div class="under_line" style="width: 120px;text-align: center;">
50
+          <div class="under_line" style="width: 90px;text-align: center;">
60 51
             {{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0 ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
61 52
           </div>
62 53
         </div>
63 54
         
64 55
         <div class="inline_block">
65 56
           透析次数:
66
-          <div class="under_line" style="width: 60px;text-align: left">
57
+          <div class="under_line" style="width: 50px;text-align: left">
67 58
             {{ patientInfo.total_dialysis + patientInfo.user_sys_before_count }} 次
68 59
           </div>
69 60
         </div>
@@ -73,7 +64,17 @@
73 64
             {{ queryParams.xtdate }}
74 65
           </div>
75 66
         </div>
67
+
76 68
       </div>
69
+      <!-- <div class="row">
70
+        <div class="inline_block">
71
+          病区:
72
+          <div class="under_line" style="width: 120px;text-align: center;">
73
+            {{ patientInfo.DialysisSchedule.device_zone.name ? patientInfo.DialysisSchedule.device_zone.name : '' }}
74
+          </div>
75
+        </div>
76
+        
77
+      </div> -->
77 78
 
78 79
       <div class="row">
79 80
         <table class="proj_table">
@@ -321,17 +322,10 @@
321 322
                     </div>
322 323
                     L
323 324
                   </div>
324
-                  <div class="inline_block" style="flex:1;">
325
-                    超滤总量:
326
-                    <div class="under_line" style="width: 50px;text-align: center">
327
-                      {{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "/" }}
328
-                    </div>
329
-                    L
330
-                  </div>
331 325
                   <div class="inline_block" style="flex:1;">
332 326
                     透析时长:
333 327
                     <div class="under_line" style="width: 50px;text-align: center">
334
-                      {{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour + prescription.dialysis_duration_minute / 60 : "0" }}
328
+                      {{ prescription.dialysis_duration_hour ? (prescription.dialysis_duration_hour + prescription.dialysis_duration_minute / 60).toFixed(2) : "0" }}
335 329
                     </div>
336 330
                     h
337 331
                   </div>
@@ -506,6 +500,13 @@
506 500
                     </div>
507 501
                     mmol/L
508 502
                   </div>
503
+                  <div class="inline_block" style="margin-left:10px;">
504
+                    最大超滤率
505
+                    <div class="under_line" style="width: 70px;text-align: center;">
506
+                      {{ prescription.max_ultrafiltration_rate ? prescription.max_ultrafiltration_rate : "/" }}
507
+                    </div>
508
+                    ml/h
509
+                  </div>
509 510
                 </div>
510 511
               </td>
511 512
             </tr>
@@ -583,7 +584,7 @@
583 584
                 <table class="inside_table">
584 585
                   <tbody>
585 586
                     <tr>
586
-                      <td colspan="9" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 0px 8px;line-height: 30px;">
587
+                      <td colspan="11" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 0px 8px;line-height: 30px;">
587 588
                         监测记录
588 589
                       </td>
589 590
                     </tr>
@@ -613,6 +614,7 @@
613 614
                         {{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure + "/" : "" }}
614 615
                         {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
615 616
                       </td>
617
+                      <td style="padding:1px 5px;">{{ monitor.accumulated_blood_volume ? monitor.accumulated_blood_volume : '' }}</td>
616 618
                       <td style="padding:1px 5px;" height="30px">
617 619
                         <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">
618 620
                           {{ getAdminUser(monitor.monitoring_nurse) }}
@@ -621,7 +623,6 @@
621 623
                           <img style="height:30px;" :src="setAdminUserES(monitor.monitoring_nurse)" alt srcset />
622 624
                         </span>
623 625
                       </td>
624
-                      <td style="padding:1px 5px;">{{ monitor.accumulated_blood_volume ? monitor.accumulated_blood_volume : '' }}</td>
625 626
                       <td style="line-height:16px;padding:0px;">
626 627
                         <div style="min-height:20px;line-height:20px; overflow:hidden;">
627 628
                           <span v-if="getTime(monitor.operate_time, '{h}:{i}')" style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">
@@ -633,7 +634,7 @@
633 634
                       </td>
634 635
                     </tr>
635 636
                     <tr>
636
-                      <td colspan="9" style="line-height:25px;text-align:left;">
637
+                      <td colspan="11" style="line-height:25px;text-align:left;">
637 638
                         医师记录:{{ summary.special_record ? summary.special_record : '' }}
638 639
                       </td>
639 640
                     </tr>
@@ -660,12 +661,6 @@
660 661
                     </div>
661 662
                     min
662 663
                   </div>
663
-                  <div class="inline_block" style="flex:1;margin-left:50px;">
664
-                    透后宣教:
665
-                    <div class="under_line" style="width: 550px;text-align: left;">
666
-                      {{ summary.mission ? summary.mission : '' }}
667
-                    </div>
668
-                  </div>
669 664
                 </div>
670 665
                 <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
671 666
                   <div class="inline_block" style="flex:1">
@@ -675,6 +670,14 @@
675 670
                     </div>
676 671
                   </div>
677 672
                 </div>
673
+                <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
674
+                  <div class="inline_block" style="flex:1;">
675
+                    透后宣教:
676
+                    <div class="under_line" style="width: 90%;text-align: left;white-space: initial;">
677
+                      {{ summary.mission ? summary.mission : '' }}
678
+                    </div>
679
+                  </div>
680
+                </div>
678 681
               </td>
679 682
             </tr>
680 683
             <tr>
@@ -727,10 +730,10 @@
727 730
                   <div class="inline_block" style="flex:1;display: flex;align-items: center;">
728 731
                     治疗医生:
729 732
                     <div class="under_line" style="width: 80px;text-align: center">
730
-                      <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(prescription.prescription_doctor) == ''">
731
-                        {{ getAdminUser(prescription.prescription_doctor) }}
733
+                      <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(prescription.creater) == ''">
734
+                        {{ getAdminUser(prescription.creater) }}
732 735
                       </span>
733
-                      <img style="height:30px;" :src="setAdminUserES(prescription.prescription_doctor)" alt="" srcset="" v-else />
736
+                      <img style="height:30px;" :src="setAdminUserES(prescription.creater)" alt="" srcset="" v-else />
734 737
                     </div>
735 738
                   </div>
736 739
                 </div>

+ 6 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Прегледај датотеку

@@ -578,17 +578,19 @@
578 578
                       <td v-if="(dialysisOrder && monitor.operate_time <= dialysisOrder.end_time) && ( dialysisOrder && monitor.operate_time >= dialysisOrder.start_time)">
579 579
                         {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "0" }}
580 580
                       </td>
581
-                      <td style="width:50px">
581
+                      <!-- <td style="width:50px">
582 582
                         <span v-if="(prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12) && ((dialysisOrder && monitor.operate_time <= dialysisOrder.end_time) && (dialysisOrder && monitor.operate_time >= dialysisOrder.start_time))">
583 583
                           {{ monitor.displacement_quantity ? monitor.displacement_quantity : 0 }}
584 584
                         </span>
585 585
                         <span v-if="(prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12) && ((dialysisOrder && monitor.operate_time > dialysisOrder.end_time) || (dialysisOrder && monitor.operate_time < dialysisOrder.start_time))">
586 586
                           {{ monitor.displacement_quantity ? monitor.displacement_quantity : "" }}
587 587
                         </span>
588
-                      </td>
589
-                      <!-- <td v-if="(prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12) && ((dialysisOrder && monitor.operate_time > dialysisOrder.end_time) || (dialysisOrder && monitor.operate_time < dialysisOrder.start_time))" style="width:50px">
590
-                        {{ monitor.displacement_quantity ? monitor.displacement_quantity : "" }}
591 588
                       </td> -->
589
+                      <td v-if="(prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12)" style="width:50px">
590
+                        <span>
591
+                        {{ monitor.displacement_quantity ? monitor.displacement_quantity : "" }}
592
+                        </span>
593
+                      </td>
592 594
                       <td width="200" v-if="org_id == 9919">{{monitor.ktv}}</td>
593 595
                       <td style="line-height:16px;padding:0px;">
594 596
                         <div style="min-height:35px;line-height:35px; overflow:hidden;">

+ 6 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyNine.vue Прегледај датотеку

@@ -368,6 +368,9 @@
368 368
             <td width="60">时间</td>
369 369
             <td width="60" style="height:20px;line-height:20px">血流量<br />ml/分</td>
370 370
             <td width="60" style="height:20px;line-height:20px">静脉压<br />mmHg</td>
371
+            <td width="60" style="height:20px;line-height:20px">透析<br />温度<br />℃</td>
372
+            <td width="40" style="height:20px;line-height:20px">kt/v</td>
373
+            <td width="60" style="height:20px;line-height:20px">血容量<br />ml</td>
371 374
             <td width="60" style="height:20px;line-height:20px">置换液<br />速度<br />ml/h</td>
372 375
             <td width="60" style="height:20px;line-height:20px">超滤率<br />ml/h</td>
373 376
             <td width="60" style="height:20px;line-height:20px">超滤量<br />ml</td>
@@ -382,6 +385,9 @@
382 385
             <td style="height:40px;line-height:40px;">&nbsp;{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
383 386
             <td>&nbsp;{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}</td>
384 387
             <td>&nbsp;{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}</td>
388
+            <td>&nbsp;{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}</td>
389
+            <td>&nbsp;{{ monitor.ktv ? monitor.ktv : "" }}</td>
390
+            <td>&nbsp;{{ monitor.accumulated_blood_volume ? monitor.accumulated_blood_volume : "" }}</td>
385 391
             <td>&nbsp;{{ monitor.displacement_flow_quantity ? monitor.displacement_flow_quantity : "" }}</td>
386 392
             <td>&nbsp;{{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : "" }}</td>
387 393
             <td>&nbsp;{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}</td>

+ 2 - 1
src/xt_pages/outpatientCharges/summary.vue Прегледај датотеку

@@ -205,7 +205,8 @@
205 205
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
206 206
   import { getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund } from '@/api/his/his'
207 207
   import { uParseTime } from '@/utils/tools'
208
-  import NewStatementPrint from './newStatementPrint'
208
+  // import NewStatementPrint from './newStatementPrint'
209
+  import NewStatementPrint from './statementPrint.vue'
209 210
   import listPrint from './listPrint'
210 211
   import allListPrint from './allListPrint'
211 212
   import NewStatementPrintTwo from './newStatementPrintTwo'

+ 30 - 1
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue Прегледај датотеку

@@ -1474,7 +1474,23 @@
1474 1474
       }, changeAllGoodInfoTableDataTwo(row) {
1475 1475
         this.teamList = row
1476 1476
       },
1477
-      selectChange(row) {
1477
+      selectChange(selection, row) {
1478
+        console.log('row',row)
1479
+        if(row.total <= 0){
1480
+          if(row.type == 3){
1481
+            if (selection) {
1482
+              selection.forEach(row => {
1483
+                if(row.total <= 0){
1484
+                  this.$refs.tables.toggleRowSelection(row);
1485
+                }
1486
+              });
1487
+            } else {
1488
+              this.$refs.tables.clearSelection();
1489
+            }
1490
+            this.$message.error(row.project_name + '库存不足')
1491
+            return
1492
+          }
1493
+        }
1478 1494
         this.teamList = row
1479 1495
       }, getPrescriptionTemplateInfo() {
1480 1496
         let params = {
@@ -1640,6 +1656,7 @@
1640 1656
                 price: good_info[i].retail_price,
1641 1657
                 medical_code: good_info[i].medical_insurance_number,
1642 1658
                 unit: this.getGoodUnit(good_info[i].good_unit),
1659
+                total: good_info[i].total,
1643 1660
                 type: 3
1644 1661
               }
1645 1662
               this.tabProject.push(obj)
@@ -1715,6 +1732,7 @@
1715 1732
         getPojectListById(params).then(response => {
1716 1733
           if (response.data.state == 1) {
1717 1734
             this.teamList = []
1735
+            let num = 0
1718 1736
             var project = response.data.data.project
1719 1737
             for (let i = 0; i < project.length; i++) {
1720 1738
               if (project[i].type == 2) {
@@ -1740,6 +1758,17 @@
1740 1758
 
1741 1759
                 this.teamList.push(obj)
1742 1760
               } else if (project[i].type == 3) {
1761
+                if(project[i].good_info.total <= 0){
1762
+                  num++
1763
+                  this.$refs.tabProjectTeam.toggleRowSelection(row);
1764
+                  setTimeout(() => {
1765
+                    this.$message.error(project[i].good_info.good_name + '库存不足')
1766
+                  },100)
1767
+                }
1768
+                if(num > 0){
1769
+                  this.$refs.tabProjectTeam.clearSelection();
1770
+                }
1771
+
1743 1772
                 let obj = {
1744 1773
                   id: project[i].project_id,
1745 1774
                   project_name: project[i].good_info.good_name,

+ 195 - 15
src/xt_pages/stock/inventory.vue Прегледај датотеку

@@ -2,7 +2,7 @@
2 2
     <div>
3 3
         <div style="display: flex;align-items: center;justify-content: space-between;margin-bottom:10px;">
4 4
             <div>
5
-                <el-select v-model="inventory_status" size="small" placeholder="请选择">
5
+                <el-select v-model="inventory_status" size="small" placeholder="请选择" @change="changeInventory">
6 6
                     <el-option
7 7
                     v-for="item in inventoryList"
8 8
                     :key="item.id"
@@ -15,7 +15,7 @@
15 15
                 style="width: 200px;margin-left:10px;"
16 16
                 class="filter-item"
17 17
                 v-model.trim="searchKey"
18
-                placeholder=""
18
+                placeholder="请输入单据编号或操作人姓名"
19 19
                 />
20 20
                 <el-button
21 21
                 size="small"
@@ -26,6 +26,7 @@
26 26
                 >搜索</el-button
27 27
                 >
28 28
                 <el-date-picker
29
+                @change="changeStartTime"
29 30
                 size="small"
30 31
                 v-model="start_time"
31 32
                 type="date"
@@ -37,14 +38,15 @@
37 38
                 v-model="end_time"
38 39
                 type="date"
39 40
                 style="margin-left:5px;width:140px;"
40
-                placeholder="选择日期">
41
+                placeholder="选择日期"
42
+                @change="changeEndTime">
41 43
                 </el-date-picker>
42 44
             </div>
43 45
             <div>
44 46
                 <el-button size="small" type="primary" @click="dialogVisible = true">新增</el-button>
45 47
                 <el-button size="small" type="primary" @click="toCheck">核对</el-button>
46
-                <el-button size="small" type="primary" @click="print">打印</el-button>
47
-                <el-button size="small" type="primary" @click="exportList">导出</el-button>
48
+                <!-- <el-button size="small" type="primary" @click="print">打印</el-button>
49
+                <el-button size="small" type="primary" @click="exportList">导出</el-button> -->
48 50
             </div>
49 51
         </div>
50 52
         <el-table :data="tableList" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"  @selection-change="changePrice">
@@ -64,6 +66,16 @@
64 66
                 {{scope.row.count}}
65 67
               </template>  
66 68
             </el-table-column>
69
+            <el-table-column prop="name" label="库存" width="100" align="center">
70
+                  <template slot-scope="scope">
71
+                   {{scope.row.total}}
72
+                 </template> 
73
+            </el-table-column>
74
+            <el-table-column prop="name" label="批次" width="100" align="center">
75
+                <template slot-scope="scope">
76
+                  {{scope.row.number}}
77
+                </template> 
78
+            </el-table-column>
67 79
             <el-table-column prop="name" label="盘点人" align="center">
68 80
              <template slot-scope="scope" >
69 81
               {{scope.row.user_name}}
@@ -81,12 +93,13 @@
81 93
             </el-table-column>
82 94
             <el-table-column prop="name" label="状态"  align="center">
83 95
               <template slot-scope="scope">
84
-                <span v-if="scope.row.checker_status == 1">已审核</span>
85
-                <span v-if="scope.row.checker_status == 2">未审核</span>
96
+                <span v-if="scope.row.checker_status == 1">盘点完成</span>
97
+                <span v-if="scope.row.checker_status == 2">正在盘点</span>
86 98
              </template>
87 99
             </el-table-column>
88
-            <el-table-column label="操作" align="center">
100
+            <el-table-column label="操作" align="center" width="300">
89 101
                 <template slot-scope="scope">
102
+                  <el-button type="primary" size="small" @click="getInventory(scope.row.id,scope.row.checker_status)">校对</el-button>
90 103
                   <el-button type="primary" size="small" @click="getInventoryDetail(scope.row.id,scope.row.checker_status)">编辑</el-button>
91 104
                   <el-button type="danger" size="small" @click="deleteInventory(scope.row.id,scope.row.checker_status,scope.$index)">删除</el-button>
92 105
                 </template>
@@ -132,6 +145,17 @@
132 145
                 <el-form-item label="规格">
133 146
                     <el-input v-model="form.specification_name"></el-input>
134 147
                 </el-form-item>
148
+                <el-form-item label="批号">
149
+                  <el-select v-model="form.number" filterable placeholder="请选择">
150
+                      <el-option
151
+                        v-for="(item,index) in numberList"
152
+                        :key="index"
153
+                        :label="item.number"
154
+                        :value="item.number">
155
+                      </el-option>
156
+                  </el-select>
157
+                </el-form-item>
158
+
135 159
                 <el-form-item label="单位">
136 160
                     <el-input v-model="form.warehousing_unit"></el-input>
137 161
                 </el-form-item>
@@ -189,6 +213,7 @@
189 213
                    {{scope.row.count}}
190 214
                  </template> 
191 215
                 </el-table-column>
216
+              
192 217
                 <el-table-column prop="name" label="原进货价" width="100" align="center">
193 218
                     <template slot-scope="scope">
194 219
                     {{scope.row.buy_price}}
@@ -355,13 +380,63 @@
355 380
             <el-button @click="modefiyePriceDialogVisible = false">取 消</el-button>
356 381
             <el-button type="primary" @click="modifyInventory">保存</el-button>
357 382
         </span>
358
-    </el-dialog>
383
+      </el-dialog>
384
+
385
+
386
+      <el-dialog
387
+        title="校对"
388
+        :visible.sync="proofPriceDialogVisible"
389
+        width="50%">
390
+        <span>
391
+          <el-form  :model="form">
392
+            <el-row>
393
+               <el-col>
394
+                 <el-form-item label="耗材名称:">
395
+                 <el-autocomplete
396
+                        class="checkSearch"
397
+                        popper-class="my-autocomplete"
398
+                        v-model="form.good_name"
399
+                        :fetch-suggestions="querySearchAsync"
400
+                        :trigger-on-focus="true"
401
+                        placeholder="请输入耗材名称"
402
+                        @select="handleSelect"
403
+                        @input="changeGoodName(scope.$index)"
404
+                        style="width:160px;"
405
+                        :disabled="true"
406
+                    >
407
+                        <i class="el-icon-search el-input__icon" slot="suffix"></i>
408
+                    <template slot-scope="{ item }">
409
+                        <div class="name">{{ item.good_name +"  " +item.specification_name + "  "+item.manufacturer }}</div>
410
+                    </template>
411
+                    </el-autocomplete>
412
+                </el-form-item>   
413
+               <el-form-item label="规格">
414
+                    <el-input v-model="form.specification_name" style="width:200px" :disabled="true"></el-input>
415
+              </el-form-item>  
416
+               <el-form-item label="盘点数量:">
417
+                 <el-input v-model="form.count" style="width:200px" :disabled="true"></el-input>
418
+               </el-form-item>
419
+               <el-form-item label="库存数量:">
420
+                 <el-input v-model="form.total" style="width:200px" :disabled="true"></el-input>
421
+               </el-form-item>
422
+               <el-form-item label="校对数量:">
423
+                 <el-input v-model="form.proof_count" style="width:200px"></el-input>
424
+               </el-form-item>
425
+             </el-col> 
426
+            </el-row>
427
+          </el-form>
428
+        </span>
429
+        <span slot="footer" class="dialog-footer">
430
+            <el-button @click="proofPriceDialogVisible = false">取 消</el-button>
431
+            <el-button type="primary" @click="proofInventory">保存</el-button>
432
+        </span>
433
+      </el-dialog>
359 434
     </div>
360 435
 </template>
361 436
 
362 437
 <script> 
363 438
 import { uParseTime } from '@/utils/tools'
364
-import { postSearchGoodWarehouseList,saveInventory,getInventoryList,SaveCheckedInventory,getInventoryDetail,modifyInventory,deleteInventory } from "@/api/stock"
439
+import { postSearchGoodWarehouseList,saveInventory,getInventoryList,SaveCheckedInventory,getInventoryDetail,modifyInventory,deleteInventory,getStockBatchNumber,getGoodWarehouseList,proofInventory } from "@/api/stock"
365 440
 export default {
366 441
     name: "inventory",
367 442
     data() {
@@ -398,7 +473,10 @@ export default {
398 473
                 good_origin_place:"",
399 474
                 report_count:"",
400 475
                 total:"",
401
-
476
+                expiry_date:"",
477
+                product_date:"",
478
+                number:"",
479
+                proof_count:"",
402 480
             },
403 481
          manufacturerList:[],
404 482
          dealerList:[],
@@ -416,7 +494,9 @@ export default {
416 494
          checkDialogVisible:false,
417 495
          editPriceDialogVisible:false,
418 496
          modefiyePriceDialogVisible:false,
497
+         proofPriceDialogVisible:false,
419 498
          id:0,
499
+         numberList:[],
420 500
         }
421 501
     },
422 502
     methods:{
@@ -462,6 +542,8 @@ export default {
462 542
         },
463 543
          handleSelect(val){
464 544
             console.log("val232323223",val)
545
+            this.getStockBatchNumber(val.good_id)
546
+            this.getGoodWarehouseList(val.good_id)
465 547
             this.form.id = val.id
466 548
             this.form.good_id = val.good_id,
467 549
             this.form.good_name = val.good_name
@@ -475,10 +557,12 @@ export default {
475 557
             this.form.buy_price = val.buy_price
476 558
             this.form.warehousing_unit = val.packing_unit  
477 559
             this.form.total = val.total
478
-           
560
+            this.form.number = val.number
561
+            this.form.expiry_date = val.expiry_date
562
+            this.form.product_date = val.product_date
479 563
         },
480 564
         search(){
481
-
565
+          this.getlist()
482 566
         },
483 567
         print(){
484 568
           if(this.ids == ""){
@@ -512,7 +596,7 @@ export default {
512 596
             good_name:this.form.good_name,
513 597
             specification_name:this.form.specification_name,
514 598
             warehousing_unit:this.form.warehousing_unit,
515
-            count:parseInt(this.form.count),
599
+            count:this.form.count,
516 600
             buy_price:this.form.buy_price.toString(),
517 601
             packing_price:this.form.packing_price.toString(),
518 602
             manufacturer:this.form.manufacturer,
@@ -522,12 +606,27 @@ export default {
522 606
             warehousing_order:this.form.warehousing_order,
523 607
             dealer:this.form.dealer,
524 608
             start_time:this.getTime(new Date()),
609
+            product_date:this.form.product_date,
610
+            expiry_date:this.form.expiry_date,
611
+            number:this.form.number,
612
+            warehousing_info_id:0,
613
+            total:this.form.total,
614
+
525 615
            } 
526 616
            this.tableData.push(obj)
527 617
         },
528 618
       saveInventory(){
529 619
         for(let i=0;i<this.tableData.length;i++){
620
+           for(let j=0;j<this.numberList.length;j++){
621
+              if(this.tableData[i].number == this.numberList[j].number){
622
+                this.tableData[i].warehousing_info_id = this.numberList[j].id
623
+              }
624
+              this.tableData[i].expiry_date = parseInt(this.tableData[i].expiry_date)
625
+              this.tableData[i].product_date = parseInt(this.tableData[i].product_date)
626
+           }
627
+          
530 628
           this.tableData[i].count = parseInt(this.tableData[i].count)
629
+          this.tableData[i].total = parseInt(this.tableData[i].total)
531 630
           if(this.tableData[i].manufacturer == 0){
532 631
             this.tableData[i].manufacturer = ""
533 632
           }
@@ -537,12 +636,15 @@ export default {
537 636
         }
538 637
         var params = {
539 638
          tableData:this.tableData,
540
-        }  
639
+        } 
640
+        console.log("params",params)
641
+       
541 642
        saveInventory(params).then(response=>{
542 643
          if(response.data.state == 1){
543 644
            var msg = response.data.data.msg
544 645
            this.$message.success("保存成功")
545 646
            this.dialogVisible = false
647
+           this.getlist()
546 648
          }
547 649
        })
548 650
       },
@@ -555,6 +657,7 @@ export default {
555 657
           page:this.page,
556 658
           limit:this.limit,
557 659
          }
660
+        console.log("parasm",params)
558 661
        getInventoryList(params).then(response=>{
559 662
           if(response.data.state ==1 ){
560 663
            var list =  response.data.data.list
@@ -636,6 +739,24 @@ export default {
636 739
        this.form.count = ""
637 740
        this.form.remark = ""
638 741
      },
742
+     getInventory(id){
743
+       getInventoryDetail(id).then(response=>{
744
+          if(response.data.state == 1){
745
+            var detail =  response.data.data.detail
746
+            console.log("detial",detail)
747
+            this.form.good_name = detail.good_name
748
+            this.form.specification_name = detail.specification_name
749
+            this.form.count = detail.count
750
+            this.form.remark = detail.remark
751
+            this.form.total = detail.total
752
+            this.form.warehousing_info_id = detail.warehousing_info_id
753
+            this.form.good_id  = detail.good_id
754
+            this.id = detail.id
755
+            this.proofPriceDialogVisible = true
756
+
757
+          }
758
+       })
759
+     },
639 760
      getInventoryDetail(id,check_status){
640 761
         if(check_status == 1){
641 762
           this.$message.error("已核对的不能编辑")
@@ -722,6 +843,65 @@ export default {
722 843
        formatJson(filterVal, jsonData) {
723 844
         return jsonData.map(v => filterVal.map(j => v[j]));
724 845
       },
846
+     
847
+     getStockBatchNumber(id){
848
+       var params = {
849
+         id:id
850
+       }
851
+      getStockBatchNumber(params).then(response=>{
852
+        if(response.data.state == 1){
853
+          var list = response.data.data.list
854
+          console.log("批号列表",list)
855
+          this.numberList = list
856
+        }
857
+      })
858
+     },
859
+     getGoodWarehouseList(id){
860
+       var params = {
861
+          id:id,
862
+       }
863
+      getGoodWarehouseList(params).then(response=>{
864
+         if(response.data.state == 1){
865
+           var list = response.data.data.list
866
+           this.form.total =  list.stock_count
867
+           console.log("list23232",list)
868
+         }
869
+      })
870
+     },
871
+     proofInventory(){
872
+        var params = {
873
+          id:this.id,
874
+          good_id:this.form.good_id,
875
+          warehousing_info_id:this.form.warehousing_info_id,
876
+          proof_count:parseInt(this.form.proof_count),
877
+          total:parseInt(this.form.total)
878
+        }
879
+        console.log("parasm",params)
880
+       proofInventory(params).then(response=>{
881
+          if(response.data.state == 1){
882
+             var info = response.data.data.info
883
+             this.$message.success("保存成功!")
884
+             this.proofPriceDialogVisible = false
885
+             this.form.good_name = ""
886
+             this.form.specification_name = ""
887
+             this.form.proof_count = ""
888
+             this.form.total = ""
889
+             this.form.good_id = ""
890
+             this.getlist()
891
+          }
892
+       })
893
+     },
894
+     changeInventory(){
895
+       this.getlist()
896
+     },
897
+     changeStartTime(val){
898
+       this.start_time = this.getTime(val)
899
+       this.getlist()
900
+     },
901
+     changeEndTime(val){
902
+       this.end_time = this.getTime(val)
903
+       this.getlist()
904
+     }
725 905
     },
726 906
     created(){
727 907
       this.getlist()

+ 27 - 11
src/xt_pages/stock/inventoryDetails.vue Прегледај датотеку

@@ -25,23 +25,21 @@
25 25
                 style="width: 200px;margin-left:10px;"
26 26
                 class="filter-item"
27 27
                 v-model.trim="searchKey"
28
-                placeholder=""
28
+                placeholder="请输入单据编号或操作人姓名"
29 29
                 />
30 30
                 <el-button
31 31
                 size="small"
32 32
                 class="filter-item"
33 33
                 type="primary"
34 34
                 icon="el-icon-search"
35
-                @click="search"
36
-                >搜索</el-button
37
-                >
35
+                @click="search">搜索</el-button>
38 36
             </div>
39
-            <div>
37
+            <!-- <div>
40 38
                 <el-button size="small" type="primary" @click="print">打印</el-button>
41 39
                 <el-button size="small" type="primary" @click="exportList">导出</el-button>
42
-            </div>
40
+            </div> -->
43 41
         </div>
44
-        <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }" @selection-change="changePrice">
42
+        <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }" @selection-change="changePrice" style="width:100%">
45 43
             <el-table-column type="selection" width="55" align="center"> </el-table-column>
46 44
             <el-table-column prop="date" label="耗材名称"  width="100" align="center">
47 45
                 <template slot-scope="scope">
@@ -83,7 +81,7 @@
83 81
             <!-- <el-table-column prop="name" label="产地"  width="100">
84 82
               {{scope.row.now_g}}
85 83
             </el-table-column> -->
86
-            <el-table-column  prop="name" label="生产厂商" width="100" align="center">
84
+            <el-table-column  prop="name" label="生产厂商" width="260" align="center">
87 85
               <template slot-scope="scope">
88 86
                 {{scope.row.manufacturer}}
89 87
              </template>
@@ -93,11 +91,17 @@
93 91
                     {{scope.row.count}}
94 92
                 </template>
95 93
             </el-table-column>
96
-            <el-table-column  prop="name" label="亏损价格" width="100" align="center">
97
-            </el-table-column>
94
+            <!-- <el-table-column  prop="name" label="亏损价格" width="100" align="center">
95
+            </el-table-column> -->
98 96
             <el-table-column prop="name" label="生产日期" width="100" align="center">
97
+              <template slot-scope="scope">
98
+               {{getTime(scope.row.expire_date)}}
99
+               </template>
99 100
             </el-table-column>
100 101
             <el-table-column  prop="name" label="有效日期" width="100" align="center">
102
+               <template slot-scope="scope">
103
+                 {{getTime(scope.row.product_date)}}
104
+               </template>
101 105
             </el-table-column>
102 106
         </el-table>
103 107
         <el-pagination
@@ -115,6 +119,7 @@
115 119
 </template>
116 120
 
117 121
 <script>
122
+import { uParseTime } from '@/utils/tools'
118 123
 import { getInventoryDetailList } from "@/api/stock"
119 124
 export default {
120 125
     name: "inventory",
@@ -136,7 +141,7 @@ export default {
136 141
     },
137 142
     methods:{
138 143
         search(){
139
-
144
+         this.getlist()
140 145
         },
141 146
         print(){
142 147
            if(this.ids == ""){
@@ -190,6 +195,17 @@ export default {
190 195
        formatJson(filterVal, jsonData) {
191 196
         return jsonData.map(v => filterVal.map(j => v[j]));
192 197
       },
198
+
199
+      getTime(val) {
200
+         if(val < 0){
201
+            return ""
202
+          }
203
+         if(val == ""){
204
+            return ""
205
+          }else {
206
+            return uParseTime(val, '{y}-{m}-{d}')
207
+         }
208
+       },
193 209
     },
194 210
     created(){
195 211
       this.getlist()

+ 106 - 37
src/xt_pages/stock/stockDamaged.vue Прегледај датотеку

@@ -11,17 +11,17 @@
11 11
                 style="width: 200px;"
12 12
                 class="filter-item"
13 13
                 v-model.trim="searchKey"
14
-                placeholder=""
14
+                placeholder="请输入单据编号或操作人姓名"
15 15
                 />
16 16
                 <el-button
17 17
                 size="small"
18 18
                 class="filter-item"
19 19
                 type="primary"
20 20
                 icon="el-icon-search"
21
-                @click="search"
22
-                placeholder="请输入单据编号或操作人姓名">搜索</el-button>
21
+                @click="search">搜索</el-button>
23 22
                 <el-date-picker
24 23
                 size="small"
24
+                @change="changeStartTime"
25 25
                 v-model="start_time"
26 26
                 type="date"
27 27
                 style="margin-left:5px;width:140px;"
@@ -29,6 +29,7 @@
29 29
                 </el-date-picker>
30 30
                 <el-date-picker
31 31
                 size="small"
32
+                @change="changeEndTime"
32 33
                 v-model="end_time"
33 34
                 type="date"
34 35
                 style="margin-left:5px;width:140px;"
@@ -38,8 +39,8 @@
38 39
             <div>
39 40
                 <el-button size="small" type="primary" @click="dialogVisible = true">新增</el-button>
40 41
                 <el-button size="small" type="primary" @click="toCheck">核对</el-button>
41
-                <el-button size="small" type="primary" @click="print">打印</el-button>
42
-                <el-button size="small" type="primary" @click="exportList">导出</el-button>
42
+                <!-- <el-button size="small" type="primary" @click="print">打印</el-button>
43
+                <el-button size="small" type="primary" @click="exportList">导出</el-button> -->
43 44
             </div>
44 45
         </div>
45 46
         <el-table :data="tableList" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }" @selection-change="changePrice">
@@ -130,6 +131,16 @@
130 131
             <el-form-item label="规格">
131 132
                 <el-input v-model="form.specification_name"></el-input>
132 133
             </el-form-item>
134
+            <el-form-item label="批号">
135
+                 <el-select v-model="form.number" filterable placeholder="请选择">
136
+                  <el-option
137
+                    v-for="(item,index) in numberList"
138
+                    :key="index"
139
+                    :label="item.number"
140
+                    :value="item.number">
141
+                  </el-option>
142
+                </el-select>
143
+            </el-form-item>
133 144
             <el-form-item label="单位">
134 145
                 <el-input v-model="form.warehousing_unit"></el-input>
135 146
             </el-form-item>
@@ -139,9 +150,6 @@
139 150
             <el-form-item label="零售价">
140 151
                 <el-input v-model="form.packing_price"></el-input>
141 152
             </el-form-item>
142
-            <!-- <el-form-item label="新零售价">
143
-                <el-input v-model="form.new_price"></el-input>
144
-            </el-form-item> -->
145 153
             <el-form-item label="报损数量">
146 154
                 <el-input v-model="form.count"></el-input>
147 155
             </el-form-item>
@@ -165,62 +173,57 @@
165 173
             </el-form-item>
166 174
         </el-form>
167 175
         <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
168
-            <el-table-column prop="date" label="耗材ID" width="100">
176
+            <el-table-column prop="date" label="耗材ID" width="100" align="center">
169 177
                <template  slot-scope="scope">
170 178
                  {{scope.row.good_id}}
171 179
                </template>
172 180
             </el-table-column>
173
-            <el-table-column prop="date" label="耗材名称" width="100">
181
+            <el-table-column prop="date" label="耗材名称" width="100" align="center">
174 182
                <template  slot-scope="scope">
175 183
                 {{scope.row.good_name}}
176 184
                </template>
177 185
             </el-table-column>
178
-            <el-table-column  prop="name" label="规格" width="100">
186
+            <el-table-column  prop="name" label="规格" width="100" align="center">
179 187
               <template  slot-scope="scope">
180 188
                 {{scope.row.specification_name}}
181 189
                </template>
182 190
             </el-table-column>
183
-            <el-table-column prop="name" label="单位" width="100">
191
+            <el-table-column prop="name" label="单位" width="100" align="center">
184 192
               <template  slot-scope="scope">
185 193
                 {{scope.row.warehousing_unit}}
186 194
                </template>
187 195
             </el-table-column>
188
-            <el-table-column prop="name" label="报损数量" width="100">
196
+            <el-table-column prop="name" label="报损数量" width="100" align="center">
189 197
               <template  slot-scope="scope">
190 198
                 {{scope.row.count}}
191 199
                </template>
192 200
             </el-table-column>
193
-            <el-table-column prop="name" label="原进货价" width="100">
201
+            <el-table-column prop="name" label="原进货价" width="100" align="center">
194 202
                <template  slot-scope="scope">
195 203
                 {{scope.row.buy_price}}
196 204
                </template>
197 205
             </el-table-column>
198
-            <el-table-column prop="name" label="原零售价" width="100">
206
+            <el-table-column prop="name" label="原零售价" width="100" align="center">
199 207
                <template  slot-scope="scope">
200 208
                 {{scope.row.packing_price}}
201 209
                </template>
202 210
             </el-table-column>
203
-            <!-- <el-table-column prop="name" label="新零售价" width="100">
204
-               <template  slot-scope="scope">
205
-                {{scope.row.new_price}}
206
-               </template>
207
-            </el-table-column> -->
208
-            <el-table-column prop="name" label="生产厂商" width="100">
211
+            <el-table-column prop="name" label="生产厂商" width="100" align="center">
209 212
               <template  slot-scope="scope">
210 213
                 {{scope.row.manufacturer}}
211 214
                </template>
212 215
             </el-table-column>
213
-            <el-table-column prop="name" label="产地" width="100">
216
+            <el-table-column prop="name" label="产地" width="100" align="center">
214 217
                <template  slot-scope="scope">
215 218
                 {{scope.row.good_origin_place}}
216 219
                </template>
217 220
             </el-table-column>
218
-            <el-table-column prop="name" label="批准文号" width="100">
221
+            <el-table-column prop="name" label="批准文号" width="100" align="center">
219 222
               <template  slot-scope="scope">
220 223
                 {{scope.row.license_number}}
221 224
                </template>
222 225
             </el-table-column>
223
-            <el-table-column  prop="name" label="备注" width="100">
226
+            <el-table-column  prop="name" label="备注" width="100" align="center">
224 227
               <template  slot-scope="scope">
225 228
                 {{scope.row.remark}}
226 229
                </template>
@@ -364,7 +367,7 @@
364 367
 <script>
365 368
 import BreadCrumb from "../components/bread-crumb";
366 369
 import { uParseTime } from '@/utils/tools'
367
-import { postSearchGoodWarehouseList,saveReportStock,getReportStockList,SaveCheckedDamage,getStockDamageDetail,modifyPrice,deleteStockDamage} from "@/api/stock"
370
+import { postSearchGoodWarehouseList,saveReportStock,getReportStockList,SaveCheckedDamage,getStockDamageDetail,modifyPrice,deleteStockDamage,getStockBatchNumber,getGoodWarehouseList} from "@/api/stock"
368 371
 export default {
369 372
     name: "stockModifyPrice",
370 373
     components:{
@@ -401,6 +404,9 @@ export default {
401 404
                 good_origin_place:"",
402 405
                 report_count:"",
403 406
                 total:"",
407
+                number:"",
408
+                expiry_date:"",
409
+                product_date:"",
404 410
             },
405 411
             currentIndex: 0,
406 412
             manufacturerList:[],
@@ -420,11 +426,12 @@ export default {
420 426
             editPriceDialogVisible:false,
421 427
             modifyPriceDialogVisible:false,
422 428
             id:0,
429
+            numberList:[]
423 430
         }
424 431
     },
425 432
     methods:{
426 433
         search(){
427
-
434
+           this.getlist()
428 435
         },
429 436
         print(){
430 437
           if(this.ids == ""){
@@ -484,7 +491,9 @@ export default {
484 491
          })
485 492
         },
486 493
         handleSelect(val){
487
-          console.log("val23232323",val)
494
+          //获取当前耗材的批号
495
+          this.getStockBatchNumber(val.good_id)
496
+          this.getGoodWarehouseList(val.good_id)
488 497
           this.form.id = val.id
489 498
           this.form.good_id = val.good_id,
490 499
           this.form.good_name = val.good_name
@@ -499,6 +508,8 @@ export default {
499 508
           this.form.warehousing_unit = val.packing_unit  
500 509
           this.form.total = val.total
501 510
           this.form.new_price = val.new_price
511
+          this.form.expiry_date = val.expiry_date
512
+          this.form.product_date = val.product_date
502 513
       },
503 514
       addStock(){
504 515
         var obj = {
@@ -506,19 +517,37 @@ export default {
506 517
           good_name:this.form.good_name,
507 518
           specification_name:this.form.specification_name,
508 519
           warehousing_unit:this.form.warehousing_unit,
509
-          count:parseInt(this.form.count),
520
+          count:this.form.count,
510 521
           buy_price:this.form.buy_price.toString(),
511 522
           packing_price:this.form.packing_price.toString(),
512 523
           manufacturer:this.form.manufacturer,
513 524
           good_origin_place:this.form.good_origin_place,
514 525
           license_number:this.form.license_number,
515 526
           remark:this.form.remark,
516
-          // new_price:this.form.new_price.toString(),
517 527
           warehousing_order:this.form.warehousing_order,
518 528
           dealer:this.form.dealer,
519 529
           start_time:this.getTime(new Date()),
530
+          number:this.form.number,
531
+          warehousing_info_id:0,
532
+          product_date:this.form.product_date,
533
+          expiry_date:this.form.expiry_date,
520 534
         } 
521 535
         this.tableData.push(obj)
536
+        this.form.good_id = 0
537
+        this.form.good_name = ""
538
+        this.form.specification_name = ""
539
+        this.form.warehousing_unit = ""
540
+        this.form.count = ""
541
+        this.form.buy_price = ""
542
+        this.form.packing_price = ""
543
+        this.form.manufacturer = ""
544
+        this.form.good_origin_place = ""
545
+        this.form.license_number = ""
546
+        this.form.remark  = ""
547
+        this.form.warehousing_order = ""
548
+        this.form.dealer = ""
549
+        this.form.number = ""
550
+        this.form.good_id = ""
522 551
       },
523 552
       saveReportStock(){
524 553
          for(let i = 0;i<this.tableData.length;i++){
@@ -528,6 +557,19 @@ export default {
528 557
            if(this.tableData[i].dealer == 0){
529 558
               this.tableData[i].dealer = ""   
530 559
            }
560
+         }
561
+         console.log("比阿哥",this.tableData)
562
+         console.log("numberlist",this.numberList)
563
+         for(let i=0;i<this.tableData.length;i++){
564
+           this.tableData[i].count =  parseInt(this.tableData[i].count)
565
+           this.tableData[i].expiry_date = parseInt(this.tableData[i].expiry_date)
566
+           this.tableData[i].product_date = parseInt(this.tableData[i].product_date)
567
+           this.tableData[i].total = parseInt(this.tableData[i].total)
568
+           for(let j=0;j<this.numberList.length;j++){
569
+              if(this.tableData[i].number == this.numberList[j].number){
570
+                this.tableData[i].warehousing_info_id = this.numberList[j].id
571
+              }
572
+           }
531 573
          }
532 574
           var params = {
533 575
             tableData:this.tableData,
@@ -539,6 +581,7 @@ export default {
539 581
              this.$message.success("保存成功")
540 582
              this.dialogVisible = false
541 583
              this.getlist()
584
+            this.tableData = []
542 585
             this.form.good_name = ""
543 586
             this.form.packing_price = ""
544 587
             this.form.warehousing_order = ""
@@ -550,6 +593,7 @@ export default {
550 593
             this.form.buy_price = ""
551 594
             this.form.warehousing_unit = ""
552 595
             this.form.total = ""
596
+            this.form.number = ""
553 597
            
554 598
            }
555 599
         })
@@ -593,18 +637,12 @@ export default {
593 637
        }
594 638
      },
595 639
     changePrice(val){
596
-       console.log("val23232322323",val)
597
-      
598 640
        var arr = []
599
-      
600 641
        for(let i=0;i<val.length;i++){
601 642
          arr.push(val[i].id)
602 643
        }
603 644
       var str = arr.join(",")
604
-    
605
-      console.log("str",str)
606
-      this.ids = str
607
-     
645
+      this.ids = str 
608 646
      },
609 647
      SaveCheckedDamage(){
610 648
          var params = {
@@ -681,7 +719,6 @@ export default {
681 719
        modifyPrice(params).then(response=>{
682 720
          if(response.data.state ==1){
683 721
            var adjust = response.data.data.adjust
684
-
685 722
            this.modifyPriceDialogVisible = false
686 723
            this.$message.success("保存成功")
687 724
            this.getlist()
@@ -742,6 +779,38 @@ export default {
742 779
        formatJson(filterVal, jsonData) {
743 780
         return jsonData.map(v => filterVal.map(j => v[j]));
744 781
       },
782
+     getStockBatchNumber(id){
783
+       var params = {
784
+         id:id
785
+       }
786
+      getStockBatchNumber(params).then(response=>{
787
+        if(response.data.state == 1){
788
+          var list = response.data.data.list
789
+          console.log("批号列表",list)
790
+          this.numberList = list
791
+        }
792
+      })
793
+     },
794
+     getGoodWarehouseList(id){
795
+       var params = {
796
+          id:id,
797
+       }
798
+      getGoodWarehouseList(params).then(response=>{
799
+         if(response.data.state == 1){
800
+           var list = response.data.data.list
801
+           this.form.total =  list.stock_count
802
+           console.log("list23232",list)
803
+         }
804
+      })
805
+     },
806
+     changeStartTime(val){
807
+        this.start_time = this.getTime(val)
808
+        this.getlist()
809
+     },
810
+     changeEndTime(val){
811
+       this.end_time = this.getTime(val)
812
+       this.getlist()
813
+     }
745 814
     },
746 815
     created(){
747 816
         // var nowDate = new Date();

+ 3 - 0
src/xt_pages/stock/stockFlow.vue Прегледај датотеку

@@ -65,6 +65,7 @@
65 65
              <span v-if="scope.row.consumable_type == 2">手动出库</span>
66 66
              <span v-if="scope.row.consumable_type == 3">自动出库</span>
67 67
              <span v-if="scope.row.consumable_type == 4">手动退库</span>
68
+             <span v-if="scope.row.consumable_type == 5">报损数量</span>
68 69
            </template>
69 70
         </el-table-column>
70 71
         <el-table-column prop="drug_name" label="出/入库单据编码" align="center">
@@ -73,6 +74,7 @@
73 74
             <span v-if="scope.row.consumable_type == 2">{{scope.row.warehouse_out_order_number}}</span>  
74 75
             <span v-if="scope.row.consumable_type == 3">{{scope.row.warehouse_out_order_number}}</span>  
75 76
             <span v-if="scope.row.consumable_type == 4">{{scope.row.cancel_order_number}}</span>  
77
+            <span v-if="scope.row.consumable_type == 5">{{scope.row.warehouse_out_order_number}}</span>
76 78
            </template>
77 79
         </el-table-column>
78 80
         <el-table-column prop="drug_name" label="操作日期" align="center">
@@ -212,6 +214,7 @@
212 214
           {id:2,name:"手动出库"},
213 215
           {id:3,name:"自动出库"},
214 216
           {id:4,name:"手动退库"},
217
+          {id:5,name:"报损数量"},
215 218
         ],
216 219
         countList:[],
217 220
         outCountList:[],

+ 73 - 98
src/xt_pages/stock/stockModifyPrice.vue Прегледај датотеку

@@ -39,8 +39,8 @@
39 39
         <div>
40 40
             <el-button size="small" type="primary" @click="dialogVisible = true">新增</el-button>
41 41
             <el-button size="small" type="primary" @click="toCheck">核对</el-button>
42
-            <el-button size="small" type="primary" @click="print">打印</el-button>
43
-            <el-button size="small" type="primary" @click="toExport">导出</el-button>
42
+            <!-- <el-button size="small" type="primary" @click="print">打印</el-button>
43
+            <el-button size="small" type="primary" @click="toExport">导出</el-button> -->
44 44
         </div>
45 45
       </div>
46 46
       <div>
@@ -67,11 +67,11 @@
67 67
                          {{scope.row.packing_unit}}
68 68
                       </template>
69 69
                     </el-table-column>
70
-                    <el-table-column label="调价数量" width="100" align="center">
70
+                    <!-- <el-table-column label="调价数量" width="100" align="center">
71 71
                       <template slot-scope="scope">
72 72
                        {{scope.row.count}}
73 73
                       </template>
74
-                    </el-table-column>
74
+                    </el-table-column> -->
75 75
                     <el-table-column label="原进货价" width="100" align="center">
76 76
                       <template slot-scope="scope">
77 77
                        {{scope.row.buy_price}}
@@ -142,80 +142,6 @@
142 142
                   :total="total">
143 143
                </el-pagination>
144 144
             </div>
145
-                <!-- <el-table :data="tableData" border :height="tableHeight" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
146
-                    <el-table-column
147
-                    fixed="left"
148
-                    prop="date"
149
-                    label="药品ID"
150
-                    width="80">
151
-                    </el-table-column>
152
-                    <el-table-column
153
-                    prop="date"
154
-                    label="药品名称"
155
-                    width="100">
156
-                    </el-table-column>
157
-                    <el-table-column
158
-                    prop="name"
159
-                    label="规格"
160
-                    width="100">
161
-                    </el-table-column>
162
-                    <el-table-column
163
-                    prop="name"
164
-                    label="生产厂家"
165
-                    width="100">
166
-                    </el-table-column>
167
-                    <el-table-column
168
-                    prop="name"
169
-                    label="批准文书"
170
-                    width="100">
171
-                    </el-table-column>
172
-                    <el-table-column
173
-                    prop="name"
174
-                    label="经销商"
175
-                    width="100">
176
-                    </el-table-column>
177
-                    <el-table-column
178
-                    prop="name"
179
-                    label="数量"
180
-                    width="100">
181
-                    </el-table-column>
182
-                    <el-table-column
183
-                    prop="name"
184
-                    label="原零价"
185
-                    width="100">
186
-                    </el-table-column>
187
-                    <el-table-column
188
-                    prop="name"
189
-                    label="现零价"
190
-                    width="100">
191
-                    </el-table-column>
192
-                    <el-table-column
193
-                    prop="name"
194
-                    label="进货价"
195
-                    width="100">
196
-                    </el-table-column>
197
-                    <el-table-column
198
-                    prop="name"
199
-                    label="零售总价"
200
-                    width="100">
201
-                    </el-table-column>
202
-                    <el-table-column
203
-                    prop="name"
204
-                    label="批号"
205
-                    width="100">
206
-                    </el-table-column>
207
-                    <el-table-column
208
-                    prop="name"
209
-                    label="生产日期"
210
-                    width="100">
211
-                    </el-table-column>
212
-                    <el-table-column
213
-                    prop="name"
214
-                    label="有效日期"
215
-                    width="100">
216
-                    </el-table-column>
217
-                </el-table> -->
218
-         
219 145
         </div>
220 146
     </div>
221 147
     <el-dialog
@@ -248,9 +174,9 @@
248 174
             <el-form-item label="现价格">
249 175
                 <el-input v-model="form.new_price"></el-input>
250 176
             </el-form-item>
251
-            <el-form-item label="调价数量">
252
-                <el-input v-model="form.count"></el-input>
253
-            </el-form-item>
177
+            <!-- <el-form-item label="调价数量">
178
+                <el-input v-model="form.count" type="number"></el-input>
179
+            </el-form-item> -->
254 180
             <el-form-item label="备注" style="width:66%;">
255 181
                 <div style="display:flex;">
256 182
                     <el-input v-model="form.remark"></el-input>
@@ -279,11 +205,11 @@
279 205
                {{scope.row.warehousing_unit}}
280 206
                </template>
281 207
             </el-table-column>
282
-            <el-table-column prop="name" label="调价数量" width="100" align="center">
208
+            <!-- <el-table-column prop="name" label="调价数量" width="100" align="center">
283 209
               <template slot-scope="scope">
284 210
                 {{scope.row.count}}
285 211
               </template> 
286
-            </el-table-column>
212
+            </el-table-column> -->
287 213
             <el-table-column prop="name" label="原进货价" width="100" align="center">
288 214
                <template slot-scope="scope">
289 215
                 {{scope.row.buy_price}}
@@ -370,7 +296,7 @@
370 296
                 </el-form-item>
371 297
              </el-col> 
372 298
             </el-row>
373
-            <el-row>
299
+            <!-- <el-row>
374 300
              <el-col>
375 301
                <el-form-item label="调价数量:">
376 302
                     <el-input v-model="form.count"  style="width:200px"></el-input>
@@ -381,7 +307,7 @@
381 307
                     </div>
382 308
                 </el-form-item>
383 309
               </el-col>  
384
-            </el-row>
310
+            </el-row> -->
385 311
           </el-form>
386 312
         </span>
387 313
         <span slot="footer" class="dialog-footer">
@@ -435,19 +361,44 @@
435 361
 
436 362
 
437 363
     <el-dialog
438
-        title="耗材调价核对"
364
+        title="耗材调价编辑"
439 365
         :visible.sync="modifyDialogVisible"
440 366
         width="30%"
441 367
         >
442 368
         <span>
443 369
           <el-form :model="form">
444
-            <el-row>
445
-              <el-col>
446
-                <el-form-item label="现价格">
447
-                  <el-input v-model="form.new_price" style="width:100px"></el-input>
448
-                </el-form-item>  
449
-              </el-col>
450
-            </el-row>  
370
+         <el-row>
371
+               <el-col>
372
+                <el-form-item label="耗材名称:">
373
+                    <el-autocomplete
374
+                        class="checkSearch"
375
+                        popper-class="my-autocomplete"
376
+                        v-model="form.good_name"
377
+                        :fetch-suggestions="querySearchAsync"
378
+                        :trigger-on-focus="true"
379
+                        placeholder="请输入耗材名称"
380
+                        @select="handleSelect"
381
+                        @input="changeGoodName(scope.$index)"
382
+                        :disabled="true"
383
+                        style="width:160px;"
384
+                    >
385
+                        <i class="el-icon-search el-input__icon" slot="suffix"></i>
386
+                    <template slot-scope="{ item }">
387
+                        <div class="name">{{ item.good_name +"  " +item.specification_name + "  "+item.manufacturer }}</div>
388
+                    </template>
389
+                    </el-autocomplete>
390
+                </el-form-item>
391
+               <el-form-item label="原价格:">
392
+                 <el-input v-model="form.packing_price" style="width:200px"></el-input>
393
+               </el-form-item>
394
+               <el-form-item label="现价格:">
395
+                    <el-input v-model="form.new_price" style="width:200px"></el-input>
396
+                </el-form-item>
397
+                <el-form-item label="备注:">
398
+                    <el-input v-model="form.remark" style="width:200px"></el-input>
399
+                </el-form-item>
400
+             </el-col> 
401
+            </el-row>
451 402
           </el-form>  
452 403
         </span>
453 404
         <span slot="footer" class="dialog-footer">
@@ -578,8 +529,16 @@ export default {
578 529
           this.form.packing_price = val.packing_price
579 530
           this.form.warehousing_order = val.warehousing_order
580 531
           this.form.license_number = val.license_number
581
-          this.form.dealer = val.dealer
582
-          this.form.manufacturer = val.manufacturer
532
+          if(val.dealer == 0){
533
+            this.form.dealer = ""
534
+          }else{
535
+            this.form.dealer = val.dealer
536
+          }
537
+          if(this.form.manufacturer == 0){
538
+            this.form.manufacturer = ""
539
+          }else{
540
+            this.form.manufacturer = val.manufacturer
541
+          }
583 542
           this.form.specification_name = val.specification_name
584 543
           this.form.remark = val.remark
585 544
           this.form.buy_price = val.buy_price
@@ -666,7 +625,8 @@ export default {
666 625
            this.tableData[i].buy_price = this.tableData[i].buy_price.toString()
667 626
            this.tableData[i].packing_price = this.tableData[i].packing_price.toString()
668 627
            this.tableData[i].new_price = this.tableData[i].new_price.toString()
669
-           this.tableData[i].count =  parseInt(this.tableData[i].count)
628
+          //  this.tableData[i].count =  parseInt(this.tableData[i].count)
629
+            this.tableData[i].count = 0
670 630
            if(this.tableData[i].dealer == 0){
671 631
              this.tableData[i].dealer = ""
672 632
            }
@@ -677,6 +637,7 @@ export default {
677 637
          var params= {
678 638
            tableData:this.tableData,
679 639
          }
640
+      
680 641
       console.log("parasm222",params)
681 642
       saveAdjustPrice(params).then(response=>{
682 643
         if(response.data.state == 1){
@@ -684,6 +645,7 @@ export default {
684 645
           console.log("msg",msg)
685 646
           this.$message.success("保存成功!")
686 647
           this.dialogVisible = false
648
+          this.tableData = []
687 649
           this.getAllStockPrice()
688 650
         }
689 651
       })  
@@ -800,7 +762,16 @@ export default {
800 762
            var info =  response.data.data.detail
801 763
            console.log("info",info)
802 764
            this.id = info.id
803
-           this.form.new_price = info.new_price
765
+           this.good_id = info.good_id,
766
+           this.form.good_name = info.good_name
767
+           if(info.new_price == 0){
768
+            this.form.new_price = ""
769
+           }else{
770
+             this.form.new_price = info.new_price
771
+           }
772
+          
773
+           this.form.packing_price = info.packing_price
774
+           this.form.remark = info.remark
804 775
            this.modifyDialogVisible = true
805 776
          }
806 777
        })
@@ -808,7 +779,11 @@ export default {
808 779
      updateStockPrice(){
809 780
          var params = {
810 781
            new_price:this.form.new_price.toString(),
811
-           id:this.id
782
+           id:this.id,
783
+           packing_price:this.form.packing_price.toString(),
784
+           remark:this.form.remark,
785
+           good_id:this.form.good_id,
786
+           good_name:this.form.good_name,
812 787
          }
813 788
          console.log("params",params)
814 789
        updateStockPrice(params).then(response=>{

+ 2 - 2
src/xt_pages/stock/stockOutOrder.vue Прегледај датотеку

@@ -185,11 +185,11 @@
185 185
               {{ scope.row.good_name }}
186 186
             </template>
187 187
           </el-table-column>
188
-          <el-table-column label="耗材类型" align="center">
188
+          <!-- <el-table-column label="耗材类型" align="center">
189 189
             <template slot-scope="scope">
190 190
               {{  getTypeName(scope.row.good_type_id)}}
191 191
             </template>
192
-          </el-table-column>
192
+          </el-table-column> -->
193 193
           <el-table-column label="规格&单位" align="center">
194 194
             <template slot-scope="scope">
195 195
               {{ scope.row.specification_name}} / {{scope.row.packing_unit}}

+ 9 - 1
src/xt_pages/user/dialysisSolution.vue Прегледај датотеку

@@ -687,6 +687,12 @@
687 687
             </el-form-item>
688 688
           </el-col>
689 689
 
690
+         <el-col :span="8" v-if="isShows('最大超滤率')">
691
+            <el-form-item label="最大超滤率(ml/h)">
692
+              <el-input v-model="addPlan.max_ultrafiltration_rate"></el-input>
693
+            </el-form-item>
694
+          </el-col>
695
+
690 696
         </el-row>
691 697
 
692 698
 
@@ -893,7 +899,7 @@ export default {
893 899
         puncture_needle_count:"",
894 900
         epo:"",
895 901
         epo_count:"",
896
-
902
+        max_ultrafiltration_rate:"",
897 903
 
898 904
       },
899 905
       childPlan: {
@@ -1568,6 +1574,7 @@ export default {
1568 1574
       this.addPlan.dialysis_duration_minute = '' + row.dialysis_duration_minute
1569 1575
       this.addPlan.hemodialysis_machine = row.hemodialysis_machine + ''
1570 1576
       this.addPlan.perfusion_apparatus = row.perfusion_apparatus + ''
1577
+      this.addPlan.max_ultrafiltration_rate = row.max_ultrafiltration_rate
1571 1578
       if(row.blood_flow_volume!="" || row.blood_flow_volume!=undefined){
1572 1579
         this.addPlan.blood_flow_volume = row.blood_flow_volume.toString()
1573 1580
       }
@@ -1674,6 +1681,7 @@ export default {
1674 1681
       this.dialysis_irrigation = row.dialysis_irrigation
1675 1682
       this.dialysis_dialyszers = row.dialysis_dialyszers
1676 1683
       this.addPlan.oxygen_uptake = row.oxygen_uptake
1684
+      this.addPlan.max_ultrafiltration_rate = row.max_ultrafiltration_rate
1677 1685
       if(row.oxygen_uptake == 1){
1678 1686
         this.oxygenShow = true
1679 1687
       }

+ 120 - 120
src/xt_pages/user/templateSummary.vue Прегледај датотеку

@@ -60,8 +60,8 @@
60 60
             <el-col :span="14">
61 61
               <div class="record_content_panel">
62 62
                 <div style="background-color:rgb(245, 247, 250)" class="title">阶段小结内容</div>
63
-                <div style="padding:10px;border-bottom:1px solid #DCDFE6;"><span v-if="editObj.record_time!=''">阶段小结时间:{{getTime(editObj.record_time)}}</span></div>  
64
-                <!-- <div style="padding: 10px 10px 0;">阶段小结概要:</div>  
63
+                <div style="padding:10px;border-bottom:1px solid #DCDFE6;"><span v-if="editObj.record_time!=''">阶段小结时间:{{getTime(editObj.record_time)}}</span></div>
64
+                <!-- <div style="padding: 10px 10px 0;">阶段小结概要:</div>
65 65
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;">
66 66
                   <span style="margin-right:10px;line-height:30px;">干体重(kg):{{editObj.dry_weight}}</span>
67 67
                   <span style="margin-right:10px;line-height:30px;">共透析:{{editObj.dialysis_count}}次</span>
@@ -99,23 +99,23 @@
99 99
                          {{it.inspect_value}}
100 100
                         <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
101 101
102
-                          </span> 
102
+                          </span>
103 103
                           <span v-if="parseInt(it.inspect_value) > parseInt(it.range_max)">
104 104
105
-                        </span> 
105
+                        </span>
106 106
                       </div>
107 107
                     </div>
108 108
                   </div>
109 109
                   </div>
110
-                </div>  
111
-               
110
+                </div>
111
+
112 112
                 <div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:{{editObj.template_plan_content}}</div>
113 113
               </div>
114 114
             </el-col>
115 115
           </el-row>
116 116
         </div>
117 117
       </div>
118
-     
118
+
119 119
       <el-dialog title="新增阶段小结" width="80%" top="5vh" :visible.sync="show_dialog">
120 120
         <div>
121 121
           <div class="new_record_form">
@@ -138,7 +138,7 @@
138 138
                             value-format="yyyy"
139 139
                             placeholder="选择年">
140 140
                         </el-date-picker>
141
-                    </el-form-item> 
141
+                    </el-form-item>
142 142
                   </el-col>
143 143
                   <el-col :span="8">
144 144
                     <el-form-item>
@@ -146,9 +146,9 @@
146 146
                         <el-radio :label="1" >月份</el-radio>
147 147
                         <el-radio :label="2" >季度</el-radio>
148 148
                      </el-radio-group>
149
-                    </el-form-item> 
149
+                    </el-form-item>
150 150
                   </el-col>
151
-                  
151
+
152 152
                   <el-col :span="8" v-if="form.radio == 1">
153 153
                     <el-form-item>
154 154
                       <el-date-picker
@@ -158,7 +158,7 @@
158 158
                         type="month"
159 159
                         placeholder="选择月">
160 160
                       </el-date-picker>
161
-                    </el-form-item> 
161
+                    </el-form-item>
162 162
                   </el-col>
163 163
                   <el-col :span="8" v-if="form.radio == 2">
164 164
                     <el-form-item>
@@ -170,10 +170,10 @@
170 170
                           :value="item.id">
171 171
                         </el-option>
172 172
                       </el-select>
173
-                    </el-form-item> 
174
-                  </el-col> 
173
+                    </el-form-item>
174
+                  </el-col>
175 175
                  </el-row>   -->
176
-                
176
+
177 177
               </el-form>
178 178
             </div>
179 179
 
@@ -184,57 +184,57 @@
184 184
                     <el-col :span="8">
185 185
                      <el-form-item label="干体重">
186 186
                       <el-input v-model="form.dry_weight"></el-input>
187
-                     </el-form-item>  
187
+                     </el-form-item>
188 188
                     </el-col>
189 189
                     <el-col :span="8">
190 190
                      <el-form-item label="共透析(次)">
191 191
                       <el-input v-model="form.dialysis_count"></el-input>
192
-                     </el-form-item>  
192
+                     </el-form-item>
193 193
                     </el-col>
194 194
                     <el-col :span="8">
195 195
                      <el-form-item label="HD(次)">
196 196
                       <el-input v-model="form.hd_count"></el-input>
197
-                     </el-form-item>  
197
+                     </el-form-item>
198 198
                     </el-col>
199 199
                   </el-row>
200 200
                   <el-row :gutter="24">
201 201
                     <el-col :span="8">
202 202
                      <el-form-item label="HDF(次)">
203 203
                       <el-input v-model="form.hdf_count"></el-input>
204
-                     </el-form-item>  
204
+                     </el-form-item>
205 205
                     </el-col>
206 206
                     <el-col :span="8">
207 207
                      <el-form-item label="HP(次)">
208 208
                       <el-input v-model="form.hp_count"></el-input>
209
-                     </el-form-item>  
209
+                     </el-form-item>
210 210
                     </el-col>
211 211
                     <el-col :span="8">
212 212
                      <el-form-item label="其他(次)">
213 213
                       <el-input v-model="form.other_count"></el-input>
214
-                     </el-form-item>  
214
+                     </el-form-item>
215 215
                     </el-col>
216 216
                   </el-row>
217 217
                    <el-row :gutter="24">
218 218
                     <el-col :span="8">
219 219
                      <el-form-item label="透析器">
220 220
                        <el-input v-model="form.dialzer_apparatus" @focus="showInnerDialog('7')"></el-input>
221
-                     </el-form-item>  
221
+                     </el-form-item>
222 222
                     </el-col>
223 223
                     <el-col :span="8">
224 224
                       <el-form-item label="灌流器">
225 225
                         <el-input v-model="form.perfusion_apparatus" @focus="showInnerDialog('8')"></el-input>
226
-                      </el-form-item>  
226
+                      </el-form-item>
227 227
                     </el-col>
228 228
 
229 229
                     <el-col :span="8">
230 230
                      <el-form-item label="抗凝剂">
231
-                    
231
+
232 232
                        <el-select v-model="form.anticoagulant" placeholder="请选择" style="width:100%;">
233 233
                           <el-option :key="0" label="请选择" :value="0"></el-option>
234 234
                           <el-option v-for="(item, index) in anticoagulantList" :label="item.name" :key="index + 'e'"
235 235
                            :value="item.id"></el-option>
236 236
                        </el-select>
237
-                     </el-form-item>  
237
+                     </el-form-item>
238 238
                     </el-col>
239 239
                   </el-row>
240 240
                    <div>透析液</div>
@@ -242,17 +242,17 @@
242 242
                     <el-col :span="8">
243 243
                      <el-form-item label="钾">
244 244
                       <el-input v-model="form.kalium"></el-input>
245
-                     </el-form-item>  
245
+                     </el-form-item>
246 246
                     </el-col>
247 247
                     <el-col :span="8">
248 248
                      <el-form-item label="钙">
249 249
                       <el-input v-model="form.autunite"></el-input>
250
-                     </el-form-item>  
250
+                     </el-form-item>
251 251
                     </el-col>
252 252
                     <el-col :span="8">
253 253
                      <el-form-item label="钠">
254 254
                       <el-input v-model="form.natrium"></el-input>
255
-                     </el-form-item>  
255
+                     </el-form-item>
256 256
                     </el-col>
257 257
                   </el-row>
258 258
                    <div>透析时长</div>
@@ -260,39 +260,39 @@
260 260
                     <el-col :span="8">
261 261
                      <el-form-item label="时">
262 262
                       <el-input v-model="form.hour"></el-input>
263
-                     </el-form-item>  
263
+                     </el-form-item>
264 264
                     </el-col>
265 265
                     <el-col :span="8">
266 266
                      <el-form-item label="分">
267 267
                       <el-input v-model="form.minute"></el-input>
268
-                     </el-form-item>  
268
+                     </el-form-item>
269 269
                     </el-col>
270 270
                   </el-row>
271 271
                   <el-row :gutter="24">
272 272
                     <el-col :span="8">
273 273
                      <el-form-item label="透前体重(kg)">
274 274
                       <el-input v-model="form.befor_weight"></el-input>
275
-                     </el-form-item>  
275
+                     </el-form-item>
276 276
                     </el-col>
277 277
                     <el-col :span="8">
278 278
                      <el-form-item label="透后体重(kg)">
279 279
                       <el-input v-model="form.after_weight"></el-input>
280
-                     </el-form-item>  
280
+                     </el-form-item>
281 281
                     </el-col>
282 282
                   </el-row>
283 283
                    <el-row :gutter="24">
284 284
                     <el-col :span="8">
285 285
                      <el-form-item label="透前血压(mmHg)">
286 286
                       <el-input v-model="form.befor_pressure"></el-input>
287
-                     </el-form-item>  
287
+                     </el-form-item>
288 288
                     </el-col>
289 289
                     <el-col :span="8">
290 290
                      <el-form-item label="透后血压(mmHg)">
291 291
                       <el-input v-model="form.after_pressure"></el-input>
292
-                     </el-form-item>  
292
+                     </el-form-item>
293 293
                     </el-col>
294 294
                   </el-row> -->
295
-                 
295
+
296 296
                   <el-row>
297 297
                     <label class="title"><span class="name">阶段小结总结</span> : </label>
298 298
                      <el-select v-model="form.template_summary_id" placeholder="请选择" @change="changeSummary">
@@ -320,7 +320,7 @@
320 320
                   <el-row>
321 321
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
322 322
                     <el-button type="primary" @click="toInspection">选择检验检查</el-button>
323
-                
323
+
324 324
                      <div class="borderBox">
325 325
                        <div v-for="item in form.template_inspection_content">
326 326
                         <p>{{ item.project_name }}</p>
@@ -330,10 +330,10 @@
330 330
                             {{it.inspect_value}}
331 331
                              <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
332 332
333
-                           </span> 
333
+                           </span>
334 334
                            <span v-if="parseInt(it.inspect_value) > parseInt(it.range_max)">
335 335
336
-                          </span> 
336
+                          </span>
337 337
                           </div>
338 338
                         </div>
339 339
                       </div>
@@ -374,7 +374,7 @@
374 374
         </div>
375 375
       </el-dialog>
376 376
 
377
-      
377
+
378 378
       <!-- 编辑阶段小结 -->
379 379
        <el-dialog title="编辑阶段小结" width="80%" top="5vh" :visible.sync="edit_show_dialog">
380 380
         <div>
@@ -397,7 +397,7 @@
397 397
                             value-format="yyyy-MM-dd"
398 398
                             placeholder="选择年">
399 399
                         </el-date-picker>
400
-                    </el-form-item> 
400
+                    </el-form-item>
401 401
                   </el-col>
402 402
                   <el-col :span="8">
403 403
                     <el-form-item>
@@ -405,9 +405,9 @@
405 405
                         <el-radio :label="1" >月份</el-radio>
406 406
                         <el-radio :label="2" >季度</el-radio>
407 407
                      </el-radio-group>
408
-                    </el-form-item> 
408
+                    </el-form-item>
409 409
                   </el-col>
410
-                  
410
+
411 411
                   <el-col :span="8" v-if="form.radio == 1">
412 412
                     <el-form-item>
413 413
                       <el-date-picker
@@ -417,7 +417,7 @@
417 417
                         type="month"
418 418
                         placeholder="选择月">
419 419
                       </el-date-picker>
420
-                    </el-form-item> 
420
+                    </el-form-item>
421 421
                   </el-col>
422 422
                   <el-col :span="8" v-if="form.radio == 2">
423 423
                     <el-form-item>
@@ -429,10 +429,10 @@
429 429
                           :value="item.id">
430 430
                         </el-option>
431 431
                       </el-select>
432
-                    </el-form-item> 
433
-                  </el-col> 
432
+                    </el-form-item>
433
+                  </el-col>
434 434
                  </el-row>   -->
435
-                
435
+
436 436
               </el-form>
437 437
             </div>
438 438
 
@@ -443,46 +443,46 @@
443 443
                     <el-col :span="8">
444 444
                      <el-form-item label="干体重">
445 445
                       <el-input v-model="form.dry_weight"></el-input>
446
-                     </el-form-item>  
446
+                     </el-form-item>
447 447
                     </el-col>
448 448
                     <el-col :span="8">
449 449
                      <el-form-item label="共透析(次)">
450 450
                       <el-input v-model="form.dialysis_count"></el-input>
451
-                     </el-form-item>  
451
+                     </el-form-item>
452 452
                     </el-col>
453 453
                     <el-col :span="8">
454 454
                      <el-form-item label="HD(次)">
455 455
                       <el-input v-model="form.hd_count"></el-input>
456
-                     </el-form-item>  
456
+                     </el-form-item>
457 457
                     </el-col>
458 458
                   </el-row> -->
459 459
                   <!-- <el-row :gutter="24">
460 460
                     <el-col :span="8">
461 461
                      <el-form-item label="HDF(次)">
462 462
                       <el-input v-model="form.hdf_count"></el-input>
463
-                     </el-form-item>  
463
+                     </el-form-item>
464 464
                     </el-col>
465 465
                     <el-col :span="8">
466 466
                      <el-form-item label="HP(次)">
467 467
                       <el-input v-model="form.hp_count"></el-input>
468
-                     </el-form-item>  
468
+                     </el-form-item>
469 469
                     </el-col>
470 470
                     <el-col :span="8">
471 471
                      <el-form-item label="其他(次)">
472 472
                       <el-input v-model="form.other_count"></el-input>
473
-                     </el-form-item>  
473
+                     </el-form-item>
474 474
                     </el-col>
475 475
                   </el-row> -->
476 476
                    <!-- <el-row :gutter="24">
477 477
                     <el-col :span="8">
478 478
                      <el-form-item label="透析器">
479 479
                        <el-input v-model="form.dialzer_apparatus" @focus="showInnerDialog('7')"></el-input>
480
-                     </el-form-item>  
480
+                     </el-form-item>
481 481
                     </el-col>
482 482
                     <el-col :span="8">
483 483
                       <el-form-item label="灌流器">
484 484
                         <el-input v-model="form.perfusion_apparatus" @focus="showInnerDialog('8')"></el-input>
485
-                      </el-form-item>  
485
+                      </el-form-item>
486 486
                     </el-col>
487 487
 
488 488
                     <el-col :span="8">
@@ -492,7 +492,7 @@
492 492
                           <el-option v-for="(item, index) in anticoagulantList" :label="item.name" :key="index + 'e'"
493 493
                            :value="item.id"></el-option>
494 494
                        </el-select>
495
-                     </el-form-item>  
495
+                     </el-form-item>
496 496
                     </el-col>
497 497
                   </el-row> -->
498 498
                    <!-- <div>透析液</div>
@@ -500,17 +500,17 @@
500 500
                     <el-col :span="8">
501 501
                      <el-form-item label="钾">
502 502
                       <el-input v-model="form.kalium"></el-input>
503
-                     </el-form-item>  
503
+                     </el-form-item>
504 504
                     </el-col>
505 505
                     <el-col :span="8">
506 506
                      <el-form-item label="钙">
507 507
                       <el-input v-model="form.autunite"></el-input>
508
-                     </el-form-item>  
508
+                     </el-form-item>
509 509
                     </el-col>
510 510
                     <el-col :span="8">
511 511
                      <el-form-item label="钠">
512 512
                       <el-input v-model="form.natrium"></el-input>
513
-                     </el-form-item>  
513
+                     </el-form-item>
514 514
                     </el-col>
515 515
                   </el-row> -->
516 516
                    <!-- <div>透析时长</div>
@@ -518,39 +518,39 @@
518 518
                     <el-col :span="8">
519 519
                      <el-form-item label="时">
520 520
                       <el-input v-model="form.hour"></el-input>
521
-                     </el-form-item>  
521
+                     </el-form-item>
522 522
                     </el-col>
523 523
                     <el-col :span="8">
524 524
                      <el-form-item label="分">
525 525
                       <el-input v-model="form.minute"></el-input>
526
-                     </el-form-item>  
526
+                     </el-form-item>
527 527
                     </el-col>
528 528
                   </el-row> -->
529 529
                   <!-- <el-row :gutter="24">
530 530
                     <el-col :span="8">
531 531
                      <el-form-item label="透前体重(kg)">
532 532
                       <el-input v-model="form.befor_weight"></el-input>
533
-                     </el-form-item>  
533
+                     </el-form-item>
534 534
                     </el-col>
535 535
                     <el-col :span="8">
536 536
                      <el-form-item label="透后体重(kg)">
537 537
                       <el-input v-model="form.after_weight"></el-input>
538
-                     </el-form-item>  
538
+                     </el-form-item>
539 539
                     </el-col>
540 540
                   </el-row> -->
541 541
                    <!-- <el-row :gutter="24">
542 542
                     <el-col :span="8">
543 543
                      <el-form-item label="透前血压(mmHg)">
544 544
                       <el-input v-model="form.befor_pressure"></el-input>
545
-                     </el-form-item>  
545
+                     </el-form-item>
546 546
                     </el-col>
547 547
                     <el-col :span="8">
548 548
                      <el-form-item label="透后血压(mmHg)">
549 549
                       <el-input v-model="form.after_pressure"></el-input>
550
-                     </el-form-item>  
550
+                     </el-form-item>
551 551
                     </el-col>
552 552
                   </el-row> -->
553
-                 
553
+
554 554
                   <el-row>
555 555
                     <label class="title"><span class="name">阶段小结总结</span> : </label>
556 556
                      <el-select v-model="form.template_summary_id" placeholder="请选择" @change="changeSummaryOne">
@@ -578,7 +578,7 @@
578 578
                   <el-row>
579 579
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
580 580
                     <el-button type="primary" @click="toInspection">选择检验检查</el-button>
581
-                   
581
+
582 582
                      <div class="borderBox">
583 583
                        <div v-for="item in form.template_inspection_content">
584 584
                         <p>{{ item.project_name }}</p>
@@ -588,10 +588,10 @@
588 588
                              {{it.inspect_value}}
589 589
                              <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
590 590
591
-                           </span> 
591
+                           </span>
592 592
                            <span v-if="parseInt(it.inspect_value) > parseInt(it.range_max)">
593 593
594
-                          </span> 
594
+                          </span>
595 595
                           </div>
596 596
                         </div>
597 597
                       </div>
@@ -648,26 +648,26 @@
648 648
                    prop="startYear"
649 649
                    style="width:100%;"
650 650
                  >
651
-                 <el-date-picker 
651
+                 <el-date-picker
652 652
                     @change="changeYear"
653
-                    v-model="startYear" 
654
-                    class="timePicker" 
655
-                    type="month" 
653
+                    v-model="startYear"
654
+                    class="timePicker"
655
+                    type="month"
656 656
                     placeholder=""
657
-                    format="yyyy-MM" 
657
+                    format="yyyy-MM"
658 658
                     value-format="yyyy-MM">
659 659
 	               </el-date-picker>
660 660
                  </el-form-item>
661 661
                  <!-- <el-form-item  label="月份:"
662 662
                    prop="startYear"
663
-                   style="width:100%;">     
663
+                   style="width:100%;">
664 664
                   <el-date-picker
665 665
                     v-model="startMonth"
666 666
                     type="month"
667 667
                     format="MM"
668 668
                     value-format="MM"
669 669
                     placeholder="请选择">
670
-                  </el-date-picker>  
670
+                  </el-date-picker>
671 671
                  </el-form-item> -->
672 672
                 </div>
673 673
               </el-form-item>
@@ -684,12 +684,12 @@
684 684
                         :row-style="{ color: '#303133' }"
685 685
                         ref="single_table"
686 686
                         :data="tableList"
687
-                        border highlight-current-row 
687
+                        border highlight-current-row
688 688
                         @current-change="changeCurrentRecord"
689 689
                         @selection-change="selectionChangeOne"
690 690
                         :row-class-name="tableRow"
691 691
                         @row-click="onRowClick"
692
-                      
692
+
693 693
                       >
694 694
                         <el-table-column type="selection" width="60" align="center"></el-table-column>
695 695
                         <el-table-column label="检验项目" align="center">
@@ -709,7 +709,7 @@
709 709
                                 border highlight-current-row @current-change="didChangeCurrentRecord"
710 710
                                 @selection-change="selectionChange"
711 711
                                 :row-class-name="tableRow"
712
-                                
712
+
713 713
                       >
714 714
                         <el-table-column label="检验项目" align="center">
715 715
                           <template slot-scope="scope">
@@ -721,10 +721,10 @@
721 721
                             {{scope.row.inspect_value}}
722 722
                            <span v-if="parseInt(scope.row.inspect_value) < parseInt(scope.row.range_min)">
723 723
724
-                          </span> 
724
+                          </span>
725 725
                            <span v-if="parseInt(scope.row.inspect_value) > parseInt(scope.row.range_max)">
726 726
727
-                          </span> 
727
+                          </span>
728 728
                           </template>
729 729
                         </el-table-column>
730 730
                         <el-table-column label="参考值" align="center">
@@ -751,9 +751,9 @@
751 751
           <el-button type="primary" @click="toContent">确 定</el-button>
752 752
         </span>
753 753
       </el-dialog>
754
-      
755
-       
756
-  
754
+
755
+
756
+
757 757
 
758 758
       <multi-select-box
759 759
         :propsForm="InnerDialogProps"
@@ -770,7 +770,7 @@
770 770
 <script>
771 771
   import PatientSidebar from './components/PatientSidebar'
772 772
   import Editor from '@/components/Editor'
773
- 
773
+
774 774
   import { getInitDataList,getInspectionMajorItem,getInspectionDetail,getInspectionItemList,saveCreation,getTemplateSummaryList,getTemplateSummaryDetail,UpdateTemplateSummary,deleteSummary } from '@/api/patient'
775 775
   import { parseTime } from '@/utils'
776 776
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
@@ -778,7 +778,7 @@
778 778
   import { getDataConfig } from '@/utils/data'
779 779
   import multiSelectBox from '../dialysis/details/dialog/MultiSelectBox'
780 780
  import MsgTip from '../dialysis/details/dialog/MsgTip'
781
- 
781
+
782 782
   const moment = require('moment')
783 783
   export default {
784 784
     name: 'templateSummary',
@@ -922,7 +922,7 @@
922 922
       var nowDate = new Date()
923 923
       var nowYear = nowDate.getFullYear()
924 924
       var nowMonth = nowDate.getMonth() + 1
925
-      
925
+
926 926
       var nowDay = nowDate.getDate()
927 927
       this.end_time =
928 928
         nowYear +
@@ -951,12 +951,12 @@
951 951
 
952 952
       this.anticoagulantList = arrFour
953 953
       console.log("抗凝剂量",this.anticoagulantList)
954
-      var endtime= moment(new Date()).endOf('month').subtract('month', +1).endOf('month').format("YYYY-MM-DD") 
954
+      var endtime= moment(new Date()).endOf('month').subtract('month', +1).endOf('month').format("YYYY-MM-DD")
955 955
       console.log("endtime",endtime)
956 956
       this.getlist()
957 957
       this.getInspectionMajor()
958 958
       this.getTemplateSummaryList()
959
-     
959
+
960 960
     },
961 961
     methods: {
962 962
       getTime(val) {
@@ -984,7 +984,7 @@
984 984
          }
985 985
       },
986 986
       showEdit(){
987
-       
987
+
988 988
         this.getCurrentRecordDetailOne()
989 989
       },
990 990
       onRowClick(){
@@ -994,7 +994,7 @@
994 994
 
995 995
       },
996 996
       changeCurrentRecord(val){
997
-       
997
+
998 998
         this.getInspectionDetai(val)
999 999
       },
1000 1000
       selectionChangeOne(val){
@@ -1019,7 +1019,7 @@
1019 1019
       getQuarter(year,quarter){
1020 1020
         var start_time = ""
1021 1021
         if(quarter == 1){
1022
-           
1022
+
1023 1023
         }
1024 1024
       },
1025 1025
       didSelectionChange(){
@@ -1056,11 +1056,11 @@
1056 1056
              this.form.natrium = prescription_list.sodium
1057 1057
              this.form.autunite = prescription_list.calcium
1058 1058
              var beforlist = response.data.data.beforlist
1059
-             console.log("透前数据565665565656",beforlist)
1059
+             // console.log("透前数据565665565656",beforlist)
1060 1060
              this.form.befor_weight = beforlist.weight_before
1061 1061
              this.form.dry_weight = beforlist.dry_weight
1062 1062
              var afterlist =  response.data.data.after_list
1063
-             console.log("透后数据232332323232",afterlist)
1063
+             // console.log("透后数据232332323232",afterlist)
1064 1064
              this.form.after_weight = afterlist.weight_after
1065 1065
              this.form.after_pressure = afterlist.systolic_blood_pressure + "/"+afterlist.diastolic_blood_pressure
1066 1066
              this.form.befor_pressure = beforlist.systolic_blood_pressure +"/"+beforlist.diastolic_blood_pressure
@@ -1117,7 +1117,7 @@
1117 1117
 
1118 1118
              }
1119 1119
              this.form.other_count = count
1120
-             
1120
+
1121 1121
              this.form.dialysis_count = total_count
1122 1122
             //  console.log("modelist",modelist)
1123 1123
              var summaryList = response.data.data.summaryList
@@ -1130,7 +1130,7 @@
1130 1130
        })
1131 1131
       },
1132 1132
       toInspection(){
1133
-        
1133
+
1134 1134
         this.dialogVisibleInspection = true
1135 1135
       },
1136 1136
 
@@ -1149,7 +1149,7 @@
1149 1149
             console.log("列表23232232323",list)
1150 1150
             // this.$refs.single_table.setCurrentRow(list[0])
1151 1151
             this.tableList = list
1152
-           
1152
+
1153 1153
           }
1154 1154
         })
1155 1155
       },
@@ -1165,7 +1165,7 @@
1165 1165
           if(response.data.state ==1){
1166 1166
             var list = response.data.data.list
1167 1167
             // console.log("详情222",list)
1168
-           
1168
+
1169 1169
             this.tableData = list
1170 1170
           }
1171 1171
        })
@@ -1183,10 +1183,10 @@
1183 1183
         this.projectList.push(val[i].project_id)
1184 1184
         this.inspectDataList.push(val[i].inspect_date)
1185 1185
       }
1186
-    
1186
+
1187 1187
       },
1188 1188
       toContent(){
1189
-      
1189
+
1190 1190
          var str = this.projectList.join(",")
1191 1191
          this.projectStr = str
1192 1192
          var inspe_date = this.inspectDataList.join(",")
@@ -1202,15 +1202,15 @@
1202 1202
              var list = response.data.data.list
1203 1203
             let arr = this.unique(list,'project_name')
1204 1204
             // console.log("选择检验检查",arr)
1205
-           
1205
+
1206 1206
             this.form.template_inspection_content = arr
1207 1207
             this.dialogVisibleInspection = false
1208
-           
1208
+
1209 1209
            }
1210
-        })  
1210
+        })
1211 1211
       },
1212 1212
       saveCreation(){
1213
-   
1213
+
1214 1214
         if (this.form.dry_weight == ""){
1215 1215
           this.form.dry_weight = 0
1216 1216
         }
@@ -1294,7 +1294,7 @@
1294 1294
             radio:this.form.radio,
1295 1295
          }
1296 1296
           console.log("parawm232323223",params)
1297
-    
1297
+
1298 1298
         saveCreation(params).then(response=>{
1299 1299
            if(response.data.state ==1){
1300 1300
              var summary =  response.data.data.summary
@@ -1443,7 +1443,7 @@
1443 1443
               }else{
1444 1444
                 this.form.dialysis_count = list.dialysis_count
1445 1445
               }
1446
-             
1446
+
1447 1447
               this.form.dialzer_apparatus = list.dialzer_apparatus
1448 1448
               this.form.dry_weight = list.dry_weight
1449 1449
                this.form.hd_count= list.hd_count
@@ -1461,14 +1461,14 @@
1461 1461
                }else{
1462 1462
                  this.form.template_inspection_id = list.template_inspection_id
1463 1463
                }
1464
-              
1464
+
1465 1465
                this.form.template_plan_content = list.template_plan_content
1466 1466
                if(list.template_plan_id == 0){
1467 1467
                  this.form.template_plan_id  = ""
1468 1468
                }else{
1469 1469
                  this.form.template_plan_id = list.template_plan_id
1470 1470
                }
1471
-             
1471
+
1472 1472
                console.log("hhhhhhhhh",list.template_plan_id)
1473 1473
                this.form.template_summary_content =list.template_summary_content
1474 1474
                if(list.template_summary_id == 0){
@@ -1476,11 +1476,11 @@
1476 1476
                }else{
1477 1477
                  this.form.template_summary_id = list.template_summary_id
1478 1478
                }
1479
-              
1479
+
1480 1480
                this.projectIndate = list.inspect_date
1481 1481
                this.projectStr = list.project_id
1482 1482
            }
1483
-        })  
1483
+        })
1484 1484
       },
1485 1485
       changeSummary(){
1486 1486
        for(let i=0;i<this.summaryList.length;i++){
@@ -1537,7 +1537,7 @@
1537 1537
             inspect_date:this.projectIndate,
1538 1538
          }
1539 1539
          console.log("parawm232323223",params)
1540
-        
1540
+
1541 1541
         UpdateTemplateSummary(params).then(response=>{
1542 1542
           if(response.data.state == 1){
1543 1543
             var list = response.data.data.list
@@ -1647,13 +1647,13 @@
1647 1647
           end = this.start_year +"-"+ this.form.start_month + "-"+"30"
1648 1648
         }
1649 1649
         var start = this.start_year +"-"+ this.form.start_month+"-"+"01"
1650
-       
1650
+
1651 1651
         this.start_date  = start
1652
-        this.end_date = end 
1652
+        this.end_date = end
1653 1653
         console.log("开始时间",this.start_date)
1654 1654
         console.log("结束时间",this.end_date)
1655 1655
         this.getlist()
1656
-       
1656
+
1657 1657
       },
1658 1658
       changeQuarter(val){
1659 1659
         this.form.title = ""
@@ -1677,7 +1677,7 @@
1677 1677
         this.form.template_summary_content = ""
1678 1678
         this.form.template_plan_content = ""
1679 1679
         this.form.template_inspection_content = ""
1680
-       
1680
+
1681 1681
         this.form.after_pressure = ""
1682 1682
         this.form.template_summary_id = ""
1683 1683
         this.form.template_plan_id = ""
@@ -1701,7 +1701,7 @@
1701 1701
         this.getlist()
1702 1702
       },
1703 1703
       getAnticoagulant(id){
1704
-        
1704
+
1705 1705
         var name = ""
1706 1706
         for(let i=0;i<this.anticoagulantList.length;i++){
1707 1707
           if(id == this.anticoagulantList[i].id){
@@ -1717,7 +1717,7 @@
1717 1717
         }else{
1718 1718
           this.startYear = val+"-" + "30"
1719 1719
         }
1720
-       
1720
+
1721 1721
         this.lastYear = val+"-"+"01"
1722 1722
         this.getInspectionMajor()
1723 1723
       },
@@ -1727,7 +1727,7 @@
1727 1727
         for( let i=0;i<val.length;i++){
1728 1728
            arr.push(val[i].id)
1729 1729
         }
1730
-     
1730
+
1731 1731
         var str = arr.join(",")
1732 1732
        console.log("str",str)
1733 1733
        this.ids = str
@@ -1736,7 +1736,7 @@
1736 1736
        if(this.ids == ""){
1737 1737
          this.$message.error("请勾选需要删除的数据")
1738 1738
          return
1739
-       } 
1739
+       }
1740 1740
        this.$confirm('确认删除这条记录?', '删除记录', {
1741 1741
           confirmButtonText: '确定',
1742 1742
           cancelButtonText: '取消',
@@ -1746,7 +1746,7 @@
1746 1746
               ids: this.ids,
1747 1747
             }
1748 1748
             console.log("params2323",params)
1749
-            
1749
+
1750 1750
             deleteSummary(params).then(response => {
1751 1751
               if (response.data.state == 0) {
1752 1752
                 this.$message.error(response.data.msg)
@@ -1754,7 +1754,7 @@
1754 1754
               } else {
1755 1755
                 var msg =response.data.data.msg
1756 1756
                 this.getTemplateSummaryList()
1757
-                
1757
+
1758 1758
               }
1759 1759
             })
1760 1760
           })
@@ -1769,7 +1769,7 @@
1769 1769
   //       this.$refs.inspection_table.setCurrentRow(this.inspectionList[0])
1770 1770
   //     })
1771 1771
   //   },
1772
-   
1772
+
1773 1773
   //  },
1774 1774
   }
1775 1775
 </script>

+ 3 - 3
src/xt_pages/user/templateSummaryPrint.vue Прегледај датотеку

@@ -47,7 +47,7 @@
47 47
         </div>
48 48
       </div> -->
49 49
       <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;">
50
-        <span style="font-weight:bold;">阶段小结总结:</span><div>{{patientList.template_summary_content}}</div>  
50
+        <span style="font-weight:bold;">阶段小结总结:</span><div style="line-height:24px;">{{patientList.template_summary_content}}</div>  
51 51
       </div>
52 52
      <div style="padding:20px 0;border-bottom:1px solid #000;min-height:250px;">
53 53
         <span style="font-weight:bold;">阶段小结化验结果:</span>
@@ -71,7 +71,7 @@
71 71
       </div>
72 72
       <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;">
73 73
         <span style="font-weight:bold;">阶段小结个性化方案:</span>
74
-        <div>{{patientList.template_plan_content}}</div>
74
+        <div style="line-height:24px;">{{patientList.template_plan_content}}</div>
75 75
       </div>
76 76
      <div style="margin-top:10px;">
77 77
        <span>记录医生:{{getPatientList(patientList.admin_user_id)}}</span>  
@@ -288,7 +288,7 @@ export default {
288 288
     printThisPage() {
289 289
         var ptime = Math.round(new Date().getTime() / 1000)
290 290
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
291
-        const style ='@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;font-weight: bold;margin: 10px 0;}'
291
+        const style ='@media print {.dialysis-print-order{width:960px;margin:0 auto;letter-spacing:5px}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;font-weight: bold;margin: 10px 0;}'
292 292
         printJS({
293 293
             printable: 'dialysis-print-box',
294 294
             type: 'html',

+ 2 - 2
src/xt_pages/workforce/next_remind_print.vue Прегледај датотеку

@@ -64,8 +64,8 @@
64 64
                  <span v-if="org_id!=9987">
65 65
                      <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus!=''"> 
66 66
                         <span v-if="org_id!=10131">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span> 
67
-                        <!-- <span v-if="org_id==10131">{{getDialysisDialyszerPerfusionOne(main_collection.prescription.patient_id)}}</span>  -->
68
-                         <span v-if="org_id==10131 || org_id==9671">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span>
67
+                        <span v-if="org_id==10131">{{getDialysisDialyszerPerfusionOne(main_collection.prescription.patient_id)}}</span> 
68
+                         <!-- <span v-if="org_id==10131 || org_id==9671">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span> -->
69 69
                      </span>
70 70
                      <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus ==''&& main_collection.dialysissolution.length>0">{{getDialysisDialyszerPerfusion(main_collection.patient_id)}}</span> 
71 71
                   </span>