Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

杨青 1 year ago
parent
commit
07851a25c8

+ 1 - 1
config/dev.env.js View File

@@ -7,7 +7,7 @@ module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9 9
   // BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-  //  BASE_API: '"https://api.xt.test.sgjyun.com"',
10
+  // BASE_API: '"https://api.xt.test.sgjyun.com"',
11 11
   BASE_API: '"http://localhost:9531"',
12 12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13 13
   SRCM_HOST: '"http://test1.sgjyun.com"',

+ 1 - 1
config/index.js View File

@@ -29,7 +29,7 @@ module.exports = {
29 29
 
30 30
     // host: 'xt.test.sgjyun.com',
31 31
     //  host: 'xt.kuyicloud.com',
32
-    // host: 'xt.test.sgjyun.com',
32
+    //  host: 'xt.test.sgjyun.com',
33 33
     host: 'localhost',
34 34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
35 35
     autoOpenBrowser: true,

+ 5 - 33
src/api/dialysis.js View File

@@ -182,7 +182,7 @@ export function postDoubleCheck(params) {
182 182
 }
183 183
 
184 184
 export function postAccepts(params) {
185
-  console.log('params', params)
185
+ 
186 186
   return request({
187 187
     url: '/api/dialysis/accepts',
188 188
     method: 'Post',
@@ -195,7 +195,7 @@ export function postAccepts(params) {
195 195
 }
196 196
 
197 197
 export function postAssessmentBeforeDislysis(params) {
198
-  console.log('params', params)
198
+ 
199 199
   return request({
200 200
     url: '/api/dialysis/assessmentbeforedislysis',
201 201
     method: 'Post',
@@ -208,7 +208,7 @@ export function postAssessmentBeforeDislysis(params) {
208 208
 }
209 209
 
210 210
 export function postTreatmentsummary(params) {
211
-  console.log('param223322323', params)
211
+ 
212 212
   return request({
213 213
     url: '/api/dialysis/treatmentsummary',
214 214
     method: 'Post',
@@ -404,39 +404,11 @@ export function getDialysisAdviceToday(params) {
404 404
   })
405 405
 }
406 406
 
407
-
408
-export function SaveDialysisInformationSetting(params) {
409
-  return request({
410
-    url: '/api/patient/savedialysisInformationsetting',
411
-    method: 'get',
412
-    params: params
413
-  })
414
-}
415
-
416
-export function getDialysisInformationSetting(params){
407
+export function saveInformation(params){
417 408
   
418 409
   return request({
419
-    url:"/api/patient/getdialyisinformationsetting",
410
+    url:"/api/patient/saveinformation",
420 411
     method:"get",
421 412
     params:params
422 413
   })
423
-}
424
-
425
-export function checkDialysisInformation(params){
426
-  
427
-  return request({
428
-    url:"/api/patient/checkdialysisinformation",
429
-    method:"Get",
430
-    params:params
431
-  })
432
-}
433
-
434
-
435
-
436
-export function getSchedualPatientFlow(params) {
437
-  return request({
438
-    url: '/api/dialysis/patientsflow',
439
-    method: 'get',
440
-    params: params
441
-  })
442 414
 }

+ 124 - 80
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue View File

@@ -223,7 +223,7 @@
223 223
         :cell-class-name="adviceNameShow"
224 224
         :modal-append-to-body="false"
225 225
         highlight-current-row
226
-        
226
+
227 227
       >
228 228
       <!-- @selection-change="handleSelectionChange" -->
229 229
         <!-- <el-table-column type="selection"  width="55"></el-table-column> -->
@@ -257,7 +257,6 @@
257 257
             <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
258 258
               <span class="el-dropdown-link">
259 259
                 &emsp;{{ getAdviceContent(scope.row, 2)}}
260
-               
261 260
                 <i class="el-icon-arrow-down el-icon--right"></i>
262 261
               </span>
263 262
               <el-dropdown-menu slot="dropdown">
@@ -291,7 +290,7 @@
291 290
           </template>
292 291
         </el-table-column>
293 292
         <el-table-column
294
-          v-if="template_id != 6 && org_id!=10223 && org_id!=10445 && org_id!=0"
293
+          v-if="template_id != 6 && org_id!=10223 && org_id!=10445"
295 294
           prop="checker"
296 295
           min-width="30px"
297 296
           align="center"
@@ -305,7 +304,7 @@
305 304
         </el-table-column>
306 305
       </el-table>
307 306
 
308
-     
307
+
309 308
 
310 309
       <el-table
311 310
         v-if="his_is_open  == 1 || is_advice_open == 1"
@@ -360,7 +359,6 @@
360 359
             <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
361 360
               <span class="el-dropdown-link">
362 361
                 &emsp;{{ getAdviceContent(scope.row, 2)}}
363
-                 
364 362
                 <i class="el-icon-arrow-down el-icon--right"></i>
365 363
               </span>
366 364
               <el-dropdown-menu slot="dropdown">
@@ -608,6 +606,40 @@
608 606
       v-on:add-new-order="addNewOrder"
609 607
       :admin_users="admin_users"
610 608
     ></edit-group-advice>
609
+
610
+
611
+      <el-dialog
612
+          title="提示"
613
+          :visible.sync="infoDialogVisible"
614
+          width="30%">
615
+          <span>
616
+           <el-form>
617
+             <el-row>
618
+               <span>申请日期:</span>
619
+                <span>
620
+                    <el-date-picker
621
+                      type="datetime"
622
+                      format="yyyy-MM-dd HH:mm"
623
+                      value-format="yyyy-MM-dd HH:mm"
624
+                      placeholder="选择时间"
625
+                      v-model="selected_date"
626
+                  ></el-date-picker>
627
+                </span>
628
+             </el-row>
629
+             <el-row>
630
+               <span>备注:</span>
631
+                <span>
632
+                   <el-input v-model="remark" style="width:200px"></el-input>
633
+                </span>
634
+             </el-row>
635
+           </el-form>
636
+         
637
+          </span>
638
+          <span slot="footer" class="dialog-footer">
639
+            <el-button @click="infoDialogVisible = false">取 消</el-button>
640
+            <el-button type="primary" @click="saveInformation">确 定</el-button>
641
+          </span>
642
+        </el-dialog>
611 643
   </div>
612 644
 </template>
613 645
 
@@ -783,7 +815,9 @@
783 815
         src_type:"",
784 816
         org_id:0,
785 817
         schedulePatient:{},
786
-        tempArrOne:[],
818
+        infoDialogVisible:false,
819
+        selected_date:"",
820
+        remark:""
787 821
       }
788 822
     },
789 823
     watch: {
@@ -798,40 +832,12 @@
798 832
         this.form['dialysis_order_id'] = this.dialysis_order.id
799 833
       },
800 834
 
801
-      'doctor_advices': function() {
802
-      
803
-        this.handleSpanTempArrOne();
804
-      },
805
-     
806 835
     },
807 836
     methods: {
808
-      handleSpanTempArrOne() {
809
-          this.tempArrOne = [];
810
-         
811
-          for (let i = 0; i < this.doctor_advices.length; i++) {
812
-            if (i === 0) {
813
-              this.tempArrOne.push(1);
814
-              this.pos = 0;
815
-            } else {
816
-              // 判断当前元素与上一个元素是否相同
817
-              if (
818
-                this.doctor_advices[i].groupno ===
819
-                this.doctor_advices[i - 1].groupno
820
-              ) {
821
-                this.tempArrOne[this.pos] += 1;
822
-                this.tempArrOne.push(0);
823
-              } else {
824
-                this.tempArrOne.push(1);
825
-                this.pos = i;
826
-              }
827
-            }
828
-          }
829
-      },
830 837
       handleSelectionChange(){
831 838
 
832 839
       },
833
-     
834
-    
840
+
835 841
       //调试
836 842
       lili(index,row){
837 843
         // console.log("==index==",index)
@@ -915,6 +921,9 @@
915 921
               response => {
916 922
                 if (response.data.state == 0) {
917 923
                   this.$message.error(response.data.msg);
924
+                  if(response.data.code == 600000008){
925
+                     this.infoDialogVisible = true
926
+                   }
918 927
                   return false;
919 928
                 } else {
920 929
                   this.$notify({
@@ -949,7 +958,6 @@
949 958
           return ''
950 959
         }
951 960
       },
952
-     
953 961
       submitEditAdvice() {
954 962
         // console.log()
955 963
         console.log("保存22222222222222")
@@ -975,6 +983,9 @@
975 983
           response => {
976 984
             if (response.data.state == 0) {
977 985
               this.$message.error(response.data.msg)
986
+              if(response.data.code == 600000008){
987
+               this.infoDialogVisible = true
988
+              }
978 989
               return false
979 990
             } else {
980 991
               this.$notify({
@@ -1283,6 +1294,9 @@
1283 1294
         ExecDoctorAdvice(this.patient.id, this.currentRow.id, this.execTime, mode,this.currentRow.origin).then(response => {
1284 1295
             if (response.data.state == 0) {
1285 1296
               this.$message.error(response.data.msg)
1297
+             if(response.data.code == 600000008){
1298
+               this.infoDialogVisible = true
1299
+             }
1286 1300
               this.exceLoading = false
1287 1301
               return false
1288 1302
             } else {
@@ -1326,12 +1340,12 @@
1326 1340
               }
1327 1341
 
1328 1342
               if(msg == 2){
1329
-                this.$message.error("执行失败,库存不足,请入库")
1343
+                this.$message.error("库存不足,请入库")
1330 1344
                 this.execTimeDialogVisible = false
1331 1345
                 return false
1332 1346
               }
1333 1347
               if(msg == 3){
1334
-                this.$message.error("执行失败,无库存,请入库")
1348
+                this.$message.error("无库存,请入库")
1335 1349
                 this.execTimeDialogVisible = false
1336 1350
                 return false
1337 1351
               }
@@ -1377,6 +1391,9 @@
1377 1391
             this.loading = false
1378 1392
             if (response.data.state == 0) {
1379 1393
               this.$message.error(response.data.msg)
1394
+              if(response.data.code == 600000008){
1395
+               this.infoDialogVisible = true
1396
+              }
1380 1397
               return false
1381 1398
             } else {
1382 1399
               this.$notify({
@@ -1650,7 +1667,9 @@
1650 1667
               response => {
1651 1668
                 if (response.data.state == 0) {
1652 1669
                   this.$message.error(response.data.msg)
1653
-
1670
+                  if(response.data.code == 600000008){
1671
+                    this.infoDialogVisible = true
1672
+                  }
1654 1673
                   this.deleLoading = false
1655 1674
                   return false
1656 1675
                 } else {
@@ -1822,6 +1841,9 @@
1822 1841
             DeleteGroupAdvice(groupno, mode).then(response => {
1823 1842
               if (response.data.state == 0) {
1824 1843
                 this.$message.error(response.data.msg)
1844
+                if(response.data.code == 600000008){
1845
+                 this.infoDialogVisible = true
1846
+                }
1825 1847
                 return false
1826 1848
               } else {
1827 1849
                 this.$notify({
@@ -1870,6 +1892,9 @@
1870 1892
               this.deleLoading = false
1871 1893
               if (response.data.state == 0) {
1872 1894
                 this.$message.error(response.data.msg)
1895
+                if(response.data.code == 600000008){
1896
+                   this.infoDialogVisible = true
1897
+                }
1873 1898
                 return false
1874 1899
               } else {
1875 1900
                 this.$notify({
@@ -1911,6 +1936,9 @@
1911 1936
             DeleteDoctorAdvice(this.currentRow.id, mode).then(response => {
1912 1937
               this.deleLoading = false
1913 1938
               if (response.data.state == 0) {
1939
+                 if(response.data.code == 600000008){
1940
+                  this.infoDialogVisible = true
1941
+                 }
1914 1942
                 this.$message.error(response.data.msg)
1915 1943
                 return false
1916 1944
               } else {
@@ -2126,8 +2154,17 @@
2126 2154
         return true
2127 2155
       }
2128 2156
       ,
2129
-    
2130
-      
2157
+      mergeSpan({ row, column, rowIndex, columnIndex }) {
2158
+        if (columnIndex != 2) {
2159
+          const _row = this.tempArr[rowIndex]
2160
+          const _col = _row > 0 ? 1 : 0
2161
+          return {
2162
+            rowspan: _row,
2163
+            colspan: _col
2164
+          }
2165
+        }
2166
+      }
2167
+      ,
2131 2168
       handleSpanTempArr() {
2132 2169
         this.tempArr = []
2133 2170
 
@@ -2290,45 +2327,34 @@
2290 2327
         // });
2291 2328
       },
2292 2329
       objectSpanMethod({ row, column, rowIndex, columnIndex }) {
2293
-        console.log("hhhhhhhhhh",this.tempArrOne)
2294
-        //合并单元格
2295
-        if (columnIndex === 0 || columnIndex === 1 ) {
2296
-          const _row = this.tempArrOne[rowIndex];
2297
-          const _col = _row > 0 ? 1 : 0;
2298
-          console.log("_row====",_row)
2299
-          console.log("_row----------",_col)
2300
-          return {
2301
-            rowspan: _row,
2302
-            colspan: _col
2303
-          };
2304
-        }
2305
-        // if (columnIndex === 0) {
2306
-        //   if (rowIndex % 2 === 0) {
2307
-        //     return {
2308
-        //       rowspan: 2,
2309
-        //       colspan: 1
2310
-        //     }
2311
-        //   } else {
2312
-        //     return {
2313
-        //       rowspan: 0,
2314
-        //       colspan: 0
2315
-        //     }
2316
-        //   }
2317
-        // }
2318 2330
 
2319
-        // if (columnIndex === 1) {
2320
-        //   if (rowIndex % 2 === 0) {
2321
-        //     return {
2322
-        //       rowspan: 2,
2323
-        //       colspan: 1
2324
-        //     }
2325
-        //   } else {
2326
-        //     return {
2327
-        //       rowspan: 0,
2328
-        //       colspan: 0
2329
-        //     }
2330
-        //   }
2331
-        // }
2331
+        if (columnIndex === 0) {
2332
+          if (rowIndex % 2 === 0) {
2333
+            return {
2334
+              rowspan: 2,
2335
+              colspan: 1
2336
+            }
2337
+          } else {
2338
+            return {
2339
+              rowspan: 0,
2340
+              colspan: 0
2341
+            }
2342
+          }
2343
+        }
2344
+
2345
+        if (columnIndex === 1) {
2346
+          if (rowIndex % 2 === 0) {
2347
+            return {
2348
+              rowspan: 2,
2349
+              colspan: 1
2350
+            }
2351
+          } else {
2352
+            return {
2353
+              rowspan: 0,
2354
+              colspan: 0
2355
+            }
2356
+          }
2357
+        }
2332 2358
       }
2333 2359
       ,
2334 2360
       GetLastOrNextDoctorAdvice(params) {
@@ -2631,10 +2657,28 @@
2631 2657
          }
2632 2658
          console.log("nam e23233232322323wo",name)
2633 2659
          return name
2660
+      },
2661
+
2662
+     saveInformation(){
2663
+        var params = {
2664
+          selected_date:this.selected_date,
2665
+          patient_id:this.$route.query.patient_id,
2666
+          record_date:this.$route.query.date,
2667
+          module:2,
2668
+          remark:this.remark,
2669
+        }
2670
+        saveInformation(params).then(response=>{
2671
+           if(response.data.state == 1){
2672
+             var information = response.data.data.information
2673
+             this.$message.success("审核成功!")
2674
+             this.infoDialogVisible = false
2675
+           }
2676
+        })
2634 2677
       }
2678
+      
2635 2679
     },
2636 2680
     created() {
2637
-     
2681
+    
2638 2682
       var date = this.$route.query && this.$route.query.date
2639 2683
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
2640 2684
       this.form.advice_date = this.record_date

+ 120 - 81
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue View File

@@ -140,7 +140,7 @@
140 140
           >{{ item.name }}
141 141
         </el-radio>
142 142
       </el-radio-group>
143
-     
143
+
144 144
       </el-form-item>
145 145
 
146 146
       <el-form-item
@@ -208,33 +208,28 @@
208 208
           >高风险</el-radio
209 209
         >
210 210
       </el-radio-group>
211
- 
211
+
212
+      </el-form-item>
213
+
214
+      <el-form-item
215
+        label-width="150px"
216
+        label="跌倒风险预防措施: "
217
+        :prop="isName('跌倒风险预防措施')"
218
+        :rules="isCheckmust('跌倒风险预防措施')"
219
+        v-if="isShow('跌倒风险预防措施')"
220
+      >
221
+        <!-- isFalldown prop="precautionTwo" @change="precautionchange" isCheckmust('跌倒风险预防措施') :prop="isName('跌倒风险预防措施')" :rules="isCheckmust('跌倒风险预防措施')"
222
+           [{required: true, message: '请选择跌倒风险预防措施', trigger: 'change'}]-->
223
+        <el-checkbox-group v-model="precautionTwo" @change="precautionchange">
224
+          <el-checkbox
225
+            v-for="item in precaution_arr"
226
+            :label="item.name"
227
+            :key="item.id"
228
+            >{{ item.name }}</el-checkbox
229
+          >
230
+        </el-checkbox-group>
212 231
       </el-form-item>
213 232
 
214
-      <div style="position: relative;">
215
-        <span v-if="isrequired" style="color: red;position: absolute;top: 10px;">*</span>
216
-        <el-form-item
217
-          label-width="138px"
218
-          label="跌倒风险预防措施: "
219
-          prop="precautionTwo"
220
-          :rules="isCheckmust('跌倒风险预防措施')"
221
-          v-if="isShow('跌倒风险预防措施')"
222
-          style="display: inline-block;"
223
-        >
224
-          <!--v-if="isShow('跌倒风险预防措施')" isFalldown prop="precautionTwo" @change="precautionchange" isCheckmust('跌倒风险预防措施')
225
-            :prop="isName('跌倒风险预防措施')" :rules="isCheckmust('跌倒风险预防措施')"
226
-            [{required: true, message: '请选择跌倒风险预防措施', trigger: 'change'}]-->
227
-            
228
-          <el-checkbox-group v-model="precautionTwo" @change="precautionchange" >
229
-            <el-checkbox
230
-              v-for="item in precaution_arr"
231
-              :label="item.name"
232
-              :key="item.id"
233
-              >{{ item.name }}</el-checkbox
234
-            >
235
-          </el-checkbox-group>
236
-        </el-form-item>
237
-      </div>
238 233
       <el-form-item
239 234
         label-width="200px"
240 235
         label="其他跌倒风险预防措施 : "
@@ -340,16 +335,54 @@
340 335
     </el-form>
341 336
     <div slot="footer" class="dialog-footer">
342 337
       <el-button @click="handleCancle">取 消</el-button>
343
-      <!-- v-if="hasPermission"-->
344
-      <el-button type="primary"   @click="handleComfirm('receiveTreatmentAsses')"
338
+      <!--v-if="hasPermission" -->
339
+      <el-button type="primary"  @click="handleComfirm('receiveTreatmentAsses')"
345 340
         >保 存</el-button
346 341
       >
347 342
     </div>
348 343
   </el-dialog>
344
+
345
+
346
+ <el-dialog
347
+          title="提示"
348
+          :visible.sync="infoDialogVisible"
349
+          width="30%">
350
+          <span>
351
+           <el-form>
352
+             <el-row>
353
+               <span>申请日期:</span>
354
+                <span>
355
+                    <el-date-picker
356
+                      type="datetime"
357
+                      format="yyyy-MM-dd HH:mm"
358
+                      value-format="yyyy-MM-dd HH:mm"
359
+                      placeholder="选择时间"
360
+                      v-model="selected_date"
361
+                  ></el-date-picker>
362
+                </span>
363
+             </el-row>
364
+             <el-row>
365
+               <span>备注:</span>
366
+                <span>
367
+                   <el-input v-model="remark" style="width:200px"></el-input>
368
+                </span>
369
+             </el-row>
370
+           </el-form>
371
+
372
+          </span>
373
+          <span slot="footer" class="dialog-footer">
374
+            <el-button @click="infoDialogVisible = false">取 消</el-button>
375
+            <el-button type="primary" @click="saveInformation">确 定</el-button>
376
+          </span>
377
+        </el-dialog>
378
+
379
+  </div>
380
+
381
+
349 382
 </template>
350 383
 
351 384
 <script>
352
-import { postAccepts } from "@/api/dialysis";
385
+import { postAccepts,saveInformation } from "@/api/dialysis";
353 386
 import { uParseTime } from "@/utils/tools";
354 387
 import store from "@/store";
355 388
 import { getDataConfig } from "@/utils/data";
@@ -395,10 +428,11 @@ export default {
395 428
         tumble: "",
396 429
         his_department: "",
397 430
         his_bed: "",
398
-        falldown:[],
399 431
       },
400 432
       precautionTwo: [],
401
-      arr:[]
433
+      infoDialogVisible:false,
434
+      selected_date:"",
435
+      remark:"",
402 436
     };
403 437
   },
404 438
   methods: {
@@ -422,21 +456,22 @@ export default {
422 456
       }
423 457
       this.accepts = accepts;
424 458
       // console.log("accepts", accepts);
425
-      // var arr = [];
426
-      // if (this.accepts.precaution) {
427
-      //   var precaution = this.accepts.precaution.split(",");
428
-      //   // console.log("precaution", precaution);
429
-      //   // console.log("hhh", this.precaution_arr);
430
-      //   for (let i = 0; i < precaution.length; i++) {
431
-      //     for (let j = 0; j < this.precaution_arr.length; j++) {
432
-      //       if (parseInt(precaution[i]) == this.precaution_arr[j].id) {
433
-      //         // console.log("aaaa");
434
-      //         this.arr.push(this.precaution_arr[j].name);
435
-      //       }
436
-      //     }
437
-      //   }
438
-      //   this.precautionTwo = this.arr;
439
-      // }
459
+      var arr = [];
460
+      if (this.accepts.precaution) {
461
+        var precaution = this.accepts.precaution.split(",");
462
+        // console.log("precaution", precaution);
463
+        // console.log("hhh", this.precaution_arr);
464
+        for (let i = 0; i < precaution.length; i++) {
465
+          for (let j = 0; j < this.precaution_arr.length; j++) {
466
+            if (parseInt(precaution[i]) == this.precaution_arr[j].id) {
467
+              // console.log("aaaa");
468
+              arr.push(this.precaution_arr[j].name);
469
+            }
470
+          }
471
+        }
472
+        this.precautionTwo = arr;
473
+        // console.log("arr", arr);
474
+      }
440 475
 
441 476
       this.getPermission();
442 477
       for (var index in this.receiveTreatmentAsses) {
@@ -462,7 +497,7 @@ export default {
462 497
     },
463 498
     // 复选框跌倒风险措施
464 499
     precautionchange(){
465
-     
500
+
466 501
       if(this.precautionTwo.length>0){
467 502
         this.$refs.receiveTreatmentAsses.clearValidate('precautionTwo');
468 503
       }
@@ -476,12 +511,12 @@ export default {
476 511
             this.arr.push(this.precaution_arr[i].id);
477 512
           }
478 513
         }
479
-      } 
514
+      }
480 515
       // this.precautionchange()
481 516
       var obj = this.arr.join(",");
482 517
       this.receiveTreatmentAsses.precaution = obj;
483 518
       let ParamsQuery = this.receiveTreatmentAsses;
484
-      
519
+
485 520
       console.log("ParamsQuery", ParamsQuery);
486 521
       ParamsQuery["patient"] = this.patient.id;
487 522
       ParamsQuery["record_date"] = this.record_date;
@@ -545,13 +580,13 @@ export default {
545 580
     isCheckmust(name) {
546 581
       let filedList = store.getters.xt_user.fileds;
547 582
       for (let i = 0; i < filedList.length; i++) {
548
-        
583
+
549 584
         if (
550 585
           filedList[i].module == 2 &&
551 586
           filedList[i].filed_name_cn == name &&
552 587
           filedList[i].is_write == 1
553 588
         ) {
554
-          // name == '跌倒风险预防措施' && filedList[i].is_write == 1
589
+          // name == '跌倒风险预防措施' && this.precautionTwo.length<=0
555 590
           if (name == "风险程度"||name == "病人情况"||name == '心理评估') {
556 591
             return [
557 592
               { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
@@ -562,21 +597,21 @@ export default {
562 597
                 trigger: ['blur','change']
563 598
               },
564 599
             ];
565
-          } 
600
+          }
566 601
           else if(name == "跌倒风险预防措施"){
567 602
             if(this.precautionTwo.length<=0){
568 603
               this.isrequired=false
569 604
               return [{ required: true, message: `请输入${name}`,trigger: ['blur','change'] }];
570
-              
605
+
571 606
             }
572 607
             this.precautionchange()
573 608
             this.isrequired=true
574 609
             // return [{ required: true, message: '',trigger: ['blur','change'] }];
575 610
           }else{
576 611
             return [{ required: true, message: `请输入${name}`,trigger: ['blur','change'] }];
577
-            
612
+
578 613
           }
579
-          
614
+
580 615
         }
581 616
       }
582 617
     },
@@ -585,28 +620,20 @@ export default {
585 620
     //   for (let i = 0; i < filedList.length; i++) {
586 621
     //     if (
587 622
     //       filedList[i].module == 2 &&
588
-    //       filedList[i].filed_name_cn == name 
589
-          
623
+    //       filedList[i].filed_name_cn == name &&
624
+    //       filedList[i].is_write == 1
590 625
     //     ) {
591
-    //       // &&filedList[i].is_write == 1
592
-    //       if (name == "跌倒风险预防措施") {
593
-    //         if(this.precautionTwo.length<=0){
594
-    //             return [
595
-    //             { required: true, message: `请选择${name}`,trigger: ['blur','change'] },
596
-    //             {
597
-    //               required: true,
598
-    //               pattern: /^[1-9]\d*$/,
599
-    //               message: `请选择${name}`,
600
-    //               trigger: ['blur','change']
601
-    //             },
602
-    //           ];
603
-    //         }
604
-    //         this.precautionchange()
605
-    //         return[{ required: true, message: '',trigger: ['blur','change'] }]
606
-    //         // this.$refs.receiveTreatmentAsses.clearValidate('precautionTwo');
607
-             
608
-    //       } 
609
-          
626
+    //       if (name == "跌倒风险预防措施" && this.precautionTwo.length<=0) {
627
+    //         return [
628
+    //           { required: true, message: `请选择${name}`,trigger: ['blur','change'] },
629
+    //           {
630
+    //             required: true,
631
+    //             pattern: /^[1-9]\d*$/,
632
+    //             message: `请选择${name}`,
633
+    //             trigger: ['blur','change']
634
+    //           },
635
+    //         ];
636
+    //       }
610 637
     //     }
611 638
     //   }
612 639
     // },
@@ -650,6 +677,23 @@ export default {
650 677
           }
651 678
         });
652 679
     },
680
+
681
+   saveInformation(){
682
+        var params = {
683
+          selected_date:this.selected_date,
684
+          patient_id:this.$route.query.patient_id,
685
+          record_date:this.$route.query.date,
686
+          module:2,
687
+          remark:this.remark,
688
+        }
689
+        saveInformation(params).then(response=>{
690
+           if(response.data.state == 1){
691
+             var information = response.data.data.information
692
+             this.$message.success("审核成功!")
693
+             this.infoDialogVisible = false
694
+           }
695
+        })
696
+      }
653 697
   },
654 698
   props: {
655 699
     receiver_treatment_access: {
@@ -679,7 +723,6 @@ export default {
679 723
     },
680 724
   },
681 725
   created() {
682
-    
683 726
     // console.log("接诊评估", this.receiver_treatment_access);
684 727
     var date = this.$route.query && this.$route.query.date;
685 728
     this.record_date = date
@@ -696,11 +739,7 @@ export default {
696 739
     // console.log("风险", this.precaution_arr);
697 740
     this.intake_arr = getDataConfig("hemodialysis", "intake");
698 741
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
699
-    
700 742
   },
701
-  // mounted(){
702
-  //   this.isFalldown()
703
-  // }
704 743
 };
705 744
 </script>
706 745
 

+ 59 - 2
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

@@ -699,6 +699,40 @@
699 699
         <el-button type="primary" @click="submitDryWeight()">保 存</el-button>
700 700
       </div>
701 701
     </el-dialog>
702
+
703
+
704
+    <el-dialog
705
+          title="提示"
706
+          :visible.sync="infoDialogVisible"
707
+          width="30%">
708
+          <span>
709
+           <el-form>
710
+             <el-row>
711
+               <span>申请日期:</span>
712
+                <span>
713
+                    <el-date-picker
714
+                      type="datetime"
715
+                      format="yyyy-MM-dd HH:mm"
716
+                      value-format="yyyy-MM-dd HH:mm"
717
+                      placeholder="选择时间"
718
+                      v-model="selected_date"
719
+                  ></el-date-picker>
720
+                </span>
721
+             </el-row>
722
+             <el-row>
723
+               <span>备注:</span>
724
+                <span>
725
+                   <el-input v-model="remark" style="width:200px"></el-input>
726
+                </span>
727
+             </el-row>
728
+           </el-form>
729
+         
730
+          </span>
731
+          <span slot="footer" class="dialog-footer">
732
+            <el-button @click="infoDialogVisible = false">取 消</el-button>
733
+            <el-button type="primary" @click="saveInformation">确 定</el-button>
734
+          </span>
735
+        </el-dialog>
702 736
   </div>
703 737
 
704 738
 
@@ -708,7 +742,7 @@
708 742
   import axios from 'axios'
709 743
   import multiSelectBox from './MultiSelectBox'
710 744
   import { getDataConfig } from '@/utils/data'
711
-  import { postAssessmentBeforeDislysis, CreateDryWeight } from '@/api/dialysis'
745
+  import { postAssessmentBeforeDislysis, CreateDryWeight,saveInformation } from '@/api/dialysis'
712 746
   import store from '@/store'
713 747
   import { uParseTime } from '@/utils/tools'
714 748
   import { parseTime } from '@/utils'
@@ -851,7 +885,10 @@
851 885
         thrombuShow:false,
852 886
         body_weight_before:"",
853 887
         point_punctures:[],
854
-       
888
+        infoDialogVisible:false,
889
+        selected_date:"",
890
+        remark:""
891
+
855 892
       }
856 893
     },
857 894
     props: {
@@ -1388,6 +1425,9 @@
1388 1425
           
1389 1426
           if (response.data.state == 0) {
1390 1427
             this.$message.error(response.data.msg)
1428
+            if(response.data.code == 600000008){
1429
+              this.infoDialogVisible = true
1430
+            }
1391 1431
             return false
1392 1432
           } else {
1393 1433
             this.$notify({
@@ -1522,6 +1562,23 @@
1522 1562
           }
1523 1563
         }
1524 1564
         return user_name
1565
+      },
1566
+    
1567
+      saveInformation(){
1568
+        var params = {
1569
+          selected_date:this.selected_date,
1570
+          patient_id:this.$route.query.patient_id,
1571
+          record_date:this.$route.query.date,
1572
+          module:2,
1573
+          remark:this.remark,
1574
+        }
1575
+        saveInformation(params).then(response=>{
1576
+           if(response.data.state == 1){
1577
+             var information = response.data.data.information
1578
+             this.$message.success("审核成功!")
1579
+             this.infoDialogVisible = false
1580
+           }
1581
+        })
1525 1582
       }
1526 1583
       
1527 1584
     },

+ 63 - 2
src/xt_pages/dialysis/details/dialog/computer_dialog.vue View File

@@ -343,6 +343,41 @@
343 343
         </el-form-item>
344 344
       </el-form>
345 345
     </el-dialog>
346
+  
347
+
348
+     <el-dialog
349
+          title="提示"
350
+          :visible.sync="infoDialogVisible"
351
+          width="30%">
352
+          <span>
353
+           <el-form>
354
+             <el-row>
355
+               <span>申请日期:</span>
356
+                <span>
357
+                    <el-date-picker
358
+                      type="datetime"
359
+                      format="yyyy-MM-dd HH:mm"
360
+                      value-format="yyyy-MM-dd HH:mm"
361
+                      placeholder="选择时间"
362
+                      v-model="selected_date"
363
+                  ></el-date-picker>
364
+                </span>
365
+             </el-row>
366
+             <el-row>
367
+               <span>备注:</span>
368
+                <span>
369
+                   <el-input v-model="remark" style="width:200px"></el-input>
370
+                </span>
371
+             </el-row>
372
+           </el-form>
373
+         
374
+          </span>
375
+          <span slot="footer" class="dialog-footer">
376
+            <el-button @click="infoDialogVisible = false">取 消</el-button>
377
+            <el-button type="primary" @click="saveInformation">确 定</el-button>
378
+          </span>
379
+        </el-dialog>
380
+
346 381
   </div>
347 382
 </template>
348 383
 
@@ -420,7 +455,10 @@ export default {
420 455
       irrigations: [],
421 456
       summary:[],
422 457
       blood_access_option_name:"",
423
-      value2:""
458
+      value2:"",
459
+      infoDialogVisible:false,
460
+      selected_date:"",
461
+      remark:""
424 462
     };
425 463
   },
426 464
   props: {
@@ -891,7 +929,11 @@ export default {
891 929
               this.$emit("monitor", resp.data.monitor);
892 930
               this.$message.success("上机成功");
893 931
             } else {
932
+
894 933
               this.$message.error(resp.msg);
934
+              if(response.data.code == 600000008){
935
+                this.infoDialogVisible = true
936
+              }
895 937
             }
896 938
           });
897 939
         } else {
@@ -941,6 +983,9 @@ export default {
941 983
           }
942 984
         } else {
943 985
           this.$message.error(resp.msg);
986
+          if(response.data.code == 600000008){
987
+            this.infoDialogVisible = true
988
+          }
944 989
         }
945 990
       });
946 991
         }else{
@@ -1094,7 +1139,23 @@ export default {
1094 1139
       }
1095 1140
 
1096 1141
       return name
1097
-    }
1142
+    },
1143
+    saveInformation(){
1144
+        var params = {
1145
+          selected_date:this.selected_date,
1146
+          patient_id:this.$route.query.patient_id,
1147
+          record_date:this.$route.query.date,
1148
+          module:2,
1149
+          remark:this.remark,
1150
+        }
1151
+        saveInformation(params).then(response=>{
1152
+           if(response.data.state == 1){
1153
+             var information = response.data.data.information
1154
+             this.$message.success("审核成功!")
1155
+             this.infoDialogVisible = false
1156
+           }
1157
+        })
1158
+      }
1098 1159
   },
1099 1160
 };
1100 1161
 </script>

+ 140 - 146
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -23,7 +23,6 @@
23 23
                     ref="dialysisPrescription"
24 24
                     :model="dialysisPrescription"
25 25
                     label-width="148px"
26
-                   
27 26
             >
28 27
                 <el-row :gutter="24">
29 28
                     <el-col :span="8" v-if="isShows('透析模式')">
@@ -75,7 +74,7 @@
75 74
                             <el-input v-model="dialysisPrescription.replacement_flow"></el-input>
76 75
                         </el-form-item>
77 76
                     </el-col>
78
-                    
77
+
79 78
                     <el-col :span="8" v-if="isShows('置换流量')  &&  this.$store.getters.xt_user.template_info.org_id == 10340">
80 79
                         <el-form-item label="置换流量(ml/min):" prop="replacement_flow" :rules="isCheckmust('置换流量')">
81 80
                             <el-input v-model="dialysisPrescription.replacement_flow"></el-input>
@@ -102,10 +101,10 @@
102 101
                             ></el-input>
103 102
                         </el-form-item>
104 103
                     </el-col>
105
-                   
104
+
106 105
                     <el-col :span="8"
107 106
                             v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45  ||  this.$store.getters.xt_user.template_info.template_id == 46 ||  this.$store.getters.xt_user.template_info.template_id == 48 ||  this.$store.getters.xt_user.template_info.template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10249 || this.$store.getters.xt_user.template_info.org_id == 10395 ||this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 9829|| this.$store.getters.xt_user.template_info.org_id == 10440 || this.$store.getters.xt_user.template_info.org_id == 10469|| this.$store.getters.xt_user.template_info.org_id == 10471)">
108
-                        <el-form-item label="目标超滤量(ml):" 
107
+                        <el-form-item label="目标超滤量(ml):"
109 108
                         prop="target_ultrafiltration" :rules="isCheckmust('目标超滤量')">
110 109
                             <el-input
111 110
                                     type="number"
@@ -114,12 +113,12 @@
114 113
                         </el-form-item>
115 114
                     </el-col>
116 115
 
117
-                    
116
+
118 117
 
119 118
 
120 119
                     <el-col :span="8"
121 120
                             v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 &&  this.$store.getters.xt_user.template_info.template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249 &&  this.$store.getters.xt_user.template_info.org_id != 10395 &&  this.$store.getters.xt_user.template_info.template_id != 60 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id!=10441 && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469&& this.$store.getters.xt_user.template_info.org_id != 10471">
122
-                        <el-form-item 
121
+                        <el-form-item
123 122
                         label="目标超滤量(L):" prop="target_ultrafiltration" :rules="isCheckmust('目标超滤量')">
124 123
                             <el-input
125 124
                                     type="number"
@@ -137,7 +136,7 @@
137 136
                             ></el-input>
138 137
                         </el-form-item>
139 138
                     </el-col>
140
-                    
139
+
141 140
                    <el-col :span="8" v-if="isShows('带水上机')">
142 141
                         <el-form-item label="带水上机:" prop="water_machine" :rules="isCheckmust('带水上机')">
143 142
                            <el-select v-model="dialysisPrescription.water_machine">
@@ -149,8 +148,8 @@
149 148
                                 ></el-option>
150 149
                             </el-select>
151 150
                         </el-form-item>
152
-                    </el-col> 
153
-                   
151
+                    </el-col>
152
+
154 153
                     <el-col :span="8" v-if="isShows('是否单超脱水')">
155 154
                         <el-form-item label="是否单超脱水:" prop="is_water" :rules="isCheckmust('是否单超脱水')">
156 155
                            <el-select v-model="dialysisPrescription.is_water">
@@ -169,14 +168,14 @@
169 168
                             <el-input v-model="dialysisPrescription.single_time"></el-input>
170 169
                         </el-form-item>
171 170
                     </el-col>
172
-                    
171
+
173 172
                     <el-col :span="8" v-if="isShows('单超脱水') && dialysisPrescription.is_water == 1">
174 173
                         <el-form-item label="单超脱水(ml):" prop="single_water" :rules="isCheckmust('单超脱水')">
175 174
                             <el-input v-model="dialysisPrescription.single_water"></el-input>
176 175
                         </el-form-item>
177 176
                     </el-col>
178 177
 
179
-                  
178
+
180 179
                     <el-col :span="8" v-if="isShows('曲线脱水')">
181 180
                         <el-form-item label="曲线脱水(ml):" prop="drhy_water" :rules="isCheckmust('曲线脱水')">
182 181
                             <el-input v-model="dialysisPrescription.drhy_water"></el-input>
@@ -211,7 +210,7 @@
211 210
                     <el-row :gutter="20"> -->
212 211
 
213 212
                     <el-col :span="8" v-if="isShows('抗凝剂')">
214
-                     
213
+
215 214
                         <el-form-item label="抗凝剂:" prop="anticoagulant" :rules="isCheckmust('抗凝剂')">
216 215
                             <el-select v-model="dialysisPrescription.anticoagulant" placeholder="请选择"
217 216
                                        style="width:100%;"
@@ -226,7 +225,7 @@
226 225
                         </el-form-item>
227 226
                     </el-col>
228 227
 
229
-                    <el-col :span="8" v-if="isShows('抗凝剂商品名称')">    
228
+                    <el-col :span="8" v-if="isShows('抗凝剂商品名称')">
230 229
                         <el-form-item label="抗凝剂商品名称:" prop="antioxidant_commodity_name" :rules="isCheckmust('抗凝剂商品名称')">
231 230
                             <el-input
232 231
                                     v-model="dialysisPrescription.antioxidant_commodity_name"
@@ -250,7 +249,7 @@
250 249
                             ></el-input肝素>
251 250
                         </el-form-item>
252 251
                     </el-col>
253
-                    
252
+
254 253
                     <el-col :span="8" v-if="isShows('下机前推注鱼精蛋白') && dialysisPrescription.anticoagulant ==10">
255 254
                         <el-form-item label="下机前推注鱼精蛋白(mg):" prop="push_the_protamine" :rules="isCheckmust('下机前推注鱼精蛋白')">
256 255
                             <el-input
@@ -260,7 +259,7 @@
260 259
                     </el-col>
261 260
 
262 261
                     <el-col :span="8" v-if="isShows('追加肝素量')" >
263
-                       <el-form-item v-if="dialysisPrescription.anticoagulant == 2" 
262
+                       <el-form-item v-if="dialysisPrescription.anticoagulant == 2"
264 263
                        :label="'追加肝素量(mg) : '" prop="add_amount" :rules="isCheckmust('追加肝素量')">
265 264
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
266 265
                                           v-model="dialysisPrescription.add_amount"></el-input>
@@ -268,7 +267,7 @@
268 267
                                           v-model="dialysisPrescription.add_amount"></el-input>
269 268
                             </el-form-item>
270 269
 
271
-                            <el-form-item v-if="dialysisPrescription.anticoagulant != 2 && dialysisPrescription.anticoagulant != 1" 
270
+                            <el-form-item v-if="dialysisPrescription.anticoagulant != 2 && dialysisPrescription.anticoagulant != 1"
272 271
                             :label="'追加肝素量(' + anticoagulant.shouji_unit + ') : '" prop="add_amount" :rules="isCheckmust('追加肝素量')">
273 272
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
274 273
                                           v-model="dialysisPrescription.add_amount"></el-input>
@@ -276,7 +275,7 @@
276 275
                                           v-model="dialysisPrescription.add_amount"></el-input>
277 276
                             </el-form-item>
278 277
                     </el-col>
279
-                    
278
+
280 279
                   <el-col :span="8" v-if="isShows('减肝素量')">
281 280
                        <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'减肝素量(mg) : '" prop="calculateAnticoagulantZL" :rules="isCheckmust('减肝素量')">
282 281
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
@@ -295,17 +294,17 @@
295 294
                     </el-col>
296 295
 
297 296
                     <el-col :span="8" v-if="anticoagulant!=undefined && anticoagulant.shouji != -1 && isShows('首剂')  && dialysisPrescription.anticoagulant!=1 && dialysisPrescription.anticoagulant!=12">
298
-                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && 
299
-                        this.$store.getters.xt_user.template_info.template_id != 54 && 
300
-                        this.$store.getters.xt_user.template_info.org_id != 10340 && 
301
-                        this.$store.getters.xt_user.template_info.org_id != 10432 && 
302
-                        this.$store.getters.xt_user.template_info.org_id != 9829 && 
303
-                        this.$store.getters.xt_user.template_info.org_id != 10440 && 
304
-                        this.$store.getters.xt_user.template_info.org_id != 10469 && 
297
+                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 &&
298
+                        this.$store.getters.xt_user.template_info.template_id != 54 &&
299
+                        this.$store.getters.xt_user.template_info.org_id != 10340 &&
300
+                        this.$store.getters.xt_user.template_info.org_id != 10432 &&
301
+                        this.$store.getters.xt_user.template_info.org_id != 9829 &&
302
+                        this.$store.getters.xt_user.template_info.org_id != 10440 &&
303
+                        this.$store.getters.xt_user.template_info.org_id != 10469 &&
305 304
                         this.$store.getters.xt_user.template_info.org_id != 10471">
306
-                          <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && 
307
-                          this.$store.getters.xt_user.template_info.template_id != 45 && 
308
-                          this.$store.getters.xt_user.template_info.org_id != 10346 && 
305
+                          <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 &&
306
+                          this.$store.getters.xt_user.template_info.template_id != 45 &&
307
+                          this.$store.getters.xt_user.template_info.org_id != 10346 &&
309 308
                           this.$store.getters.xt_user.template_info.org_id != 10387">
310 309
                             <el-form-item
311 310
                                     v-if='dialysisPrescription.anticoagulant != 1 &&
@@ -314,7 +313,7 @@
314 313
                                       this.$store.getters.xt_user.template_info.template_id != 38 &&
315 314
                                        this.$store.getters.xt_user.template_info.org_id != 9987 &&
316 315
                                         this.$store.getters.xt_user.template_info.org_id!=9990'
317
-                                    :label="'首剂(' + anticoagulant.shouji_unit + ') : '" prop="anticoagulant_shouji" 
316
+                                    :label="'首剂(' + anticoagulant.shouji_unit + ') : '" prop="anticoagulant_shouji"
318 317
                                     :rules="isCheckmust('首剂')">
319 318
 
320 319
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
@@ -324,32 +323,32 @@
324 323
                                           v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
325 324
                             </el-form-item>
326 325
 
327
-                            <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant==7 && 
328
-                            this.$store.getters.xt_user.template_info.template_id!=6" :label="'首剂(mg):'" 
329
-                            prop="anticoagulant_shouji" :rules="isCheckmust('首剂')"> 
326
+                            <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant==7 &&
327
+                            this.$store.getters.xt_user.template_info.template_id!=6" :label="'首剂(mg):'"
328
+                            prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
330 329
                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
331 330
                                           v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
332 331
 
333 332
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
334 333
                                           v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
335 334
                             </el-form-item>
336
-                           <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && 
337
-                           dialysisPrescription.anticoagulant!=7 && this.$store.getters.xt_user.template_info.template_id!=6" 
338
-                           :label="'首剂(iu):'" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')"> 
335
+                           <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 &&
336
+                           dialysisPrescription.anticoagulant!=7 && this.$store.getters.xt_user.template_info.template_id!=6"
337
+                           :label="'首剂(iu):'" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
339 338
                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
340 339
                                           v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
341 340
 
342 341
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
343 342
                                           v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
344 343
                             </el-form-item>
345
-                    
344
+
346 345
                             <el-form-item
347
-                                    v-if='dialysisPrescription.anticoagulant == 2 && 
348
-                                    this.$store.getters.xt_user.template_info.template_id == 21 || 
349
-                                    this.$store.getters.xt_user.template_info.template_id == 23 || 
350
-                                    this.$store.getters.xt_user.template_info.template_id == 38 || 
351
-                                    this.$store.getters.xt_user.template_info.org_id == 9987 || 
352
-                                    this.$store.getters.xt_user.template_info.org_id == 10346 || 
346
+                                    v-if='dialysisPrescription.anticoagulant == 2 &&
347
+                                    this.$store.getters.xt_user.template_info.template_id == 21 ||
348
+                                    this.$store.getters.xt_user.template_info.template_id == 23 ||
349
+                                    this.$store.getters.xt_user.template_info.template_id == 38 ||
350
+                                    this.$store.getters.xt_user.template_info.org_id == 9987 ||
351
+                                    this.$store.getters.xt_user.template_info.org_id == 10346 ||
353 352
                                     this.$store.getters.xt_user.template_info.org_id == 10387'
354 353
                                     :label="'首剂(mg) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
355 354
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
@@ -358,7 +357,7 @@
358 357
                                           v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
359 358
                             </el-form-item>
360 359
 
361
- 
360
+
362 361
 
363 362
                           </div>
364 363
 
@@ -379,7 +378,7 @@
379 378
                         </div>
380 379
 
381 380
                         <div v-else>
382
-                            
381
+
383 382
                             <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'首剂(mg) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
384 383
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
385 384
                                           v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
@@ -393,8 +392,8 @@
393 392
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
394 393
                                           v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
395 394
                             </el-form-item>
396
-                           
397
-                           
395
+
396
+
398 397
                         </div>
399 398
 
400 399
                     </el-col>
@@ -406,10 +405,10 @@
406 405
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
407 406
                                           v-if="anticoagulant.weichi != -1 &&
408 407
                                            this.$store.getters.xt_user.template_info.template_id != 21 &&
409
-                                            this.$store.getters.xt_user.template_info.template_id != 23 && 
410
-                                            this.$store.getters.xt_user.template_info.template_id != 38 && 
411
-                                            this.$store.getters.xt_user.template_info.org_id != 9987  && 
412
-                                            this.$store.getters.xt_user.template_info.org_id != 54 && 
408
+                                            this.$store.getters.xt_user.template_info.template_id != 23 &&
409
+                                            this.$store.getters.xt_user.template_info.template_id != 38 &&
410
+                                            this.$store.getters.xt_user.template_info.org_id != 9987  &&
411
+                                            this.$store.getters.xt_user.template_info.org_id != 54 &&
413 412
                                             this.$store.getters.xt_user.template_info.org_id != 9990" prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
414 413
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
415 414
                                           v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
@@ -417,23 +416,23 @@
417 416
                                           v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
418 417
                             </el-form-item>
419 418
                             <el-form-item :label="'维持(mg/h) : '"
420
-                                          v-if="anticoagulant.weichi != -1 && 
421
-                                          this.$store.getters.xt_user.template_info.template_id == 21 || 
422
-                                          this.$store.getters.xt_user.template_info.template_id == 23 || 
423
-                                          this.$store.getters.xt_user.template_info.template_id == 38 || 
424
-                                          this.$store.getters.xt_user.template_info.org_id == 9987 || 
425
-                                          this.$store.getters.xt_user.template_info.org_id == 54 ||  
426
-                                          this.$store.getters.xt_user.template_info.org_id == 10346 ||  
427
-                                          this.$store.getters.xt_user.template_info.org_id == 10387  || 
419
+                                          v-if="anticoagulant.weichi != -1 &&
420
+                                          this.$store.getters.xt_user.template_info.template_id == 21 ||
421
+                                          this.$store.getters.xt_user.template_info.template_id == 23 ||
422
+                                          this.$store.getters.xt_user.template_info.template_id == 38 ||
423
+                                          this.$store.getters.xt_user.template_info.org_id == 9987 ||
424
+                                          this.$store.getters.xt_user.template_info.org_id == 54 ||
425
+                                          this.$store.getters.xt_user.template_info.org_id == 10346 ||
426
+                                          this.$store.getters.xt_user.template_info.org_id == 10387  ||
428 427
                                           this.$store.getters.xt_user.template_info.org_id == 9990" prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
429 428
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
430 429
                                           v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
431 430
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
432 431
                                           v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
433 432
                             </el-form-item>
434
-                           
435
-             
436
-                           
433
+
434
+
435
+
437 436
                           </div>
438 437
                           <div v-else>
439 438
                             <el-form-item :label="'维持(iu/h) : '" prop="anticoagulant_weichi" :rules="isCheckmust('维持')"
@@ -450,22 +449,22 @@
450 449
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
451 450
                                           v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
452 451
                             </el-form-item>
453
-                           
454
-                           
455
-                
452
+
453
+
454
+
456 455
                           </div>
457 456
                         </div>
458 457
 
459 458
 
460 459
                         <div v-else>
461
-                            <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'维持(mg/h) : '" 
460
+                            <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'维持(mg/h) : '"
462 461
                             prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
463 462
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
464 463
                                           v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
465 464
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
466 465
                                           v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
467 466
                             </el-form-item>
468
-                            <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '" v-else 
467
+                            <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '" v-else
469 468
                             prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
470 469
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
471 470
                                           v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
@@ -482,7 +481,7 @@
482 481
                     <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.zongliang != -1 && isShows('总量') && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
483 482
                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 9675 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471">
484 483
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
485
-                            <el-form-item 
484
+                            <el-form-item
486 485
                                     v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38  && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 && this.$store.getters.xt_user.template_info.org_id != 9990'
487 486
                                     :label="'总量(' + anticoagulant.zongliang_unit + ') : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
488 487
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
@@ -490,7 +489,7 @@
490 489
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
491 490
                                           v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
492 491
                             </el-form-item>
493
-                            <el-form-item 
492
+                            <el-form-item
494 493
                                     v-if='this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38||  this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.template_id == 54 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10387'
495 494
                                     :label="'总量(mg) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
496 495
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
@@ -507,8 +506,8 @@
507 506
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
508 507
                                           v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
509 508
                             </el-form-item>
510
-                            <el-form-item 
511
-                                    v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant!=7" 
509
+                            <el-form-item
510
+                                    v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant!=7"
512 511
                                     :label="'总量(iu)'" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
513 512
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
514 513
                                           v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
@@ -551,7 +550,7 @@
551 550
                         </div>
552 551
 
553 552
                     </el-col>
554
-                    
553
+
555 554
                     <el-col :span="8"
556 555
                             v-if="isShows('开药数量')">
557 556
                         <el-form-item label="开药数量(支):" prop="prescribing_number" :rules="isCheckmust('开药数量')">
@@ -559,11 +558,11 @@
559 558
                         </el-form-item>
560 559
                     </el-col>
561 560
 
562
-<!-- dialysisPrescription.mode_id -->
563
-                    <el-col :span="8" 
561
+
562
+                    <el-col :span="8"
564 563
                             v-if="isShows('置换量') && ((this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 46 || this.$store.getters.xt_user.template_info.template_id == 53)&& this.$store.getters.xt_user.template_info.org_id!=10441)"
565 564
                             v-show="zhiShow">
566
-                        <el-form-item label="置换量(ml):" prop="replacement_total" :rules="isSubstitution('置换量')">
565
+                        <el-form-item label="置换量(ml):" prop="replacement_total" :rules="isCheckmust('置换量')">
567 566
                             <el-input
568 567
                                     type="number"
569 568
                                     v-model="dialysisPrescription.replacement_total"
@@ -572,9 +571,8 @@
572 571
                     </el-col>
573 572
                     <el-col :span="8"
574 573
                             v-if="isShows('置换量') && (this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 46 && this.$store.getters.xt_user.template_info.template_id != 53) || this.$store.getters.xt_user.template_info.org_id == 10441"
575
-                           v-show="zhiShow">
576
-                           <!--   -->
577
-                        <el-form-item label="置换量(L):" prop="replacement_total" :rules="isSubstitution('置换量')">
574
+                            v-show="zhiShow">
575
+                        <el-form-item label="置换量(L):" prop="replacement_total" :rules="isCheckmust('置换量')">
578 576
                             <el-input
579 577
                                     type="number"
580 578
                                     v-model="dialysisPrescription.replacement_total"
@@ -582,9 +580,9 @@
582 580
                         </el-form-item>
583 581
                     </el-col>
584 582
 
585
-                    
586
-                    <el-col :span="8" v-if="isShows('置换速度')" v-show="totalShow"><!-- substitution isCheckmust-->
587
-                        <el-form-item label="置换速度(ml/min)" prop="displace_speed" :rules="isSubstitution('置换速度')">
583
+
584
+                    <el-col :span="8" v-if="isShows('置换速度')" v-show="totalShow">
585
+                        <el-form-item label="置换速度(ml/min)" prop="displace_speed" :rules="isCheckmust('置换速度')">
588 586
                             <el-input
589 587
                                     v-model="dialysisPrescription.displace_speed"
590 588
                             ></el-input>
@@ -606,7 +604,7 @@
606 604
                             :span="8"
607 605
                             v-if="isShows('钙剂量')"
608 606
                     ></el-col>
609
-                    
607
+
610 608
                     <el-col :span="8" v-if="isShows('钙剂量')" >
611 609
                         <el-form-item label="钙剂量(ml) : " prop="anticoagulant_gaijiliang" :rules="isCheckmust('钙剂量')">
612 610
                             <el-input
@@ -616,7 +614,7 @@
616 614
                             ></el-input>
617 615
                         </el-form-item>
618 616
                     </el-col>
619
-                    
617
+
620 618
                     <el-col :span="8" v-if="isShows('钾')">
621 619
                         <el-form-item label="钾(mmol/L): " prop="kalium" :rules="isCheckmust('钾')">
622 620
                             <el-input
@@ -687,7 +685,7 @@
687 685
                             ></el-input>
688 686
                         </el-form-item>
689 687
                     </el-col>
690
-                    
688
+
691 689
                     <el-col :span="8" v-if="isShows('透析器/灌流器')" >
692 690
                         <el-form-item label="透析器/灌流器" prop="dialyzer_perfusion_apparatus" :rules="isCheckmust('透析器/灌流器')">
693 691
                             <el-input v-model="dialysisPrescription.dialyzer_perfusion_apparatus"
@@ -716,8 +714,8 @@
716 714
                                       @focus="showInnerDialog('12')"></el-input>
717 715
                         </el-form-item>
718 716
                     </el-col>
719
-                    
720
-                    <el-col :span="8" v-if="isShows('血浆分离器')"> 
717
+
718
+                    <el-col :span="8" v-if="isShows('血浆分离器')">
721 719
                         <el-form-item label="血浆分离器:" prop="plasma_separator" :rules="isCheckmust('血浆分离器')">
722 720
                             <el-input v-model="dialysisPrescription.plasma_separator"
723 721
                                       @focus="showInnerDialog('9')"></el-input>
@@ -793,7 +791,6 @@
793 791
                                 prop="displace_liqui_part"
794 792
                                 :rules="isCheckmust('置换液')"
795 793
                         >
796
-                        <!--  -->
797 794
                             <el-select
798 795
                                     v-model="dialysisPrescription.displace_liqui_part"
799 796
                                     placeholder="请选择"
@@ -897,7 +894,7 @@
897 894
                             <el-input v-model="dialysisPrescription.amylaceum"></el-input>
898 895
                         </el-form-item>
899 896
                     </el-col>
900
-                    
897
+
901 898
                     <el-col :span="8" v-if="isShows('吸氧')">
902 899
                         <el-form-item label="吸氧:" prop="oxygen_uptake" :rules="isCheckmust('吸氧')">
903 900
                             <el-select v-model="dialysisPrescription.oxygen_uptake" placeholder="请选择"
@@ -1007,7 +1004,7 @@
1007 1004
 
1008 1005
 
1009 1006
                 </el-row>
1010
-                   
1007
+
1011 1008
                 <el-row :gutter="20">
1012 1009
                   <el-col :span="24" v-if="isShows('透析备注') && (dialysisPrescription.mode_id == 2 || dialysisPrescription.mode_id == 3 || dialysisPrescription.mode_id == 4)">
1013 1010
                     <el-form-item label="透析备注:" prop="value" :rules="isCheckmust('透析备注')">
@@ -1045,7 +1042,7 @@
1045 1042
                     </el-col>
1046 1043
                     <el-col :span="8"  v-if="isShows('开始钠')">
1047 1044
                         <el-form-item label="开始钠: " prop="start_sodium" :rules="isCheckmust('开始钠')">
1048
-                            <el-input    
1045
+                            <el-input
1049 1046
                                 v-model="dialysisPrescription.start_sodium"
1050 1047
                                 :rows="5"
1051 1048
                             ></el-input>
@@ -1065,7 +1062,7 @@
1065 1062
                   <el-col :span="8" v-if="isShows('透析液流速')">
1066 1063
                         <el-form-item label="透析液流速(ml/h):" prop="dialysis_fluid_flow" :rules="isCheckmust('透析液流速')">
1067 1064
                             <el-input
1068
-                                  
1065
+
1069 1066
                                     v-model="dialysisPrescription.dialysis_fluid_flow"
1070 1067
                                     :rows="5"
1071 1068
                             ></el-input>
@@ -1106,7 +1103,7 @@
1106 1103
                     </el-col>
1107 1104
                 </el-row>
1108 1105
             </el-form>
1109
-            
1106
+
1110 1107
             <span slot="footer" class="dialog-footer">
1111 1108
         <el-button @click="handleCancle">取 消</el-button>
1112 1109
                 <!-- <el-button type="primary" @click="handleCommit" v-if="isPermission()">保 存</el-button> -->
@@ -1678,9 +1675,8 @@
1678 1675
         zongliang:"",
1679 1676
         educationList:[],
1680 1677
         value:"",
1681
-
1682 1678
       }
1683
-      
1679
+
1684 1680
     },
1685 1681
     methods: {
1686 1682
       changeOxygenList(val) {
@@ -1698,7 +1694,7 @@
1698 1694
 
1699 1695
       },
1700 1696
       showInnerDialog: function(val) {
1701
-       
1697
+
1702 1698
         this.InnerDialogProps.visibility = true
1703 1699
         switch (val) {
1704 1700
           case '5': // 透析器/灌流器
@@ -1706,7 +1702,7 @@
1706 1702
             this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
1707 1703
             this.InnerDialogProps.titles = '透析器/灌流器'
1708 1704
             this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
1709
-           
1705
+
1710 1706
             this.InnerDialogProps.selected = this.dialysisPrescription.dialyzer_perfusion_apparatus
1711 1707
             this.InnerDialogProps.isShowTextArea = false
1712 1708
             break
@@ -1779,7 +1775,7 @@ mu
1779 1775
         }
1780 1776
       },
1781 1777
       innerDialogComfirm: function(val) {
1782
-      
1778
+
1783 1779
 
1784 1780
         this.InnerDialogProps.visibility = false
1785 1781
         switch (val.type) {
@@ -1794,21 +1790,21 @@ mu
1794 1790
                    }
1795 1791
                 }
1796 1792
               }
1797
-            } 
1793
+            }
1798 1794
             if(newArr!=null && newArr.length>0){
1799
-              
1795
+
1800 1796
               this.dialysisPrescription.dialyzer_perfusion_apparatus = newArr.join(',')
1801 1797
             }else{
1802 1798
               this.dialysisPrescription.dialyzer_perfusion_apparatus = ""
1803 1799
             }
1804
-           
1800
+
1805 1801
             break
1806 1802
           case 'blood':
1807
-            
1803
+
1808 1804
             this.dialysisPrescription.blood = val.value.join(',')
1809 1805
             break
1810 1806
           case 'dialyzers':
1811
-            
1807
+
1812 1808
             var newArr = []
1813 1809
             if(this.dialyzers!=null && this.dialyzers.length >0){
1814 1810
               for(let i=0;i<this.dialyzers.length;i++){
@@ -1824,7 +1820,7 @@ mu
1824 1820
             }else{
1825 1821
               this.dialysisPrescription.dialysis_dialyszers = ""
1826 1822
             }
1827
-            
1823
+
1828 1824
             break
1829 1825
           case 'irrigations':
1830 1826
             var newArr = []
@@ -1842,7 +1838,7 @@ mu
1842 1838
             }else{
1843 1839
               this.dialysisPrescription.dialysis_irrigation = ""
1844 1840
             }
1845
-            
1841
+
1846 1842
             break
1847 1843
           case 'plasma_separator':
1848 1844
             this.dialysisPrescription.plasma_separator = val.value.join(',')
@@ -2334,7 +2330,7 @@ mu
2334 2330
        }else{
2335 2331
           this.dialysisPrescription.admin_user_id = prescription.admin_user_id
2336 2332
        }
2337
-      
2333
+
2338 2334
        this.adminRoles = []
2339 2335
         if(admins.length > 0 ){
2340 2336
           for(let i=0;i<admins.length;i++){
@@ -2519,7 +2515,6 @@ mu
2519 2515
           this.zhiShow = true
2520 2516
           this.huShow = true
2521 2517
           this.totalShow = true
2522
-          
2523 2518
         } else if (
2524 2519
           pre.mode_id == 1 ||
2525 2520
           pre.mode_id == 3 ||
@@ -2537,7 +2532,7 @@ mu
2537 2532
           this.zhiShow = false
2538 2533
           this.huShow = false
2539 2534
           this.totalShow = false
2540
-         
2535
+
2541 2536
         }
2542 2537
         this.pre = pre
2543 2538
         // console.log("pre1", pre);
@@ -2565,7 +2560,7 @@ mu
2565 2560
             }
2566 2561
         }
2567 2562
         if (this.predialysis == null || this.predialysis.id == 0) {
2568
-          
2563
+
2569 2564
           if (last != null) {
2570 2565
 
2571 2566
             this.dialysisPrescription.niprocart = last.niprocart
@@ -2586,14 +2581,14 @@ mu
2586 2581
             if(this.$store.getters.xt_user.template_info.org_id!=10013  && this.$store.getters.xt_user.template_info.org_id!=10014){
2587 2582
               this.remark = last.remark
2588 2583
             }
2589
-           
2584
+
2590 2585
             weight_before = 0
2591 2586
 
2592 2587
           }
2593 2588
 
2594 2589
         } else {
2595 2590
           weight_before = this.predialysis.weight_before
2596
-          
2591
+
2597 2592
         }
2598 2593
 
2599 2594
 
@@ -2625,7 +2620,7 @@ mu
2625 2620
         if(moment().weekday() == 6){
2626 2621
            total_day ="周六"
2627 2622
         }
2628
-        if(moment().weekday() == 7){
2623
+        if(moment().weekday() == 0){
2629 2624
            total_day ="周日"
2630 2625
         }
2631 2626
         console.log("---------",this.targetAdvices)
@@ -2637,7 +2632,7 @@ mu
2637 2632
             }
2638 2633
         }
2639 2634
         for (let i = 0; i < this.targetAdvices.length; i++) {
2640
-         
2635
+
2641 2636
           if (this.targetAdvices[i].isCheck == 1) {
2642 2637
             this.checkedCities.push(this.targetAdvices[i].id)
2643 2638
           }
@@ -2714,27 +2709,27 @@ mu
2714 2709
                   this.dialysisPrescription.displace_liqui_part == 0 ||
2715 2710
                   this.dialysisPrescription.displace_liqui_part == -2 ||
2716 2711
                   this.dialysisPrescription.displace_liqui_value == 0 ||
2717
-                  this.dialysisPrescription.displace_liqui_value == '' 
2712
+                  this.dialysisPrescription.displace_liqui_value == ''
2718 2713
                   || this.dialysisPrescription.replacement_total == 0 ||
2719 2714
                   this.dialysisPrescription.replacement_total == '' ||
2720 2715
                   this.dialysisPrescription.displace_speed == 0 ||
2721
-                  this.dialysisPrescription.displace_speed == '' 
2716
+                  this.dialysisPrescription.displace_speed == ''
2722 2717
                 ) {
2723 2718
                   this.$message.error('HDF模式下置换液和置换液总量不能为空!')
2724 2719
                   return
2725 2720
                 }
2726 2721
               }
2727
-              
2722
+
2728 2723
             }
2729 2724
             if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
2730 2725
               this.dialysisPrescription.displace_liqui_part = 0
2731 2726
               this.dialysisPrescription.displace_liqui_value = 0
2732 2727
               this.dialysisPrescription.replacement_total = 0
2733
-              this.dialysisPrescription.displace_speed = 0 
2728
+              this.dialysisPrescription.displace_speed = 0
2734 2729
               console.log('this.dialysisPrescription.displace_liqui_part',this.dialysisPrescription.displace_liqui_part);
2735 2730
               console.log('this.dialysisPrescription.replacement_total',this.dialysisPrescription.replacement_total);
2736
-              
2737
-            } 
2731
+
2732
+            }
2738 2733
 
2739 2734
             this.is_pre = 1
2740 2735
 
@@ -3203,7 +3198,7 @@ mu
3203 3198
             return false;
3204 3199
           }
3205 3200
         })
3206
-        
3201
+
3207 3202
       },
3208 3203
       handleCancle: function() {
3209 3204
         this.hide()
@@ -3223,31 +3218,31 @@ mu
3223 3218
                     this.dialysisPrescription.displace_liqui_part == 0 ||
3224 3219
                     this.dialysisPrescription.displace_liqui_part == -2 ||
3225 3220
                     this.dialysisPrescription.displace_liqui_value == 0 ||
3226
-                    this.dialysisPrescription.displace_liqui_value == '' 
3221
+                    this.dialysisPrescription.displace_liqui_value == ''
3227 3222
                     || this.dialysisPrescription.replacement_total == 0 ||
3228 3223
                     this.dialysisPrescription.replacement_total == ''||
3229 3224
                     this.dialysisPrescription.displace_speed == 0 ||
3230
-                    this.dialysisPrescription.displace_speed == '' 
3225
+                    this.dialysisPrescription.displace_speed == ''
3231 3226
                   ) {
3232 3227
                     this.$message.error('HDF模式下置换液和置换液总量不能为空!')
3233 3228
                     return
3234 3229
                   }
3235 3230
                 }
3236 3231
                 if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
3237
-                  this.dialysisPrescription.displace_liqui_part == 0 
3232
+                  this.dialysisPrescription.displace_liqui_part == 0
3238 3233
                   this.dialysisPrescription.displace_liqui_value == 0
3239 3234
                   this.dialysisPrescription.replacement_total == 0
3240
-                  this.dialysisPrescription.displace_speed == 0 
3235
+                  this.dialysisPrescription.displace_speed == 0
3241 3236
                   console.log('this.dialysisPrescription.displace_liqui_part',this.dialysisPrescription.displace_liqui_part);
3242 3237
                   console.log('this.dialysisPrescription.replacement_total',this.dialysisPrescription.replacement_total);
3243
-                  // this.dialysisPrescription.displace_liqui_part = 0 
3238
+                  // this.dialysisPrescription.displace_liqui_part = 0
3244 3239
                   // this.dialysisPrescription.displace_liqui_value = 0
3245 3240
                   // this.dialysisPrescription.replacement_total = 0
3246
-                  // this.dialysisPrescription.displace_speed = 0 
3241
+                  // this.dialysisPrescription.displace_speed = 0
3247 3242
                 }
3248 3243
               }
3249 3244
 
3250
-              this.is_pre = 2
3245
+          this.is_pre = 2
3251 3246
 
3252 3247
               if (this.prescription.id == 0) {
3253 3248
                 if (this.is_open == 0) {
@@ -3754,10 +3749,8 @@ mu
3754 3749
         var filedList = store.getters.xt_user.fileds
3755 3750
         for (let i = 0; i < filedList.length; i++) {
3756 3751
           if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
3757
-
3758 3752
             return true
3759 3753
           }
3760
-
3761 3754
         }
3762 3755
         return false
3763 3756
       },
@@ -3785,7 +3778,7 @@ mu
3785 3778
             ];
3786 3779
           }
3787 3780
           return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
3788
-          
3781
+
3789 3782
         }
3790 3783
       }
3791 3784
     },
@@ -3800,7 +3793,7 @@ mu
3800 3793
           filedList[i].is_show == 1
3801 3794
         ) {
3802 3795
           return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
3803
-          
3796
+
3804 3797
         }
3805 3798
       }
3806 3799
     },
@@ -3826,13 +3819,13 @@ mu
3826 3819
               ];
3827 3820
             }
3828 3821
             return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
3829
-            
3822
+
3830 3823
           }
3831 3824
         }
3832 3825
       }else{
3833 3826
         return [{required: false}]
3834 3827
       }
3835
-      
3828
+
3836 3829
     },
3837 3830
 
3838 3831
     getDoctorName(doctor_id) {
@@ -3932,7 +3925,7 @@ mu
3932 3925
         this.dialysisPrescription.replacement_total = ""
3933 3926
         this.dialysisPrescription.displace_speed = ""
3934 3927
       }
3935
-      
3928
+
3936 3929
       const ParamsQuery = {}
3937 3930
       ParamsQuery['patient_id'] = this.$route.query.patient_id
3938 3931
       ParamsQuery['mode_id'] = id
@@ -3944,7 +3937,7 @@ mu
3944 3937
           console.log('切换数据', response.data.data.solution)
3945 3938
           this.$message.success('切换成功')
3946 3939
           console.log("dialysisPrescription",response.data.data.dialysisPrescription)
3947
-          
3940
+
3948 3941
           if (response.data.data.solution != null) {
3949 3942
             for (const key in response.data.data.solution) {
3950 3943
               // 长期处方不为空
@@ -4008,7 +4001,7 @@ mu
4008 4001
           }
4009 4002
 
4010 4003
           if(response.data.data.dialysisPrescription!=null){
4011
-              this.dialysisPrescription.remark =  response.data.data.dialysisPrescription.remark 
4004
+              this.dialysisPrescription.remark =  response.data.data.dialysisPrescription.remark
4012 4005
           }
4013 4006
         }
4014 4007
         if (response.data.data.solution == null) {
@@ -4250,12 +4243,12 @@ mu
4250 4243
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
4251 4244
           this.dialysisPrescription.anticoagulant_zongliang = ''
4252 4245
         }
4253
-    
4246
+
4254 4247
       if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
4255 4248
           this.dialysisPrescription.anticoagulant_zongliang = ""
4256 4249
           this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
4257 4250
        }
4258
- 
4251
+
4259 4252
       },
4260 4253
       'dialysisPrescription.anticoagulant_weichi': function() {
4261 4254
         let dialysis_duration_minute = 0
@@ -4287,10 +4280,10 @@ mu
4287 4280
          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
4288 4281
        }
4289 4282
         this.zongliang =  this.dialysisPrescription.anticoagulant_zongliang
4290
-     
4283
+
4291 4284
       },
4292
-   
4293
-   
4285
+
4286
+
4294 4287
       'prescription.id': {
4295 4288
         immediate: true,
4296 4289
         deep: true,
@@ -4678,12 +4671,12 @@ mu
4678 4671
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
4679 4672
           this.dialysisPrescription.anticoagulant_zongliang = ''
4680 4673
         }
4681
-    
4674
+
4682 4675
       if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
4683 4676
           this.dialysisPrescription.anticoagulant_zongliang = ""
4684 4677
           this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
4685 4678
        }
4686
- 
4679
+
4687 4680
       },
4688 4681
       'dialysisPrescription.reduce_amount': function() {
4689 4682
         let dialysis_duration_minute = 0
@@ -4717,12 +4710,12 @@ mu
4717 4710
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
4718 4711
           this.dialysisPrescription.anticoagulant_zongliang = ''
4719 4712
         }
4720
-    
4713
+
4721 4714
       if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
4722 4715
           this.dialysisPrescription.anticoagulant_zongliang = ""
4723 4716
           this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
4724 4717
        }
4725
- 
4718
+
4726 4719
       },
4727 4720
       stockType: function() {
4728 4721
         console.log('stockType', this.stockType)
@@ -4756,16 +4749,16 @@ mu
4756 4749
           }
4757 4750
         }
4758 4751
         this.irrigations = irrigation
4759
-        
4752
+
4760 4753
         for(let i=0;i<arrThree.length;i++){
4761 4754
           for (let j = 0; j < arrThree[i].GoodInfo.length; j++) {
4762 4755
             dialysis_strainer.push(arrThree[i].GoodInfo[j])
4763 4756
           }
4764 4757
         }
4765
-       
4758
+
4766 4759
         this.dialysisStrainerList = dialysis_strainer
4767 4760
       },
4768
-      
4761
+
4769 4762
       admin_user_id:function(){
4770 4763
         console.log("处方医生",this.admins)
4771 4764
         if(this.admins.length > 0 ){
@@ -4777,6 +4770,7 @@ mu
4777 4770
       }
4778 4771
     },
4779 4772
     created() {
4773
+      console.log('weretrertf',this.dialysisPrescription.sodium);
4780 4774
       console.log("schedual232323323232323232",this.adminRoles)
4781 4775
       this.illnessList = getDataConfig('hemodialysis', 'illness')
4782 4776
 
@@ -4784,7 +4778,7 @@ mu
4784 4778
 
4785 4779
       this.bilirubinAdsorptionColumn = getDataConfig('hemodialysis', 'bilirubin_adsorption_column')
4786 4780
 
4787
-      
4781
+
4788 4782
       this.educationList = getDataConfig('dialysis_remark', 'dialysis_remark')
4789 4783
       console.log("透析准备232323232323wo",this.educationList)
4790 4784
     }

+ 65 - 1
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue View File

@@ -1,4 +1,5 @@
1 1
 <template>
2
+   <div>
2 3
   <el-dialog
3 4
     title="双人核对"
4 5
     :visible.sync="isVisibility"
@@ -291,10 +292,50 @@
291 292
       >
292 293
     </div>
293 294
   </el-dialog>
295
+
296
+
297
+
298
+    <el-dialog
299
+          title="提示"
300
+          :visible.sync="infoDialogVisible"
301
+          width="30%">
302
+          <span>
303
+           <el-form>
304
+             <el-row>
305
+               <span>申请日期:</span>
306
+                <span>
307
+                    <el-date-picker
308
+                      type="datetime"
309
+                      format="yyyy-MM-dd HH:mm"
310
+                      value-format="yyyy-MM-dd HH:mm"
311
+                      placeholder="选择时间"
312
+                      v-model="selected_date"
313
+                  ></el-date-picker>
314
+                </span>
315
+             </el-row>
316
+             <el-row>
317
+               <span>备注:</span>
318
+                <span>
319
+                   <el-input v-model="remark" style="width:200px"></el-input>
320
+                </span>
321
+             </el-row>
322
+           </el-form>
323
+         
324
+          </span>
325
+          <span slot="footer" class="dialog-footer">
326
+            <el-button @click="infoDialogVisible = false">取 消</el-button>
327
+            <el-button type="primary" @click="saveInformation">确 定</el-button>
328
+          </span>
329
+        </el-dialog>
330
+ </div>
331
+
332
+ 
333
+
334
+  
294 335
 </template>
295 336
 
296 337
 <script>
297
-import { postDoubleCheck, changeRole } from "@/api/dialysis";
338
+import { postDoubleCheck, changeRole,saveInformation } from "@/api/dialysis";
298 339
 import { uParseTime } from "@/utils/tools";
299 340
 import { parseTime } from "@/utils";
300 341
 import { getDataConfig } from "@/utils/data";
@@ -357,6 +398,9 @@ export default {
357 398
       displace_liqui_value: "置换液总量:",
358 399
       job_number: "",
359 400
       org_id: 0,
401
+      infoDialogVisible:false,
402
+      selected_date:"",
403
+      remark:""
360 404
     };
361 405
   },
362 406
   methods: {
@@ -510,6 +554,9 @@ export default {
510 554
           console.log(ParamsQuery, "提交参数");
511 555
           postDoubleCheck(ParamsQuery).then((response) => {
512 556
             if (response.data.state == 0) {
557
+               if(response.data.code == 600000008){
558
+                this.infoDialogVisible = true
559
+              }
513 560
               this.$message.error(response.data.msg);
514 561
               return false;
515 562
             } else {
@@ -1841,6 +1888,23 @@ export default {
1841 1888
           (nowMinutes < 10 ? "0" + nowMinutes : nowMinutes);
1842 1889
       }
1843 1890
     },
1891
+
1892
+   saveInformation(){
1893
+        var params = {
1894
+          selected_date:this.selected_date,
1895
+          patient_id:this.$route.query.patient_id,
1896
+          record_date:this.$route.query.date,
1897
+          module:5,
1898
+          remark:this.remark,
1899
+        }
1900
+        saveInformation(params).then(response=>{
1901
+           if(response.data.state == 1){
1902
+             var information = response.data.data.information
1903
+             this.$message.success("审核成功!")
1904
+             this.infoDialogVisible = false
1905
+           }
1906
+        })
1907
+      }
1844 1908
   },
1845 1909
   created() {
1846 1910
     var date = this.$route.query && this.$route.query.date;

+ 67 - 1
src/xt_pages/dialysis/details/dialog/finish_dialog.vue View File

@@ -98,13 +98,48 @@
98 98
       v-on:dialog-comfirm="innerDialogComfirm"
99 99
       v-on:dialog-cancle="innerDialogCancle"
100 100
     ></multi-select-box>
101
+    
101 102
 
103
+       <el-dialog
104
+          title="提示"
105
+          :visible.sync="infoDialogVisible"
106
+          width="30%">
107
+          <span>
108
+           <el-form>
109
+             <el-row>
110
+               <span>申请日期:</span>
111
+                <span>
112
+                    <el-date-picker
113
+                      type="datetime"
114
+                      format="yyyy-MM-dd HH:mm"
115
+                      value-format="yyyy-MM-dd HH:mm"
116
+                      placeholder="选择时间"
117
+                      v-model="selected_date"
118
+                  ></el-date-picker>
119
+                </span>
120
+             </el-row>
121
+             <el-row>
122
+               <span>备注:</span>
123
+                <span>
124
+                   <el-input v-model="remark" style="width:200px"></el-input>
125
+                </span>
126
+             </el-row>
127
+           </el-form>
128
+         
129
+          </span>
130
+          <span slot="footer" class="dialog-footer">
131
+            <el-button @click="infoDialogVisible = false">取 消</el-button>
132
+            <el-button type="primary" @click="saveInformation">确 定</el-button>
133
+          </span>
134
+        </el-dialog>
135
+  
102 136
   </div>
103 137
 </template>
104 138
 
105 139
 <script>
106 140
   import axios from 'axios'
107 141
   import { finishDialysis,PostModifyFinishDialysis } from '@/api/dialysis_record'
142
+   import { saveInformation } from '@/api/dialysis'
108 143
   import { parseTime } from '@/utils'
109 144
   import multiSelectBox from './MultiSelectBox'
110 145
   import request from '@/utils/request'
@@ -149,6 +184,14 @@
149 184
         cruorOptions: [],
150 185
         required:false,
151 186
         education:[],
187
+        infoDialogVisible:false,
188
+        selected_date:"",
189
+        pickerOptions: {
190
+          disabledDate(time) {
191
+            return time.getTime() > Date.now()
192
+          }
193
+        },
194
+        remark:""
152 195
        
153 196
       }
154 197
     },
@@ -378,7 +421,9 @@
378 421
             PostModifyFinishDialysis(ParamsQuery).then(response => {
379 422
               if (response.data.state == 0) {
380 423
                 this.$message.error(response.data.msg)
381
-
424
+                 if(response.data.code == 600000008){
425
+                  this.infoDialogVisible = true
426
+                 }
382 427
                 return false;
383 428
               } else {
384 429
                 this.$message.success("修改成功")
@@ -432,6 +477,9 @@
432 477
 
433 478
               } else {
434 479
                 this.$message.error(resp.msg)
480
+               if(response.data.code == 600000008){
481
+                  this.infoDialogVisible = true
482
+                }
435 483
               }
436 484
             })
437 485
           }else{
@@ -522,6 +570,24 @@
522 570
       innerDialogCancle: function() {
523 571
         this.InnerDialogProps.visibility = false
524 572
       },
573
+
574
+      saveInformation(){
575
+        var params = {
576
+          selected_date:this.selected_date,
577
+          patient_id:this.$route.query.patient_id,
578
+          record_date:this.$route.query.date,
579
+          module:1,
580
+          remark:this.remark,
581
+        }
582
+        console.log("params32222222222----",params)
583
+        saveInformation(params).then(response=>{
584
+           if(response.data.state == 1){
585
+             var information = response.data.data.information
586
+             this.$message.success("审核成功!")
587
+             this.infoDialogVisible = false
588
+           }
589
+        })
590
+      }
525 591
     }
526 592
   }
527 593
 </script>

+ 63 - 0
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

@@ -1754,6 +1754,41 @@
1754 1754
       </div>
1755 1755
       <!--</div>-->
1756 1756
     </el-dialog>
1757
+
1758
+  
1759
+    <el-dialog
1760
+          title="提示"
1761
+          :visible.sync="infoDialogVisible"
1762
+          width="30%">
1763
+          <span>
1764
+           <el-form>
1765
+             <el-row>
1766
+               <span>申请日期:</span>
1767
+                <span>
1768
+                    <el-date-picker
1769
+                      type="datetime"
1770
+                      format="yyyy-MM-dd HH:mm"
1771
+                      value-format="yyyy-MM-dd HH:mm"
1772
+                      placeholder="选择时间"
1773
+                      v-model="selected_date"
1774
+                  ></el-date-picker>
1775
+                </span>
1776
+             </el-row>
1777
+             <el-row>
1778
+               <span>备注:</span>
1779
+                <span>
1780
+                   <el-input v-model="remark" style="width:200px"></el-input>
1781
+                </span>
1782
+             </el-row>
1783
+           </el-form>
1784
+         
1785
+          </span>
1786
+          <span slot="footer" class="dialog-footer">
1787
+            <el-button @click="infoDialogVisible = false">取 消</el-button>
1788
+            <el-button type="primary" @click="saveInformation">确 定</el-button>
1789
+          </span>
1790
+        </el-dialog>
1791
+
1757 1792
   </div>
1758 1793
 </template>
1759 1794
 
@@ -1764,7 +1799,9 @@ import {
1764 1799
   editMonitor,
1765 1800
   postDelMonitorInfo,
1766 1801
   getTodayMonitor,
1802
+  
1767 1803
 } from "@/api/dialysis_record";
1804
+ import { saveInformation } from '@/api/dialysis'
1768 1805
 import store from "@/store";
1769 1806
 
1770 1807
 import request from "@/utils/request";
@@ -1854,6 +1891,9 @@ export default {
1854 1891
       anticoagulantsConfit: {},
1855 1892
       bloodPressureMmonitoringSite: [],
1856 1893
       complicationList: [],
1894
+      infoDialogVisible:false,
1895
+      selected_date:"",
1896
+      remark:""
1857 1897
     };
1858 1898
   },
1859 1899
   props: {
@@ -2727,6 +2767,9 @@ export default {
2727 2767
           ? 0
2728 2768
           : parseFloat(this.form.dicarbonate);
2729 2769
             this.$message.error(resp.msg);
2770
+            if(response.data.code == 600000008){
2771
+              this.infoDialogVisible = true
2772
+             }
2730 2773
           }
2731 2774
         }
2732 2775
       );
@@ -2815,6 +2858,9 @@ export default {
2815 2858
           postDelMonitorInfo(params).then((response) => {
2816 2859
             if (response.data.state == 0) {
2817 2860
               this.$message.error(response.data.msg);
2861
+              if(response.data.code == 600000008){
2862
+                 this.infoDialogVisible = true
2863
+              }
2818 2864
               return false;
2819 2865
             } else {
2820 2866
               const record_id = response.data.data.record_id;
@@ -2875,6 +2921,23 @@ export default {
2875 2921
       }
2876 2922
       return name;
2877 2923
     },
2924
+
2925
+    saveInformation(){
2926
+        var params = {
2927
+          selected_date:this.selected_date,
2928
+          patient_id:this.$route.query.patient_id,
2929
+          record_date:this.$route.query.date,
2930
+          module:2,
2931
+          remark:this.remark,
2932
+        }
2933
+        saveInformation(params).then(response=>{
2934
+           if(response.data.state == 1){
2935
+             var information = response.data.data.information
2936
+             this.$message.success("审核成功!")
2937
+             this.infoDialogVisible = false
2938
+           }
2939
+        })
2940
+      }
2878 2941
   },
2879 2942
   watch: {
2880 2943
     patient: {

+ 69 - 1
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue View File

@@ -1,4 +1,5 @@
1 1
 <template>
2
+ <div>
2 3
   <el-dialog
3 4
     class="newDialog"
4 5
     title="治疗小结"
@@ -152,11 +153,49 @@
152 153
         >保 存</el-button> <!--  -->
153 154
     </div>
154 155
   </el-dialog>
156
+
157
+       <el-dialog
158
+          title="提示"
159
+          :visible.sync="infoDialogVisible"
160
+          width="30%">
161
+          <span>
162
+           <el-form>
163
+             <el-row>
164
+               <span>申请日期:</span>
165
+                <span>
166
+                    <el-date-picker
167
+                      type="datetime"
168
+                      format="yyyy-MM-dd HH:mm"
169
+                      value-format="yyyy-MM-dd HH:mm"
170
+                      placeholder="选择时间"
171
+                      v-model="selected_date"
172
+                  ></el-date-picker>
173
+                </span>
174
+             </el-row>
175
+             <el-row>
176
+               <span>备注:</span>
177
+                <span>
178
+                   <el-input v-model="remark" style="width:200px"></el-input>
179
+                </span>
180
+             </el-row>
181
+           </el-form>
182
+         
183
+          </span>
184
+          <span slot="footer" class="dialog-footer">
185
+            <el-button @click="infoDialogVisible = false">取 消</el-button>
186
+            <el-button type="primary" @click="saveInformation">确 定</el-button>
187
+          </span>
188
+        </el-dialog>
189
+</div>
190
+
191
+
192
+
193
+
155 194
 </template>
156 195
 
157 196
 <script>
158 197
 import { getDataConfig } from "@/utils/data";
159
-import { postTreatmentsummary } from "@/api/dialysis";
198
+import { postTreatmentsummary,saveInformation } from "@/api/dialysis";
160 199
 import { uParseTime } from "@/utils/tools";
161 200
 import store from "@/store";
162 201
 import request from "@/utils/request";
@@ -208,6 +247,14 @@ export default {
208 247
       },
209 248
       //
210 249
       date: "",
250
+     infoDialogVisible:false,
251
+      selected_date:"",
252
+      pickerOptions: {
253
+        disabledDate(time) {
254
+          return time.getTime() > Date.now()
255
+        }
256
+      },
257
+      remark:""
211 258
     };
212 259
   },
213 260
   methods: {
@@ -352,6 +399,9 @@ export default {
352 399
           postTreatmentsummary(ParamsQuery).then((response) => {
353 400
             if (response.data.state == 0) {
354 401
               this.$message.error(response.data.msg);
402
+               if(response.data.code == 600000008){
403
+              this.infoDialogVisible = true
404
+             }
355 405
               return false;
356 406
             } else {
357 407
               this.$notify({
@@ -430,6 +480,24 @@ export default {
430 480
       }
431 481
       return false;
432 482
     },
483
+
484
+   saveInformation(){
485
+        var params = {
486
+          selected_date:this.selected_date,
487
+          patient_id:this.$route.query.patient_id,
488
+          record_date:this.$route.query.date,
489
+          module:1,
490
+          remark:this.remark,
491
+        }
492
+        console.log("params32222222222----",params)
493
+      saveInformation(params).then(response=>{
494
+           if(response.data.state == 1){
495
+             var information = response.data.data.information
496
+             this.$message.success("审核成功!")
497
+             this.infoDialogVisible = false
498
+           }
499
+        })
500
+     }
433 501
   },
434 502
   watch: {
435 503
     isVisibility(val) {},