浏览代码

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

see999 3 年前
父节点
当前提交
1a1eec3d8e

+ 7 - 3
src/lang/zh.js 查看文件

@@ -368,8 +368,12 @@ export default {
368 368
     nursing_record: '透析护理记录',
369 369
     special_record: '特殊记录',
370 370
     template_summary: '治疗小结',
371
-    template_plan: '个性化方案'
372
-    // admitting_diagnosis: '入院诊断',
373
-    // discharge_diagnosis: '出院诊断'
371
+    template_plan: '个性化方案',
372
+    admitting_diagnosis: '入院诊断',
373
+    discharge_diagnosis: '出院诊断',
374
+    diagnosis_admission: '入院时病情',
375
+    treatment: '诊疗经过',
376
+    illness_discharge: '出院时病情',
377
+    discharge_advice: '出院医嘱'
374 378
   }
375 379
 }

+ 5 - 1
src/xt_pages/data/template.vue 查看文件

@@ -48,7 +48,11 @@ export default {
48 48
         { label: this.$t("data_config.rescue_record"), key: "rescue_record" },
49 49
         { label: this.$t("data_config.template_summary"), key: "template_summary" },
50 50
         { label: this.$t("data_config.template_plan"), key: "template_plan" },
51
-        // { label: this.$t("data_config.admitting_diagnosis"), key: "admitting_diagnosis" }
51
+        { label: this.$t("data_config.admitting_diagnosis"), key: "admitting_diagnosis" },
52
+        { label: this.$t("data_config.discharge_diagnosis"), key:"discharge_diagnosis"},
53
+        { label: this.$t("data_config.diagnosis_admission"), key:"diagnosis_admission"},
54
+        { label: this.$t("data_config.treatment"), key:"treatment"},
55
+        { label: this.$t("data_config.illness_discharge"), key:"illness_discharge"},
52 56
       ],
53 57
       activeName: "education",
54 58
       createdTimes: 0

+ 1 - 1
src/xt_pages/hospitalStation/components/deskPrescription.vue 查看文件

@@ -1705,7 +1705,7 @@
1705 1705
           }
1706 1706
         }
1707 1707
 
1708
-        return total.toFixed(24)
1708
+        return total.toFixed(2)
1709 1709
       },
1710 1710
       createFilter(queryString) {
1711 1711
         return (restaurant) => {

+ 2 - 2
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

@@ -461,8 +461,8 @@
461 461
             scanStyles: false
462 462
           })
463 463
         }
464
-        
465
-        
464
+
465
+
466 466
         this.innerVisible = false
467 467
         // this.$nextTick(() => {
468 468
         //   this.$refs.print.printThisPage()

+ 1 - 0
src/xt_pages/outpatientDoctorStation/prescriptionTemplate.vue 查看文件

@@ -179,6 +179,7 @@
179 179
         this.limit = 10
180 180
         this.patient_id = val.id
181 181
         this.patient_name = val.name
182
+
182 183
         let params = {
183 184
           patient_id: val.id,
184 185
           page: this.page,

+ 27 - 0
src/xt_pages/outpatientTool/components/settle.vue 查看文件

@@ -91,6 +91,18 @@
91 91
           <el-table-column align="center" prop="item_name" label="个人支付金额">
92 92
               <template slot-scope="scope">{{scope.row.psn_cash_pay.toFixed(2)}}</template>
93 93
           </el-table-column>
94
+          <el-table-column align="center" prop="item_name" label="基金统筹金额">
95
+              <template slot-scope="scope">{{scope.row.hifp_pay.toFixed(2)}}</template>
96
+          </el-table-column>
97
+
98
+          <el-table-column align="center" prop="item_name" label="大额基金支付">
99
+              <template slot-scope="scope">{{scope.row.hifob_pay.toFixed(2)}}</template>
100
+          </el-table-column>
101
+
102
+
103
+          <el-table-column align="center" prop="item_name" label="医疗救助基金">
104
+              <template slot-scope="scope">{{scope.row.maf_pay.toFixed(2)}}</template>
105
+          </el-table-column>
94 106
 
95 107
           <el-table-column align="center" prop="item_name" label="企业补充医疗保险基金支出">
96 108
               <template slot-scope="scope">{{scope.row.hifes_pay.toFixed(2)}}</template>
@@ -101,6 +113,8 @@
101 113
               <template slot-scope="scope">{{scope.row.hifmi_pay.toFixed(2)}}</template>
102 114
           </el-table-column>
103 115
 
116
+
117
+
104 118
           <el-table-column align="center" prop="total" label="费用总额">
105 119
               <template slot-scope="scope">
106 120
                   <div>{{scope.row.total.toFixed(2)}}</div>
@@ -347,6 +361,11 @@
347 361
           let psn_cash_pay = ""
348 362
           let hifes_pay = ""
349 363
           let hifmi_pay = ""
364
+          let hifp_pay = ""
365
+          let hifob_pay = ""
366
+          let maf_pay = ""
367
+
368
+
350 369
           let total = ""
351 370
 
352 371
           if(order.setl_time.length == 0){
@@ -377,10 +396,15 @@
377 396
 
378 397
           medfee_sumamt = order.medfee_sumamt
379 398
           fund_pay_sumamt = order.fund_pay_sumamt
399
+
380 400
           acct_pay = order.acct_pay
401
+
381 402
           psn_cash_pay = order.psn_cash_pay
382 403
           hifes_pay = order.hifes_pay
383 404
           hifmi_pay = order.hifmi_pay
405
+          hifp_pay = order.hifp_pay
406
+          hifob_pay = order.hifob_pay
407
+          maf_pay = order.maf_pay
384 408
           total = order.total
385 409
 
386 410
 
@@ -391,6 +415,9 @@
391 415
             '处方类型': med_type,
392 416
             '医疗费总额': medfee_sumamt,
393 417
             '基金支付金额': fund_pay_sumamt,
418
+            '基金统筹金额': hifp_pay,
419
+            '大额基金支付':hifob_pay,
420
+            '医疗救助基金':maf_pay,
394 421
             '个人账户支付金额': acct_pay,
395 422
             '个人支付基金': psn_cash_pay,
396 423
             '企业补充医疗保险基金支出': hifes_pay,

+ 2 - 2
src/xt_pages/qcd/workAnalysis/nurse.vue 查看文件

@@ -155,7 +155,7 @@
155 155
                 <span v-if="getTotalCount(scope.row.admin_user_id)!=''">({{getTotalCount(scope.row.admin_user_id)}})</span>
156 156
               </template>
157 157
             </el-table-column>
158
-            
158
+
159 159
              <el-table-column label="下机" align="center">
160 160
               <template slot-scope="scope">
161 161
                 {{scope.row.finish_nuser_count?scope.row.finish_nuser_count:''}}
@@ -164,7 +164,7 @@
164 164
 
165 165
             <el-table-column label="冲管" align="center">
166 166
               <template slot-scope="scope">
167
-                {{scope.row.finish_nuser_count?scope.row.finish_nuser_count:''}}
167
+                {{scope.row.washpipe_nuser_count?scope.row.washpipe_nuser_count:''}}
168 168
               </template>
169 169
             </el-table-column>
170 170
 

+ 23 - 50
src/xt_pages/stock/drugs/components/drugCancelDetail.vue 查看文件

@@ -70,46 +70,6 @@
70 70
       </div>
71 71
     </div>
72 72
 
73
-    
74
-
75
-    <!-- <div class="cell clearfix">
76
-      <label class="title"><span class="name">单据类型</span> : </label>
77
-      <el-select
78
-        size="small"
79
-        v-model="order_type"
80
-        clearable
81
-        placeholder="单据类型"
82
-        @change="changeType"
83
-      >
84
-        <el-option
85
-          v-for="item in orderTypeArr"
86
-          :key="item.value"
87
-          :label="item.label"
88
-          :value="item.value"
89
-        >
90
-        </el-option>
91
-      </el-select>
92
-    </div> -->
93
-<!-- 
94
-    <div class="cell clearfix">
95
-      <label class="title"><span class="name">其它</span> : </label>
96
-      <el-select
97
-        size="small"
98
-        v-model="manufacturer_id"
99
-        clearable
100
-        placeholder="厂商"
101
-        @change="changeManufacturer"
102
-      >
103
-        <el-option
104
-          v-for="item in manufacturer"
105
-          :key="item.id"
106
-          :label="item.manufacturer_name"
107
-          :value="item.id"
108
-        >
109
-        </el-option>
110
-      </el-select>
111
-    </div> -->
112
-
113 73
     <el-row :gutter="12" style="margin-top: 10px">
114 74
       <el-table
115 75
         :data="tableData"
@@ -135,6 +95,7 @@
135 95
             <span v-if="scope.row.drug_type == 1">西药</span>
136 96
             <span v-if="scope.row.drug_type == 2">草药</span>
137 97
             <span v-if="scope.row.drug_type == 3">成药</span>
98
+            <!-- {{getTypeList(scope.row.drug_type)}} -->
138 99
           </template>
139 100
         </el-table-column>
140 101
 
@@ -273,6 +234,7 @@ export default {
273 234
       tableData:[],
274 235
       tableList:[],
275 236
       tableDataList:[],
237
+      drugTypeList:[],
276 238
     };
277 239
   },
278 240
   methods: {
@@ -386,6 +348,7 @@ export default {
386 348
          if(response.data.state == 1){
387 349
            var order =  response.data.data.order
388 350
            var list = response.data.data.orderPrint
351
+           //this.drugTypeList = response.data.data.drugTypeList
389 352
            for(let i=0;i<list.length;i++){
390 353
              list[i].child = []
391 354
             for(let j=0;j<order.length;j++){
@@ -436,15 +399,16 @@ export default {
436 399
     },
437 400
     exportList(){
438 401
        for(let i=0;i<this.tableDataList.length;i++){
439
-          if(this.tableDataList[i].drug_type == 1){
440
-            this.tableDataList[i].drug_type == "西药"
441
-          }
442
-          if(this.tableDataList[i].drug_type == 2){
443
-            this.tableDataList[i].drug_type == "草药"
444
-          }
445
-         if(this.tableDataList[i].drug_type == 3){
446
-            this.tableDataList[i].drug_type == "成药"
447
-          }
402
+        //   if(this.tableDataList[i].drug_type == 1){
403
+        //     this.tableDataList[i].drug_type == "西药"
404
+        //   }
405
+        //   if(this.tableDataList[i].drug_type == 2){
406
+        //     this.tableDataList[i].drug_type == "草药"
407
+        //   }
408
+        //  if(this.tableDataList[i].drug_type == 3){
409
+        //     this.tableDataList[i].drug_type == "成药"
410
+        //   }
411
+          this.tableList[i].drug_type = this.getTypeList(scope.row.drug_type)
448 412
           this.tableDataList[i].index = i+1
449 413
           this.tableDataList[i].unit = this.tableDataList[i].dose + this.tableDataList[i].dose_unit + "*"+this.tableDataList[i].min_number + this.tableDataList[i].min_unit+"/"+this.tableDataList[i].max_unit
450 414
           this.tableDataList[i].user_name = this.getAdminUser(this.tableDataList[i].creater)
@@ -516,7 +480,16 @@ export default {
516 480
          }
517 481
       }
518 482
       return total
519
-    }
483
+    },
484
+    getTypeList(id){
485
+      var name = ""
486
+      for(let i=0;i<this.drugTypeList.length;i++){
487
+        if(id == this.drugTypeList[i].value){
488
+          name = this.drugTypeList[i].name
489
+        }
490
+      }
491
+      return name
492
+    } 
520 493
   }
521 494
 };
522 495
 </script>

+ 15 - 11
src/xt_pages/stock/drugs/components/drugInOrder.vue 查看文件

@@ -98,6 +98,7 @@
98 98
             <span v-if="scope.row.drug_type == 1">西药</span>
99 99
             <span v-if="scope.row.drug_type == 2">草药</span>
100 100
             <span v-if="scope.row.drug_type == 3">成药</span>
101
+            <!-- {{getTypeList(scope.row.drug_type)}} -->
101 102
           </template>
102 103
         </el-table-column>
103 104
 
@@ -236,6 +237,7 @@ export default {
236 237
       dealer: [],
237 238
       tableList:[],
238 239
       tabelePrintList:[],
240
+      drugTypeList:[],
239 241
     };
240 242
   },
241 243
   methods: {
@@ -344,6 +346,9 @@ export default {
344 346
       getDrugIndetail(params).then(response=>{
345 347
         if(response.data.state == 1){
346 348
           var drugInOrder = response.data.data.detail
349
+          var drugTypeParent = response.data.data.drugTypeParent
350
+          console.log("药品类型",drugTypeParent)
351
+        //  this.drugTypeList = drugTypeParent
347 352
           var total_price = 0
348 353
           for(let i=0;i<drugInOrder.length;i++){
349 354
              drugInOrder[i].specification_name  = drugInOrder[i].dose + drugInOrder[i].dose_unit + "*" + drugInOrder[i].min_number +  drugInOrder[i].min_unit + "/" + drugInOrder[i].max_unit
@@ -483,16 +488,7 @@ export default {
483 488
        for(let i=0;i<newArr.length;i++){
484 489
           newArr.specification_name = ""
485 490
           newArr.index = i+1
486
-          if(newArr[i].drug_type == 1){
487
-             newArr[i].drugtype = "西药"
488
-          }
489
-          if(newArr[i].drug_type == 2){
490
-             newArr[i].drugtype = "草药"
491
-          }
492
-          if(newArr[i].drug_type == 3){
493
-             newArr[i].drugtype = "成药"
494
-          }
495
-        
491
+         newArr[i].drugtype = this.getTypeList(newArr[i].drug_type)
496 492
          newArr[i].specification_name = newArr[i].dose + newArr[i].dose_unit +"*" + newArr[i].min_number + newArr[i].min_unit +  "/" + newArr[i].max_unit
497 493
 
498 494
          newArr[i].time = this.getTime(newArr[i].ctime)
@@ -513,7 +509,15 @@ export default {
513 509
         })
514 510
 
515 511
      },
516
-    
512
+    getTypeList(id){
513
+      var name = ""
514
+      for(let i=0;i<this.drugTypeList.length;i++){
515
+        if(id == this.drugTypeList[i].value){
516
+           name = this.drugTypeList[i].name
517
+        }
518
+      }
519
+      return name
520
+    }
517 521
   }
518 522
 };
519 523
 </script>

+ 15 - 9
src/xt_pages/stock/drugs/components/drugOutDetail.vue 查看文件

@@ -136,6 +136,7 @@
136 136
             <span v-if="scope.row.drug_type == 1">西药</span>
137 137
             <span v-if="scope.row.drug_type == 2">草药</span>
138 138
             <span v-if="scope.row.drug_type == 3">成药</span>
139
+            <!-- {{getTypeList(scope.row.drug_type)}} -->
139 140
           </template>
140 141
         </el-table-column>
141 142
 
@@ -285,6 +286,7 @@ export default {
285 286
       drugList:[],
286 287
       tablePrint:[],
287 288
       org_id:0,
289
+      drugTypeList:[],
288 290
     };
289 291
   },
290 292
   methods: {
@@ -441,6 +443,8 @@ export default {
441 443
           for(let i=0;i<order.length;i++){
442 444
             order[i].total_price = order[i].total_price.toFixed(2)
443 445
           }
446
+        //  this.drugTypeList = response.data.data.drugTypeList
447
+          
444 448
           this.tableData = order
445 449
            let objInfo = {}
446 450
           order.forEach((item,index)=>{
@@ -558,15 +562,8 @@ export default {
558 562
        const filterVal = ['index','warehouse_out_order_number', 'drugtype', 'drug_name','specification_name','time','user_name','price','count','total_price']
559 563
        for(let i=0;i<this.tableData.length;i++){
560 564
          this.tableData[i].index = i+1
561
-         if(this.tableData[i].drug_type == 1){
562
-            this.tableData[i].drugtype = "西药"
563
-         }
564
-         if(this.tableData[i].drug_type == 2){
565
-            this.tableData[i].drugtype = "草药"
566
-         }
567
-         if(this.tableData[i].drug_type == 3){
568
-            this.tableData[i].drugtype = "成药"
569
-         }
565
+   
566
+        this.tableData[i].drugtype = this.getTypeList(this.tableData[i].drugtype)
570 567
         this.tableData[i].specification_name = this.tableData[i].dose + this.tableData[i].dose_unit +"*" + this.tableData[i].min_number + this.tableData[i].min_unit +  "/" + this.tableData[i].max_unit
571 568
         this.tableData[i].time = this.getTime(this.tableData[i].ctime)
572 569
         this.tableData[i].user_name = this.getAdminUser(this.tableData[i].creater)
@@ -744,6 +741,15 @@ export default {
744 741
         }
745 742
         return (count*price)
746 743
       },
744
+      getTypeList(id){
745
+        var name = ""
746
+        for(let i=0;i<this.drugTypeList.length;i++){
747
+          if(id == this.drugTypeList[i].value){
748
+            name = this.drugTypeList[i].name
749
+          }
750
+        }
751
+        return name
752
+      } 
747 753
   }
748 754
 };
749 755
 </script>

+ 27 - 22
src/xt_pages/stock/stockPrint.vue 查看文件

@@ -41,19 +41,29 @@
41 41
                                    <td>
42 42
                                       <span v-if="getWareInfo(item.xt_warehouse_info)>0">{{getWareInfo(item.xt_warehouse_info)}}{{item.packing_unit}}</span>
43 43
                                    </td>
44
-                                   <td>
44
+                                   <td v-if="end_time == ''">
45 45
                                       <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id== 10245 || org_id == 9779">
46 46
                                         <span>
47
-                                          {{getWareInfo(item.xt_warehouse_info) - getOverFlushInfo(item.xt_warehouse_info) + getCancelSotckInfo(item.cancel_stock_info) }}
48
-                                          </span>
47
+                                          {{getWareInfo(item.xt_warehouse_info) - getOverFlushInfo(item.xt_warehouse_info) + getCancelSotckInfo(item.cancel_stock_info)}}
49 48
                                         </span>
50
-                                        <span v-else>{{getAutoCount(item.id) + getOutCount(item.id)}} </span>
49
+                                      </span>
50
+                                      <span v-else>{{getAutoCount(item.id) + getOutCount(item.id)}} </span>
51
+                                   </td>
52
+
53
+                                   <td v-if="end_time!=''">
54
+                                    {{getAutoCount(item.id) + getOutCount(item.id)}} 
51 55
                                    </td>
52 56
                                   
53
-                                   <td>
54
-                                     <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779">{{getOverFlushInfo(item.xt_warehouse_info)}}</span>
55
-                                     <span v-else>{{getWareInfo(item.xt_warehouse_info) - getAutoCount(item.id) - getOutCount(item.id) + getCancelCount(item.id) }}</span>
56
-                                    
57
+                                   <td v-if="end_time == ''">
58
+                                     <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779">
59
+                                        {{getOverFlushInfo(item.xt_warehouse_info)}}
60
+                                     </span>
61
+                                     <span v-else>
62
+                                       {{getWareInfo(item.xt_warehouse_info) - getAutoCount(item.id) - getOutCount(item.id) + getCancelCount(item.id) }}
63
+                                     </span>
64
+                                   </td>
65
+                                   <td v-if="end_time!=''">
66
+                                    {{getWareInfo(item.xt_warehouse_info) - getAutoCount(item.id) - getOutCount(item.id) + getCancelCount(item.id) }}
57 67
                                    </td>
58 68
                                 </tr>
59 69
                             </tbody>
@@ -120,18 +130,17 @@ export default {
120 130
         const params = {
121 131
           page: this.page,
122 132
           limit: this.limit,
123
-          keywords: this.keywords,
133
+          keywords:this.keyword,
124 134
           start_time:this.start_time,
125 135
           end_time:this.end_time,
126 136
           type:this.type_name,
127 137
         }
138
+        console.log("打印",params)
128 139
         getAllStockList(params).then(response=>{
129 140
          if(response.data.state == 1){
130 141
            var list = response.data.data.list
131
-          //  console.log("list22222",list)
132 142
            this.tableList = list
133 143
            var total = response.data.data.total
134
-          //  console.log("total",total)
135 144
            this.total = total
136 145
            var manufacturerList = response.data.data.manufacturerList
137 146
            this.manufacturerList = manufacturerList
@@ -198,23 +207,20 @@ export default {
198 207
      },
199 208
      getStockDrugCount(){
200 209
         var params ={
201
-          keywords: this.keywords,
210
+          keywords: this.keyword,
202 211
           start_time:this.start_time,
203 212
           end_time:this.end_time,
204 213
         }
214
+      console.log("打印按钮",params)
205 215
       getStockDrugCount(params).then(response=>{
206 216
          if(response.data.state == 1){
207 217
            var count = response.data.data.count
208
-          //  console.log("入库统计",count)
209 218
            this.countList = count
210 219
            var outlist = response.data.data.outList
211
-          //  console.log("出库数量",outlist)
212 220
            this.outCountList = outlist
213 221
            var autoCount = response.data.data.autoCount
214
-          //  console.log("autoCount",autoCount)
215 222
            this.autoCountList = autoCount
216 223
            var totalCount = response.data.data.totalCount
217
-          //  console.log("totalcount",totalCount)
218 224
            this.cancelCountList = totalCount
219 225
          }
220 226
       })
@@ -304,33 +310,32 @@ export default {
304 310
         total += arr[i].stock_count
305 311
       }
306 312
      }
313
+     console.log("totla23323232",total)
307 314
      return total
308 315
    },
309 316
    getCancelSotckInfo(arr){
310
-     console.log("2332323232322332",arr)
311 317
      var cancle_toal = 0
312 318
      if(arr.length >0){
313 319
       for(let z=0;z<arr.length;z++){
314 320
         cancle_toal += arr[z].count
315 321
       }
316 322
      }
317
-     console.log("total",cancle_toal)
318 323
      return cancle_toal
319 324
    }
320 325
    },
321 326
     created(){
322 327
       this.org_id =  this.$store.getters.xt_user.org_id
323
-      console.log("机构ID232323323233232",this.org_id)
328
+     
324 329
       var starttime =  this.$route.query.start_time
325 330
       this.start_time = starttime
326 331
       var endtime =  this.$route.query.end_time
327 332
       this.end_time = endtime
328
-      var type_name = this.$route.query.type_name
333
+      var type_name = parseInt(this.$route.query.type_name)
329 334
       this.type_name = type_name
330 335
       var keyword = this.$route.query.keyword
331 336
       this.keyword = keyword
332
-      this.page = this.$route.query.page
333
-      this.limit = this.$route.query.limit
337
+      this.page = parseInt(this.$route.query.page)
338
+      this.limit = parseInt(this.$route.query.limit)
334 339
       this.getlist()
335 340
       this.GetAllGoodType()
336 341
       this.getStockDrugCount()

+ 13 - 6
src/xt_pages/stock/stockQuery.vue 查看文件

@@ -125,7 +125,9 @@
125 125
 
126 126
        <el-table-column label="剩余库存量" align="center" v-if="showThree">
127 127
          <template slot-scope="scope">
128
-          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id == 10088 || org_id == 10191">{{getOverFlushInfo(scope.row.xt_warehouse_info)}}</span>
128
+          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id == 10088 || org_id == 10191">
129
+            {{getOverFlushInfo(scope.row.xt_warehouse_info)}}
130
+          </span>
129 131
           <span v-else>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span>
130 132
          </template>
131 133
        </el-table-column>
@@ -431,19 +433,23 @@ export default {
431 433
         end_time:this.end_time,
432 434
         type:this.type_name,
433 435
       };
436
+     console.log("params232322323",params)
434 437
     getAllStockList(params).then(response=>{
435 438
          if(response.data.state == 1){
436 439
          
437 440
           if(this.end_time == ""){
438
-             this.showOne = true
439 441
              this.showTwo = false
440
-             this.showThree = true
441 442
              this.showFour = false
443
+             this.showThree = true
444
+             this.showOne = true
445
+            
446
+            
442 447
           }
443 448
           if(this.end_time !=""){
444
-            this.showOne = false
445
-            this.showTwo = true
446 449
             this.showThree = false
450
+            this.showTwo = true
451
+            console.log("hh3223322323",this.showTwo)
452
+            this.showOne = false
447 453
             this.showFour = true
448 454
           }
449 455
           var list = response.data.data.list
@@ -495,10 +501,11 @@ export default {
495 501
     },
496 502
     getStockDrugCount(){
497 503
         var params ={
498
-           keywords: this.$route.query.keywords,
504
+           keywords: this.keywords,
499 505
            start_time:this.start_time,
500 506
            end_time:this.end_time,
501 507
         }
508
+      console.log("参数23233223",params)
502 509
       getStockDrugCount(params).then(response=>{
503 510
          if(response.data.state == 1){
504 511
            var outlist = response.data.data.outList

+ 289 - 64
src/xt_pages/user/hospitalSummary.vue 查看文件

@@ -94,40 +94,97 @@
94 94
         </div>
95 95
       </div>
96 96
 
97
-      <el-dialog title="新增阶段小结" width="80%" top="5vh" :visible.sync="show_dialog">
97
+      <!-- <el-dialog title="新增住院小结" width="50%" :visible.sync="show_dialog">
98 98
         <div>
99 99
           <div class="new_record_form">
100 100
             <div class="cell clearfix">
101
-             <el-form-item lable="入院时间:">
102
-                <el-date-picker v-model="form.admission_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
103
-                          type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
104
-                          value-format="yyyy-MM-dd" @change="startTimeChange">
105
-                </el-date-picker> 
106
-             </el-form-item>
107
-             <el-form-item lable="出院时间:">
108
-                <el-date-picker v-model="form.admission_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
109
-                          type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
110
-                          value-format="yyyy-MM-dd" @change="startTimeChange">
111
-                </el-date-picker> 
112
-             </el-form-item>
113
-             <el-form-item label="病案号:">
114
-                 <el-input v-model="form.sick_personnel"></el-input>
115
-             </el-form-item>
116
-              <el-form-item label="X线:">
117
-                 <el-input v-model="form.xray"></el-input>
118
-             </el-form-item>
119
-              <el-form-item label="CT:">
120
-                 <el-input v-model="form.connecticut"></el-input>
121
-             </el-form-item>
122
-             <el-form-item label="MRI:">
123
-                 <el-input v-model="form.nuclear_magnetic_resonance"></el-input>
124
-             </el-form-item>
125
-             <el-form-item label="超声:">
126
-                 <el-input v-model="form.ultrasound"></el-input>
127
-             </el-form-item>
128
-            <el-form-item label="病理:">
129
-                 <el-input v-model="form.pathology"></el-input>
130
-             </el-form-item>
101
+          <el-form  :model="form" ref="form">
102
+            <el-row :gutter="24">
103
+              <el-col :span="20">
104
+                <el-form-item label="入院时间:">
105
+                    <el-date-picker v-model="form.admission_time" prefix-icon="el-icon-date" style="width: 196px;"
106
+                              type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
107
+                              value-format="yyyy-MM-dd" @change="startTimeChange">
108
+                    </el-date-picker> 
109
+                </el-form-item>
110
+              </el-col>
111
+            </el-row>
112
+            <el-row>
113
+              <el-col :span="20">
114
+                <el-form-item label="出院时间:">
115
+                    <el-date-picker v-model="form.discharge_time" prefix-icon="el-icon-date" style="width: 196px;"
116
+                              type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
117
+                              value-format="yyyy-MM-dd" @change="startTimeChange">
118
+                    </el-date-picker> 
119
+                </el-form-item>
120
+             </el-col>
121
+            </el-row>
122
+            <el-row :gutter="24">
123
+              <el-col :span="8">
124
+                <el-form-item label="病案号:">
125
+                    <el-input v-model="form.sick_personnel" style="width:200px"></el-input>
126
+                </el-form-item>
127
+              </el-col>
128
+              <el-col :span="8">
129
+                <el-form-item label="X线:">
130
+                  <el-input v-model="form.xray" style="width:200px"></el-input>
131
+                </el-form-item>
132
+              </el-col>
133
+              <el-col :span="8">
134
+                <el-form-item label="CT:">
135
+                  <el-input v-model="form.connecticut" style="width:200px"></el-input>
136
+                </el-form-item>
137
+              </el-col>
138
+             </el-row>
139
+             <el-row :gutter="24">
140
+               <el-col :span= "8">
141
+                <el-form-item label="MRI:">
142
+                    <el-input v-model="form.nuclear_magnetic_resonance" style="width:200px"></el-input>
143
+                </el-form-item>
144
+              </el-col>
145
+              <el-col :span="8">
146
+                <el-form-item label="超声:">
147
+                    <el-input v-model="form.ultrasound" style="width:200px"></el-input>
148
+                </el-form-item>
149
+              </el-col>
150
+              <el-col :span="8">
151
+                <el-form-item label="病理:">
152
+                    <el-input v-model="form.pathology" style="width:200px"></el-input>
153
+                </el-form-item>
154
+              </el-col>
155
+            </el-row>
156
+            <el-row :gutter="24">
157
+              <el-form-item label="病理:">
158
+                  <el-input v-model="form.pathology" style="width:200px"></el-input>
159
+              </el-form-item>
160
+             </el-row>
161
+
162
+             <el-row>
163
+               <el-form-item label="入院诊断:">
164
+                <el-select
165
+                      v-model="form.admitting_diagnosis_id"
166
+                      clearable
167
+                      allow-create
168
+                      filterable
169
+                      placeholder="选择(输入可搜索)"
170
+                    >
171
+                      <el-option
172
+                        v-for="item in monthType"
173
+                        :key="item.id"
174
+                        :label="item.name "
175
+                        :value="item.name"
176
+                      ></el-option>
177
+                  </el-select>
178
+                  <el-input
179
+                      type="textarea"
180
+                      :rows="2"
181
+                      placeholder="请输入内容"
182
+                      v-model="form.admitting_diagnosis">
183
+                  </el-input>
184
+                </el-form-item>
185
+             
186
+             </el-row>
187
+             </el-form>
131 188
             </div>
132 189
 
133 190
             <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
@@ -137,8 +194,171 @@
137 194
             </div>
138 195
           </div>
139 196
         </div>
140
-      </el-dialog>
197
+      </el-dialog> -->
198
+     
199
+        <el-dialog title="新增住院小结" width="60%" top="5vh" :visible.sync="show_dialog">
200
+        <div>
201
+          <div class="new_record_form">
202
+            <div class="cell clearfix">
203
+              <label class="title"><span class="name">入院时间</span> : </label>
204
+              <el-date-picker v-model="form.admission_time" 
205
+                    prefix-icon="el-icon-date" 
206
+                    style="width: 200px;"
207
+                    type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
208
+                    value-format="yyyy-MM-dd">
209
+              </el-date-picker>
210
+            
211
+              <label class="title"><span class="name">出院时间</span> : </label>
212
+              <el-date-picker v-model="form.discharge_time"
213
+                    prefix-icon="el-icon-date" 
214
+                    style="width: 200px;"
215
+                    type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
216
+                    value-format="yyyy-MM-dd">
217
+              </el-date-picker>
218
+
219
+            
220
+            </div>
221
+            <div class="cell clearfix" style="margin-top:10px">
222
+              <label class="title"><span class="name">病案号:</span> : </label>
223
+              <el-input v-model="form.sick_personnel" style="width:200px"></el-input>
224
+            
225
+              <label class="title"><span class="name">X线</span> : </label>
226
+              <el-input v-model="form.xray" style="width:200px"></el-input>
227
+
228
+              <label class="title"><span class="name">CT</span> : </label>
229
+              <el-input v-model="form.connecticut" style="width:200px"></el-input>
230
+            </div>
141 231
 
232
+            <div class="cell clearfix" style="margin-top:10px">
233
+              <label class="title"><span class="name">MRI</span> : </label>
234
+              <el-input v-model="form.nuclear_magnetic_resonance" style="width:200px"></el-input>
235
+            
236
+              <label class="title"><span class="name">超声</span> : </label>
237
+              <el-input v-model="form.ultrasound" style="width:200px"></el-input>
238
+
239
+              <label class="title"><span class="name">病理</span> : </label>
240
+              <el-input v-model="form.pathology" style="width:200px"></el-input>
241
+            </div>
242
+            
243
+            <div class="cell clearfix" style="margin-top:10px">
244
+              <label class="title"><span class="name">入院诊断</span> : </label>
245
+                <el-select v-model="select_template" placeholder="可选择病程模板" @change="didSelectTemplate">
246
+                  <el-option v-for="(option, index) in templates" :key="index" :label="option.title"
247
+                            :value="option.content"></el-option>
248
+                </el-select>
249
+                
250
+                 <div class="textarea_panel">
251
+                    <keep-alive>
252
+                      <editor ref="editor"
253
+                              id="editors"
254
+                              style="width: 800px"
255
+                              v-bind:r_content="form.admitting_diagnosis">
256
+                      </editor>
257
+                    </keep-alive>
258
+                </div>
259
+            </div>
260
+
261
+            <div class="cell clearfix" style="margin-top:10px">
262
+              <label class="title"><span class="name">出院诊断</span> : </label>
263
+                <el-select v-model="select_template" placeholder="可选择病程模板" @change="didSelectTemplate">
264
+                  <el-option v-for="(option, index) in templates" :key="index" :label="option.title"
265
+                            :value="option.content"></el-option>
266
+                </el-select>
267
+
268
+               <div class="textarea_panel">
269
+                    <keep-alive>
270
+                      <editor ref="editorOne"
271
+                              id="editorsOne"
272
+                              style="width: 800px"
273
+                              v-bind:r_content="form.discharge_diagnosis">
274
+                      </editor>
275
+                    </keep-alive>
276
+                </div>
277
+
278
+            </div>
279
+
280
+             <div class="cell clearfix" style="margin-top:10px">
281
+              <label class="title"><span class="name">入院时诊断</span> : </label>
282
+                <el-select v-model="select_template" placeholder="可选择病程模板" @change="didSelectTemplate">
283
+                  <el-option v-for="(option, index) in templates" :key="index" :label="option.title"
284
+                            :value="option.content"></el-option>
285
+                </el-select>
286
+
287
+                <div class="textarea_panel">
288
+                    <keep-alive>
289
+                      <editor ref="editorTwo"
290
+                              id="editorsTwo"
291
+                              style="width: 800px"
292
+                              v-bind:r_content="form.treatment">
293
+                      </editor>
294
+                    </keep-alive>
295
+                </div>
296
+            </div>
297
+
298
+            <div class="cell clearfix" style="margin-top:10px">
299
+              <label class="title"><span class="name">诊断经过</span> : </label>
300
+                <el-select v-model="select_template" placeholder="可选择病程模板" @change="didSelectTemplate">
301
+                  <el-option v-for="(option, index) in templates" :key="index" :label="option.title"
302
+                            :value="option.content"></el-option>
303
+                </el-select>
304
+
305
+               <div class="textarea_panel">
306
+                    <keep-alive>
307
+                      <editor ref="editorFour"
308
+                              id="editorsFour"
309
+                              style="width: 800px"
310
+                              v-bind:r_content="form.treatment">
311
+                      </editor>
312
+                    </keep-alive>
313
+                </div>
314
+
315
+            </div>
316
+
317
+            <div class="cell clearfix" style="margin-top:10px">
318
+              <label class="title"><span class="name">出院时病情</span> : </label>
319
+                <el-select v-model="select_template" placeholder="可选择病程模板" @change="didSelectTemplate">
320
+                  <el-option v-for="(option, index) in templates" :key="index" :label="option.title"
321
+                            :value="option.content"></el-option>
322
+                </el-select>
323
+
324
+               <div class="textarea_panel">
325
+                    <keep-alive>
326
+                      <editor ref="editorFive"
327
+                              id="editorsFive"
328
+                              style="width: 800px"
329
+                              v-bind:r_content="form.new_content">
330
+                      </editor>
331
+                    </keep-alive>
332
+                </div>
333
+            </div>
334
+
335
+            <div class="cell clearfix" style="margin-top:10px">
336
+              <label class="title"><span class="name">出院医嘱</span> : </label>
337
+                <el-select v-model="select_template" placeholder="可选择病程模板" @change="didSelectTemplate">
338
+                  <el-option v-for="(option, index) in templates" :key="index" :label="option.title"
339
+                            :value="option.content"></el-option>
340
+                </el-select>
341
+
342
+                <div class="textarea_panel">
343
+                    <keep-alive>
344
+                      <editor ref="editorSix"
345
+                              id="editorsSix"
346
+                              style="width: 800px"
347
+                              v-bind:r_content="form.new_content">
348
+                      </editor>
349
+                    </keep-alive>
350
+                </div>
351
+            </div>
352
+         
353
+            <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
354
+              <el-button @click="show_dialog = false">取消</el-button>
355
+              <el-button type="primary"
356
+                         @click="createAction" :loading="uploading_new_record">保存
357
+              </el-button>
358
+            </div>
359
+          </div>
360
+        </div>
361
+      </el-dialog>
142 362
 
143 363
       <!-- 编辑阶段小结 -->
144 364
        <el-dialog title="编辑阶段小结" width="80%" top="5vh" :visible.sync="edit_show_dialog">
@@ -435,44 +655,49 @@
435 655
           start_year:new Date(),
436 656
           start_month:new Date(),
437 657
           admission_time:"",
658
+          discharge_time:"",
438 659
           sick_personnel:"",
439 660
           xray:"",
661
+          admitting_diagnosis_id:"",
662
+          admitting_diagnosis:"",
663
+          discharge_diagnosis_id:"",
664
+          discharge_diagnosis:"",
440 665
           connecticut:"",
441 666
           nuclear_magnetic_resonance:"",
442 667
           ultrasound:"",
443 668
           pathology:"",
444
-        //   radio:1,
445
-        //   quarter:1,
446
-        //   dry_weight:"",
447
-        //   dialysis_count:"",
448
-        //   hd_count:"",
449
-        //   hdf_count:"",
450
-        //   hp_count:"",
451
-        //   other_count:"",
452
-        //   dialzer_apparatus:"",
453
-        //   perfusion_apparatus:"",
454
-        //   anticoagulant:"",
455
-        //   kalium:"",
456
-        //   autunite:"",
457
-        //   natrium:"",
458
-        //   hour:"",
459
-        //   minute:"",
460
-        //   befor_weight:"",
461
-        //   after_weight:"",
462
-        //   befor_pressure:"",
463
-        //   after_pressure:"",
464
-        //   template_summary_id:"",
465
-        //   template_summary_content:"",
466
-        //   template_plan_id:"",
467
-        //   template_inspection_id:0,
468
-        //   template_inspection_content:"",
469
-        //   admin_user_id:this.$store.getters.xt_user.user.id,
470
-        //   record_time: moment().locale('zh-cn').format('YYYY-MM-DD HH:mm:ss'),
471
-        //   patient_id:"",
472
-        //   start_time:"",
473
-        //   end_time:"",
474
-        //   template_plan_content:"",
475
-        //   inspect_date:"",
669
+          radio:1,
670
+          quarter:1,
671
+          dry_weight:"",
672
+          dialysis_count:"",
673
+          hd_count:"",
674
+          hdf_count:"",
675
+          hp_count:"",
676
+          other_count:"",
677
+          dialzer_apparatus:"",
678
+          perfusion_apparatus:"",
679
+          anticoagulant:"",
680
+          kalium:"",
681
+          autunite:"",
682
+          natrium:"",
683
+          hour:"",
684
+          minute:"",
685
+          befor_weight:"",
686
+          after_weight:"",
687
+          befor_pressure:"",
688
+          after_pressure:"",
689
+          template_summary_id:"",
690
+          template_summary_content:"",
691
+          template_plan_id:"",
692
+          template_inspection_id:0,
693
+          template_inspection_content:"",
694
+          admin_user_id:this.$store.getters.xt_user.user.id,
695
+          record_time: moment().locale('zh-cn').format('YYYY-MM-DD HH:mm:ss'),
696
+          patient_id:"",
697
+          start_time:"",
698
+          end_time:"",
699
+          template_plan_content:"",
700
+          inspect_date:"",
476 701
         },
477 702
         timeType:[
478 703
           {id:1,name:"第一季度"},