소스 검색

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

yq1 1 년 전
부모
커밋
adb3696567

+ 31 - 54
src/xt_pages/dialysis/details/index.vue 파일 보기

@@ -62,8 +62,6 @@
62 62
         <el-tab-pane label="候诊区" name="first">
63 63
           <div class="cell clearfix" style="margin-bottom:10px;">
64 64
             <el-date-picker v-model="selected_date"
65
-              format="yyyy-MM-dd"
66
-              value-format="yyyy-MM-dd"
67 65
               prefix-icon="el-icon-date" @change="handleScheduleDateChange"
68 66
              :editable="false" :clearable="false"
69 67
               style="width: 45%;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" >
@@ -160,10 +158,7 @@
160 158
         <!-- 透析区 -->
161 159
         <el-tab-pane label="透析区" name="second">
162 160
           <div class="cell clearfix" style="margin-bottom:10px;">
163
-            <el-date-picker v-model="selected_date" prefix-icon="el-icon-date"  format="yyyy-MM-dd"
164
-             value-format="yyyy-MM-dd"
165
-             @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 45%;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" >
166
-            </el-date-picker>
161
+            <el-date-picker v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 45%;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" ></el-date-picker>
167 162
             <el-input size="small" style="width:25%;" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
168 163
             <el-button size="small" class="filter-item" style="margin-right:20px;" type="primary" @click="searchAction">搜索</el-button>
169 164
           </div>
@@ -1484,7 +1479,7 @@ export default {
1484 1479
       lastDialysisPrescribe: { id: 0 },
1485 1480
       //
1486 1481
       activeName: 'first',
1487
-      selected_date:moment().format('YYYY-MM-DD'),
1482
+      selected_date: new Date(),
1488 1483
       // search_input 和 search_keyword,使输入关键字时不会经常刷新 filtedSchedules
1489 1484
       search_keyword: '', // 确定用于搜索的关键字
1490 1485
       search_input: '', // 输入中的关键字
@@ -1553,7 +1548,6 @@ export default {
1553 1548
       // end_time2:'',
1554 1549
       first_monitor:{},
1555 1550
       last_monitor:{},
1556
-      new_date:0,
1557 1551
     }
1558 1552
   },
1559 1553
   created() {
@@ -1568,26 +1562,19 @@ export default {
1568 1562
       this.activeName = sessionStorage.getItem("nameActive")
1569 1563
     }
1570 1564
     var patient_id = this.$route.query.patient_id
1571
-    var date = moment().format('YYYY-MM-DD')
1572
-    this.new_date = (new Date(date).getTime()/1000)-28800
1573
-    this.dialysis_date = ""
1574
-    this.dialysis_date = (new Date(date).getTime()/1000)-28800
1575
-    // var date = this.$route.query.date
1565
+    var date = this.$route.query.date
1576 1566
     this.patient_id = patient_id
1577
-    // this.date = date
1578
-    // this.new_date = date
1579
-    // this.dialysis_date= date
1567
+    this.date = date
1568
+    this.dialysis_date=date
1580 1569
     this.getScheduleDetail()
1581 1570
     this.getLongAdvice()
1582 1571
 
1583
-    // this.selected_date = this.$route.query.date * 1000
1584
-    // this.new_date = this.$route.query.date * 1000
1572
+    this.selected_date = this.$route.query.date * 1000
1585 1573
     var schedule_type_selected = this.$store.getters.schedule_type_selected
1586 1574
     var zone_selected = this.$store.getters.zone_selected
1587 1575
     var patient_state_selected = this.$store.getters.patient_state_selected
1588 1576
     var treat_state_selected = this.$store.getters.treat_state_selected
1589
-    // var selected_date = this.$store.getters.selected_date
1590
-    // console.log("日志时间2222222222222222",selected_date)
1577
+    var selected_date = this.$store.getters.selected_date
1591 1578
     if (schedule_type_selected) {
1592 1579
       this.scheduleStateVal = schedule_type_selected.schedule_type_selected
1593 1580
     }
@@ -1600,9 +1587,9 @@ export default {
1600 1587
     if (treat_state_selected) {
1601 1588
       this.treatStateVal = treat_state_selected.treat_state_selected
1602 1589
     }
1603
-    // if (selected_date.selected_date) {
1604
-    //   this.selected_date = selected_date.selected_date.format('YYYY-MM-DD')
1605
-    // }
1590
+    if (selected_date.selected_date) {
1591
+      this.selected_date = selected_date.selected_date
1592
+    }
1606 1593
 
1607 1594
     this.initData = {
1608 1595
       cmd: "queue/join",
@@ -1892,7 +1879,7 @@ export default {
1892 1879
     getLongAdvice() {
1893 1880
       const params = {
1894 1881
         patient_id: this.patient_id,
1895
-        schedule_date:this.new_date,
1882
+        schedule_date:this.$route.query.date,
1896 1883
 
1897 1884
       }
1898 1885
       getLongAdviceTwo(params).then(rs => {
@@ -1961,14 +1948,14 @@ export default {
1961 1948
     },
1962 1949
     getScheduleDetail: function() {
1963 1950
       this.loading = true
1964
-      // var dateStr = parseTime(this.date, '{y}-{m}-{d}')
1951
+      var dateStr = parseTime(this.date, '{y}-{m}-{d}')
1965 1952
       if(this.$route.query.showView == true){
1966 1953
         this.loading = false
1967 1954
         return
1968 1955
       }
1969
-      console.log('kkkkkkk2222222222222222222',this.selected_date);
1956
+      // console.log('kkkkkkk',dateStr);
1970 1957
       this.doctor_advices = []
1971
-      getDialysisScheduleDetail(this.patient_id, this.selected_date).then(rs => {
1958
+      getDialysisScheduleDetail(this.patient_id, dateStr).then(rs => {
1972 1959
 
1973 1960
         var resp = rs.data
1974 1961
         if (resp.state == 1) {
@@ -2246,9 +2233,6 @@ export default {
2246 2233
       //   schedule_type: this.schedule_type_selected,
2247 2234
       //   schedule_date: this.selected_date,
2248 2235
       // })
2249
-      console.log("index-------------",index)
2250
-      this.new_date = (new Date(index).getTime()/1000)-28800
2251
-      this.dialysis_date = (new Date(index).getTime()/1000)-28800
2252 2236
       this.selected_date = index
2253 2237
       this.$store.dispatch('SetSelectedDate', { selected_date: index })
2254 2238
       this.requestDialysisSchedules()
@@ -2347,9 +2331,8 @@ export default {
2347 2331
     },
2348 2332
     requestDialysisSchedules: function() {
2349 2333
 
2350
-      // var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
2351
-      console.log("热切吴2222222222",this.selected_date)
2352
-      getDialysisSchedules(this.selected_date).then(rs => {
2334
+      var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
2335
+      getDialysisSchedules(ymd).then(rs => {
2353 2336
         var resp = rs.data
2354 2337
         if (resp.state == 1) {
2355 2338
           var schedules = resp.data.schedules
@@ -2400,27 +2383,21 @@ export default {
2400 2383
     changePatient(schedual) {
2401 2384
         this.patient_id = schedual.patient_id
2402 2385
         this.date = schedual.schedule_date
2403
-
2404
-        this.new_date = schedual.schedule_date
2405
-        this.dialysis_date = ""
2406
-        this.dialysis_date = schedual.schedule_date
2407
-
2408
-        console.log("到哪去啊大大阿道夫阿道夫",this.dialysis_date)
2409 2386
          this.getScheduleDetail();
2410 2387
         console.log('schedual',schedual);
2411 2388
         //this.getLongAdvice();
2412 2389
 
2413 2390
         var patient_id = schedual.patient_id
2414
-        // var date = schedual.schedule_date
2415
-        // this.$router.push({
2416
-        //   path: '/dialysis/details',
2417
-        //   query: {
2418
-        //     patient_id: patient_id,
2419
-        //     date: date,
2420
-        //     patient_name: schedual.patient.name,
2421
-        //     mode_id:schedual.mode_id
2422
-        //   }
2423
-        // })
2391
+        var date = schedual.schedule_date
2392
+        this.$router.push({
2393
+          path: '/dialysis/details',
2394
+          query: {
2395
+            patient_id: patient_id,
2396
+            date: date,
2397
+            patient_name: schedual.patient.name,
2398
+            mode_id:schedual.mode_id
2399
+          }
2400
+        })
2424 2401
     },
2425 2402
     handleClick(type) {
2426 2403
       sessionStorage.setItem('nameActive', type.name);
@@ -2931,7 +2908,7 @@ export default {
2931 2908
               path: '/dialysis/details',
2932 2909
               query: {
2933 2910
                 patient_id: parseInt(res.data.data.patientInfo.patient_id),
2934
-                date: this.new_date,
2911
+                date: this.$route.query.date,
2935 2912
                 patient_name: res.data.data.patientInfo.patient_name,
2936 2913
                 mode_id:newArr[arr.indexOf(parseInt(res.data.data.patientInfo.patient_id))].mode_id,
2937 2914
                 curPatientTime:res.data.data.patientInfo.create_time,
@@ -2946,7 +2923,7 @@ export default {
2946 2923
               path: '/dialysis/details',
2947 2924
               query: {
2948 2925
                 patient_id: parseInt(res.data.data.patientInfo.patient_id),
2949
-                date: this.new_date,
2926
+                date: this.$route.query.date,
2950 2927
                 patient_name: res.data.data.patientInfo.patient_name,
2951 2928
                 mode_id:this.$route.query.mode_id,
2952 2929
                 curPatientTime:res.data.data.patientInfo.create_time,
@@ -2992,7 +2969,7 @@ export default {
2992 2969
               path: '/dialysis/details',
2993 2970
               query: {
2994 2971
                 patient_id: parseInt(res.data.data.patientInfo.patient_id),
2995
-                date:this.new_date,
2972
+                date: this.$route.query.date,
2996 2973
                 patient_name: res.data.data.patientInfo.patient_name,
2997 2974
                 mode_id:newArr[arr.indexOf(parseInt(res.data.data.patientInfo.patient_id))].mode_id,
2998 2975
                 curPatientTime:res.data.data.patientInfo.create_time,
@@ -3005,7 +2982,7 @@ export default {
3005 2982
               path: '/dialysis/details',
3006 2983
               query: {
3007 2984
                 patient_id: parseInt(res.data.data.patientInfo.patient_id),
3008
-                date:this.new_date,
2985
+                date: this.$route.query.date,
3009 2986
                 patient_name: res.data.data.patientInfo.patient_name,
3010 2987
                 mode_id:this.$route.query.mode_id,
3011 2988
                 curPatientTime:res.data.data.patientInfo.create_time,
@@ -3041,7 +3018,7 @@ export default {
3041 3018
 
3042 3019
        var params = {
3043 3020
          patient_id:this.$route.query.patient_id,
3044
-         record_date:this.new_date,
3021
+         record_date:this.$route.query.date,
3045 3022
        }
3046 3023
       getInitPrintData(params).then(response=>{
3047 3024
         if(response.data.state == 1){

+ 2 - 1
src/xt_pages/outpatientDoctorStation/checkTemplate/printOne.vue 파일 보기

@@ -300,7 +300,8 @@ export default {
300 300
             if (item.project.length > 0) {
301 301
               item.project.map((it) => {
302 302
                 if (it.type == 2) {
303
-                  if (it.project.cost_classify == 3) {
303
+                  //103属于韶关宜柏的检验项目类型
304
+                  if (it.project.cost_classify == 3 || it.project.cost_classify == 103) {
304 305
                     projectPrint.push(it);
305 306
                     total += it.project.price * parseInt(it.count);
306 307
                   }

+ 102 - 98
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 파일 보기

@@ -11,15 +11,17 @@
11 11
     <!-- <div class="backColor"></div> -->
12 12
     <div class="mainCenter" v-loading="loading">
13 13
       <div class="centerLeft">
14
-        <div v-if="prescriptions[0].id >0 && (org_id == 10278 || org_id == 10138 || org_id == 0) ">
15
-        <el-button style="width: 100px" size="small" @click="callElePre(1)" type="primary">处方预核验</el-button>
16
-        <el-button style="width: 100px"  size="small" @click="callElePre(2)" type="primary">处方签名</el-button>
17
-        <el-button style="width: 100px"  size="small" @click="callElePre(3)" type="primary">处方上传</el-button>
18
-        <el-button style="width: 100px"  size="small" @click="callElePre(4)" type="primary">处方撤销</el-button>
19
-        <el-button style="width: 100px"  size="small" @click="callElePre(5)" type="primary">处方信息查询</el-button>
20
-        <el-button style="width: 100px"  size="small" @click="callElePre(6)" type="primary">处方审核结果查询</el-button>
21
-          <el-button style="width: 100px"  size="small" @click="callElePre(7)" type="primary">处方取药结果查询</el-button>
22
-          <el-button style="width: 100px"  size="small" @click="callElePre(8)" type="primary">药品在售查询</el-button>
14
+        <div v-if="prescriptions[0].id >0 && (org_id == 10454) ">
15
+          <el-button style="width: 100px" size="small" @click="callElePre(1)" type="primary">处方预核验</el-button>
16
+          <el-button style="width: 100px" size="small" @click="callElePre(2)" type="primary">处方签名</el-button>
17
+          <el-button style="width: 100px" size="small" @click="callElePre(3)" type="primary">处方上传</el-button>
18
+          <el-button style="width: 100px" size="small" @click="callElePre(4)" type="primary">处方撤销</el-button>
19
+          <el-button style="width: 100px" size="small" @click="callElePre(5)" type="primary">处方信息查询</el-button>
20
+          <el-button style="width: 100px" size="small" @click="callElePre(6)" type="primary">处方审核结果查询
21
+          </el-button>
22
+          <el-button style="width: 100px" size="small" @click="callElePre(7)" type="primary">处方取药结果查询
23
+          </el-button>
24
+          <el-button style="width: 100px" size="small" @click="callElePre(8)" type="primary">药品在售查询</el-button>
23 25
 
24 26
 
25 27
         </div>
@@ -329,7 +331,9 @@
329 331
                     <el-table-column label="规格" width="60" v-if="org_id != 10206">
330 332
                       <template slot-scope="scope">
331 333
                         <span
332
-                          v-if="scope.row.min_unit != scope.row.dose_unit">{{ scope.row.dose }}{{ scope.row.dose_unit }}&nbsp;* &nbsp;</span>{{ scope.row.min_number }}{{ scope.row.min_unit }}/{{ scope.row.max_unit }}
334
+                          v-if="scope.row.min_unit != scope.row.dose_unit">{{ scope.row.dose }}{{ scope.row.dose_unit }}&nbsp;* &nbsp;</span>{{
335
+                          scope.row.min_number
336
+                        }}{{ scope.row.min_unit }}/{{ scope.row.max_unit }}
333 337
                       </template>
334 338
                     </el-table-column>
335 339
 
@@ -341,11 +345,17 @@
341 345
                        </span>
342 346
                        <span v-else> {{scope.row.total}}{{scope.row.total?scope.row.min_unit:''}}</span> -->
343 347
                         <span
344
-                          v-if="scope.row.sum_count >0 && scope.row.max_unit!=scope.row.min_unit && scope.row.sum_count/scope.row.min_number >0">{{ Math.floor(scope.row.sum_count / scope.row.min_number) }}{{ scope.row.max_unit }}</span>
348
+                          v-if="scope.row.sum_count >0 && scope.row.max_unit!=scope.row.min_unit && scope.row.sum_count/scope.row.min_number >0">{{
349
+                            Math.floor(scope.row.sum_count / scope.row.min_number)
350
+                          }}{{ scope.row.max_unit }}</span>
345 351
                         <span
346
-                          v-if="scope.row.sum_count >0 && scope.row.max_unit!=scope.row.min_unit && scope.row.sum_count%scope.row.min_number >0">{{ Math.floor(scope.row.sum_count % scope.row.min_number) }}{{ scope.row.min_unit }}</span>
352
+                          v-if="scope.row.sum_count >0 && scope.row.max_unit!=scope.row.min_unit && scope.row.sum_count%scope.row.min_number >0">{{
353
+                            Math.floor(scope.row.sum_count % scope.row.min_number)
354
+                          }}{{ scope.row.min_unit }}</span>
347 355
                         <span
348
-                          v-if="scope.row.sum_count >0 && scope.row.max_unit == scope.row.min_unit">{{ scope.row.sum_count }}{{ scope.row.max_unit }}</span>
356
+                          v-if="scope.row.sum_count >0 && scope.row.max_unit == scope.row.min_unit">{{
357
+                            scope.row.sum_count
358
+                          }}{{ scope.row.max_unit }}</span>
349 359
                       </template>
350 360
                     </el-table-column>
351 361
 
@@ -452,7 +462,9 @@
452 462
                         </span>
453 463
                         <span v-else> {{ scope.row.total }}</span> -->
454 464
                         <span
455
-                          v-if="org_id != 10206 && scope.row.type == 3 && scope.row.good_info.sum_count > 0">{{ scope.row.good_info.sum_count }}</span>
465
+                          v-if="org_id != 10206 && scope.row.type == 3 && scope.row.good_info.sum_count > 0">{{
466
+                            scope.row.good_info.sum_count
467
+                          }}</span>
456 468
                         <!--                                            //针对坐标系统的库存数据-->
457 469
                         <span v-if="org_id == 10206 && scope.row.type == 3">{{ scope.row.zuobiao_stock_num }}</span>
458 470
 
@@ -1523,7 +1535,7 @@ export default {
1523 1535
         var hours = nowDate.getHours()
1524 1536
         var min = nowDate.getMinutes()
1525 1537
 
1526
-        var preTime = ""
1538
+        var preTime = ''
1527 1539
         var nowTime =
1528 1540
           nowYear +
1529 1541
           '-' +
@@ -1531,11 +1543,11 @@ export default {
1531 1543
           '-' +
1532 1544
           (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
1533 1545
           ':' + (min < 10 ? '0' + min : min)
1534
-        if(nowTime.split(" ")[0] != this.record_date){
1535
-          if(this.org_id == 10206  || this.org_id == 0) {
1536
-            preTime = this.record_date+ ' '  + (hours < 10 ? '0' + hours : hours) +
1546
+        if (nowTime.split(' ')[0] != this.record_date) {
1547
+          if (this.org_id == 10206 || this.org_id == 0) {
1548
+            preTime = this.record_date + ' ' + (hours < 10 ? '0' + hours : hours) +
1537 1549
               ':' + (min < 10 ? '0' + min : min)
1538
-          }else {
1550
+          } else {
1539 1551
             preTime = this.record_date + ' ' + (hours < 10 ? '0' + hours : hours) +
1540 1552
               ':' + (min < 10 ? '0' + min : min)
1541 1553
           }
@@ -1596,20 +1608,17 @@ export default {
1596 1608
         '-' +
1597 1609
         (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
1598 1610
         ':' + (min < 10 ? '0' + min : min)
1599
-      var preTime  = ""
1600
-      console.log(nowTime.split(" ")[0] )
1611
+      var preTime = ''
1612
+      console.log(nowTime.split(' ')[0])
1601 1613
       console.log(this.record_date)
1602 1614
 
1603
-      if(nowTime.split(" ")[0] != this.record_date){
1604
-          preTime = this.record_date + ' ' + (hours < 10 ? '0' + hours : hours) +
1605
-            ':' + (min < 10 ? '0' + min : min)
1615
+      if (nowTime.split(' ')[0] != this.record_date) {
1616
+        preTime = this.record_date + ' ' + (hours < 10 ? '0' + hours : hours) +
1617
+          ':' + (min < 10 ? '0' + min : min)
1606 1618
       } else {
1607 1619
         preTime = nowTime
1608 1620
       }
1609 1621
 
1610
-
1611
-
1612
-
1613 1622
       for (let i = 0; i < this.prescriptions.length; i++) {
1614 1623
         this.prescriptions[i].name = '处方' + (i + 1)
1615 1624
         this.prescriptions[i]['pre_time'] = preTime
@@ -3268,22 +3277,19 @@ export default {
3268 3277
         (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
3269 3278
         ':' + (min < 10 ? '0' + min : min)
3270 3279
 
3271
-
3272
-      var preTime  = ""
3273
-      console.log(nowTime.split(" ")[0] )
3280
+      var preTime = ''
3281
+      console.log(nowTime.split(' ')[0])
3274 3282
       console.log(this.record_date)
3275 3283
 
3276
-      if(nowTime.split(" ")[0] != this.record_date){
3284
+      if (nowTime.split(' ')[0] != this.record_date) {
3277 3285
 
3278
-            preTime = this.record_date + ' ' + (hours < 10 ? '0' + hours : hours) +
3279
-              ':' + (min < 10 ? '0' + min : min)
3286
+        preTime = this.record_date + ' ' + (hours < 10 ? '0' + hours : hours) +
3287
+          ':' + (min < 10 ? '0' + min : min)
3280 3288
 
3281 3289
       } else {
3282 3290
         preTime = nowTime
3283 3291
       }
3284 3292
 
3285
-
3286
-
3287 3293
       let obj = {
3288 3294
         id: 0,
3289 3295
         name: newTabName,
@@ -3533,31 +3539,29 @@ export default {
3533 3539
       //     }
3534 3540
       // }
3535 3541
 
3536
-      if(row.is_user!=1 &&  this.org_id != 10206){
3537
-        console.log("row.sum_count",row)
3542
+      if (row.is_user != 1 && this.org_id != 10206) {
3543
+        console.log('row.sum_count', row)
3538 3544
         if (row.sum_count <= 0) {
3539
-        if (selection) {
3540
-          selection.forEach(row => {
3541
-            if(row.is_project!=1){
3542
-              if ( row.sum_count <= 0) {
3543
-                this.$refs.multipleTable.toggleRowSelection(row)
3545
+          if (selection) {
3546
+            selection.forEach(row => {
3547
+              if (row.is_project != 1) {
3548
+                if (row.sum_count <= 0) {
3549
+                  this.$refs.multipleTable.toggleRowSelection(row)
3550
+                }
3544 3551
               }
3545
-            }
3546 3552
 
3547
-          })
3548
-        } else {
3549
-          this.$refs.multipleTable.clearSelection()
3550
-        }
3551
-        if (row.is_project == 0 || row.is_project == 2){
3552
-          this.$message.error(row.drug_name + '库存不足')
3553
-          return
3553
+            })
3554
+          } else {
3555
+            this.$refs.multipleTable.clearSelection()
3556
+          }
3557
+          if (row.is_project == 0 || row.is_project == 2) {
3558
+            this.$message.error(row.drug_name + '库存不足')
3559
+            return
3560
+          }
3554 3561
         }
3555
-       }
3556 3562
       }
3557 3563
 
3558
-
3559
-
3560
-      if(this.org_id == 10206){
3564
+      if (this.org_id == 10206) {
3561 3565
         if (row.zuobiao_stock_num <= 0) {
3562 3566
           if (selection) {
3563 3567
             selection.forEach(row => {
@@ -3753,7 +3757,7 @@ export default {
3753 3757
               if (that.curPrescriptions.advices.length > 0) {
3754 3758
                 index = that.curPrescriptions.advices.length
3755 3759
               }
3756
-              let maxIndexAdvice =null
3760
+              let maxIndexAdvice = null
3757 3761
               if (that.curPrescriptions.advices.length > 0) {
3758 3762
                 for (let i = 0; i < that.curPrescriptions.advices.length; i++) {
3759 3763
                   // 获取当前对象
@@ -3934,9 +3938,9 @@ export default {
3934 3938
             }
3935 3939
 
3936 3940
             let tempMaxIndexAdvice = {
3937
-              groupno:0
3941
+              groupno: 0
3938 3942
             }
3939
-            let maxIndexAdvice =null
3943
+            let maxIndexAdvice = null
3940 3944
             if (this.curPrescriptions.advices.length > 0) {
3941 3945
               for (let i = 0; i < this.curPrescriptions.advices.length; i++) {
3942 3946
                 // 获取当前对象
@@ -4118,23 +4122,23 @@ export default {
4118 4122
 
4119 4123
       // }
4120 4124
 
4121
-      if (row.stock_count <= 0 &&  this.org_id != 10206 && this.org_id != 0) {
4122
-         if (row.type == 3) {
4123
-           if (selection) {
4124
-             selection.forEach(row => {
4125
-               if (row.stock_count <= 0) {
4126
-                 this.$refs.tables.toggleRowSelection(row)
4127
-               }
4128
-             })
4129
-           } else {
4130
-             this.$refs.tables.clearSelection()
4131
-           }
4132
-           this.$message.error(row.project_name + '库存不足')
4133
-           return
4134
-       }
4125
+      if (row.stock_count <= 0 && this.org_id != 10206 && this.org_id != 0) {
4126
+        if (row.type == 3) {
4127
+          if (selection) {
4128
+            selection.forEach(row => {
4129
+              if (row.stock_count <= 0) {
4130
+                this.$refs.tables.toggleRowSelection(row)
4131
+              }
4132
+            })
4133
+          } else {
4134
+            this.$refs.tables.clearSelection()
4135
+          }
4136
+          this.$message.error(row.project_name + '库存不足')
4137
+          return
4138
+        }
4135 4139
       }
4136 4140
 
4137
-      if ( this.org_id == 10206 && row.zuobiao_stock_num <= 0) {
4141
+      if (this.org_id == 10206 && row.zuobiao_stock_num <= 0) {
4138 4142
         if (row.type == 3) {
4139 4143
           if (selection) {
4140 4144
             selection.forEach(row => {
@@ -4407,15 +4411,15 @@ export default {
4407 4411
     },
4408 4412
     clearSelection() {
4409 4413
       this.$refs.tabProjectTeam.clearSelection()
4410
-    },callElePre(type){
4411
-      switch (type){
4414
+    }, callElePre(type) {
4415
+      switch (type) {
4412 4416
         case 1:
4413
-          var  that = this
4417
+          var that = this
4414 4418
           let params = {
4415
-            'admin_user_id':3626,
4419
+            'admin_user_id': 3626,
4416 4420
             'patient_id': this.patientInfo.id,
4417 4421
             'his_patient_id': this.hisPatientInfo.id,
4418
-            'record_time':this.record_date
4422
+            'record_time': this.record_date
4419 4423
           }
4420 4424
           axios.get('http://127.0.0.1:9532/api/CFYLJG001', {
4421 4425
             params: params
@@ -4449,12 +4453,12 @@ export default {
4449 4453
 
4450 4454
           break
4451 4455
         case 2:
4452
-          var  that = this
4456
+          var that = this
4453 4457
           let params2 = {
4454
-            'admin_user_id':3626,
4458
+            'admin_user_id': 3626,
4455 4459
             'patient_id': this.patientInfo.id,
4456 4460
             'his_patient_id': this.hisPatientInfo.id,
4457
-            'record_time':this.record_date
4461
+            'record_time': this.record_date
4458 4462
           }
4459 4463
           axios.get('http://127.0.0.1:9532/api/CFYLJG002', {
4460 4464
             params: params2
@@ -4487,12 +4491,12 @@ export default {
4487 4491
             })
4488 4492
           break
4489 4493
         case 3:
4490
-          var  that = this
4494
+          var that = this
4491 4495
           let params3 = {
4492
-            'admin_user_id':3626,
4496
+            'admin_user_id': 3626,
4493 4497
             'patient_id': this.patientInfo.id,
4494 4498
             'his_patient_id': this.hisPatientInfo.id,
4495
-            'record_time':this.record_date
4499
+            'record_time': this.record_date
4496 4500
           }
4497 4501
           axios.get('http://127.0.0.1:9532/api/CFYLJG003', {
4498 4502
             params: params3
@@ -4525,12 +4529,12 @@ export default {
4525 4529
             })
4526 4530
           break
4527 4531
         case 4:
4528
-          var  that = this
4532
+          var that = this
4529 4533
           let params4 = {
4530
-            'admin_user_id':3626,
4534
+            'admin_user_id': 3626,
4531 4535
             'patient_id': this.patientInfo.id,
4532 4536
             'his_patient_id': this.hisPatientInfo.id,
4533
-            'record_time':this.record_date
4537
+            'record_time': this.record_date
4534 4538
           }
4535 4539
           axios.get('http://127.0.0.1:9532/api/CFYLJG004', {
4536 4540
             params: params4
@@ -4563,12 +4567,12 @@ export default {
4563 4567
             })
4564 4568
           break
4565 4569
         case 5:
4566
-          var  that = this
4570
+          var that = this
4567 4571
           let params5 = {
4568
-            'admin_user_id':3626,
4572
+            'admin_user_id': 3626,
4569 4573
             'patient_id': this.patientInfo.id,
4570 4574
             'his_patient_id': this.hisPatientInfo.id,
4571
-            'record_time':this.record_date
4575
+            'record_time': this.record_date
4572 4576
           }
4573 4577
           axios.get('http://127.0.0.1:9532/api/CFYLJG005', {
4574 4578
             params: params5
@@ -4601,12 +4605,12 @@ export default {
4601 4605
             })
4602 4606
           break
4603 4607
         case 6:
4604
-          var  that = this
4608
+          var that = this
4605 4609
           let params6 = {
4606
-            'admin_user_id':3626,
4610
+            'admin_user_id': 3626,
4607 4611
             'patient_id': this.patientInfo.id,
4608 4612
             'his_patient_id': this.hisPatientInfo.id,
4609
-            'record_time':this.record_date
4613
+            'record_time': this.record_date
4610 4614
           }
4611 4615
           axios.get('http://127.0.0.1:9532/api/CFYLJG006', {
4612 4616
             params: params6
@@ -4639,12 +4643,12 @@ export default {
4639 4643
             })
4640 4644
           break
4641 4645
         case 7:
4642
-          var  that = this
4646
+          var that = this
4643 4647
           let params7 = {
4644
-            'admin_user_id':3626,
4648
+            'admin_user_id': 3626,
4645 4649
             'patient_id': this.patientInfo.id,
4646 4650
             'his_patient_id': this.hisPatientInfo.id,
4647
-            'record_time':this.record_date
4651
+            'record_time': this.record_date
4648 4652
           }
4649 4653
           axios.get('http://127.0.0.1:9532/api/CFYLJG007', {
4650 4654
             params: params7
@@ -4677,12 +4681,12 @@ export default {
4677 4681
             })
4678 4682
           break
4679 4683
         case 8:
4680
-          var  that = this
4684
+          var that = this
4681 4685
           let params8 = {
4682
-            'admin_user_id':3626,
4686
+            'admin_user_id': 3626,
4683 4687
             'patient_id': this.patientInfo.id,
4684 4688
             'his_patient_id': this.hisPatientInfo.id,
4685
-            'record_time':this.record_date
4689
+            'record_time': this.record_date
4686 4690
           }
4687 4691
           axios.get('http://127.0.0.1:9532/api/CFYLJG008', {
4688 4692
             params: params8