Browse Source

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

huangyw 2 years ago
parent
commit
67473ed860

+ 7 - 5
src/xt_pages/data/components/dialysisOff.vue View File

@@ -32,8 +32,8 @@
32 32
 
33 33
       <el-table-column align="center" label="是否必填">
34 34
         <template slot-scope="scope">
35
-          <span v-if="scope.row.is_write == 1">是</span>
36
-          <span v-if="scope.row.is_write == 0">否</span>
35
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 1">是</span>
36
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 0">否</span>
37 37
         </template>
38 38
       </el-table-column>
39 39
 
@@ -48,7 +48,7 @@
48 48
             >
49 49
             </el-button>
50 50
             <el-button
51
-              v-if="scope.row.is_write == 1"
51
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
52 52
               size="small"
53 53
               type="danger"
54 54
               icon="el-icon-remove-outline"
@@ -65,7 +65,7 @@
65 65
             >
66 66
             </el-button>
67 67
             <el-button
68
-              v-if="scope.row.is_write == 0"
68
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
69 69
               size="small"
70 70
               type="primary"
71 71
               icon="el-icon-view"
@@ -267,7 +267,9 @@ export default {
267 267
         .catch(() => {});
268 268
     }
269 269
   },
270
- 
270
+  created(){
271
+    console.log("dialysis_off_data",this.dialysis_off_data)
272
+  }
271 273
 };
272 274
 </script>
273 275
 

+ 8 - 2
src/xt_pages/data/showConfig.vue View File

@@ -179,7 +179,10 @@ export default {
179 179
      for (let i = 0; i < this.dialysis_off_data.length; i++) {
180 180
         if (this.dialysis_off_data[i].id == object.id) {
181 181
           this.dialysis_off_data[i].is_show = object.is_show;
182
-          this.dialysis_off_data[i].is_write = object.is_write
182
+          if(obj.is_write!=undefined){
183
+           this.dialysis_off_data[i].is_write = object.is_write
184
+          }
185
+          
183 186
         }
184 187
       }
185 188
     }
@@ -188,8 +191,11 @@ export default {
188 191
   created() {
189 192
     var filedList = store.getters.xt_user.fileds;
190 193
     console.log("地址32323232232332322我噢",filedList)
191
-  
194
+     
192 195
     for (let i = 0; i < filedList.length; i++) {
196
+      if(filedList[i].module == 9){
197
+        console.log("filedList222222",filedList)
198
+      }
193 199
       switch (filedList[i].module) {
194 200
         case 1:
195 201
           this.dialysis_prescription_data.push(filedList[i]);

+ 8 - 8
src/xt_pages/dialysis/details/assessmentBefore.vue View File

@@ -5,7 +5,7 @@
5 5
     </h2>
6 6
     <div class="plate ">
7 7
       <ul>
8
-        <li v-if="isShow('透前重')">
8
+        <li v-if="isShow('透前重')">
9 9
           <label>透前体重 : </label>
10 10
           <span class="content" v-if="weight_before != '0'">{{
11 11
             weight_before
@@ -274,8 +274,8 @@
274 274
           <span class="unit"></span>
275 275
         </li>
276 276
 
277
-        <li v-if="isShow('血管通路操作')">
278
-          <label>血管通路操作:</label>
277
+        <li v-if="isShow('血管通路')">
278
+          <label>血管通路:</label>
279 279
           <span class="content">{{
280 280
             getBloodAccessOpera(this.record.blood_access_part_opera_id)
281 281
           }}</span>
@@ -316,7 +316,7 @@
316 316
           <span class="content">{{ this.record.special_treatment}}</span>
317 317
           <span class="unit"></span>
318 318
         </li>
319
-        
319
+
320 320
         <li v-if="isShow('血栓')">
321 321
           <label>血栓: </label>
322 322
           <span class="content" v-if="this.record.thromubus_type == 1">有</span>
@@ -329,7 +329,7 @@
329 329
           <span class="content">{{this.record.thrombus_av}}</span>
330 330
           <span class="unit"></span>
331 331
         </li>
332
-       
332
+
333 333
         <li v-if="isShow('血栓')">
334 334
           <label>导管A端约(cm): </label>
335 335
           <span class="content">{{this.record.thromubus_a}}</span>
@@ -355,7 +355,7 @@
355 355
           <span class="content">{{this.record.pre_dialysis_drugs}}</span>
356 356
           <span class="unit"></span>
357 357
         </li>
358
-       
358
+
359 359
         <li v-if="isShow('围手术期')">
360 360
           <label>围手术期: </label>
361 361
           <span class="content">
@@ -389,7 +389,7 @@
389 389
           <span class="content">{{this.record.suction}}</span>
390 390
           <span class="unit"></span>
391 391
         </li>
392
-       
392
+
393 393
       </ul>
394 394
     </div>
395 395
     <div class="note">
@@ -420,7 +420,7 @@ export default {
420 420
     console.log("血栓22222",this.record)
421 421
   },
422 422
   computed: {
423
-   
423
+
424 424
     weight_before: function() {
425 425
       if (this.record.id == 0) {
426 426
         return '-'

+ 9 - 1
src/xt_pages/dialysis/details/dialog/finish_dialog.vue View File

@@ -173,7 +173,7 @@
173 173
           if (filedList[i].module == 9 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
174 174
             return true
175 175
           }
176
-          if (filedList[i].module == 9 && filedList[i].filed_name_cn == name && filedList[i].is_write == 1) {
176
+          if (filedList[i].module == 9 && filedList[i].filed_name_cn == name && filedList[i].is_write!=undefined &&  filedList[i].is_write == 1) {
177 177
              this.required = true
178 178
           }
179 179
         }
@@ -270,6 +270,10 @@
270 270
       modifyFinish:function(formName){
271 271
         this.$refs[formName].validate(valid=>{
272 272
           if(valid){
273
+            if(this.isWrite("穿刺处血肿") == true && this.form.puncture_point_haematoma == ""){
274
+              this.$message.error("请选择穿刺处血肿")
275
+              return
276
+             }
273 277
             if(this.isWrite("内瘘") == true && this.form.internal_fistula == ""){
274 278
               this.$message.error("请选择内瘘")
275 279
               return
@@ -316,6 +320,10 @@
316 320
         
317 321
         this.$refs[formName].validate(valid=>{
318 322
           if(valid){
323
+             if(this.isWrite("穿刺处血肿") == true && this.form.puncture_point_haematoma == ""){
324
+              this.$message.error("请选择穿刺处血肿")
325
+              return
326
+             }
319 327
              if(this.isWrite("内瘘") == true && this.form.internal_fistula == ""){
320 328
               this.$message.error("请选择内瘘")
321 329
               return

+ 9 - 2
src/xt_pages/dialysis/schedualPatient.vue View File

@@ -609,10 +609,17 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
609 609
           var resp = rs.data
610 610
           if (resp.state == 1) {
611 611
             var zones = resp.data.zones
612
+            var arr = []
613
+            for(let i=0;i<zones.length;i++){
614
+              if(zones[i].status == 1){
615
+                 arr.push(zones[i])
616
+              }
617
+            }
618
+            console.log("zone2w233323232wid",zones)
612 619
             var schedules = resp.data.schedules
613 620
             var zone_options = [{ id: 0, text: '全部分区' }]
614
-            for (let z_i = 0; z_i < zones.length; z_i++) {
615
-              const zone = zones[z_i]
621
+            for (let z_i = 0; z_i < arr.length; z_i++) {
622
+              const zone = arr[z_i]
616 623
               zone_options.push({ id: zone.id, text: zone.name })
617 624
             }
618 625
             this.zone_options = zone_options

+ 4 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue View File

@@ -425,13 +425,13 @@
425 425
                     <div class="inline_block" style="flex:1;">
426 426
                       置换方式:
427 427
                       <div class="under_line" style="width: 60px;text-align: center">
428
-                        <span v-if="prescription.mode_id != 2 && prescription.mode_id!=5 && prescription.mode_id!=12"> {{ getDisplaceLiquiPart(prescription.displace_liqui_part) }} </span>
428
+                        <span v-if="prescription.mode_id == 2 || prescription.mode_id ==5 || prescription.mode_id==12"> {{ getDisplaceLiquiPart(prescription.displace_liqui_part) }} </span>
429 429
                       </div>
430 430
                     </div>
431 431
                     <div class="inline_block" style="flex:1;">
432 432
                       置换总量:
433 433
                       <div class="under_line" style="width: 50px;text-align: center">
434
-                         <span v-if="prescription.mode_id != 2 && prescription.mode_id!=5 && prescription.mode_id!=12"> {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}</span>
434
+                         <span v-if="prescription.mode_id == 2 || prescription.mode_id ==5 || prescription.mode_id ==12"> {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}</span>
435 435
                       </div>
436 436
                       L
437 437
                     </div>
@@ -1102,7 +1102,7 @@ export default {
1102 1102
             }
1103 1103
         })
1104 1104
         }
1105
-        
1105
+
1106 1106
         if(num == 0){
1107 1107
           this.$message.success('核对完成')
1108 1108
         }
@@ -1458,7 +1458,7 @@ export default {
1458 1458
             }
1459 1459
           }
1460 1460
         }
1461
-        
1461
+
1462 1462
         console.log('this.monitors',this.monitors)
1463 1463
 
1464 1464
         this.jilurow = this.monitors.length + 1

+ 1 - 0
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue View File

@@ -18,6 +18,7 @@
18 18
           size="small"
19 19
           type="primary"
20 20
           @click="submit()"
21
+          v-loading="loading"
21 22
           v-if="is_check == 2"
22 23
           class="filter-item"
23 24
           >保 存</el-button

+ 1 - 1
src/xt_pages/stock/stockInOrderAdd.vue View File

@@ -7,7 +7,7 @@
7 7
 
8 8
       <div style="float:right;">
9 9
         <el-button size="small" @click="back()" class="filter-item">取 消</el-button>
10
-        <el-button size="small" type="primary" @click="submit()" class="filter-item">保 存</el-button>
10
+        <el-button size="small" type="primary" @click="submit()" class="filter-item" v-loading="loading">保 存</el-button>
11 11
         <el-button size="small" type="primary" v-show="showCheck" @click="toCheck()" class="filter-item">审 核</el-button>
12 12
         <!-- <el-button size="small" type="primary" v-show="showReturnCheck" @click="toReturnCheck()" class="filter-item">反 审 核</el-button> -->
13 13
       </div>

+ 1 - 0
src/xt_pages/stock/stockInOrderEdit.vue View File

@@ -19,6 +19,7 @@
19 19
           type="primary"
20 20
           @click="submit()"
21 21
           v-if="is_check == 2"
22
+          v-loading="loading"
22 23
           class="filter-item"
23 24
           >保 存</el-button
24 25
         >