Browse Source

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

陈少旭 1 year ago
parent
commit
e434d4eabb

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

@@ -1142,8 +1142,8 @@ export default {
1142 1142
           this.advices = tableAdvice;
1143 1143
         }
1144 1144
 
1145
-        // var arr = [] 
1146
-        // arr = this.unique(this.advices)
1145
+        var arr = [] 
1146
+        arr = this.unique(this.advices)
1147 1147
         // console.log("arriooowo",arr)
1148 1148
         // if(arr!=null && arr.length >0){
1149 1149
   

+ 6 - 6
src/xt_pages/management/components/PlanForm.vue View File

@@ -41,7 +41,7 @@
41 41
                 default-first-option
42 42
                 placeholder="请选择时间"
43 43
                 style="width: 135px;"
44
-               
44
+
45 45
               >
46 46
                 <el-option
47 47
                   v-for="item in this.timeType"
@@ -251,7 +251,7 @@ export default {
251 251
         { id: 1, name: "床单" },
252 252
         { id: 2, name: "被套" },
253 253
         { id: 3, name: "枕套" },
254
-      
254
+
255 255
       ],
256 256
       DeviceType: [],
257 257
       planid: 0,
@@ -272,7 +272,7 @@ export default {
272 272
       });
273 273
     },
274 274
     savePlan(formName) {
275
-      
275
+
276 276
       var equimentid = this.equimentid;
277 277
       // console.log('equimentid', equimentid);
278 278
       var devicetype = this.form.device_type;
@@ -300,7 +300,7 @@ export default {
300 300
           var msg = response.data.data.msg;
301 301
           // console.log('msg', msg);
302 302
           this.$message.success("保存成功");
303
-          
303
+
304 304
           this.dialogVisible = false;
305 305
           this.$refs['form'].resetFields()
306 306
           this.$emit("getAllPlan");
@@ -308,12 +308,12 @@ export default {
308 308
           // 如果保存成功通过状态值改变父组键表格的值
309 309
           this.plandata = 1;
310 310
           this.$emit("func", this.plandata);
311
-          
311
+
312 312
         } else {
313 313
           this.$message.error("该消毒计划已存在");
314 314
         }
315 315
       });
316
-      
316
+
317 317
     },
318 318
     getAllEquitType() {
319 319
       getAllEquitType().then(response => {

+ 120 - 150
src/xt_pages/outpatientDoctorStation/checkTemplate/printThree.vue View File

@@ -1,165 +1,135 @@
1 1
 <template>
2 2
   <div>
3
-    <div id="prescription-print3" class="prescription-print">
4
-      <img
5
-        style="width: 100%; height: 80px"
6
-        v-if="org_id == 10138"
7
-        src="https://kuyi.shengws.com/bailin/bltotle.jpg"
8
-        alt=""
9
-      />
10
-      <img
11
-        style="width: 100%; height: 80px"
12
-        v-if="org_id == 10278 || org_id == 0"
13
-        src="https://kuyi.shengws.com/beierlog.png"
14
-        alt=""
15
-      />
16
-      <div class="printTitle">检验申请单</div>
17
-
18
-      <div style="border: 1px solid #000;margin-bottom: 10px;">
19
-        <div
20
-          style="
21
-            display: flex;
22
-            justify-content: space-between;
23
-            border-bottom: 1px solid #000;
24
-            line-height: 40px;
25
-            padding: 0 10px;
26
-          "
27
-        >
28
-          <div>是否急诊:否</div>
29
-          <div>
30
-            结算方式:{{
31
-              faber && faber.transBody
32
-                ? getName(faber.transBody.outputlist1)
33
-                : ""
34
-            }}
3
+    <div v-for="(item, index) in advicePrint" :key="index">
4
+      <div id="prescription-print3" class="prescription-print">
5
+        
6
+        <div class="printTitle">检验申请单</div>
7
+
8
+        <div style="border: 1px solid #000;margin-bottom: 10px;">
9
+          <div
10
+            style="
11
+              display: flex;
12
+              justify-content: space-between;
13
+              border-bottom: 1px solid #000;
14
+              line-height: 40px;
15
+              padding: 0 10px;
16
+            "
17
+          >
18
+            <div>是否急诊:否</div>
19
+            <div>
20
+              结算方式:{{
21
+                faber && faber.transBody
22
+                  ? getName(faber.transBody.outputlist1)
23
+                  : ""
24
+              }}
25
+            </div>
26
+            <div>金额:{{ total }}</div>
35 27
           </div>
36
-          <div>金额:{{ total }}</div>
37
-        </div>
38
-        <div
39
-          style="
40
-            display: flex;
41
-            justify-content: space-between;
42
-            border-bottom: 1px solid #000;
43
-            line-height: 40px;
44
-            padding: 0 10px;
45
-          "
46
-        >
47
-          <div>
48
-            姓名:{{
49
-              advicePrint[0].patient.name
50
-                ? advicePrint[0].patient.name.indexOf("(") > -1
51
-                  ? advicePrint[0].patient.name.substring(
52
-                      0,
53
-                      advicePrint[0].patient.name.indexOf("(")
54
-                    )
55
-                  : advicePrint[0].patient.name
28
+          <div
29
+            style="
30
+              display: flex;
31
+              justify-content: space-between;
32
+              border-bottom: 1px solid #000;
33
+              line-height: 40px;
34
+              padding: 0 10px;
35
+            "
36
+          >
37
+            <div>
38
+              姓名:{{ item.patient.name }}
39
+              <!-- {{
40
+                advicePrint[0].patient.name
41
+                  ? advicePrint[0].patient.name.indexOf("(") > -1
42
+                    ? advicePrint[0].patient.name.substring(
43
+                        0,
44
+                        advicePrint[0].patient.name.indexOf("(")
45
+                      )
46
+                    : advicePrint[0].patient.name
47
+                  : ""
48
+              }} -->
49
+            </div>
50
+            <div>
51
+              性别:
52
+              <span v-if="item.patient.gender == 1">男</span>
53
+              <span v-if="item.patient.gender == 2">女</span>
54
+            </div>
55
+            <div>年龄:{{getAge(item.patient)?getAge(item.patient):""}}岁</div>
56
+
57
+          </div>
58
+          <div style="margin-bottom: 20px; padding: 10px 10px 0" >
59
+            病史摘要:{{
60
+              history.history_of_present_illness
61
+                ? history.history_of_present_illness
56 62
                 : ""
57 63
             }}
58 64
           </div>
59
-          <div>
60
-            性别:
61
-            <span v-if="advicePrint[0].patient.gender == 1">男</span>
62
-            <span v-if="advicePrint[0].patient.gender == 2">女</span>
65
+          <!-- <div style="margin-bottom:20px;padding:0 10px;"   >体格检查:
66
+                      <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
67
+                      <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
68
+                      <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
69
+                      <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
70
+                  </div> -->
71
+          <div style="margin-bottom: 20px; padding: 0 10px">
72
+            临床诊断:{{ getDiagnosis(item.info.diagnosis) }}
63 73
           </div>
64
-<!--          <div>-->
65
-<!--            年龄:{{-->
66
-<!--              advicePrint[0].patient.age ? advicePrint[0].patient.age : ""-->
67
-<!--            }}岁-->
68
-<!--          </div>-->
69
-          <div>年龄:{{getAge(advicePrint[0].patient)?getAge(advicePrint[0].patient):""}}岁</div>
70
-
71
-        </div>
72
-        <div style="margin-bottom: 20px; padding: 10px 10px 0" >
73
-          病史摘要:{{
74
-            history.history_of_present_illness
75
-              ? history.history_of_present_illness
76
-              : ""
77
-          }}
78
-        </div>
79
-        <!-- <div style="margin-bottom:20px;padding:0 10px;"   >体格检查:
80
-                    <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
81
-                    <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
82
-                    <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
83
-                    <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
84
-                </div> -->
85
-        <div style="margin-bottom: 20px; padding: 0 10px">
86
-          临床诊断:{{ getDiagnosis(advicePrint[0].info.diagnosis) }}
87
-        </div>
88
-        <div style="display: flex; margin-bottom: 20px; padding: 0 10px">
89
-          <div>检验项目:</div>
90
-          <div style="position: relative;">
91
-            <div v-for="item in projectPrint" style="margin-bottom: 10px">
92
-              {{ item.team.project_team }}
93
-            </div>
94
-            <div v-for="item in singleProjectPrint">
95
-              <div v-if="item.remark == '血透前抽血'" style="border-right: 1px solid red;padding-bottom: 5px;">
96
-                {{ item.project.project_name }}
74
+          <div style="display: flex; margin-bottom: 20px; padding: 0 10px">
75
+            <div>检验项目:</div>
76
+            <div style="position: relative;">
77
+              <div v-for="item in projectPrint" style="margin-bottom: 10px">
78
+                {{ item.team.project_team }}
97 79
               </div>
98
-              <!-- <div v-else style="border-right: 1px solid rgb(0, 47, 255);">
99
-                {{ item.project.project_name }}
100
-              </div> -->
101
-            </div>
102
-            <div style="height: 10px;"></div>
103
-            <div v-for="item in singleProjectPrint" >
104
-              <!-- <div v-if="item.remark == '血透前抽血'" style="border-right: 1px solid red;">
105
-                {{ item.project.project_name }}
106
-              </div> -->
107
-              <div v-if="item.remark == '血透后抽血'" style="border-right: 1px solid rgb(0, 47, 255);padding-bottom: 5px;">
108
-                {{ item.project.project_name }}
80
+              <div v-for="item in singleProjectPrint">
81
+                <!-- <div v-if="item.remark == '血透前抽血'" style="border-right: 1px solid red;padding-bottom: 5px;"> -->
82
+                  {{ item.project.project_name }}
83
+                <!-- </div> -->
109 84
               </div>
85
+              <!-- <div style="height: 10px;"></div>
86
+              <div v-for="item in singleProjectPrint" >
87
+                <div v-if="item.remark == '血透后抽血'" style="border-right: 1px solid rgb(0, 47, 255);padding-bottom: 5px;">
88
+                  {{ item.project.project_name }}
89
+                </div>
90
+              </div> -->
91
+              <!-- <span style="position: absolute;top: 65px;right: -77px;" v-if=" singleProjectPrint.length>0">血透前抽血</span>
92
+              <span style="position: absolute;bottom: 96px;right: -77px;" v-if=" singleProjectPrint.length>0">血透后抽血</span> -->
110 93
             </div>
111
-            <span style="position: absolute;top: 65px;right: -77px;" v-if=" singleProjectPrint.length>0">血透前抽血</span>
112
-            <span style="position: absolute;bottom: 96px;right: -77px;" v-if=" singleProjectPrint.length>0">血透后抽血</span>
113
-          </div>
114
-        </div>
115
-        <div
116
-          style="
117
-            display: flex;
118
-            justify-content: space-between;
119
-            border-top: 1px solid #000;
120
-            line-height: 40px;
121
-            padding: 0 10px;
122
-          "
123
-        >
124
-          <div>开单医生:{{ doctor ? doctor : "" }}</div>
125
-          <div>
126
-            开单日期:
127
-            {{ getTime(pre_time) ? getTime(pre_time).split(" ")[0] : "" }}
128 94
           </div>
129
-          <div>
130
-            医生签字:
131
-
132
-            <img
133
-              v-if="setAdminUserES(advicePrint[0].creator)"
134
-              style="height: 80px; width: 80px;"
135
-              :src="setAdminUserES(advicePrint[0].creator)"
136
-              alt=""
137
-              srcset=""
138
-            />
139
-            <span
140
-              style="width: 100px; display: inline-block"
141
-              v-else-if="advicePrint[0].doctor != ''"
142
-            >
143
-              {{ advicePrint[0].doctor ? advicePrint[0].doctor : "" }}
144
-            </span>
145
-            <span v-else>
146
-
147
-            </span>
95
+          <div
96
+            style="
97
+              display: flex;
98
+              justify-content: space-between;
99
+              border-top: 1px solid #000;
100
+              line-height: 40px;
101
+              padding: 0 10px;
102
+            "
103
+          >
104
+            <div>开单医生:{{ doctor ? doctor : "" }}</div>
105
+            <div>
106
+              开单日期:
107
+              {{ getTime(pre_time) ? getTime(pre_time).split(" ")[0] : "" }}
108
+            </div>
109
+            <div>
110
+              医生签字:
111
+
112
+              <img
113
+                v-if="setAdminUserES(advicePrint[0].creator)"
114
+                style="height: 80px; width: 80px;"
115
+                :src="setAdminUserES(advicePrint[0].creator)"
116
+                alt=""
117
+                srcset=""
118
+              />
119
+              <span
120
+                style="width: 100px; display: inline-block"
121
+                v-else-if="advicePrint[0].doctor != ''"
122
+              >
123
+                {{ advicePrint[0].doctor ? advicePrint[0].doctor : "" }}
124
+              </span>
125
+              <span v-else>
126
+
127
+              </span>
128
+            </div>
148 129
           </div>
149 130
         </div>
131
+      
150 132
       </div>
151
-      <img
152
-      style="width: 100%"
153
-      v-if="org_id == 10138 "
154
-      src="https://kuyi.shengws.com/bailin/blend.jpg"
155
-      alt=""
156
-    />
157
-      <img
158
-        style="width: 100%"
159
-        v-if="org_id == 10278 || org_id == 0"
160
-        src="https://kuyi.shengws.com/bailinbeier.png"
161
-        alt=""
162
-      />
163 133
     </div>
164 134
   </div>
165 135
 </template>
@@ -272,10 +242,10 @@ export default {
272 242
       getPrescriptionPrint(params).then((response) => {
273 243
         if (response.data.state == 1) {
274 244
           var advicePrint = response.data.data.advicePrint;
275
-          // console.log("adviceprint9999", advicePrint);
245
+          console.log("adviceprint9999", advicePrint);
276 246
           this.advicePrint = advicePrint;
277 247
           this.prescriptions = advicePrint;
278
-          // console.log("处方222222", this.prescriptions);
248
+          console.log("处方222222", this.prescriptions);
279 249
           var hisPatient = response.data.data.hisPatient;
280 250
           // console.log("hisPatient", hisPatient);
281 251
           this.hisPatient = hisPatient;

+ 7 - 7
src/xt_pages/role/admin.vue View File

@@ -187,12 +187,12 @@
187 187
           @click="toSendInformaton">发送短信验证码</el-button>  -->
188 188
        
189 189
           
190
-        <!-- <el-button
190
+          <!--<el-button
191 191
           type="primary"
192 192
           size="small"
193 193
           icon="el-icon-circle-plus-outline"
194 194
           style="float:left"
195
-          @click="toSavePDFInformation">生成PDF</el-button> -->
195
+          @click="toSavePDFInformation">生成PDF</el-button>-->
196 196
 
197 197
 
198 198
         <!-- <el-button
@@ -1071,11 +1071,11 @@ export default {
1071 1071
            
1072 1072
            var orderId = response.data.data.orderId
1073 1073
            
1074
-           var base64Img = 'data:image/png;base64'+","+orderId
1075
-           console.log("base64Img",base64Img)
1076
-           var imgFile = this.base64ImgtoFile(base64Img)
1077
-           this.downloadBlob(imgFile, 'test.png')
1078
-           console.log("imgFilewoowow",imgFile)
1074
+          //  var base64Img = 'data:image/png;base64'+","+orderId
1075
+          //  console.log("base64Img",base64Img)
1076
+          //  var imgFile = this.base64ImgtoFile(base64Img)
1077
+          //  this.downloadBlob(imgFile, 'test.png')
1078
+          //  console.log("imgFilewoowow",imgFile)
1079 1079
 
1080 1080
            const blob = this.base64ToBlob(orderId, 'application/pdf');
1081 1081
            this.openPdf(blob);