Browse Source

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

csx 3 years ago
parent
commit
acd28c7d83

File diff suppressed because it is too large
+ 569 - 468
src/xt_pages/dialysis/dialysisPrintOrder.vue


+ 27 - 21
src/xt_pages/dialysis/template/DialysisPrintOrderFortySix.vue View File

64
                   ? patientInfo.DialysisSchedule.device_zone.name
64
                   ? patientInfo.DialysisSchedule.device_zone.name
65
                   : "/"
65
                   : "/"
66
               }}</span>
66
               }}</span>
67
-              
67
+            </div>
68
+          </div>
69
+          <div class="inline_block">
70
+            床号:
71
+            <div class="under_line" style="width: 50px; text-align: center">
72
+              <span>{{
73
+                dialysisOrder &&
74
+                dialysisOrder.DeviceNumber &&
75
+                dialysisOrder.DeviceNumber.number.length > 0
76
+                  ? dialysisOrder.DeviceNumber.number
77
+                  : patientInfo.DialysisSchedule.device_number.number
78
+              }}</span>
68
             </div>
79
             </div>
69
           </div>
80
           </div>
70
           <div class="inline_block">
81
           <div class="inline_block">
78
             <div
89
             <div
79
               class="under_line"
90
               class="under_line"
80
               style="width: 70px; text-align: left"
91
               style="width: 70px; text-align: left"
81
-              v-if="receiverTreatmentAccess.admission_number"
82
-            >
83
-              {{ receiverTreatmentAccess.admission_number }}
84
-            </div>
85
-            <div
86
-              class="under_line"
87
-              style="width: 70px; text-align: left"
88
-              v-else
89
             >
92
             >
90
-              {{ "/" }}
93
+              {{ patientInfo.admission_number }}
91
             </div>
94
             </div>
92
           </div>
95
           </div>
93
         </div>
96
         </div>
310
                       <div
313
                       <div
311
                         class="under_line"
314
                         class="under_line"
312
                         style="
315
                         style="
313
-                          width: 180px;
316
+                          width: 250px;
314
                           text-align: center;
317
                           text-align: center;
315
                           white-space: normal;
318
                           white-space: normal;
316
                         "
319
                         "
1539
             <div class="inline_block">
1542
             <div class="inline_block">
1540
               病区:
1543
               病区:
1541
               <div class="under_line" style="width: 50px; text-align: center">
1544
               <div class="under_line" style="width: 50px; text-align: center">
1542
-                {{ "/" }}
1545
+                <span>{{
1546
+                  patientInfo.DialysisSchedule.device_zone.name
1547
+                    ? patientInfo.DialysisSchedule.device_zone.name
1548
+                    : "/"
1549
+                }}</span>
1543
               </div>
1550
               </div>
1544
             </div>
1551
             </div>
1545
             <div class="inline_block">
1552
             <div class="inline_block">
1546
               床号:
1553
               床号:
1547
               <div class="under_line" style="width: 50px; text-align: center">
1554
               <div class="under_line" style="width: 50px; text-align: center">
1548
-                {{ "/" }}
1555
+                <span>{{
1556
+                  dialysisOrder &&
1557
+                  dialysisOrder.DeviceNumber &&
1558
+                  dialysisOrder.DeviceNumber.number.length > 0
1559
+                    ? dialysisOrder.DeviceNumber.number
1560
+                    : patientInfo.DialysisSchedule.device_number.number
1561
+                }}</span>
1549
               </div>
1562
               </div>
1550
             </div>
1563
             </div>
1551
             <div class="inline_block">
1564
             <div class="inline_block">
1559
               <div
1572
               <div
1560
                 class="under_line"
1573
                 class="under_line"
1561
                 style="width: 70px; text-align: left"
1574
                 style="width: 70px; text-align: left"
1562
-                v-if="patientInfo.admission_number"
1563
               >
1575
               >
1564
                 {{ patientInfo.admission_number }}
1576
                 {{ patientInfo.admission_number }}
1565
               </div>
1577
               </div>
1566
-              <div
1567
-                class="under_line"
1568
-                style="width: 70px; text-align: left"
1569
-                v-else
1570
-              >
1571
-                {{ "/" }}
1572
-              </div>
1578
+             
1573
             </div>
1579
             </div>
1574
           </div>
1580
           </div>
1575
         </template>
1581
         </template>

+ 183 - 122
src/xt_pages/outpatientDoctorStation/print.vue View File

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-      <!-- <template>
3
+    <!-- <template>
4
         <el-button
4
         <el-button
5
           style="float:right;"
5
           style="float:right;"
6
           :loading="loading"
6
           :loading="loading"
12
         >
12
         >
13
       </template> -->
13
       </template> -->
14
 
14
 
15
-    <div class='dialysisPage' style="padding-top:40px;">
16
-      <div v-if="org_id != 10138 && org_id != 10278">
17
-        <printOne v-if="org_id != 10088 && org_id != 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
18
-        <printFour v-if="org_id == 10088" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFour>
19
-        <printFive v-if="org_id == 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFive>
20
-        <printSix v-if="org_id == 10243 || org_id == 9675"  v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printSix>
15
+    <div class="dialysisPage" style="padding-top: 40px">
16
+      <div v-if="org_id != 10138 && org_id != 10278 && org_id != 10243 && org_id != 9675">
17
+        <printOne
18
+          v-if="org_id != 10088 && org_id != 10215"
19
+          v-bind:childResponse="childResponse"
20
+          :advicePrint="advicePrint"
21
+          :ids="ids"
22
+          :patient="patient"
23
+          :hisPatient="hisPatient"
24
+          :doctorPorject="doctorPorject"
25
+          :patient_id="patient_id"
26
+          :record_date="record_date"
27
+          :prescription_id="prescription_id"
28
+        ></printOne>
29
+        <printFour
30
+          v-if="org_id == 10088"
31
+          v-bind:childResponse="childResponse"
32
+          :advicePrint="advicePrint"
33
+          :ids="ids"
34
+          :patient="patient"
35
+          :hisPatient="hisPatient"
36
+          :doctorPorject="doctorPorject"
37
+          :patient_id="patient_id"
38
+          :record_date="record_date"
39
+          :prescription_id="prescription_id"
40
+        ></printFour>
41
+        <printFive
42
+          v-if="org_id == 10215"
43
+          v-bind:childResponse="childResponse"
44
+          :advicePrint="advicePrint"
45
+          :ids="ids"
46
+          :patient="patient"
47
+          :hisPatient="hisPatient"
48
+          :doctorPorject="doctorPorject"
49
+          :patient_id="patient_id"
50
+          :record_date="record_date"
51
+          :prescription_id="prescription_id"
52
+        ></printFive>
53
+
21
         <!-- <printSix v-if="org_id != 10088 && org_id != 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printSix> -->
54
         <!-- <printSix v-if="org_id != 10088 && org_id != 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printSix> -->
22
       </div>
55
       </div>
56
+      <div v-else-if="org_id == 10243 || org_id == 9675">
57
+        <printSix
58
+          v-bind:childResponse="childResponse"
59
+          :advicePrint="advicePrint"
60
+          :ids="ids"
61
+          :patient="patient"
62
+          :hisPatient="hisPatient"
63
+          :doctorPorject="doctorPorject"
64
+          :patient_id="patient_id"
65
+          :record_date="record_date"
66
+          :prescription_id="prescription_id"
67
+        ></printSix>
68
+      </div>
23
       <div v-else>
69
       <div v-else>
24
-        <printThree v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printThree>
70
+        <printThree
71
+          v-bind:childResponse="childResponse"
72
+          :advicePrint="advicePrint"
73
+          :ids="ids"
74
+          :patient="patient"
75
+          :hisPatient="hisPatient"
76
+          :doctorPorject="doctorPorject"
77
+          :patient_id="patient_id"
78
+          :record_date="record_date"
79
+          :prescription_id="prescription_id"
80
+        ></printThree>
25
       </div>
81
       </div>
26
     </div>
82
     </div>
27
   </div>
83
   </div>
28
 </template>
84
 </template>
29
 
85
 
30
 <script>
86
 <script>
31
-
32
-
33
 import { parseTime } from "@/utils";
87
 import { parseTime } from "@/utils";
34
 import { getDialysisRecord } from "@/api/dialysis";
88
 import { getDialysisRecord } from "@/api/dialysis";
35
 import { getDataConfig } from "@/utils/data";
89
 import { getDataConfig } from "@/utils/data";
37
 
91
 
38
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
92
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
39
 import print from "print-js";
93
 import print from "print-js";
40
-import printOne from "./template/printOne"
41
-import printThree from "./template/printThree"
42
-import printFour from "./template/printFour"
43
-import printFive from "./template/printFive"
44
-import printSix from "./template/printSix"
45
-import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
94
+import printOne from "./template/printOne";
95
+import printThree from "./template/printThree";
96
+import printFour from "./template/printFour";
97
+import printFive from "./template/printFive";
98
+import printSix from "./template/printSix";
99
+import {
100
+  getAllDoctorList,
101
+  getAllHisPatientList,
102
+  getPrescriptionPrint,
103
+} from "@/api/project/project";
46
 export default {
104
 export default {
47
   name: "dialysisPrintOrder",
105
   name: "dialysisPrintOrder",
48
   components: {
106
   components: {
51
     printThree,
109
     printThree,
52
     printFour,
110
     printFour,
53
     printFive,
111
     printFive,
54
-    printSix
112
+    printSix,
55
   },
113
   },
56
-  props:{
57
-    paramsObj:Object
114
+  props: {
115
+    paramsObj: Object,
58
   },
116
   },
59
   data() {
117
   data() {
60
     return {
118
     return {
61
       crumbs: [
119
       crumbs: [
62
-        { path: false, name: '门诊医生站' },
63
-        { path: false, name: '打印' }
120
+        { path: false, name: "门诊医生站" },
121
+        { path: false, name: "打印" },
64
       ],
122
       ],
65
-       record_date:"",
66
-       patientTableData:[],
67
-       advicePrint:[],
68
-       hisPatient:{},
69
-       patient:{},
70
-       doctorPorject:{},
71
-       search_input:"",
72
-       loading:false,
73
-       patient_id:"",
74
-       prescription_id:"",
75
-       ids:'',
76
-       paramsObj:{},
77
-       org_id:''
123
+      record_date: "",
124
+      patientTableData: [],
125
+      advicePrint: [],
126
+      hisPatient: {},
127
+      patient: {},
128
+      doctorPorject: {},
129
+      search_input: "",
130
+      loading: false,
131
+      patient_id: "",
132
+      prescription_id: "",
133
+      ids: "",
134
+      paramsObj: {},
135
+      org_id: "",
78
     };
136
     };
79
   },
137
   },
80
-  methods:{
138
+  methods: {
81
     printThisPage() {
139
     printThisPage() {
82
       var ptime = Math.round(new Date().getTime() / 1000);
140
       var ptime = Math.round(new Date().getTime() / 1000);
83
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
141
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
84
 
142
 
85
-      if(this.org_id == 10138 || this.org_id == 10278){
143
+      if (this.org_id == 10138 || this.org_id == 10278) {
86
         setTimeout(() => {
144
         setTimeout(() => {
87
           const style =
145
           const style =
88
-          '@media print {#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 90%;}}}';
146
+            "@media print {#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 90%;}}}";
89
           printJS({
147
           printJS({
90
             printable: "prescriptionPrint1",
148
             printable: "prescriptionPrint1",
91
             type: "html",
149
             type: "html",
92
             style: style,
150
             style: style,
93
-            scanStyles: false
151
+            scanStyles: false,
94
           });
152
           });
95
-        },500)
96
-      }else{
153
+        }, 500);
154
+      } else {
97
         const style =
155
         const style =
98
-        '@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{padding:0 10px;min-height:450px;}.Rp{font-size: 22px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;} .drugsOne{line-height: 1px;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}';
156
+          "@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{padding:0 10px;min-height:450px;}.Rp{font-size: 22px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;} .drugsOne{line-height: 1px;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}";
99
         printJS({
157
         printJS({
100
           printable: "prescriptionPrint",
158
           printable: "prescriptionPrint",
101
           type: "html",
159
           type: "html",
102
           style: style,
160
           style: style,
103
-          scanStyles: false
161
+          scanStyles: false,
104
         });
162
         });
105
       }
163
       }
106
 
164
 
113
       //   });
171
       //   });
114
       // }
172
       // }
115
     },
173
     },
116
-    getAllDoctorList(){
117
-      getAllDoctorList().then(response=>{
118
-        if(response.data.state == 1){
119
-               var doctor =  response.data.data.doctor
120
-
121
-               this.doctorList = doctor
122
-             }
123
-         })
124
-     },
125
-    getAllHisPatientList(){
126
-         const params = {
127
-           record_date:this.record_date
128
-         }
129
-      getAllHisPatientList(params).then(response=>{
130
-         if(response.data.state == 1){
131
-            this.patientTableData = response.data.data.list
132
-            this.patientTableDataTwo = response.data.data.list
133
-
134
-            let cal_one = 0
135
-            let cal_two = 0
136
-            for (let i = 0; i < response.data.data.list.length; i++) {
137
-              if (response.data.data.list[i].prescription == null || response.data.data.list[i].prescription.length == 0) {
138
-                cal_one = cal_one + 1
139
-              }
140
-              if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
141
-                cal_two = cal_two + 1
142
-              }
174
+    getAllDoctorList() {
175
+      getAllDoctorList().then((response) => {
176
+        if (response.data.state == 1) {
177
+          var doctor = response.data.data.doctor;
178
+
179
+          this.doctorList = doctor;
180
+        }
181
+      });
182
+    },
183
+    getAllHisPatientList() {
184
+      const params = {
185
+        record_date: this.record_date,
186
+      };
187
+      getAllHisPatientList(params).then((response) => {
188
+        if (response.data.state == 1) {
189
+          this.patientTableData = response.data.data.list;
190
+          this.patientTableDataTwo = response.data.data.list;
191
+
192
+          let cal_one = 0;
193
+          let cal_two = 0;
194
+          for (let i = 0; i < response.data.data.list.length; i++) {
195
+            if (
196
+              response.data.data.list[i].prescription == null ||
197
+              response.data.data.list[i].prescription.length == 0
198
+            ) {
199
+              cal_one = cal_one + 1;
200
+            }
201
+            if (
202
+              response.data.data.list[i].prescription != null &&
203
+              response.data.data.list[i].prescription.length > 0
204
+            ) {
205
+              cal_two = cal_two + 1;
143
             }
206
             }
144
-            // this.$refs.tab.setCurrentRow(this.patientTableData[0])
145
-            // console.log(this.patientTableData[0])
146
-            // this.choosePatient(this.patientTableData[0])
147
-            this.cal_one = cal_one
148
-            this.cal_two = cal_two
149
-         }
150
-      })
207
+          }
208
+          // this.$refs.tab.setCurrentRow(this.patientTableData[0])
209
+          // console.log(this.patientTableData[0])
210
+          // this.choosePatient(this.patientTableData[0])
211
+          this.cal_one = cal_one;
212
+          this.cal_two = cal_two;
213
+        }
214
+      });
151
     },
215
     },
152
 
216
 
153
-    changePatient(row){
154
-      this.patient_id = row.patient_id
155
-      this.record_date = this.record_date
156
-      this.prescription_id = this.prescription_id
157
-      console.log("row",row)
158
-        // var params = {
159
-        //   patient_id:row.patient_id,
160
-        //   record_date:this.record_date,
161
-        //   prescription_id:this.prescription_id,
162
-        // }
217
+    changePatient(row) {
218
+      this.patient_id = row.patient_id;
219
+      this.record_date = this.record_date;
220
+      this.prescription_id = this.prescription_id;
221
+      console.log("row", row);
222
+      // var params = {
223
+      //   patient_id:row.patient_id,
224
+      //   record_date:this.record_date,
225
+      //   prescription_id:this.prescription_id,
226
+      // }
163
       // getPrescriptionPrint(params).then(response=>{
227
       // getPrescriptionPrint(params).then(response=>{
164
       //     if(response.data.state == 1){
228
       //     if(response.data.state == 1){
165
       //       var advicePrint =  response.data.data.advicePrint
229
       //       var advicePrint =  response.data.data.advicePrint
177
       //     }
241
       //     }
178
       // })
242
       // })
179
     },
243
     },
180
-    searchAction(){
181
-
182
-    }
183
-
244
+    searchAction() {},
184
   },
245
   },
185
 
246
 
186
   created() {
247
   created() {
187
-    this.org_id = this.$store.getters.xt_user.org_id
188
-    this.getAllDoctorList()
189
-    var record_date = this.paramsObj.record
190
-    this.record_date = record_date
191
-    console.log("record_date",record_date)
192
-    var prescription_id = this.paramsObj.prescription_id
193
-    this.prescription_id = prescription_id
194
-    this.patient_id = this.paramsObj.patient_id
195
-    this.ids = this.paramsObj.ids
248
+    this.org_id = this.$store.getters.xt_user.org_id;
249
+    this.getAllDoctorList();
250
+    var record_date = this.paramsObj.record;
251
+    this.record_date = record_date;
252
+    console.log("record_date", record_date);
253
+    var prescription_id = this.paramsObj.prescription_id;
254
+    this.prescription_id = prescription_id;
255
+    this.patient_id = this.paramsObj.patient_id;
256
+    this.ids = this.paramsObj.ids;
196
     // var record_date = this.$route.query.record
257
     // var record_date = this.$route.query.record
197
     // this.record_date = record_date
258
     // this.record_date = record_date
198
     // console.log("record_date",record_date)
259
     // console.log("record_date",record_date)
199
     // var prescription_id = this.$route.query.prescription_id
260
     // var prescription_id = this.$route.query.prescription_id
200
     // this.prescription_id = prescription_id
261
     // this.prescription_id = prescription_id
201
-    this.getAllHisPatientList(record_date)
262
+    this.getAllHisPatientList(record_date);
202
   },
263
   },
203
-  watch:{
204
-    paramsObj:{//深度监听,可监听到对象、数组的变化
205
-      handler(val, oldVal){
206
-        this.paramsObj = val
207
-        this.patient_id = this.paramsObj.patient_id
208
-        var record_date = this.paramsObj.record
209
-        this.record_date = record_date
210
-        console.log("record_date",record_date)
211
-        var prescription_id = this.paramsObj.prescription_id
212
-        this.prescription_id = prescription_id
213
-        this.ids = this.paramsObj.ids
264
+  watch: {
265
+    paramsObj: {
266
+      //深度监听,可监听到对象、数组的变化
267
+      handler(val, oldVal) {
268
+        this.paramsObj = val;
269
+        this.patient_id = this.paramsObj.patient_id;
270
+        var record_date = this.paramsObj.record;
271
+        this.record_date = record_date;
272
+        console.log("record_date", record_date);
273
+        var prescription_id = this.paramsObj.prescription_id;
274
+        this.prescription_id = prescription_id;
275
+        this.ids = this.paramsObj.ids;
214
       },
276
       },
215
-      deep:true
216
-    }
217
-  }
218
-
277
+      deep: true,
278
+    },
279
+  },
219
 };
280
 };
220
 </script>
281
 </script>
221
 
282
 
378
 </style>
439
 </style>
379
 
440
 
380
 <style lang="scss">
441
 <style lang="scss">
381
-
382
-.newContainer{
442
+.newContainer {
383
   .dialysisPage::-webkit-scrollbar {
443
   .dialysisPage::-webkit-scrollbar {
384
     height: 15px;
444
     height: 15px;
385
   }
445
   }
386
 
446
 
387
-  .el-date-editor{
388
-    .el-input__inner{
389
-      padding-right:0px;
447
+  .el-date-editor {
448
+    .el-input__inner {
449
+      padding-right: 0px;
390
     }
450
     }
391
   }
451
   }
392
-  .el-table td, .el-table th{
452
+  .el-table td,
453
+  .el-table th {
393
     text-align: center;
454
     text-align: center;
394
   }
455
   }
395
 }
456
 }
396
-.newContainer::-webkit-scrollbar{
457
+.newContainer::-webkit-scrollbar {
397
   height: 15px !important;
458
   height: 15px !important;
398
 }
459
 }
399
 </style>
460
 </style>

+ 20 - 8
src/xt_pages/outpatientDoctorStation/template/printSix.vue View File

26
           <p>科室:{{ item.info ? getDepart(item.info.departments) : "" }}</p>
26
           <p>科室:{{ item.info ? getDepart(item.info.departments) : "" }}</p>
27
           <p>费别:</p>
27
           <p>费别:</p>
28
           <p>门诊号:{{ hisPatient.number ? hisPatient.number : "" }}</p>
28
           <p>门诊号:{{ hisPatient.number ? hisPatient.number : "" }}</p>
29
-          <p><span>年</span> <span>月</span> <span>日</span></p>
29
+          <p>
30
+            <!-- <span>年</span> <span>月</span> <span>日</span> -->
31
+            {{getTime(item.ctime)?getTime(item.ctime):""}}
32
+          </p>
30
         </div>
33
         </div>
31
 
34
 
32
         <div class="infoTitle" style="border-bottom:1px solid #000;">
35
         <div class="infoTitle" style="border-bottom:1px solid #000;">
393
       return project_name;
396
       return project_name;
394
     },
397
     },
395
 
398
 
396
-    getDiagnosis(id) {
397
-      var name = "";
398
-      for (let i = 0; i < this.diagnoses.length; i++) {
399
-        if (id == this.diagnoses[i].id) {
400
-          name = this.diagnoses[i].class_name;
399
+    getDiagnosis(id){
400
+        let ids = id.split(",")
401
+        var name = ""
402
+        for(let i = 0; i < ids.length; i++){
403
+
404
+          for(let b=0;b<this.diagnoses.length;b++){
405
+            if(parseInt(ids[i]) == this.diagnoses[b].id){
406
+              if(name.length == 0){
407
+                name = this.diagnoses[b].class_name
408
+              }else{
409
+                name = name +"," + this.diagnoses[b].class_name
410
+
411
+              }
412
+            }
413
+          }
401
         }
414
         }
415
+        return name
402
       }
416
       }
403
-      return name;
404
-    },
405
   },
417
   },
406
   created() {
418
   created() {
407
     this.getAllDoctorList();
419
     this.getAllDoctorList();

+ 6 - 4
src/xt_pages/stock/detail/stockOutDetail.vue View File

744
       },
744
       },
745
 
745
 
746
     exportList(){
746
     exportList(){
747
+       console.log("哈哈哈",this.tableOut)
748
+      
747
        for(let i=0;i<this.tableOut.length;i++){
749
        for(let i=0;i<this.tableOut.length;i++){
748
         this.tableOut[i].index = i+1
750
         this.tableOut[i].index = i+1
749
         this.tableOut[i].good_name = this.tableOut[i].good_name
751
         this.tableOut[i].good_name = this.tableOut[i].good_name
750
         this.tableOut[i].specification_name = this.tableOut[i].specification_name
752
         this.tableOut[i].specification_name = this.tableOut[i].specification_name
751
         this.tableOut[i].packing_unit = this.tableOut[i].packing_unit
753
         this.tableOut[i].packing_unit = this.tableOut[i].packing_unit
752
-        if(this.orgId == 9919 || this.orgId == 9671){
754
+        if(this.orgId == 9919){
753
           this.tableOut[i].total_price = (this.tableOut[i].count * this.tableOut[i].buy_price).toFixed(2)
755
           this.tableOut[i].total_price = (this.tableOut[i].count * this.tableOut[i].buy_price).toFixed(2)
754
           this.tableOut[i].packing_price = this.tableOut[i].buy_price
756
           this.tableOut[i].packing_price = this.tableOut[i].buy_price
755
         }else{
757
         }else{
756
-          this.tableOut[i].total_price = (this.tableOut[i].count * this.tableOut[i].packing_price).toFixed(2)
758
+          this.tableOut[i].total_price = (this.tableOut[i].count * this.tableOut[i].retail_price).toFixed(2)
757
         }
759
         }
758
-      
759
         this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
760
         this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
760
        }
761
        }
761
        import('@/vendor/Export2Excel').then(excel => {
762
        import('@/vendor/Export2Excel').then(excel => {
786
           this.tableDataList[i].time = this.getTime(this.tableDataList[i].WarehouseOut.warehouse_out_time)
787
           this.tableDataList[i].time = this.getTime(this.tableDataList[i].WarehouseOut.warehouse_out_time)
787
           this.tableDataList[i].user_name = this.getXuserName(this.tableDataList[i].WarehouseOut.creater)
788
           this.tableDataList[i].user_name = this.getXuserName(this.tableDataList[i].WarehouseOut.creater)
788
           this.tableDataList[i].out_count = this.tableDataList[i].count
789
           this.tableDataList[i].out_count = this.tableDataList[i].count
789
-          if(this.orgId == 9919 || this.orgId == 9671){
790
+          if(this.orgId == 9919){
790
              this.tableDataList[i].total_price = (this.tableDataList[i].count * this.tableDataList[i].GoodInfo.buy_price).toFixed(2)
791
              this.tableDataList[i].total_price = (this.tableDataList[i].count * this.tableDataList[i].GoodInfo.buy_price).toFixed(2)
791
              total += this.tableDataList[i].count * this.tableDataList[i].buy_price
792
              total += this.tableDataList[i].count * this.tableDataList[i].buy_price
792
           }else{
793
           }else{
797
          
798
          
798
         }
799
         }
799
         obj.total_price = total.toFixed(2)
800
         obj.total_price = total.toFixed(2)
801
+      
800
         this.tableDataList.push(obj)
802
         this.tableDataList.push(obj)
801
        import('@/vendor/Export2Excel').then(excel => {
803
        import('@/vendor/Export2Excel').then(excel => {
802
        const tHeader = ['序号','单据编号', '耗材类型', '耗材名称','规格型号','操作时间','制单人','出货价','数量','总价']
804
        const tHeader = ['序号','单据编号', '耗材类型', '耗材名称','规格型号','操作时间','制单人','出货价','数量','总价']

+ 4 - 4
src/xt_pages/stock/drugs/components/drugOutDetail.vue View File

524
              this.tablePrint[i].total = this.getCountSenvenOne(this.tablePrint.drug_id,this.tablePrint[i].child,this.tablePrint[i].price)
524
              this.tablePrint[i].total = this.getCountSenvenOne(this.tablePrint.drug_id,this.tablePrint[i].child,this.tablePrint[i].price)
525
            }else{
525
            }else{
526
               this.tablePrint[i].count = this.getCount(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_unit,this.tablePrint[i].min_number)
526
               this.tablePrint[i].count = this.getCount(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_unit,this.tablePrint[i].min_number)
527
-              this.tablePrint[i].total_price = this.getTotalPrice(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_number,this.tablePrint[i].price)
527
+              this.tablePrint[i].total_price = this.getTotalPrice(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_number,this.tablePrint[i].min_price)
528
               this.tablePrint[i].unit = this.tablePrint[i].dose + this.tablePrint[i].dose_unit + "*" + this.tablePrint[i].min_number +this.tablePrint[i].min_unit +"/"+this.tablePrint[i].max_unit
528
               this.tablePrint[i].unit = this.tablePrint[i].dose + this.tablePrint[i].dose_unit + "*" + this.tablePrint[i].min_number +this.tablePrint[i].min_unit +"/"+this.tablePrint[i].max_unit
529
-              this.tablePrint[i].total = this.getTotalPriceOne(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_number,this.tablePrint[i].price) 
529
+              this.tablePrint[i].total = this.getTotalPriceOne(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_number,this.tablePrint[i].min_price) 
530
            }
530
            }
531
         }
531
         }
532
        console.log("列表数据333333333",this.tablePrint)
532
        console.log("列表数据333333333",this.tablePrint)
533
-      
533
+       
534
        import('@/vendor/Export2Excel').then(excel => {
534
        import('@/vendor/Export2Excel').then(excel => {
535
        const tHeader = ['序号','药品名称', '规格型号', '单位','数量','单价','总价','备注']
535
        const tHeader = ['序号','药品名称', '规格型号', '单位','数量','单价','总价','备注']
536
-       const filterVal = ['index','drug_name', 'unit', 'min_unit','count','price','total_price','remark']
536
+       const filterVal = ['index','drug_name', 'unit', 'min_unit','count','min_price','total_price','remark']
537
        let obj = {'index':'合计','total_price':0.00}
537
        let obj = {'index':'合计','total_price':0.00}
538
        for(let i=0;i<this.tablePrint.length;i++){
538
        for(let i=0;i<this.tablePrint.length;i++){
539
          obj.total_price += this.tablePrint[i].total
539
          obj.total_price += this.tablePrint[i].total

+ 6 - 1
src/xt_pages/supply/components/addPurchaseOrder.vue View File

805
       for (let i = 0; i < arr.length; i++) {
805
       for (let i = 0; i < arr.length; i++) {
806
         total_count += arr[i].stock_count;
806
         total_count += arr[i].stock_count;
807
       }
807
       }
808
-      return total_count;
808
+      if(total_count > 0){
809
+        return total_count;
810
+      }else{
811
+        return ""
812
+      }
813
+    
809
     },
814
     },
810
     calculate: function (val) {
815
     calculate: function (val) {
811
       if (isNaN(val)) {
816
       if (isNaN(val)) {

+ 13 - 2
src/xt_pages/supply/components/editGoodReturn.vue View File

1012
           if(msg == 2){
1012
           if(msg == 2){
1013
             var good_name = response.data.data.good_name
1013
             var good_name = response.data.data.good_name
1014
             var specification_name = response.data.data.specification_name
1014
             var specification_name = response.data.data.specification_name
1015
-            var str = good_name +"*" + specification_name +"无库存,请入库"
1016
-             this.$message.error(str)
1015
+            var str = good_name +"*" + specification_name +"库存不足"+"审核失败"
1016
+            this.$message.error(str)
1017
+
1018
+          }
1019
+          if(msg == 3){
1020
+              var drug_name =  response.data.data.drug_name
1021
+              var dose = response.data.data.dose
1022
+              var dose_unit = response.data.data.dose_unit
1023
+              var min_number = response.data.data.min_number
1024
+              var min_unit =  response.data.data.min_unit
1025
+              var max_unit =  response.data.data.max_unit
1026
+              var str = drug_name + " " + dose + dose_unit + "*" + min_number + min_unit+"/"+max_unit
1027
+              this.$message.error(str + "库存不足")+"审核失败"
1017
           }
1028
           }
1018
           
1029
           
1019
         }
1030
         }