XMLWAN il y a 4 ans
Parent
révision
637d485d71

+ 1 - 1
src/lang/zh.js Voir le fichier

@@ -199,7 +199,7 @@ export default {
199 199
     system_prescription: '透析方案模版',
200 200
     integration_config: '集成配置',
201 201
     his_config: 'HIS集成配置',
202
-
202
+    medical_template:'门诊模版',
203 203
     slow: '慢病管理',
204 204
     scrm: 'SCRM',
205 205
     shop: '分销商城',

+ 8 - 0
src/router/modules/templateManagement.js Voir le fichier

@@ -46,6 +46,14 @@ export default {
46 46
         title: 'histemplate'
47 47
       }
48 48
     },
49
+    {
50
+      path:'/data/medicaltemplate',
51
+      component:() => import('@/xt_pages/data/medicalTemplate'),
52
+      name:'medical_template',
53
+      meta:{
54
+        title:'medical_template'
55
+      }
49 56
 
57
+    },
50 58
   ]
51 59
 }

+ 4 - 1
src/xt_pages/outpatientCharges/treatTemplate/printOne.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
     <div id='prescription-print' class="prescription-print">
3
-        <div class="printTitle">血液透析中心医药费收据及收费项目清单</div>
3
+        <div class="printTitle">{{orgname}}&nbsp;&nbsp; 血液透析中心医药费收据及收费项目清单</div>
4 4
         <div class="infoMain">
5 5
             <p class="infoP">医院(药店)编号:</p>
6 6
             <p class="infoP">名称:血液透析中心</p>
@@ -91,6 +91,7 @@ export default {
91 91
           list:{},
92 92
           prescription:[],
93 93
           patient:{},
94
+          orgname:""
94 95
       } 
95 96
     },
96 97
     methods:{
@@ -123,6 +124,8 @@ export default {
123 124
        console.log("patient_id",patient_id)
124 125
        var prescription_id = this.$route.query.prescription_id
125 126
        this.getChargePrint(record_date,patient_id,prescription_id)
127
+       var xtuser = this.$store.getters.xt_user
128
+       this.orgname = xtuser.org.org_name
126 129
 
127 130
     }
128 131
 }

+ 12 - 4
src/xt_pages/outpatientDoctorStation/components/inquiriesDetail.vue Voir le fichier

@@ -38,7 +38,7 @@
38 38
             <span style="width:240px;">证件号:{{order.patient.id_card_no}}</span>
39 39
             <span style="width:180px;">联系电话:{{order.patient.phone}}</span>
40 40
             <span style="width:260px;">医生:{{order.doctor}}</span>
41
-            <span style="width:180px;">科室:{{order.departments}}</span>
41
+            <span style="width:180px;">科室:{{getDepartMent(order.departments)}}</span>
42 42
             <span style="width:240px;">创建时间: {{getTimes(order.ctime,"{y}-{m}-{d} {h}:{i}")}}</span>
43 43
             <!-- <span style="width:180px;">疾病名称:{{case_history.diagnostic}}</span>
44 44
             <span style="width:180px;">症状:{{case_history.diagnostic}}</span> -->
@@ -153,8 +153,15 @@ import moment from 'moment';
153 153
     methods: {
154 154
       open(index){
155 155
         if(index == 1){
156
+           var arr= []
157
+           for(let i=0;i<this.prescriptions.length;i++){
158
+              arr.push(this.prescriptions[i].id)
159
+           }
160
+           var prescription_id = arr[0]
161
+           var record_date = this.format(this.order.record_date)
162
+           var ids = arr.toString()
163
+           this.$router.push("/outpatientDoctorStation/print?record="+record_date+"&prescription_id="+prescription_id+"&ids="+ids+"&patient_id="+this.patientInfo.id)
156 164
 
157
-          //  /outpatientDoctorStation/print?record=2020-12-11&prescription_id=157&ids=157,159&patient_id=1064
158 165
         }else if(index == 2){
159 166
            var record_date = this.format(this.case_history.sick_date)
160 167
           this.$router.push("/outpatientDoctorStation/recordPrint?record="+record_date+"&patient_id="+this.case_history.patient_id)
@@ -212,11 +219,12 @@ import moment from 'moment';
212 219
             return false
213 220
           } else {
214 221
             this.patientInfo = response.data.data.order.patient
222
+            console.log("患者信息",this.patientInfo)
215 223
             this.hisPatientInfo = response.data.data.order.his_patient
216 224
             this.case_history = response.data.data.order.case_history
217
-            // console.log("历史详情",this.case_history)
225
+            console.log("历史详情",this.case_history)
218 226
             this.order = response.data.data.order
219
-            // console.log('this.order',this.order)
227
+            console.log('this.order',this.order)
220 228
 
221 229
 
222 230
             this.prescriptions = []

+ 10 - 6
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
     <div id='prescription-print' class="prescription-print">
3
-        <div class="printTitle">门诊病历</div>
3
+        <div class="printTitle">{{orgname}} &nbsp;&nbsp; 门诊病历</div>
4 4
         <div class="infoTitle">
5 5
             <div>姓名:{{patient.name?patient.name:''}}</div>
6 6
             <div>性别:
@@ -103,7 +103,8 @@ export default {
103 103
     data(){
104 104
         return{
105 105
             educationOptions:[],
106
-            departmentList:[]
106
+            departmentList:[],
107
+            orgname:''
107 108
         }                   
108 109
     },
109 110
     methods:{
@@ -146,19 +147,19 @@ export default {
146 147
       getPatientCaseHistory(params).then(response=>{
147 148
          if(response.data.state == 1){
148 149
            var patient = response.data.data.patient
149
-           console.log("patinet",patient)
150
+        //    console.log("patinet",patient)
150 151
            this.patient = patient
151 152
            var history = response.data.data.history
152
-           console.log("history",history)
153
+           console.log("中国history222222",history)
153 154
            this.history = history
154 155
            var hispatient = response.data.data.hispatient
155
-           console.log("hispatient",hispatient)
156
+        //    console.log("hispatient",hispatient)
156 157
            this.hispatient = hispatient
157 158
          }
158 159
       })
159 160
     },
160 161
     getDeparment(id){
161
-    console.log("id---",id)
162
+  
162 163
      var name = ''
163 164
      for(let i=0;i<this.departmentList.length;i++){
164 165
          if(id == this.departmentList[i].id){
@@ -173,6 +174,9 @@ export default {
173 174
       console.log("22222",this.educationOptions)
174 175
       this.getAllDoctorList()
175 176
       this.getPatientCaseHistory()
177
+
178
+     var xtuser = this.$store.getters.xt_user
179
+     this.orgname = xtuser.org.org_name
176 180
     }
177 181
 }
178 182
 </script>

+ 8 - 9
src/xt_pages/outpatientDoctorStation/template/printOne.vue Voir le fichier

@@ -2,7 +2,7 @@
2 2
   <div id='prescriptionPrint'>
3 3
     <div v-for="(item,index) in advicePrint" :key="index">
4 4
       <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
5
-          <div class="printTitle">血液透析中心处方笺</div>
5
+          <div class="printTitle">{{orgname}} &nbsp;&nbsp; 血液透析中心处方笺</div>
6 6
           <div class="infoTitle">
7 7
               <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
8 8
               <p>性别:
@@ -68,8 +68,8 @@ export default {
68 68
         prescriptionInfo:[],
69 69
         hisPatient:{},
70 70
         department:[],
71
-        prescriptions:[]
72
-
71
+        prescriptions:[],
72
+        orgname:""
73 73
       }
74 74
     },
75 75
    methods:{
@@ -149,7 +149,6 @@ export default {
149 149
        return name
150 150
      },
151 151
      getTotalOne(id) {
152
-        console.log("处方数据",this.prescriptions)
153 152
         var total = 0
154 153
         var addtotal = 0
155 154
         for (let i = 0; i < this.prescriptions.length; i++) {
@@ -161,15 +160,14 @@ export default {
161 160
             }
162 161
           
163 162
             if (this.prescriptions[i].additionalcharge != null) {
164
-              for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
165
-                addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
163
+              for (let b = 0; b < this.prescriptions[i].additionalcharge.length; b++) {
164
+                addtotal = addtotal + this.prescriptions[i].additionalcharge[b].price * this.prescriptions[i].additionalcharge[b].count
166 165
               }
167 166
             }
168 167
               addtotal =  Math.floor(addtotal * 100) / 100
169 168
         }
170
-        
171
-        return total + addtotal
172 169
        }
170
+       return total + addtotal
173 171
       }, 
174 172
 
175 173
 
@@ -179,7 +177,8 @@ export default {
179 177
       this.getInitData()
180 178
       this.getPrescriptionPrint()
181 179
       this.getHisPatientDetail()
182
-
180
+      var xtuser = this.$store.getters.xt_user
181
+      this.orgname = xtuser.org.org_name
183 182
      
184 183
    },
185 184
   //  watch:{

+ 4 - 2
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue Voir le fichier

@@ -13,9 +13,9 @@
13 13
             <p>就诊日期:{{getTime(item.ctime)}}</p>
14 14
         </div>
15 15
 
16
-        <div class="printTitle">血液透析中心</div>
16
+        <div class="printTitle">{{orgname}} &nbsp;&nbsp; 血液透析中心处方、治疗单</div>
17 17
 
18
-        <div class="printTitle">处方、治疗单</div>
18
+        <!-- <div class="printTitle">处方、治疗单</div> -->
19 19
 
20 20
         <div class="infoTitle">
21 21
             <p>门诊编号:</p>
@@ -335,6 +335,8 @@ export default {
335 335
    created(){
336 336
       this.getAllDoctorList()
337 337
       this.getPrescriptionPrint()
338
+      var xtuser = this.$store.getters.xt_user
339
+      this.orgname = xtuser.org.org_name
338 340
    },
339 341
    watch:{
340 342
      patient_id:function(val){

+ 1 - 1
src/xt_pages/stock/stockPrint.vue Voir le fichier

@@ -12,7 +12,7 @@
12 12
             <div id="print_content">
13 13
                 <div class="print_main_content">
14 14
                     <div class="order_title_panl">
15
-                        <span class="main_title">自备药查询表</span>
15
+                        <span class="main_title">耗材管理查询表</span>
16 16
                     </div>
17 17
                     <div style="text-align:right;margin-bottom:20px;font-size: 18px;">
18 18
                       打印时间:{{time_now}}

+ 10 - 3
src/xt_pages/stock/stockQuery.vue Voir le fichier

@@ -9,7 +9,7 @@
9 9
           <el-select v-model="type_name" style="width:140px;margin-right:10px;" placeholder="请选择"
10 10
           @change="changeTypeName">
11 11
             <el-option
12
-              v-for="item in goodType"
12
+              v-for="item in types"
13 13
               :key="item.id"
14 14
               :label="item.type_name"
15 15
               :value="item.id">
@@ -206,7 +206,8 @@ export default {
206 206
       },
207 207
       options:[],
208 208
       value:"",
209
-      type_name:""
209
+      type_name:"",
210
+      types:[],
210 211
     };
211 212
   },
212 213
   methods: {
@@ -265,10 +266,16 @@ export default {
265 266
           this.$message.error(response.data.msg);
266 267
           return false;
267 268
         } else {
269
+           var obj = {
270
+            id:0,
271
+            type_name:'全部'
272
+          }
273
+          this.types.push(obj)
268 274
           for (let i = 0; i < response.data.data.goodType.length; i++) {
269 275
             this.goodType.push(response.data.data.goodType[i]);
276
+            this.types.push(response.data.data.goodType[i])
270 277
           }
271
-          console.log("商品类型",this.goodType)
278
+          console.log("商品类型",this.types)
272 279
         }
273 280
       });
274 281
     },