XMLWAN 3 years ago
parent
commit
f7917debe5

+ 7 - 7
src/api/patient.js View File

@@ -501,12 +501,12 @@ export function getInspectionItemList(params) {
501 501
   })
502 502
 }
503 503
 
504
-export function saveCreation(params) {
505
-  console.log('中国龚3223呃3额', params)
504
+export function saveCreation(data) {
505
+  console.log('中国龚3223呃3额', data)
506 506
   return request({
507 507
     url: '/api/patient/savecreationinspection',
508
-    method: 'get',
509
-    params: params
508
+    method: 'post',
509
+    data: data
510 510
   })
511 511
 }
512 512
 
@@ -534,11 +534,11 @@ export function getTemplateSummaryPrintDetail(params) {
534 534
   })
535 535
 }
536 536
 
537
-export function UpdateTemplateSummary(params) {
537
+export function UpdateTemplateSummary(data) {
538 538
   return request({
539 539
     url: '/api/patient/updatetemplatesummary',
540
-    method: 'get',
541
-    params: params
540
+    method: 'post',
541
+    data: data
542 542
   })
543 543
 }
544 544
 

+ 21 - 25
src/utils/tools.js View File

@@ -153,7 +153,7 @@ export function uParseTime(time, cFormat) {
153 153
 }
154 154
 
155 155
 export function calculateAnticoagulantZL(type, shouji, shichang, weichi) {
156
- 
156
+  console.log('t', type)
157 157
   var t = 0.5
158 158
   if (type == 1) {
159 159
     t = 0.5
@@ -168,34 +168,30 @@ export function calculateAnticoagulantZL(type, shouji, shichang, weichi) {
168 168
   if (isNaN(shouji) || isNaN(shichang) || isNaN(weichi)) {
169 169
     return 0
170 170
   }
171
- console.log((shouji + (shichang - t) * weichi).toFixed(1))
171
+  console.log((shouji + (shichang - t) * weichi).toFixed(1))
172 172
   return (shouji + (shichang - t) * weichi).toFixed(1)
173 173
 }
174 174
 
175
-
176
-
177
-
178
-
179
-export function formatDate (date, format) {
175
+export function formatDate(date, format) {
180 176
   if (/(y+)/.test(format)) {
181
-      format= format.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
177
+    format = format.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length))
182 178
   }
183
-  let o = {
184
-      'M+': date.getMonth() + 1,
185
-      'd+': date.getDate(),
186
-      'h+': date.getHours(),
187
-      'm+': date.getMinutes(),
188
-      's+': date.getSeconds()
189
-  };
190
-  for (let k in o) {
191
-      if (new RegExp(`(${k})`).test(format)) {
192
-          let str = o[k] + '';
193
-          format= format.replace(RegExp.$1, (RegExp.$1.length === 1) ? str : padLeftZero(str));
194
-      }
179
+  const o = {
180
+    'M+': date.getMonth() + 1,
181
+    'd+': date.getDate(),
182
+    'h+': date.getHours(),
183
+    'm+': date.getMinutes(),
184
+    's+': date.getSeconds()
195 185
   }
196
-  return format;
197
-};
186
+  for (const k in o) {
187
+    if (new RegExp(`(${k})`).test(format)) {
188
+      const str = o[k] + ''
189
+      format = format.replace(RegExp.$1, (RegExp.$1.length === 1) ? str : padLeftZero(str))
190
+    }
191
+  }
192
+  return format
193
+}
198 194
 
199
-function padLeftZero (str) {
200
-  return ('00' + str).substr(str.length);
201
-};
195
+function padLeftZero(str) {
196
+  return ('00' + str).substr(str.length)
197
+}

+ 24 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -2118,7 +2118,7 @@
2118 2118
         this.isVisibility = false
2119 2119
       },
2120 2120
       changeThisAnticoagulant: function(val) {
2121
-
2121
+        console.log("val",val)
2122 2122
         var thismode = val
2123 2123
         if (isNaN(thismode) || thismode <= 0) {
2124 2124
           return false
@@ -2145,6 +2145,16 @@
2145 2145
           this.anticoagulant.weichi_unit = 'ml'
2146 2146
           this.anticoagulant.zongliang_unit = 'ml'
2147 2147
         }
2148
+
2149
+        console.log('首季9999', this.dialysisPrescription.anticoagulant_zongliang)
2150
+        console.log("收集",this.dialysisPrescription.anticoagulant_shouji)
2151
+        console.log("weichi",this.dialysisPrescription.anticoagulant_weichi)
2152
+        if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
2153
+          this.dialysisPrescription.anticoagulant_zongliang = ""
2154
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
2155
+        }
2156
+
2157
+
2148 2158
       },
2149 2159
       handleCommit: function() {
2150 2160
         if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
@@ -3445,7 +3455,7 @@
3445 3455
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3446 3456
           this.dialysisPrescription.anticoagulant_zongliang = ''
3447 3457
         }
3448
-
3458
+        
3449 3459
       },
3450 3460
       'dialysisPrescription.anticoagulant_shouji': function() {
3451 3461
         let dialysis_duration_minute = 0
@@ -3477,6 +3487,11 @@
3477 3487
           this.dialysisPrescription.anticoagulant_zongliang = ''
3478 3488
         }
3479 3489
 
3490
+      if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
3491
+          this.dialysisPrescription.anticoagulant_zongliang = ""
3492
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
3493
+       }
3494
+
3480 3495
       },
3481 3496
       'dialysisPrescription.anticoagulant_weichi': function() {
3482 3497
         let dialysis_duration_minute = 0
@@ -3502,8 +3517,13 @@
3502 3517
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3503 3518
           this.dialysisPrescription.anticoagulant_zongliang = ''
3504 3519
         }
3505
-        console.log('首季', this.dialysisPrescription.anticoagulant_zongliang)
3506
-
3520
+        console.log('首季9999', this.dialysisPrescription.anticoagulant_zongliang)
3521
+        console.log("收集",this.dialysisPrescription.anticoagulant_shouji)
3522
+        console.log("weichi",this.dialysisPrescription.anticoagulant_weichi)
3523
+        if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
3524
+         this.dialysisPrescription.anticoagulant_zongliang = ""
3525
+         this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
3526
+       }
3507 3527
       },
3508 3528
       'prescription.id': {
3509 3529
         immediate: true,

+ 11 - 1
src/xt_pages/management/components/UserForm.vue View File

@@ -1041,7 +1041,8 @@ export default {
1041 1041
         { id: 1, name: "0.22%季铵盐" },
1042 1042
         { id: 2, name: "500mg/l含氯消毒剂" },
1043 1043
         { id: 3, name: "1000mg/l含氯消毒剂" },
1044
-        { id: 4, name: "1500mg/l含氯消毒剂" }
1044
+        { id: 4, name: "1500mg/l含氯消毒剂" },
1045
+        { id: 5, name: "消毒湿巾" }
1045 1046
       ],
1046 1047
       // 夜路消毒方式
1047 1048
       sterilizeType: [
@@ -1292,6 +1293,9 @@ export default {
1292 1293
             if (information[index].disinfectant_type === 4) {
1293 1294
               information[index].disinfectant_type = "1500mg/l含氯消毒剂";
1294 1295
             }
1296
+            if (information[index].disinfectant_type === 5) {
1297
+               information[index].disinfectant_type = "消毒湿巾";
1298
+            }
1295 1299
 
1296 1300
             if (information[index].disinfection === 1) {
1297 1301
               information[index].disinfection = "已消毒";
@@ -1817,6 +1821,9 @@ export default {
1817 1821
             if (information[index].disinfectant_type === 4) {
1818 1822
               information[index].disinfectant_type = "1500mg/l含氯消毒剂";
1819 1823
             }
1824
+            if (information[index].disinfectant_type === 5) {
1825
+              information[index].disinfectant_type = "消毒湿巾";
1826
+            }
1820 1827
 
1821 1828
             if (information[index].disinfection === 0) {
1822 1829
               information[index].disinfection = "";
@@ -2103,6 +2110,9 @@ export default {
2103 2110
             if (information[index].disinfectant_type === 4) {
2104 2111
               information[index].disinfectant_type = "1500mg/l含氯消毒剂";
2105 2112
             }
2113
+           if (information[index].disinfectant_type === 5) {
2114
+              information[index].disinfectant_type = "消毒湿巾";
2115
+            }
2106 2116
 
2107 2117
             if (information[index].disinfection === 0) {
2108 2118
               information[index].disinfection = "";

+ 1 - 1
src/xt_pages/management/home.vue View File

@@ -981,7 +981,7 @@
981 981
                                      </el-form-item>
982 982
                                     </el-col>
983 983
                                     <el-col :span="8">
984
-                                       <el-form-item label="患者:" required prop ="patient_name">
984
+                                       <el-form-item label="患者:">
985 985
                                            <el-autocomplete
986 986
                                                style="width:150px"
987 987
                                                popper-class="my-autocomplete"

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

@@ -160,7 +160,7 @@
160 160
                 <el-input v-model="form.count"></el-input>
161 161
             </el-form-item>
162 162
             <el-form-item label="库存">
163
-                <el-input v-model="form.total"></el-input>
163
+                <el-input v-model="form.total" :disabled="true"></el-input>
164 164
             </el-form-item>
165 165
             <el-form-item label="产地">
166 166
                 <el-input v-model="form.drug_origin_place"></el-input>

+ 17 - 15
src/xt_pages/stock/drugs/drugModifyPrice.vue View File

@@ -102,7 +102,7 @@
102 102
         </div>
103 103
     </div>
104 104
     <el-dialog
105
-        title="库房调价"
105
+        title="药品调价"
106 106
         :visible.sync="dialogVisible"
107 107
         width="1200px">
108 108
         <el-form :model="form" class="modifyDialog" label-width="120px">
@@ -142,22 +142,22 @@
142 142
             </el-form-item>
143 143
         </el-form>
144 144
         <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
145
-            <el-table-column prop="date" label="单据编号" width="100">
145
+            <el-table-column prop="date" label="单据编号" width="100" align="center">
146 146
                <template slot-scope="scope">
147 147
                  {{scope.row.warehousing_order}}
148 148
                 </template>  
149 149
             </el-table-column>
150
-            <el-table-column prop="date"label="药品名称" width="100">
150
+            <el-table-column prop="date"label="药品名称" width="100" align="center">
151 151
               <template slot-scope="scope">
152 152
                  {{scope.row.drug_name}}
153 153
                 </template>  
154 154
             </el-table-column>
155
-            <el-table-column prop="name"label="规格" width="100">
155
+            <el-table-column prop="name"label="规格" width="100" align="center">
156 156
               <template slot-scope="scope">
157
-                  {{scope.row.dose}}{{scope.row.dose_unit}}*{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
157
+                 {{scope.row.specification_name}}
158 158
               </template>
159 159
             </el-table-column>
160
-            <el-table-column prop="name" label="单位" width="100">
160
+            <el-table-column prop="name" label="单位" width="100" align="center">
161 161
               <template slot-scope="scope">
162 162
               {{scope.row.warehousing_unit}}
163 163
               </template>
@@ -167,37 +167,37 @@
167 167
               {{scope.row.count}}
168 168
               </template>
169 169
             </el-table-column> -->
170
-            <el-table-column prop="name" label="原进货价" width="100">
170
+            <el-table-column prop="name" label="原进货价" width="100" align="center">
171 171
                 <template slot-scope="scope">
172 172
                 {{scope.row.retail_price}}
173 173
                 </template>
174 174
             </el-table-column>
175
-            <el-table-column prop="name" label="原零售价" width="100">
175
+            <el-table-column prop="name" label="原零售价" width="100" align="center">
176 176
                  <template slot-scope="scope">
177 177
                   {{scope.row.retail_price}}
178 178
                 </template>
179 179
             </el-table-column>
180
-            <el-table-column  prop="name" label="新零售价" width="100">
180
+            <el-table-column  prop="name" label="新零售价" width="100" align="center">
181 181
                 <template slot-scope="scope">
182 182
                   {{scope.row.new_price}}
183 183
                 </template>  
184 184
             </el-table-column>
185
-            <el-table-column prop="name" label="生产厂商" width="100">
185
+            <el-table-column prop="name" label="生产厂商" width="100" align="center">
186 186
                 <template slot-scope="scope">
187 187
                   {{scope.row.manufacturer}}
188 188
                 </template>   
189 189
             </el-table-column>
190
-            <el-table-column prop="name" label="批准文号" width="100">
190
+            <el-table-column prop="name" label="批准文号" width="100" align="center">
191 191
                  <template slot-scope="scope">
192 192
                   {{scope.row.number}}
193 193
                 </template>    
194 194
             </el-table-column>
195
-            <el-table-column prop="name" label="供应商" width="100">
195
+            <el-table-column prop="name" label="供应商" width="100" align="center">
196 196
                 <template slot-scope="scope">
197 197
                   {{scope.row.manufacturer}}
198 198
                 </template>    
199 199
             </el-table-column>
200
-            <el-table-column prop="name" label="备注"  width="100">
200
+            <el-table-column prop="name" label="备注"  width="100" align="center">
201 201
                <template slot-scope="scope">
202 202
                   {{scope.row.remark}}
203 203
                 </template>      
@@ -471,6 +471,7 @@ export default {
471 471
             dealer:this.form.dealer,
472 472
             last_price:this.form.last_price,
473 473
             start_time:this.getTime(new Date()),
474
+            specification_name:this.form.specification_name,
474 475
             } 
475 476
           this.tableData.push(obj)     
476 477
         },
@@ -525,10 +526,11 @@ export default {
525 526
             this.form.dealer = val.dealer
526 527
             this.form.manufacturer = val.manufacturer
527 528
             this.form.remark = val.remark
528
-            this.form.warehousing_unit = val.warehouseing_unit  
529
+            this.form.warehousing_unit = val.max_unit  
529 530
             this.form.total = val.total
530 531
             this.form.batch_number = val.batch_number
531 532
             this.form.last_price = val.last_price
533
+            this.form.specification_name =  val.dose + val.dose_unit +"*"+val.min_number+val.min_unit+"/"+val.max_unit
532 534
         },
533 535
         getTime(val) {
534 536
          if(val < 0){
@@ -545,7 +547,7 @@ export default {
545 547
            this.tableData[i].retail_price = this.tableData[i].retail_price.toString()
546 548
            this.tableData[i].last_price = this.tableData[i].last_price.toString()
547 549
            this.tableData[i].new_price = this.tableData[i].new_price.toString()
548
-           this.tableData[i].count =  parseInt(this.tableData[i].count)
550
+          //  this.tableData[i].count =  parseInt(this.tableData[i].count)
549 551
            if(this.tableData[i].dealer == 0){
550 552
              this.tableData[i].dealer = ""
551 553
            }

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

@@ -352,7 +352,7 @@
352 352
         var count = 0
353 353
         for(let i=0;i<this.warehouseList.length;i++){
354 354
           if(id == this.warehouseList[i].warehousing_id){
355
-             count +=this.warehouseList[i].warehousing_count * this.warehouseList[i].last_price
355
+             count +=this.warehouseList[i].warehousing_count * this.warehouseList[i].price
356 356
           }
357 357
         }
358 358
         return count

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

@@ -993,7 +993,7 @@ export default {
993 993
              warehouse_info_id:this.form.warehouse_info_id,
994 994
              total:this.total.toString(),
995 995
              remark:this.remark,
996
-             prof_count:parseInt(this.prof_count),
996
+             proof_count:parseInt(this.form.proof_count),
997 997
            }
998 998
           console.log("params",params)
999 999
          SaveDrugProofInventory(params).then(response=>{

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

@@ -25,7 +25,7 @@
25 25
                 style="width: 200px;margin-left:10px;"
26 26
                 class="filter-item"
27 27
                 v-model.trim="searchKey"
28
-                placeholder=""
28
+               placeholder="请输入单据编号或操作人姓名"
29 29
                 />
30 30
                 <el-button
31 31
                 size="small"

+ 1 - 0
src/xt_pages/user/courseOfDisease.vue View File

@@ -330,6 +330,7 @@
330 330
 
331 331
       createAction: function() {
332 332
         this.new_content = this.$refs.editor.content
333
+        console.log("hhhhh2h3h232323232",this.new_content)
333 334
         if (this.new_content.length == 0) {
334 335
           this.$message.error('请填写病程内容')
335 336
           return

+ 16 - 0
src/xt_pages/user/dialysisSolution.vue View File

@@ -1063,6 +1063,12 @@ export default {
1063 1063
         this.addPlan.dialysis_duration,
1064 1064
         this.addPlan.anticoagulant_weichi
1065 1065
       )
1066
+
1067
+      if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
1068
+         this.addPlan.anticoagulant_zongliang = ""
1069
+         this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1070
+      }
1071
+      
1066 1072
     },
1067 1073
     'addPlan.anticoagulant_weichi': function() {
1068 1074
       this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
@@ -1071,6 +1077,11 @@ export default {
1071 1077
         this.addPlan.dialysis_duration,
1072 1078
         this.addPlan.anticoagulant_weichi
1073 1079
       )
1080
+
1081
+      if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
1082
+         this.addPlan.anticoagulant_zongliang = ""
1083
+         this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1084
+      }
1074 1085
     }
1075 1086
   },
1076 1087
 
@@ -1917,6 +1928,11 @@ export default {
1917 1928
         return false
1918 1929
       }
1919 1930
       this.anticoagulant = this.anticoagulantsConfit[thismode]
1931
+
1932
+      if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
1933
+         this.addPlan.anticoagulant_zongliang = ""
1934
+         this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1935
+      }
1920 1936
     },
1921 1937
 
1922 1938
     addPlanModeChange() {

+ 80 - 17
src/xt_pages/user/templateSummary.vue View File

@@ -60,7 +60,7 @@
60 60
             <el-col :span="14">
61 61
               <div class="record_content_panel">
62 62
                 <div style="background-color:rgb(245, 247, 250)" class="title">阶段小结内容</div>
63
-                <div style="padding:10px;border-bottom:1px solid #DCDFE6;"><span v-if="editObj.record_time!=''">阶段小结时间:{{getTime(editObj.record_time)}}</span></div>
63
+                <div style="padding:10px;border-bottom:1px solid #DCDFE6;">阶段小结时间:<span v-if="editObj.record_time!=''">{{getTime(editObj.record_time)}}</span></div>
64 64
                 <!-- <div style="padding: 10px 10px 0;">阶段小结概要:</div>
65 65
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;">
66 66
                   <span style="margin-right:10px;line-height:30px;">干体重(kg):{{editObj.dry_weight}}</span>
@@ -87,7 +87,7 @@
87 87
                   <span style="margin-right:10px;line-height:30px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
88 88
                 </div> -->
89 89
                  <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结总结:
90
-                   {{editObj.template_summary_content}}
90
+                   <span v-html="editObj.template_summary_content"></span>
91 91
                  </div>
92 92
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结化验结果:
93 93
                   <div>
@@ -109,7 +109,10 @@
109 109
                   </div>
110 110
                 </div>
111 111
 
112
-                <div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:{{editObj.template_plan_content}}</div>
112
+                <div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:
113
+                  <!-- {{editObj.template_plan_content}} -->
114
+                  <span v-html="editObj.template_plan_content"></span>
115
+                </div>
113 116
               </div>
114 117
             </el-col>
115 118
           </el-row>
@@ -303,7 +306,14 @@
303 306
                         :value="item.value">
304 307
                         </el-option>
305 308
                      </el-select>
306
-                     <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_summary_content"></el-input>
309
+                     <keep-alive>
310
+                        <editor ref="edit_neditor"
311
+                                id="edit_editor1"
312
+                                style="width: 800px"
313
+                                v-bind:r_content="form.template_summary_content">
314
+                        </editor>
315
+                    </keep-alive>
316
+                     <!-- <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_summary_content"></el-input> -->
307 317
                   </el-row>
308 318
                   <el-row>
309 319
                     <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
@@ -315,7 +325,14 @@
315 325
                         :value="item.value">
316 326
                         </el-option>
317 327
                      </el-select>
318
-                     <el-input style="margin:10px 0;" type="textarea"  autosize v-model="form.template_plan_content"></el-input>
328
+                     <keep-alive>
329
+                        <editor ref="edit_neditorOne"
330
+                                id="edit_editor"
331
+                                style="width: 800px"
332
+                                v-bind:r_content="form.template_plan_content">
333
+                        </editor>
334
+                    </keep-alive>
335
+                     <!-- <el-input style="margin:10px 0;" type="textarea"  autosize v-model="form.template_plan_content"></el-input> -->
319 336
                   </el-row>
320 337
                   <el-row>
321 338
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
@@ -561,7 +578,14 @@
561 578
                         :value="item.value">
562 579
                         </el-option>
563 580
                      </el-select>
564
-                     <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_summary_content"></el-input>
581
+                      <keep-alive>
582
+                        <editor ref="editor"
583
+                                id="edit_editor1"
584
+                                style="width: 800px"
585
+                                v-bind:r_content="form.template_summary_content">
586
+                        </editor>
587
+                    </keep-alive>
588
+                     <!-- <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_summary_content"></el-input> -->
565 589
                   </el-row>
566 590
                   <el-row>
567 591
                     <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
@@ -573,7 +597,14 @@
573 597
                         :value="item.value">
574 598
                         </el-option>
575 599
                      </el-select>
576
-                     <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_plan_content"></el-input>
600
+                      <keep-alive>
601
+                        <editor ref="editorOne"
602
+                                id="edit_editor"
603
+                                style="width: 800px"
604
+                                v-bind:r_content="form.template_plan_content">
605
+                        </editor>
606
+                    </keep-alive>
607
+                     <!-- <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_plan_content"></el-input> -->
577 608
                   </el-row>
578 609
                   <el-row>
579 610
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
@@ -850,7 +881,6 @@
850 881
           template_summary_id:"",
851 882
           template_summary_content:"",
852 883
           template_plan_id:"",
853
-          template_summary_content:"",
854 884
           template_inspection_id:0,
855 885
           template_inspection_content:"",
856 886
           admin_user_id:this.$store.getters.xt_user.user.id,
@@ -960,7 +990,8 @@
960 990
     },
961 991
     methods: {
962 992
       getTime(val) {
963
-         if(val == ""){
993
+         console.log("val2322332322323223",val)
994
+         if(val == "" || val == undefined){
964 995
           return ""
965 996
          }else {
966 997
           return uParseTime(val, '{y}-{m}-{d}')
@@ -1253,10 +1284,19 @@
1253 1284
         if(this.form.befor_pressure == ""){
1254 1285
           this.form.befor_pressure = 0
1255 1286
         }
1287
+        if(this.form.template_plan_id == ""){
1288
+          this.form.template_plan_id = 0
1289
+        }
1290
+        if(this.form.template_summary_id == ""){
1291
+          this.form.template_summary_id = 0
1292
+        }
1256 1293
         var year = this.form.start_year+"-"+"01"+"-"+"01"
1257 1294
         console.log("年",year)
1258 1295
         var month = this.form.start_year+"-"+this.form.start_month+"-"+"01"
1259
-        console.log("月",month)
1296
+        console.log("月",this.$refs)
1297
+        console.log("hhhhhh",this.$refs.edit_neditor.content)
1298
+        console.log("ooooo",this.$refs.edit_neditorOne.content)
1299
+        
1260 1300
          var params = {
1261 1301
             title:this.form.title,
1262 1302
             dry_weight:this.form.dry_weight.toString(),
@@ -1276,14 +1316,15 @@
1276 1316
             befor_weight:this.form.befor_weight.toString(),
1277 1317
             after_weight:this.form.after_weight.toString(),
1278 1318
             befor_pressure:this.form.befor_pressure,
1279
-            template_summary_content:this.form.template_summary_content,
1280
-            template_plan_content:this.form.template_plan_content,
1319
+            // template_plan_content:this.form.template_plan_content,
1320
+            template_plan_content:this.$refs.edit_neditor.content,
1281 1321
             // template_inspection_content:JSON.stringify(this.form.template_inspection_content),
1282 1322
             admin_user_id:this.form.admin_user_id,
1283 1323
             record_time:this.form.record_time,
1284 1324
             after_pressure:this.form.after_pressure,
1285 1325
             template_summary_id:this.form.template_summary_id,
1286
-            template_summary_content:this.form.template_summary_content,
1326
+            // template_summary_content:this.form.template_summary_content,
1327
+            template_summary_content:this.$refs.edit_neditorOne.content,
1287 1328
             template_plan_id:this.form.template_plan_id,
1288 1329
             template_inspection_id:this.form.template_inspection_id,
1289 1330
             patient_id:parseInt(this.patient_id),
@@ -1292,9 +1333,10 @@
1292 1333
             start_year:year,
1293 1334
             start_month:month,
1294 1335
             radio:this.form.radio,
1336
+            
1295 1337
          }
1296 1338
           console.log("parawm232323223",params)
1297
-
1339
+  
1298 1340
         saveCreation(params).then(response=>{
1299 1341
            if(response.data.state ==1){
1300 1342
              var summary =  response.data.data.summary
@@ -1342,7 +1384,10 @@
1342 1384
               var list = response.data.data.list
1343 1385
               this.inspectionList = list
1344 1386
               this.$refs.inspection_table.setCurrentRow(this.inspectionList[0])
1345
-              this.getCurrentRecordDetail(this.inspectionList[0].id)
1387
+              if (list.length > 0) {
1388
+               this.getCurrentRecordDetail(this.inspectionList[0].id)
1389
+              }
1390
+             
1346 1391
            }
1347 1392
         })
1348 1393
       },
@@ -1454,6 +1499,7 @@
1454 1499
                this.form.minute = list.minute
1455 1500
                this.form.natrium =list.natrium
1456 1501
                this.form.perfusion_apparatus= list.perfusion_apparatus
1502
+               this.form.other_count = list.other_count
1457 1503
                this.form.record_time = this.getTimeTwo(list.record_time)
1458 1504
                console.log("时间232233232",list.record_time)
1459 1505
                if(list.template_inspection_id == 0){
@@ -1504,6 +1550,15 @@
1504 1550
        }
1505 1551
       },
1506 1552
       editCreation(){
1553
+        if(this.form.template_summary_id == ""){
1554
+           this.form.template_summary_id = 0
1555
+        }
1556
+        if(this.form.template_inspection_id == ""){
1557
+           this.form.template_inspection_id = 0
1558
+        }
1559
+        if(this.form.template_plan_id == ""){
1560
+           this.form.template_plan_id = 0
1561
+        }
1507 1562
         var params = {
1508 1563
             id:this.form.id,
1509 1564
             title:this.form.title,
@@ -1524,8 +1579,10 @@
1524 1579
             befor_weight:this.form.befor_weight.toString(),
1525 1580
             after_weight:this.form.after_weight.toString(),
1526 1581
             befor_pressure:this.form.befor_pressure,
1527
-            template_summary_content:this.form.template_summary_content,
1528
-            template_plan_content:this.form.template_plan_content,
1582
+            // template_summary_content:this.form.template_summary_content,
1583
+            // template_plan_content:this.form.template_plan_content,
1584
+            template_plan_content:this.$refs.editor.content,
1585
+            template_summary_content:this.$refs.editorOne.content,
1529 1586
             admin_user_id:this.form.admin_user_id,
1530 1587
             record_time:this.form.record_time,
1531 1588
             after_pressure:this.form.after_pressure,
@@ -1714,6 +1771,12 @@
1714 1771
         console.log("val2323323223",val)
1715 1772
         if(val == "2021-02"){
1716 1773
           this.startYear = val+"-" + "28"
1774
+        }else if(val == "2021-08"){
1775
+          this.startYear = val+"-" + "31"
1776
+        }else if(val == "2021-10"){
1777
+          this.startYear = val+"-" + "31"
1778
+        }else if(val == "2021-12"){
1779
+          this.startYear = val+"-" + "31"
1717 1780
         }else{
1718 1781
           this.startYear = val+"-" + "30"
1719 1782
         }

+ 6 - 2
src/xt_pages/user/templateSummaryPrint.vue View File

@@ -47,7 +47,10 @@
47 47
         </div>
48 48
       </div> -->
49 49
       <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;">
50
-        <span style="font-weight:bold;">阶段小结总结:</span><div style="line-height:24px;">{{patientList.template_summary_content}}</div>  
50
+        <span style="font-weight:bold;">阶段小结总结:</span><div style="line-height:24px;">
51
+          <!-- {{patientList.template_summary_content}} -->
52
+          <div v-html="patientList.template_summary_content"></div>
53
+        </div>  
51 54
       </div>
52 55
      <div style="padding:20px 0;border-bottom:1px solid #000;min-height:250px;">
53 56
         <span style="font-weight:bold;">阶段小结化验结果:</span>
@@ -71,7 +74,8 @@
71 74
       </div>
72 75
       <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;">
73 76
         <span style="font-weight:bold;">阶段小结个性化方案:</span>
74
-        <div style="line-height:24px;">{{patientList.template_plan_content}}</div>
77
+        <!-- <div style="line-height:24px;">{{patientList.template_plan_content}}</div> -->
78
+         <div v-html="patientList.template_plan_content"></div>
75 79
       </div>
76 80
      <div style="margin-top:10px;">
77 81
        <span>记录医生:{{getPatientList(patientList.admin_user_id)}}</span>