瀏覽代碼

新分支

28169 1 年之前
父節點
當前提交
fcf1dc27a0

+ 8 - 1
src/utils/tools.js 查看文件

25
   var birthYear = strBirthdayArr[0]
25
   var birthYear = strBirthdayArr[0]
26
   var birthMonth = strBirthdayArr[1]
26
   var birthMonth = strBirthdayArr[1]
27
   var birthDay = strBirthdayArr[2]
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
   var d = new Date()
33
   var d = new Date()
31
   var nowYear = d.getFullYear()
34
   var nowYear = d.getFullYear()
32
   var nowMonth = d.getMonth() + 1
35
   var nowMonth = d.getMonth() + 1
33
   var nowDay = d.getDate()
36
   var nowDay = d.getDate()
37
+
38
+  console.log("nowYear",nowYear)
39
+  console.log("nowMonth",nowMonth)
40
+  console.log("nowDay",nowDay)
34
   
41
   
35
   if (nowYear == birthYear) {
42
   if (nowYear == birthYear) {
36
     returnAge = 0 // 同年 则为0岁
43
     returnAge = 0 // 同年 则为0岁

+ 2 - 1
src/xt_pages/device/objectTableDisinfectTwo.vue 查看文件

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

+ 23 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue 查看文件

3686
       },
3686
       },
3687
       org_id: 0,
3687
       org_id: 0,
3688
       projectsOne: [],
3688
       projectsOne: [],
3689
+      schedule_date_one:"",
3689
     };
3690
     };
3690
   },
3691
   },
3691
   methods: {
3692
   methods: {
4189
       if (response.data.state == 1) {
4190
       if (response.data.state == 1) {
4190
         this.adminUser = response.data.data.users;
4191
         this.adminUser = response.data.data.users;
4191
         console.log('3333333wwwwww',response.data.data);
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
         this.users = response.data.data.users;
4198
         this.users = response.data.data.users;
4193
         this.patientInfo = response.data.data.patientInfo;
4199
         this.patientInfo = response.data.data.patientInfo;
4194
 
4200
 
4710
           birth.substr(4, 2) +
4716
           birth.substr(4, 2) +
4711
           '-' +
4717
           '-' +
4712
           birth.substr(6, 2)
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
     newAdviceGroupObject: function () {
4739
     newAdviceGroupObject: function () {

+ 2 - 2
src/xt_pages/role/admin.vue 查看文件

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

+ 3 - 3
src/xt_pages/stock/detail/stockOutDetail.vue 查看文件

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

+ 3 - 3
src/xt_pages/stock/drugs/components/drugOutDetail.vue 查看文件

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

+ 2 - 2
src/xt_pages/stock/drugs/drugStockOutOrder.vue 查看文件

363
             <template slot-scope="scope">
363
             <template slot-scope="scope">
364
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
364
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
365
                   <td style="border-right: none; border-inline-end: none;text-align: center">
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
                       <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>
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
                     <span v-if="is_sys == 0">
368
                     <span v-if="is_sys == 0">
369
                       <span v-if="scope.row.child.length == 1">{{item.retail_price}}</span> 
369
                       <span v-if="scope.row.child.length == 1">{{item.retail_price}}</span> 
371
                     </span>
371
                     </span>
372
                     </span>
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
                       <!-- {{(item.count * item.price).toFixed(2)}} -->
375
                       <!-- {{(item.count * item.price).toFixed(2)}} -->
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>  
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
                      <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>
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>