28169 il y a 9 mois
Parent
révision
9debc49b7e

+ 241 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Voir le fichier

@@ -1800,7 +1800,7 @@
1800 1800
                     </table>
1801 1801
                   </td>
1802 1802
                 </tr>
1803
-                <tr v-if="org_id!=10402 && org_id!=10206">
1803
+                <tr v-if="org_id!=10402 && org_id!=10206 && org_id!=0 && org_id!=10206">
1804 1804
                   <td style="padding: 0; position: relative" colspan="2">
1805 1805
                     <table class="inside_table">
1806 1806
                       <tbody>
@@ -2150,6 +2150,185 @@
2150 2150
                     </table>
2151 2151
                   </td>
2152 2152
                 </tr>
2153
+
2154
+                <tr v-if="org_id == 0 || org_id == 10206">
2155
+                  <td style="padding: 0; position: relative" colspan="2">
2156
+                    <table class="inside_table">
2157
+                      <tbody>
2158
+                        <tr style="line-height: 35px; padding: 8px 5px">
2159
+                          <td
2160
+                            colspan="7"
2161
+                            style="
2162
+                              letter-spacing: 5px;
2163
+                              text-align: center;
2164
+                              font-weight: 520;
2165
+                              font-size: 16px;
2166
+                              padding: 6px 8px;
2167
+                              line-height: 30px;
2168
+                            "
2169
+                          >
2170
+                            医嘱内容
2171
+                          </td>
2172
+                        </tr>
2173
+                        <!-- <tr style="line-height:35px;padding:8px 5px;">
2174
+                                            <td colspan="4" style="font-size: 16px">开医嘱</td>
2175
+                                            <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
2176
+                            </tr> -->
2177
+                        <tr style="line-height: 35px; padding: 8px 5px">
2178
+                          <td style="font-size: 16px" width="10%">时间</td>
2179
+                          <td style="font-size: 16px" colspan="2" width="45%">
2180
+                            医嘱内容
2181
+                          </td>
2182
+                          <td style="font-size: 16px" width="10%">医生签名</td>
2183
+                          <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
2184
+                          <td style="font-size: 16px" width="10%">
2185
+                            执行人签名
2186
+                          </td>
2187
+                          <td style="font-size: 16px" width="10%">时间</td>
2188
+                        </tr>
2189
+                        <!-- <template v-for="group in doctor_advices" > -->
2190
+
2191
+                        <template v-if="record.advices">
2192
+                          <tr
2193
+                            v-for="(advice, advice_index) in record.new_his_advices"
2194
+                            :key="advice_index"
2195
+                          >
2196
+                            <td height="35px">
2197
+                              <span v-if="advice.start_time">
2198
+                                {{ getTime(advice.start_time, "{h}:{i}") }}
2199
+                              </span>
2200
+                            </td>
2201
+
2202
+                            <td
2203
+                              height="35px"
2204
+                              colspan="2"
2205
+                              class="advice-name"
2206
+                              style="padding-left: 7px"
2207
+                              
2208
+                            >
2209
+                             <span v-for="(it,i) in advice.child" :key="i">
2210
+                              <span>{{ it.advice_name }}</span>
2211
+
2212
+                              <span v-if="it && it.advice_desc">
2213
+                                ({{ it.advice_desc
2214
+                                }}{{ it.drug_spec_unit }} )
2215
+                              </span>
2216
+
2217
+                              <span v-if="it.prescribing_number"
2218
+                                >&nbsp;{{ it.prescribing_number
2219
+                                }}{{ it.prescribing_number_unit }}</span
2220
+                              >
2221
+                              <span v-if="it.single_dose != 0">
2222
+                                {{ it.single_dose
2223
+                                }}{{ it.single_dose_unit }}</span
2224
+                              >
2225
+
2226
+                              <span v-if="it.parent_id == 0">{{
2227
+                                it.delivery_way
2228
+                              }}</span>
2229
+                              <span v-if="it.parent_id == 0">{{
2230
+                                it.execution_frequency
2231
+                              }}</span>
2232
+                              <span
2233
+                                v-if="
2234
+                                  it.parent_id == 0 &&
2235
+                                  it.remark.length > 0
2236
+                                "
2237
+                                >({{ it.remark }})</span>
2238
+                              <span v-if="advice.child.length >1"> + </span> 
2239
+                            </span>
2240
+                            </td>
2241
+
2242
+                            <td height="35px">
2243
+                              <span
2244
+                                v-if="
2245
+                                  setAdminUserES(advice, 'advice_doctor') ==
2246
+                                  ''
2247
+                                "
2248
+                                >{{
2249
+                                  getAdminUser(advice, "advice_doctor")
2250
+                                }}</span
2251
+                              >
2252
+                              <img
2253
+                                class="es-img"
2254
+                                :src="
2255
+                                  setAdminUserES(advice, 'advice_doctor')
2256
+                                "
2257
+                                alt=""
2258
+                                srcset=""
2259
+                                v-else
2260
+                                style="height: 40px"
2261
+                              />
2262
+                            </td>
2263
+
2264
+                            <td height="35px">
2265
+                              <span
2266
+                                v-if="
2267
+                                  setAdminUserES(
2268
+                                    advice,
2269
+                                    'execution_staff'
2270
+                                  ) == ''
2271
+                                "
2272
+                                >{{
2273
+                                  getAdminUser(advice, "execution_staff")
2274
+                                }}</span
2275
+                              >
2276
+                              <img
2277
+                                class="es-img"
2278
+                                :src="
2279
+                                  setAdminUserES(advice, 'execution_staff')
2280
+                                "
2281
+                                alt=""
2282
+                                srcset=""
2283
+                                v-else
2284
+                                style="height: 40px"
2285
+                              />
2286
+                            </td>
2287
+                            <td height="35px">
2288
+                              <span v-if="advice.execution_time">{{
2289
+                                getTime(advice.execution_time, " {h}:{i}")
2290
+                              }}</span>
2291
+                            </td>
2292
+                          </tr>
2293
+
2294
+                        <tr v-for="(advice, advice_index) in record.his_project" :key="advice_index" v-if="org_id == 0 || org_id ==10206">
2295
+                        <td height="32px;padding:1px 1px">
2296
+                            <span v-if="advice.start_time">
2297
+                                {{ getTime(advice.start_time, "{h}:{i}") }}
2298
+                            </span>
2299
+                        </td>
2300
+                        <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;">
2301
+                            <span style="padding-left:5px;display:inline-block;">
2302
+                              <span v-if="advice.type ==2">{{ advice && advice.project ? advice.project.project_name : '' }} {{ advice.count }} {{ advice.unit }}</span>
2303
+                              <span v-if="advice.type ==3">{{ advice && advice.good_info ? advice.good_info.good_name : '' }}  {{ advice && advice.good_info ? advice.good_info.specification_name : '' }} {{ advice.count }} {{ advice.unit }}</span>
2304
+                            </span>
2305
+                        </td>
2306
+
2307
+                        <td height="32px">
2308
+                            <span v-if="setAdminUserES(advice, 'doctor') == ''">
2309
+                                {{getAdminUser(advice, 'doctor')}}
2310
+                            </span>
2311
+                            <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
2312
+                                <img style="height:30px;" :src="setAdminUserES(advice, 'doctor')" alt srcset />
2313
+                            </span>
2314
+                        </td>
2315
+                        <td height="32px">
2316
+                            <span v-if="setAdminUserES(advice, 'execution_staff') == ''">
2317
+                                {{getAdminUser(advice, 'execution_staff')}}
2318
+                            </span>
2319
+                            <span v-else>
2320
+                                <img style="height:30px;" :src="setAdminUserES(advice, 'execution_staff')" alt srcset />
2321
+                            </span>
2322
+                        </td>
2323
+                        <td height="32px">
2324
+                            <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
2325
+                        </td>
2326
+                        </tr>
2327
+                        </template>
2328
+                      </tbody>
2329
+                    </table>
2330
+                  </td>
2331
+                </tr>
2153 2332
               </tbody>
2154 2333
             </table>
2155 2334
           </div>
@@ -3538,7 +3717,68 @@ export default {
3538 3717
             }
3539 3718
           }
3540 3719
           console.log("数据我哦我我", this.records);
3720
+           
3721
+          if(this.records!=null && this.records.length>0){
3722
+            console.log("进啦地方大丰")
3723
+            for(let i=0;i<this.records.length;i++){
3724
+              this.records[i].new_his_advices = []
3725
+                for(let j=0;j<this.records[i].his_advices.length;j++){
3726
+                    this.records[i].his_advices[j].new_groupno = ""
3727
+                    this.records[i].his_advices[j].new_groupno = this.records[i].his_advices[j].prescription_id + "_" + this.records[i].his_advices[j].groupno
3728
+                }
3729
+                let objInfo = {}
3730
+                this.records[i].his_advices.forEach((item,index)=>{
3731
+                  console.log("itemwowowowowo",item)
3732
+                  let { new_groupno } = item
3733
+                  if(!objInfo[new_groupno]){
3734
+                    objInfo[new_groupno] = {
3735
+                      new_groupno,
3736
+                      child:[],
3737
+                      start_time:item.start_time,
3738
+                      advice_doctor:item.advice_doctor,
3739
+                      advice_name:item.advice_name,
3740
+                      check_time:item.check_time,
3741
+                      checker:item.checker,
3742
+                      delivery_way:item.delivery_way,
3743
+                      execution_frequency:item.execution_frequency,
3744
+                      execution_staff:item.execution_staff,
3745
+                      execution_state:item.execution_state,
3746
+                      execution_time:item.execution_time,
3747
+                      frequency_type:item.frequency_type,
3748
+                      new_groupno:item.new_groupno,
3749
+                      advice_desc:item.advice_desc,
3750
+                      drug_spec_unit:item.drug_spec_unit,
3751
+                      prescribing_number:item.prescribing_number,
3752
+                      prescribing_number_unit:item.prescribing_number_unit,
3753
+                      single_dose:item.single_dose,
3754
+                      single_dose_unit:item.single_dose_unit,
3755
+                      parent_id:item.parent_id,
3756
+                      remark:item.remark,
3757
+                    
3758
+                    }
3759
+                  }
3760
+                })
3761
+                let newArr = Object.values(objInfo);
3762
+                console.log("newArrwowoowowowo",newArr)
3763
+                if(newArr!=null && newArr.length >0){
3764
+                  for(let y=0;y<newArr.length;y++){
3765
+                    for(let z=0;z<this.records[i].his_advices.length;z++){
3766
+                       if(newArr[y].new_groupno == this.records[i].his_advices[z].new_groupno){
3767
+                          newArr[y].child.push(this.records[i].his_advices[z])
3768
+                       }
3769
+                    }
3770
+                  }
3771
+                }
3772
+
3773
+                console.log("newArrwowoow",newArr)
3774
+
3775
+              this.records[i].new_his_advices = [] 
3776
+              this.records[i].new_his_advices.push(...newArr)
3777
+              
3778
+            }
3779
+          }
3541 3780
 
3781
+          console.log("时间我哦我",this.records)
3542 3782
         
3543 3783
           // this.records.forEach(o => {
3544 3784
           //   console.log(o,'jj')

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_thirtyTwo.vue Voir le fichier

@@ -220,7 +220,7 @@
220 220
                                 &nbsp;
221 221
                                 <label-box :isChecked="record.assessment_before_dislysis.internal_fistula.indexOf('震颤-减弱') > -1 ? true : false" showValue="减弱"></label-box>
222 222
                                 &nbsp;
223
-                                <label-box :isChecked="record.assessment_before_dislysis.internal_fistula.indexOf('震颤-无') > -1 ? true : false" showValue="不存在"></label-box>
223
+                                <label-box :isChecked="(record.assessment_before_dislysis.internal_fistula.indexOf('震颤-无') > -1 || record.assessment_before_dislysis.internal_fistula.indexOf('不存在') > -1) ? true : false" showValue="不存在"></label-box>
224 224
                             </div>
225 225
                             </td>
226 226
                             <td width="30"></td>

+ 7 - 3
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Voir le fichier

@@ -1534,10 +1534,14 @@
1534 1534
           this.$message.error('已发药不可修改')
1535 1535
           return
1536 1536
         }
1537
-        if (row.stop_state == 1 || row.execution_state == 1) {
1538
-          this.$message.error('所选医嘱已停止或执行')
1539
-          return false
1537
+
1538
+        if(this.org_id != 10612 && this.org_id!=0 && this.org_id!=10460){
1539
+          if (row.stop_state == 1 || row.execution_state == 1) {
1540
+            this.$message.error('所选医嘱已停止或执行')
1541
+            return false
1542
+          }
1540 1543
         }
1544
+      
1541 1545
 
1542 1546
         this.title = row.parent_id > 0 ? '编辑子药' : '编辑医嘱'
1543 1547
         this.showAdviceForm = true

+ 309 - 221
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Voir le fichier

@@ -133,34 +133,7 @@
133 133
             >
134 134
               {{ item.name }}
135 135
             </div>
136
-            <!--<div-->
137
-            <!--class="under_line"-->
138
-            <!--v-if="receiverTreatmentAccess.way == 1"-->
139
-            <!--style="width: 180px;text-align: left"-->
140
-            <!--&gt;-->
141
-            <!--步行-->
142
-            <!--</div>-->
143
-            <!--<div-->
144
-            <!--class="under_line"-->
145
-            <!--v-if="receiverTreatmentAccess.way == 2"-->
146
-            <!--style="width: 180px;text-align: left"-->
147
-            <!--&gt;-->
148
-            <!--扶行-->
149
-            <!--</div>-->
150
-            <!--<div-->
151
-            <!--class="under_line"-->
152
-            <!--v-if="receiverTreatmentAccess.way == 3"-->
153
-            <!--style="width: 180px;text-align: left"-->
154
-            <!--&gt;-->
155
-            <!--轮椅-->
156
-            <!--</div>-->
157
-            <!--<div-->
158
-            <!--class="under_line"-->
159
-            <!--v-if="receiverTreatmentAccess.way == 4"-->
160
-            <!--style="width: 180px;text-align: left"-->
161
-            <!--&gt;-->
162
-            <!--平车-->
163
-            <!--</div>-->
136
+           
164 137
           </div>
165 138
 
166 139
           <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10460">
@@ -1079,7 +1052,7 @@
1079 1052
                             ? predialysis.weight_after_last_transparency
1080 1053
                             : "未称重"
1081 1054
                         }}</span>
1082
-                        <!-- {{ predialysis.weight_after_last_transparency ? parseFloat(lastafterdialysis.weight_after - lastafterdialysis.additional_weight).toFixed(1) : "未称重" }} -->
1055
+                       
1083 1056
                       </div>
1084 1057
                       kg
1085 1058
                     </div>
@@ -1864,7 +1837,7 @@
1864 1837
                   </table>
1865 1838
                 </td>
1866 1839
               </tr>
1867
-              <tr>
1840
+              <tr v-if="org_id!=0&& org_id!=10206">
1868 1841
                 <td style="padding: 0; position: relative" colspan="2">
1869 1842
                   <table class="inside_table">
1870 1843
                     <tbody>
@@ -1883,10 +1856,7 @@
1883 1856
                           医嘱内容
1884 1857
                         </td>
1885 1858
                       </tr>
1886
-                      <!-- <tr style="line-height:35px;padding:8px 5px;">
1887
-                    <td colspan="4" style="font-size: 16px">开医嘱</td>
1888
-                    <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
1889
-                  </tr> -->
1859
+                    
1890 1860
                       <tr style="line-height: 35px; padding: 8px 5px">
1891 1861
                         <td style="font-size: 16px" width="10%">时间</td>
1892 1862
                         <td style="font-size: 16px" colspan="2" width="45%">
@@ -1951,12 +1921,7 @@
1951 1921
                             >({{ advice.remark }})</span
1952 1922
                           >
1953 1923
                         </td>
1954
-                        <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
1955
-                      <span>{{advice.delivery_way}}</span>
1956
-                      <span>{{advice.execution_frequency}}</span>
1957
-                      <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
1958
-                    </td> -->
1959
-                        <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
1924
+                     
1960 1925
                         <td height="32px">
1961 1926
                           <span v-if="advice!=null && advice.advice_doctor>0">
1962 1927
                               <span
@@ -2108,6 +2073,225 @@
2108 2073
               </tr>
2109 2074
 
2110 2075
 
2076
+              <tr v-if="org_id==0 || org_id ==10206">
2077
+                <td style="padding: 0; position: relative" colspan="2">
2078
+                  <table class="inside_table">
2079
+                    <tbody>
2080
+                      <tr style="line-height: 35px; padding: 8px 5px">
2081
+                        <td
2082
+                          colspan="7"
2083
+                          style="
2084
+                            letter-spacing: 5px;
2085
+                            text-align: center;
2086
+                            font-weight: 520;
2087
+                            font-size: 16px;
2088
+                            padding: 0px 8px;
2089
+                            line-height: 30px;
2090
+                          "
2091
+                        >
2092
+                          医嘱内容
2093
+                        </td>
2094
+                      </tr>
2095
+                    
2096
+                      <tr style="line-height: 35px; padding: 8px 5px">
2097
+                        <td style="font-size: 16px" width="10%">时间</td>
2098
+                        <td style="font-size: 16px" colspan="2" width="45%">
2099
+                          医嘱内容
2100
+                        </td>
2101
+                        <td style="font-size: 16px" width="10%">医生签名</td>
2102
+                      
2103
+                        <td style="font-size: 16px" width="10%">执行人签名</td>
2104
+                        <td style="font-size: 16px" width="10%" v-if="org_id == 10598">核对护士</td>
2105
+                        <td style="font-size: 16px" width="10%">时间</td>
2106
+                        <td
2107
+                          style="font-size: 16px"
2108
+                          width="10%"
2109
+                          v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || 
2110
+                                org_id ==10375 || org_id ==10571 || org_id ==10600 || org_id==10206" 
2111
+                        >
2112
+                          核对护士
2113
+                        </td>
2114
+                      </tr>
2115
+                     
2116
+                      <tr
2117
+                        v-for="(advice, advice_index) in new_doctor_advice_list"
2118
+                        :key="advice_index"
2119
+                      >
2120
+                        <td height="32px">
2121
+                          <span v-if="advice.start_time">
2122
+                            {{ getTime(advice.start_time, "{h}:{i}") }}
2123
+                          </span>
2124
+                        
2125
+                        </td>
2126
+                        <td
2127
+                          height="32px"
2128
+                          colspan="2"
2129
+                          class="advice-name"
2130
+                          style="padding-left: 7px"
2131
+                        >
2132
+                         <span v-for="(it,i) in advice.child" :key="i">
2133
+                           <span v-if="it && it.advice_name">{{ it.advice_name}}</span>
2134
+                           <span v-if="it && it.advice_desc">({{ it.advice_desc}}{{ it.drug_spec_unit }})</span>
2135
+                           <span v-if="it.prescribing_number">{{ it.prescribing_number}}{{ it.prescribing_number_unit }}</span>
2136
+                           <span v-if="it.single_dose != 0">{{ it.single_dose}}{{ it.single_dose_unit }}</span>   
2137
+                           <span v-if="it && it.delivery_way">{{ it.delivery_way }}</span>
2138
+                           <span v-if="it && it.execution_frequency">{{ it.execution_frequency }}</span>
2139
+                           <span v-if="it&& it.remark">{{ it.remark }}</span>&nbsp;&nbsp;&nbsp;
2140
+
2141
+                         </span>
2142
+                        
2143
+                        
2144
+                         
2145
+                        </td>
2146
+                     
2147
+                        <td height="32px">
2148
+                          <span v-if="advice!=null && advice.advice_doctor>0">
2149
+                              <span
2150
+                              v-if="setAdminUserES(advice.advice_doctor) == ''"
2151
+                              >{{ getAdminUser(advice.advice_doctor) }}
2152
+                            </span>
2153
+                            <img
2154
+                              style="height: 30px"
2155
+                              :src="setAdminUserES(advice.advice_doctor)"
2156
+                              alt=""
2157
+                              srcset=""
2158
+                              v-else
2159
+                            />
2160
+                          </span>
2161
+
2162
+                        </td>
2163
+                       
2164
+                        <td height="32px">
2165
+                          <span v-if="advice!=null && advice.execution_staff>0">
2166
+                            <span
2167
+                              v-if="setAdminUserES(advice.execution_staff) == ''"
2168
+                              >{{ getAdminUser(advice.execution_staff) }}</span
2169
+                            >
2170
+                            <img
2171
+                              style="height: 30px"
2172
+                              :src="setAdminUserES(advice.execution_staff)"
2173
+                              alt=""
2174
+                              srcset=""
2175
+                              v-else
2176
+                            />
2177
+                        </span>
2178
+                        </td>
2179
+                        <td v-if="org_id == 10598">
2180
+                          <span v-if="advice!=null && advice.checker>0">
2181
+                              <span v-if="setAdminUserES(advice.checker) == ''">{{ getAdminUser(advice.checker)}}</span>
2182
+                              <img
2183
+                                style="height: 30px"
2184
+                                :src="setAdminUserES(advice.checker)"
2185
+                                alt=""
2186
+                                srcset=""
2187
+                                v-else
2188
+                              />
2189
+                          </span>
2190
+                        </td>
2191
+                        <td height="32px">
2192
+                          <span v-if="advice.execution_time">{{
2193
+                            getTime(advice.execution_time, "{h}:{i}")
2194
+                          }}</span>
2195
+                        </td>
2196
+                        <td height="32px" v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || 
2197
+                            org_id ==10375 || org_id ==10571 || org_id ==10600 ">
2198
+                          <span v-if="advice!=null && advice.checker>0">
2199
+                            <span v-if="setAdminUserES(advice.checker) == ''">{{ getAdminUser(advice.checker)}}</span>
2200
+                            <img
2201
+                              style="height: 30px"
2202
+                              :src="setAdminUserES(advice.checker)"
2203
+                              alt=""
2204
+                              srcset=""
2205
+                              v-else
2206
+                            />
2207
+                        </span>
2208
+                        </td>
2209
+                      </tr>
2210
+                      <!-- </template> -->
2211
+
2212
+
2213
+                      <tr
2214
+                      v-if="org_id == 0 || org_id ==10206"
2215
+                      v-for="(advice, advice_index) in projectsOne"
2216
+                      :key="advice_index"
2217
+                    >
2218
+                      <td height="32px;padding:1px 1px" width="10%">
2219
+                        <span v-if="advice.start_time">
2220
+                          {{ getTime(advice.start_time, "{h}:{i}") }}
2221
+                        </span>
2222
+                      </td>
2223
+                        <td
2224
+                        colspan="2"
2225
+                        class="advice-name"
2226
+                        style="
2227
+                          letter-spacing: 5px;
2228
+                          text-align: center;
2229
+                          font-weight: 520;
2230
+                          font-size: 14px;
2231
+                          padding: 0px 8px;
2232
+                          line-height: 30px;
2233
+                          width: 200px;
2234
+
2235
+                        "
2236
+                        >
2237
+                          <span v-if="advice.type == 2"> {{advice && advice.project? advice.project.project_name: ""}} {{ advice.count }} {{ advice.unit }}</span>
2238
+                          <span v-if="advice.type == 3"> {{advice && advice.good_info? advice.good_info.good_name: ""}} {{ advice.count }} {{ advice.unit }}</span>
2239
+                        </td>
2240
+                      <td height="32px">
2241
+                        <span
2242
+                          v-if="setAdminUserES(advice.doctor) == ''"
2243
+                          >{{ getAdminUser(advice.doctor) }}</span
2244
+                        >
2245
+                        <img
2246
+                          style="height: 30px"
2247
+                          :src="setAdminUserES(advice.doctor)"
2248
+                          alt=""
2249
+                          srcset=""
2250
+                          v-else
2251
+                        />
2252
+                      </td>
2253
+                      <td height="32px">
2254
+                        <span
2255
+                          v-if="
2256
+                            setAdminUserES(advice.execution_staff) == ''
2257
+                          "
2258
+                          >{{
2259
+                            getAdminUser(advice.execution_staff)
2260
+                          }}</span
2261
+                        >
2262
+                        <img
2263
+                          style="height: 30px"
2264
+                          :src="setAdminUserES(advice.execution_staff)"
2265
+                          alt=""
2266
+                          srcset=""
2267
+                          v-else
2268
+                        />
2269
+                      </td>
2270
+                        <td height="32px">
2271
+                          <span v-if="advice.execution_time">{{
2272
+                            getTime(advice.execution_time, "{h}:{i}")
2273
+                          }}</span>
2274
+                        </td>
2275
+
2276
+                        <td height="32px">
2277
+                          <span v-if="setAdminUserES(advice.checker) == ''">{{
2278
+                            getAdminUser(advice.checker)
2279
+                          }}</span>
2280
+                          <img
2281
+                            style="height: 30px"
2282
+                            :src="setAdminUserES(advice.checker)"
2283
+                            alt=""
2284
+                            srcset=""
2285
+                            v-else
2286
+                          />
2287
+                        </td>
2288
+                      </tr>
2289
+                    </tbody>
2290
+                  </table>
2291
+                </td>
2292
+              </tr>
2293
+
2294
+
2111 2295
             </tbody>
2112 2296
           </table>
2113 2297
         </div>
@@ -2226,7 +2410,7 @@
2226 2410
           <div class="row" style="margin-bottom: 10px">
2227 2411
             <div class="inline_block">
2228 2412
               入科方式:
2229
-              <!--<check-box v-for="item, index in nutrition_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.nutrition == item.id?true:false"></check-box>-->
2413
+             
2230 2414
               <div
2231 2415
                 v-for="(item, index) in way_arr"
2232 2416
                 class="under_line"
@@ -2235,39 +2419,7 @@
2235 2419
               >
2236 2420
                 {{ item.name }}
2237 2421
               </div>
2238
-              <!--<div-->
2239
-              <!--class="under_line"-->
2240
-              <!--v-if="receiverTreatmentAccess.way == 0"-->
2241
-              <!--style="width: 180px;text-align: left"-->
2242
-              <!--&gt;</div>-->
2243
-              <!--<div-->
2244
-              <!--class="under_line"-->
2245
-              <!--v-if="receiverTreatmentAccess.way == 1"-->
2246
-              <!--style="width: 180px;text-align: left"-->
2247
-              <!--&gt;-->
2248
-              <!--步行-->
2249
-              <!--</div>-->
2250
-              <!--<div-->
2251
-              <!--class="under_line"-->
2252
-              <!--v-if="receiverTreatmentAccess.way == 2"-->
2253
-              <!--style="width: 180px;text-align: left"-->
2254
-              <!--&gt;-->
2255
-              <!--扶行-->
2256
-              <!--</div>-->
2257
-              <!--<div-->
2258
-              <!--class="under_line"-->
2259
-              <!--v-if="receiverTreatmentAccess.way == 3"-->
2260
-              <!--style="width: 180px;text-align: left"-->
2261
-              <!--&gt;-->
2262
-              <!--轮椅-->
2263
-              <!--</div>-->
2264
-              <!--<div-->
2265
-              <!--class="under_line"-->
2266
-              <!--v-if="receiverTreatmentAccess.way == 4"-->
2267
-              <!--style="width: 180px;text-align: left"-->
2268
-              <!--&gt;-->
2269
-              <!--平车-->
2270
-              <!--</div>-->
2422
+             
2271 2423
             </div>
2272 2424
             <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10460">
2273 2425
               诊断:
@@ -2305,17 +2457,14 @@
2305 2457
                     医嘱内容
2306 2458
                   </td>
2307 2459
                 </tr>
2308
-                <!-- <tr style="line-height:35px;padding:8px 5px;">
2309
-                <td colspan="4" style="font-size: 16px">开医嘱</td>
2310
-                <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
2311
-              </tr> -->
2460
+             
2312 2461
                 <tr style="line-height: 35px; padding: 8px 5px">
2313 2462
                   <td style="font-size: 16px" width="10%">时间</td>
2314 2463
                   <td style="font-size: 16px" colspan="2" width="45%">
2315 2464
                     医嘱内容
2316 2465
                   </td>
2317 2466
                   <td style="font-size: 16px" width="10%">医生签名</td>
2318
-                  <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
2467
+                 
2319 2468
                   <td style="font-size: 16px" width="10%">执行人签名</td>
2320 2469
                   <td style="font-size: 16px" width="10%" v-if="org_id == 10598">核对护士</td>
2321 2470
                   <td style="font-size: 16px" width="10%">时间</td>
@@ -2327,7 +2476,7 @@
2327 2476
                     核对护士
2328 2477
                   </td>
2329 2478
                 </tr>
2330
-                <!-- <template v-for="group in doctor_advices" > -->
2479
+               
2331 2480
                 <tr
2332 2481
                   v-for="(advice, advice_index) in doctor_advices_2"
2333 2482
                   :key="advice_index"
@@ -2336,7 +2485,7 @@
2336 2485
                     <span v-if="advice.start_time">
2337 2486
                       {{ getTime(advice.start_time, "{h}:{i}") }}
2338 2487
                     </span>
2339
-                    <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
2488
+                  
2340 2489
                   </td>
2341 2490
                   <td
2342 2491
                     height="32px"
@@ -2374,12 +2523,7 @@
2374 2523
                       >({{ advice.remark }})</span
2375 2524
                     >
2376 2525
                   </td>
2377
-                  <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
2378
-                  <span>{{advice.delivery_way}}</span>
2379
-                  <span>{{advice.execution_frequency}}</span>
2380
-                  <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
2381
-                </td> -->
2382
-                  <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
2526
+              
2383 2527
                   <td height="32px">
2384 2528
                     <span v-if="advice!=null && advice.advice_doctor>0">
2385 2529
                       <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{
@@ -2394,10 +2538,7 @@
2394 2538
                       />
2395 2539
                    </span>
2396 2540
                   </td>
2397
-                  <!-- <td height="35px">
2398
-                  <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
2399
-                  <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
2400
-                </td> -->
2541
+                
2401 2542
                   <td height="32px">
2402 2543
                     <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
2403 2544
                       getAdminUser(advice.execution_staff)
@@ -2565,38 +2706,7 @@
2565 2706
                       min
2566 2707
                     </div>
2567 2708
                   </div>
2568
-                  <!-- <div
2569
-                    class="row"
2570
-                    style="padding: 2px 0; line-height: 23px; display: flex"
2571
-                    v-if="org_id==9538 || org_id==9675"
2572
-                  >
2573
-                  <div class="inline_block" style="flex: 2.5">
2574
-                      KT/V:
2575
-                      <div
2576
-                        class="under_line"
2577
-                        style="
2578
-                          width: 170px;
2579
-                          text-align: center;
2580
-                          white-space: normal;
2581
-                        "
2582
-                      >
2583
-                        {{ afterdialysis.ktv ? afterdialysis.ktv : "/" }}
2584
-                      </div>
2585
-                    </div>
2586
-                     <div class="inline_block" style="flex: 2.5">
2587
-                      累积血容量:
2588
-                      <div
2589
-                        class="under_line"
2590
-                        style="
2591
-                          width: 170px;
2592
-                          text-align: center;
2593
-                          white-space: normal;
2594
-                        "
2595
-                      >
2596
-                        {{ afterdialysis.accumulated_blood_volume ? afterdialysis.accumulated_blood_volume : "/" }}
2597
-                      </div>
2598
-                    </div>
2599
-                  </div> -->
2709
+                 
2600 2710
                   <div
2601 2711
                     class="row"
2602 2712
                     style="padding: 2px 0; line-height: 23px; display: flex"
@@ -3384,7 +3494,7 @@
3384 3494
 
3385 3495
             </tbody>
3386 3496
           </table>
3387
-          <!-- <div  class="print-yema">1</div> -->
3497
+        
3388 3498
         </div>
3389 3499
       </div>
3390 3500
     </div>
@@ -3458,7 +3568,7 @@
3458 3568
                           医嘱内容
3459 3569
                         </td>
3460 3570
                         <td style="font-size: 16px" width="10%">医生签名</td>
3461
-                        <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
3571
+                       
3462 3572
                         <td style="font-size: 16px" width="10%">执行人签名</td>
3463 3573
                         <td style="font-size: 16px" width="10%">时间</td>
3464 3574
                         <td
@@ -3715,6 +3825,7 @@ export default {
3715 3825
       org_id: 0,
3716 3826
       projectsOne: [],
3717 3827
       schedule_date_one:"",
3828
+      new_doctor_advice_list:[]
3718 3829
     };
3719 3830
   },
3720 3831
   methods: {
@@ -4465,84 +4576,7 @@ export default {
4465 4576
           this.doctor_advices[index]["isShow"] = 2;
4466 4577
         }
4467 4578
 
4468
-        // if (this.doctor_advices.length > 0) {
4469
-        //   var group = this.newAdviceGroupObject()
4470
-        //   var initGroupBlock = function(group, advice) {
4471
-        //     group.group_no = advice.groupno
4472
-        //   }
4473
-        //   for (let index = this.doctor_advices.length - 1; index >= 0; index--) {
4474
-        //     var new_advice_index = 0
4475
-
4476
-        //     if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
4477
-        //       new_advice_index = index + this.doctor_advices[index].children.length + 1
4478
-
4479
-        //       var doctor_advice = {
4480
-        //         delivery_way: this.doctor_advices[index].delivery_way,
4481
-        //         execution_frequency: this.doctor_advices[index].execution_frequency,
4482
-        //         groupno: this.doctor_advices[index].groupno,
4483
-        //         id: this.doctor_advices[index].id,
4484
-        //         parent_id: this.doctor_advices[index].parent_id,
4485
-        //         children: this.doctor_advices[index].children,
4486
-        //         remark: this.doctor_advices[index].remark,
4487
-        //         execution_staff: this.doctor_advices[index].execution_staff,
4488
-        //         checker: this.doctor_advices[index].checker,
4489
-        //         execution_time: this.doctor_advices[index].execution_time,
4490
-        //         advice_doctor: this.doctor_advices[index].advice_doctor
4491
-
4492
-        //       }
4493
-        //       doctor_advice['isShow'] = 1
4494
-        //       this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
4495
-        //       // this.doctor_advices.push(doctor_advice)
4496
-        //     }
4497
-        //   }
4498
-
4499
-        //   for (let index = 0; index < this.doctor_advices.length; index++) {
4500
-        //     const advice = this.doctor_advices[index]
4501
-        //     if (advice.groupno == 0) {
4502
-        //       // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
4503
-        //       if (advice.parent_id > 0) {
4504
-        //         if (this.advice_groups.length > 0) {
4505
-        //           var parent_group = this.advice_groups[
4506
-        //             this.advice_groups.length - 1
4507
-        //           ]
4508
-        //           if (parent_group.advices.length > 0) {
4509
-        //             if (parent_group.advices[0].id == advice.parent_id) {
4510
-        //               parent_group.advices.push(advice)
4511
-        //             }
4512
-        //           }
4513
-        //         }
4514
-        //         continue
4515
-        //       } else {
4516
-        //         if (group.group_no > 0) {
4517
-        //           this.advice_groups.push(group)
4518
-        //           group = this.newAdviceGroupObject()
4519
-        //         }
4520
-
4521
-        //         initGroupBlock(group, advice)
4522
-        //         group.advices.push(advice)
4523
-        //         this.advice_groups.push(group)
4524
-        //         group = this.newAdviceGroupObject()
4525
-        //         continue
4526
-        //       }
4527
-        //     }
4528
-
4529
-        //     if (group.group_no > 0 && group.group_no != advice.groupno) {
4530
-        //       this.advice_groups.push(group)
4531
-        //       group = this.newAdviceGroupObject()
4532
-        //     }
4533
-        //     if (group.group_no == 0) {
4534
-        //       initGroupBlock(group, advice)
4535
-        //     }
4536
-        //     if (group.group_no == advice.groupno) {
4537
-        //       group.advices.push(advice)
4538
-        //     }
4539
-        //   }
4540
-
4541
-        //   if (group.group_no > 0) {
4542
-        //     // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
4543
-        //    this.advice_groups.push(group)
4544
-        //   }
4545
-        // }
4579
+        
4546 4580
 
4547 4581
         if(this.org_id== 0 || this.org_id ==10206){
4548 4582
           let projectsOne = [];
@@ -4558,13 +4592,13 @@ export default {
4558 4592
 
4559 4593
 
4560 4594
         console.log("RESWOOWOWWOOW",response.data.data.doctorAdevieInfo)
4561
-        if(this.org_id ==10515  || this.org_id == 10510 || this.org_id ==10567 ){
4595
+        if(this.org_id ==10515  || this.org_id == 10510 || this.org_id ==10567 || this.org_id == 10489){
4562 4596
           if(response.data.data.doctorAdevieInfo!=null && response.data.data.doctorAdevieInfo.length>0){
4563 4597
 
4564 4598
             for(let i=0;i<response.data.data.doctorAdevieInfo.length;i++){
4565 4599
               this.doctor_advices.push(response.data.data.doctorAdevieInfo[i])
4566 4600
               console.log("寄哪里 222")
4567
-              // this.doctor_advices_2.push(response.data.data.doctorAdevieInfo[i])
4601
+              
4568 4602
             }
4569 4603
          }
4570 4604
 
@@ -4581,7 +4615,7 @@ export default {
4581 4615
 
4582 4616
         console.log("this.projects", this.projects);
4583 4617
 
4584
-        // var objProject = {advice_name:"",start_time:"",single_dose:"",single_dose_unit:"",}
4618
+      
4585 4619
 
4586 4620
         if(this.org_id!=10510 && this.org_id!=0&&this.org_id!=10206){
4587 4621
             if(this.projects!=null && this.projects.length >0){
@@ -4628,6 +4662,74 @@ export default {
4628 4662
         }
4629 4663
 
4630 4664
         console.log("时间我我我哦我我",this.doctor_advices)
4665
+        
4666
+        //针对内蒙古阿拉善
4667
+        if(this.org_id == 0 || this.org_id ==10206){
4668
+           
4669
+          if(this.doctor_advices!=null && this.doctor_advices.length > 0){
4670
+             
4671
+            for(let i=0;i<this.doctor_advices.length;i++){
4672
+              this.doctor_advices[i].new_groupno = ""
4673
+               this.doctor_advices[i].new_groupno = this.doctor_advices[i].prescription_id + "_" + this.doctor_advices[i].groupno
4674
+
4675
+                let objInfo = {}
4676
+                this.doctor_advices.forEach((item,index)=>{
4677
+                  let { new_groupno } = item
4678
+                  if(!objInfo[new_groupno]){
4679
+                    objInfo[new_groupno] = {
4680
+                      new_groupno,
4681
+                      child:[],
4682
+                      start_time:item.start_time,
4683
+                      advice_doctor:item.advice_doctor,
4684
+                      advice_name:item.advice_name,
4685
+                      check_time:item.check_time,
4686
+                      checker:item.checker,
4687
+                      delivery_way:item.delivery_way,
4688
+                      execution_frequency:item.execution_frequency,
4689
+                      execution_staff:item.execution_staff,
4690
+                      execution_state:item.execution_state,
4691
+                      execution_time:item.execution_time,
4692
+                      frequency_type:item.frequency_type,
4693
+                      new_groupno:item.new_groupno,
4694
+                      advice_desc:item.advice_desc,
4695
+                      drug_spec_unit:item.drug_spec_unit,
4696
+                      prescribing_number:item.prescribing_number,
4697
+                      prescribing_number_unit:item.prescribing_number_unit,
4698
+                      single_dose:item.single_dose,
4699
+                      single_dose_unit:item.single_dose_unit,
4700
+                      parent_id:item.parent_id,
4701
+                      remark:item.remark,
4702
+                    
4703
+                    }
4704
+                  }
4705
+                })
4706
+                let newArr = Object.values(objInfo);
4707
+             
4708
+
4709
+                if(newArr!=null && newArr.length >0){
4710
+                  for(let i=0;i<newArr.length;i++){
4711
+                    for(let j=0;j<this.doctor_advices.length;j++){
4712
+                       if(newArr[i].new_groupno == this.doctor_advices[j].new_groupno){
4713
+                          newArr[i].child.push(this.doctor_advices[j])
4714
+                       }
4715
+                    }
4716
+                  }
4717
+                }
4718
+
4719
+                console.log("newArrwowoow",newArr)
4720
+
4721
+              this.new_doctor_advice_list = []
4722
+              this.new_doctor_advice_list.push(...newArr)
4723
+
4724
+              console.log("newArrwowoow",this.new_doctor_advice_list)
4725
+            }
4726
+          }
4727
+        } 
4728
+
4729
+        console.log("新时间我哦我哦",this.doctor_advices)
4730
+
4731
+
4732
+        //过滤口服药
4631 4733
         if(this.org_id == 10265){
4632 4734
           var docArr = []
4633 4735
           if(this.doctor_advices!=null && this.doctor_advices.length>0){
@@ -4657,21 +4759,7 @@ export default {
4657 4759
               }
4658 4760
             }
4659 4761
           }
4660
-        // if (this.doctor_advices.length <= 6) {
4661
-        //   var nl = 6;
4662
-        //   this.print_length = 6;
4663
-
4664
-        //   for (let index = 0; index < nl; index++) {
4665
-        //     if (
4666
-        //       this.doctor_advices[index] == undefined ||
4667
-        //       this.doctor_advices[index].length <= 0
4668
-        //     ) {
4669
-        //       this.doctor_advices.push([]);
4670
-        //     } else {
4671
-        //       continue;
4672
-        //     }
4673
-        //   }
4674
-        // }
4762
+       
4675 4763
 
4676 4764
         this.totollength = this.doctor_advices.length + this.monitors.length;
4677 4765
         console.log("this.totollength",this.totollength)

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyTwo.vue Voir le fichier

@@ -277,7 +277,7 @@
277 277
                       &nbsp;
278 278
                       <label-box :isChecked="predialysis.internal_fistula.indexOf('震颤-减弱') > -1 ? true : false" showValue="减弱"></label-box>
279 279
                       &nbsp;
280
-                      <label-box :isChecked="predialysis.internal_fistula.indexOf('震颤-无') > -1 ? true : false" showValue="不存在"></label-box>
280
+                      <label-box :isChecked="(predialysis.internal_fistula.indexOf('震颤-无') > -1 || predialysis.internal_fistula.indexOf('不存在') > -1) ? true : false" showValue="不存在"></label-box>
281 281
                     </div>
282 282
                   </td>
283 283
                   <td width="30"></td>

+ 15 - 9
src/xt_pages/stock/drugs/drugStockOutOrder.vue Voir le fichier

@@ -344,16 +344,22 @@
344 344
             <template slot-scope="scope">
345 345
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
346 346
                   <td style="border-right: none; border-inline-end: none;text-align: center">
347
-                    <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span> 
348
-                    <span v-if="is_sys == 0">
349
-                      <span v-if="scope.row.child.length == 1">
350
-                         {{getPriceTwo(item.warehouse_out_id,item.drug_id)}}
351
-                      </span>
352
-                      <span v-if="scope.row.child.length > 1">
353
-                          {{item.price}}
347
+                    <span v-if="org_id!=0 && org_id!=10480 && org_id!=10210&&org_id!=10188 && org_id!=10217">
348
+                      <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span> 
349
+                      <span v-if="is_sys == 0">
350
+                        <span v-if="scope.row.child.length == 1">
351
+                          {{getPriceTwo(item.warehouse_out_id,item.drug_id)}}
352
+                        </span>
353
+                        <span v-if="scope.row.child.length > 1">
354
+                            {{item.price}}
355
+                        </span>
356
+                      
354 357
                       </span>
355
-                    
356 358
                     </span>
359
+                    <span v-if="org_id==0 || org_id ==10480 || org_id==10210 || org_id ==10188 || org_id ==10217">
360
+                        {{ scope.row.min_price }}
361
+                    </span>
362
+                    
357 363
                   </td>
358 364
                </tr>
359 365
             </template>
@@ -373,7 +379,7 @@
373 379
 
374 380
                     <span v-if="org_id==0 || org_id ==10480 || org_id==10210 || org_id ==10188 || org_id ==10217">
375 381
                       <!-- {{(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>  
382
+                     <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)*scope.row.min_price).toFixed(2)}}</span>  
377 383
                      <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>
378 384
                     </span>
379 385