Kaynağa Gözat

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

huangyw 2 yıl önce
ebeveyn
işleme
4d5ac377d6

+ 8 - 0
src/api/dialysis.js Dosyayı Görüntüle

@@ -331,3 +331,11 @@ export function getDialysisSetting(params) {
331 331
     params: params
332 332
   })
333 333
 }
334
+
335
+export function getDialysisParameter(params) {
336
+  return request({
337
+    url: '/api/patient/getdialysisparameter',
338
+    method: 'get',
339
+    params: params
340
+  })
341
+}

+ 6 - 6
src/router/index_路由未分离前.js Dosyayı Görüntüle

@@ -818,12 +818,12 @@ export const xt_asyncRouterMap = [
818 818
         name: 'otherCancelStockOrder',
819 819
         meta: { title: 'otherCancelStockOrder', noCache: true }
820 820
       },
821
-      // {
822
-      //   path: '/stock/query',
823
-      //   component: () => import('@/xt_pages/stock/stockQuery'),
824
-      //   name: 'stockQuery',
825
-      //   meta: { title: 'stockQuery' }
826
-      // },
821
+      {
822
+        path: '/stock/query',
823
+        component: () => import('@/xt_pages/stock/stockQuery'),
824
+        name: 'stockQuery',
825
+        meta: { title: 'stockQuery' }
826
+      },
827 827
       {
828 828
         path: '/stock/detail',
829 829
         component: () => import('@/xt_pages/stock/stockDetailIndex'),

+ 6 - 6
src/router/modules/drugs.js Dosyayı Görüntüle

@@ -12,12 +12,12 @@ export default {
12 12
     isChild: true
13 13
   },
14 14
   children: [
15
-    // {
16
-    //   path: '/stock/drugs/stock/query',
17
-    //   component: () => import('@/xt_pages/stock/drugs/query'),
18
-    //   name: 'drugsQuery',
19
-    //   meta: { title: 'drugsQuery', noCache: true }
20
-    // },
15
+    {
16
+      path: '/stock/drugs/stock/query',
17
+      component: () => import('@/xt_pages/stock/drugs/query'),
18
+      name: 'drugsQuery',
19
+      meta: { title: 'drugsQuery', noCache: true }
20
+    },
21 21
     {
22 22
       path: '/stock/drugs/drugNewQuery',
23 23
       component: () => import('@/xt_pages/stock/drugs/drugNewQuery'),

+ 199 - 22
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue Dosyayı Görüntüle

@@ -58,24 +58,140 @@
58 58
           color: '#606266'
59 59
         }"
60 60
       >
61
-        <el-table-column
62
-          align="center"
63
-          type="selection"
64
-          width="55">
61
+        <el-table-column align="center"  type="selection" width="55">
62
+           <template slot-scope="scope">
63
+             
64
+           </template>
65 65
         </el-table-column>
66
-        <el-table-column
67
-          align="center"
68
-          prop="name"
69
-          v-for="(item,index) in good_types"
70
-          :key="index"
71
-          :label="item"
72
-        >
73
-          <template slot-scope="scope">
74
-            <span>{{scope.row.good_type[index].name}}</span>
75
-          </template>
66
+        <el-table-column align="center" label="序号" width="55">
67
+           <template slot-scope="scope">
68
+             {{scope.$index + 1}}
69
+           </template>
70
+        </el-table-column>
71
+         <el-table-column align="center" label="透析机号" width="55">
72
+           <template slot-scope="scope">
73
+              {{scope.row.device_number.number}}
74
+           </template>
75
+        </el-table-column>
76
+        <el-table-column align="center" label="姓名" width="55">
77
+           <template slot-scope="scope">
78
+            {{scope.row.patient.name}}
79
+           </template>
80
+        </el-table-column>
81
+        <el-table-column align="center" label="住院(门诊)号" width="55">
82
+           <template slot-scope="scope">
83
+
84
+           </template>
85
+        </el-table-column>
86
+        <el-table-column align="center" label="透前体重" width="55">
87
+           <template slot-scope="scope">
88
+             {{scope.row.assessment_befor_dislysis.weight_before}}
89
+           </template>
90
+        </el-table-column>
91
+         <el-table-column align="center" label="干体重" width="55">
92
+           <template slot-scope="scope">
93
+            {{scope.row.assessment_befor_dislysis.dry_weight}}
94
+           </template>
95
+        </el-table-column>
96
+         <el-table-column align="center" label="透前血压" width="55">
97
+           <template slot-scope="scope">
98
+            <span v-if="scope.row.assessment_befor_dislysis.systolic_blood_pressure>0">{{scope.row.assessment_befor_dislysis.systolic_blood_pressure}}</span>
99
+            <span v-if="scope.row.assessment_befor_dislysis.diastolic_blood_pressure>0">/{{scope.row.assessment_befor_dislysis.diastolic_blood_pressure}}</span> 
100
+           </template>
101
+        </el-table-column>
102
+         <el-table-column align="center" label="目标脱水量" width="55">
103
+           <template slot-scope="scope">
104
+             <span v-if="scope.row.dialysis_prescription.target_ultrafiltration>0">{{scope.row.dialysis_prescription.target_ultrafiltration}}</span>
105
+           </template>
106
+        </el-table-column>
107
+        <el-table-column align="center" label="超率总量" width="55">
108
+           <template slot-scope="scope">
109
+
110
+           </template>
111
+        </el-table-column>
112
+        <el-table-column align="center" label="抗凝剂(首剂)(维持)(总量)" width="100">
113
+           <template slot-scope="scope">
114
+             <span>{{getAnticoagualnt(scope.row.dialysis_prescription.anticoagulant)}}</span>
115
+             <span>{{getAnticoagualnt(scope.row.dialysis_prescription.anticoagulant)}}</span>
116
+             <span>{{getAnticoagualnt(scope.row.dialysis_prescription.anticoagulant)}}</span>
117
+             <span v-if="scope.row.dialysis_prescription.anticoagulant_shouji > 0">(scope.row.dialysis_prescription.anticoagulant_shouji)</span>
118
+             <span v-if="scope.row.dialysis_prescription.anticoagulant_weichi > 0">(scope.row.dialysis_prescription.anticoagulant_weichi)</span>
119
+             <span v-if="scope.row.dialysis_prescription.anticoagulant_zongliang > 0">(scope.row.dialysis_prescription.anticoagulant_zongliang)</span>
120
+           </template>
121
+        </el-table-column>
122
+
123
+        <el-table-column align="center" label="透析时长" width="100">
124
+           <template slot-scope="scope">
125
+             <span v-if="scope.row.dialysis_duration >0">{{scope.row.dialysis_duration}}</span>
126
+           </template>
127
+        </el-table-column>
128
+
129
+       <el-table-column align="center" label="设备型号" width="100">
130
+           <template slot-scope="scope">
131
+             <span></span>
132
+           </template>
133
+        </el-table-column>
134
+
135
+        <el-table-column align="center" label="透析器/灌流器" width="100">
136
+           <template slot-scope="scope">
137
+             <span>{{scope.row.dialysis_prescription.dialyzer_perfusion_apparatus}}</span>
138
+             <span>{{scope.row.dialysis_prescription.dialysis_dialyszers}}</span>
139
+             <span>{{scope.row.dialysis_prescription.dialysis_irrigation}}</span>
140
+           </template>
141
+        </el-table-column>
142
+
143
+       
144
+
145
+        <el-table-column align="center" label="置换总量" width="100">
146
+           <template slot-scope="scope">
147
+             <span>{{scope.row.dialysis_prescription.replacement_total}}</span>
148
+           </template>
149
+        </el-table-column>
150
+       
151
+
152
+        <el-table-column align="center" label="钾" width="100">
153
+           <template slot-scope="scope">
154
+             <span>{{scope.row.dialysis_prescription.kalium}}</span>
155
+           </template>
156
+        </el-table-column>
157
+
158
+        <el-table-column align="center" label="钠" width="100">
159
+           <template slot-scope="scope">
160
+             <span>{{scope.row.dialysis_prescription.sodium}}</span>
161
+           </template>
162
+        </el-table-column>
163
+
164
+
76 165
 
166
+        <el-table-column align="center" label="钙" width="100">
167
+           <template slot-scope="scope">
168
+             <span>{{scope.row.dialysis_prescription.calcium}}</span>
169
+           </template>
77 170
         </el-table-column>
78 171
 
172
+        <el-table-column align="center" label="碳酸氢盐" width="100">
173
+           <template slot-scope="scope">
174
+              <span>{{scope.row.dialysis_prescription.bicarbonate}}</span>
175
+           </template>
176
+        </el-table-column>
177
+
178
+        <el-table-column align="center" label="血管通路" width="100">
179
+           <template slot-scope="scope">
180
+             <span>{{getBloodAccessOption(scope.row.dialysis_prescription.blood_access)}}</span>
181
+           </template>
182
+        </el-table-column>
183
+
184
+       <el-table-column align="center" label="封管液" width="100">
185
+           <template slot-scope="scope">
186
+             
187
+           </template>
188
+        </el-table-column>
189
+
190
+        <el-table-column align="center" label="葡萄糖" width="100">
191
+           <template slot-scope="scope">
192
+             {{scope.row.dialysis_prescription.amylaceum}}
193
+           </template>
194
+        </el-table-column>
79 195
       </el-table>
80 196
 
81 197
       <el-dialog
@@ -131,8 +247,9 @@
131 247
 
132 248
 
133 249
 <script>
134
-  import { GetAllZone,saveDialysisSetting,getDialysisSetting } from '@/api/dialysis'
250
+  import { GetAllZone,saveDialysisSetting,getDialysisSetting,getDialysisParameter } from '@/api/dialysis'
135 251
   import { uParseTime } from "@/utils/tools";
252
+  import { getDataConfig } from '@/utils/data'
136 253
   import store from "@/store";
137 254
   export default {
138 255
     components: {
@@ -207,12 +324,13 @@
207 324
         kalium:false,
208 325
         displace_liqui_value:false,
209 326
         bicarbonate:false,
210
-        glucose:false
327
+        glucose:false,
328
+        blood_access_option:[],
211 329
       }
212 330
     },
213 331
     created() {
332
+       this.blood_access_option  = getDataConfig('hemodialysis', 'vascular_access_desc')
214 333
        var filedList = store.getters.xt_user.fileds
215
-       console.log("哈哈哈哈",filedList)
216 334
        var newArr = [
217 335
         {value:999999,filed_name_cn:"姓名"},
218 336
         {value:888888,filed_name_cn:"透析号"},
@@ -227,7 +345,7 @@
227 345
         }
228 346
         this.predialysisConditionOptions = newArr
229 347
        }
230
-      console.log("newArr23232323232wo",newArr)
348
+     
231 349
       this.getAllZone()
232 350
       let date = uParseTime(new Date(), "{y}-{m}-{d}")
233 351
       var newDate = new Date();
@@ -250,7 +368,13 @@
250 368
 
251 369
       },
252 370
       getlist(){
253
-
371
+        getDialysisParameter(this.query).then(response=>{
372
+            if(response.data.state == 1){
373
+              var list = response.data.data.list
374
+              this.list = list
375
+              this.total = response.data.data.total
376
+            }
377
+        }) 
254 378
       },
255 379
       handleSizeChange(val) {
256 380
         this.query.limit = val;
@@ -376,7 +500,6 @@
376 500
         return jsonData.map(v => filterVal.map(j => v[j]));
377 501
       },
378 502
      toDialog(){
379
-      console.log("触发222222222222222我v")
380 503
       getDialysisSetting().then(response=>{
381 504
         if(response.data.state == 1){
382 505
            this.dialogVisible = true
@@ -632,10 +755,10 @@
632 755
           this.gaijiliang = 1
633 756
         }
634 757
         if(this.kalium == false){
635
-          kalium = 2
758
+          kalium_set = 2
636 759
         }
637 760
         if(this.kalium == true){
638
-          kalium = 1
761
+          kalium_set = 1
639 762
         }
640 763
         if(this.displace_liqui_value == false){
641 764
           displace_liqui_value_set = 2
@@ -679,12 +802,66 @@
679 802
           bicarbonate_set:bicarbonate_set,
680 803
           glucose_set:glucose_set,
681 804
         }
805
+        console.log("patam223232332",params)
682 806
        saveDialysisSetting(params).then(response=>{
683 807
          if(response.data.state == 1){
684 808
            var dialysisSetting = response.data.data.dialysisSetting
809
+           this.$message.success("保存成功!")
685 810
            this.dialogVisible = false
686 811
          }
687 812
        })
813
+     },
814
+     getAnticoagualnt(id){
815
+       var name = ""
816
+       if(id == 1){
817
+         name = "无肝素"
818
+       }
819
+       if(id == 2){
820
+        name = "普通肝素"
821
+       }
822
+       if(id == 3){
823
+         name ="低分子肝素"
824
+       }
825
+       if(id == 4){
826
+         name ="阿加曲班"
827
+       }
828
+       if(id == 5){
829
+         name ="枸橼酸钠"
830
+       }
831
+       if(id == 6){
832
+         name ="低分子肝素钙"
833
+       }
834
+       if(id == 7){
835
+         name ="低分子肝素钠"
836
+       }
837
+       if(id == 8){
838
+         name ="依诺肝素"
839
+       }
840
+       if(id == 9){
841
+         name ="达肝素"
842
+       }
843
+       if(id == 10){
844
+         name ="体外抗凝"
845
+       }
846
+       if(id == 11){
847
+         name ="那屈肝素"
848
+       }
849
+       if(id == 12){
850
+         name ="无抗凝剂"
851
+       }
852
+       if(id == 13){
853
+         name ="那屈肝素钙"
854
+       }
855
+       return name
856
+     },
857
+     getBloodAccessOption(id){
858
+       var name = ""
859
+       for(let i=0;i<this.blood_access_option.length;i++){
860
+         if(id == this.blood_access_option[i].id){
861
+            name = this.blood_access_option[i].name
862
+         }
863
+       }
864
+       return name
688 865
      }
689 866
     }
690 867
   }

+ 10 - 2
src/xt_pages/outpatientDoctorStation/template/printThree.vue Dosyayı Görüntüle

@@ -49,8 +49,16 @@
49 49
             <div style="width: 20%;"></div>
50 50
             <div style="width: 33%; display: flex">
51 51
               医保类型:
52
-              <span class="under_line">
53
-               
52
+              <span class="under_line" v-if="item.patient.reimbursement_way_id == 20">
53
+               {{'医保一档'}}
54
+              </span>
55
+              <span class="under_line" v-if="item.patient.reimbursement_way_id == 21">
56
+               {{'医保二档'}}
57
+              </span>
58
+              <span class="under_line" v-if="item.patient.reimbursement_way_id == 22">
59
+               {{'医保三档'}}
60
+              </span>
61
+              <span class="under_line" v-if="item.patient.reimbursement_way_id != 20 && item.patient.reimbursement_way_id != 21 && item.patient.reimbursement_way_id != 22">
54 62
               </span>
55 63
             </div>
56 64
           </div>

+ 4 - 4
src/xt_pages/stock/drugs/components/drugQuery.vue Dosyayı Görüntüle

@@ -31,13 +31,13 @@
31 31
          </div>
32 32
         
33 33
          <div>
34
-          <!-- <el-button
34
+          <el-button
35 35
             size="small"
36 36
             class="filter-item"
37 37
             type="primary"
38 38
             @click="toCheck"
39 39
             >脚本
40
-          </el-button> -->
40
+          </el-button>
41 41
           <el-button
42 42
             size="small"
43 43
             class="filter-item"
@@ -170,9 +170,9 @@
170 170
             <el-table-column label="总库存量" align="center">
171 171
              <template slot-scope="scope">
172 172
                 <div v-if="getWarehoseInfo(scope.row.drug_warehouse_info) > 0">
173
-                   <span v-if="scope.row.total_count<=scope.row.drug_stock_limit" style="color:red">{{getSumCount(scope.row.drug_stock_count,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}<i class="el-icon-warning"></i></span> 
173
+                   <span v-if="scope.row.total_count<=scope.row.drug_stock_limit_count" style="color:red">{{getSumCount(scope.row.drug_stock_count,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}<i class="el-icon-warning"></i></span> 
174 174
                    
175
-                   <span v-if="scope.row.total_count >scope.row.drug_stock_limit">{{getSumCount(scope.row.drug_stock_count,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
175
+                   <span v-if="scope.row.total_count >scope.row.drug_stock_limit_count">{{getSumCount(scope.row.drug_stock_count,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
176 176
                 </div>
177 177
               </template>
178 178
             </el-table-column>

+ 1 - 0
src/xt_pages/stock/drugs/components/expiryDateDrugQuery.vue Dosyayı Görüntüle

@@ -506,6 +506,7 @@ export default {
506 506
     if(val == 4){
507 507
        var time = this.addDate(this.getTime(this.nowtime),180)
508 508
        this.start_time = time
509
+       this.getlist()
509 510
     }
510 511
     //1年以后
511 512
     if(val == 5){

+ 1 - 0
src/xt_pages/stock/query/expiryDateQuery.vue Dosyayı Görüntüle

@@ -530,6 +530,7 @@ export default {
530 530
     if(val == 4){
531 531
        var time = this.addDate(this.getTime(this.nowtime),180)
532 532
        this.start_time = time
533
+       this.getlist()
533 534
     }
534 535
     //1年以后
535 536
     if(val == 5){

+ 1 - 1
src/xt_pages/stock/query/goodNewQuery.vue Dosyayı Görüntüle

@@ -31,7 +31,7 @@
31 31
           <el-button  type="primary" icon="el-icon-search" @click="seach">搜索</el-button>
32 32
          </div>
33 33
           <div>
34
-            <!-- <el-button size="small" type="primary" @click="toClickTwo">脚本</el-button> -->
34
+            <el-button size="small" type="primary" @click="toClickTwo">脚本</el-button>
35 35
             <el-button size="small" type="primary" @click="exportList">导出</el-button>
36 36
             <el-button size="small" type="primary" @click="toPrint">打印</el-button>
37 37
           </div>