Browse Source

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

See999 4 years ago
parent
commit
5499441f41

+ 2 - 0
.idea/.gitignore View File

@@ -0,0 +1,2 @@
1
+# Default ignored files
2
+/workspace.xml

+ 8 - 0
.idea/Vue_New.iml View File

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module type="WEB_MODULE" version="4">
3
+  <component name="NewModuleRootManager">
4
+    <content url="file://$MODULE_DIR$" />
5
+    <orderEntry type="inheritedJdk" />
6
+    <orderEntry type="sourceFolder" forTests="false" />
7
+  </component>
8
+</module>

+ 6 - 0
.idea/inspectionProfiles/Project_Default.xml View File

@@ -0,0 +1,6 @@
1
+<component name="InspectionProjectProfileManager">
2
+  <profile version="1.0">
3
+    <option name="myName" value="Project Default" />
4
+    <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
+  </profile>
6
+</component>

+ 6 - 0
.idea/misc.xml View File

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="JavaScriptSettings">
4
+    <option name="languageLevel" value="ES6" />
5
+  </component>
6
+</project>

+ 8 - 0
.idea/modules.xml View File

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ProjectModuleManager">
4
+    <modules>
5
+      <module fileurl="file://$PROJECT_DIR$/.idea/Vue_New.iml" filepath="$PROJECT_DIR$/.idea/Vue_New.iml" />
6
+    </modules>
7
+  </component>
8
+</project>

+ 6 - 0
.idea/vcs.xml View File

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="VcsDirectoryMappings">
4
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+  </component>
6
+</project>

+ 1 - 1
config/index.js View File

@@ -30,7 +30,7 @@ module.exports = {
30 30
     //  host: 'xt.test.sgjyun.com',
31 31
     //  host: 'xt.kuyicloud.com',
32 32
     // host: 'xt.test.sgjyun.com',
33
-    host: 'localhost',
33
+    host: 'xt.test.sgjyun.com',
34 34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
35 35
     autoOpenBrowser: true,
36 36
     errorOverlay: true,

+ 1 - 1
package-lock.json View File

@@ -7943,7 +7943,7 @@
7943 7943
     },
7944 7944
     "normalize-wheel": {
7945 7945
       "version": "1.0.1",
7946
-      "resolved": "http://registry.npm.taobao.org/normalize-wheel/download/normalize-wheel-1.0.1.tgz",
7946
+      "resolved": "https://registry.npmjs.org/normalize-wheel/-/normalize-wheel-1.0.1.tgz",
7947 7947
       "integrity": "sha1-rsiGr/2wRQcNhWRH32Ls+GFG7EU="
7948 7948
     },
7949 7949
     "normalize.css": {

+ 4 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue View File

@@ -1399,8 +1399,8 @@ export default {
1399 1399
 
1400 1400
         this.prescription = response.data.data.dialysisPrescription;
1401 1401
 
1402
-        this.receiverTreatmentAccess =
1403
-          response.data.data.receiverTreatmentAccess;
1402
+        this.receiverTreatmentAccess =response.data.data.receiverTreatmentAccess;
1403
+        console.log("透析监测",this.receiverTreatmentAccess)
1404 1404
         this.prescription.mode = this.modeName(this.prescription.mode_id);
1405 1405
         var rwLen = this.replacementWays.length;
1406 1406
         this.prescription.replacement = "";
@@ -1738,10 +1738,10 @@ export default {
1738 1738
       }
1739 1739
     },
1740 1740
     "patientInfo.source": function() {
1741
-      if (this.patientInfo.source == 1) {
1741
+      if (this.receiverTreatmentAccess.condition == 2 ) {
1742 1742
         this.patientInfo_source_1 = true;
1743 1743
         this.patientInfo_source_2 = false;
1744
-      } else if (this.patientInfo.source == 2) {
1744
+      } else if (this.receiverTreatmentAccess.condition == 1) {
1745 1745
         this.patientInfo_source_2 = true;
1746 1746
         this.patientInfo_source_1 = false;
1747 1747
       } else {

+ 16 - 18
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -44,9 +44,9 @@
44 44
       <div class="mainRight">
45 45
 
46 46
         <div class="mainCell" style="margin-bottom:10px;flex-direction: row-reverse;">
47
-          <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">打印处置单</el-button>
48
-          <el-button size="small" @click="open(2)" type="primary">打印治疗单</el-button>
49
-          <el-button size="small" @click="open(3)" type="primary">打印</el-button>
47
+          <!-- <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">打印处置单</el-button>
48
+          <el-button size="small" @click="open(2)" type="primary">打印治疗单</el-button> -->
49
+          <el-button size="small" @click="open(3)" type="primary" style="margin-left:10px;">打印</el-button>
50 50
           <el-button v-loading="loadingone" size="small"
51 51
                      @click="open(6)"
52 52
                      v-if="this.hisPatientInfo && this.hisPatientInfo.id == 0"
@@ -82,6 +82,7 @@
82 82
                         <el-date-picker
83 83
                           v-model="record_date"
84 84
                           type="date"
85
+                          :clearable="false"
85 86
                           @change="changeDate"
86 87
                           format="yyyy-MM-dd"
87 88
                           value-format="yyyy-MM-dd"
@@ -416,24 +417,21 @@
416 417
         if (this.curPrescriptions.type == 1) {
417 418
           if (this.curPrescriptions.advices != null) {
418 419
             for (let a = 0; a < this.curPrescriptions.advices.length; a++) {
419
-              console.log(this.curPrescriptions.advices[a].retail_price)
420
-              console.log(this.curPrescriptions.advices[a].prescribing_number)
420
+              total = total +  Math.floor((this.curPrescriptions.advices[a].retail_price * this.curPrescriptions.advices[a].prescribing_number)* 100) / 100
421 421
 
422
-              total = total + this.curPrescriptions.advices[a].retail_price * this.curPrescriptions.advices[a].prescribing_number
423 422
             }
424 423
           }
425
-          return total
424
+          return Math.floor(total * 100) / 100
426 425
 
427 426
         } else {
428 427
           var total = 0
429 428
           if (this.curPrescriptions.project != null) {
430 429
             for (let b = 0; b < this.curPrescriptions.project.length; b++) {
431
-              console.log(this.curPrescriptions.project[b].price)
432
-              console.log(this.curPrescriptions.project[b].total)
433
-              total = total + this.curPrescriptions.project[b].price * this.curPrescriptions.project[b].total
430
+              total = total +  Math.floor((this.curPrescriptions.project[b].price * this.curPrescriptions.project[b].total) * 100) / 100
431
+
434 432
             }
435 433
           }
436
-          return total
434
+          return Math.floor(total * 100) / 100
437 435
 
438 436
         }
439 437
 
@@ -443,21 +441,21 @@
443 441
         for (let i = 0; i < this.prescriptions.length; i++) {
444 442
           if (this.prescriptions[i].advices != null) {
445 443
             for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
446
-              total = total + this.prescriptions[i].advices[a].retail_price * this.prescriptions[i].advices[a].prescribing_number
444
+              total = total + Math.floor((this.prescriptions[i].advices[a].retail_price * this.prescriptions[i].advices[a].prescribing_number) * 100) / 100
447 445
             }
448 446
           }
449 447
           if (this.prescriptions[i].project != null) {
450 448
             for (let b = 0; b < this.prescriptions[i].project.length; b++) {
451
-              total = total + this.prescriptions[i].project[b].price * this.prescriptions[i].project[b].total
449
+
450
+              total = total + Math.floor((this.prescriptions[i].project[b].price * this.prescriptions[i].project[b].total) * 100) / 100
452 451
             }
453 452
           }
454 453
 
454
+          for (let i = 0; i < this.addtions_charge.length; i++) {
455
+            total = total + Math.floor(this.addtions_charge[i].price * 100) / 100
456
+          }
457
+          return Math.floor(total * 100) / 100
455 458
         }
456
-        for (let i = 0; i < this.addtions_charge.length; i++){
457
-          total = total +  this.addtions_charge[i].price
458
-        }
459
-        return Math.floor(total * 100) / 100
460
-
461 459
       },
462 460
       moreState(tab, event) {
463 461
         if (tab == 'more') {

+ 3 - 3
src/xt_pages/outpatientCharges/treatTemplate/printOne.vue View File

@@ -46,7 +46,7 @@
46 46
                     </div>
47 47
                     <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
48 48
                         <p style="width:50%;">现金支付</p>
49
-                        <p style="width:50%;"></p>
49
+                        <p style="width:50%;">{{list.order_info.psn_cash_pay}}</p>
50 50
                     </div>
51 51
                 </div>
52 52
                 <div style="width:80%;display:flex;height:600px;">
@@ -71,8 +71,8 @@
71 71
             
72 72
         </div>
73 73
         <div class="moneyBox">
74
-            <p>实收金:</p>
75
-            <p>记账前金额:</p>
74
+            <p>实收金:{{list.order_info.medfee_sumamt}}</p>
75
+            <p>记账前金额:{{list.order_info.preselfpay_amt}}</p>
76 76
             <p>扣款金额:</p>
77 77
             <p>记账后金额:</p>
78 78
             <p>找赎金:</p>

+ 36 - 12
src/xt_pages/outpatientDoctorStation/components/newPrescriptionTable.vue View File

@@ -15,32 +15,42 @@
15 15
       </el-table-column>
16 16
       <el-table-column align="center" prop="name" width="50" label="用法">
17 17
         <template slot-scope="scope">
18
-          <el-input v-model="scope.row.delivery_way" readonly></el-input>
18
+          <!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
19
+          <div> {{scope.row.delivery_way}}</div>
20
+
19 21
 
20 22
         </template>
21 23
       </el-table-column>
22 24
       <el-table-column align="center" prop="name" width="50" label="频率">
23 25
         <template slot-scope="scope">
24
-          <el-input v-model="scope.row.execution_frequency" readonly></el-input>
26
+          <!--<el-input v-model="scope.row.execution_frequency" readonly></el-input>-->
27
+          <div> {{scope.row.execution_frequency}}</div>
28
+
25 29
         </template>
26 30
       </el-table-column>
27 31
 
28 32
       <el-table-column align="center" prop="name" width="100" label="总量">
29 33
         <template slot-scope="scope">
30 34
           <div style="display:flex;">
31
-            <el-input v-model="scope.row.prescribing_number" style="width:50%" readonly placeholder=""></el-input>
35
+            <!--<el-input v-model="scope.row.prescribing_number" style="width:50%" readonly placeholder=""></el-input>-->
36
+            <div> {{scope.row.prescribing_number}}</div>
37
+
32 38
             <div>{{scope.row.prescribing_number_unit}}</div>
33 39
           </div>
34 40
         </template>
35 41
       </el-table-column>
36 42
       <el-table-column align="center" prop="name" width="50" label="单价">
37 43
         <template slot-scope="scope">
38
-          <el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>
44
+          <div> {{scope.row.retail_price}}</div>
45
+
46
+          <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
39 47
         </template>
40 48
       </el-table-column>
41 49
       <el-table-column align="center" prop="name" width="50" label="备注">
42 50
         <template slot-scope="scope">
43
-          <el-input v-model="scope.row.remark" style="width:50%" placeholder="" readonly></el-input>
51
+          <!--<el-input v-model="scope.row.remark" style="width:50%" placeholder="" readonly></el-input>-->
52
+          <div> {{scope.row.remark}}</div>
53
+
44 54
         </template>
45 55
       </el-table-column>
46 56
     </el-table>
@@ -58,39 +68,53 @@
58 68
       </el-table-column>
59 69
       <el-table-column align="center" prop="single_dose" width="130" :label="'单次\n用量'">
60 70
         <template slot-scope="scope">
61
-          <el-input v-model="scope.row.single_dose" placeholder="" readonly></el-input>
71
+          <!--<el-input v-model="scope.row.single_dose" placeholder="" readonly></el-input>-->
72
+          <div> {{scope.row.single_dose}}</div>
73
+
62 74
         </template>
63 75
       </el-table-column>
64 76
       <el-table-column align="center" prop="delivery_way" width="130" label="用法">
65 77
         <template slot-scope="scope">
66
-          <el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>
78
+          <!--<el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>-->
79
+          <div> {{scope.row.delivery_way}}</div>
80
+
67 81
         </template>
68 82
       </el-table-column>
69 83
       <el-table-column align="center" prop="execution_frequency" width="130" label="频率">
70 84
         <template slot-scope="scope">
71
-          <el-input v-model="scope.row.execution_frequency" placeholder="" readonly></el-input>
85
+          <!--<el-input v-model="scope.row.execution_frequency" placeholder="" readonly></el-input>-->
86
+          <div> {{scope.row.execution_frequency}}</div>
87
+
72 88
         </template>
73 89
       </el-table-column>
74 90
       <el-table-column align="center" prop="number_days" width="130" label="天数">
75 91
         <template slot-scope="scope">
76
-          <el-input v-model="scope.row.number_days" placeholder="" readonly></el-input>
92
+          <!--<el-input v-model="scope.row.number_days" placeholder="" readonly></el-input>-->
93
+          <div> {{scope.row.number_days}}</div>
94
+
77 95
         </template>
78 96
       </el-table-column>
79 97
       <el-table-column align="center" prop="total" width="100" label="总量">
80 98
         <template slot-scope="scope">
81 99
           <div style="display:flex;">
82
-            <el-input v-model="scope.row.total" style="width:50" placeholder="" readonly></el-input>
100
+            <!--<el-input v-model="scope.row.total" style="width:50" placeholder="" readonly></el-input>-->
101
+            <div> {{scope.row.total}}</div>
102
+
83 103
           </div>
84 104
         </template>
85 105
       </el-table-column>
86 106
       <el-table-column align="center" prop="name" width="50" label="单价">
87 107
         <template slot-scope="scope">
88
-          <el-input v-model="scope.row.price" placeholder="" readonly></el-input>
108
+          <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
109
+          <div> {{scope.row.price}}</div>
110
+
89 111
         </template>
90 112
       </el-table-column>
91 113
       <el-table-column align="center" prop="name" width="120" label="备注">
92 114
         <template slot-scope="scope">
93
-          <el-input v-model="scope.row.remark" readonly></el-input>
115
+          <!--<el-input v-model="scope.row.remark" readonly></el-input>-->
116
+          <div> {{scope.row.remark}}</div>
117
+
94 118
         </template>
95 119
       </el-table-column>
96 120
     </el-table>

+ 7 - 8
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -107,7 +107,7 @@
107 107
         width="200">
108 108
         <template slot-scope="scope">
109 109
           <span>
110
-           <el-input v-model="scope.row.id"></el-input>
110
+           <el-input v-model="scope.row.prescription_number" :disabled="true"></el-input>
111 111
           </span>
112 112
         </template>
113 113
       </el-table-column>
@@ -254,6 +254,7 @@
254 254
           } else {
255 255
 
256 256
             this.prescriptions = []
257
+            this.addtions_charge = []
257 258
             this.patientInfo = response.data.data.xt_info
258 259
             this.hisPatientInfo = response.data.data.his_info
259 260
             this.case_history = response.data.data.case_history
@@ -263,8 +264,6 @@
263 264
             this.addtions_charge = response.data.data.addtions_charge
264 265
 
265 266
 
266
-
267
-
268 267
             this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
269 268
             if (this.case_history.temperature <= 0) {
270 269
               this.case_history.temperature = ''
@@ -372,10 +371,11 @@
372 371
         })
373 372
       },
374 373
       open(index) {
375
-        if(this.prescriptionList.length == 0){
374
+        console.log("index0999999",this.prescriptions)
375
+         if(this.prescriptions[0].advices.length == 0){
376 376
            this.$message.error("请先开处方")
377 377
            return
378
-        }
378
+          }
379 379
         this.index = index
380 380
         if (index == 1) {
381 381
           this.$refs.prescriptions.open(1)
@@ -389,7 +389,6 @@
389 389
           this.$refs.prescriptions.open(4)
390 390
         }else if(index == 6){
391 391
           // this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date+"&prescription_id="+this.prescription_id)
392
-
393 392
           this.getPrescriptionList(this.patientid)
394 393
           // this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date+"&prescription_id="+this.prescription_id)
395 394
 
@@ -406,7 +405,7 @@
406 405
           }
407 406
           this.$refs.child.createCaseHistory()
408 407
         } else if (index == 2) {
409
-          this.$router.push('/outpatientDoctorStation/recordPrint?record='+this.record_date)
408
+          this.$router.push('/outpatientDoctorStation/recordPrint?record='+this.record_date+"&patient_id="+this.patientid)
410 409
         } else if (index == 3) {
411 410
           this.$refs.medicalRecord.show()
412 411
         } else if (index == 4) {
@@ -444,7 +443,7 @@
444 443
            if(response.data.state == 1){
445 444
              this.centerDialogVisible = true
446 445
              var list = response.data.data.list
447
-             console.log("list9999999",list)
446
+             // console.log("list9999999",list)
448 447
              this.tableData = list
449 448
            }
450 449
         })

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

@@ -14,7 +14,7 @@
14 14
     </div>
15 15
     <div class="app-container" style="min-height:0;">
16 16
         <el-container class="newContainer">
17
-            <div style="width:270px;margin-right:20px;">
17
+            <!-- <div style="width:270px;margin-right:20px;">
18 18
                 <div class="cell clearfix" style="margin-bottom:10px;">
19 19
                     <el-input size="small"  v-model.trim="search_input" class="filter-item"/>
20 20
                     <el-button size="small" class="filter-item" type="primary" :model="keyword" @click="searchAction">搜索</el-button>
@@ -31,7 +31,7 @@
31 31
                         </template>
32 32
                     </el-table-column>
33 33
                 </el-table>
34
-            </div>
34
+            </div> -->
35 35
             
36 36
             <div class='dialysisPage' style="flex: 1;height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px">
37 37
               <printOne v-bind:childResponse="childResponse" :patient="patient" :hispatient = "hispatient" :history="history"></printOne>

+ 22 - 2
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue View File

@@ -93,7 +93,7 @@
93 93
 <script>
94 94
 
95 95
 import { getDataConfig } from "@/utils/data";
96
-import { getAllDoctorList } from "@/api/project/project"
96
+import { getAllDoctorList,getPatientCaseHistory } from "@/api/project/project"
97 97
 export default {
98 98
     props:{
99 99
       patient:Object,
@@ -137,12 +137,32 @@ export default {
137 137
         }
138 138
         return name
139 139
       },
140
-      
140
+      getPatientCaseHistory(){
141
+
142
+        const params = {
143
+          patient_id:this.$route.query.patient_id
144
+        }
145
+      console.log("病历22222",params)
146
+      getPatientCaseHistory(params).then(response=>{
147
+         if(response.data.state == 1){
148
+           var patient = response.data.data.patient
149
+           console.log("patinet",patient)
150
+           this.patient = patient
151
+           var history = response.data.data.history
152
+           console.log("history",history)
153
+           this.history = history
154
+           var hispatient = response.data.data.hispatient
155
+           console.log("hispatient",hispatient)
156
+           this.hispatient = hispatient
157
+         }
158
+      })
159
+    },
141 160
     },
142 161
     created(){
143 162
       this.educationOptions = getDataConfig("patient", "education_types");
144 163
       console.log("22222",this.educationOptions)
145 164
       this.getAllDoctorList()
165
+      this.getPatientCaseHistory()
146 166
     }
147 167
 }
148 168
 </script>

+ 47 - 37
src/xt_pages/outpatientDoctorStation/template/printOne.vue View File

@@ -1,41 +1,48 @@
1 1
 <template>
2
-    <div id='prescription-print' class="prescription-print">
2
+  <div>
3
+    <div id='prescription-print' class="prescription-print"  v-for="(item,index) in advicePrint" :key="index">
3 4
         <div class="printTitle">血液透析中心处方笺</div>
4 5
         <div class="infoTitle">
5
-            <p>姓名:{{patient.name?patient.name:""}}</p>
6
+            <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
6 7
             <p>性别:
7
-               <span v-if="patient.gender == 1">男</span>
8
-               <span v-if="patient.gender == 2">女</span>
8
+               <span v-if="item.patient.gender == 1">男</span>
9
+               <span v-if="item.patient.gender == 2">女</span>
9 10
             </p>
10
-            <p>年龄:{{patient.age?patient.age:""}}岁</p>
11
+            <p>年龄:{{item.patient.age?item.patient.age:""}}岁</p>
11 12
         </div>
12 13
         <div class="infoMain">
13
-            <div style="margin-bottom: 10px;">门诊号:{{this.hisPatient.number?this.hisPatient.number:""}}</div>
14
-            <div style="margin-bottom: 10px;">科室:{{getDepart(this.hisPatient.departments?this.hisPatient.departments:"")}}</div>
15
-            <div style="margin-bottom: 10px;">医保卡号:{{this.hisPatient.number?this.hisPatient.number:""}}</div>
16
-            <div style="margin-bottom: 10px;">电话:{{patient.phone}}</div>
17
-            <div>地址:{{patient.home_address}}</div>
18
-            <div style="display:flex;width:50%;">临床诊断:{{patient.diagnose}}</div>
14
+            <div style="margin-bottom: 10px;">门诊号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
15
+            <div style="margin-bottom: 10px;">科室:{{getDepart(item.hisPatient.departments?item.hisPatient.departments:"")}}</div>
16
+            <div style="margin-bottom: 10px;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
17
+            <div style="margin-bottom: 10px;">电话:{{item.patient.phone}}</div>
18
+            <div>地址:{{item.patient.home_address}}</div>
19
+            <div style="display:flex;width:50%;">临床诊断:{{item.patient.diagnose}}</div>
19 20
         </div>
20 21
         <div class="prescriptionBox">
21 22
             <div class="Rp">Rp:</div>
22
-            <div class="drugsBox" v-for="(item,index) in advicePrint" :key="index">
23
-                <div class="drugsOne">{{item.advice_name?item.advice_name:""}}&nbsp;&nbsp;{{item.single_dose}}{{item.single_dose_unit}}&nbsp;×&nbsp; {{item.prescribing_number}}{{item.prescribing_number_unit}}</div>
24
-                <div style="margin-left:100px;"><span>用法:{{item.single_dose}}{{item.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{item.execution_frequency}}</span>&nbsp;&nbsp;<span>{{item.advice_desc}}</span></div>
23
+            <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
24
+                <div class="drugsOne">{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
25
+                <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.execution_frequency}}</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
25 26
             </div>
26 27
         </div>
27 28
         <div class="doctorBox">
28
-            <p>医师:{{getDoctor(advicePrint[0].advice_doctor)?getDoctor(advicePrint[0].advice_doctor):""}}</p>
29
-            <p>日期:{{getTime(advicePrint[0].advice_date)?getTime(advicePrint[0].advice_date):""}}</p>
29
+            <p>医师:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
30
+            <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
30 31
         </div>
31 32
         <div class="actionBar">
32
-            <p>审核:{{getDoctor(advicePrint[0].advice_doctor)?getDoctor(advicePrint[0].advice_doctor):""}}</p>
33
-            <p>配对:{{getDoctor(advicePrint[0].advice_doctor)?getDoctor(advicePrint[0].advice_doctor):""}}</p>
34
-            <p>核对:{{getDoctor(advicePrint[0].checker)?getDoctor(advicePrint[0].checker):""}}</p>
35
-            <p>发药:{{getDoctor(advicePrint[0].execution_staff)?getDoctor(advicePrint[0].execution_staff):""}}</p>
36
-            <p>药费:{{advicePrint[0].price?advicePrint[0].price:""}}</p>
33
+            <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
34
+            <p>配对:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
35
+            <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
36
+            <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
37
+            <p>药费:</p>
37 38
         </div>
38 39
     </div>
40
+
41
+
42
+    
43
+</div>
44
+
45
+    
39 46
 </template>
40 47
 <script>
41 48
 import { jsGetAge, uParseTime } from '@/utils/tools'
@@ -92,29 +99,30 @@ export default {
92 99
           // prescription_id:this.prescription_id,
93 100
           patient_id:this.$route.query.patient_id,
94 101
           record_date:this.$route.query.record,
95
-          prescription_id:this.$route.query.prescription_id 
102
+          prescription_id:this.$route.query.prescription_id,
103
+          ids:this.$route.query.ids
96 104
         }
97 105
         console.log("params---",params)
98 106
        getPrescriptionPrint(params).then(response=>{
99 107
          if(response.data.state == 1){
100 108
             var advicePrint =  response.data.data.advicePrint
101
-            console.log("adviceprint",advicePrint)
109
+            console.log("adviceprint9999",advicePrint)
102 110
             this.advicePrint = advicePrint
103
-            var patient =  response.data.data.patient
104
-            console.log("patient",patient)
105
-            this.patient = patient
106
-            var doctorPorject = response.data.data.doctorPorject
111
+            // var patient =  response.data.data.patient
112
+            // console.log("patient",patient)
113
+            // this.patient = patient
114
+            // var doctorPorject = response.data.data.doctorPorject
107 115
           
108
-            var arr = doctorPorject.project
109
-              console.log("我的中谷歌",arr)
110
-            for(let i=0;i<arr.length;i++){
111
-              console.log("arr",arr[i].project_name)
112
-            }
113
-            this.tableData = arr
114
-            console.log("3333",this.tableData)
115
-            var prescriptioninfo = response.data.data.prescriptionInfo
116
-            console.log("prescriptioninfo",prescriptioninfo)
117
-            this.prescriptionInfo = prescriptioninfo
116
+            // var arr = doctorPorject.project
117
+            //   console.log("我的中谷歌",arr)
118
+            // for(let i=0;i<arr.length;i++){
119
+            //   console.log("arr",arr[i].project_name)
120
+            // }
121
+            // this.tableData = arr
122
+            // console.log("3333",this.tableData)
123
+            // var prescriptioninfo = response.data.data.prescriptionInfo
124
+            // console.log("prescriptioninfo",prescriptioninfo)
125
+            // this.prescriptionInfo = prescriptioninfo
118 126
           }
119 127
        })
120 128
      },
@@ -153,6 +161,8 @@ export default {
153 161
       this.getInitData()
154 162
       this.getPrescriptionPrint()
155 163
       this.getHisPatientDetail()
164
+
165
+     
156 166
    },
157 167
   //  watch:{
158 168
   //    patient_id:function(val){

+ 46 - 37
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue View File

@@ -1,5 +1,6 @@
1 1
 <template>
2
-    <div id='prescription-print' class="prescription-print">
2
+   <div>
3
+    <div id='prescription-print' class="prescription-print" v-for="(item,index) in advicePrint" :key="index">
3 4
         <div style="display:flex;justify-content: space-between;font-weight:bold;">
4 5
             <p style="width:300px;display:flex;justify-content: space-between;font-weight:bold;">
5 6
                 <span>费别</span>
@@ -8,27 +9,27 @@
8 9
                 <span>保险</span>
9 10
                 <span>其他</span>
10 11
             </p>
11
-            <p>就诊日期:{{this.$route.query.record}}</p>
12
+            <p>就诊日期:{{getTime(item.ctime)}}</p>
12 13
         </div>
13 14
         <div class="printTitle">血液透析中心</div>
14 15
         <div class="printTitle">处方、治疗单</div>
15 16
         <div class="infoTitle">
16
-            <p>门诊编号:34567876532345678</p>
17
+            <p>门诊编号:</p>
17 18
             <p>电脑号:</p>
18 19
         </div>
19 20
         <div class="infoMain">
20
-            <p style="margin-bottom: 10px;width:25%">姓名:{{patient.name}}</p>
21
+            <p style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</p>
21 22
             <p style="margin-bottom: 10px;width:25%">性别:
22
-                <span v-if="patient.gender == 1">男</span>
23
-                <span v-if="patient.gender == 2">女</span>
23
+                <span v-if="item.patient.gender == 1">男</span>
24
+                <span v-if="item.patient.gender == 2">女</span>
24 25
             </p>
25 26
             <p style="margin-bottom: 10px;width:25%">年龄:
26
-                <span>{{patient.age}}</span>
27
+                <span>{{item.patient.age}}</span>
27 28
             </p>
28 29
             <p style="margin-bottom: 10px;width:25%">参保类型:</p>
29
-            <p style="margin-bottom: 10px;width:50%;">联系电话:{{patient.phone}}</p>
30
-            <p style="width:50%;">地址:{{patient.unit_address}}</p>
31
-            <p style="width:50%;">诊断:{{patient.diagnose}}</p>
30
+            <p style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</p>
31
+            <p style="width:50%;">地址:{{item.patient.unit_address}}</p>
32
+            <p style="width:50%;">诊断:{{item.patient.diagnose}}</p>
32 33
         </div>
33 34
         <div class="prescriptionBox">
34 35
             <table style="width:100%;text-align:center;line-height:25px;">
@@ -42,25 +43,25 @@
42 43
                     <td>备注</td>
43 44
                     <td>天数</td>
44 45
                 </tr>
45
-                <tr v-for="(item,index) in this.tableData" :key="index">
46
+                <tr v-for="(it,index) in item.project" :key="index">
46 47
                     <td>{{index+1}}</td>
47
-                    <td>{{item.project_name}}</td>
48
-                    <td>{{item.single_dose}}</td>
49
-                    <td>{{item.unit}}</td>
50
-                    <td>{{item.price}}</td>
48
+                    <td>{{getProjectName(it.project_id)}}</td>
49
+                    <td>{{it.single_dose}}</td>
50
+                    <td>{{getUnit(it.unit)}}</td>
51
+                    <td>{{it.price}}</td>
51 52
                     <td></td>
52
-                    <td>{{item.remark}}</td>
53
-                    <td>{{item.day}}</td>
53
+                    <td>{{it.remark}}</td>
54
+                    <td>{{it.day}}</td>
54 55
                    
55 56
                 </tr>
56 57
             </table>
57 58
         </div>
58 59
         <div class="infoTitle">
59
-            <p>开单医生:{{getDoctor(this.prescriptionInfo[0].creator)?getDoctor(this.prescriptionInfo[0].creator):""}}</p>
60
+            <p>开单医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
60 61
             <p>签章:</p>
61 62
         </div>
62 63
         <div class="actionBar">
63
-            <p>执行医生:{{getDoctor(this.prescriptionInfo[0].creator)?getDoctor(this.prescriptionInfo[0].creator):""}}</p>
64
+            <p>执行医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
64 65
             <p>费用:</p>
65 66
         </div>
66 67
         <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
@@ -89,6 +90,7 @@
89 90
                 <td style="width:16px;"></td>
90 91
             </tr>
91 92
         </table>
93
+     </div>
92 94
     </div>
93 95
 </template>
94 96
 <script>
@@ -106,7 +108,8 @@ export default {
106 108
         advicePrint:{},
107 109
         patient:{},
108 110
         tableData:[],
109
-        prescriptionInfo:[]
111
+        prescriptionInfo:[],
112
+        projectList:[]
110 113
       }
111 114
     },
112 115
    methods:{
@@ -155,7 +158,8 @@ export default {
155 158
         //   prescription_id:this.prescription_id,
156 159
           patient_id:this.$route.query.patient_id,
157 160
           record_date:this.$route.query.record,
158
-          prescription_id:this.$route.query.prescription_id 
161
+          prescription_id:this.$route.query.prescription_id,
162
+          ids:this.$route.query.ids, 
159 163
         }
160 164
         console.log("999999",params)
161 165
        getPrescriptionPrint(params).then(response=>{
@@ -163,24 +167,29 @@ export default {
163 167
             var advicePrint =  response.data.data.advicePrint
164 168
             console.log("adviceprint",advicePrint)
165 169
             this.advicePrint = advicePrint
166
-            var patient =  response.data.data.patient
167
-            console.log("patient",patient)
168
-            this.patient = patient
169
-            this.tableData = arr
170
-            console.log("3333",this.tableData)
171
-            var prescriptioninfo = response.data.data.prescriptionInfo
172
-            console.log("prescriptioninfo",prescriptioninfo)
173
-            this.prescriptionInfo = prescriptioninfo
174
-
175
-            var doctorPorject = response.data.data.doctorPorject
176
-          
177
-            var arr = doctorPorject.project
178
-              console.log("治疗单",arr)
179
-            for(let i=0;i<arr.length;i++){
180
-              console.log("arr",arr[i].project_name)
181
-            }
170
+            var projectlist =  response.data.data.projectlist
171
+            console.log("所有项目列表",projectlist)
172
+            this.projectList = projectlist
182 173
           }
183 174
        })
175
+     },
176
+     getProjectName(id){
177
+        var project_name = ""
178
+        for(let i=0;i<this.projectList.length;i++){
179
+           if(id == this.projectList[i].id){
180
+               project_name = this.projectList[i].project_name
181
+           }
182
+        }
183
+        return project_name
184
+     },
185
+     getUnit(id){
186
+        var unit=""
187
+       for(let i=0;i<this.projectList.length;i++){
188
+           if(id == this.projectList[i].id){
189
+               unit = this.projectList[i].unit
190
+           }
191
+        }
192
+        return unit
184 193
      }
185 194
    },
186 195
    created(){

+ 16 - 2
src/xt_pages/outpatientRegistration/index.vue View File

@@ -117,7 +117,7 @@
117 117
                         </el-select>
118 118
                     </el-form-item>
119 119
                     <el-form-item label="医生:"  prop="doctor" :validate-event="is_Name" >
120
-                        <el-select v-model="form.doctor" placeholder="请选择">
120
+                        <el-select v-model="form.doctor" placeholder="请选择" @change="changeDoctor">
121 121
                             <el-option
122 122
                             v-for="item in doctorList"
123 123
                             :key="item.admin_user_id"
@@ -394,6 +394,7 @@ export default {
394 394
            getAllDoctorList().then(response=>{
395 395
              if(response.data.state == 1){
396 396
                var doctor =  response.data.data.doctor
397
+               console.log("doctor-----",doctor)
397 398
                this.doctorList = doctor
398 399
                var department = response.data.data.department
399 400
                console.log("department",department)
@@ -520,8 +521,21 @@ export default {
520 521
        },
521 522
        getDictionaryDataConfig(module, filed_name) {
522 523
         return getDictionaryDataConfig(module, filed_name)
523
-
524 524
       },
525
+
526
+      changeDoctor(id){
527
+          
528
+         for(let i=0;i<this.doctorList.length;i++){
529
+            if(this.doctorList[i].admin_user_id == id){
530
+              if(this.doctorList[i].department_id == 0){
531
+                 this.form.department = this.departmentList[0].id
532
+              }else{
533
+                this.form.department = this.doctorList[i].department_id
534
+              }
535
+             
536
+            }
537
+         }
538
+      }
525 539
     },
526 540
     created(){
527 541
       //获取当前机构有人员信息