huangyw 2 years ago
parent
commit
87c48b35a8

+ 1 - 1
src/xt_pages/Pharmacy/PatientDispensing.vue View File

530
   }
530
   }
531
 }
531
 }
532
 
532
 
533
-.el-input__inner{
533
+/deep/ .el-input__inner{
534
   padding-right: 15px;
534
   padding-right: 15px;
535
 }
535
 }
536
 
536
 

+ 13 - 20
src/xt_pages/Pharmacy/print/drugPrint.vue View File

9
       >打印</el-button
9
       >打印</el-button
10
     >
10
     >
11
     <div id="dialysis-print-box-1" class="dialysis-print-box-1">
11
     <div id="dialysis-print-box-1" class="dialysis-print-box-1">
12
-      <div class="list_title" style="border-bottom:none;"><div style="width:100%;text-align:center;font-size:16px;font-weight:bold;">{{org_name}} 领药单</div></div>
12
+      <div class="list_title" style="border-bottom:none;"><div style="width:100%;text-align:center;font-size:16px;font-weight:bold;">{{org_name}} <span v-if="state_name=='待发药'">发药单</span> <span v-if="state_name=='已发药'">领药单</span></div></div>
13
       <div class="list_title">
13
       <div class="list_title">
14
         <div>药品名称:{{name}}</div>
14
         <div>药品名称:{{name}}</div>
15
         <div>规格:{{specifications}}</div>
15
         <div>规格:{{specifications}}</div>
16
         <div>发药状态:{{state_name}}</div>
16
         <div>发药状态:{{state_name}}</div>
17
         <div>日期:{{times}}</div>
17
         <div>日期:{{times}}</div>
18
-<!--        <div v-if="state==2">领药人:</div>-->
18
+<!--  <div v-if="state==2">领药人:</div>-->
19
       </div>
19
       </div>
20
 
20
 
21
       <el-table
21
       <el-table
25
         max-height="450"
25
         max-height="450"
26
         :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
26
         :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
27
       >
27
       >
28
-        <el-table-column type="index" prop="index" label="序号" width="60">
28
+        <el-table-column type="index" prop="index" label="序号" width="60" align="center">
29
         </el-table-column>
29
         </el-table-column>
30
-        <el-table-column prop="name" label="患者姓名" width="160">
30
+        <el-table-column prop="name" label="患者姓名" width="160" align="center">
31
           <template  slot-scope="scope">
31
           <template  slot-scope="scope">
32
             {{scope.row.name}}
32
             {{scope.row.name}}
33
           </template>
33
           </template>
34
         </el-table-column>
34
         </el-table-column>
35
-        <el-table-column prop="single_dosage" label="单次用量" width="120">
35
+        <el-table-column prop="single_dosage" label="单次用量" width="120" align="center">
36
           <template  slot-scope="scope">
36
           <template  slot-scope="scope">
37
             {{scope.row.single_dosage}}
37
             {{scope.row.single_dosage}}
38
           </template>
38
           </template>
39
         </el-table-column>
39
         </el-table-column>
40
-        <el-table-column prop="usage" label="用法" width="120">
40
+        <el-table-column prop="usage" label="用法" width="120" align="center">
41
           <template  slot-scope="scope">
41
           <template  slot-scope="scope">
42
             {{scope.row.usage}}
42
             {{scope.row.usage}}
43
           </template>
43
           </template>
44
         </el-table-column>
44
         </el-table-column>
45
-        <el-table-column prop="frequency" label="频率" width="120">
45
+        <el-table-column prop="frequency" label="频率" width="120" align="center">
46
           <template  slot-scope="scope">
46
           <template  slot-scope="scope">
47
             {{scope.row.frequency}}
47
             {{scope.row.frequency}}
48
           </template>
48
           </template>
49
         </el-table-column>
49
         </el-table-column>
50
-        <el-table-column prop="days" label="天数" width="120">
50
+        <el-table-column prop="days" label="天数" width="120" align="center">
51
           <template  slot-scope="scope">
51
           <template  slot-scope="scope">
52
             {{scope.row.days}}
52
             {{scope.row.days}}
53
           </template>
53
           </template>
54
         </el-table-column>
54
         </el-table-column>
55
-        <el-table-column prop="total" label="总量" width="120">
55
+        <el-table-column prop="total" label="总量" width="120" align="center">
56
           <template  slot-scope="scope">
56
           <template  slot-scope="scope">
57
             {{scope.row.total}}
57
             {{scope.row.total}}
58
           </template>
58
           </template>
59
         </el-table-column>
59
         </el-table-column>
60
-        <el-table-column prop="data_sources" label="数据来源" width="120">
60
+        <el-table-column prop="data_sources" label="数据来源" width="120" align="center">
61
           <template  slot-scope="scope">
61
           <template  slot-scope="scope">
62
             {{scope.row.data_sources}}
62
             {{scope.row.data_sources}}
63
           </template>
63
           </template>
64
         </el-table-column>
64
         </el-table-column>
65
-        <el-table-column prop="people" label="领药人" width="120">
65
+        <el-table-column prop="people" label="领药人" width="120" align="center">
66
           <template  slot-scope="scope">
66
           <template  slot-scope="scope">
67
             {{scope.row.people}}
67
             {{scope.row.people}}
68
           </template>
68
           </template>
154
 
154
 
155
     // 打印
155
     // 打印
156
     print() {
156
     print() {
157
+      console.log(this.org_name,'this.org_name')
157
       Vue.prototype.printJson = printutils.printJson;
158
       Vue.prototype.printJson = printutils.printJson;
158
-      //   const style =
159
-      //     '@media print {.list_title{  width: 940px;border-bottom: 1px solid;display: flex;margin: 30px auto}}';
160
-      //   printJS({
161
-      //     printable: "dialysis-print-box-1",
162
-      //     type: "html",
163
-      //     style: style,
164
-      //     scanStyles: false,
165
-      //   });
166
       this.printJson({
159
       this.printJson({
167
         title: `
160
         title: `
168
         <div>
161
         <div>
172
         <div style="width: 230px;padding: 10px 0;">规格:${this.specifications}</div>
165
         <div style="width: 230px;padding: 10px 0;">规格:${this.specifications}</div>
173
         <div style="width: 230px;padding: 10px 0;">发药状态:${this.state_name}</div>
166
         <div style="width: 230px;padding: 10px 0;">发药状态:${this.state_name}</div>
174
         <div style="width: 230px;padding: 10px 0;">日期:${this.times}</div>
167
         <div style="width: 230px;padding: 10px 0;">日期:${this.times}</div>
175
-        </div>`, // 打印出来的标题
168
+        </div></div>`, // 打印出来的标题
176
         data: this.tableData, // 需要打印的数据
169
         data: this.tableData, // 需要打印的数据
177
         serial: true, // 是否需要打印序列号
170
         serial: true, // 是否需要打印序列号
178
         fields: [
171
         fields: [

+ 11 - 9
src/xt_pages/Pharmacy/print/patientPrint.vue View File

25
       >
25
       >
26
         <el-table-column type="index" prop="index" label="序号" width="60" align="center">
26
         <el-table-column type="index" prop="index" label="序号" width="60" align="center">
27
         </el-table-column>
27
         </el-table-column>
28
-        <el-table-column prop="name" label="名称" width="160">
28
+        <el-table-column prop="name" label="名称" width="160" align="center">
29
           <template slot-scope="scope" >
29
           <template slot-scope="scope" >
30
             <span>{{scope.row.Name ? scope.row.Name : ""}}</span>
30
             <span>{{scope.row.Name ? scope.row.Name : ""}}</span>
31
           </template>
31
           </template>
32
         </el-table-column>
32
         </el-table-column>
33
-        <el-table-column prop="SingleDosage" label="单次用量" width="120">
33
+        <el-table-column prop="SingleDosage" label="单次用量" width="120" align="center">
34
           <template slot-scope="scope" >
34
           <template slot-scope="scope" >
35
             <span>{{scope.row.SingleDosage ? scope.row.SingleDosage : ""}}</span>
35
             <span>{{scope.row.SingleDosage ? scope.row.SingleDosage : ""}}</span>
36
           </template>
36
           </template>
37
         </el-table-column>
37
         </el-table-column>
38
-        <el-table-column prop="use" label="用法" width="120">
38
+        <el-table-column prop="use" label="用法" width="120" align="center">
39
           <template slot-scope="scope" >
39
           <template slot-scope="scope" >
40
             <span>{{scope.row.Usage ? scope.row.Usage : ""}}</span>
40
             <span>{{scope.row.Usage ? scope.row.Usage : ""}}</span>
41
           </template>
41
           </template>
42
         </el-table-column>
42
         </el-table-column>
43
-        <el-table-column prop="frequency" label="频率" width="120">
43
+        <el-table-column prop="frequency" label="频率" width="120" align="center">
44
           <template slot-scope="scope" >
44
           <template slot-scope="scope" >
45
             <span>{{scope.row.Frequency ? scope.row.Frequency : ""}}</span>
45
             <span>{{scope.row.Frequency ? scope.row.Frequency : ""}}</span>
46
           </template>
46
           </template>
47
         </el-table-column>
47
         </el-table-column>
48
-        <el-table-column prop="day" label="天数" width="120">
48
+        <el-table-column prop="day" label="天数" width="120" align="center">
49
           <template slot-scope="scope" >
49
           <template slot-scope="scope" >
50
             <span>{{scope.row.Days ? scope.row.Days : ""}}</span>
50
             <span>{{scope.row.Days ? scope.row.Days : ""}}</span>
51
           </template>
51
           </template>
52
         </el-table-column>
52
         </el-table-column>
53
-        <el-table-column prop="amount" label="总量" width="120">
53
+        <el-table-column prop="amount" label="总量" width="120" align="center">
54
           <template slot-scope="scope" >
54
           <template slot-scope="scope" >
55
             <span>{{scope.row.Total ? scope.row.Total : ""}}</span>
55
             <span>{{scope.row.Total ? scope.row.Total : ""}}</span>
56
           </template>
56
           </template>
57
         </el-table-column>
57
         </el-table-column>
58
-        <el-table-column prop="tips" label="数据来源" width="120">
58
+        <el-table-column prop="tips" label="数据来源" width="120" align="center">
59
           <template slot-scope="scope" >
59
           <template slot-scope="scope" >
60
             <span>{{scope.row.DataSources ? scope.row.DataSources : ""}}</span>
60
             <span>{{scope.row.DataSources ? scope.row.DataSources : ""}}</span>
61
           </template>
61
           </template>
62
         </el-table-column>
62
         </el-table-column>
63
-        <el-table-column prop="tips" label="备注" width="120">
63
+        <el-table-column prop="tips" label="备注" width="120" align="center">
64
           <template slot-scope="scope" >
64
           <template slot-scope="scope" >
65
             <span>{{scope.row.Remarks ? scope.row.Remarks : ""}}</span>
65
             <span>{{scope.row.Remarks ? scope.row.Remarks : ""}}</span>
66
           </template>
66
           </template>
83
       name:"",
83
       name:"",
84
       state:null,
84
       state:null,
85
       times:"",
85
       times:"",
86
+      org_name: this.$store.getters.xt_user.org.org_name,
86
     };
87
     };
87
   },
88
   },
88
   props: {
89
   props: {
143
 
144
 
144
     // 打印
145
     // 打印
145
     print() {
146
     print() {
147
+      console.log(this.org_name,'this.org_name')
146
       Vue.prototype.printJson = printutils.printJson;
148
       Vue.prototype.printJson = printutils.printJson;
147
       //   const style =
149
       //   const style =
148
       //     '@media print {.list_title{  width: 940px;border-bottom: 1px solid;display: flex;margin: 30px auto}}';
150
       //     '@media print {.list_title{  width: 940px;border-bottom: 1px solid;display: flex;margin: 30px auto}}';
160
         <div style="width: 310px;padding: 10px 0;">患者名称:${this.name}</div>
162
         <div style="width: 310px;padding: 10px 0;">患者名称:${this.name}</div>
161
         <div style="width: 320px;padding: 10px 0;">发药状态:${this.state}</div>
163
         <div style="width: 320px;padding: 10px 0;">发药状态:${this.state}</div>
162
         <div style="width: 310px;padding: 10px 0;">日期:${this.times}</div>
164
         <div style="width: 310px;padding: 10px 0;">日期:${this.times}</div>
163
-        </div>`, // 打印出来的标题
165
+        </div></div>`, // 打印出来的标题
164
         data: this.tableData, // 需要打印的数据
166
         data: this.tableData, // 需要打印的数据
165
         serial: true, // 是否需要打印序列号
167
         serial: true, // 是否需要打印序列号
166
         fields: [
168
         fields: [

+ 20 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

774
                     class="row"
774
                     class="row"
775
                     style="padding: 2px 0; line-height: 23px; display: flex"
775
                     style="padding: 2px 0; line-height: 23px; display: flex"
776
                   >
776
                   >
777
-                    <div class="inline_block" style="flex: 1">
777
+                    <div class="inline_block" style="flex: 1" v-if="org_id!=10290">
778
                       透析(滤)器:
778
                       透析(滤)器:
779
                       <div
779
                       <div
780
                         class="under_line"
780
                         class="under_line"
792
                         }}
792
                         }}
793
                       </div>
793
                       </div>
794
                     </div>
794
                     </div>
795
-                    <div class="inline_block" style="flex: 1">
795
+                    <div class="inline_block" style="flex: 1" v-if="org_id!=10290&&org_id!=9675">
796
                       灌流器:
796
                       灌流器:
797
                       <div
797
                       <div
798
                         class="under_line"
798
                         class="under_line"
805
                         }}
805
                         }}
806
                       </div>
806
                       </div>
807
                     </div>
807
                     </div>
808
+                    <div class="inline_block" style="flex: 1" v-if="org_id==10290||org_id==9675">
809
+                      透析器/灌流器:
810
+                      <div
811
+                        class="under_line"78
812
+                        style="width: 100px; text-align: center"
813
+                      >
814
+                        {{
815
+                          prescription.dialyzer_perfusion_apparatus
816
+                            ? prescription.dialyzer_perfusion_apparatus
817
+                            : ""
818
+                        }}
819
+                        {{
820
+                          prescription.dialysis_dialyszers
821
+                            ? prescription.dialysis_dialyszers
822
+                            : "/"
823
+                        }}
824
+                      </div>
825
+                    </div>
808
                     <div
826
                     <div
809
                       class="inline_block"
827
                       class="inline_block"
810
                       style="flex: 1"
828
                       style="flex: 1"