Browse Source

11月14日 库存扣减更新

XMLWAN 3 years ago
parent
commit
2f127b7f45

+ 1 - 1
src/xt_pages/data/components/addConsumable.vue View File

@@ -124,7 +124,7 @@
124 124
                         <el-form-item label="库存警戒 : " prop="name">
125 125
                             <el-input v-model="form.stock_warn_count" style="width:160px;" placeholder="" maxlength="30"></el-input>
126 126
                         </el-form-item>
127
-                        <el-form-item label="医保编码 : " prop="name">
127
+                        <el-form-item label="国家编码 : " prop="name">
128 128
                             <el-input v-model="form.medical_insurance_number" style="width:160px;" placeholder="" maxlength="30"></el-input>
129 129
                         </el-form-item>
130 130
                         <el-form-item label="是否特病目录:" prop="name">

+ 1 - 1
src/xt_pages/data/components/addDrugs.vue View File

@@ -263,7 +263,7 @@
263 263
                         </el-form-item>
264 264
 
265 265
 
266
-                        <el-form-item label="医保编码 : " prop="medical_insurance_number">
266
+                        <el-form-item label="国家编码 : " prop="medical_insurance_number">
267 267
                             <el-input v-model="form.medical_insurance_number" style="width:160px;" placeholder=""
268 268
                                       maxlength="30"></el-input>
269 269
                         </el-form-item>

+ 1 - 1
src/xt_pages/data/components/addProject.vue View File

@@ -91,7 +91,7 @@
91 91
                                 </el-option>
92 92
                             </el-select>
93 93
                         </el-form-item>
94
-                        <el-form-item label="医保编码 : " prop="medical_code">
94
+                        <el-form-item label="国家编码 : " prop="medical_code">
95 95
                             <el-input v-model="form.medical_code" style="width:160px;" placeholder="" maxlength="30"></el-input>
96 96
                         </el-form-item>
97 97
                         <el-form-item label="试管颜色 : " prop="tube_color">

+ 1 - 1
src/xt_pages/data/components/consumables.vue View File

@@ -110,7 +110,7 @@
110 110
           {{ scope.row.packing_price }}
111 111
         </template>
112 112
       </el-table-column>
113
-       <el-table-column label="社保目录编码" width="110" align="center">
113
+       <el-table-column label="国家编码" width="110" align="center">
114 114
         <template slot-scope="scope">
115 115
           {{ scope.row.social_security_directory_code }}
116 116
         </template>

+ 1 - 1
src/xt_pages/data/components/drugs.vue View File

@@ -100,7 +100,7 @@
100 100
           <div>{{scope.row.retail_price}}</div>
101 101
         </template>
102 102
       </el-table-column>
103
-       <el-table-column prop="date" label="医保编码" width="100" align="center">
103
+       <el-table-column prop="date" label="国家编码" width="100" align="center">
104 104
         <template slot-scope="scope">
105 105
           <div>{{scope.row.medical_insurance_number}}</div>
106 106
         </template>

+ 1 - 1
src/xt_pages/data/components/editProject.vue View File

@@ -91,7 +91,7 @@
91 91
                                 </el-option>
92 92
                             </el-select>
93 93
                         </el-form-item>
94
-                        <el-form-item label="医保编码 : " prop="medical_code">
94
+                        <el-form-item label="国家编码 : " prop="medical_code">
95 95
                             <el-input v-model="form.medical_code" style="width:160px;" placeholder="" maxlength="30"></el-input>
96 96
                         </el-form-item>
97 97
                         <el-form-item label="试管颜色 : " prop="tube_color">

+ 3 - 3
src/xt_pages/data/components/project.vue View File

@@ -98,7 +98,7 @@
98 98
                     {{getExecutiveSection(scope.row.executive_section)}}
99 99
                 </template>
100 100
             </el-table-column>
101
-            <el-table-column label="医保编码" width="140" align="center">
101
+            <el-table-column label="国家编码" width="140" align="center">
102 102
                 <template  slot-scope="scope">
103 103
                    {{scope.row.medical_code}}
104 104
                 </template>
@@ -653,10 +653,10 @@ export default {
653 653
               }
654 654
           }
655 655
 
656
-         if (results[i]['医保编码'] === undefined) {
656
+         if (results[i]['国家编码'] === undefined) {
657 657
                 obj['medical_code'] = ''
658 658
               } else {
659
-         if (key == '医保编码') {
659
+         if (key == '国家编码') {
660 660
                obj['medical_code'] = results[i][key].replace(/\s/g,"")
661 661
               }
662 662
           }

+ 4 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue View File

@@ -328,8 +328,8 @@
328 328
                         <td width="60" style="height:20px;line-height:20px">温度<br />°C</td>
329 329
                         <td width="60" style="height:20px;line-height:20px">超滤率<br />ml/h</td>
330 330
                         <td width="60" style="height:20px;line-height:20px">超滤量<br />ml</td>
331
-                        <td width="60" style="height:20px;line-height:20px" v-if="prescription.mode_id == 2">置换率<br /><br />ml/h</td>
332
-                        <td width="60" style="height:20px;line-height:20px" v-if="prescription.mode_id == 2">置换量<br /><br />ml</td>
331
+                        <td width="60" style="height:20px;line-height:20px" v-if="record.prescription.mode_id == 2">置换率<br /><br />ml/h</td>
332
+                        <td width="60" style="height:20px;line-height:20px" v-if="record.prescription.mode_id == 2">置换量<br /><br />ml</td>
333 333
                         <td width="60" style="height:20px;line-height:20px">血容量<br />ml</td>
334 334
                         <td width="">病情变化及处理</td>
335 335
                     </tr>
@@ -714,7 +714,7 @@ export default {
714 714
 
715 715
           this.records = this.records.concat(resp.data.schedules)
716 716
 
717
-          console.log('记录', this.records)
717
+          
718 718
 
719 719
           for (const recordIndex in this.records) {
720 720
             var dlegh = 0
@@ -880,6 +880,7 @@ export default {
880 880
           var name = resp.data.name
881 881
           this.adminSign = name
882 882
           console.log('name是', name)
883
+          console.log('记录', this.records)
883 884
           this.loading = false
884 885
         } else {
885 886
           this.loading = false

+ 172 - 171
src/xt_pages/hospitalStation/template/printOne.vue View File

@@ -2,66 +2,66 @@
2 2
   <div id='prescriptionPrint'>
3 3
     <div v-for="(item,index) in advicePrint" :key="index">
4 4
       <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
5
-          <div class="printTitle" v-if="prescriptions[0].med_type == '1111'">{{orgname}}第一类精神药品处方笺</div>
6
-          <div class="printTitle" v-if="prescriptions[0].med_type == '1112'">{{orgname}}第二类精神药品处方笺</div>
7
-          <div class="printTitle" v-else>{{orgname}}处方笺</div>
5
+        <div class="printTitle" v-if="prescriptions[0].med_type == '1111'">{{orgname}}第一类精神药品处方笺</div>
6
+        <div class="printTitle" v-if="prescriptions[0].med_type == '1112'">{{orgname}}第二类精神药品处方笺</div>
7
+        <div class="printTitle" v-else>{{orgname}}处方笺</div>
8 8
 
9 9
 
10
-          <div class="infoTitle">
11
-              <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
12
-              <p>性别:
13
-                <span v-if="item.patient.gender == 1">男</span>
14
-                <span v-if="item.patient.gender == 2">女</span>
15
-              </p>
16
-              <p>年龄:{{getAge(item.patient)?getAge(item.patient):""}}岁</p>
10
+        <div class="infoTitle">
11
+          <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
12
+          <p>性别:
13
+            <span v-if="item.patient.gender == 1">男</span>
14
+            <span v-if="item.patient.gender == 2">女</span>
15
+          </p>
16
+          <p>年龄:{{getAge(item.patient)?getAge(item.patient):""}}岁</p>
17
+        </div>
18
+        <div class="infoMain">
19
+          <div style="margin-bottom: 10px;">门诊号:{{hisPatient.number?hisPatient.number:""}}</div>
20
+          <div style="margin-bottom: 10px;">科室:{{item.info?getDepart(item.info.departments):''}}</div>
21
+          <div style="margin-bottom: 10px;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
22
+          <div style="margin-bottom: 10px;">电话:{{item.patient.phone}}</div>
23
+          <div>地址:{{item.patient.home_address}}</div>
24
+          <div style="display:flex;width:50%;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
25
+        </div>
26
+        <div class="prescriptionBox">
27
+          <div class="Rp">Rp:</div>
28
+          <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
29
+            <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{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> -->
30
+            <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;<span v-if="it.drug.min_unit != it.drug.dose_unit">{{it.drug.dose}}{{it.drug.dose_unit}}&nbsp;* &nbsp;</span>{{it.drug.min_number}}{{it.drug.min_unit}}/{{it.drug.max_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
31
+            <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.execution_frequency}}&nbsp;{{it.delivery_way}}&nbsp;</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
17 32
           </div>
18
-          <div class="infoMain">
19
-              <div style="margin-bottom: 10px;">门诊号:{{hisPatient.number?hisPatient.number:""}}</div>
20
-              <div style="margin-bottom: 10px;">科室:{{item.info?getDepart(item.info.departments):''}}</div>
21
-              <div style="margin-bottom: 10px;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
22
-              <div style="margin-bottom: 10px;">电话:{{item.patient.phone}}</div>
23
-              <div>地址:{{item.patient.home_address}}</div>
24
-              <div style="display:flex;width:50%;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
33
+          <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
34
+            <div class="drugsOne">{{it.item_name?it.item_name:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
25 35
           </div>
26
-          <div class="prescriptionBox">
27
-              <div class="Rp">Rp:</div>
28
-              <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
29
-                  <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{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> -->
30
-                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;<span v-if="it.drug.min_unit != it.drug.dose_unit">{{it.drug.dose}}{{it.drug.dose_unit}}&nbsp;* &nbsp;</span>{{it.drug.min_number}}{{it.drug.min_unit}}/{{it.drug.max_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
31
-                  <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.execution_frequency}}&nbsp;{{it.delivery_way}}&nbsp;</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
32
-              </div>
33
-              <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
34
-                <div class="drugsOne">{{it.item_name?it.item_name:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
35
-               </div>
36
-
37
-              <div class="drugsBox" v-for="(it,index) in item.project" :key="index">
38
-                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.type == 2?getProjectName(it.project_id)?getProjectName(it.project_id):"":it.good_info.good_name}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.count}}{{unit}}</div>
39
-                  <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.delivery_way}}</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
40
-              </div>
41
-              <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
42
-                <div class="drugsOne">{{it.project_id?it.project_id:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
43
-               </div>
44
-               <div style="text-align:center;" >(以下空白)</div>
45 36
 
37
+          <div class="drugsBox" v-for="(it,index) in item.project" :key="index">
38
+            <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.type == 2?getProjectName(it.project_id)?getProjectName(it.project_id):"":it.good_info.good_name}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.count}}{{unit}}</div>
39
+            <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.delivery_way}}</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
46 40
           </div>
47
-          <div class="doctorBox">
48
-              <p>医师:{{item.doctor?item.doctor:""}}</p>
49
-              <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
41
+          <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
42
+            <div class="drugsOne">{{it.project_id?it.project_id:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
50 43
           </div>
51
-          <div class="actionBar">
52
-                 <!-- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
53
-                 <p>配对:</p>
54
-                 <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
55
-                 <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
56
-                 <p>药费:{{getTotalOne(item.id)?getTotalOne(item.id):0}}元</p> -->
44
+          <div style="text-align:center;" >(以下空白)</div>
57 45
 
58
-                 <p>审核:</p>
59
-                 <p>配对:</p>
60
-                 <p>核对:</p>
61
-                 <p>发药:</p>
62
-                 <p>药费:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):0}}元</p>
63
-          </div>
64
-          <div style="page-break-after:always"></div>
46
+        </div>
47
+        <div class="doctorBox">
48
+          <p>医师:{{item.doctor?item.doctor:""}}</p>
49
+          <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
50
+        </div>
51
+        <div class="actionBar">
52
+          <!-- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
53
+          <p>配对:</p>
54
+          <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
55
+          <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
56
+          <p>药费:{{getTotalOne(item.id)?getTotalOne(item.id):0}}元</p> -->
57
+
58
+          <p>审核:</p>
59
+          <p>配对:</p>
60
+          <p>核对:</p>
61
+          <p>发药:</p>
62
+          <p>药费:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):0}}元</p>
63
+        </div>
64
+        <div style="page-break-after:always"></div>
65 65
       </div>
66 66
     </div>
67 67
 
@@ -70,10 +70,10 @@
70 70
 
71 71
 </template>
72 72
 <script>
73
-import { jsGetAge, uParseTime } from '@/utils/tools'
74
-import {getAllDoctorList,getPrescriptionPrint,getHisPatientDetail} from "@/api/project/project"
75
-import {getInitData} from "@/api/his/his"
76
-export default {
73
+  import { jsGetAge, uParseTime } from '@/utils/tools'
74
+  import {getAllDoctorList,getPrescriptionPrint,getHisPatientDetail} from "@/api/project/project"
75
+  import {getInitData} from "@/api/his/his"
76
+  export default {
77 77
     props:{
78 78
       patient_id:Number,
79 79
       record_date:String,
@@ -95,52 +95,52 @@ export default {
95 95
         diagnoses:[],
96 96
       }
97 97
     },
98
-   methods:{
99
-     getAge(patient){
100
-       var thisLen = patient.id_card_no.length
101
-       var birth = ''
102
-       if (thisLen == 15) {
103
-         birth = '19' + patient.id_card_no.substr(6, 6)
104
-       } else {
105
-         birth = patient.id_card_no.substr(6, 8)
106
-       }
107
-       var births =
108
-         birth.substr(0, 4) +
109
-         '-' +
110
-         birth.substr(4, 2) +
111
-         '-' +
112
-         birth.substr(6, 2)
113
-       return jsGetAge(births, '-')
98
+    methods:{
99
+      getAge(patient){
100
+        var thisLen = patient.id_card_no.length
101
+        var birth = ''
102
+        if (thisLen == 15) {
103
+          birth = '19' + patient.id_card_no.substr(6, 6)
104
+        } else {
105
+          birth = patient.id_card_no.substr(6, 8)
106
+        }
107
+        var births =
108
+          birth.substr(0, 4) +
109
+          '-' +
110
+          birth.substr(4, 2) +
111
+          '-' +
112
+          birth.substr(6, 2)
113
+        return jsGetAge(births, '-')
114 114
 
115
-     },
115
+      },
116 116
 
117
-     getAllDoctorList(){
118
-      getAllDoctorList().then(response=>{
119
-        if(response.data.state == 1){
120
-               var doctor =  response.data.data.doctor
117
+      getAllDoctorList(){
118
+        getAllDoctorList().then(response=>{
119
+          if(response.data.state == 1){
120
+            var doctor =  response.data.data.doctor
121 121
 
122
-               this.doctorList = doctor
123
-             }
124
-         })
125
-     },
122
+            this.doctorList = doctor
123
+          }
124
+        })
125
+      },
126 126
 
127 127
       getDoctor(id){
128 128
         var name = ""
129 129
         for(let i=0;i<this.doctorList.length;i++){
130 130
           if(id == this.doctorList[i].admin_user_id){
131
-              name = this.doctorList[i].user_name
131
+            name = this.doctorList[i].user_name
132 132
           }
133 133
         }
134 134
         return name
135 135
       },
136 136
       getTime(value, temp) {
137 137
         if (value != undefined) {
138
-            return uParseTime(value, temp)
138
+          return uParseTime(value, temp)
139 139
         }
140 140
         return ''
141
-     },
142
-       getPrescriptionPrint(){
143
-         var params = {
141
+      },
142
+      getPrescriptionPrint(){
143
+        var params = {
144 144
           // patient_id:this.patient_id,
145 145
           // record_date:this.record_date,
146 146
           // prescription_id:this.prescription_id,
@@ -150,8 +150,8 @@ export default {
150 150
           ids:this.ids
151 151
         }
152 152
         console.log("params",params)
153
-       getPrescriptionPrint(params).then(response=>{
154
-         if(response.data.state == 1){
153
+        getPrescriptionPrint(params).then(response=>{
154
+          if(response.data.state == 1){
155 155
             var advicePrint =  response.data.data.advicePrint
156 156
             console.log("adviceprint9999",advicePrint)
157 157
             this.advicePrint = advicePrint
@@ -164,39 +164,39 @@ export default {
164 164
             console.log("所有项目列表",projectlist)
165 165
             this.projectList = projectlist
166 166
           }
167
-       })
168
-     },
169
-     getHisPatientDetail(){
170
-          const params = {
171
-              patient_id:this.patient_id
172
-          }
173
-       getHisPatientDetail(params).then(response=>{
167
+        })
168
+      },
169
+      getHisPatientDetail(){
170
+        const params = {
171
+          patient_id:this.patient_id
172
+        }
173
+        getHisPatientDetail(params).then(response=>{
174 174
           if(response.data.state == 1){
175
-             var hisPatient =  response.data.data.hisPatient
176
-             console.log("挂号病人",hisPatient)
177
-             this.hisPatient = hisPatient
175
+            var hisPatient =  response.data.data.hisPatient
176
+            console.log("挂号病人",hisPatient)
177
+            this.hisPatient = hisPatient
178 178
           }
179
-       })
180
-     },
181
-     getInitData(){
182
-       getInitData().then(response=>{
179
+        })
180
+      },
181
+      getInitData(){
182
+        getInitData().then(response=>{
183 183
           if(response.data.state == 1){
184 184
             this.department = response.data.data.department
185 185
             this.diagnoses = response.data.data.diagnose
186 186
             console.log("争端",this.diagnoses)
187 187
           }
188
-       })
189
-     },
190
-     getDepart(id){
191
-         var name = ""
192
-       for(let i=0;i<this.department.length;i++){
193
-           if(id == this.department[i].id){
194
-               name = this.department[i].name
195
-           }
196
-       }
197
-       return name
198
-     },
199
-    getTotalOne(id) {
188
+        })
189
+      },
190
+      getDepart(id){
191
+        var name = ""
192
+        for(let i=0;i<this.department.length;i++){
193
+          if(id == this.department[i].id){
194
+            name = this.department[i].name
195
+          }
196
+        }
197
+        return name
198
+      },
199
+      getTotalOne(id) {
200 200
 
201 201
         var total = 0
202 202
         var addtotal = 0
@@ -213,12 +213,12 @@ export default {
213 213
                 addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
214 214
               }
215 215
             }
216
-              addtotal =  Math.floor(addtotal * 100) / 100
217
-        }
216
+            addtotal =  Math.floor(addtotal * 100) / 100
217
+          }
218 218
 
219
-       }
219
+        }
220 220
 
221
-      for (let i = 0; i < this.prescriptions.length; i++) {
221
+        for (let i = 0; i < this.prescriptions.length; i++) {
222 222
           if(id == this.prescriptions[i].id){
223 223
             if (this.prescriptions[i].advices != null) {
224 224
               for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
@@ -231,35 +231,36 @@ export default {
231 231
                 addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
232 232
               }
233 233
             }
234
-              addtotal =  Math.floor(addtotal * 100) / 100
234
+            addtotal =  Math.floor(addtotal * 100) / 100
235
+          }
235 236
         }
236
-       }
237 237
 
238 238
         return total + addtotal
239 239
       },
240 240
 
241
-     getProjectName(id){
241
+      getProjectName(id){
242 242
         var project_name = ""
243 243
         for(let i=0;i<this.projectList.length;i++){
244
-           if(id == this.projectList[i].id){
245
-               project_name = this.projectList[i].project_name
246
-           }
244
+          if(id == this.projectList[i].id){
245
+            project_name = this.projectList[i].project_name
246
+          }
247 247
         }
248 248
         return project_name
249
-     },
249
+      },
250 250
 
251
-     getDiagnosis(id){
252
-        var name = ""
253
-        for(let i=0;i<this.diagnoses.length;i++){
254
-          if(id == this.diagnoses[i].id){
255
-             name = this.diagnoses[i].class_name
251
+      getDiagnosis(id) {
252
+        let arr = id.split(',')
253
+        var name = ''
254
+        for (let i = 0; i < this.diagnoses.length; i++) {
255
+          if (arr.indexOf(String(this.diagnoses[i].id)) > -1) {
256
+            name += this.diagnoses[i].class_name + ' '
256 257
           }
257 258
         }
258 259
         return name
259
-     }
260
+      },
260 261
 
261
-   },
262
-   created(){
262
+    },
263
+    created(){
263 264
       this.getAllDoctorList()
264 265
       this.getInitData()
265 266
       this.getPrescriptionPrint()
@@ -267,85 +268,85 @@ export default {
267 268
       var xtuser = this.$store.getters.xt_user;
268 269
       this.orgname = xtuser.org.org_name;
269 270
 
270
-   },
271
-   watch:{
272
-     ids:function(val){
273
-      this.ids = val
274
-      this.getPrescriptionPrint()
271
+    },
272
+    watch:{
273
+      ids:function(val){
274
+        this.ids = val
275
+        this.getPrescriptionPrint()
276
+      }
275 277
     }
276
-   }
277
-}
278
+  }
278 279
 </script>
279 280
 
280 281
 
281 282
 <style lang="scss" scoped>
282
-.prescription-print{
283
-  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
283
+  .prescription-print{
284
+    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
284 285
     -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
285 286
     box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
286 287
     margin-bottom: 20px;
287 288
     padding:20px 10px;
288
-}
289
-.printTitle{
289
+  }
290
+  .printTitle{
290 291
     font-size: 22px;
291 292
     text-align: center;
292 293
     font-weight: bold;
293
-}
294
-.infoTitle{
294
+  }
295
+  .infoTitle{
295 296
     display: flex;
296 297
     border-bottom: 2px solid #000;
297 298
     margin-top:10px;
298 299
     line-height: 24px;
299 300
     padding:0 10px;
300
-}
301
-.infoTitle p{
301
+  }
302
+  .infoTitle p{
302 303
     width: 200px;
303
-}
304
-.infoMain{
304
+  }
305
+  .infoMain{
305 306
     display: flex;
306 307
     flex-wrap: wrap;
307 308
     border-bottom: 2px solid #000;
308 309
     padding:0 10px;
309
-}
310
-.infoMain div{
310
+  }
311
+  .infoMain div{
311 312
     width: 50%;
312 313
     line-height: 24px;
313
-}
314
-.prescriptionBox{
314
+  }
315
+  .prescriptionBox{
315 316
     padding:0 10px;
316 317
     min-height:450px;
317
-}
318
-.Rp{
318
+  }
319
+  .Rp{
319 320
     font-size: 22px;
320 321
     font-weight: bold;
321
-}
322
-.drugsBox{
322
+  }
323
+  .drugsBox{
323 324
     padding-left: 40px;
324 325
     margin-bottom: 10px;
325
-}
326
-.drugsBox div{
326
+  }
327
+  .drugsBox div{
327 328
     line-height: 20px;
328
-}
329
-.drugsOne{
329
+  }
330
+  .drugsOne{
330 331
     line-height: 24px;
331
-}
332
-.drugsOne span{
332
+  }
333
+  .drugsOne span{
333 334
     margin-right: 20px;
334
-}
335
-.doctorBox{
335
+  }
336
+  .doctorBox{
336 337
     display: flex;
337 338
     justify-content: space-between;
338 339
     padding:0 10px;
339 340
     line-height: 24px;
340 341
     border-bottom: 2px solid #000;
341
-}
342
-.actionBar{
342
+  }
343
+  .actionBar{
343 344
     display: flex;
344 345
     justify-content: space-between;
345 346
     line-height: 24px;
346 347
     padding:0 10px;
347
-}
348
-.actionBar p{
348
+  }
349
+  .actionBar p{
349 350
     width:150px;
350
-}
351
+  }
351 352
 </style>

+ 270 - 269
src/xt_pages/hospitalStation/treatTemplate/printOne.vue View File

@@ -1,223 +1,223 @@
1 1
 <template>
2
-    <div id='prescriptionPrint'>
3
-        <div id='prescription-print' class="prescription-print" v-for="(item,index) in advicePrint" :key="index">
4
-
5
-            <div style="display:flex;justify-content: space-between;font-weight:bold;align-items:center;">
6
-                <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">
7
-                    <span>费别</span>
8
-                    <span>自费</span>
9
-                    <span>公费</span>
10
-                    <span>保险</span>
11
-                    <span>其他</span>
12
-                </div>
13
-                <div>就诊日期:{{getTime(item.ctime,'{y}-{m}-{d}')}}</div>
14
-            </div>
15
-
16
-            <div class="printTitle">{{orgname}}</div>
17
-            <div class="printTitle">处方、治疗单</div>
18
-
19
-            <div class="infoTitle">
20
-                <div>门诊编号:</div>
21
-                <div>电脑号:</div>
22
-            </div>
23
-
24
-            <div class="infoMain">
25
-                <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
26
-                <div style="margin-bottom: 10px;width:25%">性别:
27
-                    <span v-if="item.patient.gender == 1">男</span>
28
-                    <span v-if="item.patient.gender == 2">女</span>
29
-                </div>
30
-                <div style="margin-bottom: 10px;width:25%">年龄:
31
-                    <span>{{getAge(item.patient)?getAge(item.patient):""}}</span>
32
-                </div>
33
-                <div style="margin-bottom: 10px;width:25%">参保类型:{{hisPatient.social_type?hisPatient.social_type:''}}
34
-                </div>
35
-                <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
36
-                <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
37
-                <div style="width:100%;">诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
38
-            </div>
39
-
40
-            <div class="prescriptionBox">
41
-                <table style="width:100%;text-align:center;line-height:25px;">
42
-                    <tr>
43
-                        <td>序号</td>
44
-                        <td>项目名称</td>
45
-                        <td>数量</td>
46
-                        <td>单位</td>
47
-                        <td>单价</td>
48
-                        <td>部位</td>
49
-                        <td>备注</td>
50
-                        <td>天数</td>
51
-                    </tr>
52
-                    <tr v-for="(it,index) in item.project" :key="index">
53
-                        <td>{{index+1}}</td>
54
-                        <td>{{it.type == 2 ? it.project.project_name : it.good_info.good_name}}</td>
55
-                        <td>{{it.count}}</td>
56
-                        <td>{{getUnit(it.unit)}}</td>
57
-                        <td>{{it.price}}</td>
58
-                        <td></td>
59
-                        <td>{{it.remark}}</td>
60
-                        <td>{{it.day}}</td>
61
-
62
-                    </tr>
63
-
64
-                    <tr v-for="(it,index) in item.advices" :key="index">
65
-                        <td>{{index+1}}</td>
66
-                        <td>{{it.advice_name?it.advice_name:''}}</td>
67
-                        <td>{{it.single_dose?it.single_dose:''}}</td>
68
-                        <td>{{it.single_dose_unit?it.single_dose_unit:''}}</td>
69
-                        <td>{{it.price}}</td>
70
-                        <td></td>
71
-                        <td>{{it.remark}}</td>
72
-                        <td>{{it.day}}</td>
73
-
74
-                    </tr>
75
-                </table>
76
-            </div>
77
-
78
-            <div class="infoTitle">
79
-                <div>开单医生:{{item.doctor?item.doctor:''}}</div>
80
-                <div>签章:</div>
81
-            </div>
82
-
83
-            <div class="actionBar">
84
-                <div>执行医生:{{item.doctor?item.doctor:''}}</div>
85
-                <div>费用:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):''}}元</div>
86
-            </div>
87
-
88
-            <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
89
-                <tr>
90
-                    <td style="width:16%;">治疗时间</td>
91
-                    <td style="width:16%;"></td>
92
-                    <td style="width:16%;"></td>
93
-                    <td style="width:16%;"></td>
94
-                    <td style="width:16%;"></td>
95
-                    <td style="width:16%;"></td>
96
-                </tr>
97
-                <tr>
98
-                    <td style="width:16%;">医生签字</td>
99
-                    <td style="width:16%;"></td>
100
-                    <td style="width:16%;"></td>
101
-                    <td style="width:16%;"></td>
102
-                    <td style="width:16%;"></td>
103
-                    <td style="width:16%;"></td>
104
-                </tr>
105
-                <tr>
106
-                    <td style="width:16px;">患者签字</td>
107
-                    <td style="width:16px;"></td>
108
-                    <td style="width:16px;"></td>
109
-                    <td style="width:16px;"></td>
110
-                    <td style="width:16px;"></td>
111
-                    <td style="width:16px;"></td>
112
-                </tr>
113
-            </table>
2
+  <div id='prescriptionPrint'>
3
+    <div id='prescription-print' class="prescription-print" v-for="(item,index) in advicePrint" :key="index">
4
+
5
+      <div style="display:flex;justify-content: space-between;font-weight:bold;align-items:center;">
6
+        <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">
7
+          <span>费别</span>
8
+          <span>自费</span>
9
+          <span>公费</span>
10
+          <span>保险</span>
11
+          <span>其他</span>
12
+        </div>
13
+        <div>就诊日期:{{getTime(item.ctime,'{y}-{m}-{d}')}}</div>
14
+      </div>
15
+
16
+      <div class="printTitle">{{orgname}}</div>
17
+      <div class="printTitle">处方、治疗单</div>
18
+
19
+      <div class="infoTitle">
20
+        <div>门诊编号:</div>
21
+        <div>电脑号:</div>
22
+      </div>
23
+
24
+      <div class="infoMain">
25
+        <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
26
+        <div style="margin-bottom: 10px;width:25%">性别:
27
+          <span v-if="item.patient.gender == 1">男</span>
28
+          <span v-if="item.patient.gender == 2">女</span>
29
+        </div>
30
+        <div style="margin-bottom: 10px;width:25%">年龄:
31
+          <span>{{getAge(item.patient)?getAge(item.patient):""}}</span>
114 32
         </div>
33
+        <div style="margin-bottom: 10px;width:25%">参保类型:{{hisPatient.social_type?hisPatient.social_type:''}}
34
+        </div>
35
+        <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
36
+        <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
37
+        <div style="width:100%;">诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
38
+      </div>
39
+
40
+      <div class="prescriptionBox">
41
+        <table style="width:100%;text-align:center;line-height:25px;">
42
+          <tr>
43
+            <td>序号</td>
44
+            <td>项目名称</td>
45
+            <td>数量</td>
46
+            <td>单位</td>
47
+            <td>单价</td>
48
+            <td>部位</td>
49
+            <td>备注</td>
50
+            <td>天数</td>
51
+          </tr>
52
+          <tr v-for="(it,index) in item.project" :key="index">
53
+            <td>{{index+1}}</td>
54
+            <td>{{it.type == 2 ? it.project.project_name : it.good_info.good_name}}</td>
55
+            <td>{{it.count}}</td>
56
+            <td>{{getUnit(it.unit)}}</td>
57
+            <td>{{it.price}}</td>
58
+            <td></td>
59
+            <td>{{it.remark}}</td>
60
+            <td>{{it.day}}</td>
61
+
62
+          </tr>
63
+
64
+          <tr v-for="(it,index) in item.advices" :key="index">
65
+            <td>{{index+1}}</td>
66
+            <td>{{it.advice_name?it.advice_name:''}}</td>
67
+            <td>{{it.single_dose?it.single_dose:''}}</td>
68
+            <td>{{it.single_dose_unit?it.single_dose_unit:''}}</td>
69
+            <td>{{it.price}}</td>
70
+            <td></td>
71
+            <td>{{it.remark}}</td>
72
+            <td>{{it.day}}</td>
73
+
74
+          </tr>
75
+        </table>
76
+      </div>
77
+
78
+      <div class="infoTitle">
79
+        <div>开单医生:{{item.doctor?item.doctor:''}}</div>
80
+        <div>签章:</div>
81
+      </div>
82
+
83
+      <div class="actionBar">
84
+        <div>执行医生:{{item.doctor?item.doctor:''}}</div>
85
+        <div>费用:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):''}}元</div>
86
+      </div>
87
+
88
+      <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
89
+        <tr>
90
+          <td style="width:16%;">治疗时间</td>
91
+          <td style="width:16%;"></td>
92
+          <td style="width:16%;"></td>
93
+          <td style="width:16%;"></td>
94
+          <td style="width:16%;"></td>
95
+          <td style="width:16%;"></td>
96
+        </tr>
97
+        <tr>
98
+          <td style="width:16%;">医生签字</td>
99
+          <td style="width:16%;"></td>
100
+          <td style="width:16%;"></td>
101
+          <td style="width:16%;"></td>
102
+          <td style="width:16%;"></td>
103
+          <td style="width:16%;"></td>
104
+        </tr>
105
+        <tr>
106
+          <td style="width:16px;">患者签字</td>
107
+          <td style="width:16px;"></td>
108
+          <td style="width:16px;"></td>
109
+          <td style="width:16px;"></td>
110
+          <td style="width:16px;"></td>
111
+          <td style="width:16px;"></td>
112
+        </tr>
113
+      </table>
114
+    </div>
115 115
 
116 116
 
117
-        <!-- <div id='prescriptionPrint'>
117
+    <!-- <div id='prescriptionPrint'>
118 118
 
119
-            <div v-for="(item,index) in advicePrint" :key="index">
120
-                <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
121
-                    <div style="display:flex;justify-content: space-between;font-weight:bold;">
122
-                        <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">
123
-                            <span>费别</span>
124
-                            <span>自费</span>
125
-                            <span>公费</span>
126
-                            <span>保险</span>
127
-                            <span>其他</span>
128
-                        </div>
129
-                        <div>就诊日期:{{getTime(item.ctime)}}</div>
119
+        <div v-for="(item,index) in advicePrint" :key="index">
120
+            <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
121
+                <div style="display:flex;justify-content: space-between;font-weight:bold;">
122
+                    <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">
123
+                        <span>费别</span>
124
+                        <span>自费</span>
125
+                        <span>公费</span>
126
+                        <span>保险</span>
127
+                        <span>其他</span>
130 128
                     </div>
129
+                    <div>就诊日期:{{getTime(item.ctime)}}</div>
130
+                </div>
131 131
 
132
-                    <div class="printTitle">血液透析中心</div>
133
-
134
-                    <div class="printTitle">处方、治疗单</div>
132
+                <div class="printTitle">血液透析中心</div>
135 133
 
136
-                    <div class="infoTitle">
137
-                        <div>门诊编号:</div>
138
-                        <div>电脑号:</div>
139
-                    </div>
134
+                <div class="printTitle">处方、治疗单</div>
140 135
 
141
-                    <div class="infoMain">
142
-                        <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
143
-                        <div style="margin-bottom: 10px;width:25%">性别:
144
-                            <span v-if="item.patient.gender == 1">男</span>
145
-                            <span v-if="item.patient.gender == 2">女</span>
146
-                        </div>
147
-                        <div style="margin-bottom: 10px;width:25%">年龄:
148
-                            <span>{{item.patient.age}}</span>
149
-                        </div>
150
-                        <div style="margin-bottom: 10px;width:25%">参保类型:</div>
151
-                        <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
152
-                        <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
153
-                        <div style="width:100%;">诊断:{{item.patient.diagnose}}</div>
154
-                    </div>
136
+                <div class="infoTitle">
137
+                    <div>门诊编号:</div>
138
+                    <div>电脑号:</div>
139
+                </div>
155 140
 
156
-                    <div class="prescriptionBox">
157
-                        <table style="width:100%;text-align:center;line-height:25px;">
158
-                            <tr>
159
-                                <td>序号</td>
160
-                                <td>项目名称</td>
161
-                                <td>数量</td>
162
-                                <td>单位</td>
163
-                                <td>单价</td>
164
-                                <td>部位</td>
165
-                                <td>备注</td>
166
-                                <td>天数</td>
167
-                            </tr>
168
-                            <tr v-for="(it,index) in item.project" :key="index">
169
-                                <td>{{index+1}}</td>
170
-                                <td>{{getProjectName(it.project_id)}}</td>
171
-                                <td>{{it.single_dose}}</td>
172
-                                <td>{{getUnit(it.unit)}}</td>
173
-                                <td>{{it.price}}</td>
174
-                                <td></td>
175
-                                <td>{{it.remark}}</td>
176
-                                <td>{{it.day}}</td>
177
-
178
-                            </tr>
179
-                        </table>
180
-                    </div>
181
-                    <div class="infoTitle">
182
-                        <div>开单医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
183
-                        <div>签章:</div>
141
+                <div class="infoMain">
142
+                    <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
143
+                    <div style="margin-bottom: 10px;width:25%">性别:
144
+                        <span v-if="item.patient.gender == 1">男</span>
145
+                        <span v-if="item.patient.gender == 2">女</span>
184 146
                     </div>
185
-                    <div class="actionBar">
186
-                        <div>执行医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
187
-                        <div>费用:</div>
147
+                    <div style="margin-bottom: 10px;width:25%">年龄:
148
+                        <span>{{item.patient.age}}</span>
188 149
                     </div>
189
-                    <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
190
-                        <tr>
191
-                            <td style="width:16%;">治疗时间</td>
192
-                            <td style="width:16%;"></td>
193
-                            <td style="width:16%;"></td>
194
-                            <td style="width:16%;"></td>
195
-                            <td style="width:16%;"></td>
196
-                            <td style="width:16%;"></td>
197
-                        </tr>
150
+                    <div style="margin-bottom: 10px;width:25%">参保类型:</div>
151
+                    <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
152
+                    <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
153
+                    <div style="width:100%;">诊断:{{item.patient.diagnose}}</div>
154
+                </div>
155
+
156
+                <div class="prescriptionBox">
157
+                    <table style="width:100%;text-align:center;line-height:25px;">
198 158
                         <tr>
199
-                            <td style="width:16%;">医生签字</td>
200
-                            <td style="width:16%;"></td>
201
-                            <td style="width:16%;"></td>
202
-                            <td style="width:16%;"></td>
203
-                            <td style="width:16%;"></td>
204
-                            <td style="width:16%;"></td>
159
+                            <td>序号</td>
160
+                            <td>项目名称</td>
161
+                            <td>数量</td>
162
+                            <td>单位</td>
163
+                            <td>单价</td>
164
+                            <td>部位</td>
165
+                            <td>备注</td>
166
+                            <td>天数</td>
205 167
                         </tr>
206
-                        <tr>
207
-                            <td style="width:16px;">患者签字</td>
208
-                            <td style="width:16px;"></td>
209
-                            <td style="width:16px;"></td>
210
-                            <td style="width:16px;"></td>
211
-                            <td style="width:16px;"></td>
212
-                            <td style="width:16px;"></td>
168
+                        <tr v-for="(it,index) in item.project" :key="index">
169
+                            <td>{{index+1}}</td>
170
+                            <td>{{getProjectName(it.project_id)}}</td>
171
+                            <td>{{it.single_dose}}</td>
172
+                            <td>{{getUnit(it.unit)}}</td>
173
+                            <td>{{it.price}}</td>
174
+                            <td></td>
175
+                            <td>{{it.remark}}</td>
176
+                            <td>{{it.day}}</td>
177
+
213 178
                         </tr>
214 179
                     </table>
215 180
                 </div>
216
-
181
+                <div class="infoTitle">
182
+                    <div>开单医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
183
+                    <div>签章:</div>
184
+                </div>
185
+                <div class="actionBar">
186
+                    <div>执行医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
187
+                    <div>费用:</div>
188
+                </div>
189
+                <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
190
+                    <tr>
191
+                        <td style="width:16%;">治疗时间</td>
192
+                        <td style="width:16%;"></td>
193
+                        <td style="width:16%;"></td>
194
+                        <td style="width:16%;"></td>
195
+                        <td style="width:16%;"></td>
196
+                        <td style="width:16%;"></td>
197
+                    </tr>
198
+                    <tr>
199
+                        <td style="width:16%;">医生签字</td>
200
+                        <td style="width:16%;"></td>
201
+                        <td style="width:16%;"></td>
202
+                        <td style="width:16%;"></td>
203
+                        <td style="width:16%;"></td>
204
+                        <td style="width:16%;"></td>
205
+                    </tr>
206
+                    <tr>
207
+                        <td style="width:16px;">患者签字</td>
208
+                        <td style="width:16px;"></td>
209
+                        <td style="width:16px;"></td>
210
+                        <td style="width:16px;"></td>
211
+                        <td style="width:16px;"></td>
212
+                        <td style="width:16px;"></td>
213
+                    </tr>
214
+                </table>
217 215
             </div>
218 216
 
219
-        </div> -->
220
-    </div>
217
+        </div>
218
+
219
+    </div> -->
220
+  </div>
221 221
 </template>
222 222
 <script>
223 223
   import { jsGetAge, uParseTime } from '@/utils/tools'
@@ -403,10 +403,11 @@
403 403
         })
404 404
       },
405 405
       getDiagnosis(id) {
406
+        let arr = id.split(',')
406 407
         var name = ''
407 408
         for (let i = 0; i < this.diagnoses.length; i++) {
408
-          if (id == this.diagnoses[i].id) {
409
-            name = this.diagnoses[i].class_name
409
+          if (arr.indexOf(String(this.diagnoses[i].id)) > -1) {
410
+            name += this.diagnoses[i].class_name + ' '
410 411
           }
411 412
         }
412 413
         return name
@@ -436,84 +437,84 @@
436 437
 
437 438
 
438 439
 <style lang="scss" scoped>
439
-    .prescription-print {
440
-        -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
441
-        -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
442
-        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
443
-        margin-bottom: 20px;
444
-        padding: 20px 10px;
445
-    }
440
+  .prescription-print {
441
+    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
442
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
443
+    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
444
+    margin-bottom: 20px;
445
+    padding: 20px 10px;
446
+  }
446 447
 
447
-    .prescription-print {
448
-        font-size: 14px;
449
-    }
448
+  .prescription-print {
449
+    font-size: 14px;
450
+  }
450 451
 
451
-    .printTitle {
452
-        font-size: 18px;
453
-        text-align: center;
454
-        font-weight: bold;
455
-        margin-top: 10px;
456
-    }
452
+  .printTitle {
453
+    font-size: 18px;
454
+    text-align: center;
455
+    font-weight: bold;
456
+    margin-top: 10px;
457
+  }
457 458
 
458
-    .infoTitle {
459
-        display: flex;
460
-        border-bottom: 2px solid #000;
461
-        margin-top: 10px;
462
-        line-height: 24px;
463
-        padding: 0 10px;
464
-    }
459
+  .infoTitle {
460
+    display: flex;
461
+    border-bottom: 2px solid #000;
462
+    margin-top: 10px;
463
+    line-height: 24px;
464
+    padding: 0 10px;
465
+  }
465 466
 
466
-    .infoTitle div {
467
-        width: 300px;
468
-    }
467
+  .infoTitle div {
468
+    width: 300px;
469
+  }
469 470
 
470
-    .infoMain {
471
-        display: flex;
472
-        flex-wrap: wrap;
473
-        border-bottom: 2px solid #000;
474
-        padding: 0 10px;
475
-    }
471
+  .infoMain {
472
+    display: flex;
473
+    flex-wrap: wrap;
474
+    border-bottom: 2px solid #000;
475
+    padding: 0 10px;
476
+  }
476 477
 
477
-    .infoMain div {
478
-        width: 50%;
479
-        line-height: 24px;
480
-    }
478
+  .infoMain div {
479
+    width: 50%;
480
+    line-height: 24px;
481
+  }
481 482
 
482
-    .prescriptionBox {
483
-        padding: 0 10px;
484
-        min-height: 600px;
485
-    }
483
+  .prescriptionBox {
484
+    padding: 0 10px;
485
+    min-height: 600px;
486
+  }
486 487
 
487
-    .Rp {
488
-        font-size: 22px;
489
-        font-weight: bold;
490
-    }
488
+  .Rp {
489
+    font-size: 22px;
490
+    font-weight: bold;
491
+  }
491 492
 
492
-    .drugsBox {
493
-        padding-left: 40px;
494
-        margin-bottom: 10px;
495
-    }
493
+  .drugsBox {
494
+    padding-left: 40px;
495
+    margin-bottom: 10px;
496
+  }
496 497
 
497
-    .drugsBox p {
498
-        line-height: 30px;
499
-    }
498
+  .drugsBox p {
499
+    line-height: 30px;
500
+  }
500 501
 
501
-    .drugsOne {
502
-        line-height: 24px;
503
-    }
502
+  .drugsOne {
503
+    line-height: 24px;
504
+  }
504 505
 
505
-    .drugsOne span {
506
-        margin-right: 20px;
507
-    }
506
+  .drugsOne span {
507
+    margin-right: 20px;
508
+  }
508 509
 
509
-    .actionBar {
510
-        display: flex;
511
-        justify-content: space-between;
512
-        line-height: 24px;
513
-        padding: 0 10px;
514
-    }
510
+  .actionBar {
511
+    display: flex;
512
+    justify-content: space-between;
513
+    line-height: 24px;
514
+    padding: 0 10px;
515
+  }
515 516
 
516
-    .actionBar div {
517
-        width: 150px;
518
-    }
517
+  .actionBar div {
518
+    width: 150px;
519
+  }
519 520
 </style>

+ 213 - 214
src/xt_pages/outpatientCharges/components/registerDialog.vue View File

@@ -1,204 +1,204 @@
1 1
 <template>
2
-    <el-dialog width="854px" class="registerDialog" :title="titles" :visible.sync="visibility"
3
-               :close-on-click-modal="isClose"
4
-               :close-on-press-escape="isClose">
5
-
6
-        <el-form :model="form" :rules="rules" ref="formValue" label-width="100px">
7
-            <el-form-item label="患者姓名:" prop="name" :validate-event="is_Name">
8
-                <el-autocomplete
9
-                        class="checkSearch"
10
-                        popper-class="my-autocomplete"
11
-                        v-model="form.name"
12
-                        :fetch-suggestions="querySearchAsync"
13
-                        :trigger-on-focus="false"
14
-                        placeholder="请输入病人名字"
15
-                        @select="handleSelect"
16
-                        style="width:160px;"
17
-                >
18
-                    <i class="el-icon-search el-input__icon" slot="suffix"></i>
19
-                    <template slot-scope="{ item }">
20
-                        <div class="name">{{ item.name }}</div>
21
-                    </template>
22
-                </el-autocomplete>
23
-            </el-form-item>
24
-
25
-            <el-form-item label="性别:" prop="gender" :validate-event="is_Name">
26
-                <el-select v-model="form.gender" placeholder="请选择" style="width:100%;">
27
-                    <el-option
28
-                            v-for="item in sex"
29
-                            :key="item.value"
30
-                            :label="item.label"
31
-                            :value="item.value">
32
-                    </el-option>
33
-                </el-select>
34
-
35
-
36
-            </el-form-item>
37
-
38
-            <el-form-item label="年龄:" prop="age" :validate-event="is_Name">
39
-                <el-input v-model="form.age"></el-input>
40
-            </el-form-item>
41
-
42
-
43
-            <el-form-item label="出生日期:" prop="birthday" :validate-event="is_Name">
44
-                <el-date-picker v-model="form.birthday" type="date" format="yyyy-MM-dd"
45
-                                value-format="yyyy-MM-dd" placeholder="选择日期" style="width:100%;"></el-date-picker>
46
-            </el-form-item>
47
-
48
-            <el-form-item label="手机号码:" prop="phone">
49
-                <el-input v-model="form.phone"></el-input>
50
-            </el-form-item>
51
-
52
-
53
-            <!--<el-form-item label="医疗类别:">-->
54
-                <!--<el-select v-model="form.medical_care" placeholder="请选择" style="width:100%;">-->
55
-                    <!--<el-option-->
56
-                            <!--v-for="(item,index) in medical_care"-->
57
-                            <!--:key="index"-->
58
-                            <!--:label="item.label"-->
59
-                            <!--:value="item.value">-->
60
-                    <!--</el-option>-->
61
-                <!--</el-select>-->
62
-            <!--</el-form-item>-->
63
-
64
-
65
-            <el-form-item label="证件类型:" prop="certificates" :validate-event="is_Name">
66
-                <el-select v-model="form.certificates" placeholder="请选择" style="width:100%;">
67
-                    <el-option
68
-                            v-for="item in certificates"
69
-                            :key="item.value"
70
-                            :label="item.label"
71
-                            :value="item.value">
72
-                    </el-option>
73
-                </el-select>
74
-            </el-form-item>
75
-
76
-            <el-form-item label="证件号码:" prop="id_card" :validate-event="is_Name">
77
-                <el-input v-model="form.id_card"></el-input>
78
-            </el-form-item>
79
-
80
-            <!--<el-form-item label="处方类型:" prop="p_type" :validate-event="is_Name">-->
81
-                <!--<el-select style="margin-right:5px;width:100px;" v-model="form.p_type" placeholder=""-->
82
-                <!--&gt;-->
83
-                    <!--<el-option-->
84
-                            <!--v-for="(item,index) in registers"-->
85
-                            <!--:key="index"-->
86
-                            <!--:label="item.label"-->
87
-                            <!--:value="item.value">-->
88
-                    <!--</el-option>-->
89
-                <!--</el-select>-->
90
-            <!--</el-form-item>-->
91
-            <!--<el-form-item label="大病类别:" prop="sick_type" :validate-event="is_Name">-->
92
-                <!--<el-select style="margin-right:5px;width:100px;" v-model="form.sick_type" placeholder="">-->
93
-                    <!--<el-option-->
94
-                            <!--v-for="(item,index) in sick"-->
95
-                            <!--:key="index"-->
96
-                            <!--:label="item.class_name"-->
97
-                            <!--:value="item.id">-->
98
-                    <!--</el-option>-->
99
-                <!--</el-select>-->
100
-            <!--</el-form-item>-->
101
-
102
-            <!--<el-form-item label="诊断:" prop="diagnosis" :validate-event="is_Name">-->
103
-                <!--<el-select style="margin-right:5px;width:100px;" v-model="form.diagnosis" placeholder="">-->
104
-                    <!--<el-option-->
105
-                            <!--v-for="(item,index) in diagnoses"-->
106
-                            <!--:key="index"-->
107
-                            <!--:label="item.class_name"-->
108
-                            <!--:value="item.id">-->
109
-                    <!--</el-option>-->
110
-                <!--</el-select>-->
111
-            <!--</el-form-item>-->
112
-
113
-
114
-            <el-form-item label="结算类型:">
115
-                <el-select v-model="form.settlement_value" placeholder="请选择" style="width:100%;">
116
-                    <el-option
117
-                            v-for="item in settlement"
118
-                            :key="item.value"
119
-                            :label="item.label"
120
-                            :value="item.value">
121
-                    </el-option>
122
-                </el-select>
123
-            </el-form-item>
124
-
125
-
126
-            <el-form-item label="社保类型:">
127
-                <el-select v-model="form.social_type" placeholder="请选择" style="width:100%;">
128
-                    <el-option
129
-                            v-for="item in medicalCare"
130
-                            :key="item.value"
131
-                            :label="item.label"
132
-                            :value="item.value">
133
-                    </el-option>
134
-                </el-select>
135
-            </el-form-item>
136
-
137
-
138
-            <el-form-item label="读卡类型:" prop="id_card_type" :validate-event="is_Name">
139
-                <el-select v-model="form.id_card_type" placeholder="请选择">
140
-                    <el-option
141
-                            v-for="item in IDCardTypes"
142
-                            :key="item.value"
143
-                            :label="item.label"
144
-                            :value="item.value">
145
-                    </el-option>
146
-                </el-select>
147
-            </el-form-item>
148
-
149
-
150
-            <el-form-item class="specialFormItem" label="医保卡号:">
151
-                <div style="display:flex;">
152
-                    <el-input v-model="form.medical_insurance_card"></el-input>
153
-                    <el-button style="margin-left:10px;" type="primary" @click="reading">读卡</el-button>
154
-
155
-                </div>
156
-            </el-form-item>
157
-
158
-            <el-form-item label="挂号类型:" :validate-event="is_Name">
159
-                <el-select v-model="form.register" placeholder="请选择" style="width:100%;">
160
-                    <el-option
161
-                            v-for="item in register"
162
-                            :key="item.value"
163
-                            :label="item.label"
164
-                            :value="item.value">
165
-                    </el-option>
166
-                </el-select>
167
-            </el-form-item>
168
-            <el-form-item label="挂号费:">
169
-                <el-input v-model="form.registration_fee"></el-input>
170
-            </el-form-item>
171
-            <el-form-item label="诊疗费:">
172
-                <el-input v-model="form.medical_expenses"></el-input>
173
-            </el-form-item>
174
-
175
-            <el-form-item label="医生:" prop="doctor">
176
-                <el-select v-model="form.doctor" placeholder="请选择">
177
-                    <el-option
178
-                            v-for="(item,index) in doctors"
179
-                            :key="index"
180
-                            :label="item.user_name"
181
-                            :value="item.admin_user_id">
182
-                    </el-option>
183
-                </el-select>
184
-            </el-form-item>
185
-            <el-form-item label="科室:" prop="department">
186
-                <el-select v-model="form.department" placeholder="请选择">
187
-                    <el-option
188
-                            v-for="(item,index) in departments"
189
-                            :key="index"
190
-                            :label="item.name"
191
-                            :value="item.id">
192
-                    </el-option>
193
-                </el-select>
194
-            </el-form-item>
195
-        </el-form>
196
-
197
-        <span slot="footer" class="dialog-footer">
2
+  <el-dialog width="854px" class="registerDialog" :title="titles" :visible.sync="visibility"
3
+             :close-on-click-modal="isClose"
4
+             :close-on-press-escape="isClose">
5
+
6
+    <el-form :model="form" :rules="rules" ref="formValue" label-width="100px">
7
+      <el-form-item label="患者姓名:" prop="name" :validate-event="is_Name">
8
+        <el-autocomplete
9
+          class="checkSearch"
10
+          popper-class="my-autocomplete"
11
+          v-model="form.name"
12
+          :fetch-suggestions="querySearchAsync"
13
+          :trigger-on-focus="false"
14
+          placeholder="请输入病人名字"
15
+          @select="handleSelect"
16
+          style="width:160px;"
17
+        >
18
+          <i class="el-icon-search el-input__icon" slot="suffix"></i>
19
+          <template slot-scope="{ item }">
20
+            <div class="name">{{ item.name }}</div>
21
+          </template>
22
+        </el-autocomplete>
23
+      </el-form-item>
24
+
25
+      <el-form-item label="性别:" prop="gender" :validate-event="is_Name">
26
+        <el-select v-model="form.gender" placeholder="请选择" style="width:100%;">
27
+          <el-option
28
+            v-for="item in sex"
29
+            :key="item.value"
30
+            :label="item.label"
31
+            :value="item.value">
32
+          </el-option>
33
+        </el-select>
34
+
35
+
36
+      </el-form-item>
37
+
38
+      <el-form-item label="年龄:" prop="age" :validate-event="is_Name">
39
+        <el-input v-model="form.age"></el-input>
40
+      </el-form-item>
41
+
42
+
43
+      <el-form-item label="出生日期:" prop="birthday" :validate-event="is_Name">
44
+        <el-date-picker v-model="form.birthday" type="date" format="yyyy-MM-dd"
45
+                        value-format="yyyy-MM-dd" placeholder="选择日期" style="width:100%;"></el-date-picker>
46
+      </el-form-item>
47
+
48
+      <el-form-item label="手机号码:" prop="phone">
49
+        <el-input v-model="form.phone"></el-input>
50
+      </el-form-item>
51
+
52
+
53
+      <!--<el-form-item label="医疗类别:">-->
54
+      <!--<el-select v-model="form.medical_care" placeholder="请选择" style="width:100%;">-->
55
+      <!--<el-option-->
56
+      <!--v-for="(item,index) in medical_care"-->
57
+      <!--:key="index"-->
58
+      <!--:label="item.label"-->
59
+      <!--:value="item.value">-->
60
+      <!--</el-option>-->
61
+      <!--</el-select>-->
62
+      <!--</el-form-item>-->
63
+
64
+
65
+      <el-form-item label="证件类型:" prop="certificates" :validate-event="is_Name">
66
+        <el-select v-model="form.certificates" placeholder="请选择" style="width:100%;">
67
+          <el-option
68
+            v-for="item in certificates"
69
+            :key="item.value"
70
+            :label="item.label"
71
+            :value="item.value">
72
+          </el-option>
73
+        </el-select>
74
+      </el-form-item>
75
+
76
+      <el-form-item label="证件号码:" prop="id_card" :validate-event="is_Name">
77
+        <el-input v-model="form.id_card"></el-input>
78
+      </el-form-item>
79
+
80
+      <!--<el-form-item label="处方类型:" prop="p_type" :validate-event="is_Name">-->
81
+      <!--<el-select style="margin-right:5px;width:100px;" v-model="form.p_type" placeholder=""-->
82
+      <!--&gt;-->
83
+      <!--<el-option-->
84
+      <!--v-for="(item,index) in registers"-->
85
+      <!--:key="index"-->
86
+      <!--:label="item.label"-->
87
+      <!--:value="item.value">-->
88
+      <!--</el-option>-->
89
+      <!--</el-select>-->
90
+      <!--</el-form-item>-->
91
+      <!--<el-form-item label="大病类别:" prop="sick_type" :validate-event="is_Name">-->
92
+      <!--<el-select style="margin-right:5px;width:100px;" v-model="form.sick_type" placeholder="">-->
93
+      <!--<el-option-->
94
+      <!--v-for="(item,index) in sick"-->
95
+      <!--:key="index"-->
96
+      <!--:label="item.class_name"-->
97
+      <!--:value="item.id">-->
98
+      <!--</el-option>-->
99
+      <!--</el-select>-->
100
+      <!--</el-form-item>-->
101
+
102
+      <!--<el-form-item label="诊断:" prop="diagnosis" :validate-event="is_Name">-->
103
+      <!--<el-select style="margin-right:5px;width:100px;" v-model="form.diagnosis" placeholder="">-->
104
+      <!--<el-option-->
105
+      <!--v-for="(item,index) in diagnoses"-->
106
+      <!--:key="index"-->
107
+      <!--:label="item.class_name"-->
108
+      <!--:value="item.id">-->
109
+      <!--</el-option>-->
110
+      <!--</el-select>-->
111
+      <!--</el-form-item>-->
112
+
113
+
114
+      <el-form-item label="结算类型:">
115
+        <el-select v-model="form.settlement_value" placeholder="请选择" style="width:100%;">
116
+          <el-option
117
+            v-for="item in settlement"
118
+            :key="item.value"
119
+            :label="item.label"
120
+            :value="item.value">
121
+          </el-option>
122
+        </el-select>
123
+      </el-form-item>
124
+
125
+
126
+      <el-form-item label="社保类型:">
127
+        <el-select v-model="form.social_type" placeholder="请选择" style="width:100%;">
128
+          <el-option
129
+            v-for="item in medicalCare"
130
+            :key="item.value"
131
+            :label="item.label"
132
+            :value="item.value">
133
+          </el-option>
134
+        </el-select>
135
+      </el-form-item>
136
+
137
+
138
+      <el-form-item label="读卡类型:" prop="id_card_type" :validate-event="is_Name">
139
+        <el-select v-model="form.id_card_type" placeholder="请选择">
140
+          <el-option
141
+            v-for="item in IDCardTypes"
142
+            :key="item.value"
143
+            :label="item.label"
144
+            :value="item.value">
145
+          </el-option>
146
+        </el-select>
147
+      </el-form-item>
148
+
149
+
150
+      <el-form-item class="specialFormItem" label="医保卡号:">
151
+        <div style="display:flex;">
152
+          <el-input v-model="form.medical_insurance_card"></el-input>
153
+          <el-button style="margin-left:10px;" type="primary" @click="reading">读卡</el-button>
154
+
155
+        </div>
156
+      </el-form-item>
157
+
158
+      <el-form-item label="挂号类型:" :validate-event="is_Name">
159
+        <el-select v-model="form.register" placeholder="请选择" style="width:100%;">
160
+          <el-option
161
+            v-for="item in register"
162
+            :key="item.value"
163
+            :label="item.label"
164
+            :value="item.value">
165
+          </el-option>
166
+        </el-select>
167
+      </el-form-item>
168
+      <el-form-item label="挂号费:">
169
+        <el-input v-model="form.registration_fee"></el-input>
170
+      </el-form-item>
171
+      <el-form-item label="诊疗费:">
172
+        <el-input v-model="form.medical_expenses"></el-input>
173
+      </el-form-item>
174
+
175
+      <el-form-item label="医生:" prop="doctor">
176
+        <el-select v-model="form.doctor" placeholder="请选择">
177
+          <el-option
178
+            v-for="(item,index) in doctors"
179
+            :key="index"
180
+            :label="item.user_name"
181
+            :value="item.admin_user_id">
182
+          </el-option>
183
+        </el-select>
184
+      </el-form-item>
185
+      <el-form-item label="科室:" prop="department">
186
+        <el-select v-model="form.department" placeholder="请选择">
187
+          <el-option
188
+            v-for="(item,index) in departments"
189
+            :key="index"
190
+            :label="item.name"
191
+            :value="item.id">
192
+          </el-option>
193
+        </el-select>
194
+      </el-form-item>
195
+    </el-form>
196
+
197
+    <span slot="footer" class="dialog-footer">
198 198
     <el-button @click="cancel('formValue')">取 消</el-button>
199 199
     <el-button type="primary" @click="confirm('formValue')">挂 号</el-button>
200 200
   </span>
201
-    </el-dialog>
201
+  </el-dialog>
202 202
 
203 203
 </template>
204 204
 
@@ -470,23 +470,23 @@
470 470
               var patient = response.data.data.patient
471 471
 
472 472
               if (that.form.id_card_type == 1) {
473
-                this.form.id = patient.id
473
+                that.form.id = patient.id
474 474
                 that.form.name = patient.name
475
-                that.form.sex = patient.gender
475
+                that.form.gender = patient.gender
476 476
                 that.form.age = patient.age
477 477
                 that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
478 478
                 that.form.phone = patient.phone
479
-                that.form.idCard = patient.id_card_no
480
-                that.form.medicalInsuranceCard = response.data.data.number
479
+                that.form.id_card = patient.id_card_no
480
+                that.form.medical_insurance_card = response.data.data.number
481 481
 
482 482
               } else if (that.form.id_card_type == 2) {
483
-                this.form.id = patient.id
483
+                that.form.id = patient.id
484 484
                 that.form.name = patient.name
485
-                that.form.sex = patient.gender
485
+                that.form.gender = patient.gender
486 486
                 that.form.age = patient.age
487 487
                 that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
488 488
                 that.form.phone = patient.phone
489
-                that.form.idCard = patient.id_card_no
489
+                that.form.id_card = patient.id_card_no
490 490
               }
491 491
               that.$message({ message: '读卡成功', type: 'success' })
492 492
             }
@@ -494,7 +494,6 @@
494 494
           .catch(function(error) {
495 495
 
496 496
           })
497
-
498 497
       },
499 498
       getDictionaryDataConfig(module, filed_name) {
500 499
         return getDictionaryDataConfig(module, filed_name)
@@ -574,16 +573,16 @@
574 573
 </script>
575 574
 
576 575
 <style lang="scss" scoped>
577
-    .registerDialog {
576
+  .registerDialog {
578 577
 
579
-    .el-form {
580
-        display: flex;
581
-        flex-wrap: wrap;
582
-    }
578
+  .el-form {
579
+    display: flex;
580
+    flex-wrap: wrap;
581
+  }
583 582
 
584
-    .el-form-item {
585
-        width: 50%;
586
-    }
583
+  .el-form-item {
584
+    width: 50%;
585
+  }
587 586
 
588
-    }
587
+  }
589 588
 </style>

+ 1 - 1
src/xt_pages/stock/Dialog/goodInfoDailog.vue View File

@@ -148,7 +148,7 @@
148 148
               </el-checkbox-group>
149 149
             </el-form-item>
150 150
 
151
-            <el-form-item label="社保目录编码:" >
151
+            <el-form-item label="国家编码:" >
152 152
                <el-input v-model="form.social_security_directory_code" style="width:180px"></el-input>
153 153
             </el-form-item>
154 154
 

+ 28 - 17
src/xt_pages/workforce/appointment.vue View File

@@ -546,6 +546,8 @@
546 546
           }
547 547
           
548 548
           if(this.export_type == 1){
549
+            console.log("进来了吗22323323223",this.tableList,this.newDay[0])
550
+            
549 551
             //  const multiHeader = [['区号', '机号', '周一'+"("+this.newDay[0]+")" , '', '', '周二'+"("+this.newDay[1]+")", '', '', '周三'+"("+this.newDay[2]+")" , '', '', '周四'+"("+this.newDay[3]+")" , '', '', '周五'+"("+this.newDay[4]+")" , '', '', '周六'+"("+this.newDay[5]+")" , '', '', '周日'+"("+this.newDay[6]+")" , '', '', '周一'+"("+this.days[7]+")" , '', '', '周二'+"("+this.days[8]+")" , '', '', '周三'+"("+this.days[9]+")" , '', '', '周四'+"("+this.days[10]+")" , '', '', '周五'+"("+this.days[11]+")" , '', '', '周六'+"("+this.days[12]+")" , '', '', '周日'+"("+this.days[13]+")", '', '', '周一'+"("+this.days[14]+")", '', '', '周二'+"("+this.days[15]+")", '', '', '周三'+"("+this.days[16]+")", '', '', '周四'+"("+this.days[17]+")", '', '', '周五'+"("+this.days[18]+")", '', '', '周六'+"("+this.days[19]+")", '', '', '周日'+"("+this.days[20]+")", '', '']]
550 552
             //  const header = ['', '', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上']
551 553
             //  const merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1', 'X1:Z1', 'AA1:AC1', 'AD1:AF1', 'AG1:AI1', 'AJ1:AL1', 'AM1:AO1', 'AP1:AR1', 'AS1:AU1', 'AV1:AX1', 'AY1:BA1', 'BB1:BD1', 'BE1:BG1', 'BH1:BJ1', 'BK1:BM1']
@@ -581,18 +583,29 @@
581 583
               data.push(Object.values(item))
582 584
 
583 585
             })
584
-            console.log("data",this.$refs.tableData)
586
+           
585 587
             
586 588
             const filename = '排班模版'
587
-           
588
-            excel.export_json_to_excel1({
589
-              multiHeader,
590
-              header,
591
-              merges,
592
-              data,
593
-              filename,
594
-              ref: this.$refs['tableData'].$refs['table'].$el
595
-            })
589
+            console.log("multiHeaders", this.$store.getters.xt_user.org.id,)
590
+
591
+            if(this.$store.getters.xt_user.org.id == 10234){
592
+              excel.export_json_to_excel1({
593
+                multiHeader,
594
+                header,
595
+                merges,
596
+                data,
597
+                filename,
598
+                ref: this.$refs['tableData'].$refs['table'].$el
599
+              })
600
+            }else{
601
+              excel.export_json_to_excel({
602
+                multiHeader,
603
+                header,
604
+                merges,
605
+                data,
606
+                filename
607
+              })
608
+            }
596 609
             this.downloadLoading = false
597 610
           }
598 611
         })
@@ -2148,7 +2161,7 @@
2148 2161
               partition_id:this.partition_id,
2149 2162
               schedule_type:this.schedule_type
2150 2163
             }
2151
-          //  console.log("params2222",params)
2164
+        console.log("params2222",params)
2152 2165
          getThreeWeekList(params).then(response=>{
2153 2166
            if(response.data.state == 1){
2154 2167
              var partitions =  response.data.data.partitions
@@ -2651,12 +2664,14 @@
2651 2664
                   }
2652 2665
                 }
2653 2666
              }
2667
+             console.log("list23233223232323232323",list)
2654 2668
              this.tableList = list
2655 2669
            }
2656 2670
          })
2657 2671
        },
2658 2672
 
2659 2673
        getTimestamp(time) { //把时间日期转成时间戳
2674
+         console.log("日期",new Date(time))
2660 2675
           return (new Date(time)).getTime() / 1000 - 28800
2661 2676
        },
2662 2677
 
@@ -2675,9 +2690,9 @@
2675 2690
        changeWeek(val){
2676 2691
        
2677 2692
          var start = this.getTimestamp(val) - 57600
2678
-       
2693
+         console.log("val23232332323232",start)
2679 2694
          this.start_time = this.getTime(start)
2680
-       
2695
+         
2681 2696
          this.newDay.push(this.start_time)  
2682 2697
          var next = start + 86400
2683 2698
          var nest_day = this.getTime(next)
@@ -2707,10 +2722,6 @@
2707 2722
          this.end_time = this.getTime(end)
2708 2723
        
2709 2724
          this.newDay.push(this.end_time)
2710
-      
2711
-     
2712
-
2713
-        //  console.log("33333333",this.newDay)
2714 2725
          this.export_type = 1
2715 2726
          this.getThreeWeekList()
2716 2727
        },

+ 2 - 2
src/xt_pages/workforce/next_remind_print.vue View File

@@ -156,7 +156,7 @@
156 156
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
157 157
       this.week_type = this.$route.query.week_type
158 158
       var now_time = parseInt(this.week_type) * 86400 + this.start_time
159
-      console.log("now_time23233232322323",now_time)
159
+      // console.log("now_time23233232322323",now_time)
160 160
       this.now_time = now_time
161 161
       this.week_time  = this.$route.query.week_time
162 162
       this.zone = this.$route.query.zone
@@ -173,7 +173,7 @@
173 173
           zone:this.zone,
174 174
           record_date:this.getTime(now_time)
175 175
         }
176
-     console.log("下周打印时间",params)
176
+    //  console.log("下周打印时间",params)
177 177
       getNextScheduleWeekDay(params).then(rs => {
178 178
         var resp = rs.data
179 179
         console.log(resp)