Ver código fonte

11月14日 库存扣减更新

XMLWAN 3 anos atrás
pai
commit
93f09869a7

+ 5 - 3
src/lang/zh.js Ver arquivo

@@ -368,8 +368,10 @@ 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
+    treatment: '诊疗经过',
375
+    illness_discharge: '出院时病情'
374 376
   }
375 377
 }

+ 4 - 1
src/xt_pages/data/template.vue Ver arquivo

@@ -48,7 +48,10 @@ 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.treatment"), key:"treatment"},
54
+        { label: this.$t("data_config.illness_discharge"), key:"illness_discharge"},
52 55
       ],
53 56
       activeName: "education",
54 57
       createdTimes: 0

+ 25 - 52
src/xt_pages/stock/drugs/components/drugCancelDetail.vue Ver arquivo

@@ -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"
@@ -132,9 +92,10 @@
132 92
 
133 93
         <el-table-column label="药品类型" align="center">
134 94
           <template slot-scope="scope">
135
-            <span v-if="scope.row.drug_type == 1">西药</span>
95
+            <!-- <span v-if="scope.row.drug_type == 1">西药</span>
136 96
             <span v-if="scope.row.drug_type == 2">草药</span>
137
-            <span v-if="scope.row.drug_type == 3">成药</span>
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>

+ 17 - 13
src/xt_pages/stock/drugs/components/drugInOrder.vue Ver arquivo

@@ -95,9 +95,10 @@
95 95
 
96 96
         <el-table-column label="药品类型" align="center">
97 97
           <template slot-scope="scope">
98
-            <span v-if="scope.row.drug_type == 1">西药</span>
98
+            <!-- <span v-if="scope.row.drug_type == 1">西药</span>
99 99
             <span v-if="scope.row.drug_type == 2">草药</span>
100
-            <span v-if="scope.row.drug_type == 3">成药</span>
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>

+ 17 - 11
src/xt_pages/stock/drugs/components/drugOutDetail.vue Ver arquivo

@@ -133,9 +133,10 @@
133 133
 
134 134
         <el-table-column label="药品类型" align="center">
135 135
           <template slot-scope="scope">
136
-            <span v-if="scope.row.drug_type == 1">西药</span>
136
+            <!-- <span v-if="scope.row.drug_type == 1">西药</span>
137 137
             <span v-if="scope.row.drug_type == 2">草药</span>
138
-            <span v-if="scope.row.drug_type == 3">成药</span>
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 Ver arquivo

@@ -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 Ver arquivo

@@ -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

+ 202 - 65
src/xt_pages/user/hospitalSummary.vue Ver arquivo

@@ -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,85 @@
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>
141 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>
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">pathology</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
+            </div>
250
+            <!-- <div class="cell clearfix" style="margin-top: 10px">
251
+              <label class="title"><span class="name">病程标题</span> : </label>
252
+              <el-input v-model="title" style="width: 420px"></el-input>
253
+            </div> -->
254
+
255
+
256
+            <!-- <div class="textarea_panel">
257
+              <keep-alive>
258
+                <editor ref="editor"
259
+                        id="editors"
260
+                        style="width: 600px"
261
+                        v-bind:r_content="new_content"
262
+                        >
263
+                </editor>
264
+              </keep-alive>
265
+            </div> -->
266
+
267
+            <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
268
+              <el-button @click="show_dialog = false">取消</el-button>
269
+              <el-button type="primary"
270
+                         @click="createAction" :loading="uploading_new_record">保存
271
+              </el-button>
272
+            </div>
273
+          </div>
274
+        </div>
275
+      </el-dialog>
142 276
 
143 277
       <!-- 编辑阶段小结 -->
144 278
        <el-dialog title="编辑阶段小结" width="80%" top="5vh" :visible.sync="edit_show_dialog">
@@ -435,44 +569,47 @@
435 569
           start_year:new Date(),
436 570
           start_month:new Date(),
437 571
           admission_time:"",
572
+          discharge_time:"",
438 573
           sick_personnel:"",
439 574
           xray:"",
440
-          connecticut:"",
575
+          admitting_diagnosis_id:"",
576
+          admitting_diagnosis:"",
577
+         connecticut:"",
441 578
           nuclear_magnetic_resonance:"",
442 579
           ultrasound:"",
443 580
           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:"",
581
+          radio:1,
582
+          quarter:1,
583
+          dry_weight:"",
584
+          dialysis_count:"",
585
+          hd_count:"",
586
+          hdf_count:"",
587
+          hp_count:"",
588
+          other_count:"",
589
+          dialzer_apparatus:"",
590
+          perfusion_apparatus:"",
591
+          anticoagulant:"",
592
+          kalium:"",
593
+          autunite:"",
594
+          natrium:"",
595
+          hour:"",
596
+          minute:"",
597
+          befor_weight:"",
598
+          after_weight:"",
599
+          befor_pressure:"",
600
+          after_pressure:"",
601
+          template_summary_id:"",
602
+          template_summary_content:"",
603
+          template_plan_id:"",
604
+          template_inspection_id:0,
605
+          template_inspection_content:"",
606
+          admin_user_id:this.$store.getters.xt_user.user.id,
607
+          record_time: moment().locale('zh-cn').format('YYYY-MM-DD HH:mm:ss'),
608
+          patient_id:"",
609
+          start_time:"",
610
+          end_time:"",
611
+          template_plan_content:"",
612
+          inspect_date:"",
476 613
         },
477 614
         timeType:[
478 615
           {id:1,name:"第一季度"},