see999 3 years ago
parent
commit
4b2b3f18ad

+ 4 - 6
src/xt_pages/hospitalStation/components/prescriptionTable.vue View File

125
     <el-table v-if="activeType == 2" :data="prescription.project" border style="width: 99%;"
125
     <el-table v-if="activeType == 2" :data="prescription.project" border style="width: 99%;"
126
               :row-style="{ color: '#303133' }"
126
               :row-style="{ color: '#303133' }"
127
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
127
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
128
-      <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
128
+      <el-table-column align="center" type="index" width="40" label="序号">
129
+        <template slot-scope="scope">{{scope.$index+1}}</template>
130
+      </el-table-column>
129
       <el-table-column align="center" prop="project_name" label="名称">
131
       <el-table-column align="center" prop="project_name" label="名称">
130
         <template slot-scope="scope"><span :title="scope.row.project_name">{{ scope.row.project_name }}</span>
132
         <template slot-scope="scope"><span :title="scope.row.project_name">{{ scope.row.project_name }}</span>
131
         </template>
133
         </template>
442
       getAllChange(scope) {
444
       getAllChange(scope) {
443
         if (scope.row.drug.min_unit == scope.row.single_dose_unit) {
445
         if (scope.row.drug.min_unit == scope.row.single_dose_unit) {
444
           if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
446
           if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
445
-            console.log(1)
446
             scope.row.prescribing_number = scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)
447
             scope.row.prescribing_number = scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)
447
           } else {
448
           } else {
448
-            console.log(12)
449
             scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1)) * (scope.row.day ? scope.row.day : 1) / scope.row.drug.min_number)
449
             scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1)) * (scope.row.day ? scope.row.day : 1) / scope.row.drug.min_number)
450
           }
450
           }
451
         } else {
451
         } else {
452
           if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
452
           if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
453
-            console.log(123)
454
             scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose)
453
             scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose)
455
           } else {
454
           } else {
456
-            console.log(1234)
457
             scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose / scope.row.drug.min_number)
455
             scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose / scope.row.drug.min_number)
458
           }
456
           }
459
         }
457
         }
574
 
572
 
575
         },
573
         },
576
         deep: true
574
         deep: true
577
-      }
575
+      },
578
       // "prescription.project":{
576
       // "prescription.project":{
579
       //   handler(newVal,oldVal){
577
       //   handler(newVal,oldVal){
580
       //     newVal.map((item,index) => {
578
       //     newVal.map((item,index) => {

+ 7 - 7
src/xt_pages/user/hospitalSummaryPrint.vue View File

176
             <td style="text-align:center;width:300px" colspan="1">
176
             <td style="text-align:center;width:300px" colspan="1">
177
               出院诊断:
177
               出院诊断:
178
             </td>
178
             </td>
179
-             <td style="text-align:center;width:170px" colspan="11">
179
+             <td style="text-align:center;" colspan="11">
180
              
180
              
181
               <span style="display:inline-block;margin-left:10px;text-align:left;">
181
               <span style="display:inline-block;margin-left:10px;text-align:left;">
182
                <span v-html="hosDetail.discharge_diagnosis"></span>  
182
                <span v-html="hosDetail.discharge_diagnosis"></span>  
188
             <td style="text-align:center;width:300px" colspan="1">
188
             <td style="text-align:center;width:300px" colspan="1">
189
               入院时病情:
189
               入院时病情:
190
             </td>
190
             </td>
191
-           <td style="text-align:center;width:170px" colspan="11">
191
+           <td colspan="11">
192
             
192
             
193
               <span style="display:inline-block;margin-left:10px;text-align:left;">
193
               <span style="display:inline-block;margin-left:10px;text-align:left;">
194
                  <span v-html="hosDetail.diagnosis_admission"></span>
194
                  <span v-html="hosDetail.diagnosis_admission"></span>
202
               诊断经过:
202
               诊断经过:
203
            
203
            
204
             </td>
204
             </td>
205
-            <td style="text-align:center;width:170px" colspan="11">
205
+            <td colspan="11">
206
               <span style="display:inline-block;margin-left:10px;text-align:left;">
206
               <span style="display:inline-block;margin-left:10px;text-align:left;">
207
                <span v-html="hosDetail.treatment"></span> 
207
                <span v-html="hosDetail.treatment"></span> 
208
               </span>
208
               </span>
213
             <td style="text-align:center;width:170px" colspan="1">
213
             <td style="text-align:center;width:170px" colspan="1">
214
               出院时病情:
214
               出院时病情:
215
             </td>
215
             </td>
216
-            <td style="text-align:center;width:170px" colspan="11">
216
+            <td colspan="11">
217
             
217
             
218
               <span style="display:inline-block;margin-left:10px;text-align:left;">
218
               <span style="display:inline-block;margin-left:10px;text-align:left;">
219
                <span v-html="hosDetail.illness_discharge"></span> 
219
                <span v-html="hosDetail.illness_discharge"></span> 
226
             <td style="text-align:center;width:300px" colspan="1">
226
             <td style="text-align:center;width:300px" colspan="1">
227
               出院医嘱:
227
               出院医嘱:
228
             </td>
228
             </td>
229
-            <td style="text-align:center;width:170px" colspan="11">
229
+            <td colspan="11">
230
               <span style="display:inline-block;margin-left:10px;text-align:left;">
230
               <span style="display:inline-block;margin-left:10px;text-align:left;">
231
                 <span v-html="hosDetail.discharge_advice"></span> 
231
                 <span v-html="hosDetail.discharge_advice"></span> 
232
               </span>
232
               </span>
234
             
234
             
235
           </tr>
235
           </tr>
236
           <tr>
236
           <tr>
237
-            <td style="text-align:center;width:170px" colspan="4">
237
+            <td style="text-align:center;width:170px" colspan="3">
238
               <span style="display:inline-block;margin-left:10px;">
238
               <span style="display:inline-block;margin-left:10px;">
239
                
239
                
240
               </span>
240
               </span>
241
             </td>
241
             </td>
242
-            <td style="text-align:center;width:170px" colspan="2">
242
+            <td style="text-align:center;width:170px" colspan="3">
243
               上级医师签名:
243
               上级医师签名:
244
             </td>
244
             </td>
245
             <td style="text-align:center;width:170px" colspan="2">
245
             <td style="text-align:center;width:170px" colspan="2">