Browse Source

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

XMLWAN 3 years ago
parent
commit
688e57c7f0

+ 5 - 5
src/xt_pages/dialysis/batch_print/batch_print_order_forty.vue View File

@@ -255,7 +255,7 @@
255 255
                         <tbody>
256 256
                         <tr>
257 257
                             <td width="90">活动性出血:</td>
258
-                            <td width="400">
258
+                            <td width="420">
259 259
                                 <div>
260 260
                                     <label-box :isChecked="record.assessment_before_dislysis.is_hemorrhage == 2 ? true : false" showValue="无"></label-box>
261 261
                                     <label-box :isChecked="record.assessment_before_dislysis.is_hemorrhage == 1 && record.assessment_before_dislysis.hemorrhage.indexOf('牙龈出血') > -1 ? true : false" showValue="牙龈出血"></label-box>
@@ -283,7 +283,7 @@
283 283
                         <tbody>
284 284
                         <tr>
285 285
                             <td width="80">血管通路:</td>
286
-                            <td width="570">
286
+                            <td width="590">
287 287
                             <div>
288 288
                                 <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '自体内瘘')" showValue="自体内瘘"></label-box>
289 289
                                 &nbsp;
@@ -311,7 +311,7 @@
311 311
                         <tbody>
312 312
                         <tr>
313 313
                             <td width="70">穿刺方式:</td>
314
-                            <td width="190">
314
+                            <td width="200">
315 315
                             <div>
316 316
                               <label-box showValue="绳梯" :isChecked="record.assessment_before_dislysis.puncture_way.indexOf('绳梯')>-1 ? true : false"></label-box>&nbsp;
317 317
                               <label-box showValue="定点" :isChecked="record.assessment_before_dislysis.puncture_way.indexOf('定点')>-1 ? true : false"></label-box>&nbsp;
@@ -521,7 +521,7 @@
521 521
                                 <td width="80">透析液配方:</td>
522 522
                                 <td width="10">钙</td>
523 523
                                 <td width="10">(</td>
524
-                                <td width="240">
524
+                                <td width="250">
525 525
                                 <label-box :isChecked="record.prescription.dialysate_formulation_name ? record.prescription.dialysate_formulation_name.indexOf('1.25') > -1 ? true : false : false" showValue="1.25"></label-box>
526 526
                                 &nbsp;
527 527
                                 <label-box :isChecked="record.prescription.dialysate_formulation_name ? record.prescription.dialysate_formulation_name.indexOf('1.5') > -1 ? true : false : false" showValue="1.5"></label-box>
@@ -755,7 +755,7 @@
755 755
                             <tbody>
756 756
                             <tr>
757 757
                             <td width="80">拔针压迫:</td>
758
-                            <td width='340'>
758
+                            <td width='360'>
759 759
                                 <label-box showValue="自己压迫" :isChecked="record.assessment_after_dislysis.hemostasis_opera == 3 ? true : false"></label-box>
760 760
                                 &nbsp;
761 761
                                 <label-box showValue="他人协助" :isChecked="record.assessment_after_dislysis.hemostasis_opera == 2 ? true : false"></label-box>

+ 20 - 1
src/xt_pages/user/inspection.vue View File

@@ -202,6 +202,7 @@
202 202
                   v-model="item.value"
203 203
                   style="width:95%"
204 204
                   type="number"
205
+                  @input='changeInput(item)'
205 206
                 >
206 207
                   <template slot="append">{{ item.unit }}</template>
207 208
                 </el-input>
@@ -299,6 +300,24 @@ export default {
299 300
     }
300 301
   },
301 302
   methods: {
303
+    changeInput(item){
304
+      
305
+      if(item.item_name == '血清铁蛋白' || item.item_name == '总铁结合力'){
306
+        let index1 = ''
307
+        let index2 = ''
308
+        this.form.formItem.map((it,index) => {
309
+          if(this.form.formItem[index].item_name == '血清铁蛋白'){
310
+            index1 = index
311
+          }
312
+          if(this.form.formItem[index].item_name == '总铁结合力'){
313
+            index2 = index
314
+          }
315
+          if(it.item_name == '转铁蛋白饱和度(计算)'){
316
+            it.value = (parseFloat(this.form.formItem[index1].value) / parseFloat(this.form.formItem[index2].value)) * 10
317
+          }
318
+        })
319
+      }
320
+    },
302 321
     deleteInspection() {
303 322
       if (this.project == null || this.itemDate == '') {
304 323
         this.$message.error('请先选择删除删除的记录')
@@ -411,7 +430,7 @@ export default {
411 430
           unit: this.project.inspection_reference[index].unit
412 431
         })
413 432
       }
414
-
433
+      console.log('form.formItem',this.form.formItem)
415 434
       this.dialogFormVisible = true
416 435
     },
417 436
     submitEdit(formName) {