浏览代码

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

See999 4 年前
父节点
当前提交
5499441f41

+ 2 - 0
.idea/.gitignore 查看文件

1
+# Default ignored files
2
+/workspace.xml

+ 8 - 0
.idea/Vue_New.iml 查看文件

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 查看文件

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 查看文件

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 查看文件

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 查看文件

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 查看文件

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

+ 1 - 1
package-lock.json 查看文件

7943
     },
7943
     },
7944
     "normalize-wheel": {
7944
     "normalize-wheel": {
7945
       "version": "1.0.1",
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
       "integrity": "sha1-rsiGr/2wRQcNhWRH32Ls+GFG7EU="
7947
       "integrity": "sha1-rsiGr/2wRQcNhWRH32Ls+GFG7EU="
7948
     },
7948
     },
7949
     "normalize.css": {
7949
     "normalize.css": {

+ 4 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue 查看文件

1399
 
1399
 
1400
         this.prescription = response.data.data.dialysisPrescription;
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
         this.prescription.mode = this.modeName(this.prescription.mode_id);
1404
         this.prescription.mode = this.modeName(this.prescription.mode_id);
1405
         var rwLen = this.replacementWays.length;
1405
         var rwLen = this.replacementWays.length;
1406
         this.prescription.replacement = "";
1406
         this.prescription.replacement = "";
1738
       }
1738
       }
1739
     },
1739
     },
1740
     "patientInfo.source": function() {
1740
     "patientInfo.source": function() {
1741
-      if (this.patientInfo.source == 1) {
1741
+      if (this.receiverTreatmentAccess.condition == 2 ) {
1742
         this.patientInfo_source_1 = true;
1742
         this.patientInfo_source_1 = true;
1743
         this.patientInfo_source_2 = false;
1743
         this.patientInfo_source_2 = false;
1744
-      } else if (this.patientInfo.source == 2) {
1744
+      } else if (this.receiverTreatmentAccess.condition == 1) {
1745
         this.patientInfo_source_2 = true;
1745
         this.patientInfo_source_2 = true;
1746
         this.patientInfo_source_1 = false;
1746
         this.patientInfo_source_1 = false;
1747
       } else {
1747
       } else {

+ 16 - 18
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

44
       <div class="mainRight">
44
       <div class="mainRight">
45
 
45
 
46
         <div class="mainCell" style="margin-bottom:10px;flex-direction: row-reverse;">
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
           <el-button v-loading="loadingone" size="small"
50
           <el-button v-loading="loadingone" size="small"
51
                      @click="open(6)"
51
                      @click="open(6)"
52
                      v-if="this.hisPatientInfo && this.hisPatientInfo.id == 0"
52
                      v-if="this.hisPatientInfo && this.hisPatientInfo.id == 0"
82
                         <el-date-picker
82
                         <el-date-picker
83
                           v-model="record_date"
83
                           v-model="record_date"
84
                           type="date"
84
                           type="date"
85
+                          :clearable="false"
85
                           @change="changeDate"
86
                           @change="changeDate"
86
                           format="yyyy-MM-dd"
87
                           format="yyyy-MM-dd"
87
                           value-format="yyyy-MM-dd"
88
                           value-format="yyyy-MM-dd"
416
         if (this.curPrescriptions.type == 1) {
417
         if (this.curPrescriptions.type == 1) {
417
           if (this.curPrescriptions.advices != null) {
418
           if (this.curPrescriptions.advices != null) {
418
             for (let a = 0; a < this.curPrescriptions.advices.length; a++) {
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
         } else {
426
         } else {
428
           var total = 0
427
           var total = 0
429
           if (this.curPrescriptions.project != null) {
428
           if (this.curPrescriptions.project != null) {
430
             for (let b = 0; b < this.curPrescriptions.project.length; b++) {
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
         for (let i = 0; i < this.prescriptions.length; i++) {
441
         for (let i = 0; i < this.prescriptions.length; i++) {
444
           if (this.prescriptions[i].advices != null) {
442
           if (this.prescriptions[i].advices != null) {
445
             for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
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
           if (this.prescriptions[i].project != null) {
447
           if (this.prescriptions[i].project != null) {
450
             for (let b = 0; b < this.prescriptions[i].project.length; b++) {
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
       moreState(tab, event) {
460
       moreState(tab, event) {
463
         if (tab == 'more') {
461
         if (tab == 'more') {

+ 3 - 3
src/xt_pages/outpatientCharges/treatTemplate/printOne.vue 查看文件

46
                     </div>
46
                     </div>
47
                     <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
47
                     <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
48
                         <p style="width:50%;">现金支付</p>
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
                     </div>
50
                     </div>
51
                 </div>
51
                 </div>
52
                 <div style="width:80%;display:flex;height:600px;">
52
                 <div style="width:80%;display:flex;height:600px;">
71
             
71
             
72
         </div>
72
         </div>
73
         <div class="moneyBox">
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
             <p>扣款金额:</p>
76
             <p>扣款金额:</p>
77
             <p>记账后金额:</p>
77
             <p>记账后金额:</p>
78
             <p>找赎金:</p>
78
             <p>找赎金:</p>

+ 36 - 12
src/xt_pages/outpatientDoctorStation/components/newPrescriptionTable.vue 查看文件

15
       </el-table-column>
15
       </el-table-column>
16
       <el-table-column align="center" prop="name" width="50" label="用法">
16
       <el-table-column align="center" prop="name" width="50" label="用法">
17
         <template slot-scope="scope">
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
         </template>
22
         </template>
21
       </el-table-column>
23
       </el-table-column>
22
       <el-table-column align="center" prop="name" width="50" label="频率">
24
       <el-table-column align="center" prop="name" width="50" label="频率">
23
         <template slot-scope="scope">
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
         </template>
29
         </template>
26
       </el-table-column>
30
       </el-table-column>
27
 
31
 
28
       <el-table-column align="center" prop="name" width="100" label="总量">
32
       <el-table-column align="center" prop="name" width="100" label="总量">
29
         <template slot-scope="scope">
33
         <template slot-scope="scope">
30
           <div style="display:flex;">
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
             <div>{{scope.row.prescribing_number_unit}}</div>
38
             <div>{{scope.row.prescribing_number_unit}}</div>
33
           </div>
39
           </div>
34
         </template>
40
         </template>
35
       </el-table-column>
41
       </el-table-column>
36
       <el-table-column align="center" prop="name" width="50" label="单价">
42
       <el-table-column align="center" prop="name" width="50" label="单价">
37
         <template slot-scope="scope">
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
         </template>
47
         </template>
40
       </el-table-column>
48
       </el-table-column>
41
       <el-table-column align="center" prop="name" width="50" label="备注">
49
       <el-table-column align="center" prop="name" width="50" label="备注">
42
         <template slot-scope="scope">
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
         </template>
54
         </template>
45
       </el-table-column>
55
       </el-table-column>
46
     </el-table>
56
     </el-table>
58
       </el-table-column>
68
       </el-table-column>
59
       <el-table-column align="center" prop="single_dose" width="130" :label="'单次\n用量'">
69
       <el-table-column align="center" prop="single_dose" width="130" :label="'单次\n用量'">
60
         <template slot-scope="scope">
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
         </template>
74
         </template>
63
       </el-table-column>
75
       </el-table-column>
64
       <el-table-column align="center" prop="delivery_way" width="130" label="用法">
76
       <el-table-column align="center" prop="delivery_way" width="130" label="用法">
65
         <template slot-scope="scope">
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
         </template>
81
         </template>
68
       </el-table-column>
82
       </el-table-column>
69
       <el-table-column align="center" prop="execution_frequency" width="130" label="频率">
83
       <el-table-column align="center" prop="execution_frequency" width="130" label="频率">
70
         <template slot-scope="scope">
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
         </template>
88
         </template>
73
       </el-table-column>
89
       </el-table-column>
74
       <el-table-column align="center" prop="number_days" width="130" label="天数">
90
       <el-table-column align="center" prop="number_days" width="130" label="天数">
75
         <template slot-scope="scope">
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
         </template>
95
         </template>
78
       </el-table-column>
96
       </el-table-column>
79
       <el-table-column align="center" prop="total" width="100" label="总量">
97
       <el-table-column align="center" prop="total" width="100" label="总量">
80
         <template slot-scope="scope">
98
         <template slot-scope="scope">
81
           <div style="display:flex;">
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
           </div>
103
           </div>
84
         </template>
104
         </template>
85
       </el-table-column>
105
       </el-table-column>
86
       <el-table-column align="center" prop="name" width="50" label="单价">
106
       <el-table-column align="center" prop="name" width="50" label="单价">
87
         <template slot-scope="scope">
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
         </template>
111
         </template>
90
       </el-table-column>
112
       </el-table-column>
91
       <el-table-column align="center" prop="name" width="120" label="备注">
113
       <el-table-column align="center" prop="name" width="120" label="备注">
92
         <template slot-scope="scope">
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
         </template>
118
         </template>
95
       </el-table-column>
119
       </el-table-column>
96
     </el-table>
120
     </el-table>

+ 7 - 8
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

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

+ 2 - 2
src/xt_pages/outpatientDoctorStation/recordPrint.vue 查看文件

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

+ 22 - 2
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue 查看文件

93
 <script>
93
 <script>
94
 
94
 
95
 import { getDataConfig } from "@/utils/data";
95
 import { getDataConfig } from "@/utils/data";
96
-import { getAllDoctorList } from "@/api/project/project"
96
+import { getAllDoctorList,getPatientCaseHistory } from "@/api/project/project"
97
 export default {
97
 export default {
98
     props:{
98
     props:{
99
       patient:Object,
99
       patient:Object,
137
         }
137
         }
138
         return name
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
     created(){
161
     created(){
143
       this.educationOptions = getDataConfig("patient", "education_types");
162
       this.educationOptions = getDataConfig("patient", "education_types");
144
       console.log("22222",this.educationOptions)
163
       console.log("22222",this.educationOptions)
145
       this.getAllDoctorList()
164
       this.getAllDoctorList()
165
+      this.getPatientCaseHistory()
146
     }
166
     }
147
 }
167
 }
148
 </script>
168
 </script>

+ 47 - 37
src/xt_pages/outpatientDoctorStation/template/printOne.vue 查看文件

1
 <template>
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
         <div class="printTitle">血液透析中心处方笺</div>
4
         <div class="printTitle">血液透析中心处方笺</div>
4
         <div class="infoTitle">
5
         <div class="infoTitle">
5
-            <p>姓名:{{patient.name?patient.name:""}}</p>
6
+            <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
6
             <p>性别:
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
             </p>
10
             </p>
10
-            <p>年龄:{{patient.age?patient.age:""}}岁</p>
11
+            <p>年龄:{{item.patient.age?item.patient.age:""}}岁</p>
11
         </div>
12
         </div>
12
         <div class="infoMain">
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
         </div>
20
         </div>
20
         <div class="prescriptionBox">
21
         <div class="prescriptionBox">
21
             <div class="Rp">Rp:</div>
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
             </div>
26
             </div>
26
         </div>
27
         </div>
27
         <div class="doctorBox">
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
         </div>
31
         </div>
31
         <div class="actionBar">
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
         </div>
38
         </div>
38
     </div>
39
     </div>
40
+
41
+
42
+    
43
+</div>
44
+
45
+    
39
 </template>
46
 </template>
40
 <script>
47
 <script>
41
 import { jsGetAge, uParseTime } from '@/utils/tools'
48
 import { jsGetAge, uParseTime } from '@/utils/tools'
92
           // prescription_id:this.prescription_id,
99
           // prescription_id:this.prescription_id,
93
           patient_id:this.$route.query.patient_id,
100
           patient_id:this.$route.query.patient_id,
94
           record_date:this.$route.query.record,
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
         console.log("params---",params)
105
         console.log("params---",params)
98
        getPrescriptionPrint(params).then(response=>{
106
        getPrescriptionPrint(params).then(response=>{
99
          if(response.data.state == 1){
107
          if(response.data.state == 1){
100
             var advicePrint =  response.data.data.advicePrint
108
             var advicePrint =  response.data.data.advicePrint
101
-            console.log("adviceprint",advicePrint)
109
+            console.log("adviceprint9999",advicePrint)
102
             this.advicePrint = advicePrint
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
       this.getInitData()
161
       this.getInitData()
154
       this.getPrescriptionPrint()
162
       this.getPrescriptionPrint()
155
       this.getHisPatientDetail()
163
       this.getHisPatientDetail()
164
+
165
+     
156
    },
166
    },
157
   //  watch:{
167
   //  watch:{
158
   //    patient_id:function(val){
168
   //    patient_id:function(val){

+ 46 - 37
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue 查看文件

1
 <template>
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
         <div style="display:flex;justify-content: space-between;font-weight:bold;">
4
         <div style="display:flex;justify-content: space-between;font-weight:bold;">
4
             <p style="width:300px;display:flex;justify-content: space-between;font-weight:bold;">
5
             <p style="width:300px;display:flex;justify-content: space-between;font-weight:bold;">
5
                 <span>费别</span>
6
                 <span>费别</span>
8
                 <span>保险</span>
9
                 <span>保险</span>
9
                 <span>其他</span>
10
                 <span>其他</span>
10
             </p>
11
             </p>
11
-            <p>就诊日期:{{this.$route.query.record}}</p>
12
+            <p>就诊日期:{{getTime(item.ctime)}}</p>
12
         </div>
13
         </div>
13
         <div class="printTitle">血液透析中心</div>
14
         <div class="printTitle">血液透析中心</div>
14
         <div class="printTitle">处方、治疗单</div>
15
         <div class="printTitle">处方、治疗单</div>
15
         <div class="infoTitle">
16
         <div class="infoTitle">
16
-            <p>门诊编号:34567876532345678</p>
17
+            <p>门诊编号:</p>
17
             <p>电脑号:</p>
18
             <p>电脑号:</p>
18
         </div>
19
         </div>
19
         <div class="infoMain">
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
             <p style="margin-bottom: 10px;width:25%">性别:
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
             </p>
25
             </p>
25
             <p style="margin-bottom: 10px;width:25%">年龄:
26
             <p style="margin-bottom: 10px;width:25%">年龄:
26
-                <span>{{patient.age}}</span>
27
+                <span>{{item.patient.age}}</span>
27
             </p>
28
             </p>
28
             <p style="margin-bottom: 10px;width:25%">参保类型:</p>
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
         </div>
33
         </div>
33
         <div class="prescriptionBox">
34
         <div class="prescriptionBox">
34
             <table style="width:100%;text-align:center;line-height:25px;">
35
             <table style="width:100%;text-align:center;line-height:25px;">
42
                     <td>备注</td>
43
                     <td>备注</td>
43
                     <td>天数</td>
44
                     <td>天数</td>
44
                 </tr>
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
                     <td>{{index+1}}</td>
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
                     <td></td>
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
                 </tr>
56
                 </tr>
56
             </table>
57
             </table>
57
         </div>
58
         </div>
58
         <div class="infoTitle">
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
             <p>签章:</p>
61
             <p>签章:</p>
61
         </div>
62
         </div>
62
         <div class="actionBar">
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
             <p>费用:</p>
65
             <p>费用:</p>
65
         </div>
66
         </div>
66
         <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
67
         <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
89
                 <td style="width:16px;"></td>
90
                 <td style="width:16px;"></td>
90
             </tr>
91
             </tr>
91
         </table>
92
         </table>
93
+     </div>
92
     </div>
94
     </div>
93
 </template>
95
 </template>
94
 <script>
96
 <script>
106
         advicePrint:{},
108
         advicePrint:{},
107
         patient:{},
109
         patient:{},
108
         tableData:[],
110
         tableData:[],
109
-        prescriptionInfo:[]
111
+        prescriptionInfo:[],
112
+        projectList:[]
110
       }
113
       }
111
     },
114
     },
112
    methods:{
115
    methods:{
155
         //   prescription_id:this.prescription_id,
158
         //   prescription_id:this.prescription_id,
156
           patient_id:this.$route.query.patient_id,
159
           patient_id:this.$route.query.patient_id,
157
           record_date:this.$route.query.record,
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
         console.log("999999",params)
164
         console.log("999999",params)
161
        getPrescriptionPrint(params).then(response=>{
165
        getPrescriptionPrint(params).then(response=>{
163
             var advicePrint =  response.data.data.advicePrint
167
             var advicePrint =  response.data.data.advicePrint
164
             console.log("adviceprint",advicePrint)
168
             console.log("adviceprint",advicePrint)
165
             this.advicePrint = advicePrint
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
    created(){
195
    created(){

+ 16 - 2
src/xt_pages/outpatientRegistration/index.vue 查看文件

117
                         </el-select>
117
                         </el-select>
118
                     </el-form-item>
118
                     </el-form-item>
119
                     <el-form-item label="医生:"  prop="doctor" :validate-event="is_Name" >
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
                             <el-option
121
                             <el-option
122
                             v-for="item in doctorList"
122
                             v-for="item in doctorList"
123
                             :key="item.admin_user_id"
123
                             :key="item.admin_user_id"
394
            getAllDoctorList().then(response=>{
394
            getAllDoctorList().then(response=>{
395
              if(response.data.state == 1){
395
              if(response.data.state == 1){
396
                var doctor =  response.data.data.doctor
396
                var doctor =  response.data.data.doctor
397
+               console.log("doctor-----",doctor)
397
                this.doctorList = doctor
398
                this.doctorList = doctor
398
                var department = response.data.data.department
399
                var department = response.data.data.department
399
                console.log("department",department)
400
                console.log("department",department)
520
        },
521
        },
521
        getDictionaryDataConfig(module, filed_name) {
522
        getDictionaryDataConfig(module, filed_name) {
522
         return getDictionaryDataConfig(module, filed_name)
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
     created(){
540
     created(){
527
       //获取当前机构有人员信息
541
       //获取当前机构有人员信息