XMLWAN 3 years ago
parent
commit
f7917debe5

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

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
   return request({
506
   return request({
507
     url: '/api/patient/savecreationinspection',
507
     url: '/api/patient/savecreationinspection',
508
-    method: 'get',
509
-    params: params
508
+    method: 'post',
509
+    data: data
510
   })
510
   })
511
 }
511
 }
512
 
512
 
534
   })
534
   })
535
 }
535
 }
536
 
536
 
537
-export function UpdateTemplateSummary(params) {
537
+export function UpdateTemplateSummary(data) {
538
   return request({
538
   return request({
539
     url: '/api/patient/updatetemplatesummary',
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
 }
153
 }
154
 
154
 
155
 export function calculateAnticoagulantZL(type, shouji, shichang, weichi) {
155
 export function calculateAnticoagulantZL(type, shouji, shichang, weichi) {
156
- 
156
+  console.log('t', type)
157
   var t = 0.5
157
   var t = 0.5
158
   if (type == 1) {
158
   if (type == 1) {
159
     t = 0.5
159
     t = 0.5
168
   if (isNaN(shouji) || isNaN(shichang) || isNaN(weichi)) {
168
   if (isNaN(shouji) || isNaN(shichang) || isNaN(weichi)) {
169
     return 0
169
     return 0
170
   }
170
   }
171
- console.log((shouji + (shichang - t) * weichi).toFixed(1))
171
+  console.log((shouji + (shichang - t) * weichi).toFixed(1))
172
   return (shouji + (shichang - t) * weichi).toFixed(1)
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
   if (/(y+)/.test(format)) {
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
         this.isVisibility = false
2118
         this.isVisibility = false
2119
       },
2119
       },
2120
       changeThisAnticoagulant: function(val) {
2120
       changeThisAnticoagulant: function(val) {
2121
-
2121
+        console.log("val",val)
2122
         var thismode = val
2122
         var thismode = val
2123
         if (isNaN(thismode) || thismode <= 0) {
2123
         if (isNaN(thismode) || thismode <= 0) {
2124
           return false
2124
           return false
2145
           this.anticoagulant.weichi_unit = 'ml'
2145
           this.anticoagulant.weichi_unit = 'ml'
2146
           this.anticoagulant.zongliang_unit = 'ml'
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
       handleCommit: function() {
2159
       handleCommit: function() {
2150
         if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
2160
         if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
3445
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3455
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3446
           this.dialysisPrescription.anticoagulant_zongliang = ''
3456
           this.dialysisPrescription.anticoagulant_zongliang = ''
3447
         }
3457
         }
3448
-
3458
+        
3449
       },
3459
       },
3450
       'dialysisPrescription.anticoagulant_shouji': function() {
3460
       'dialysisPrescription.anticoagulant_shouji': function() {
3451
         let dialysis_duration_minute = 0
3461
         let dialysis_duration_minute = 0
3477
           this.dialysisPrescription.anticoagulant_zongliang = ''
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
       'dialysisPrescription.anticoagulant_weichi': function() {
3496
       'dialysisPrescription.anticoagulant_weichi': function() {
3482
         let dialysis_duration_minute = 0
3497
         let dialysis_duration_minute = 0
3502
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3517
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3503
           this.dialysisPrescription.anticoagulant_zongliang = ''
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
       'prescription.id': {
3528
       'prescription.id': {
3509
         immediate: true,
3529
         immediate: true,

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

1041
         { id: 1, name: "0.22%季铵盐" },
1041
         { id: 1, name: "0.22%季铵盐" },
1042
         { id: 2, name: "500mg/l含氯消毒剂" },
1042
         { id: 2, name: "500mg/l含氯消毒剂" },
1043
         { id: 3, name: "1000mg/l含氯消毒剂" },
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
       sterilizeType: [
1048
       sterilizeType: [
1292
             if (information[index].disinfectant_type === 4) {
1293
             if (information[index].disinfectant_type === 4) {
1293
               information[index].disinfectant_type = "1500mg/l含氯消毒剂";
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
             if (information[index].disinfection === 1) {
1300
             if (information[index].disinfection === 1) {
1297
               information[index].disinfection = "已消毒";
1301
               information[index].disinfection = "已消毒";
1817
             if (information[index].disinfectant_type === 4) {
1821
             if (information[index].disinfectant_type === 4) {
1818
               information[index].disinfectant_type = "1500mg/l含氯消毒剂";
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
             if (information[index].disinfection === 0) {
1828
             if (information[index].disinfection === 0) {
1822
               information[index].disinfection = "";
1829
               information[index].disinfection = "";
2103
             if (information[index].disinfectant_type === 4) {
2110
             if (information[index].disinfectant_type === 4) {
2104
               information[index].disinfectant_type = "1500mg/l含氯消毒剂";
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
             if (information[index].disinfection === 0) {
2117
             if (information[index].disinfection === 0) {
2108
               information[index].disinfection = "";
2118
               information[index].disinfection = "";

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

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

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

160
                 <el-input v-model="form.count"></el-input>
160
                 <el-input v-model="form.count"></el-input>
161
             </el-form-item>
161
             </el-form-item>
162
             <el-form-item label="库存">
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
             </el-form-item>
164
             </el-form-item>
165
             <el-form-item label="产地">
165
             <el-form-item label="产地">
166
                 <el-input v-model="form.drug_origin_place"></el-input>
166
                 <el-input v-model="form.drug_origin_place"></el-input>

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

102
         </div>
102
         </div>
103
     </div>
103
     </div>
104
     <el-dialog
104
     <el-dialog
105
-        title="库房调价"
105
+        title="药品调价"
106
         :visible.sync="dialogVisible"
106
         :visible.sync="dialogVisible"
107
         width="1200px">
107
         width="1200px">
108
         <el-form :model="form" class="modifyDialog" label-width="120px">
108
         <el-form :model="form" class="modifyDialog" label-width="120px">
142
             </el-form-item>
142
             </el-form-item>
143
         </el-form>
143
         </el-form>
144
         <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
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
                <template slot-scope="scope">
146
                <template slot-scope="scope">
147
                  {{scope.row.warehousing_order}}
147
                  {{scope.row.warehousing_order}}
148
                 </template>  
148
                 </template>  
149
             </el-table-column>
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
               <template slot-scope="scope">
151
               <template slot-scope="scope">
152
                  {{scope.row.drug_name}}
152
                  {{scope.row.drug_name}}
153
                 </template>  
153
                 </template>  
154
             </el-table-column>
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
               <template slot-scope="scope">
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
               </template>
158
               </template>
159
             </el-table-column>
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
               <template slot-scope="scope">
161
               <template slot-scope="scope">
162
               {{scope.row.warehousing_unit}}
162
               {{scope.row.warehousing_unit}}
163
               </template>
163
               </template>
167
               {{scope.row.count}}
167
               {{scope.row.count}}
168
               </template>
168
               </template>
169
             </el-table-column> -->
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
                 <template slot-scope="scope">
171
                 <template slot-scope="scope">
172
                 {{scope.row.retail_price}}
172
                 {{scope.row.retail_price}}
173
                 </template>
173
                 </template>
174
             </el-table-column>
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
                  <template slot-scope="scope">
176
                  <template slot-scope="scope">
177
                   {{scope.row.retail_price}}
177
                   {{scope.row.retail_price}}
178
                 </template>
178
                 </template>
179
             </el-table-column>
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
                 <template slot-scope="scope">
181
                 <template slot-scope="scope">
182
                   {{scope.row.new_price}}
182
                   {{scope.row.new_price}}
183
                 </template>  
183
                 </template>  
184
             </el-table-column>
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
                 <template slot-scope="scope">
186
                 <template slot-scope="scope">
187
                   {{scope.row.manufacturer}}
187
                   {{scope.row.manufacturer}}
188
                 </template>   
188
                 </template>   
189
             </el-table-column>
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
                  <template slot-scope="scope">
191
                  <template slot-scope="scope">
192
                   {{scope.row.number}}
192
                   {{scope.row.number}}
193
                 </template>    
193
                 </template>    
194
             </el-table-column>
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
                 <template slot-scope="scope">
196
                 <template slot-scope="scope">
197
                   {{scope.row.manufacturer}}
197
                   {{scope.row.manufacturer}}
198
                 </template>    
198
                 </template>    
199
             </el-table-column>
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
                <template slot-scope="scope">
201
                <template slot-scope="scope">
202
                   {{scope.row.remark}}
202
                   {{scope.row.remark}}
203
                 </template>      
203
                 </template>      
471
             dealer:this.form.dealer,
471
             dealer:this.form.dealer,
472
             last_price:this.form.last_price,
472
             last_price:this.form.last_price,
473
             start_time:this.getTime(new Date()),
473
             start_time:this.getTime(new Date()),
474
+            specification_name:this.form.specification_name,
474
             } 
475
             } 
475
           this.tableData.push(obj)     
476
           this.tableData.push(obj)     
476
         },
477
         },
525
             this.form.dealer = val.dealer
526
             this.form.dealer = val.dealer
526
             this.form.manufacturer = val.manufacturer
527
             this.form.manufacturer = val.manufacturer
527
             this.form.remark = val.remark
528
             this.form.remark = val.remark
528
-            this.form.warehousing_unit = val.warehouseing_unit  
529
+            this.form.warehousing_unit = val.max_unit  
529
             this.form.total = val.total
530
             this.form.total = val.total
530
             this.form.batch_number = val.batch_number
531
             this.form.batch_number = val.batch_number
531
             this.form.last_price = val.last_price
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
         getTime(val) {
535
         getTime(val) {
534
          if(val < 0){
536
          if(val < 0){
545
            this.tableData[i].retail_price = this.tableData[i].retail_price.toString()
547
            this.tableData[i].retail_price = this.tableData[i].retail_price.toString()
546
            this.tableData[i].last_price = this.tableData[i].last_price.toString()
548
            this.tableData[i].last_price = this.tableData[i].last_price.toString()
547
            this.tableData[i].new_price = this.tableData[i].new_price.toString()
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
            if(this.tableData[i].dealer == 0){
551
            if(this.tableData[i].dealer == 0){
550
              this.tableData[i].dealer = ""
552
              this.tableData[i].dealer = ""
551
            }
553
            }

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

352
         var count = 0
352
         var count = 0
353
         for(let i=0;i<this.warehouseList.length;i++){
353
         for(let i=0;i<this.warehouseList.length;i++){
354
           if(id == this.warehouseList[i].warehousing_id){
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
         return count
358
         return count

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

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

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

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

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

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

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

1063
         this.addPlan.dialysis_duration,
1063
         this.addPlan.dialysis_duration,
1064
         this.addPlan.anticoagulant_weichi
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
     'addPlan.anticoagulant_weichi': function() {
1073
     'addPlan.anticoagulant_weichi': function() {
1068
       this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
1074
       this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
1071
         this.addPlan.dialysis_duration,
1077
         this.addPlan.dialysis_duration,
1072
         this.addPlan.anticoagulant_weichi
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
         return false
1928
         return false
1918
       }
1929
       }
1919
       this.anticoagulant = this.anticoagulantsConfit[thismode]
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
     addPlanModeChange() {
1938
     addPlanModeChange() {

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

60
             <el-col :span="14">
60
             <el-col :span="14">
61
               <div class="record_content_panel">
61
               <div class="record_content_panel">
62
                 <div style="background-color:rgb(245, 247, 250)" class="title">阶段小结内容</div>
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
                 <!-- <div style="padding: 10px 10px 0;">阶段小结概要:</div>
64
                 <!-- <div style="padding: 10px 10px 0;">阶段小结概要:</div>
65
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;">
65
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;">
66
                   <span style="margin-right:10px;line-height:30px;">干体重(kg):{{editObj.dry_weight}}</span>
66
                   <span style="margin-right:10px;line-height:30px;">干体重(kg):{{editObj.dry_weight}}</span>
87
                   <span style="margin-right:10px;line-height:30px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
87
                   <span style="margin-right:10px;line-height:30px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
88
                 </div> -->
88
                 </div> -->
89
                  <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结总结:
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
                  </div>
91
                  </div>
92
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结化验结果:
92
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结化验结果:
93
                   <div>
93
                   <div>
109
                   </div>
109
                   </div>
110
                 </div>
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
               </div>
116
               </div>
114
             </el-col>
117
             </el-col>
115
           </el-row>
118
           </el-row>
303
                         :value="item.value">
306
                         :value="item.value">
304
                         </el-option>
307
                         </el-option>
305
                      </el-select>
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
                   </el-row>
317
                   </el-row>
308
                   <el-row>
318
                   <el-row>
309
                     <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
319
                     <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
315
                         :value="item.value">
325
                         :value="item.value">
316
                         </el-option>
326
                         </el-option>
317
                      </el-select>
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
                   </el-row>
336
                   </el-row>
320
                   <el-row>
337
                   <el-row>
321
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
338
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
561
                         :value="item.value">
578
                         :value="item.value">
562
                         </el-option>
579
                         </el-option>
563
                      </el-select>
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
                   </el-row>
589
                   </el-row>
566
                   <el-row>
590
                   <el-row>
567
                     <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
591
                     <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
573
                         :value="item.value">
597
                         :value="item.value">
574
                         </el-option>
598
                         </el-option>
575
                      </el-select>
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
                   </el-row>
608
                   </el-row>
578
                   <el-row>
609
                   <el-row>
579
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
610
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
850
           template_summary_id:"",
881
           template_summary_id:"",
851
           template_summary_content:"",
882
           template_summary_content:"",
852
           template_plan_id:"",
883
           template_plan_id:"",
853
-          template_summary_content:"",
854
           template_inspection_id:0,
884
           template_inspection_id:0,
855
           template_inspection_content:"",
885
           template_inspection_content:"",
856
           admin_user_id:this.$store.getters.xt_user.user.id,
886
           admin_user_id:this.$store.getters.xt_user.user.id,
960
     },
990
     },
961
     methods: {
991
     methods: {
962
       getTime(val) {
992
       getTime(val) {
963
-         if(val == ""){
993
+         console.log("val2322332322323223",val)
994
+         if(val == "" || val == undefined){
964
           return ""
995
           return ""
965
          }else {
996
          }else {
966
           return uParseTime(val, '{y}-{m}-{d}')
997
           return uParseTime(val, '{y}-{m}-{d}')
1253
         if(this.form.befor_pressure == ""){
1284
         if(this.form.befor_pressure == ""){
1254
           this.form.befor_pressure = 0
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
         var year = this.form.start_year+"-"+"01"+"-"+"01"
1293
         var year = this.form.start_year+"-"+"01"+"-"+"01"
1257
         console.log("年",year)
1294
         console.log("年",year)
1258
         var month = this.form.start_year+"-"+this.form.start_month+"-"+"01"
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
          var params = {
1300
          var params = {
1261
             title:this.form.title,
1301
             title:this.form.title,
1262
             dry_weight:this.form.dry_weight.toString(),
1302
             dry_weight:this.form.dry_weight.toString(),
1276
             befor_weight:this.form.befor_weight.toString(),
1316
             befor_weight:this.form.befor_weight.toString(),
1277
             after_weight:this.form.after_weight.toString(),
1317
             after_weight:this.form.after_weight.toString(),
1278
             befor_pressure:this.form.befor_pressure,
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
             // template_inspection_content:JSON.stringify(this.form.template_inspection_content),
1321
             // template_inspection_content:JSON.stringify(this.form.template_inspection_content),
1282
             admin_user_id:this.form.admin_user_id,
1322
             admin_user_id:this.form.admin_user_id,
1283
             record_time:this.form.record_time,
1323
             record_time:this.form.record_time,
1284
             after_pressure:this.form.after_pressure,
1324
             after_pressure:this.form.after_pressure,
1285
             template_summary_id:this.form.template_summary_id,
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
             template_plan_id:this.form.template_plan_id,
1328
             template_plan_id:this.form.template_plan_id,
1288
             template_inspection_id:this.form.template_inspection_id,
1329
             template_inspection_id:this.form.template_inspection_id,
1289
             patient_id:parseInt(this.patient_id),
1330
             patient_id:parseInt(this.patient_id),
1292
             start_year:year,
1333
             start_year:year,
1293
             start_month:month,
1334
             start_month:month,
1294
             radio:this.form.radio,
1335
             radio:this.form.radio,
1336
+            
1295
          }
1337
          }
1296
           console.log("parawm232323223",params)
1338
           console.log("parawm232323223",params)
1297
-
1339
+  
1298
         saveCreation(params).then(response=>{
1340
         saveCreation(params).then(response=>{
1299
            if(response.data.state ==1){
1341
            if(response.data.state ==1){
1300
              var summary =  response.data.data.summary
1342
              var summary =  response.data.data.summary
1342
               var list = response.data.data.list
1384
               var list = response.data.data.list
1343
               this.inspectionList = list
1385
               this.inspectionList = list
1344
               this.$refs.inspection_table.setCurrentRow(this.inspectionList[0])
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
                this.form.minute = list.minute
1499
                this.form.minute = list.minute
1455
                this.form.natrium =list.natrium
1500
                this.form.natrium =list.natrium
1456
                this.form.perfusion_apparatus= list.perfusion_apparatus
1501
                this.form.perfusion_apparatus= list.perfusion_apparatus
1502
+               this.form.other_count = list.other_count
1457
                this.form.record_time = this.getTimeTwo(list.record_time)
1503
                this.form.record_time = this.getTimeTwo(list.record_time)
1458
                console.log("时间232233232",list.record_time)
1504
                console.log("时间232233232",list.record_time)
1459
                if(list.template_inspection_id == 0){
1505
                if(list.template_inspection_id == 0){
1504
        }
1550
        }
1505
       },
1551
       },
1506
       editCreation(){
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
         var params = {
1562
         var params = {
1508
             id:this.form.id,
1563
             id:this.form.id,
1509
             title:this.form.title,
1564
             title:this.form.title,
1524
             befor_weight:this.form.befor_weight.toString(),
1579
             befor_weight:this.form.befor_weight.toString(),
1525
             after_weight:this.form.after_weight.toString(),
1580
             after_weight:this.form.after_weight.toString(),
1526
             befor_pressure:this.form.befor_pressure,
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
             admin_user_id:this.form.admin_user_id,
1586
             admin_user_id:this.form.admin_user_id,
1530
             record_time:this.form.record_time,
1587
             record_time:this.form.record_time,
1531
             after_pressure:this.form.after_pressure,
1588
             after_pressure:this.form.after_pressure,
1714
         console.log("val2323323223",val)
1771
         console.log("val2323323223",val)
1715
         if(val == "2021-02"){
1772
         if(val == "2021-02"){
1716
           this.startYear = val+"-" + "28"
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
         }else{
1780
         }else{
1718
           this.startYear = val+"-" + "30"
1781
           this.startYear = val+"-" + "30"
1719
         }
1782
         }

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

47
         </div>
47
         </div>
48
       </div> -->
48
       </div> -->
49
       <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;">
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
       </div>
54
       </div>
52
      <div style="padding:20px 0;border-bottom:1px solid #000;min-height:250px;">
55
      <div style="padding:20px 0;border-bottom:1px solid #000;min-height:250px;">
53
         <span style="font-weight:bold;">阶段小结化验结果:</span>
56
         <span style="font-weight:bold;">阶段小结化验结果:</span>
71
       </div>
74
       </div>
72
       <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;">
75
       <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;">
73
         <span style="font-weight:bold;">阶段小结个性化方案:</span>
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
       </div>
79
       </div>
76
      <div style="margin-top:10px;">
80
      <div style="margin-top:10px;">
77
        <span>记录医生:{{getPatientList(patientList.admin_user_id)}}</span>  
81
        <span>记录医生:{{getPatientList(patientList.admin_user_id)}}</span>