huangyw 2 years ago
parent
commit
968f495654

+ 1 - 10
src/xt_pages/dialysis/bloodPresssWatch.vue View File

319
           >批量打印</el-button
319
           >批量打印</el-button
320
         >
320
         >
321
       </template>
321
       </template>
322
-      <!-- <template v-if="this.template_id == 48">
323
-        <el-button
324
-          size="small"
325
-          icon="el-icon-printer"
326
-          :disabled="selecting_schs.length == 0"
327
-          @click="batchPrintAction"
328
-          type="primary"
329
-          >批量打印</el-button
330
-        >
331
-      </template> -->
322
+
332
     </div>
323
     </div>
333
     <div class="app-container">
324
     <div class="app-container">
334
       <!-- <div class="filter-container">
325
       <!-- <div class="filter-container">

+ 61 - 0
src/xt_pages/hospitalStation/components/deskPrescription.vue View File

2293
 
2293
 
2294
                 }
2294
                 }
2295
 
2295
 
2296
+                for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2297
+                  if(this.prescriptions[i].advices[b].delivery_way == "" ){
2298
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}用法未填写`)
2299
+                    this.$emit('editKeepLoad', false)
2300
+                    return
2301
+                  }
2302
+                  if(this.prescriptions[i].advices[b].execution_frequency == "" ){
2303
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}频率未填写`)
2304
+                    this.$emit('editKeepLoad', false)
2305
+                    return
2306
+                  }
2307
+                  if(this.prescriptions[i].advices[b].day == NaN){
2308
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}天数未填写`)
2309
+                    this.$emit('editKeepLoad', false)
2310
+                    return
2311
+                  }
2312
+                  if(this.prescriptions[i].advices[b].day == 0){
2313
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}天数不能为0`)
2314
+                    this.$emit('editKeepLoad', false)
2315
+                    return
2316
+                  }
2317
+                  if(this.prescriptions[i].advices[b].prescribing_number == ""){
2318
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}总量未填写`)
2319
+                    this.$emit('editKeepLoad', false)
2320
+                    return
2321
+                  }
2322
+                  if(this.prescriptions[i].advices[b].prescribing_number == "0"){
2323
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}总量不能为0`)
2324
+                    this.$emit('editKeepLoad', false)
2325
+                    return
2326
+                  }
2327
+                  if(this.prescriptions[i].advices[b].prescribing_number_unit == ""){
2328
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}总量单位未填写`)
2329
+                    this.$emit('editKeepLoad', false)
2330
+                    return
2331
+                  }
2332
+                }
2333
+
2296
                 for (let b = 0; b < this.prescriptions[i].project.length; b++) {
2334
                 for (let b = 0; b < this.prescriptions[i].project.length; b++) {
2297
                   this.prescriptions[i].project[b].price = this.prescriptions[i].project[b].price.toString()
2335
                   this.prescriptions[i].project[b].price = this.prescriptions[i].project[b].price.toString()
2298
                   this.prescriptions[i].project[b].total = this.prescriptions[i].project[b].total.toString()
2336
                   this.prescriptions[i].project[b].total = this.prescriptions[i].project[b].total.toString()
2301
 
2339
 
2302
                 }
2340
                 }
2303
 
2341
 
2342
+                for (let b = 0; b < this.prescriptions[i].project.length; b++) {
2343
+                  if(this.prescriptions[i].project[b].delivery_way == "" ){
2344
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].project_name}用法未填写`)
2345
+                    this.$emit('editKeepLoad', false)
2346
+                    return
2347
+                  }
2348
+                  if(this.prescriptions[i].project[b].execution_frequency == "" ){
2349
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].project_name}频率未填写`)
2350
+                    this.$emit('editKeepLoad', false)
2351
+                    return
2352
+                  }
2353
+                  if(this.prescriptions[i].project[b].day == " "){
2354
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].number_days}天数未填写`)
2355
+                    this.$emit('editKeepLoad', false)
2356
+                    return
2357
+                  }
2358
+                  if(this.prescriptions[i].project[b].day == "0"){
2359
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].number_days}天数不能为0`)
2360
+                    this.$emit('editKeepLoad', false)
2361
+                    return
2362
+                  }
2363
+                }
2364
+
2304
                 for (let b = 0; b < this.prescriptions[i].addition.length; b++) {
2365
                 for (let b = 0; b < this.prescriptions[i].addition.length; b++) {
2305
                   this.prescriptions[i].addition[b].id = prarseInt(this.prescriptions[i].addition[b].id)
2366
                   this.prescriptions[i].addition[b].id = prarseInt(this.prescriptions[i].addition[b].id)
2306
                   this.prescriptions[i].addition[b].item_id = parseInt(this.prescriptions[i].addition[b].item_id)
2367
                   this.prescriptions[i].addition[b].item_id = parseInt(this.prescriptions[i].addition[b].item_id)

+ 50 - 5
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

2257
                   return
2257
                   return
2258
                 }
2258
                 }
2259
               }
2259
               }
2260
+
2261
+
2260
               this.$emit('editKeepLoad', true)
2262
               this.$emit('editKeepLoad', true)
2261
               let params = {
2263
               let params = {
2262
                 p_type: 2,
2264
                 p_type: 2,
2289
                 }
2291
                 }
2290
 
2292
 
2291
                 for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2293
                 for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2294
+                  if(this.prescriptions[i].advices[b].delivery_way == "" ){
2295
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}用法未填写`)
2296
+                    this.$emit('editKeepLoad', false)
2297
+                    return
2298
+                  }
2292
                   if(this.prescriptions[i].advices[b].execution_frequency == "" ){
2299
                   if(this.prescriptions[i].advices[b].execution_frequency == "" ){
2293
-                    this.$message.error("请输入处方"+ (b+1) +"频率")
2300
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}频率未填写`)
2301
+                    this.$emit('editKeepLoad', false)
2302
+                    return
2303
+                  }
2304
+                  if(this.prescriptions[i].advices[b].day == NaN){
2305
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}天数未填写`)
2294
                     this.$emit('editKeepLoad', false)
2306
                     this.$emit('editKeepLoad', false)
2295
                     return
2307
                     return
2296
                   }
2308
                   }
2297
-                  if(this.prescriptions[i].advices[b].day == NaN ){
2298
-                    this.$message.error("请输入处方"+(b+1)+"天数")
2309
+                  if(this.prescriptions[i].advices[b].day == 0){
2310
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}天数不能为0`)
2299
                     this.$emit('editKeepLoad', false)
2311
                     this.$emit('editKeepLoad', false)
2300
                     return
2312
                     return
2301
                   }
2313
                   }
2302
-                     if(this.prescriptions[i].advices[b].prescribing_number == "" ){
2303
-                    this.$message.error("请输入处方"+(b+1)+"总量")
2314
+                  if(this.prescriptions[i].advices[b].prescribing_number == ""){
2315
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}总量未填写`)
2316
+                    this.$emit('editKeepLoad', false)
2317
+                    return
2318
+                  }
2319
+                  if(this.prescriptions[i].advices[b].prescribing_number == "0"){
2320
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}总量不能为0`)
2321
+                    this.$emit('editKeepLoad', false)
2322
+                    return
2323
+                  }
2324
+                  if(this.prescriptions[i].advices[b].prescribing_number_unit == ""){
2325
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}总量单位未填写`)
2304
                     this.$emit('editKeepLoad', false)
2326
                     this.$emit('editKeepLoad', false)
2305
                     return
2327
                     return
2306
                   }
2328
                   }
2314
 
2336
 
2315
                 }
2337
                 }
2316
 
2338
 
2339
+                for (let b = 0; b < this.prescriptions[i].project.length; b++) {
2340
+                  if(this.prescriptions[i].project[b].delivery_way == "" ){
2341
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].project_name}用法未填写`)
2342
+                    this.$emit('editKeepLoad', false)
2343
+                    return
2344
+                  }
2345
+                  if(this.prescriptions[i].project[b].execution_frequency == "" ){
2346
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].project_name}频率未填写`)
2347
+                    this.$emit('editKeepLoad', false)
2348
+                    return
2349
+                  }
2350
+                  if(this.prescriptions[i].project[b].day == " "){
2351
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].number_days}天数未填写`)
2352
+                    this.$emit('editKeepLoad', false)
2353
+                    return
2354
+                  }
2355
+                  if(this.prescriptions[i].project[b].day == "0"){
2356
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].number_days}天数不能为0`)
2357
+                    this.$emit('editKeepLoad', false)
2358
+                    return
2359
+                  }
2360
+                }
2361
+
2317
                 for (let b = 0; b < this.prescriptions[i].addition.length; b++) {
2362
                 for (let b = 0; b < this.prescriptions[i].addition.length; b++) {
2318
                   this.prescriptions[i].addition[b].id = prarseInt(this.prescriptions[i].addition[b].id)
2363
                   this.prescriptions[i].addition[b].id = prarseInt(this.prescriptions[i].addition[b].id)
2319
                   this.prescriptions[i].addition[b].item_id = parseInt(this.prescriptions[i].addition[b].item_id)
2364
                   this.prescriptions[i].addition[b].item_id = parseInt(this.prescriptions[i].addition[b].item_id)

+ 1 - 1
src/xt_pages/outpatientDoctorStation/recordPrint.vue View File

105
       const style =
105
       const style =
106
         "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;padding:0 10px;}.infoTitle div{width: 200px;}.otherInfo{display: flex;margin-top:20px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle div{width: 200px;}}";
106
         "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;padding:0 10px;}.infoTitle div{width: 200px;}.otherInfo{display: flex;margin-top:20px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle div{width: 200px;}}";
107
        const style1 =
107
        const style1 =
108
-        "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.infoTitle div{width: 300px;}.otherInfo{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;justify-content: center;flex-direction: column;margin-top:10px;line-height: 24px;padding:0 10px;border-top: 1px solid;}.recordTitle div{width: 100%;text-align: center;} .recordTitle .recordContent{width: 100%;height: 150px;text-align: left;} .endInfo{display: flex;flex-direction: column;justify-content: end;margin-top: 10px;line-height: 24px;} .endInfo div{width: 300px;}}";
108
+        "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.infoTitle div{width: 300px;}.otherInfo{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;justify-content: center;flex-direction: column;margin-top:10px;line-height: 24px;padding:0 10px;border-top: 1px solid;}.recordTitle div{width: 100%;text-align: center;} .recordTitle .recordContent{width: 100%;height: 150px;text-align: left;} .endInfo{display: flex;flex-direction: column;justify-content: end;margin-top: 10px;line-height: 24px;} .endInfo div{width: 300px;} .record_Title{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;} .record_Title div{width: 200px;}}";
109
       
109
       
110
       
110
       
111
       if (this.org_id != 10217 && this.org_id != 0) {
111
       if (this.org_id != 10217 && this.org_id != 0) {

+ 35 - 5
src/xt_pages/outpatientDoctorStation/recordTemplate/printTwo.vue View File

1
 <template>
1
 <template>
2
   <div id="prescription-print">
2
   <div id="prescription-print">
3
     <div class="prescription-print">
3
     <div class="prescription-print">
4
-      <div class="printTitle">{{ orgname }} &nbsp;&nbsp; 血透中心病历</div>
5
-      <div class="infoTitle">
4
+      <div class="printTitle">{{ orgname }}血透中心病历</div>
5
+       <div class="record_Title">
6
+            <div>姓名:{{patient.name?patient.name:''}}</div>
7
+            <div>性别:
8
+                <span v-if="patient.gender == 1">男</span>
9
+                <span v-if="patient.gender == 2">女</span>
10
+            </div>
11
+            <div>年龄:{{patient.age?patient.age:''}}岁</div>
12
+            <div>透析病历号:{{patient.id?patient.id:''}}</div>
13
+        </div>
14
+      <div class="infoTitle" style="margin-top:20px;">
6
         <div>姓名:{{ patient.name ? patient.name : "" }}</div>
15
         <div>姓名:{{ patient.name ? patient.name : "" }}</div>
7
         <div>
16
         <div>
8
           家庭住址:{{ patient.home_address ? patient.home_address : "" }}
17
           家庭住址:{{ patient.home_address ? patient.home_address : "" }}
33
         <div style="width: 300px">原发病:</div>
42
         <div style="width: 300px">原发病:</div>
34
         <div>确诊肾衰日期:</div>
43
         <div>确诊肾衰日期:</div>
35
       </div>
44
       </div>
36
-      <div class="infoTitle">
37
-        <div style="width: 300px">
45
+      <div class="otherInfo">
46
+        <div>
38
           药物过敏史:{{ patient.past_history ? patient.past_history : "" }}
47
           药物过敏史:{{ patient.past_history ? patient.past_history : "" }}
39
         </div>
48
         </div>
49
+      </div>
50
+      <div class="otherInfo">
40
         <div>初始透析日期:</div>
51
         <div>初始透析日期:</div>
52
+        <div style="flex: 1"></div>
41
       </div>
53
       </div>
42
       <div class="otherInfo" style="border-bottom: 1px solid">
54
       <div class="otherInfo" style="border-bottom: 1px solid">
43
         <div>血管通路:</div>
55
         <div>血管通路:</div>
90
       <!-- <div class="printTitle">病历内容</div> -->
102
       <!-- <div class="printTitle">病历内容</div> -->
91
       <div class="recordTitle">
103
       <div class="recordTitle">
92
         <div>体格检查</div>
104
         <div>体格检查</div>
93
-        <div class="recordContent" style="height:250px;"></div>
105
+        <div class="recordContent" style="height:250px;">
106
+          <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
107
+          <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
108
+          <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
109
+          <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
110
+        </div>
111
+        <div></div>
94
       </div>
112
       </div>
95
       <div class="recordTitle">
113
       <div class="recordTitle">
96
         <div>专科检查</div>
114
         <div>专科检查</div>
301
   height: 150px;
319
   height: 150px;
302
   text-align: left;
320
   text-align: left;
303
 }
321
 }
322
+
323
+.record_Title{
324
+    display: flex;
325
+    margin-top:10px;
326
+    line-height: 24px;
327
+    padding:0 10px;
328
+    border-bottom: 2px solid #000;
329
+}
330
+
331
+.record_Title div{
332
+  width: 200px;
333
+}
304
 </style>
334
 </style>