Browse Source

新分支

28169 1 year ago
parent
commit
fcf1dc27a0

+ 8 - 1
src/utils/tools.js View File

@@ -25,12 +25,19 @@ export function jsGetAge(strBirthday, splitstr) {
25 25
   var birthYear = strBirthdayArr[0]
26 26
   var birthMonth = strBirthdayArr[1]
27 27
   var birthDay = strBirthdayArr[2]
28
-
28
+ 
29
+  console.log("birthYear",birthYear)
30
+  console.log("birthMonth",birthMonth)
31
+  console.log("birthDay",birthDay)
29 32
   
30 33
   var d = new Date()
31 34
   var nowYear = d.getFullYear()
32 35
   var nowMonth = d.getMonth() + 1
33 36
   var nowDay = d.getDate()
37
+
38
+  console.log("nowYear",nowYear)
39
+  console.log("nowMonth",nowMonth)
40
+  console.log("nowDay",nowDay)
34 41
   
35 42
   if (nowYear == birthYear) {
36 43
     returnAge = 0 // 同年 则为0岁

+ 2 - 1
src/xt_pages/device/objectTableDisinfectTwo.vue View File

@@ -1111,8 +1111,9 @@
1111 1111
                             </tr>
1112 1112
 
1113 1113
                             <tr v-for="(item,index) in tableData" :key="index">
1114
-                                <td>{{item.storey }}</td>
1114
+                               
1115 1115
                                 <td>{{getTimes(item.record_date) }}</td>
1116
+                                <td>{{item.storey }}</td>
1116 1117
                                 <td>{{getTimeTwo( item.first_start_time)}}- {{getTimeTwo(item.first_end_time)  }}</td>
1117 1118
                                 <td>
1118 1119
                                 <span v-if="setAdminUserES(item.first_creator?item.last_creator:item.first_creator) == ''">

+ 23 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -3686,6 +3686,7 @@ export default {
3686 3686
       },
3687 3687
       org_id: 0,
3688 3688
       projectsOne: [],
3689
+      schedule_date_one:"",
3689 3690
     };
3690 3691
   },
3691 3692
   methods: {
@@ -4189,6 +4190,11 @@ export default {
4189 4190
       if (response.data.state == 1) {
4190 4191
         this.adminUser = response.data.data.users;
4191 4192
         console.log('3333333wwwwww',response.data.data);
4193
+       var schedule_date  =  response.data.data.schedule.schedule_date
4194
+       this.schedule_date_one =  uParseTime(
4195
+          schedule_date,
4196
+          "{y}-{m}-{d}"
4197
+        );
4192 4198
         this.users = response.data.data.users;
4193 4199
         this.patientInfo = response.data.data.patientInfo;
4194 4200
 
@@ -4710,9 +4716,24 @@ export default {
4710 4716
           birth.substr(4, 2) +
4711 4717
           '-' +
4712 4718
           birth.substr(6, 2)
4719
+        if(this.org_id!=0){
4720
+          var age = jsGetAge(birthtwo, '-')
4721
+          return age
4722
+        }
4713 4723
 
4714
-        var age = jsGetAge(birthtwo, '-')
4715
-        return age
4724
+        if(this.org_id == 0){
4725
+          console.log("日期搜哦",this.schedule_date_one)
4726
+          var strBirthdayArr = this.schedule_date_one.split("-")
4727
+          console.log("strBirthdayArr",strBirthdayArr)
4728
+          var yeaer = strBirthdayArr[0]
4729
+          var month = strBirthdayArr[1]
4730
+          var day = strBirthdayArr[2]
4731
+          var age = jsGetAge(birthtwo, '-',yeaer,month,day)
4732
+          console.log("agesssss",age)
4733
+          return age
4734
+
4735
+        }
4736
+      
4716 4737
       }
4717 4738
     },
4718 4739
     newAdviceGroupObject: function () {

+ 2 - 2
src/xt_pages/role/admin.vue View File

@@ -225,12 +225,12 @@
225 225
           @click="toAutoDrug">自动生成</el-button> -->
226 226
 
227 227
 
228
-         <!-- <el-button
228
+         <el-button
229 229
           type="primary"
230 230
           size="small"
231 231
           icon="el-icon-circle-plus-outline"
232 232
           style="float:left"
233
-          @click="toAutoDiagnose">自动脚本</el-button>  -->
233
+          @click="toAutoDiagnose">自动脚本</el-button> 
234 234
      </div>
235 235
 
236 236
 

+ 3 - 3
src/xt_pages/stock/detail/stockOutDetail.vue View File

@@ -13,7 +13,7 @@
13 13
       size="small"
14 14
       @click="exportListDetail"
15 15
       type="primary"
16
-      v-if="orgId !=10480 && orgId!=0"
16
+      v-if="orgId !=10480"
17 17
       >明细导出
18 18
      
19 19
     </el-button>
@@ -22,7 +22,7 @@
22 22
       size="small"
23 23
       @click="exportListDetailOne"
24 24
       type="primary"
25
-      v-if="orgId ==10480 || orgId == 0"
25
+      v-if="orgId ==10480"
26 26
       >明细导出
27 27
      
28 28
     </el-button>
@@ -933,7 +933,7 @@ export default {
933 933
         })
934 934
      },
935 935
      exportListDetail(){
936
-
936
+        console.log("hahhdhafhhahdf",this.tableDataList)
937 937
         var obj = {index:"合计",total_price:0}
938 938
         var total = 0
939 939
         for(let i=0;i<this.tableDataList.length;i++){

+ 3 - 3
src/xt_pages/stock/drugs/components/drugOutDetail.vue View File

@@ -17,7 +17,7 @@
17 17
       >明细导出
18 18
     </el-button>
19 19
     <el-button
20
-      v-if="org_id == 10265"
20
+      v-if="org_id == 10265 || org_id == 0"
21 21
       style="float: right;margin-right:10px"
22 22
       size="small"
23 23
       @click="exportListDetaiOne"
@@ -25,7 +25,7 @@
25 25
       >明细导出
26 26
     </el-button>
27 27
     <el-button
28
-      v-if="org_id == 10480 || org_id == 0"
28
+      v-if="org_id == 10480"
29 29
       style="float: right;margin-right:10px"
30 30
       size="small"
31 31
       @click="exportListDetaiTwo"
@@ -782,7 +782,7 @@ export default {
782 782
             this.tableData[i].manufacturer_name = this.getManufacturerName(this.tableData[i].manufacturer)
783 783
             this.tableData[i].dealer_name = this.getDealerName(this.tableData[i].dealer)
784 784
             this.tableData[i].in_retail_price = (this.tableData[i].in_price/this.tableData[i].min_number).toFixed(2)
785
-       
785
+            this.tableData[i].in_retail_price = this.tableData[i].infor_price
786 786
             this.tableData[i].total = (this.tableData[i].count * this.tableData[i].price)
787 787
             if(this.tableData[i].count_unit == this.tableData[i].min_unit && this.tableData[i].max_unit!=this.tableData[i].min_unit){
788 788
                 this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].price)

+ 2 - 2
src/xt_pages/stock/drugs/drugStockOutOrder.vue View File

@@ -363,7 +363,7 @@
363 363
             <template slot-scope="scope">
364 364
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
365 365
                   <td style="border-right: none; border-inline-end: none;text-align: center">
366
-                    <span v-if="org_id!=0 && org_id!=10480 && org_id!=10210">
366
+                    <span v-if="org_id!=0 && org_id!=10480 && org_id!=10210&&org_id!=10188 && org_id!=10217">
367 367
                       <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getTotalPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}} </span>
368 368
                     <span v-if="is_sys == 0">
369 369
                       <span v-if="scope.row.child.length == 1">{{item.retail_price}}</span> 
@@ -371,7 +371,7 @@
371 371
                     </span>
372 372
                     </span>
373 373
 
374
-                    <span v-if="org_id==0 || org_id ==10480 || org_id==10210">
374
+                    <span v-if="org_id==0 || org_id ==10480 || org_id==10210 || org_id ==10188 || org_id ==10217">
375 375
                       <!-- {{(item.count * item.price).toFixed(2)}} -->
376 376
                      <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{(getOutCountNightTen(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)*item.price).toFixed(2)}}</span>  
377 377
                      <span v-if="is_sys==0"> {{(getOutCountNightTenOne(item.batch_number,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)*item.price).toFixed(2)}}</span>