Browse Source

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

see999 3 years ago
parent
commit
e30e3f8862

+ 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
 

+ 2 - 2
src/api/stock.js View File

@@ -835,9 +835,9 @@ export function updateStockPrice(params) {
835 835
   })
836 836
 }
837 837
 
838
-export function deleteStockPrice(id, params) {
838
+export function deleteStockPrice(params) {
839 839
   return request({
840
-    url: '/api/stock/deletestockprice?id=' + id,
840
+    url: '/api/stock/deletestockprice',
841 841
     method: 'Get',
842 842
     params: params
843 843
   })

+ 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
+}

+ 8 - 5
src/xt_pages/data/components/addInspection.vue View File

@@ -49,9 +49,9 @@
49 49
                     <el-select v-model="form.project_detail" filterable placeholder="请选择" @change="changeProject">
50 50
                         <el-option
51 51
                                 v-for="item in projectList"
52
-                                :key="item.id"
52
+                                :key="item.new_id"
53 53
                                 :label="item.project_name"
54
-                                :value="item.id">
54
+                                :value="item.new_id">
55 55
                         </el-option>
56 56
                     </el-select>
57 57
                 </el-form-item>
@@ -257,7 +257,8 @@
257 257
                 project_name: projectList[i].project_name,
258 258
                 unit: projectList[i].unit,
259 259
                 price: projectList[i].price,
260
-                type: 2
260
+                type: 2,
261
+                new_id: Math.floor((Math.random() + Math.floor(Math.random() * 9 + 1)) * Math.pow(10, 10 - 1))
261 262
               }
262 263
               this.projectList.push(obj)
263 264
 
@@ -271,7 +272,9 @@
271 272
                 project_name: goodInfos[i].good_name,
272 273
                 unit: goodInfos[i].good_unit,
273 274
                 price: goodInfos[i].retail_price,
274
-                type: 3
275
+                type: 3,
276
+                new_id: Math.floor((Math.random() + Math.floor(Math.random() * 9 + 1)) * Math.pow(10, 10 - 1))
277
+
275 278
               }
276 279
               this.projectList.push(obj)
277 280
             }
@@ -309,7 +312,7 @@
309 312
       addProjectList() {
310 313
         console.log(this.projectList)
311 314
         for (let i = 0; i < this.projectList.length; i++) {
312
-          if (this.form.project_detail == this.projectList[i].id) {
315
+          if (this.form.project_detail == this.projectList[i].new_id) {
313 316
             this.projectList[i].number = this.form.number
314 317
             this.projectList[i].number = this.projectList[i].number.toString()
315 318
             this.tableData.push(this.projectList[i])

+ 8 - 4
src/xt_pages/data/components/editInspection.vue View File

@@ -50,7 +50,7 @@
50 50
                                 v-for="item,index in projectList"
51 51
                                 :key="index"
52 52
                                 :label="item.project_name"
53
-                                :value="item.id">
53
+                                :value="item.new_id">
54 54
                         </el-option>
55 55
                     </el-select>
56 56
 
@@ -209,7 +209,9 @@
209 209
                 unit: projectList[i].unit,
210 210
                 price: projectList[i].price,
211 211
                 type: 2,
212
-                m_id: 0
212
+                m_id: 0,
213
+                new_id: Math.floor((Math.random() + Math.floor(Math.random() * 9 + 1)) * Math.pow(10, 10 - 1))
214
+
213 215
               }
214 216
               this.projectList.push(obj)
215 217
 
@@ -224,7 +226,9 @@
224 226
                 unit: goodInfos[i].good_unit,
225 227
                 price: goodInfos[i].retail_price,
226 228
                 type: 3,
227
-                m_id: 0
229
+                m_id: 0,
230
+                new_id: Math.floor((Math.random() + Math.floor(Math.random() * 9 + 1)) * Math.pow(10, 10 - 1))
231
+
228 232
 
229 233
               }
230 234
               this.projectList.push(obj)
@@ -336,7 +340,7 @@
336 340
       },
337 341
       addProjectList() {
338 342
         for (let i = 0; i < this.projectList.length; i++) {
339
-          if (this.form.project_detail == this.projectList[i].id) {
343
+          if (this.form.project_detail == this.projectList[i].new_id) {
340 344
             this.projectList[i].number = this.form.number
341 345
             this.projectList[i].number = this.projectList[i].number.toString()
342 346
             this.tableData.push(this.projectList[i])

+ 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"

+ 49 - 10
src/xt_pages/stock/stockDamaged.vue View File

@@ -108,7 +108,7 @@
108 108
         <el-form :model="form" class="modifyDialog" label-width="120px">
109 109
           
110 110
             <el-form-item label="耗材ID">
111
-                <el-input v-model="form.good_id"></el-input>
111
+                <el-input v-model="form.good_id" :disabled="true"></el-input>
112 112
             </el-form-item>
113 113
             <el-form-item label="耗材名称">
114 114
                   <el-autocomplete
@@ -129,7 +129,7 @@
129 129
                  </el-autocomplete>
130 130
             </el-form-item>
131 131
             <el-form-item label="规格">
132
-                <el-input v-model="form.specification_name"></el-input>
132
+                <el-input v-model="form.specification_name" :disabled="true"></el-input>
133 133
             </el-form-item>
134 134
             <el-form-item label="批号">
135 135
                  <el-select v-model="form.number" filterable placeholder="请选择">
@@ -142,28 +142,31 @@
142 142
                 </el-select>
143 143
             </el-form-item>
144 144
             <el-form-item label="单位">
145
-                <el-input v-model="form.warehousing_unit"></el-input>
145
+                <el-input v-model="form.warehousing_unit" :disabled="true"></el-input>
146 146
             </el-form-item>
147 147
             <el-form-item label="进货价">
148
-                <el-input v-model="form.buy_price"></el-input>
148
+                <el-input v-model="form.buy_price" :disabled="true"></el-input>
149 149
             </el-form-item>
150 150
             <el-form-item label="零售价">
151
-                <el-input v-model="form.packing_price"></el-input>
151
+                <el-input v-model="form.packing_price" :disabled="true"></el-input>
152 152
             </el-form-item>
153 153
             <el-form-item label="报损数量">
154 154
                 <el-input v-model="form.count"></el-input>
155 155
             </el-form-item>
156 156
             <el-form-item label="库存">
157
-                <el-input v-model="form.total"></el-input>
157
+                <el-input v-model="form.total" :disabled="true"></el-input>
158 158
             </el-form-item>
159 159
             <el-form-item label="产地">
160 160
                 <el-input v-model="form.good_origin_place"></el-input>
161 161
             </el-form-item>
162 162
             <el-form-item label="批准文号">
163
-                <el-input v-model="form.license_number"></el-input>
163
+                <el-input v-model="form.license_number" :disabled="true"></el-input>
164 164
             </el-form-item>
165 165
             <el-form-item label="生产厂商">
166
-                <el-input v-model="form.manufacturer"></el-input>
166
+                <el-input v-model="form.manufacturer" :disabled="true"></el-input>
167
+            </el-form-item>
168
+           <el-form-item label="供应商">
169
+                <el-input v-model="form.dealer" :disabled="true"></el-input>
167 170
             </el-form-item>
168 171
             <el-form-item label="备注">
169 172
                 <div style="display:flex;">
@@ -309,7 +312,23 @@
309 312
                     </template>
310 313
                     </el-autocomplete>
311 314
                 </el-form-item>
312
-               <el-form-item label="报损数量:">
315
+               <el-form-item label="规格:">
316
+                 <el-input v-model="form.specification_name" style="width:200px"></el-input>
317
+               </el-form-item>
318
+               <el-form-item label="批号">
319
+                 <el-select v-model="form.number" filterable placeholder="请选择">
320
+                  <el-option
321
+                    v-for="(item,index) in numberList"
322
+                    :key="index"
323
+                    :label="item.number"
324
+                    :value="item.number">
325
+                  </el-option>
326
+                </el-select>
327
+              </el-form-item>
328
+              <el-form-item label="单位">
329
+                 <el-input v-model="form.warehousing_unit"></el-input>
330
+              </el-form-item>
331
+                <el-form-item label="报损数量:">
313 332
                  <el-input v-model="form.count" style="width:200px"></el-input>
314 333
                </el-form-item>
315 334
              </el-col> 
@@ -512,6 +531,11 @@ export default {
512 531
           this.form.product_date = val.product_date
513 532
       },
514 533
       addStock(){
534
+
535
+        if(this.form.count == ""){
536
+          this.$message.error("请输入报损数量")
537
+          return 
538
+        }
515 539
         var obj = {
516 540
           good_id:this.form.good_id,
517 541
           good_name:this.form.good_name,
@@ -674,12 +698,20 @@ export default {
674 698
        this.tableData.splice(index,1)
675 699
      },
676 700
      toEdit(row){
701
+      console.log("row",row)
677 702
       this.form.good_name = row.good_name
678
-      this.form.packing_unit = row.packing_unit
703
+      this.form.warehousing_unit = row.warehousing_unit
679 704
       this.form.packing_price = row.packing_price
680 705
       this.form.count = row.count
681 706
       this.form.remark = row.remark
682 707
       this.form.id = row.id
708
+      this.form.specification_name = row.specification_name
709
+      this.form.dealer = row.dealer
710
+      this.form.manufacturer = row.manufacturer
711
+      this.form.good_origin_place = row.good_origin_place
712
+      this.form.total = row.total
713
+      this.form.number = row.number
714
+      this.form.license_number = row.license_number
683 715
       this.editPriceDialogVisible = true  
684 716
      },
685 717
      upatePrice(){
@@ -689,6 +721,13 @@ export default {
689 721
             this.tableData[i].packing_price = this.form.packing_price
690 722
             this.tableData[i].count = this.form.count
691 723
             this.tableData[i].remark = this.form.remark
724
+            this.tableData[i].good_name = this.form.specification_name
725
+            this.tableData[i].warehousing_unit  = this.form.warehousing_unit
726
+            this.tableData[i].total = this.form.total
727
+            this.tableData[i].number = this.form.number
728
+            this.tableData[i].license_number = this.form.license_number
729
+            this.tableData[i].manufacturer = this.form.manufacturer
730
+            this.tableData[i].good_origin_place = this.form.good_origin_place
692 731
          }
693 732
        }
694 733
        this.editPriceDialogVisible = false

+ 73 - 32
src/xt_pages/stock/stockModifyPrice.vue View File

@@ -26,14 +26,16 @@
26 26
             v-model="start_time"
27 27
             type="date"
28 28
             style="margin-left:5px;width:140px;"
29
-            placeholder="选择日期">
29
+            placeholder="选择日期"
30
+            @change="changeStartTime">
30 31
             </el-date-picker>
31 32
             <el-date-picker
32 33
             size="small"
33 34
             v-model="end_time"
34 35
             type="date"
35 36
             style="margin-left:5px;width:140px;"
36
-            placeholder="选择日期">
37
+            placeholder="选择日期"
38
+            @change="changeEndTime">
37 39
             </el-date-picker>
38 40
         </div>
39 41
         <div>
@@ -168,15 +170,21 @@
168 170
                   </template>
169 171
                  </el-autocomplete>
170 172
             </el-form-item>
173
+            <el-form-item label="规格">
174
+                <el-input v-model="form.specification_name" :disabled="true"></el-input>
175
+            </el-form-item>
171 176
             <el-form-item label="原价格">
172
-                <el-input v-model="form.packing_price"></el-input>
177
+                <el-input v-model="form.packing_price" :disabled="true"></el-input>
173 178
             </el-form-item>
174 179
             <el-form-item label="现价格">
175 180
                 <el-input v-model="form.new_price"></el-input>
176 181
             </el-form-item>
177
-            <!-- <el-form-item label="调价数量">
178
-                <el-input v-model="form.count" type="number"></el-input>
179
-            </el-form-item> -->
182
+            <el-form-item label="生产商">
183
+                <el-input v-model="form.manufacturer" :disabled="true"></el-input>
184
+            </el-form-item>
185
+            <el-form-item label="供应商">
186
+                <el-input v-model="form.dealer" :disabled="true"></el-input>
187
+            </el-form-item>
180 188
             <el-form-item label="备注" style="width:66%;">
181 189
                 <div style="display:flex;">
182 190
                     <el-input v-model="form.remark"></el-input>
@@ -205,11 +213,6 @@
205 213
                {{scope.row.warehousing_unit}}
206 214
                </template>
207 215
             </el-table-column>
208
-            <!-- <el-table-column prop="name" label="调价数量" width="100" align="center">
209
-              <template slot-scope="scope">
210
-                {{scope.row.count}}
211
-              </template> 
212
-            </el-table-column> -->
213 216
             <el-table-column prop="name" label="原进货价" width="100" align="center">
214 217
                <template slot-scope="scope">
215 218
                 {{scope.row.buy_price}}
@@ -288,26 +291,26 @@
288 291
                     </template>
289 292
                     </el-autocomplete>
290 293
                 </el-form-item>
294
+               <el-form-item label="规格">
295
+                 <el-input v-model="form.specification_name" style="width:200px" :disabled="true"></el-input>
296
+               </el-form-item>
297
+               <el-form-item label="生产厂商">
298
+                 <el-input v-model="form.manufacturer" style="width:200px" :disabled="true"></el-input>
299
+               </el-form-item>
300
+              <el-form-item label="供应商">
301
+                 <el-input v-model="form.dealer" style="width:200px" :disabled="true"></el-input>
302
+               </el-form-item>
291 303
                <el-form-item label="原价格:">
292
-                 <el-input v-model="form.packing_price" style="width:200px"></el-input>
304
+                 <el-input v-model="form.packing_price" style="width:200px" :disabled="true"></el-input>
293 305
                </el-form-item>
294 306
                <el-form-item label="现价格:">
295 307
                     <el-input v-model="form.new_price" style="width:200px"></el-input>
296 308
                 </el-form-item>
309
+               <el-form-item label="备注:">
310
+                    <el-input v-model="form.remark" style="width:200px"></el-input>
311
+                </el-form-item>
297 312
              </el-col> 
298 313
             </el-row>
299
-            <!-- <el-row>
300
-             <el-col>
301
-               <el-form-item label="调价数量:">
302
-                    <el-input v-model="form.count"  style="width:200px"></el-input>
303
-                </el-form-item>
304
-                <el-form-item label="备注:">
305
-                    <div style="display:flex;">
306
-                        <el-input v-model="form.remark"  style="width:200px"></el-input>
307
-                    </div>
308
-                </el-form-item>
309
-              </el-col>  
310
-            </el-row> -->
311 314
           </el-form>
312 315
         </span>
313 316
         <span slot="footer" class="dialog-footer">
@@ -379,7 +382,6 @@
379 382
                         placeholder="请输入耗材名称"
380 383
                         @select="handleSelect"
381 384
                         @input="changeGoodName(scope.$index)"
382
-                        :disabled="true"
383 385
                         style="width:160px;"
384 386
                     >
385 387
                         <i class="el-icon-search el-input__icon" slot="suffix"></i>
@@ -388,12 +390,21 @@
388 390
                     </template>
389 391
                     </el-autocomplete>
390 392
                 </el-form-item>
393
+               <el-form-item label="规格:">
394
+                 <el-input v-model="form.specification_name" style="width:200px" :disabled="true"></el-input>
395
+               </el-form-item>
391 396
                <el-form-item label="原价格:">
392
-                 <el-input v-model="form.packing_price" style="width:200px"></el-input>
397
+                 <el-input v-model="form.packing_price" style="width:200px" :disabled="true"></el-input>
393 398
                </el-form-item>
394 399
                <el-form-item label="现价格:">
395 400
                     <el-input v-model="form.new_price" style="width:200px"></el-input>
396 401
                 </el-form-item>
402
+               <el-form-item label="生产商">
403
+                 <el-input v-model="form.manufacturer" style="width:200px" :disabled="true"></el-input>
404
+               </el-form-item>
405
+              <el-form-item label="供应商">
406
+                 <el-input v-model="form.dealer" style="width:200px" :disabled="true"></el-input>
407
+               </el-form-item>
397 408
                 <el-form-item label="备注:">
398 409
                     <el-input v-model="form.remark" style="width:200px"></el-input>
399 410
                 </el-form-item>
@@ -534,11 +545,12 @@ export default {
534 545
           }else{
535 546
             this.form.dealer = val.dealer
536 547
           }
537
-          if(this.form.manufacturer == 0){
538
-            this.form.manufacturer = ""
539
-          }else{
540
-            this.form.manufacturer = val.manufacturer
541
-          }
548
+          // if(this.form.manufacturer == 0){
549
+          //   this.form.manufacturer = ""
550
+          // }else{
551
+          //   this.form.manufacturer = val.manufacturer
552
+          // }
553
+          this.form.manufacturer = val.manufacturer
542 554
           this.form.specification_name = val.specification_name
543 555
           this.form.remark = val.remark
544 556
           this.form.buy_price = val.buy_price
@@ -546,6 +558,10 @@ export default {
546 558
          
547 559
       },
548 560
       addPrice(){
561
+        if(this.form.new_price == ""){
562
+           this.$message.error("请输入现价格")
563
+           return
564
+        }
549 565
         var obj = {
550 566
          id:this.form.id,
551 567
          good_name:this.form.good_name,
@@ -601,9 +617,16 @@ export default {
601 617
       this.form.count = row.count
602 618
       this.form.remark = row.remark
603 619
       this.form.id = row.id
620
+      this.form.specification_name = row.specification_name
621
+      this.form.manufacturer = row.manufacturer
622
+      this.form.dealer = row.dealer
604 623
       this.editPriceDialogVisible = true  
605 624
      },
606 625
      upatePrice(){
626
+       if(this.form.new_price == ""){
627
+          this.$message.error("请输入现价格")
628
+          return false
629
+       }
607 630
        for(let i=0;i<this.tableData.length;i++){
608 631
          if(this.form.id == this.tableData[i].id){
609 632
             this.tableData[i].good_name = this.form.good_name
@@ -769,21 +792,30 @@ export default {
769 792
            }else{
770 793
              this.form.new_price = info.new_price
771 794
            }
772
-          
795
+           this.form.specification_name = info.specification_name
773 796
            this.form.packing_price = info.packing_price
774 797
            this.form.remark = info.remark
798
+           this.form.manufacturer = info.manufacturer
799
+           this.form.dealer = info.dealer
775 800
            this.modifyDialogVisible = true
776 801
          }
777 802
        })
778 803
      },
779 804
      updateStockPrice(){
805
+         if(this.form.new_price == ""){
806
+           this.$message.error("请输入现价格")
807
+           return
808
+         }
780 809
          var params = {
810
+
781 811
            new_price:this.form.new_price.toString(),
782 812
            id:this.id,
783 813
            packing_price:this.form.packing_price.toString(),
784 814
            remark:this.form.remark,
785 815
            good_id:this.form.good_id,
786 816
            good_name:this.form.good_name,
817
+           manufacturer:this.form.manufacturer,
818
+           dealer:this.form.dealer,
787 819
          }
788 820
          console.log("params",params)
789 821
        updateStockPrice(params).then(response=>{
@@ -808,6 +840,7 @@ export default {
808 840
           let params = {
809 841
             id:id,
810 842
           }
843
+          console.log("id23232322332233223",id)
811 844
           deleteStockPrice(params).then(response => {
812 845
             if (response.data.state == 1) {
813 846
               var msg = response.data.data.msg
@@ -818,6 +851,14 @@ export default {
818 851
         }).catch(() => {
819 852
           this.loading = false
820 853
         });
854
+     },
855
+     changeStartTime(val){
856
+       this.start_time = this.getTime(val)
857
+       this.getAllStockPrice()
858
+     },
859
+     changeEndTime(val){
860
+       this.end_time = this.getTime(val)
861
+       this.getAllStockPrice()
821 862
      }
822 863
     },
823 864
     created(){

+ 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() {

+ 83 - 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}')
@@ -1042,7 +1073,7 @@
1042 1073
           start_time:this.start_date,
1043 1074
           end_time:this.end_date,
1044 1075
         }
1045
-        console.log("世纪时间",params)
1076
+        // console.log("世纪时间",params)
1046 1077
         console.log(moment(moment(2020 + '-01-01').toDate()).quarter(2).format("YYYY-MM-DD"))
1047 1078
         getInitDataList(params).then(response=>{
1048 1079
           if(response.data.state == 1){
@@ -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,6 +1333,7 @@
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
 
@@ -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,18 @@
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
+        }
1562
+        if(this.dialysis_count == ""){
1563
+            this.dialysis_count = 0
1564
+        }
1507 1565
         var params = {
1508 1566
             id:this.form.id,
1509 1567
             title:this.form.title,
@@ -1524,8 +1582,10 @@
1524 1582
             befor_weight:this.form.befor_weight.toString(),
1525 1583
             after_weight:this.form.after_weight.toString(),
1526 1584
             befor_pressure:this.form.befor_pressure,
1527
-            template_summary_content:this.form.template_summary_content,
1528
-            template_plan_content:this.form.template_plan_content,
1585
+            // template_summary_content:this.form.template_summary_content,
1586
+            // template_plan_content:this.form.template_plan_content,
1587
+            template_plan_content:this.$refs.editor.content,
1588
+            template_summary_content:this.$refs.editorOne.content,
1529 1589
             admin_user_id:this.form.admin_user_id,
1530 1590
             record_time:this.form.record_time,
1531 1591
             after_pressure:this.form.after_pressure,
@@ -1714,6 +1774,12 @@
1714 1774
         console.log("val2323323223",val)
1715 1775
         if(val == "2021-02"){
1716 1776
           this.startYear = val+"-" + "28"
1777
+        }else if(val == "2021-08"){
1778
+          this.startYear = val+"-" + "31"
1779
+        }else if(val == "2021-10"){
1780
+          this.startYear = val+"-" + "31"
1781
+        }else if(val == "2021-12"){
1782
+          this.startYear = val+"-" + "31"
1717 1783
         }else{
1718 1784
           this.startYear = val+"-" + "30"
1719 1785
         }

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