Browse Source

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

see999 3 years ago
parent
commit
6eaabc87bb

+ 5 - 2
src/api/advice.js View File

333
   })
333
   })
334
 }
334
 }
335
 
335
 
336
-export function getPrintInfo(data) {
336
+export function getPrintInfo(data, advice_type, stop_type) {
337
+  console.log('data', data)
338
+  console.log('advice_tuype23232', advice_type)
339
+  console.log('stop_type', stop_type)
337
   return request({
340
   return request({
338
-    url: '/api/advicetemplate/getprintinfo',
341
+    url: '/api/advicetemplate/getprintinfo?advice_type=' + advice_type + '&stop_type=' + stop_type,
339
     method: 'post',
342
     method: 'post',
340
     data: data
343
     data: data
341
   })
344
   })

+ 7 - 0
src/api/drug/drug.js View File

484
   })
484
   })
485
 }
485
 }
486
 
486
 
487
+export function getInventoryModeList(params) {
488
+  return request({
489
+    url: '/api/drug/getinventorymodelist',
490
+    method: 'get',
491
+    params: params
492
+  })
493
+}

+ 21 - 6
src/xt_pages/data/components/consumables.vue View File

89
         </template>
89
         </template>
90
 
90
 
91
       </el-table-column>
91
       </el-table-column>
92
-      <el-table-column prop="date" label="耗材类" width="140" align="center">
92
+      <el-table-column prop="date" label="耗材类" width="140" align="center">
93
         <template slot-scope="scope">
93
         <template slot-scope="scope">
94
-          {{ getGoodKind(scope.row.good_kind) }}
94
+          {{ getGoodTypeByID(scope.row.good_type_id) }}
95
         </template>
95
         </template>
96
       </el-table-column>
96
       </el-table-column>
97
       <el-table-column label="耗材编号" width="140" align="center">
97
       <el-table-column label="耗材编号" width="140" align="center">
313
               default_count_unit:"",
313
               default_count_unit:"",
314
               min_unit:"",
314
               min_unit:"",
315
               total:"",
315
               total:"",
316
+              register_number:"",
316
             },
317
             },
317
             isVisibility: false,
318
             isVisibility: false,
318
 
319
 
703
             this.goodInfo.goodInfoDialog.formValue.packing_unit = response.data.data.goodInfo.packing_unit
704
             this.goodInfo.goodInfoDialog.formValue.packing_unit = response.data.data.goodInfo.packing_unit
704
             this.goodInfo.goodInfoDialog.formValue.packing_price = response.data.data.goodInfo.packing_price
705
             this.goodInfo.goodInfoDialog.formValue.packing_price = response.data.data.goodInfo.packing_price
705
             this.goodInfo.goodInfoDialog.formValue.default_count_unit = response.data.data.goodInfo.default_count_unit
706
             this.goodInfo.goodInfoDialog.formValue.default_count_unit = response.data.data.goodInfo.default_count_unit
707
+            this.goodInfo.goodInfoDialog.formValue.register_number = response.data.data.goodInfo.register_number
706
             this.$refs.addConsumable.show(row.id, this.goodInfo.goodInfoDialog.formValue)
708
             this.$refs.addConsumable.show(row.id, this.goodInfo.goodInfoDialog.formValue)
707
 
709
 
708
-
709
-
710
           }
710
           }
711
         })
711
         })
712
       },
712
       },
858
       },
858
       },
859
       goodInfoDialogCancle: function() {
859
       goodInfoDialogCancle: function() {
860
         this.$refs.addConsumable.hide()
860
         this.$refs.addConsumable.hide()
861
+      },getGoodTypeByID(id){
862
+        console.log( id)
863
+
864
+        let name = ""
865
+        for(let i = 0;  i < this.goodInfo.goodInfoDialog.formValue.goodType.length;i++){
866
+          if(this.goodInfo.goodInfoDialog.formValue.goodType[i].id == id){
867
+            name = this.goodType[i].type_name
868
+          }
869
+        }
870
+        return name
871
+
861
       },
872
       },
862
       showInfoDialog: function() {
873
       showInfoDialog: function() {
863
         this.getAllDealer();
874
         this.getAllDealer();
937
               this.goodInfo.goodInfoDialog.formValue.goodType.push(response.data.data.goodType[i]);
948
               this.goodInfo.goodInfoDialog.formValue.goodType.push(response.data.data.goodType[i]);
938
               this.goodType.push(response.data.data.goodType[i])
949
               this.goodType.push(response.data.data.goodType[i])
939
             }
950
             }
951
+            this.getList();
952
+
940
           }
953
           }
941
         })
954
         })
942
       },
955
       },
1015
         this.goodInfo.goodInfoDialog.formValue.is_doctor_use = '';
1028
         this.goodInfo.goodInfoDialog.formValue.is_doctor_use = '';
1016
         this.goodInfo.goodInfoDialog.formValue.agent = '';
1029
         this.goodInfo.goodInfoDialog.formValue.agent = '';
1017
         this.goodInfo.goodInfoDialog.formValue.good_number = '';
1030
         this.goodInfo.goodInfoDialog.formValue.good_number = '';
1031
+        this.goodInfo.goodInfoDialog.formValue.register_number = '';
1032
+
1018
 
1033
 
1019
         this.$refs.addConsumable.show(0)
1034
         this.$refs.addConsumable.show(0)
1020
       },
1035
       },
1468
 
1483
 
1469
     },
1484
     },
1470
     created() {
1485
     created() {
1471
-      this.getList();
1486
+      this.getAllGoodType();
1472
       this.getAllDealer();
1487
       this.getAllDealer();
1473
       this.getAllManufacturer();
1488
       this.getAllManufacturer();
1474
-      this.getAllGoodType();
1475
       this.goodInfo.goodInfoDialog.formValue.goodUnit = this.$store.getters.good_unit;
1489
       this.goodInfo.goodInfoDialog.formValue.goodUnit = this.$store.getters.good_unit;
1476
       this.getInitializtion()
1490
       this.getInitializtion()
1491
+
1477
     }
1492
     }
1478
   }
1493
   }
1479
 </script>
1494
 </script>

+ 69 - 69
src/xt_pages/hospitalStation/doctorDesk.vue View File

639
             }
639
             }
640
           }
640
           }
641
           //附加收费
641
           //附加收费
642
-          for (let a = 0; a < month_prescriptions[i].addition.length; a++) {
643
-            let obj = {
644
-              id: month_prescriptions[i].addition[a].item_id,
645
-              price: month_prescriptions[i].addition[a].price
646
-
647
-            }
648
-            additions_ids.push(obj)
649
-            addition_month_prescriptions.addition.push(month_prescriptions[i].addition[a])
650
-          }
642
+          // for (let a = 0; a < month_prescriptions[i].addition.length; a++) {
643
+          //   let obj = {
644
+          //     id: month_prescriptions[i].addition[a].item_id,
645
+          //     price: month_prescriptions[i].addition[a].price
646
+          //
647
+          //   }
648
+          //   additions_ids.push(obj)
649
+          //   addition_month_prescriptions.addition.push(month_prescriptions[i].addition[a])
650
+          // }
651
         }
651
         }
652
 
652
 
653
         const obj = {}
653
         const obj = {}
1169
                 }
1169
                 }
1170
 
1170
 
1171
                 //附加收费
1171
                 //附加收费
1172
-                for (let b = 0; b < prescription.addition.length; b++) {
1173
-                  let obj = {
1174
-                    id: prescription.addition[b].id,
1175
-                    item_name: prescription.addition[b].item_name,
1176
-                    price: prescription.addition[b].price,
1177
-                    count: prescription.addition[b].count,
1178
-                    item_id: prescription.addition[b].item_id
1179
-                  }
1180
-                  tempAddition.push(obj)
1181
-                }
1172
+                // for (let b = 0; b < prescription.addition.length; b++) {
1173
+                //   let obj = {
1174
+                //     id: prescription.addition[b].id,
1175
+                //     item_name: prescription.addition[b].item_name,
1176
+                //     price: prescription.addition[b].price,
1177
+                //     count: prescription.addition[b].count,
1178
+                //     item_id: prescription.addition[b].item_id
1179
+                //   }
1180
+                //   tempAddition.push(obj)
1181
+                // }
1182
 
1182
 
1183
                 var preTime = ''
1183
                 var preTime = ''
1184
 
1184
 
1545
                       }
1545
                       }
1546
 
1546
 
1547
                       //附加收费
1547
                       //附加收费
1548
-                      for (let b = 0; b < prescription.addition.length; b++) {
1549
-                        let obj = {
1550
-                          id: prescription.addition[b].id,
1551
-                          item_name: prescription.addition[b].item_name,
1552
-                          price: prescription.addition[b].price,
1553
-                          count: prescription.addition[b].count,
1554
-                          item_id: prescription.addition[b].item_id
1555
-                        }
1556
-                        tempAddition.push(obj)
1557
-                      }
1548
+                      // for (let b = 0; b < prescription.addition.length; b++) {
1549
+                      //   let obj = {
1550
+                      //     id: prescription.addition[b].id,
1551
+                      //     item_name: prescription.addition[b].item_name,
1552
+                      //     price: prescription.addition[b].price,
1553
+                      //     count: prescription.addition[b].count,
1554
+                      //     item_id: prescription.addition[b].item_id
1555
+                      //   }
1556
+                      //   tempAddition.push(obj)
1557
+                      // }
1558
 
1558
 
1559
                       var preTime = ''
1559
                       var preTime = ''
1560
 
1560
 
2021
                       }
2021
                       }
2022
 
2022
 
2023
                       //附加收费
2023
                       //附加收费
2024
-                      for (let b = 0; b < prescription.addition.length; b++) {
2025
-                        let obj = {
2026
-                          id: prescription.addition[b].id,
2027
-                          item_name: prescription.addition[b].item_name,
2028
-                          price: prescription.addition[b].price,
2029
-                          count: prescription.addition[b].count,
2030
-                          item_id: prescription.addition[b].item_id
2031
-                        }
2032
-                        tempAddition.push(obj)
2033
-                      }
2024
+                      // for (let b = 0; b < prescription.addition.length; b++) {
2025
+                      //   let obj = {
2026
+                      //     id: prescription.addition[b].id,
2027
+                      //     item_name: prescription.addition[b].item_name,
2028
+                      //     price: prescription.addition[b].price,
2029
+                      //     count: prescription.addition[b].count,
2030
+                      //     item_id: prescription.addition[b].item_id
2031
+                      //   }
2032
+                      //   tempAddition.push(obj)
2033
+                      // }
2034
 
2034
 
2035
                       var preTime = ''
2035
                       var preTime = ''
2036
 
2036
 
2477
                     }
2477
                     }
2478
 
2478
 
2479
                     //附加收费
2479
                     //附加收费
2480
-                    for (let b = 0; b < prescription.addition.length; b++) {
2481
-                      let obj = {
2482
-                        id: prescription.addition[b].id,
2483
-                        item_name: prescription.addition[b].item_name,
2484
-                        price: prescription.addition[b].price,
2485
-                        count: prescription.addition[b].count,
2486
-                        item_id: prescription.addition[b].item_id
2487
-                      }
2488
-                      tempAddition.push(obj)
2489
-                    }
2480
+                    // for (let b = 0; b < prescription.addition.length; b++) {
2481
+                    //   let obj = {
2482
+                    //     id: prescription.addition[b].id,
2483
+                    //     item_name: prescription.addition[b].item_name,
2484
+                    //     price: prescription.addition[b].price,
2485
+                    //     count: prescription.addition[b].count,
2486
+                    //     item_id: prescription.addition[b].item_id
2487
+                    //   }
2488
+                    //   tempAddition.push(obj)
2489
+                    // }
2490
 
2490
 
2491
                     var preTime = ''
2491
                     var preTime = ''
2492
 
2492
 
2992
                       }
2992
                       }
2993
 
2993
 
2994
                       //附加收费
2994
                       //附加收费
2995
-                      for (let b = 0; b < prescription.addition.length; b++) {
2996
-                        let obj = {
2997
-                          id: prescription.addition[b].id,
2998
-                          item_name: prescription.addition[b].item_name,
2999
-                          price: prescription.addition[b].price,
3000
-                          count: prescription.addition[b].count,
3001
-                          item_id: prescription.addition[b].item_id
3002
-                        }
3003
-                        tempAddition.push(obj)
3004
-                      }
2995
+                      // for (let b = 0; b < prescription.addition.length; b++) {
2996
+                      //   let obj = {
2997
+                      //     id: prescription.addition[b].id,
2998
+                      //     item_name: prescription.addition[b].item_name,
2999
+                      //     price: prescription.addition[b].price,
3000
+                      //     count: prescription.addition[b].count,
3001
+                      //     item_id: prescription.addition[b].item_id
3002
+                      //   }
3003
+                      //   tempAddition.push(obj)
3004
+                      // }
3005
 
3005
 
3006
                       var preTime = ''
3006
                       var preTime = ''
3007
 
3007
 
3537
                       }
3537
                       }
3538
 
3538
 
3539
                       //附加收费
3539
                       //附加收费
3540
-                      for (let b = 0; b < prescription.addition.length; b++) {
3541
-                        let obj = {
3542
-                          id: prescription.addition[b].id,
3543
-                          item_name: prescription.addition[b].item_name,
3544
-                          price: prescription.addition[b].price,
3545
-                          count: prescription.addition[b].count,
3546
-                          item_id: prescription.addition[b].item_id
3547
-                        }
3548
-                        tempAddition.push(obj)
3549
-                      }
3540
+                      // for (let b = 0; b < prescription.addition.length; b++) {
3541
+                      //   let obj = {
3542
+                      //     id: prescription.addition[b].id,
3543
+                      //     item_name: prescription.addition[b].item_name,
3544
+                      //     price: prescription.addition[b].price,
3545
+                      //     count: prescription.addition[b].count,
3546
+                      //     item_id: prescription.addition[b].item_id
3547
+                      //   }
3548
+                      //   tempAddition.push(obj)
3549
+                      // }
3550
 
3550
 
3551
                       var preTime = ''
3551
                       var preTime = ''
3552
 
3552
 

+ 3 - 0
src/xt_pages/hospitalStation/template/printFour.vue View File

2
   <div id='prescriptionPrint'>
2
   <div id='prescriptionPrint'>
3
     <div v-for="(item,index) in advicePrint" :key="index">
3
     <div v-for="(item,index) in advicePrint" :key="index">
4
       <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
4
       <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
5
+          <!--<div class="printTitle">{{orgname}}处方笺</div>-->
6
+          <!--<div class="printTitle" v-if="prescriptions[0].med_type == '1111'">{{orgname}}第一类精神药品处方笺</div>-->
7
+          <!--<div class="printTitle" v-if="prescriptions[0].med_type == '1112'">{{orgname}}第二类精神药品处方笺</div>-->
5
           <div class="printTitle">{{orgname}}处方笺</div>
8
           <div class="printTitle">{{orgname}}处方笺</div>
6
           <div class="infoTitle">
9
           <div class="infoTitle">
7
               <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
10
               <p>姓名:{{item.patient.name?item.patient.name:""}}</p>

+ 5 - 1
src/xt_pages/hospitalStation/template/printOne.vue View File

2
   <div id='prescriptionPrint'>
2
   <div id='prescriptionPrint'>
3
     <div v-for="(item,index) in advicePrint" :key="index">
3
     <div v-for="(item,index) in advicePrint" :key="index">
4
       <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
4
       <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
5
-          <div class="printTitle">{{orgname}}处方笺</div>
5
+          <div class="printTitle" v-if="prescriptions[0].med_type == '1111'">{{orgname}}第一类精神药品处方笺</div>
6
+          <div class="printTitle" v-if="prescriptions[0].med_type == '1112'">{{orgname}}第二类精神药品处方笺</div>
7
+          <div class="printTitle" v-else>{{orgname}}处方笺</div>
8
+
9
+
6
           <div class="infoTitle">
10
           <div class="infoTitle">
7
               <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
11
               <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
8
               <p>性别:
12
               <p>性别:

+ 64 - 58
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

588
         //   { value: '18', label: '预防接种' },
588
         //   { value: '18', label: '预防接种' },
589
         //   { value: '19', label: '门诊输血' },
589
         //   { value: '19', label: '门诊输血' },
590
         //   { value: '91', label: '新冠肺炎门诊' },
590
         //   { value: '91', label: '新冠肺炎门诊' },
591
-        //   { value: '1111', label: '精一' },
592
-        //   { value: '1112', label: '精二' }
591
+
593
         // ],
592
         // ],
594
 
593
 
595
         register: [
594
         register: [
597
           // { value: 12, label: '门诊挂号' },
596
           // { value: 12, label: '门诊挂号' },
598
           // { value: 13, label: '急诊' },
597
           // { value: 13, label: '急诊' },
599
           { value: 14, label: '门诊特殊病' },
598
           { value: 14, label: '门诊特殊病' },
599
+          { value: '1111', label: '精一' },
600
+          { value: '1112', label: '精二' }
600
           // { value: 15, label: '门诊统筹' },
601
           // { value: 15, label: '门诊统筹' },
601
           // { value: 16, label: '门诊慢性病' },
602
           // { value: 16, label: '门诊慢性病' },
602
           // { value: 21, label: '普通住院' }
603
           // { value: 21, label: '普通住院' }
1948
             }
1949
             }
1949
           }
1950
           }
1950
 
1951
 
1951
-          if (month_prescriptions[i].addition != null) {
1952
-            for (let b = 0; b < month_prescriptions[i].addition.length; b++) {
1953
-              total = parseFloat(total) + parseFloat(month_prescriptions[i].addition[a].price * month_prescriptions[i].addition[b].count)
1954
-            }
1955
-          }
1952
+          // if (month_prescriptions[i].addition != null) {
1953
+          //   for (let b = 0; b < month_prescriptions[i].addition.length; b++) {
1954
+          //     total = parseFloat(total) + parseFloat(month_prescriptions[i].addition[a].price * month_prescriptions[i].addition[b].count)
1955
+          //   }
1956
+          // }
1956
         }
1957
         }
1957
         return total.toFixed(2)
1958
         return total.toFixed(2)
1958
       },
1959
       },
3044
           }
3045
           }
3045
           let project_ids = []
3046
           let project_ids = []
3046
 
3047
 
3047
-          let additions_ids = []
3048
-          let addition_month_prescriptions = {
3049
-            addition: []
3050
-
3051
-          }
3048
+          // let additions_ids = []
3049
+          // let addition_month_prescriptions = {
3050
+          //   addition: []
3051
+          //
3052
+          // }
3052
           for (let i = 0; i < month_prescriptions.length; i++) {
3053
           for (let i = 0; i < month_prescriptions.length; i++) {
3053
             if (big_prescriptions[c].med_type == month_prescriptions[i].med_type) {
3054
             if (big_prescriptions[c].med_type == month_prescriptions[i].med_type) {
3054
 
3055
 
3075
                 }
3076
                 }
3076
               }
3077
               }
3077
               //附加收费
3078
               //附加收费
3078
-              for (let a = 0; a < month_prescriptions[i].addition.length; a++) {
3079
-                let obj = {
3080
-                  id: month_prescriptions[i].addition[a].item_id,
3081
-                  price: month_prescriptions[i].addition[a].price
3082
-
3083
-                }
3084
-                additions_ids.push(obj)
3085
-                addition_month_prescriptions.addition.push(month_prescriptions[i].addition[a])
3086
-
3087
-              }
3079
+              // for (let a = 0; a < month_prescriptions[i].addition.length; a++) {
3080
+              //   let obj = {
3081
+              //     id: month_prescriptions[i].addition[a].item_id,
3082
+              //     price: month_prescriptions[i].addition[a].price
3083
+              //
3084
+              //   }
3085
+              //   additions_ids.push(obj)
3086
+              //   addition_month_prescriptions.addition.push(month_prescriptions[i].addition[a])
3087
+              //
3088
+              // }
3088
               big_prescriptions[c]['drug_ids'] = []
3089
               big_prescriptions[c]['drug_ids'] = []
3089
               big_prescriptions[c]['project_ids'] = []
3090
               big_prescriptions[c]['project_ids'] = []
3090
-              big_prescriptions[c]['additions_ids'] = []
3091
+              // big_prescriptions[c]['additions_ids'] = []
3091
               big_prescriptions[c]['drug_month_prescriptions'] = []
3092
               big_prescriptions[c]['drug_month_prescriptions'] = []
3092
               big_prescriptions[c]['project_month_prescriptions'] = []
3093
               big_prescriptions[c]['project_month_prescriptions'] = []
3093
-              big_prescriptions[c]['addition_month_prescriptions'] = []
3094
+              // big_prescriptions[c]['addition_month_prescriptions'] = []
3094
 
3095
 
3095
               big_prescriptions[c]['drug_ids'] = drug_ids
3096
               big_prescriptions[c]['drug_ids'] = drug_ids
3096
               big_prescriptions[c]['project_ids'] = project_ids
3097
               big_prescriptions[c]['project_ids'] = project_ids
3097
-              big_prescriptions[c]['additions_ids'] = additions_ids
3098
+              // big_prescriptions[c]['additions_ids'] = additions_ids
3098
 
3099
 
3099
               big_prescriptions[c]['drug_month_prescriptions'] = drug_month_prescriptions
3100
               big_prescriptions[c]['drug_month_prescriptions'] = drug_month_prescriptions
3100
               big_prescriptions[c]['project_month_prescriptions'] = project_month_prescriptions
3101
               big_prescriptions[c]['project_month_prescriptions'] = project_month_prescriptions
3101
-              big_prescriptions[c]['addition_month_prescriptions'] = addition_month_prescriptions
3102
+              // big_prescriptions[c]['addition_month_prescriptions'] = addition_month_prescriptions
3102
               big_prescriptions[c]['order'] = month_prescriptions[i].order
3103
               big_prescriptions[c]['order'] = month_prescriptions[i].order
3103
             }
3104
             }
3104
           }
3105
           }
3109
         for (let y = 0; y < big_prescriptions.length; y++) {
3110
         for (let y = 0; y < big_prescriptions.length; y++) {
3110
           let drug_ids = this.unique_two(big_prescriptions[y].drug_ids)
3111
           let drug_ids = this.unique_two(big_prescriptions[y].drug_ids)
3111
           let project_ids = this.unique_two(big_prescriptions[y].project_ids)
3112
           let project_ids = this.unique_two(big_prescriptions[y].project_ids)
3112
-          let additions_ids = this.unique_two(big_prescriptions[y].additions_ids)
3113
+          // let additions_ids = this.unique_two(big_prescriptions[y].additions_ids)
3113
 
3114
 
3114
           let drugs = []
3115
           let drugs = []
3115
           let projects = []
3116
           let projects = []
3116
-          let additions = []
3117
+          // let additions = []
3117
 
3118
 
3118
           for (let i = 0; i < drug_ids.length; i++) {
3119
           for (let i = 0; i < drug_ids.length; i++) {
3119
             let obj = {}
3120
             let obj = {}
3176
             projects.push(obj)
3177
             projects.push(obj)
3177
           }
3178
           }
3178
 
3179
 
3179
-          for (let i = 0; i < additions_ids.length; i++) {
3180
-            let obj = {}
3181
-            let count = 0
3182
-            if (big_prescriptions[y].addition_month_prescriptions.addition) {
3183
-              for (let a = 0; a < big_prescriptions[y].addition_month_prescriptions.addition.length; a++) {
3184
-                if (additions_ids[i].price == big_prescriptions[y].addition_month_prescriptions.addition[a].price && additions_ids[i].id == big_prescriptions[y].addition_month_prescriptions.addition[a].item_id) {
3185
-                  obj['item_name'] = big_prescriptions[y].addition_month_prescriptions.addition[a].item_name
3186
-                  obj['id'] = big_prescriptions[y].addition_month_prescriptions.addition[a].id
3187
-                  obj['item_id'] = big_prescriptions[y].addition_month_prescriptions.addition[a].item_id
3188
-                  count = count + big_prescriptions[y].addition_month_prescriptions.addition[a].count
3189
-                  obj['price'] = parseFloat(big_prescriptions[y].addition_month_prescriptions.addition[a].price)
3190
-                }
3191
-              }
3192
-              obj['count'] = count
3193
-              additions.push(obj)
3194
-            }
3195
-          }
3180
+          // for (let i = 0; i < additions_ids.length; i++) {
3181
+          //   let obj = {}
3182
+          //   let count = 0
3183
+          //   if (big_prescriptions[y].addition_month_prescriptions.addition) {
3184
+          //     for (let a = 0; a < big_prescriptions[y].addition_month_prescriptions.addition.length; a++) {
3185
+          //       if (additions_ids[i].price == big_prescriptions[y].addition_month_prescriptions.addition[a].price && additions_ids[i].id == big_prescriptions[y].addition_month_prescriptions.addition[a].item_id) {
3186
+          //         obj['item_name'] = big_prescriptions[y].addition_month_prescriptions.addition[a].item_name
3187
+          //         obj['id'] = big_prescriptions[y].addition_month_prescriptions.addition[a].id
3188
+          //         obj['item_id'] = big_prescriptions[y].addition_month_prescriptions.addition[a].item_id
3189
+          //         count = count + big_prescriptions[y].addition_month_prescriptions.addition[a].count
3190
+          //         obj['price'] = parseFloat(big_prescriptions[y].addition_month_prescriptions.addition[a].price)
3191
+          //       }
3192
+          //     }
3193
+          //     obj['count'] = count
3194
+          //     additions.push(obj)
3195
+          //   }
3196
+          // }
3196
 
3197
 
3197
           let p1 = {
3198
           let p1 = {
3198
             name: this.getPName(big_prescriptions[y].med_type, 1),
3199
             name: this.getPName(big_prescriptions[y].med_type, 1),
3199
             advices: drugs,
3200
             advices: drugs,
3200
             project: [],
3201
             project: [],
3201
             type: 1,
3202
             type: 1,
3202
-            addition: additions,
3203
+            // addition: additions,
3203
             order: big_prescriptions[y].order
3204
             order: big_prescriptions[y].order
3204
           }
3205
           }
3205
           let p2 = {
3206
           let p2 = {
3207
             type: 2,
3208
             type: 2,
3208
             project: projects,
3209
             project: projects,
3209
             advices: [],
3210
             advices: [],
3210
-            addition: [],
3211
+            // addition: [],
3211
             order: big_prescriptions[y].order
3212
             order: big_prescriptions[y].order
3212
 
3213
 
3213
           }
3214
           }
3257
             break
3258
             break
3258
           case 21:
3259
           case 21:
3259
             return '普通住院' + '处方' + index
3260
             return '普通住院' + '处方' + index
3260
-
3261
+            break
3262
+          case 1111:
3263
+            return '精一' + '处方' + index
3264
+            break
3265
+          case 1112:
3266
+            return '精二' + '处方' + index
3261
             break
3267
             break
3262
         }
3268
         }
3263
       }, unique_four(array) {
3269
       }, unique_four(array) {
3480
                       tempProject.push(obj)
3486
                       tempProject.push(obj)
3481
                     }
3487
                     }
3482
 
3488
 
3483
-                    for (let b = 0; b < prescription.addition.length; b++) {
3484
-                      const obj = {
3485
-                        id: prescription.addition[b].id,
3486
-                        item_name: prescription.addition[b].item_name,
3487
-                        price: prescription.addition[b].price,
3488
-                        count: prescription.addition[b].count,
3489
-                        item_id: prescription.addition[b].item_id
3490
-                      }
3491
-                      tempAddition.push(obj)
3492
-                    }
3489
+                    // for (let b = 0; b < prescription.addition.length; b++) {
3490
+                    //   const obj = {
3491
+                    //     id: prescription.addition[b].id,
3492
+                    //     item_name: prescription.addition[b].item_name,
3493
+                    //     price: prescription.addition[b].price,
3494
+                    //     count: prescription.addition[b].count,
3495
+                    //     item_id: prescription.addition[b].item_id
3496
+                    //   }
3497
+                    //   tempAddition.push(obj)
3498
+                    // }
3493
                     const index = i + 1
3499
                     const index = i + 1
3494
                     console.log('~~~~~~~~')
3500
                     console.log('~~~~~~~~')
3495
                     console.log(prescription.order)
3501
                     console.log(prescription.order)

+ 34 - 36
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

532
         end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
532
         end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
533
         register: [
533
         register: [
534
           { value: 11, label: '普通门诊' },
534
           { value: 11, label: '普通门诊' },
535
-          // { value: 12, label: '门诊挂号' },
536
-          // { value: 13, label: '急诊' },
537
-          { value: 14, label: '门诊特殊病' }
538
-          // { value: 15, label: '门诊统筹' },
539
-          // { value: 16, label: '门诊慢性病' },
540
-          // { value: 21, label: '普通住院' }
535
+          { value: 14, label: '门诊特殊病' },
536
+          { value: 1111, label: '精一' },
537
+          { value: 1112, label: '精二' }
538
+
541
 
539
 
542
         ],
540
         ],
543
         medical_care: [
541
         medical_care: [
710
             }
708
             }
711
           }
709
           }
712
           //附加收费
710
           //附加收费
713
-          for (let a = 0; a < month_prescriptions[i].addition.length; a++) {
714
-            let obj = {
715
-              id: month_prescriptions[i].addition[a].item_id,
716
-              price: month_prescriptions[i].addition[a].price
717
-
718
-            }
719
-            additions_ids.push(obj)
720
-            addition_month_prescriptions.addition.push(month_prescriptions[i].addition[a])
721
-
722
-          }
711
+          // for (let a = 0; a < month_prescriptions[i].addition.length; a++) {
712
+          //   let obj = {
713
+          //     id: month_prescriptions[i].addition[a].item_id,
714
+          //     price: month_prescriptions[i].addition[a].price
715
+          //
716
+          //   }
717
+          //   additions_ids.push(obj)
718
+          //   addition_month_prescriptions.addition.push(month_prescriptions[i].addition[a])
719
+          //
720
+          // }
723
 
721
 
724
         }
722
         }
725
 
723
 
1127
                   }
1125
                   }
1128
 
1126
 
1129
                   //附加收费
1127
                   //附加收费
1130
-                  for (let b = 0; b < prescription.addition.length; b++) {
1131
-                    let obj = {
1132
-                      id: prescription.addition[b].id,
1133
-                      item_name: prescription.addition[b].item_name,
1134
-                      price: prescription.addition[b].price,
1135
-                      count: prescription.addition[b].count,
1136
-                      item_id: prescription.addition[b].item_id
1137
-                    }
1138
-                    tempAddition.push(obj)
1139
-                  }
1128
+                  // for (let b = 0; b < prescription.addition.length; b++) {
1129
+                  //   let obj = {
1130
+                  //     id: prescription.addition[b].id,
1131
+                  //     item_name: prescription.addition[b].item_name,
1132
+                  //     price: prescription.addition[b].price,
1133
+                  //     count: prescription.addition[b].count,
1134
+                  //     item_id: prescription.addition[b].item_id
1135
+                  //   }
1136
+                  //   tempAddition.push(obj)
1137
+                  // }
1140
 
1138
 
1141
                   let index = i + 1
1139
                   let index = i + 1
1142
                   let obj = {
1140
                   let obj = {
1248
                   }
1246
                   }
1249
 
1247
 
1250
                   //附加收费
1248
                   //附加收费
1251
-                  for (let b = 0; b < prescription.addition.length; b++) {
1252
-                    let obj = {
1253
-                      id: prescription.addition[b].id,
1254
-                      item_name: prescription.addition[b].item_name,
1255
-                      price: prescription.addition[b].price,
1256
-                      count: prescription.addition[b].count,
1257
-                      item_id: prescription.addition[b].item_id
1258
-                    }
1259
-                    tempAddition.push(obj)
1260
-                  }
1249
+                  // for (let b = 0; b < prescription.addition.length; b++) {
1250
+                  //   let obj = {
1251
+                  //     id: prescription.addition[b].id,
1252
+                  //     item_name: prescription.addition[b].item_name,
1253
+                  //     price: prescription.addition[b].price,
1254
+                  //     count: prescription.addition[b].count,
1255
+                  //     item_id: prescription.addition[b].item_id
1256
+                  //   }
1257
+                  //   tempAddition.push(obj)
1258
+                  // }
1261
 
1259
 
1262
                   let index = i + 1
1260
                   let index = i + 1
1263
                   let obj = {
1261
                   let obj = {

+ 72 - 72
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

879
             }
879
             }
880
           }
880
           }
881
           //附加收费
881
           //附加收费
882
-          for (let a = 0; a < month_prescriptions[i].addition.length; a++) {
883
-            let obj = {
884
-              id: month_prescriptions[i].addition[a].item_id,
885
-              price: month_prescriptions[i].addition[a].price
886
-
887
-            }
888
-            additions_ids.push(obj)
889
-            addition_month_prescriptions.addition.push(month_prescriptions[i].addition[a])
890
-          }
882
+          // for (let a = 0; a < month_prescriptions[i].addition.length; a++) {
883
+          //   let obj = {
884
+          //     id: month_prescriptions[i].addition[a].item_id,
885
+          //     price: month_prescriptions[i].addition[a].price
886
+          //
887
+          //   }
888
+          //   additions_ids.push(obj)
889
+          //   addition_month_prescriptions.addition.push(month_prescriptions[i].addition[a])
890
+          // }
891
         }
891
         }
892
 
892
 
893
         const obj = {}
893
         const obj = {}
1193
             }
1193
             }
1194
             this.drugs = drugs
1194
             this.drugs = drugs
1195
             console.log("五一劳动节2332323322332",this.drugs)
1195
             console.log("五一劳动节2332323322332",this.drugs)
1196
-          
1196
+
1197
             this.allDrugs = response.data.data.drugs
1197
             this.allDrugs = response.data.data.drugs
1198
             this.advices_template = response.data.data.advices_template
1198
             this.advices_template = response.data.data.advices_template
1199
 
1199
 
1470
                 }
1470
                 }
1471
 
1471
 
1472
                 //附加收费
1472
                 //附加收费
1473
-                for (let b = 0; b < prescription.addition.length; b++) {
1474
-                  let obj = {
1475
-                    id: prescription.addition[b].id,
1476
-                    item_name: prescription.addition[b].item_name,
1477
-                    price: prescription.addition[b].price,
1478
-                    count: prescription.addition[b].count,
1479
-                    item_id: prescription.addition[b].item_id
1480
-                  }
1481
-                  tempAddition.push(obj)
1482
-                }
1473
+                // for (let b = 0; b < prescription.addition.length; b++) {
1474
+                //   let obj = {
1475
+                //     id: prescription.addition[b].id,
1476
+                //     item_name: prescription.addition[b].item_name,
1477
+                //     price: prescription.addition[b].price,
1478
+                //     count: prescription.addition[b].count,
1479
+                //     item_id: prescription.addition[b].item_id
1480
+                //   }
1481
+                //   tempAddition.push(obj)
1482
+                // }
1483
 
1483
 
1484
                 var preTime = ''
1484
                 var preTime = ''
1485
 
1485
 
1867
                       }
1867
                       }
1868
 
1868
 
1869
                       //附加收费
1869
                       //附加收费
1870
-                      for (let b = 0; b < prescription.addition.length; b++) {
1871
-                        let obj = {
1872
-                          id: prescription.addition[b].id,
1873
-                          item_name: prescription.addition[b].item_name,
1874
-                          price: prescription.addition[b].price,
1875
-                          count: prescription.addition[b].count,
1876
-                          item_id: prescription.addition[b].item_id
1877
-                        }
1878
-                        tempAddition.push(obj)
1879
-                      }
1870
+                      // for (let b = 0; b < prescription.addition.length; b++) {
1871
+                      //   let obj = {
1872
+                      //     id: prescription.addition[b].id,
1873
+                      //     item_name: prescription.addition[b].item_name,
1874
+                      //     price: prescription.addition[b].price,
1875
+                      //     count: prescription.addition[b].count,
1876
+                      //     item_id: prescription.addition[b].item_id
1877
+                      //   }
1878
+                      //   tempAddition.push(obj)
1879
+                      // }
1880
 
1880
 
1881
                       var preTime = ''
1881
                       var preTime = ''
1882
 
1882
 
2366
                       }
2366
                       }
2367
 
2367
 
2368
                       //附加收费
2368
                       //附加收费
2369
-                      for (let b = 0; b < prescription.addition.length; b++) {
2370
-                        let obj = {
2371
-                          id: prescription.addition[b].id,
2372
-                          item_name: prescription.addition[b].item_name,
2373
-                          price: prescription.addition[b].price,
2374
-                          count: prescription.addition[b].count,
2375
-                          item_id: prescription.addition[b].item_id
2376
-                        }
2377
-                        tempAddition.push(obj)
2378
-                      }
2369
+                      // for (let b = 0; b < prescription.addition.length; b++) {
2370
+                      //   let obj = {
2371
+                      //     id: prescription.addition[b].id,
2372
+                      //     item_name: prescription.addition[b].item_name,
2373
+                      //     price: prescription.addition[b].price,
2374
+                      //     count: prescription.addition[b].count,
2375
+                      //     item_id: prescription.addition[b].item_id
2376
+                      //   }
2377
+                      //   tempAddition.push(obj)
2378
+                      // }
2379
 
2379
 
2380
                       var preTime = ''
2380
                       var preTime = ''
2381
 
2381
 
2844
                     }
2844
                     }
2845
 
2845
 
2846
                     //附加收费
2846
                     //附加收费
2847
-                    for (let b = 0; b < prescription.addition.length; b++) {
2848
-                      let obj = {
2849
-                        id: prescription.addition[b].id,
2850
-                        item_name: prescription.addition[b].item_name,
2851
-                        price: prescription.addition[b].price,
2852
-                        count: prescription.addition[b].count,
2853
-                        item_id: prescription.addition[b].item_id
2854
-                      }
2855
-                      tempAddition.push(obj)
2856
-                    }
2847
+                    // for (let b = 0; b < prescription.addition.length; b++) {
2848
+                    //   let obj = {
2849
+                    //     id: prescription.addition[b].id,
2850
+                    //     item_name: prescription.addition[b].item_name,
2851
+                    //     price: prescription.addition[b].price,
2852
+                    //     count: prescription.addition[b].count,
2853
+                    //     item_id: prescription.addition[b].item_id
2854
+                    //   }
2855
+                    //   tempAddition.push(obj)
2856
+                    // }
2857
 
2857
 
2858
                     var preTime = ''
2858
                     var preTime = ''
2859
 
2859
 
3382
                       }
3382
                       }
3383
 
3383
 
3384
                       //附加收费
3384
                       //附加收费
3385
-                      for (let b = 0; b < prescription.addition.length; b++) {
3386
-                        let obj = {
3387
-                          id: prescription.addition[b].id,
3388
-                          item_name: prescription.addition[b].item_name,
3389
-                          price: prescription.addition[b].price,
3390
-                          count: prescription.addition[b].count,
3391
-                          item_id: prescription.addition[b].item_id
3392
-                        }
3393
-                        tempAddition.push(obj)
3394
-                      }
3385
+                      // for (let b = 0; b < prescription.addition.length; b++) {
3386
+                      //   let obj = {
3387
+                      //     id: prescription.addition[b].id,
3388
+                      //     item_name: prescription.addition[b].item_name,
3389
+                      //     price: prescription.addition[b].price,
3390
+                      //     count: prescription.addition[b].count,
3391
+                      //     item_id: prescription.addition[b].item_id
3392
+                      //   }
3393
+                      //   tempAddition.push(obj)
3394
+                      // }
3395
 
3395
 
3396
                       var preTime = ''
3396
                       var preTime = ''
3397
 
3397
 
3950
                       }
3950
                       }
3951
 
3951
 
3952
                       //附加收费
3952
                       //附加收费
3953
-                      for (let b = 0; b < prescription.addition.length; b++) {
3954
-                        let obj = {
3955
-                          id: prescription.addition[b].id,
3956
-                          item_name: prescription.addition[b].item_name,
3957
-                          price: prescription.addition[b].price,
3958
-                          count: prescription.addition[b].count,
3959
-                          item_id: prescription.addition[b].item_id
3960
-                        }
3961
-                        tempAddition.push(obj)
3962
-                      }
3953
+                      // for (let b = 0; b < prescription.addition.length; b++) {
3954
+                      //   let obj = {
3955
+                      //     id: prescription.addition[b].id,
3956
+                      //     item_name: prescription.addition[b].item_name,
3957
+                      //     price: prescription.addition[b].price,
3958
+                      //     count: prescription.addition[b].count,
3959
+                      //     item_id: prescription.addition[b].item_id
3960
+                      //   }
3961
+                      //   tempAddition.push(obj)
3962
+                      // }
3963
 
3963
 
3964
                       var preTime = ''
3964
                       var preTime = ''
3965
 
3965
 
4623
       // this.other_sick = this.getDictionaryDataConfig('system', 'other_sick_history')
4623
       // this.other_sick = this.getDictionaryDataConfig('system', 'other_sick_history')
4624
       let tableHeight = document.body.clientHeight - 263
4624
       let tableHeight = document.body.clientHeight - 263
4625
       this.tableHeight = tableHeight
4625
       this.tableHeight = tableHeight
4626
-      this.org_id = this.$store.getters.xt_user.template_info.org_id 
4627
-     
4626
+      this.org_id = this.$store.getters.xt_user.template_info.org_id
4627
+
4628
     },
4628
     },
4629
 
4629
 
4630
     mounted() {
4630
     mounted() {

+ 4 - 1
src/xt_pages/outpatientDoctorStation/template/printOne.vue View File

2
   <div id='prescriptionPrint'>
2
   <div id='prescriptionPrint'>
3
     <div v-for="(item,index) in advicePrint" :key="index">
3
     <div v-for="(item,index) in advicePrint" :key="index">
4
       <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
4
       <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
5
-          <div class="printTitle">{{orgname}}处方笺</div>
5
+          <div class="printTitle" v-if="prescriptions[0].med_type == '1111'">{{orgname}}第一类精神处方笺</div>
6
+          <div class="printTitle"  v-if="prescriptions[0].med_type == '1112'">{{orgname}}第二类精神处方笺</div>
7
+          <div class="printTitle" v-if="prescriptions[0].med_type != '1111' && prescriptions[0].med_type != '1112'">{{orgname}}处方笺</div>
8
+          <!--<div class="printTitle">{{orgname}}处方笺</div>-->
6
           <div class="infoTitle">
9
           <div class="infoTitle">
7
               <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
10
               <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
8
               <p>性别:
11
               <p>性别:

+ 2 - 1
src/xt_pages/qcd/treatmentControlAnalysis/components/TimePersonal.vue View File

469
          this.DialysisData[i].index = i+1
469
          this.DialysisData[i].index = i+1
470
          this.DialysisData[i].dialysis_mode = this.getModeIdCount(this.DialysisData[i].patient_id)
470
          this.DialysisData[i].dialysis_mode = this.getModeIdCount(this.DialysisData[i].patient_id)
471
          this.DialysisData[i].age = this.getAge(this.DialysisData[i].id_card_no)
471
          this.DialysisData[i].age = this.getAge(this.DialysisData[i].id_card_no)
472
+         this.DialysisData[i].total_count = this.getDialysisCount(this.DialysisData[i].patient_id)
472
        }
473
        }
473
        import('@/vendor/Export2Excel').then(excel => {
474
        import('@/vendor/Export2Excel').then(excel => {
474
         const tHeader = ['序号','姓名', '年龄', '透析号','透析模式','透析总次数']
475
         const tHeader = ['序号','姓名', '年龄', '透析号','透析模式','透析总次数']
475
-        const filterVal = ['index','name', 'age', 'dialysis_no','dialysis_mode','total_dialysis']
476
+        const filterVal = ['index','name', 'age', 'dialysis_no','dialysis_mode','total_count']
476
         
477
         
477
         const data = this.formatJson(filterVal, this.DialysisData)
478
         const data = this.formatJson(filterVal, this.DialysisData)
478
        
479
        

+ 11 - 2
src/xt_pages/stock/Dialog/goodInfoDailog.vue View File

45
               </el-select>
45
               </el-select>
46
             </el-form-item>
46
             </el-form-item>
47
 
47
 
48
-           
49
-        
48
+
49
+
50
             <el-form-item label="规格型号 : " prop="specification_name">
50
             <el-form-item label="规格型号 : " prop="specification_name">
51
               <el-input v-model="form.specification_name" placeholder="" maxlength="30"></el-input>
51
               <el-input v-model="form.specification_name" placeholder="" maxlength="30"></el-input>
52
             </el-form-item>
52
             </el-form-item>
191
            </el-form-item>
191
            </el-form-item>
192
 
192
 
193
 
193
 
194
+            <el-form-item label="注册编码:" >
195
+              <el-input v-model="form.register_number" style="width:180px"></el-input>
196
+            </el-form-item>
197
+
198
+
199
+
194
             <el-form-item label="备注 : " prop="name" style="width:100%;">
200
             <el-form-item label="备注 : " prop="name" style="width:100%;">
195
               <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.remark"></el-input>
201
               <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.remark"></el-input>
196
             </el-form-item>
202
             </el-form-item>
359
           default_count_unit:"",
365
           default_count_unit:"",
360
           min_unit:"",
366
           min_unit:"",
361
           total:"",
367
           total:"",
368
+          register_number:"",
362
         },
369
         },
363
 
370
 
364
         rules: {
371
         rules: {
576
         form["packing_price"] = this.form.packing_price
583
         form["packing_price"] = this.form.packing_price
577
         form["default_count_unit"] = this.form.default_count_unit
584
         form["default_count_unit"] = this.form.default_count_unit
578
         form["total"] = this.form.total
585
         form["total"] = this.form.total
586
+        form["register_number"] = this.form.register_number
587
+
579
 
588
 
580
         return form
589
         return form
581
       }, changeSelected: function(val) {
590
       }, changeSelected: function(val) {

+ 4 - 2
src/xt_pages/stock/drugs/inventoryDetails.vue View File

18
                 >搜索</el-button
18
                 >搜索</el-button
19
                 >
19
                 >
20
             </div>
20
             </div>
21
+            <div>
22
+               <el-button size="small" type="primary" @click="print">盘点模版打印</el-button>
23
+            </div>
21
             <!-- <div>
24
             <!-- <div>
22
                 <el-button size="small" type="primary" @click="print">打印</el-button>
25
                 <el-button size="small" type="primary" @click="print">打印</el-button>
23
                 <el-button size="small" type="primary">导出</el-button>
26
                 <el-button size="small" type="primary">导出</el-button>
122
           this.getlist()
125
           this.getlist()
123
         },
126
         },
124
         print(){
127
         print(){
125
-            this.$router.push({path:'/stock/drugs/inventoryPrint'})
126
-            
128
+            this.$router.push({path:'/stock/drugs/inventoryPrint'}) 
127
         },
129
         },
128
         handleSizeChange(val){
130
         handleSizeChange(val){
129
          this.limit = val
131
          this.limit = val

+ 53 - 38
src/xt_pages/stock/drugs/inventoryPrint.vue View File

10
         </div>
10
         </div>
11
         <div class="app-container" style="background-color: white;">
11
         <div class="app-container" style="background-color: white;">
12
             <div id="print_content">
12
             <div id="print_content">
13
-                <div class="printTitle">库存盘点核单数</div>
14
-                <div style="float:right;">调价日期:</div>
13
+               
15
                 <table class="printTable" border="1">
14
                 <table class="printTable" border="1">
16
                     <tr>
15
                     <tr>
17
                         <td>序号</td>
16
                         <td>序号</td>
18
-                        <td>药品名称</td>
17
+                        <td>名称</td>
19
                         <td>规格</td>
18
                         <td>规格</td>
19
+                        <td>批号</td>
20
+                        <td>生产日期</td>
21
+                        <td>有效日期</td>
22
+                        <td>生产企业</td>
23
+                        <td>国药准字</td>
20
                         <td>单位</td>
24
                         <td>单位</td>
21
-                        <td>零售价</td>
22
-                        <td>当前库存</td>
23
-                        <td>盘点数</td>
24
-                        <td>亏损金额</td>
25
+                        <td>库存量</td>
25
                     </tr>
26
                     </tr>
26
                     <tr v-for="(item,index) in tableData" :key="index">
27
                     <tr v-for="(item,index) in tableData" :key="index">
27
                         <td>{{index+1}}</td>
28
                         <td>{{index+1}}</td>
28
                         <td>{{item.drug_name}}</td>
29
                         <td>{{item.drug_name}}</td>
29
-                        <td>{{item.warehouseing_unit}}</td>
30
-                        <td>{{item.retail_price}}</td>
31
-                        <td>{{item.total}}</td>
32
-                        <td>{{item.count}}</td>
33
-                        <td></td>       
30
+                        <td>{{item.specification_name}}</td>
31
+                        <td>{{item.batch_number}}</td>
32
+                        <td>{{getTime(item.product_date)}}</td>
33
+                        <td>{{getTime(item.product_date)}}</td>
34
+                        <td>{{getManufacturerName(item.manufacturer)}}</td>
35
+                        <td>{{item.number}}</td>
36
+                        <td>{{item.max_unit}}</td>  
37
+                        <td></td>     
34
                     </tr>
38
                     </tr>
35
                 </table>
39
                 </table>
36
-                <div style="margin-top:10px;">
37
-                    <span>合计:库存金额</span>
38
-                    <span>    库存盘点金额:亏损总计</span>
39
-                </div>
40
-                <div style="display:flex;float:right;margin-top:10px;border-top:1px solid #000;padding-top:10px;width:100%;">
41
-                    <div style="width:80px;">审批:</div><div style="width:100px;"></div>
42
-                    <div style="width:100px;">药材主任:</div><div style="width:60px;"></div>
43
-                    <div style="width:50px;">会计:</div><div style="width:100px;"></div>
44
-                    <div style="width:50px;">审核:</div><div style="width:100px;"></div>
45
-                    <div style="width:70px;">制单人:</div><div style="width:100px;"></div>
46
-                </div>
40
+              
47
             </div>
41
             </div>
48
         </div>
42
         </div>
49
     </div>
43
     </div>
53
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
47
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
54
 const moment = require('moment');
48
 const moment = require('moment');
55
 import { uParseTime } from '@/utils/tools'
49
 import { uParseTime } from '@/utils/tools'
56
-import { getDrugInventoryPrintList } from "@/api/drug/drug"
50
+import { getInventoryModeList } from "@/api/drug/drug"
57
 export default {
51
 export default {
58
     components:{
52
     components:{
59
         BreadCrumb
53
         BreadCrumb
66
             { path: false, name: '药品盘点打印' },
60
             { path: false, name: '药品盘点打印' },
67
           ],
61
           ],
68
           ids:"",
62
           ids:"",
69
-          tableData:[]
63
+          tableData:[],
64
+          manufacturerList:[],
70
         }
65
         }
71
     },
66
     },
72
     methods:{
67
     methods:{
80
             scanStyles: false
75
             scanStyles: false
81
             })
76
             })
82
         },
77
         },
83
-        getDrugInventoryPrintList(ids){
84
-             var params = {
85
-                 ids:ids,
78
+        getlist(){
79
+          getInventoryModeList().then(response=>{
80
+             if(response.data.state == 1){
81
+               var list = response.data.data.list
82
+               console.log("list23232323",list)
83
+               this.manufacturerList = response.data.data.manufacturerList
84
+               for(let i=0;i<list.length;i++){
85
+                 list[i].specification_name = ""
86
+                 list[i].specification_name = list[i].dose +list[i].dose_unit+"*"+list[i].min_number+ list[i].min_unit+"/"+list[i].max_unit
87
+               }
88
+               this.tableData = list
86
              }
89
              }
87
-          console.log("parasm2232",params)
88
-          getDrugInventoryPrintList(params).then(response=>{
89
-              if(response.data.state == 1){
90
-                 this.tableData = response.data.data.list
91
-              }
92
-          })    
90
+          })
91
+        },
92
+     getTime(val) {
93
+         if(val < 0){
94
+           return ""
95
+         }
96
+         if(val == ""){
97
+          return ""
98
+         }else {
99
+          return uParseTime(val, '{y}-{m}-{d}')
100
+         }
101
+      },
102
+      getManufacturerName(id){
103
+        var name = ""
104
+        for(let i=0;i<this.manufacturerList.length;i++){
105
+          if(id == this.manufacturerList[i].id){
106
+             name = this.manufacturerList[i].manufacturer_name
107
+          }
108
+          return name
93
         }
109
         }
94
-
95
-    },
110
+      }
111
+     },
96
     created(){
112
     created(){
97
-      this.ids = this.$route.query.ids
98
-      this.getDrugInventoryPrintList(this.ids)
113
+      this.getlist()
99
     }
114
     }
100
 }
115
 }
101
 </script>
116
 </script>

+ 1 - 1
src/xt_pages/stock/inventoryPrint.vue View File

33
                         <td>{{getTime(item.expiry_date)}}</td>
33
                         <td>{{getTime(item.expiry_date)}}</td>
34
                         <td>{{getManufacturerName(item.manufacturer)}}</td>
34
                         <td>{{getManufacturerName(item.manufacturer)}}</td>
35
                         <td>{{item.remark}}</td>
35
                         <td>{{item.remark}}</td>
36
-                        <td>{{item.warehousing_unit}}</td>
36
+                        <td>{{item.packing_unit}}</td>
37
                         <td></td>
37
                         <td></td>
38
                     </tr>
38
                     </tr>
39
                 </table>
39
                 </table>

+ 3 - 1
src/xt_pages/user/doctorAdvice.vue View File

4355
     },
4355
     },
4356
     // 获取勾选中的行
4356
     // 获取勾选中的行
4357
     getPrintInfo(ids) {
4357
     getPrintInfo(ids) {
4358
-      getPrintInfo({ ids: ids}).then(response => {
4358
+      console.log("23332332323232",this.adviceType,"33333333",this.stopType)
4359
+     
4360
+      getPrintInfo({ids:ids},this.adviceType,this.stopType).then(response => {
4359
         if (response.data.state === 1) {
4361
         if (response.data.state === 1) {
4360
           var doctoradvice = response.data.data.doctoradvice;
4362
           var doctoradvice = response.data.data.doctoradvice;
4361
           console.log("doctoradvice", doctoradvice);
4363
           console.log("doctoradvice", doctoradvice);

+ 1 - 0
src/xt_pages/user/patients.vue View File

1336
         return new Date(time).getTime() / 1000
1336
         return new Date(time).getTime() / 1000
1337
       },
1337
       },
1338
       search() {
1338
       search() {
1339
+        this.listQuery.limit = 700
1339
         this.listQuery.keywords = this.searchKey
1340
         this.listQuery.keywords = this.searchKey
1340
         this.getList()
1341
         this.getList()
1341
       },
1342
       },

+ 2 - 2
src/xt_pages/workforce/components/nextTableWeeks.vue View File

148
           <span v-if="org_id!=9987" >
148
           <span v-if="org_id!=9987" >
149
              <span v-if="scope.row.dialysissolution.dialyzer_perfusion_apparatus!=''">
149
              <span v-if="scope.row.dialysissolution.dialyzer_perfusion_apparatus!=''">
150
                 <span v-if="org_id!=10131&& org_id !=10215">{{ scope.row.dialysissolution.dialyzer_perfusion_apparatus }}</span>
150
                 <span v-if="org_id!=10131&& org_id !=10215">{{ scope.row.dialysissolution.dialyzer_perfusion_apparatus }}</span>
151
-                <span v-if="org_id==10131 || org_id == 10215">{{getDialysisDialyszerPerfusionOne(scope.row.patient_id,scope.row.mode_id,scope.row.solution)  }}</span>
151
+                <span v-if="org_id==10131 || org_id == 10215">{{scope.row.dialysissolution.dialyzer_perfusion_apparatus}}</span>
152
               
152
               
153
               </span>
153
               </span>
154
-             <span v-if="scope.row.dialysissolution.dialyzer_perfusion_apparatus =='' && scope.row.dialysissolution.length>0 ">{{ getDialysisDialyszerPerfusion(scope.row.patient_id) }}</span>
154
+             <span v-if="scope.row.dialysissolution.dialyzer_perfusion_apparatus =='' && scope.row.dialysissolution.length>0 ">{{ scope.row.dialysissolution.dialysis_dialyszers}}</span>
155
           </span>
155
           </span>
156
           {{scope.row.dialysissolution.dialysis_dialyszers}}
156
           {{scope.row.dialysissolution.dialysis_dialyszers}}
157
          <span v-if="scope.row.dialysissolution.dialysis_dialyszers!='' && scope.row.dialysissolution.dialysis_irrigation!=''">/</span>
157
          <span v-if="scope.row.dialysissolution.dialysis_dialyszers!='' && scope.row.dialysissolution.dialysis_irrigation!=''">/</span>

+ 2 - 2
src/xt_pages/workforce/components/tableWeeks.vue View File

224
                 <span>{{ scope.row.prescription.dialyzer_perfusion_apparatus }}</span>
224
                 <span>{{ scope.row.prescription.dialyzer_perfusion_apparatus }}</span>
225
           </span>
225
           </span>
226
 
226
 
227
-          <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus==''&& scope.row.dialysissolution.id > 0 ">{{getDialysisDialyszerPerfusion(scope.row.patient_id)}}</span>
227
+          <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus==''&& scope.row.dialysissolution.id > 0 ">{{scope.row.dialysissolution.dialysis_dialyszers}}</span>
228
           </span>
228
           </span>
229
-                    <span v-if="org_id==10131 || org_id == 10215 || org_id == 10233">{{getDialysisDialyszerPerfusionOne(scope.row.patient_id,scope.row.mode_id,scope.row.solution)}}</span>
229
+                    <span v-if="org_id==10131 || org_id == 10215 || org_id == 10233">{{scope.row.dialysissolution.dialyzer_perfusion_apparatus}}</span>
230
                     {{scope.row.prescription.dialysis_dialyszers}}
230
                     {{scope.row.prescription.dialysis_dialyszers}}
231
                     <span v-if="scope.row.prescription.dialysis_dialyszers!='' && scope.row.prescription.dialysis_irrigation!=''">/</span>
231
                     <span v-if="scope.row.prescription.dialysis_dialyszers!='' && scope.row.prescription.dialysis_irrigation!=''">/</span>
232
                     <span v-if="scope.row.prescription.dialysis_irrigation!=''">{{scope.row.prescription.dialysis_irrigation}}</span>
232
                     <span v-if="scope.row.prescription.dialysis_irrigation!=''">{{scope.row.prescription.dialysis_irrigation}}</span>

+ 2 - 2
src/xt_pages/workforce/next_remind_print.vue View File

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

+ 2 - 2
src/xt_pages/workforce/remind_print.vue View File

65
                      <span > 
65
                      <span > 
66
                        <span v-if="org_id!=10131 && org_id!=10215 && org_id!=10233 && main_collection.prescription.dialyzer_perfusion_apparatus!=''">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span> 
66
                        <span v-if="org_id!=10131 && org_id!=10215 && org_id!=10233 && main_collection.prescription.dialyzer_perfusion_apparatus!=''">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span> 
67
                      
67
                      
68
-                       <span v-if="org_id==10131 || org_id==9671 || org_id == 10215 || org_id == 10233">{{getDialysisDialyszerPerfusionOne(main_collection.patient_id,main_collection.mode_id,main_collection.solution)}}</span>
68
+                       <span v-if="org_id==10131 || org_id==9671 || org_id == 10215 || org_id == 10233">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span>
69
                       </span>
69
                       </span>
70
-                     <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus ==''&& main_collection.dialysissolution.length>0">{{getDialysisDialyszerPerfusion(main_collection.patient_id)}}</span> 
70
+                     <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus ==''&& main_collection.dialysissolution.length>0">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span> 
71
                   </span>
71
                   </span>
72
                     {{main_collection.prescription.dialysis_dialyszers}}
72
                     {{main_collection.prescription.dialysis_dialyszers}}
73
                   <span v-if="main_collection.prescription.dialysis_dialyszers!=''&& main_collection.prescription.dialysis_irrigation!='' ">/</span>
73
                   <span v-if="main_collection.prescription.dialysis_dialyszers!=''&& main_collection.prescription.dialysis_irrigation!='' ">/</span>