Przeglądaj źródła

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 rok temu
rodzic
commit
36c50ec06c

+ 100 - 0
src/api/patient.js Wyświetl plik

@@ -812,4 +812,104 @@ export function getExportList(params){
812 812
     metod:"get",
813 813
     params:params,
814 814
   })
815
+}
816
+
817
+export function saveFallOutBedPrint(data){
818
+ 
819
+  return request({
820
+    url:"/api/patient/savefalloutbedprint",
821
+    method:"post",
822
+    data:data
823
+  })
824
+}
825
+
826
+export function getFallOutBedPrintList(params){
827
+
828
+  return request({
829
+    url:"/api/patient/getfalloutbedprintlist",
830
+    method:"get",
831
+    params:params
832
+  })
833
+}
834
+
835
+export function saveFilterInformed(data){
836
+ 
837
+  return request({
838
+    url:"/api/patient/savefilterinformed",
839
+    method:"post",
840
+    data:data,
841
+  })
842
+}
843
+
844
+export function getFilterInformed(params){
845
+  
846
+  return request({
847
+    url:"/api/patient/getfilterinformed",
848
+    method:"get",
849
+    params:params
850
+  })
851
+}
852
+
853
+export function saveProfundaInformed(data){
854
+  
855
+  return request({
856
+    url:"/api/patient/saveprofundainformed",
857
+    method:"post",
858
+    data:data
859
+  })
860
+}
861
+
862
+export function getProfundaInformed(params){
863
+  
864
+  return request({
865
+    url:"/api/patient/getprofundainformed",
866
+    method:"get",
867
+    params:params
868
+  })
869
+}
870
+
871
+export function saveArterOvenous(data){
872
+  
873
+  return request({
874
+    url:"/api/patient/arterovenous",
875
+    method:"post",
876
+    data:data,
877
+  })
878
+}
879
+
880
+export function getArterOvernous(params){
881
+
882
+  return request({
883
+    url:"/api/patient/getarterovernous",
884
+    method:"get",
885
+    params:params
886
+  })
887
+}
888
+
889
+
890
+export function saveHighriskInformed(data){
891
+  
892
+  return request({
893
+    url:"/api/patient/savehighrikinformed",
894
+    method:"post",
895
+    data:data,
896
+  })
897
+}
898
+
899
+export function getHighRiskInformed(params){
900
+  
901
+  return request({
902
+    url:"/api/patient/gethighriskinformed",
903
+    method:"get",
904
+    params:params
905
+  })
906
+}
907
+
908
+export function saveAnticoagulation(data){
909
+  
910
+  return request({
911
+    url:"/api/patient/saveanticoagulation",
912
+    method:"Get",
913
+    data:data
914
+  })
815 915
 }

+ 242 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Wyświetl plik

@@ -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>
@@ -1972,7 +1972,7 @@
1972 1972
                   </td>
1973 1973
                 </tr>
1974 1974
 
1975
-                 <tr v-if="org_id == 10402 || org_id == 10206">
1975
+                 <tr v-if="org_id == 10402">
1976 1976
                   <td style="padding: 0; position: relative" colspan="2">
1977 1977
                     <table class="inside_table">
1978 1978
                       <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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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 Wyświetl plik

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

+ 82 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Wyświetl plik

@@ -221,6 +221,13 @@
221 221
                                   type="primary"
222 222
                                 >读电子凭证
223 223
                                 </el-button>
224
+                                <el-button
225
+                                  v-if="(hisPatientInfo.id_card_type != 3  && hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0 && org_id == 10480)"
226
+                                  size="small"
227
+                                  @click="open(28,items.med_type,items.prescriptions[0].order,items.prescriptions)"
228
+                                  type="primary"
229
+                                >就医特殊属性上传
230
+                                </el-button>
224 231
 
225 232
                                 <el-button
226 233
                                   v-if="(hisPatientInfo.id_card_type != 3  && hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0 && org_id != 10340)"
@@ -3499,7 +3506,81 @@ export default {
3499 3506
           })
3500 3507
         }
3501 3508
 
3502
-      } else if (index == 9) {
3509
+      } else if (index == 28) {
3510
+        var ids = []
3511
+        for (let i = 0; i < prescriptions.length; i++) {
3512
+          ids.push(prescriptions[i].id)
3513
+        }
3514
+        var ids_str = ids.join(',')
3515
+        this.temp_ids = ids_str
3516
+        this.newLoading = true
3517
+        var that = this
3518
+        let form = {}
3519
+        form['id'] = this.patientInfo.id
3520
+        form['his_patient_id'] = this.hisPatientInfo.id
3521
+        form['record_time'] = this.record_date
3522
+        form['ids'] = this.temp_ids
3523
+        var time_arr = this.form.diagnosis_time.split(" ")
3524
+        let hh =  new Date().getHours() < 10
3525
+          ? "0" + new Date().getHours()
3526
+          : new Date().getHours();
3527
+        let mf =
3528
+          new Date().getMinutes() < 10
3529
+            ? "0" + new Date().getMinutes()
3530
+            : new Date().getMinutes();
3531
+        let ss =
3532
+          new Date().getSeconds() < 10
3533
+            ? "0" + new Date().getSeconds()
3534
+            : new Date().getSeconds();
3535
+        var new_time  = time_arr[0] + " " + hh+":"+mf+":"+ss
3536
+        form['begin_time'] = new_time
3537
+        form['p_type'] = med_type
3538
+        form['diagnosis'] = this.form.diagnosis.join(',')
3539
+        form['sick_type'] = this.form.sick_type
3540
+        form['admin_user_id'] = this.$store.getters.xt_user.user.id
3541
+        form['org_id'] = this.$store.getters.xt_user.org_id
3542
+        if (this.activeName == 'first') {
3543
+          form['settle_accounts_type'] = 1
3544
+        } else if (this.activeName == 'second') {
3545
+          form['start_time'] = this.other_start_time
3546
+          form['end_time'] = this.other_end_time
3547
+          form['settle_accounts_type'] = 2
3548
+        } else {
3549
+          form['start_time'] = this.other_start_time_two
3550
+          form['end_time'] = this.other_end_time_two
3551
+          form['settle_accounts_type'] = 2
3552
+        }
3553
+        axios.get('http://127.0.0.1:9532/api/2406', {
3554
+          params: form,
3555
+          headers: {
3556
+            'Permission': 5
3557
+          }
3558
+        })
3559
+          .then(function(response) {
3560
+            if (response.data.state == 0) {
3561
+              that.$message.error(response.data.msg)
3562
+              return false
3563
+            } else {
3564
+              if (response.data.data.failed_code == -10) {
3565
+                that.$confirm(response.data.data.msg, '医保错误信息', {
3566
+                  confirmButtonText: '确 定',
3567
+                  type: 'warning'
3568
+                }).then(() => {
3569
+                  that.changeRadioAndPatient(1)
3570
+                  that.newLoading = false
3571
+                }).catch(() => {
3572
+                  that.changeRadioAndPatient(1)
3573
+                  that.newLoading = false
3574
+                })
3575
+              } else {
3576
+                that.$message({ message: '上传成功', type: 'success', duration: 5000 })
3577
+              }
3578
+            }
3579
+          })
3580
+          .catch(function(error) {
3581
+            that.newLoading = false
3582
+          })
3583
+      }  else if (index == 9) {
3503 3584
         if (this.org_id == 10375 && this.hisPatientInfo.balance_accounts_type == 1){
3504 3585
           var that = this
3505 3586
           axios

+ 79 - 4
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue Wyświetl plik

@@ -1834,8 +1834,8 @@
1834 1834
                 }
1835 1835
                 //项目
1836 1836
                 for (let b = 0; b < prescription.project.length; b++) {
1837
-                  if(prescription.project!=null && (prescription.project[b].good_info.good_status.startsWith('停用') == false )) {
1838
-                    if (this.org_id == 10206 || this.org_id == 0) {
1837
+                  if(prescription.project[b].type == 2 && prescription.project[b].project.medical_status!=1){
1838
+                    if (this.org_id == 10206) {
1839 1839
                       let obj = {
1840 1840
                         id: prescription.project[b].id,
1841 1841
                         project_id: prescription.project[b].project_id,
@@ -1877,7 +1877,6 @@
1877 1877
                       }
1878 1878
                       tempProject.push(obj)
1879 1879
                     }else{
1880
-                      if( prescription.project[b].project.medical_status!=1){
1881 1880
                         let obj = {
1882 1881
                           id: prescription.project[b].id,
1883 1882
                           project_id: prescription.project[b].project_id,
@@ -1912,9 +1911,85 @@
1912 1911
                           obj['unit'] = prescription.project[b].good_info.packing_unit
1913 1912
                         }
1914 1913
                         tempProject.push(obj)
1914
+                    }
1915
+                  }else if(prescription.project[b].type == 3 && prescription.project[b].good_info.good_status.startsWith('停用') == false){
1916
+                    if (this.org_id == 10206 ) {
1917
+                      let obj = {
1918
+                        id: prescription.project[b].id,
1919
+                        project_id: prescription.project[b].project_id,
1920
+                        project_name: prescription.project[b].project.project_name,
1921
+                        statistical_classification: prescription.project[b].project.statistical_classification,
1922
+                        single_dose: prescription.project[b].single_dose,
1923
+                        delivery_way: prescription.project[b].delivery_way,
1924
+                        execution_frequency: prescription.project[b].execution_frequency,
1925
+                        number_days: prescription.project[b].day,
1926
+                        total: prescription.project[b].count.toString(),
1927
+                        price: prescription.project[b].price,
1928
+                        remark: prescription.project[b].remark,
1929
+                        medical_code: prescription.project[b].project.medical_code,
1930
+                        type: prescription.project[b].type,
1931
+                        frequency_type: prescription.project[b].frequency_type,
1932
+                        day_count: prescription.project[b].day_count,
1933
+                        week_day: prescription.project[b].week_day
1934
+
1915 1935
 
1916 1936
                       }
1917
-                    }
1937
+
1938
+                      if (prescription.project[b].type == 2) {
1939
+                        obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1940
+                        obj['medical_code'] = prescription.project[b].project.medical_code
1941
+                        obj['project_name'] = prescription.project[b].project.project_name
1942
+                        obj['project'] = prescription.project[b].project
1943
+                        obj['unit'] = prescription.project[b].unit
1944
+                        obj['number'] = ""
1945
+
1946
+
1947
+                      } else if (prescription.project[b].type == 3) {
1948
+                        obj['statistical_classification'] = ''
1949
+                        obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1950
+                        obj['project_name'] = prescription.project[b].good_info.good_name
1951
+                        obj['good_info'] = prescription.project[b].good_info
1952
+                        obj['unit'] = prescription.project[b].good_info.packing_unit
1953
+                        obj['number'] = prescription.project[b].good_info.good_number
1954
+
1955
+                      }
1956
+                      tempProject.push(obj)
1957
+                    }else{
1958
+                        let obj = {
1959
+                          id: prescription.project[b].id,
1960
+                          project_id: prescription.project[b].project_id,
1961
+                          project_name: prescription.project[b].project.project_name,
1962
+                          statistical_classification: prescription.project[b].project.statistical_classification,
1963
+                          single_dose: prescription.project[b].single_dose,
1964
+                          delivery_way: prescription.project[b].delivery_way,
1965
+                          execution_frequency: prescription.project[b].execution_frequency,
1966
+                          number_days: prescription.project[b].day,
1967
+                          total: prescription.project[b].count.toString(),
1968
+                          price: prescription.project[b].price,
1969
+                          remark: prescription.project[b].remark,
1970
+                          medical_code: prescription.project[b].project.medical_code,
1971
+                          type: prescription.project[b].type,
1972
+                          frequency_type: prescription.project[b].frequency_type,
1973
+                          day_count: prescription.project[b].day_count,
1974
+                          week_day: prescription.project[b].week_day
1975
+
1976
+                        }
1977
+
1978
+                        if (prescription.project[b].type == 2) {
1979
+                          obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1980
+                          obj['medical_code'] = prescription.project[b].project.medical_code
1981
+                          obj['project_name'] = prescription.project[b].project.project_name
1982
+                          obj['project'] = prescription.project[b].project
1983
+                          obj['unit'] = prescription.project[b].unit
1984
+                        } else if (prescription.project[b].type == 3) {
1985
+                          obj['statistical_classification'] = ''
1986
+                          obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1987
+                          obj['project_name'] = prescription.project[b].good_info.good_name
1988
+                          obj['good_info'] = prescription.project[b].good_info
1989
+                          obj['unit'] = prescription.project[b].good_info.packing_unit
1990
+                        }
1991
+                        tempProject.push(obj)
1992
+                      }
1918 1993
                   }
1919 1994
                 }
1920 1995
                 // var preTime = nowTime

+ 15 - 9
src/xt_pages/stock/drugs/drugStockOutOrder.vue Wyświetl plik

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

+ 65 - 7
src/xt_pages/user/Informed/Informedconsent.vue Wyświetl plik

@@ -14,7 +14,7 @@
14 14
                     prefix-icon="el-icon-search"
15 15
                     v-model="input2" style="width: 200px;">
16 16
                   </el-input>
17
-                  <!-- <el-button type="primary">查看图片</el-button> -->
17
+                  <el-button type="primary">查看图片</el-button>
18 18
                 </div>
19 19
                 <div>
20 20
                   <el-table
@@ -84,20 +84,20 @@
84 84
               </div>
85 85
               <div style="width: 67%; margin-left: 10px;">
86 86
                 <div v-if="face_show">
87
-                  <Falloutbedprint :patient_id ="this.patientID"></Falloutbedprint>
87
+                  <Falloutbedprint :patient_id ="this.patientID" :listPrint="listPrint"></Falloutbedprint>
88 88
                 </div>
89 89
                 <div v-if="filter_show">
90 90
                   <!-- filter_show -->
91
-                  <Filter_informed :patient_id ="this.patientID"></Filter_informed>
91
+                  <Filter_informed :patient_id ="this.patientID" :filterList="filterList" ></Filter_informed>
92 92
                 </div>
93 93
                 <div v-if="profunda_show">
94
-                  <profunda_informed :patient_id ="this.patientID"></profunda_informed>
94
+                  <profunda_informed :patient_id ="this.patientID" :profundaPrint="profundaPrint"></profunda_informed>
95 95
                 </div>
96 96
                 <div v-if="arteriovenous_show">
97
-                  <arteriovenous_informed :patient_id ="this.patientID"></arteriovenous_informed>
97
+                  <arteriovenous_informed :patient_id ="this.patientID" :arterOvenousPrint="arterOvenousPrint"></arteriovenous_informed>
98 98
                 </div>
99 99
                 <div v-if="Highrisk_show" >
100
-                  <Highrisk_informed :patient_id ="this.patientID"></Highrisk_informed>
100
+                  <Highrisk_informed :patient_id ="this.patientID" :highRiskPrint="highRiskPrint"></Highrisk_informed>
101 101
                 </div>
102 102
                 <div v-if="anticoagulation_show">
103 103
                   <anticoagulation_informed :patient_id ="this.patientID"></anticoagulation_informed>
@@ -145,7 +145,7 @@ import Bring_informed from './components/Bring_informed'//自带药物
145 145
 import catheterization_informed from './components/catheterization_informed'//深静脉导管置入
146 146
 import dialyzer_informed from './components/dialyzer_informed'//透析器(滤器)
147 147
 import therapy_informed from './components/therapy_informed'//透析器(滤过)治疗
148
-import { getPatientDetailInformedconsent,  } from '@/api/patient'
148
+import { getPatientDetailInformedconsent,getFallOutBedPrintList,getFilterInformed,getProfundaInformed,getArterOvernous,getHighRiskInformed  } from '@/api/patient'
149 149
 export default {
150 150
   
151 151
   components: {
@@ -188,6 +188,11 @@ export default {
188 188
       patient:{},
189 189
       tableData:[],
190 190
       input2:'',
191
+      listPrint:{},
192
+      filterList:{},
193
+      profundaPrint:{},
194
+      arterOvenousPrint:{},
195
+      highRiskPrint:{}
191 196
     }
192 197
 
193 198
   },
@@ -226,6 +231,8 @@ export default {
226 231
           this.catheterization_show=false,
227 232
           this.dialyzer_show=false,
228 233
           this.therapy_show=false
234
+
235
+        //  this.getFallOutBedPrintList()
229 236
         }
230 237
         if(row.value==2){
231 238
           this.filter_show=true
@@ -240,6 +247,7 @@ export default {
240 247
           this.catheterization_show=false,
241 248
           this.dialyzer_show=false,
242 249
           this.therapy_show=false
250
+         // this.getFilterInformed()
243 251
         }
244 252
         if(row.value==3){
245 253
           this.face_show=false
@@ -254,6 +262,7 @@ export default {
254 262
           this.catheterization_show=false,
255 263
           this.dialyzer_show=false,
256 264
           this.therapy_show=false
265
+          //this.getProfundaInformed()
257 266
         }
258 267
         if(row.value==4){
259 268
           this.filter_show=false
@@ -268,6 +277,7 @@ export default {
268 277
           this.catheterization_show=false,
269 278
           this.dialyzer_show=false,
270 279
           this.therapy_show=false
280
+         // this.getArterOvernous()
271 281
         }
272 282
         if(row.value==5){
273 283
           this.face_show=false
@@ -282,6 +292,7 @@ export default {
282 292
           this.catheterization_show=false,
283 293
           this.dialyzer_show=false,
284 294
           this.therapy_show=false
295
+         // this.getHighRiskInformed()
285 296
         }
286 297
         if(row.value==6){
287 298
           this.filter_show=false
@@ -296,6 +307,7 @@ export default {
296 307
           this.catheterization_show=false,
297 308
           this.dialyzer_show=false,
298 309
           this.therapy_show=false
310
+          
299 311
         }
300 312
         if(row.value==7){
301 313
           this.face_show=false
@@ -383,6 +395,52 @@ export default {
383 395
         }
384 396
   
385 397
     },
398
+    fMethod(){
399
+      console.log("除非富足到佛欧安抚")
400
+      this.getFallOutBedPrintList()
401
+    },
402
+    getFallOutBedPrintList(){
403
+      getFallOutBedPrintList().then(response=>{
404
+          if(response.data.state ==1){
405
+             var list = response.data.data.list
406
+             this.listPrint = list
407
+          }
408
+      })
409
+    },
410
+    getFilterInformed(){
411
+      getFilterInformed().then(response=>{
412
+         if(response.data.state == 1){
413
+          var list = response.data.data.list
414
+          this.filterList = list
415
+         }
416
+      })
417
+    },
418
+
419
+    getProfundaInformed(){
420
+      getProfundaInformed().then(response=>{
421
+         if(response.data.state ==1){
422
+          var list = response.data.data.list
423
+          this.profundaPrint = list
424
+          console.log("hhahhahah",this.profundaPrint)
425
+         }
426
+      })
427
+    },
428
+    getArterOvernous(){
429
+      getArterOvernous().then(response=>{
430
+         if(response.data.state ==1){
431
+           var list = response.data.data.list
432
+           this.arterOvenousPrint = list
433
+         }
434
+      })
435
+    },
436
+    getHighRiskInformed(){
437
+      getHighRiskInformed().then(response=>{
438
+        if(response.data.state ==1){
439
+          var list = response.data.data.list
440
+          this.highRiskPrint = list
441
+        }
442
+      })
443
+    }
386 444
   }
387 445
 }
388 446
 </script>

+ 26 - 4
src/xt_pages/user/Informed/components/Falloutbedprint.vue Wyświetl plik

@@ -110,7 +110,7 @@
110 110
           </div>
111 111
           <span slot="footer" class="dialog-footer">
112 112
             <el-button @click="dialogVisible = false">取 消</el-button>
113
-            <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
113
+            <el-button type="primary" @click="saveFallOutBedPrint">保 存</el-button>
114 114
           </span>
115 115
         </el-dialog>
116 116
     </div>
@@ -119,7 +119,7 @@
119 119
 <script>
120 120
 import print from "print-js";
121 121
 import Editor from '@/components/Editor'
122
-import { getPatientDetailInformedconsent  } from '@/api/patient'
122
+import { getPatientDetailInformedconsent,saveFallOutBedPrint  } from '@/api/patient'
123 123
 import { jsGetAge, uParseTime } from "@/utils/tools";
124 124
 const content=`<p style="font-size: 17px;font-weight: bold;padding-left: 2em;">请您仔细阅读以下内容,并自主决定是否使用人脸识别功能:</p>
125 125
 <p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
@@ -152,7 +152,10 @@ export default{
152 152
   props: {
153 153
     patient_id: {
154 154
         type: Number,
155
-      }
155
+    },
156
+    listPrint:{
157
+      type:Object,
158
+    }
156 159
    },
157 160
    components:{
158 161
     Editor
@@ -166,11 +169,15 @@ export default{
166 169
    },
167 170
 
168 171
    created(){
172
+     
173
+     if(this.listPrint!=null&& this.listPrint.id >0){
174
+       this.content =""
175
+       this.content = this.listPrint.content
176
+     }
169 177
      this.getlist()
170 178
    },
171 179
     methods:{
172 180
       getlist(){
173
-        console.log("owwwwwwwwwwwwwwwwwww",this.patient_id)
174 181
         getPatientDetailInformedconsent(this.patient_id).then(response=>{
175 182
           if(response.data.state == 1){
176 183
             var patient =  response.data.data.patients
@@ -212,6 +219,21 @@ export default{
212 219
       },
213 220
       bianji(){
214 221
         this.dialogVisible =true
222
+      },
223
+      saveFallOutBedPrint(){
224
+          var params = {
225
+            patient_id:this.patient_id,
226
+            content:this.$refs.editor.content,
227
+          }
228
+        console.log("paramswoowow",params)
229
+        saveFallOutBedPrint(params).then(response=>{
230
+           if(response.data.state ==1){
231
+              var list = response.data.data.list
232
+              this.$message.success("保存成功!")
233
+              this.$emit('fMethod',list);
234
+              this.dialogVisible = false
235
+           }
236
+        })
215 237
       }
216 238
     }
217 239
 }

+ 26 - 4
src/xt_pages/user/Informed/components/Filter_informed.vue Wyświetl plik

@@ -80,7 +80,7 @@
80 80
         </div>
81 81
         <span slot="footer" class="dialog-footer">
82 82
           <el-button @click="dialogVisible = false">取 消</el-button>
83
-          <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
83
+          <el-button type="primary" @click="saveFilterInformed">保 存</el-button>
84 84
         </span>
85 85
       </el-dialog>
86 86
 
@@ -90,7 +90,7 @@
90 90
 <script>
91 91
 import print from "print-js";
92 92
 import Editor from '@/components/Editor'
93
-import { getPatientDetailInformedconsent  } from '@/api/patient'
93
+import { getPatientDetailInformedconsent,saveFilterInformed  } from '@/api/patient'
94 94
 import { jsGetAge, uParseTime } from "@/utils/tools";
95 95
 const content=`<p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
96 96
   <span style='position: absolute;top: 0;left: 0;'>一、</span>血液透析是急性肾损伤和慢性肾功能衰竭的一种替代治疗方法:
@@ -208,7 +208,10 @@ export default{
208 208
   props: {
209 209
     patient_id: {
210 210
         type: Number,
211
-      }
211
+      },
212
+    filterList:{
213
+       type:Object,
214
+    }
212 215
    },
213 216
    components:{
214 217
     Editor
@@ -222,11 +225,17 @@ export default{
222 225
    },
223 226
 
224 227
    created(){
228
+    if(this.filterList!=null && this.filterList.id >0){
229
+      
230
+       this.content = ""
231
+       this.content = this.filterList.content
232
+     }
225 233
      this.getlist()
234
+     
226 235
    },
227 236
     methods:{
228 237
       getlist(){
229
-        console.log("owwwwwwwwwwwwwwwwwww",this.patient_id)
238
+     
230 239
         getPatientDetailInformedconsent(this.patient_id).then(response=>{
231 240
           if(response.data.state == 1){
232 241
             var patient =  response.data.data.patients
@@ -268,6 +277,19 @@ export default{
268 277
       },
269 278
       bianji(){
270 279
         this.dialogVisible=true
280
+      },
281
+      saveFilterInformed(){
282
+         var params = {
283
+          content:this.$refs.editor.content,
284
+         }
285
+         console.log("PARAMSWWPOWPW",params)
286
+        saveFilterInformed(params).then(response=>{
287
+          if(response.data.state ==1){
288
+            var informed = response.data.data.informed
289
+            this.$emit('fMethod',informed);
290
+            this.dialogVisible = false
291
+          }
292
+        })
271 293
       }
272 294
     }
273 295
 }

+ 24 - 3
src/xt_pages/user/Informed/components/Highrisk_informed.vue Wyświetl plik

@@ -83,7 +83,7 @@
83 83
           </div>
84 84
           <span slot="footer" class="dialog-footer">
85 85
             <el-button @click="dialogVisible = false">取 消</el-button>
86
-            <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
86
+            <el-button type="primary" @click="saveHighriskInformed">确 定</el-button>
87 87
           </span>
88 88
         </el-dialog>
89 89
     </div>
@@ -92,7 +92,7 @@
92 92
 <script>
93 93
 import print from "print-js";
94 94
 import Editor from '@/components/Editor'
95
-import { getPatientDetailInformedconsent  } from '@/api/patient'
95
+import { getPatientDetailInformedconsent,saveHighriskInformed  } from '@/api/patient'
96 96
 import { jsGetAge, uParseTime } from "@/utils/tools";
97 97
 const content=`<p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
98 98
   <span style='position: absolute;top: 0px;left: 0;'>一、</span>该知情同意书将向您介绍危重患者接受血液净化治疗选择相关事宜,你有权知道危重患者接受血液净化治疗存在的风险、预期效果及对人体等影响,请您仔细阅读,提出与治疗有关的任何疑问。决定是否同意对患者实施血液净化治疗。
@@ -150,7 +150,10 @@ export default{
150 150
   props: {
151 151
     patient_id: {
152 152
         type: Number,
153
-      }
153
+    },
154
+    highRiskPrint:{
155
+      type:Object,
156
+    }
154 157
    },
155 158
    components:{
156 159
     Editor
@@ -206,9 +209,27 @@ export default{
206 209
       },
207 210
       bianji(){
208 211
         this.dialogVisible=true
212
+      },
213
+      saveHighriskInformed(){
214
+          var params = {
215
+            content:this.$refs.editor.content
216
+          }
217
+        saveHighriskInformed(params).then(response=>{
218
+           if(response.data.state ==1){
219
+             var list = response.data.data.list
220
+             this.dialogVisible = false 
221
+             this.$message.success("保存成功!")
222
+           }
223
+           
224
+        })
209 225
       }
210 226
     },
211 227
     created(){
228
+      console.log("highRiskPrint",this.highRiskPrint)
229
+      if(this.highRiskPrint!=null && this.highRiskPrint.id >0){
230
+        this.content = ""
231
+        this.content = this.highRiskPrint.content
232
+      }
212 233
       this.getlist()
213 234
     }
214 235
 }

+ 14 - 2
src/xt_pages/user/Informed/components/anticoagulation_informed.vue Wyświetl plik

@@ -156,7 +156,7 @@
156 156
         </div>
157 157
         <span slot="footer" class="dialog-footer">
158 158
           <el-button @click="dialogVisible = false">取 消</el-button>
159
-          <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
159
+          <el-button type="primary" @click="saveAnticoagulation">确 定</el-button>
160 160
         </span>
161 161
       </el-dialog>
162 162
   </div>
@@ -165,7 +165,7 @@
165 165
 <script>
166 166
 import print from "print-js";
167 167
 import Editor from '@/components/Editor'
168
-import { getPatientDetailInformedconsent  } from '@/api/patient'
168
+import { getPatientDetailInformedconsent,saveAnticoagulation  } from '@/api/patient'
169 169
 import { jsGetAge, uParseTime } from "@/utils/tools";
170 170
 const content=`<p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
171 171
   <span style='position: absolute;top: 0px;left: 0;'>一、</span>该知情同意书将向您介绍抗凝溶栓治疗的相关事宜,您有权知道抗凝溶栓治疗的方法、目的、存在的风险、预期效果及对人体的影响。请您仔细阅读,提出与抗凝溶栓有关的任何疑问,决定是否同意对患者实施抗凝溶栓治疗。
@@ -294,6 +294,18 @@ export default{
294 294
       },
295 295
       bianji(){
296 296
         this.dialogVisible=true
297
+      },
298
+      saveAnticoagulation(){
299
+          var params = {
300
+            content:this.$refs.editor.content
301
+          }
302
+        saveAnticoagulation(params).then(response=>{
303
+            if(response.data.state ==1){
304
+              var list = response.data.data.list
305
+              this.$message.success("保存成功")
306
+              this.dialogVisible = false
307
+            }
308
+        })
297 309
       }
298 310
   },
299 311
   created(){

+ 24 - 3
src/xt_pages/user/Informed/components/arteriovenous_informed.vue Wyświetl plik

@@ -119,7 +119,7 @@
119 119
         </div>
120 120
         <span slot="footer" class="dialog-footer">
121 121
           <el-button @click="dialogVisible = false">取 消</el-button>
122
-          <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
122
+          <el-button type="primary" @click="saveArterOvenous">保 存</el-button>
123 123
         </span>
124 124
       </el-dialog>
125 125
   </div>
@@ -128,7 +128,7 @@
128 128
 <script>
129 129
 import print from "print-js";
130 130
 import Editor from '@/components/Editor'
131
-import { getPatientDetailInformedconsent  } from '@/api/patient'
131
+import { getPatientDetailInformedconsent,saveArterOvenous  } from '@/api/patient'
132 132
 import { jsGetAge, uParseTime } from "@/utils/tools";
133 133
 const content=`<p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
134 134
   <span style='position: absolute;top: 0px;left: 0;'>一、</span>经医生告知,本人因病情需要,须接受血液透析(滤过)治疗。需选择动静脉内瘘穿刺进行透析治疗。但由于该操作具有创伤性和风险性,因个体差异及某些不可预料的因素,穿刺及使用过程中可能会发生意外和并发症,现告知如下:
@@ -169,7 +169,10 @@ export default{
169 169
   props: {
170 170
     patient_id: {
171 171
         type: Number,
172
-      }
172
+      },
173
+    arterOvenousPrint:{
174
+      type:Object,
175
+    }
173 176
    },
174 177
    components:{
175 178
     Editor
@@ -182,6 +185,12 @@ export default{
182 185
     }
183 186
    },
184 187
   created(){
188
+    if(this.arterOvenousPrint!=null && this.arterOvenousPrint.id > 0){
189
+        
190
+      this.content = ""
191
+      this.content = this.arterOvenousPrint.content
192
+    }
193
+    
185 194
     this.getlist()
186 195
   },
187 196
   methods:{
@@ -227,6 +236,18 @@ export default{
227 236
     },
228 237
     bianji(){
229 238
       this.dialogVisible=true
239
+    },
240
+    saveArterOvenous(){
241
+       var params = {
242
+        content:this.$refs.editor.content
243
+       }
244
+      saveArterOvenous(params).then(response=>{
245
+         if(response.data.state == 1){
246
+            var list = response.data.data.list
247
+            this.$message.success("保存成功")
248
+            this.dialogVisible = false
249
+         }
250
+      })
230 251
     }
231 252
   }
232 253
 }

+ 27 - 5
src/xt_pages/user/Informed/components/profunda_informed.vue Wyświetl plik

@@ -78,7 +78,7 @@
78 78
         </div>
79 79
         <span slot="footer" class="dialog-footer">
80 80
           <el-button @click="dialogVisible = false">取 消</el-button>
81
-          <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
81
+          <el-button type="primary" @click="saveProfundaInformed">保 存</el-button>
82 82
         </span>
83 83
       </el-dialog>
84 84
   </div>
@@ -87,7 +87,7 @@
87 87
 <script>
88 88
 import print from "print-js";
89 89
 import Editor from '@/components/Editor'
90
-import { getPatientDetailInformedconsent  } from '@/api/patient'
90
+import { getPatientDetailInformedconsent,saveProfundaInformed  } from '@/api/patient'
91 91
 import { jsGetAge, uParseTime } from "@/utils/tools";
92 92
 const content=`<p style="margin-top: 10px;margin-bottom: 4px;text-align: justify;">拟进行治疗:深静脉透析导管拔管术</p>
93 93
 <p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
@@ -143,7 +143,10 @@ export default{
143 143
   props: {
144 144
     patient_id: {
145 145
         type: Number,
146
-      }
146
+      },
147
+      profundaPrint:{
148
+       type:Object,
149
+    }
147 150
    },
148 151
    components:{
149 152
     Editor
@@ -152,16 +155,23 @@ export default{
152 155
     return{
153 156
       patient:{},
154 157
       dialogVisible:false,
155
-      content:content
158
+      content:content,
159
+     
156 160
     }
157 161
    },
158 162
 
159 163
    created(){
164
+    console.log("HSHHSHSHHSH",this.profundaPrint)
165
+     if(this.profundaPrint!=null&&this.profundaPrint.id >0){
166
+        console.log("HSHHSHSHHSH")
167
+        this.content = ""
168
+        this.content = this.profundaPrint.content
169
+     }
160 170
      this.getlist()
161 171
    },
162 172
     methods:{
163 173
       getlist(){
164
-        console.log("owwwwwwwwwwwwwwwwwww",this.patient_id)
174
+       
165 175
         getPatientDetailInformedconsent(this.patient_id).then(response=>{
166 176
           if(response.data.state == 1){
167 177
             var patient =  response.data.data.patients
@@ -203,6 +213,18 @@ export default{
203 213
       },
204 214
       bianji(){
205 215
         this.dialogVisible=true
216
+      },
217
+      saveProfundaInformed(){
218
+         var params = {
219
+          content:this.$refs.editor.content,
220
+         }
221
+        saveProfundaInformed(params).then(response=>{
222
+            if(response.data.state ==1){
223
+              var list = response.data.data.list
224
+              this.$message.success("保存成功")
225
+              this.dialogVisible = false
226
+            }
227
+        })
206 228
       }
207 229
     }
208 230
 }