Bladeren bron

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

陈少旭 9 maanden geleden
bovenliggende
commit
fc9312a62e

+ 8 - 1
src/utils/tools.js Bestand weergeven

@@ -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 Bestand weergeven

@@ -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) == ''">

+ 13 - 13
src/xt_pages/dialysis/details/index.vue Bestand weergeven

@@ -2096,19 +2096,19 @@ export default {
2096 2096
         this.date = schedual.schedule_date
2097 2097
          this.getScheduleDetail();
2098 2098
         console.log('schedual',schedual);
2099
-        this.getLongAdvice();
2100
-
2101
-        // var patient_id = schedual.patient_id
2102
-        // var date = schedual.schedule_date
2103
-        // this.$router.push({
2104
-        //   path: '/dialysis/details',
2105
-        //   query: {
2106
-        //     patient_id: patient_id,
2107
-        //     date: date,
2108
-        //     patient_name: schedual.patient.name,
2109
-        //     mode_id:schedual.mode_id
2110
-        //   }
2111
-        // })
2099
+        //this.getLongAdvice();
2100
+
2101
+        var patient_id = schedual.patient_id
2102
+        var date = schedual.schedule_date
2103
+        this.$router.push({
2104
+          path: '/dialysis/details',
2105
+          query: {
2106
+            patient_id: patient_id,
2107
+            date: date,
2108
+            patient_name: schedual.patient.name,
2109
+            mode_id:schedual.mode_id
2110
+          }
2111
+        })
2112 2112
     },
2113 2113
     handleClick(type) {
2114 2114
       sessionStorage.setItem('nameActive', type.name);

+ 23 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Bestand weergeven

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

+ 91 - 25
src/xt_pages/outpatientDoctorStation/template/prinSeven.vue Bestand weergeven

@@ -62,8 +62,6 @@
62 62
               v-for="(it, index) in item.advices" :key="index"
63 63
               :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"
64 64
             >
65
-            <!-- class="drugsBox"  item.advices.length>=5 ? 'danzhang' : 'drugsBox'  :style="{'page-break-after':index==yi&&item.advices.length>3? 'always':'auto'}"-->
66
-              <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
67 65
               <template v-if="index==yi+1&&item.advices.length>5">
68 66
                 <div style="margin: 20px 0px;">
69 67
                   <div class="infoTitle">
@@ -101,7 +99,8 @@
101 99
                 </div>
102 100
               </template>
103 101
               <div style="position: relative;">
104
-                <div class="drugsOne" :style="{'border-right':item.arr.length>0 && item.arr[0][0].groupno==it.groupno ? '1px solid black': 'none','width':'80%'}">
102
+                <!-- :style="{'border-right':item.arr.length>0 && (item.arr[0][0].groupno==it.groupno) ? '1px solid black': 'none','width':'80%'}" -->
103
+                <!-- <div class="drugsOne" >
105 104
                   <span style="font-weight: bold" >
106 105
                     {{ index + 1 + "."}}
107 106
                   </span>
@@ -110,19 +109,17 @@
110 109
                     {{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* {{ it.drug.min_number }}{{ it.drug.min_unit }}/
111 110
                     {{it.drug.max_unit}}
112 111
                   </span>&nbsp;
113
-                  <div>
114
-                    <template v-if="item.arr.length>0 && item.arr[0][0].groupno==it.groupno">
112
+                  <div v-for="(ite,indexs) in item.arr" :key="indexs">
113
+                    <template v-if="item.arr.length>0 && ite[0].groupno==it.groupno">
115 114
                       <div >
116
-                        <!-- -->
117
-                        <span style="margin-left: 38px;">{{item.arr[0][0].advice_name ? item.arr[0][0].advice_name : ""}}</span>&nbsp;&nbsp;
118
-                        <span v-if="item.arr[0][0].drug.min_unit != item.arr[0][0].drug.dose_unit">
119
-                          {{ item.arr[0][0].drug.dose }}{{ item.arr[0][0].drug.dose_unit }}&nbsp;* {{ item.arr[0][0].drug.min_number }}{{ item.arr[0][0].drug.min_unit }}/
120
-                          {{item.arr[0][0].drug.max_unit}}
115
+                        <span style="margin-left: 38px;">{{ite[0].advice_name ? ite[0].advice_name : ""}}</span>&nbsp;&nbsp;
116
+                        <span v-if="ite[0].drug.min_unit != ite[0].drug.dose_unit">
117
+                          {{ ite[0].drug.dose }}{{ ite[0].drug.dose_unit }}&nbsp;* {{ ite[0].drug.min_number }}{{ ite[0].drug.min_unit }}/
118
+                          {{ite[0].drug.max_unit}}
121 119
                         </span>&nbsp;
122 120
                       </div>
123
-                      <div style="display: inline-block;position: absolute;left:85%;top:20px;margin-left: 10px;" >
124
-                        &nbsp;共{{ item.arr[0][0].single_dose }}{{ item.arr[0][0].single_dose_unit }}
125
-                        <!-- 共{{ it.prescribing_number}}{{ it.prescribing_number_unit }} -->
121
+                      <div style="display: inline-block;position: absolute;left:85%;top:20px;margin-left: 5px;" >
122
+                        &nbsp;共{{ ite[0].single_dose }}{{ ite[0].single_dose_unit }}
126 123
                       </div>
127 124
                     </template>
128 125
                   </div>
@@ -138,23 +135,92 @@
138 135
                   <div style="margin-left: 70px" v-if="it.remark !=''">
139 136
                     备注:<span > {{ it.remark }}</span>
140 137
                   </div>
141
-                  <!-- v-if="arr.length>0 && arr[0][0].groupno==it.groupno" 'border-right':arr.length>0 && arr[0][0].groupno==it.groupno ? '1px solid black' :'none',-->
142 138
                 </div>
143
-                <div style="display: inline-block;position: absolute;left:80%;bottom:30px;margin-left: 10px;" >
139
+                <div style="display: inline-block;position: absolute;left:80%;bottom:30px;margin-left: 5px;" >
144 140
                   ×&nbsp;{{ it.prescribing_number}}
145 141
                 </div>
146
-                <template v-if="item.arr.length>0&&item.arr[0][0].groupno==it.groupno">
147
-                  <div style="display: inline-block;position: absolute;left:80%;bottom:15px;margin-left: 10px;" >
148
-                    ×&nbsp;{{ item.arr[0][0].prescribing_number}}
142
+                <div v-for="(ite,indexs) in item.arr" :key="indexs">
143
+                  <template v-if="item.arr.length>0&&ite[0].groupno==it.groupno">
144
+                    <div style="display: inline-block;position: absolute;left:80%;bottom:15px;margin-left: 5px;" >
145
+                      ×&nbsp;{{ ite[0].prescribing_number}}
146
+                    </div>
147
+                  </template>
148
+                </div>
149
+                <template>
150
+
151
+                    <div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 5px;" v-if="(item.arr.length>0&&item.arr[0][0].groupno!=it.groupno) || item.arr.length==0">
152
+                      &nbsp;共{{ it.prescribing_number}}{{ it.prescribing_number_unit }}
153
+                    </div>
154
+
155
+                    <div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 5px;" v-if="item.arr.length>0&&item.arr[0][0].groupno==it.groupno">
156
+                      &nbsp;共{{ it.single_dose }}{{ it.single_dose_unit }}
157
+                    </div>
158
+                </template> -->
159
+                <!-- --------------------------------------------------------------------- -->
160
+                <template>
161
+                  <div v-for="(ite,indexs) in item.arr" :key="indexs">
162
+                    <div class="drugsOne" :style="{'border-right':item.arr.length>0 && (ite[0].groupno==it.groupno) ? '1px solid black': 'none','width':'80%'}">
163
+                    <span style="font-weight: bold" >
164
+                      {{ index + 1 + "."}}
165
+                    </span>
166
+                    {{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;
167
+                    <span v-if="it.drug.min_unit != it.drug.dose_unit">
168
+                      {{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* {{ it.drug.min_number }}{{ it.drug.min_unit }}/
169
+                      {{it.drug.max_unit}}
170
+                    </span>&nbsp;
171
+                    <div >
172
+                      <template v-if="item.arr.length>0 && ite[0].groupno==it.groupno">
173
+                        <div >
174
+                          <span style="margin-left: 38px;">{{ite[0].advice_name ? ite[0].advice_name : ""}}</span>&nbsp;&nbsp;
175
+                          <span v-if="ite[0].drug.min_unit != ite[0].drug.dose_unit">
176
+                            {{ ite[0].drug.dose }}{{ ite[0].drug.dose_unit }}&nbsp;* {{ ite[0].drug.min_number }}{{ ite[0].drug.min_unit }}/
177
+                            {{ite[0].drug.max_unit}}
178
+                          </span>&nbsp;
179
+                        </div>
180
+                        <div style="display: inline-block;position: absolute;left:85%;top:20px;margin-left: 5px;" >
181
+                          &nbsp;共{{ ite[0].single_dose }}{{ ite[0].single_dose_unit }}
182
+                          <!-- 共{{ it.prescribing_number}}{{ it.prescribing_number_unit }} -->
183
+                        </div>
184
+                      </template>
185
+                    </div>
186
+                    <div style="margin-left: 70px">
187
+                      用法:
188
+                      <span v-if="(item.arr.length>0 && item.arr[0][0].groupno!=it.groupno)||item.arr.length==0">{{ it.single_dose }}{{ it.single_dose_unit }}</span>
189
+                      &nbsp;&nbsp;<span>
190
+                        {{ it.execution_frequency }}&nbsp;{{
191
+                          it.delivery_way
192
+                        }}&nbsp;</span>&nbsp;&nbsp;<span>{{ it.advice_desc}}</span>
193
+                    </div>
194
+                    <div style="margin-left: 70px" v-if="it.remark !=''">
195
+                      备注:<span > {{ it.remark }}</span>
196
+                    </div>
197
+                      <!-- v-if="arr.length>0 && arr[0][0].groupno==it.groupno" 'border-right':arr.length>0 && arr[0][0].groupno==it.groupno ? '1px solid black' :'none',-->
198
+                    </div>
199
+                    <div style="display: inline-block;position: absolute;left:80%;bottom:30px;margin-left: 5px;" >
200
+                      ×&nbsp;{{ it.prescribing_number}}
201
+                    </div>
202
+                    <div >
203
+                      <template v-if="item.arr.length>0&&ite[0].groupno==it.groupno">
204
+                        <div style="display: inline-block;position: absolute;left:80%;bottom:15px;margin-left: 5px;" >
205
+                          ×&nbsp;{{ ite[0].prescribing_number}}
206
+                        </div>
207
+                      </template>
208
+                    </div>
209
+                    <template>
210
+                      <!-- <div v-for="(ite,indexs) in item.arr" :key="indexs"> -->
211
+                        <div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 5px;" v-if="(item.arr.length>0&&item.arr[0][0].groupno!=it.groupno) || item.arr.length==0">
212
+                          &nbsp;共{{ it.prescribing_number}}{{ it.prescribing_number_unit }}
213
+                        </div>
214
+
215
+                        <div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 5px;" v-if="item.arr.length>0&&item.arr[0][0].groupno==it.groupno">
216
+                          &nbsp;共{{ it.single_dose }}{{ it.single_dose_unit }}
217
+                        </div>
218
+                      <!-- </div> -->
219
+                    </template>
149 220
                   </div>
221
+
150 222
                 </template>
151
-                <div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 10px;" v-if="(item.arr.length>0&&item.arr[0][0].groupno!=it.groupno) || item.arr.length==0">
152
-                  &nbsp;共{{ it.prescribing_number}}{{ it.prescribing_number_unit }}
153
-                </div>
154
-                <div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 10px;" v-if="item.arr.length>0&&item.arr[0][0].groupno==it.groupno">
155
-                  <!-- &nbsp;共{{ it.prescribing_number}}{{ it.prescribing_number_unit }} -->
156
-                  &nbsp;共{{ it.single_dose }}{{ it.single_dose_unit }}
157
-                </div>
223
+
158 224
               </div>
159 225
               <template v-if="index==yi&&item.advices.length>5">
160 226
                 <div style="margin: 20px 0px;">

+ 2 - 2
src/xt_pages/role/admin.vue Bestand weergeven

@@ -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 Bestand weergeven

@@ -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 Bestand weergeven

@@ -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 Bestand weergeven

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