瀏覽代碼

批量打印

XMLWAN 4 年之前
父節點
當前提交
637d485d71

+ 1 - 1
src/lang/zh.js 查看文件

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

+ 8 - 0
src/router/modules/templateManagement.js 查看文件

46
         title: 'histemplate'
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 查看文件

1
 <template>
1
 <template>
2
     <div id='prescription-print' class="prescription-print">
2
     <div id='prescription-print' class="prescription-print">
3
-        <div class="printTitle">血液透析中心医药费收据及收费项目清单</div>
3
+        <div class="printTitle">{{orgname}}&nbsp;&nbsp; 血液透析中心医药费收据及收费项目清单</div>
4
         <div class="infoMain">
4
         <div class="infoMain">
5
             <p class="infoP">医院(药店)编号:</p>
5
             <p class="infoP">医院(药店)编号:</p>
6
             <p class="infoP">名称:血液透析中心</p>
6
             <p class="infoP">名称:血液透析中心</p>
91
           list:{},
91
           list:{},
92
           prescription:[],
92
           prescription:[],
93
           patient:{},
93
           patient:{},
94
+          orgname:""
94
       } 
95
       } 
95
     },
96
     },
96
     methods:{
97
     methods:{
123
        console.log("patient_id",patient_id)
124
        console.log("patient_id",patient_id)
124
        var prescription_id = this.$route.query.prescription_id
125
        var prescription_id = this.$route.query.prescription_id
125
        this.getChargePrint(record_date,patient_id,prescription_id)
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 查看文件

38
             <span style="width:240px;">证件号:{{order.patient.id_card_no}}</span>
38
             <span style="width:240px;">证件号:{{order.patient.id_card_no}}</span>
39
             <span style="width:180px;">联系电话:{{order.patient.phone}}</span>
39
             <span style="width:180px;">联系电话:{{order.patient.phone}}</span>
40
             <span style="width:260px;">医生:{{order.doctor}}</span>
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
             <span style="width:240px;">创建时间: {{getTimes(order.ctime,"{y}-{m}-{d} {h}:{i}")}}</span>
42
             <span style="width:240px;">创建时间: {{getTimes(order.ctime,"{y}-{m}-{d} {h}:{i}")}}</span>
43
             <!-- <span style="width:180px;">疾病名称:{{case_history.diagnostic}}</span>
43
             <!-- <span style="width:180px;">疾病名称:{{case_history.diagnostic}}</span>
44
             <span style="width:180px;">症状:{{case_history.diagnostic}}</span> -->
44
             <span style="width:180px;">症状:{{case_history.diagnostic}}</span> -->
153
     methods: {
153
     methods: {
154
       open(index){
154
       open(index){
155
         if(index == 1){
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
         }else if(index == 2){
165
         }else if(index == 2){
159
            var record_date = this.format(this.case_history.sick_date)
166
            var record_date = this.format(this.case_history.sick_date)
160
           this.$router.push("/outpatientDoctorStation/recordPrint?record="+record_date+"&patient_id="+this.case_history.patient_id)
167
           this.$router.push("/outpatientDoctorStation/recordPrint?record="+record_date+"&patient_id="+this.case_history.patient_id)
212
             return false
219
             return false
213
           } else {
220
           } else {
214
             this.patientInfo = response.data.data.order.patient
221
             this.patientInfo = response.data.data.order.patient
222
+            console.log("患者信息",this.patientInfo)
215
             this.hisPatientInfo = response.data.data.order.his_patient
223
             this.hisPatientInfo = response.data.data.order.his_patient
216
             this.case_history = response.data.data.order.case_history
224
             this.case_history = response.data.data.order.case_history
217
-            // console.log("历史详情",this.case_history)
225
+            console.log("历史详情",this.case_history)
218
             this.order = response.data.data.order
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
             this.prescriptions = []
230
             this.prescriptions = []

+ 10 - 6
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue 查看文件

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

+ 8 - 9
src/xt_pages/outpatientDoctorStation/template/printOne.vue 查看文件

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">血液透析中心处方笺</div>
5
+          <div class="printTitle">{{orgname}} &nbsp;&nbsp; 血液透析中心处方笺</div>
6
           <div class="infoTitle">
6
           <div class="infoTitle">
7
               <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
7
               <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
8
               <p>性别:
8
               <p>性别:
68
         prescriptionInfo:[],
68
         prescriptionInfo:[],
69
         hisPatient:{},
69
         hisPatient:{},
70
         department:[],
70
         department:[],
71
-        prescriptions:[]
72
-
71
+        prescriptions:[],
72
+        orgname:""
73
       }
73
       }
74
     },
74
     },
75
    methods:{
75
    methods:{
149
        return name
149
        return name
150
      },
150
      },
151
      getTotalOne(id) {
151
      getTotalOne(id) {
152
-        console.log("处方数据",this.prescriptions)
153
         var total = 0
152
         var total = 0
154
         var addtotal = 0
153
         var addtotal = 0
155
         for (let i = 0; i < this.prescriptions.length; i++) {
154
         for (let i = 0; i < this.prescriptions.length; i++) {
161
             }
160
             }
162
           
161
           
163
             if (this.prescriptions[i].additionalcharge != null) {
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
               addtotal =  Math.floor(addtotal * 100) / 100
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
       this.getInitData()
177
       this.getInitData()
180
       this.getPrescriptionPrint()
178
       this.getPrescriptionPrint()
181
       this.getHisPatientDetail()
179
       this.getHisPatientDetail()
182
-
180
+      var xtuser = this.$store.getters.xt_user
181
+      this.orgname = xtuser.org.org_name
183
      
182
      
184
    },
183
    },
185
   //  watch:{
184
   //  watch:{

+ 4 - 2
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue 查看文件

13
             <p>就诊日期:{{getTime(item.ctime)}}</p>
13
             <p>就诊日期:{{getTime(item.ctime)}}</p>
14
         </div>
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
         <div class="infoTitle">
20
         <div class="infoTitle">
21
             <p>门诊编号:</p>
21
             <p>门诊编号:</p>
335
    created(){
335
    created(){
336
       this.getAllDoctorList()
336
       this.getAllDoctorList()
337
       this.getPrescriptionPrint()
337
       this.getPrescriptionPrint()
338
+      var xtuser = this.$store.getters.xt_user
339
+      this.orgname = xtuser.org.org_name
338
    },
340
    },
339
    watch:{
341
    watch:{
340
      patient_id:function(val){
342
      patient_id:function(val){

+ 1 - 1
src/xt_pages/stock/stockPrint.vue 查看文件

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

+ 10 - 3
src/xt_pages/stock/stockQuery.vue 查看文件

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