Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 6 months ago
parent
commit
9f59e5bdb6

+ 5 - 3
src/api/device/device.js View File

122
     })
122
     })
123
 }
123
 }
124
 
124
 
125
-export function createDeviceNumber(number, zone_id, group_id,sort) {
125
+export function createDeviceNumber(number, zone_id, group_id,sort,number_type) {
126
     const params = {
126
     const params = {
127
         number: number,
127
         number: number,
128
         zone: zone_id,
128
         zone: zone_id,
129
         group: group_id,
129
         group: group_id,
130
         sort:sort,
130
         sort:sort,
131
+        number_type:number_type,
131
     }
132
     }
132
    
133
    
133
     return request({
134
     return request({
137
     })
138
     })
138
 }
139
 }
139
 
140
 
140
-export function modifyDeviceNumber(id, number, zone_id, group_id,sort) {
141
+export function modifyDeviceNumber(id, number, zone_id, group_id,sort,number_type) {
141
     const params = {
142
     const params = {
142
         id: id,
143
         id: id,
143
         number: number,
144
         number: number,
144
         zone: zone_id,
145
         zone: zone_id,
145
         group: group_id,
146
         group: group_id,
146
-        sort:sort
147
+        sort:sort,
148
+        number_type:number_type,
147
     }
149
     }
148
     return request({
150
     return request({
149
         url: '/api/device/number/modify',
151
         url: '/api/device/number/modify',

+ 4 - 4
src/store/modules/globalConfig.js View File

188
         id: 12,
188
         id: 12,
189
         name: '退休人员'
189
         name: '退休人员'
190
       },
190
       },
191
-    
191
+
192
     ],
192
     ],
193
     induction_options: [ // 诱导期
193
     induction_options: [ // 诱导期
194
       {
194
       {
1070
         zongliang: 1,
1070
         zongliang: 1,
1071
         gaimingcheng: -1,
1071
         gaimingcheng: -1,
1072
         gaijiliang: -1,
1072
         gaijiliang: -1,
1073
-        shouji_unit: 'mg',
1074
-        weichi_unit: 'mg/h',
1075
-        zongliang_unit: 'mg',
1073
+        shouji_unit: 'iu',
1074
+        weichi_unit: 'iu/h',
1075
+        zongliang_unit: 'iu',
1076
         gaimingcheng_unit: '',
1076
         gaimingcheng_unit: '',
1077
         gaijiliang_unit: ''
1077
         gaijiliang_unit: ''
1078
       },
1078
       },

+ 36 - 2
src/xt_pages/device/number_main.vue View File

36
               label="所属分组"
36
               label="所属分组"
37
               align="center"
37
               align="center"
38
             ></el-table-column>
38
             ></el-table-column>
39
+            <el-table-column
40
+              label="透析机型号"
41
+              align="center"
42
+            >
43
+             <template slot-scope="scope">
44
+                {{ scope.row.number_type?scope.row.number_type:"" }}
45
+             </template>
46
+            </el-table-column>
39
             <el-table-column prop="sort" label="排序" align="center">
47
             <el-table-column prop="sort" label="排序" align="center">
40
                 <template slot-scope="scope">
48
                 <template slot-scope="scope">
41
                     {{scope.row.sort?scope.row.sort:""}}
49
                     {{scope.row.sort?scope.row.sort:""}}
104
               style="width: 220px"
112
               style="width: 220px"
105
             ></el-input>
113
             ></el-input>
106
           </el-form-item>
114
           </el-form-item>
115
+
116
+          
107
           <el-form-item
117
           <el-form-item
108
             size="small"
118
             size="small"
109
             label="所属分区 : "
119
             label="所属分区 : "
121
               ></el-option>
131
               ></el-option>
122
             </el-select>
132
             </el-select>
123
           </el-form-item>
133
           </el-form-item>
134
+
135
+
136
+        
137
+          
124
           <el-form-item
138
           <el-form-item
125
             size="small"
139
             size="small"
126
             label="所属分组 : "
140
             label="所属分组 : "
138
               ></el-option>
152
               ></el-option>
139
             </el-select>
153
             </el-select>
140
           </el-form-item>
154
           </el-form-item>
155
+
156
+          <el-form-item
157
+            size="small"
158
+            label="透析机型号 : "
159
+            prop="number"
160
+          >
161
+            <el-input
162
+              v-model="number_form.number_type"
163
+              style="width: 220px"
164
+            ></el-input>
165
+          </el-form-item>
166
+
167
+
168
+
141
           <el-form-item label="排序:">
169
           <el-form-item label="排序:">
142
               <el-input style="width:220px" v-model="number_form.sort"></el-input>
170
               <el-input style="width:220px" v-model="number_form.sort"></el-input>
143
           </el-form-item>
171
           </el-form-item>
186
         zone: "",
214
         zone: "",
187
         group: "",
215
         group: "",
188
         sort:"",
216
         sort:"",
217
+        number_type:"",
189
       },
218
       },
190
       formLabelWidth: "110px",
219
       formLabelWidth: "110px",
191
       showEditDeviceNumber: false,
220
       showEditDeviceNumber: false,
222
       this.number_form.number = row.number;
251
       this.number_form.number = row.number;
223
       this.number_form.zone = row.zone_id;
252
       this.number_form.zone = row.zone_id;
224
       this.number_form.group = row.group_id;
253
       this.number_form.group = row.group_id;
254
+      this.number_form.number_type = row.number_type
225
       if(row.sort == 0){
255
       if(row.sort == 0){
226
         this.number_form.sort = ""
256
         this.number_form.sort = ""
227
       }
257
       }
237
       this.number_form.zone = "";
267
       this.number_form.zone = "";
238
       this.number_form.group = "";
268
       this.number_form.group = "";
239
       this.number_form.sort = ""
269
       this.number_form.sort = ""
270
+      this.number_form.number_type=""
240
       this.$refs.form_number.clearValidate();
271
       this.$refs.form_number.clearValidate();
241
       this.showEditDeviceNumber = false;
272
       this.showEditDeviceNumber = false;
242
     },
273
     },
248
               this.number_form.number,
279
               this.number_form.number,
249
               this.number_form.zone,
280
               this.number_form.zone,
250
               this.number_form.group,
281
               this.number_form.group,
251
-              this.number_form.sort
282
+              this.number_form.sort,
283
+              this.number_form.number_type,
252
             ).then(rs => {
284
             ).then(rs => {
253
               var resp = rs.data;
285
               var resp = rs.data;
254
               if (resp.state === 1) {
286
               if (resp.state === 1) {
265
               this.number_form.number,
297
               this.number_form.number,
266
               this.number_form.zone,
298
               this.number_form.zone,
267
               this.number_form.group,
299
               this.number_form.group,
268
-              this.number_form.sort
300
+              this.number_form.sort,
301
+              this.number_form.number_type,
269
             ).then(rs => {
302
             ).then(rs => {
270
               var resp = rs.data;
303
               var resp = rs.data;
271
               // console.log(resp.data)
304
               // console.log(resp.data)
283
                     number.zone_name = resp.data.number.zone_name;
316
                     number.zone_name = resp.data.number.zone_name;
284
                     number.group_name = resp.data.number.group_name;
317
                     number.group_name = resp.data.number.group_name;
285
                     number.sort = resp.data.number.sort;
318
                     number.sort = resp.data.number.sort;
319
+                    number.number_type = resp.data.number.number_type
286
                     break;
320
                     break;
287
                   }
321
                   }
288
                 }
322
                 }

+ 12 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

1406
                         <span v-if="record.prescription.anticoagulant == 15"
1406
                         <span v-if="record.prescription.anticoagulant == 15"
1407
                           >mg</span
1407
                           >mg</span
1408
                         >
1408
                         >
1409
+                        <span v-if="record.prescription.anticoagulant == 14"
1410
+                          >iu</span
1411
+                        >
1409
                         <span v-if="record.prescription.anticoagulant == 16"
1412
                         <span v-if="record.prescription.anticoagulant == 16"
1410
                           >mg</span
1413
                           >mg</span
1411
                         >
1414
                         >
1412
                         <span v-if="record.prescription.anticoagulant == 17"
1415
                         <span v-if="record.prescription.anticoagulant == 17"
1413
-                          >mg</span
1416
+                          >U</span
1414
                         >
1417
                         >
1415
                       </div>
1418
                       </div>
1416
                       <div class="inline_block" style="margin-left: 20px">
1419
                       <div class="inline_block" style="margin-left: 20px">
1473
                         <span v-if="record.prescription.anticoagulant == 1"
1476
                         <span v-if="record.prescription.anticoagulant == 1"
1474
                           >mg/h</span
1477
                           >mg/h</span
1475
                         >
1478
                         >
1479
+                        <span v-if="record.prescription.anticoagulant == 14"
1480
+                          >iu/h</span
1481
+                        >
1476
                         <span v-if="record.prescription.anticoagulant == 15"
1482
                         <span v-if="record.prescription.anticoagulant == 15"
1477
                           >mg/h</span
1483
                           >mg/h</span
1478
                         >
1484
                         >
1480
                           >mg/h</span
1486
                           >mg/h</span
1481
                         >
1487
                         >
1482
                         <span v-if="record.prescription.anticoagulant == 17"
1488
                         <span v-if="record.prescription.anticoagulant == 17"
1483
-                          >mg/h</span
1489
+                          >U/h</span
1484
                         >
1490
                         >
1485
                       </div>
1491
                       </div>
1486
                       <div class="inline_block" style="margin-left: 20px">
1492
                       <div class="inline_block" style="margin-left: 20px">
1523
                         <span v-if="record.prescription.anticoagulant == 1"
1529
                         <span v-if="record.prescription.anticoagulant == 1"
1524
                           >mg</span
1530
                           >mg</span
1525
                         >
1531
                         >
1532
+                        <span v-if="record.prescription.anticoagulant == 14"
1533
+                          >iu</span
1534
+                        >
1526
                         <span v-if="record.prescription.anticoagulant == 15"
1535
                         <span v-if="record.prescription.anticoagulant == 15"
1527
                           >mg</span
1536
                           >mg</span
1528
                         >
1537
                         >
1530
                           >mg</span
1539
                           >mg</span
1531
                         >
1540
                         >
1532
                         <span v-if="record.prescription.anticoagulant == 17"
1541
                         <span v-if="record.prescription.anticoagulant == 17"
1533
-                          >mg</span
1534
-                        >
1542
+                          >U</span>
1535
                       </div>
1543
                       </div>
1536
                       <div class="inline_block" style="margin-left: 20px">
1544
                       <div class="inline_block" style="margin-left: 20px">
1537
                         透析机号:
1545
                         透析机号:

+ 47 - 4
src/xt_pages/dialysis/details/consumable/dialysisDrug.vue View File

100
            </template>
100
            </template>
101
         </el-table-column>
101
         </el-table-column>
102
 
102
 
103
+        <el-table-column label="透析器/灌流器/滤过器" align="center" width="160">
104
+           <template slot-scope="scope">
105
+              <span v-if="scope.row.dialysis_prescription!=null">
106
+                 {{ scope.row.dialysis_prescription.dialysis_dialyszers }} &nbsp;&nbsp; {{ scope.row.dialysis_prescription.dialysis_irrigation }} &nbsp;&nbsp;  {{ scope.row.dialysis_prescription.dialysis_strainer }}
107
+              </span>
108
+
109
+              <span v-if="scope.row.dialysis_prescription==null">
110
+                {{ scope.row.dialysis_solution.dialysis_dialyszers }}  &nbsp;&nbsp; {{ scope.row.dialysis_solution.dialysis_irrigation }} &nbsp;&nbsp;  {{ scope.row.dialysis_solution.dialysis_strainer }}
111
+              </span>
112
+           </template>
113
+        </el-table-column>
114
+
115
+
116
+
117
+
103
         <el-table-column label="推送医嘱" align="center" width="1280">
118
         <el-table-column label="推送医嘱" align="center" width="1280">
104
            <template slot-scope="scope">
119
            <template slot-scope="scope">
105
              <span v-if="config.is_open !=1">{{getAdviceContent(scope.row.patient_id)}}</span> 
120
              <span v-if="config.is_open !=1">{{getAdviceContent(scope.row.patient_id)}}</span> 
250
         allGoodInfo:[],
265
         allGoodInfo:[],
251
         list:[],
266
         list:[],
252
         new_list:[],
267
         new_list:[],
253
-
254
         good_types: [],
268
         good_types: [],
255
         arrKey:[],
269
         arrKey:[],
256
         arrList:[],
270
         arrList:[],
404
       if(val == 39){
418
       if(val == 39){
405
         name = "HF16"
419
         name = "HF16"
406
       }
420
       }
421
+      if(val == 40){
422
+        name = "HD(无肝素)"
423
+      }
424
+      if(val == 41){
425
+        name = "HDF17H"
426
+      }
427
+      if(val == 42){
428
+        name = "HD."
429
+      }
430
+      if(val == 43){
431
+        name = "HD(2)"
432
+      }
407
       return name
433
       return name
408
       },
434
       },
409
       getlist(){
435
       getlist(){
412
           if(response.data.state == 1){
438
           if(response.data.state == 1){
413
           
439
           
414
             var list = response.data.data.list
440
             var list = response.data.data.list
415
-            this.list = list
441
+            if(list!=null && list.length>0){
442
+              for(let i=0;i<list.length;i++){
443
+                 list[i].sort =0
444
+                 list[i].sort = list[i].device_number.sort
445
+              }
446
+            }
447
+            console.log("lsit=================",list)
448
+            this.list = list.sort(this.compare('sort'))
416
             this.total = response.data.data.total
449
             this.total = response.data.data.total
417
             var adviceList = response.data.data.adviceList
450
             var adviceList = response.data.data.adviceList
418
             this.adviceList = adviceList
451
             this.adviceList = adviceList
461
           }
494
           }
462
         })
495
         })
463
       },
496
       },
464
-
497
+      compare(p) { //这是比较函数
498
+        return function (m, n) {
499
+          var a = m[p];
500
+          var b = n[p];
501
+          return a - b; //升序
502
+        }
503
+      },
465
       handleSizeChange(val) {
504
       handleSizeChange(val) {
466
         this.query.limit = val;
505
         this.query.limit = val;
467
         this.getlist();
506
         this.getlist();
521
             this.$message.error(response.data.msg)
560
             this.$message.error(response.data.msg)
522
             return false
561
             return false
523
           } else {
562
           } else {
524
-            this.partitionArr = response.data.data.zone
563
+           
564
+            var obj = {id:0,name:"全部"}
565
+            this.partitionArr.push(obj)
566
+            var zones = response.data.data.zone
567
+            this.partitionArr.push(...zones)
525
             for(let i=0;i<this.partitionArr.length;i++){
568
             for(let i=0;i<this.partitionArr.length;i++){
526
               this.zoneIdList.push(this.partitionArr[i].id)
569
               this.zoneIdList.push(this.partitionArr[i].id)
527
             }
570
             }

+ 37 - 0
src/xt_pages/dialysis/details/consumable/dialysisDrugPrint.vue View File

30
                 <td width="100">姓名</td>
30
                 <td width="100">姓名</td>
31
                 <td width="100">透析号</td>
31
                 <td width="100">透析号</td>
32
                 <td width="100">透析模式</td>
32
                 <td width="100">透析模式</td>
33
+                <td width="200">透析器/灌流器/滤过器</td>
33
                 <td width="800">推送医嘱</td>
34
                 <td width="800">推送医嘱</td>
34
              
35
              
35
               </tr>
36
               </tr>
41
                 <td>{{item.patient.name}}</td>
42
                 <td>{{item.patient.name}}</td>
42
                 <td>{{item.patient.dialysis_no}}</td>
43
                 <td>{{item.patient.dialysis_no}}</td>
43
                 <td>{{getModeId(item.mode_id)}}</td>
44
                 <td>{{getModeId(item.mode_id)}}</td>
45
+                <td width="200">
46
+                  <span v-if="item.dialysis_prescription!=null">
47
+                    {{ item.dialysis_prescription.dialysis_dialyszers }} &nbsp;&nbsp; {{ item.dialysis_prescription.dialysis_irrigation }} &nbsp;&nbsp;  {{ item.dialysis_prescription.dialysis_strainer }}
48
+                   </span>
49
+
50
+                  <span v-if="item.dialysis_prescription==null">
51
+                    {{ item.dialysis_solution.dialysis_dialyszers }}  &nbsp;&nbsp; {{ item.dialysis_solution.dialysis_irrigation }} &nbsp;&nbsp;  {{ item.dialysis_solution.dialysis_strainer }}
52
+                  </span>
53
+                </td>
44
                  <td width="800">
54
                  <td width="800">
45
                      <span v-if="config.is_open !=1">{{getAdviceContent(item.patient_id)}}</span> 
55
                      <span v-if="config.is_open !=1">{{getAdviceContent(item.patient_id)}}</span> 
46
                      <span v-if="config.is_open == 1"> {{getHisAdviceContent(item.patient_id)}}</span>
56
                      <span v-if="config.is_open == 1"> {{getHisAdviceContent(item.patient_id)}}</span>
113
      this.getlist()
123
      this.getlist()
114
     },
124
     },
115
     methods: {
125
     methods: {
126
+     compare(p) { //这是比较函数
127
+        return function (m, n) {
128
+          var a = m[p];
129
+          var b = n[p];
130
+          return a - b; //升序
131
+        }
132
+     },
116
      getModeId(val){
133
      getModeId(val){
117
       var name =""
134
       var name =""
118
       if(val == 1){
135
       if(val == 1){
220
       if(val == 39){
237
       if(val == 39){
221
         name = "HF16"
238
         name = "HF16"
222
       }
239
       }
240
+      if(val == 40){
241
+        name = "HD(无肝素)"
242
+      }
243
+      if(val == 41){
244
+        name = "HDF17H"
245
+      }
246
+      if(val == 42){
247
+        name = "HD."
248
+      }
249
+      if(val == 43){
250
+        name = "HD(2)"
251
+      }
223
       return name
252
       return name
224
       },
253
       },
225
       getlist(){
254
       getlist(){
235
           if(response.data.state == 1){
264
           if(response.data.state == 1){
236
           
265
           
237
             var list = response.data.data.list
266
             var list = response.data.data.list
267
+            if(list!=null && list.length>0){
268
+              for(let i=0;i<list.length;i++){
269
+                 list[i].sort =0
270
+                 list[i].sort = list[i].device_number.sort
271
+              }
272
+            }
273
+            console.log("lsit=================",list)
274
+            this.list = list.sort(this.compare('sort'))
238
             this.list = list
275
             this.list = list
239
             this.total = response.data.data.total
276
             this.total = response.data.data.total
240
             var adviceList = response.data.data.adviceList
277
             var adviceList = response.data.data.adviceList

+ 53 - 0
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue View File

278
               {{ scope.row.advice_spc }}
278
               {{ scope.row.advice_spc }}
279
            </template>
279
            </template>
280
         </el-table-column>
280
         </el-table-column>
281
+
282
+        <el-table-column align="center" label="左卡" v-if="org_id!=10599 && org_id!=10629">
283
+           <template slot-scope="scope">
284
+              {{ scope.row.advice_spc_one }}
285
+           </template>
286
+        </el-table-column>
287
+
288
+        <el-table-column align="center" label="低分子" v-if="org_id!=10599 && org_id!=10629">
289
+           <template slot-scope="scope">
290
+              {{ scope.row.advice_spc_two }}
291
+           </template>
292
+        </el-table-column>
293
+
294
+        <el-table-column align="center" label="肝素钠" v-if="org_id!=10599 && org_id!=10629">
295
+           <template slot-scope="scope">
296
+              {{ scope.row.advice_spc_three }}
297
+           </template>
298
+        </el-table-column>
299
+
300
+        <el-table-column align="center" label="蔗糖铁" v-if="org_id!=10599 && org_id!=10629">
301
+           <template slot-scope="scope">
302
+              {{ scope.row.advice_spc_four }}
303
+           </template>
304
+        </el-table-column>
305
+
306
+        <el-table-column align="center" label="尿激酶" v-if="org_id!=10599 && org_id!=10629">
307
+           <template slot-scope="scope">
308
+              {{ scope.row.advice_spc_five }}
309
+           </template>
310
+        </el-table-column>
281
        <el-table-column align="center" label="封管液" v-if="dialysisSett.sealing_fluid_dispose == 1">
311
        <el-table-column align="center" label="封管液" v-if="dialysisSett.sealing_fluid_dispose == 1">
282
            <template slot-scope="scope">
312
            <template slot-scope="scope">
283
              <span>{{scope.row.xt_assesment_after_dislysis.sealing_fluid_dispose}} </span> 
313
              <span>{{scope.row.xt_assesment_after_dislysis.sealing_fluid_dispose}} </span> 
686
 
716
 
687
               for(let i=0;i<list.length;i++){
717
               for(let i=0;i<list.length;i++){
688
                 list[i].advice_spc =""
718
                 list[i].advice_spc =""
719
+                list[i].advice_spc_one = ""
720
+                list[i].advice_spc_three = ""
721
+                 list[i].advice_spc_four = ""
722
+                  list[i].advice_spc_five = ""
689
                  for(let j=0;j<list[i].advice.length;j++){
723
                  for(let j=0;j<list[i].advice.length;j++){
690
                      if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
724
                      if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
691
                         list[i].advice_spc+= (list[i].advice[j].single_dose + "iu"+"/"+ list[i].advice[j].prescribing_number_unit)+","
725
                         list[i].advice_spc+= (list[i].advice[j].single_dose + "iu"+"/"+ list[i].advice[j].prescribing_number_unit)+","
692
                      }
726
                      }
727
+
728
+                     if((list[i].advice[j].advice_name).indexOf("左卡")!=-1){
729
+                        list[i].advice_spc_one+= (list[i].advice[j].single_dose + "g"+"/"+ list[i].advice[j].prescribing_number_unit)+","
730
+                     }
731
+
732
+                     if((list[i].advice[j].advice_name).indexOf("低分子")!=-1){
733
+                        list[i].advice_spc_two+= (list[i].advice[j].single_dose + "iu"+"/"+ list[i].advice[j].prescribing_number_unit)+","
734
+                     }
735
+
736
+                     if((list[i].advice[j].advice_name).indexOf("肝素钠")!=-1){
737
+                        list[i].advice_spc_three+= (list[i].advice[j].single_dose + "iu"+"/"+ list[i].advice[j].prescribing_number_unit)+","
738
+                     }
739
+                     if((list[i].advice[j].advice_name).indexOf("蔗糖铁")!=-1){
740
+                        list[i].advice_spc_four+= (list[i].advice[j].single_dose + "mg"+"/"+ list[i].advice[j].prescribing_number_unit)+","
741
+                     }
742
+                     if((list[i].advice[j].advice_name).indexOf("尿激酶")!=-1){
743
+                        list[i].advice_spc_five+= (list[i].advice[j].single_dose + "iu"+"/"+ list[i].advice[j].prescribing_number_unit)+","
744
+                     }
693
                  }
745
                  }
746
+                
694
               }
747
               }
695
               console.log("listwowowowowowo日本",this.list)
748
               console.log("listwowowowowowo日本",this.list)
696
               this.list = list
749
               this.list = list

+ 46 - 4
src/xt_pages/dialysis/details/consumable/dialysisParameterPrint.vue View File

52
                 <td width="100" v-if="dialysisSett.sealing_fluid_dispose == 1 && org_id!=10629">封管液</td>
52
                 <td width="100" v-if="dialysisSett.sealing_fluid_dispose == 1 && org_id!=10629">封管液</td>
53
                 <td width="100"  v-if="dialysisSett.glucose==1">葡萄糖</td>
53
                 <td width="100"  v-if="dialysisSett.glucose==1">葡萄糖</td>
54
                 <td width="100"  v-if="dialysisSett.blood_flow_volume==1">血流量</td>
54
                 <td width="100"  v-if="dialysisSett.blood_flow_volume==1">血流量</td>
55
-                <td v-if="org_id!=10587 && org_id!=0 && org_id!=10599 && org_id!=10629">封管液</td>
56
-                <td v-if="org_id!=10587 && org_id!=0 && org_id!=10599 && org_id!=10629">促红</td>
55
+                <td v-if="org_id!=10587 && org_id!=10599 && org_id!=10629">封管液</td>
56
+                <td v-if="org_id!=10587 && org_id!=10599 && org_id!=10629">促红</td>
57
+                <td v-if="org_id!=10587 && org_id!=10599 && org_id!=10629">左卡</td>
58
+                <td v-if="org_id!=10587 && org_id!=10599 && org_id!=10629">低分子</td>
59
+                <td v-if="org_id!=10587 && org_id!=10599 && org_id!=10629">肝素钠</td>
60
+                <td v-if="org_id!=10587 && org_id!=10599 && org_id!=10629">蔗糖铁</td>
61
+                <td v-if="org_id!=10587 && org_id!=10599 && org_id!=10629">尿激酶</td>
57
               </tr>
62
               </tr>
58
               </thead>
63
               </thead>
59
               <tbody>
64
               <tbody>
181
                 </td>
186
                 </td>
182
                 
187
                 
183
                 
188
                 
184
-                <td v-if="org_id!=10587&& org_id!=0 && org_id!=10599 && org_id!=10629">
189
+                <td v-if="org_id!=10587 && org_id!=10599 && org_id!=10629">
185
                   {{ item.advice_spc }}
190
                   {{ item.advice_spc }}
186
                 </td>
191
                 </td>
192
+                <td v-if="org_id!=10587 && org_id!=10599 && org_id!=10629">
193
+                  {{ item.advice_spc_one }}
194
+                </td>
195
+                <td v-if="org_id!=10587 && org_id!=10599 && org_id!=10629">
196
+                  {{ item.advice_spc_two }}
197
+                </td>
198
+                <td v-if="org_id!=10587 && org_id!=10599 && org_id!=10629">
199
+                  {{ item.advice_spc_three }}
200
+                </td>
201
+                <td v-if="org_id!=10587 && org_id!=10599 && org_id!=10629">
202
+                  {{ item.advice_spc_four }}
203
+                </td>
204
+                <td v-if="org_id!=10587 && org_id!=10599 && org_id!=10629">
205
+                  {{ item.advice_spc_five }}
206
+                </td>
187
                </tr>
207
                </tr>
188
               </tbody>
208
               </tbody>
189
             </table>
209
             </table>
282
             var total_three =0  
302
             var total_three =0  
283
             console.log("listoowowowwoww",list)
303
             console.log("listoowowowwoww",list)
284
             for(let i=0;i<list.length;i++){
304
             for(let i=0;i<list.length;i++){
285
-              list[i].advice_spc =""
305
+                list[i].advice_spc =""
306
+                list[i].advice_spc_one = ""
307
+                list[i].advice_spc_three = ""
308
+                list[i].advice_spc_four = ""
309
+                list[i].advice_spc_five = ""
286
                 for(let j=0;j<list[i].advice.length;j++){
310
                 for(let j=0;j<list[i].advice.length;j++){
287
                     total_two +=parseInt(list[i].advice[j].prescribing_number) 
311
                     total_two +=parseInt(list[i].advice[j].prescribing_number) 
288
                     if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
312
                     if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
289
                       list[i].advice_spc+= (list[i].advice[j].single_dose + "iu"+"/"+ list[i].advice[j].prescribing_number_unit)+","
313
                       list[i].advice_spc+= (list[i].advice[j].single_dose + "iu"+"/"+ list[i].advice[j].prescribing_number_unit)+","
290
                     }
314
                     }
315
+                    if((list[i].advice[j].advice_name).indexOf("左卡")!=-1){
316
+                        list[i].advice_spc_one+= (list[i].advice[j].single_dose + "g"+"/"+ list[i].advice[j].prescribing_number_unit)+","
317
+                     }
318
+
319
+                     if((list[i].advice[j].advice_name).indexOf("低分子")!=-1){
320
+                        list[i].advice_spc_two+= (list[i].advice[j].single_dose + "iu"+"/"+ list[i].advice[j].prescribing_number_unit)+","
321
+                     }
322
+
323
+                     if((list[i].advice[j].advice_name).indexOf("肝素钠")!=-1){
324
+                        list[i].advice_spc_three+= (list[i].advice[j].single_dose + "iu"+"/"+ list[i].advice[j].prescribing_number_unit)+","
325
+                     }
326
+                     if((list[i].advice[j].advice_name).indexOf("蔗糖铁")!=-1){
327
+                        list[i].advice_spc_four+= (list[i].advice[j].single_dose + "mg"+"/"+ list[i].advice[j].prescribing_number_unit)+","
328
+                     }
329
+                     if((list[i].advice[j].advice_name).indexOf("尿激酶")!=-1){
330
+                        list[i].advice_spc_five+= (list[i].advice[j].single_dose + "iu"+"/"+ list[i].advice[j].prescribing_number_unit)+","
331
+                     }
291
                 }
332
                 }
292
               this.total_two =total_two
333
               this.total_two =total_two
293
               if(list[i].dialysis_solution.anticoagulant == 3){
334
               if(list[i].dialysis_solution.anticoagulant == 3){
301
               this.total_three = total_three
342
               this.total_three = total_three
302
              
343
              
303
             }
344
             }
345
+            console.log("list====================",list)
304
             this.list = list
346
             this.list = list
305
             this.dialysisSett = response.data.data.dialysisSett
347
             this.dialysisSett = response.data.data.dialysisSett
306
             console.log("设置",this.dialysisSett)
348
             console.log("设置",this.dialysisSett)

+ 30 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

1444
                       <span v-if="org_id!=9538&& prescription.anticoagulant == 2">mg</span>
1444
                       <span v-if="org_id!=9538&& prescription.anticoagulant == 2">mg</span>
1445
                       <span v-if="org_id==9538&& prescription.anticoagulant == 2">u</span>
1445
                       <span v-if="org_id==9538&& prescription.anticoagulant == 2">u</span>
1446
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1446
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1447
-                      <span v-if="prescription.anticoagulant == 14">mg</span>
1447
+                      <span v-if="prescription.anticoagulant == 14">
1448
+                       <span v-if="org_id!=10644">mg</span> 
1449
+                       <span v-if="org_id==10644">iu</span> 
1450
+                      </span>
1451
+                      <span v-if="prescription.anticoagulant == 17">U</span>
1448
                     </span>
1452
                     </span>
1449
 
1453
 
1450
                     <span v-if="org_id==9675 || org_id==10447 || org_id==9829 || org_id==10440 || org_id==10469 || org_id == 10471 || org_id == 10460">
1454
                     <span v-if="org_id==9675 || org_id==10447 || org_id==9829 || org_id==10440 || org_id==10469 || org_id == 10471 || org_id == 10460">
1459
                      <span v-if="prescription.anticoagulant == 10">iu</span>
1463
                      <span v-if="prescription.anticoagulant == 10">iu</span>
1460
                      <span v-if="prescription.anticoagulant == 11">iu</span>
1464
                      <span v-if="prescription.anticoagulant == 11">iu</span>
1461
                      <span v-if="prescription.anticoagulant == 13">iu</span>
1465
                      <span v-if="prescription.anticoagulant == 13">iu</span>
1462
-                     <span v-if="prescription.anticoagulant == 14">mg</span>
1466
+                     <span v-if="prescription.anticoagulant == 14">
1467
+                      <span v-if="org_id!=10644">mg</span> 
1468
+                      <span v-if="org_id==10644">iu</span> 
1469
+                     </span>
1470
+                     <span v-if="prescription.anticoagulant == 17">U</span>
1463
 
1471
 
1464
                     </span>
1472
                     </span>
1465
                     </div>
1473
                     </div>
1501
                         <span v-if="org_id!=9538&& prescription.anticoagulant == 2">mg/h</span>
1509
                         <span v-if="org_id!=9538&& prescription.anticoagulant == 2">mg/h</span>
1502
                         <span v-if="org_id==9538&& prescription.anticoagulant == 2">u</span>
1510
                         <span v-if="org_id==9538&& prescription.anticoagulant == 2">u</span>
1503
                           <span v-if="prescription.anticoagulant == 1">mg/h</span>
1511
                           <span v-if="prescription.anticoagulant == 1">mg/h</span>
1504
-                          <span v-if="prescription.anticoagulant == 14">mg/h</span>
1512
+                          <span v-if="prescription.anticoagulant == 14">
1513
+                            <span v-if="org_id!=10644">mg/h</span> 
1514
+                            <span v-if="org_id==10644">iu/h</span> 
1515
+                          </span>
1516
+                          <span v-if="prescription.anticoagulant == 17">U/h</span>
1505
                       </span>
1517
                       </span>
1506
                       <span v-if="org_id==9675 || org_id==10447 || org_id== 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10460">
1518
                       <span v-if="org_id==9675 || org_id==10447 || org_id== 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10460">
1507
                         <span v-if="prescription.anticoagulant == 2">mg/h</span>
1519
                         <span v-if="prescription.anticoagulant == 2">mg/h</span>
1515
                           <span v-if="prescription.anticoagulant == 10">iu/h</span>
1527
                           <span v-if="prescription.anticoagulant == 10">iu/h</span>
1516
                           <span v-if="prescription.anticoagulant == 11">iu/h</span>
1528
                           <span v-if="prescription.anticoagulant == 11">iu/h</span>
1517
                           <span v-if="prescription.anticoagulant == 13">iu/h</span>
1529
                           <span v-if="prescription.anticoagulant == 13">iu/h</span>
1518
-                          <span v-if="prescription.anticoagulant == 14">mg/h</span>
1530
+                          <span v-if="prescription.anticoagulant == 14">
1531
+                            <span v-if="org_id!=10644">mg/h</span> 
1532
+                            <span v-if="org_id==10644">iu/h</span> 
1533
+                          </span>
1534
+                          <span v-if="prescription.anticoagulant == 17">U/h</span>
1519
                       </span>
1535
                       </span>
1520
                     </div>
1536
                     </div>
1521
                     <div
1537
                     <div
1584
                       <span v-if="org_id!=9538&& prescription.anticoagulant == 2">mg</span>
1600
                       <span v-if="org_id!=9538&& prescription.anticoagulant == 2">mg</span>
1585
                       <span v-if="org_id==9538&& prescription.anticoagulant == 2">u</span>
1601
                       <span v-if="org_id==9538&& prescription.anticoagulant == 2">u</span>
1586
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1602
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1587
-                      <span v-if="prescription.anticoagulant == 14">mg</span>
1603
+                      <span v-if="prescription.anticoagulant == 14">
1604
+                        <span v-if="org_id!=10644">mg</span> 
1605
+                        <span v-if="org_id==10644">iu</span> 
1606
+                      </span>
1607
+                      <span v-if="prescription.anticoagulant == 17">U</span>
1588
                      </span>
1608
                      </span>
1589
                     <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471|| org_id == 10460">
1609
                     <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471|| org_id == 10460">
1590
                        <span v-if="prescription.anticoagulant == 2">mg</span>
1610
                        <span v-if="prescription.anticoagulant == 2">mg</span>
1598
                        <span v-if="prescription.anticoagulant == 10">iu</span>
1618
                        <span v-if="prescription.anticoagulant == 10">iu</span>
1599
                       <span v-if="prescription.anticoagulant == 11">iu</span>
1619
                       <span v-if="prescription.anticoagulant == 11">iu</span>
1600
                       <span v-if="prescription.anticoagulant == 13">iu</span>
1620
                       <span v-if="prescription.anticoagulant == 13">iu</span>
1601
-                      <span v-if="prescription.anticoagulant == 14">mg/h</span>
1621
+                      <span v-if="prescription.anticoagulant == 14">
1622
+                        <span v-if="org_id!=10644">mg</span> 
1623
+                        <span v-if="org_id==10644">iu</span> 
1624
+                      </span>
1625
+                      <span v-if="prescription.anticoagulant == 17">U</span>
1602
                     </span>
1626
                     </span>
1603
                     </div>
1627
                     </div>
1604
                     <div class="inline_block" style="margin-left: 20px" v-if="org_id!=9675 && org_id!=10447">
1628
                     <div class="inline_block" style="margin-left: 20px" v-if="org_id!=9675 && org_id!=10447">

+ 12 - 0
src/xt_pages/eleFaPiao/fapiao.vue View File

89
         </el-table-column>
89
         </el-table-column>
90
 
90
 
91
 
91
 
92
+        <el-table-column
93
+          align="center"
94
+          width="100"
95
+          prop="name"
96
+          label="处方日期"
97
+        >
98
+          <template slot-scope="scope">
99
+            {{scope.row.orders?getTimes(scope.row.orders[0].settle_accounts_date):""}}
100
+          </template>
101
+        </el-table-column>
102
+
103
+
92
         <el-table-column align="center" width="90" prop="name" label="开票员">
104
         <el-table-column align="center" width="90" prop="name" label="开票员">
93
           <template slot-scope="scope">
105
           <template slot-scope="scope">
94
             {{scope.row.creator}}
106
             {{scope.row.creator}}

+ 39 - 0
src/xt_pages/workforce/remind_print.vue View File

37
                   <td width="30" v-if="printObj.anticoagulant_zongliang == 1">维持</td>
37
                   <td width="30" v-if="printObj.anticoagulant_zongliang == 1">维持</td>
38
                   <td width="30" v-if="printObj.anticoagulant_zongliang == 1">总量</td>
38
                   <td width="30" v-if="printObj.anticoagulant_zongliang == 1">总量</td>
39
                   <td width="">血管通路</td>
39
                   <td width="">血管通路</td>
40
+                  <td width="" v-if="org_id == 0 || org_id ==10567">管路</td>
40
                   <td width="300" v-if="printObj.doctor_advice == 1">长期医嘱</td>
41
                   <td width="300" v-if="printObj.doctor_advice == 1">长期医嘱</td>
41
                 </tr>
42
                 </tr>
42
               </thead>
43
               </thead>
125
                 <td >
126
                 <td >
126
                    <span>{{getBloodName(main_collection.prescription.blood_access)  }}</span>
127
                    <span>{{getBloodName(main_collection.prescription.blood_access)  }}</span>
127
                 </td>
128
                 </td>
129
+                <td v-if="org_id == 0 || org_id ==10567">
130
+                   <span>
131
+                     {{ getProjectName(main_collection.projectList,main_collection.schedule_date) }}
132
+                   </span>
133
+                </td>
128
                 <td  style="text-align:left"  v-if="printObj.doctor_advice == 1">
134
                 <td  style="text-align:left"  v-if="printObj.doctor_advice == 1">
129
                   <span style="white-space: pre" v-if="main_collection.doctoradvice.length>0">{{getAdvice(main_collection.doctoradvice)}}</span>
135
                   <span style="white-space: pre" v-if="main_collection.doctoradvice.length>0">{{getAdvice(main_collection.doctoradvice)}}</span>
130
                    <span style="white-space: pre" v-if="main_collection.hisdoctoradviceinfo.length>0">{{ getAdviceOne(main_collection.hisdoctoradviceinfo)}}</span>
136
                    <span style="white-space: pre" v-if="main_collection.hisdoctoradviceinfo.length>0">{{ getAdviceOne(main_collection.hisdoctoradviceinfo)}}</span>
207
            console.log("list2323323",list)
213
            console.log("list2323323",list)
208
            for(let i=0;i<list.length;i++){
214
            for(let i=0;i<list.length;i++){
209
               list[i].sort = list[i].number.sort
215
               list[i].sort = list[i].number.sort
216
+              list[i].projectList = []
217
+              if(list[i].his_prescription_template.his_prescription_info.length>0){
218
+                for(let j=0;j<list[i].his_prescription_template.his_prescription_info.length;j++){
219
+                  if(list[i].his_prescription_template.his_prescription_info[j].project.length >0){
220
+                    for(let z=0;z<list[i].his_prescription_template.his_prescription_info[j].project.length;z++){
221
+                      list[i].projectList.push(list[i].his_prescription_template.his_prescription_info[j].project[z])
222
+                    }
223
+                    
224
+                  }
225
+                }
226
+              }
210
            }
227
            }
228
+           console.log("likst==========================",list)
211
            var arr = list.sort(this.compare('sort'))
229
            var arr = list.sort(this.compare('sort'))
212
             
230
             
213
              this.scheduleData = arr
231
              this.scheduleData = arr
494
 
512
 
495
         return type_name 
513
         return type_name 
496
 
514
 
515
+      },
516
+      getProjectName(val,schedule_date){
517
+       var project_name = ""
518
+       if(val!=null && val.length>0){
519
+         for(let i=0;i<val.length;i++){
520
+          if(val[i].good_info.good_type_id == 9716){
521
+            if(val[i].frequency_type == 1 || (val[i].frequency_type == 3 && val[i].week_day.indexOf(this.getweekday(schedule_date))!=-1)){
522
+              project_name += val[i].good_info.good_name +val[i].count + val[i].good_info.packing_unit +","
523
+            }
524
+          }
525
+           
526
+         }
527
+       }
528
+       return project_name
529
+      },
530
+      getweekday(date){
531
+        var weekArray = new Array("周日", "周一", "周二", "周三", "周四", "周五", "周六");
532
+
533
+        var week = weekArray[new Date(date).getDay()];//注意此处必须是先new一个Date
534
+
535
+        return week;
497
       }
536
       }
498
     },
537
     },
499
   }
538
   }