Просмотр исходного кода

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

28169 9 месяцев назад
Родитель
Сommit
bc5a0a95ba

Разница между файлами не показана из-за своего большого размера
+ 1721 - 1692
src/xt_pages/outpatientCharges/summary.vue


+ 91 - 25
src/xt_pages/outpatientDoctorStation/template/prinSeven.vue Просмотреть файл

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

+ 3 - 3
src/xt_pages/workforce/components/editTableData.vue Просмотреть файл

@@ -166,7 +166,7 @@
166 166
             height="calc(100% - 50px)"
167 167
             ref="table"
168 168
             style="table-layout: fixed;"
169
-           
169
+
170 170
         >
171 171
         <!-- :cell-style ='cellstyle'    :height="tableContainHeight" calc(100% - 50px) 600-->
172 172
           <el-table-column
@@ -1344,7 +1344,7 @@
1344 1344
                     :schedulMode="modename_value"
1345 1345
                   >
1346 1346
 
1347
-                  
1347
+
1348 1348
                   </schedule-item>
1349 1349
                 </div>
1350 1350
               </template>
@@ -2526,7 +2526,7 @@ export default {
2526 2526
 
2527 2527
         for(let i = 0; i < this.weeks.length; i++){
2528 2528
           for(let b = 0; b < this.first_weeks.length; b++){
2529
-            if(this.weeks[i].week_type == this.first_weeks[b].week_type && this.first_weeks[b].order_id > 0){
2529
+            if(this.weeks[i].week_type == this.first_weeks[b].week_type){
2530 2530
               console.log(this.weeks[i].week_type)
2531 2531
               console.log(this.first_weeks[b].week_type)
2532 2532
               console.log(this.first_weeks[b].order_id)