瀏覽代碼

新分支

28169 6 月之前
父節點
當前提交
6485da9d38

+ 28 - 0
src/api/new_stock/stock.js 查看文件

@@ -16,3 +16,31 @@ export function GetDrugChangeStock(params) {
16 16
 
17 17
   })
18 18
 }
19
+
20
+
21
+export function getHisDrugCodeQueryList(params){
22
+
23
+  return request({
24
+    url:"/api/drug/gethisdrugcodequery",
25
+    method:"get",
26
+    params:params
27
+  })
28
+}
29
+
30
+export function createUploadDrugCode(params){
31
+ 
32
+  return request({
33
+    url:"/api/drug/createuploaddrugcode",
34
+    method:"get",
35
+    params:params,
36
+  })
37
+}
38
+
39
+export function getPatientDrugCode(params){
40
+ 
41
+  return request({
42
+    url:"/api/drug/getpatientdrugcode",
43
+    method:"Get",
44
+    params:params,
45
+  })
46
+}

+ 11 - 1
src/router/modules/hisTool.js 查看文件

@@ -101,7 +101,7 @@ export default {
101 101
     //   component: () => import('@/xt_pages/outpatientTool/fapiao'),
102 102
     //   name: 'faPiao',
103 103
     //   meta: { title: 'faPiao', noCache: true }
104
-    // }, 
104
+    // },
105 105
     {
106 106
       path: '/hisTool/yidiClear',
107 107
       component: () => import('@/xt_pages/outpatientTool/yidiClear'),
@@ -203,6 +203,16 @@ export default {
203 203
             noCache: true
204 204
           },
205 205
         },
206
+        //药品查询
207
+        {
208
+          path: '/outpatientTool/drugCodeQuery',
209
+          component: () => import('@/xt_pages/outpatientTool/drugCodeQuery'),
210
+          name: 'drugCodeQuery',
211
+          meta: {
212
+            title: '药品追溯',
213
+            noCache: true
214
+          },
215
+        },
206 216
     // {
207 217
     //   path: '/fapiao/settle',
208 218
     //   component: () => import('@/xt_pages/fapiao/settleDetail'),

+ 16 - 2
src/xt_pages/Pharmacy/PatientDispensing.vue 查看文件

@@ -265,6 +265,11 @@
265 265
           <el-radio v-model="is_open" label="1">是</el-radio>
266 266
           <el-radio v-model="is_open" label="2">否</el-radio>
267 267
         </span>
268
+        <span style="font-size: 17px">请选择是否发药时上传追溯码</span>
269
+        <span style="display: block; padding: 18px 25px">
270
+          <el-radio v-model="is_drug_open" label="1">是</el-radio>
271
+          <el-radio v-model="is_drug_open" label="2">否</el-radio>
272
+        </span>
268 273
         <div
269 274
           style="
270 275
             height: 50px;
@@ -301,6 +306,8 @@
301 306
         <el-button type="primary" @click="saveTextArea()">确 定</el-button>
302 307
       </span>
303 308
       </el-dialog>
309
+
310
+
304 311
     </div>
305 312
 
306 313
     <patient-print
@@ -388,7 +395,9 @@ export default {
388 395
       drug_code:0,
389 396
       currentRow:{},
390 397
       currentIndex:0,
391
-
398
+      is_drug_open:"2",
399
+      textarea:"",
400
+    
392 401
     };
393 402
   },
394 403
   watch: {},
@@ -760,12 +769,15 @@ export default {
760 769
           this.dialogVisible = true;
761 770
           var config = response.data.data.config;
762 771
           this.is_open = config.is_open.toString();
772
+          var codeConfig = response.data.data.codeConfig
773
+          this.is_drug_open = codeConfig.is_open.toString()
763 774
         }
764 775
       });
765 776
     },
766 777
     SaveSetting() {
767 778
       var params = {
768 779
         is_open: parseInt(this.is_open),
780
+        is_drug_open:parseInt(this.is_drug_open)
769 781
       };
770 782
       SaveSetting(params).then((response) => {
771 783
         if (response.data.state == 1) {
@@ -875,7 +887,9 @@ export default {
875 887
       }
876 888
    
877 889
 
878
-    }
890
+    },
891
+    
892
+    
879 893
   },
880 894
 };
881 895
 </script>

+ 34 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_eighty.vue 查看文件

@@ -843,6 +843,40 @@
843 843
                             </td>
844 844
                           </tr>
845 845
                         </template>
846
+
847
+                        <tr v-for="(advice, advice_index) in record.his_project" :key="advice_index" v-if="org_id == 0 || org_id ==10206">
848
+                        <td height="32px;padding:1px 1px">
849
+                            <span v-if="advice.start_time">
850
+                                {{ getTime(advice.start_time, "{h}:{i}") }}
851
+                            </span>
852
+                        </td>
853
+                        <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;">
854
+                            <span style="padding-left:5px;display:inline-block;">
855
+                              <span v-if="advice.type ==2">{{ advice && advice.project ? advice.project.project_name : '' }} {{ advice.count }} {{ advice.unit }}</span>
856
+                              <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>
857
+                            </span>
858
+                        </td>
859
+
860
+                        <td height="32px">
861
+                            <span v-if="setAdminUserES(advice, 'doctor') == ''">
862
+                                {{getAdminUser(advice, 'doctor')}}
863
+                            </span>
864
+                            <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
865
+                                <img style="height:30px;" :src="setAdminUserES(advice, 'doctor')" alt srcset />
866
+                            </span>
867
+                        </td>
868
+                        <td height="32px">
869
+                            <span v-if="setAdminUserES(advice, 'execution_staff') == ''">
870
+                                {{getAdminUser(advice, 'execution_staff')}}
871
+                            </span>
872
+                            <span v-else>
873
+                                <img style="height:30px;" :src="setAdminUserES(advice, 'execution_staff')" alt srcset />
874
+                            </span>
875
+                        </td>
876
+                        <td height="32px">
877
+                            <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
878
+                        </td>
879
+                        </tr>
846 880
                       </tbody>
847 881
                     </table>
848 882
                   </td>

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue 查看文件

@@ -941,7 +941,7 @@
941 941
                             record.prescription &&
942 942
                             record.prescription.displace_liqui_value
943 943
                               ? record.prescription.displace_liqui_value
944
-                              : "/"
944
+                              : "0"
945 945
                           }}
946 946
                           </span>
947 947
                         </div>

+ 43 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyFive.vue 查看文件

@@ -1147,6 +1147,42 @@
1147 1147
                             <span v-if="record.prescription.anticoagulant == 7"
1148 1148
                               >&nbsp;低分子肝素钠</span
1149 1149
                             >
1150
+                            <span v-if="record.prescription.anticoagulant == 8"
1151
+                              >&nbsp;依诺肝素</span
1152
+                            >
1153
+                            <span v-if="record.prescription.anticoagulant == 9"
1154
+                              >&nbsp;达肝素</span
1155
+                            >
1156
+                            <span v-if="record.prescription.anticoagulant == 10"
1157
+                              >&nbsp;体外抗凝</span
1158
+                            >
1159
+                            <span v-if="record.prescription.anticoagulant == 11"
1160
+                              >&nbsp;那屈肝素</span
1161
+                            >
1162
+                            <span v-if="record.prescription.anticoagulant == 12"
1163
+                              >&nbsp;无抗凝剂</span
1164
+                            >
1165
+                            <span v-if="record.prescription.anticoagulant == 13"
1166
+                              >&nbsp;那屈肝素钙</span
1167
+                            >
1168
+                            <span v-if="record.prescription.anticoagulant == 14"
1169
+                              >&nbsp;肝素钙注射液</span
1170
+                            >
1171
+                            <span v-if="record.prescription.anticoagulant == 15"
1172
+                              >&nbsp;甲磺酸萘莫司他</span
1173
+                            >
1174
+                            <span v-if="record.prescription.anticoagulant == 16"
1175
+                              >&nbsp;低分子量肝素钙</span
1176
+                            >
1177
+                            <span v-if="record.prescription.anticoagulant == 17"
1178
+                              >&nbsp;肝素钠</span
1179
+                            >
1180
+                            <span v-if="record.prescription.anticoagulant == 18"
1181
+                              >&nbsp;贝米肝素钠注射液</span
1182
+                            >
1183
+                            <span v-if="record.prescription.anticoagulant == 19"
1184
+                              >&nbsp;低分子量肝素钠</span
1185
+                            >
1150 1186
                           </div>
1151 1187
                         </div>
1152 1188
                         <div class="inline_block" style="margin-left: 20px">
@@ -1162,7 +1198,7 @@
1162 1198
                                 : "/"
1163 1199
                             }}
1164 1200
                           </div>
1165
-                          <span v-if="record.prescription.anticoagulant == 4"
1201
+                          <span v-if="record.prescription.anticoagulant == 4 || record.prescription.anticoagulant == 15"
1166 1202
                             >mg</span
1167 1203
                           >
1168 1204
                           <span v-if="record.prescription.anticoagulant == 3"
@@ -1207,6 +1243,9 @@
1207 1243
                                 : 0
1208 1244
                             }}
1209 1245
                           </div>
1246
+                          <span v-if="record.prescription.anticoagulant == 15"
1247
+                            >mg/h</span
1248
+                          >
1210 1249
                           <span v-if="record.prescription.anticoagulant == 5"
1211 1250
                             >ml/h</span
1212 1251
                           >
@@ -1236,6 +1275,9 @@
1236 1275
                                 : "/"
1237 1276
                             }}
1238 1277
                           </div>
1278
+                          <span v-if="record.prescription.anticoagulant == 15"
1279
+                            >mg</span
1280
+                          >
1239 1281
                           <span v-if="record.prescription.anticoagulant == 4"
1240 1282
                             >mg</span
1241 1283
                           >

+ 1 - 1
src/xt_pages/dialysis/bloodPresssWatch.vue 查看文件

@@ -1921,7 +1921,7 @@ export default {
1921 1921
           this.$message.error(response.data.msg);
1922 1922
           return false;
1923 1923
         } else {
1924
-          if(this.org_id ==10206){
1924
+          if(this.org_id ==10206 || this.org_id == 0){
1925 1925
             this.template_id = 80
1926 1926
             // this.template_id = 81
1927 1927
             console.log("templage-i233232323232322323233232323223",this.template_id)

+ 21 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue 查看文件

@@ -998,6 +998,14 @@
998 998
           type="primary"
999 999
           >打印</el-button
1000 1000
         >
1001
+        <el-button
1002
+            :loading="loading"
1003
+            size="small"
1004
+            icon="el-icon-printer"
1005
+            @click="printThisTwoPage"
1006
+            type="primary"
1007
+            >打印医嘱单</el-button
1008
+         >
1001 1009
         </div>
1002 1010
       </template>
1003 1011
       <template v-if="org_template_info.template_id == 81">
@@ -2606,6 +2614,15 @@ export default {
2606 2614
 
2607 2615
 
2608 2616
       }
2617
+
2618
+      if(this.org_id == 0 || this.org_id == 10206){
2619
+        printJS({
2620
+          printable: "dialysis-print-box-1-2",
2621
+          type: "html",
2622
+          style: style2,
2623
+          scanStyles: false,
2624
+        });
2625
+      }
2609 2626
     },
2610 2627
 
2611 2628
     getNumber() {
@@ -2676,6 +2693,10 @@ export default {
2676 2693
             this.org_template_info = response.data.data.org_template_info;
2677 2694
             this.org_template_info.template_id= 80
2678 2695
           }
2696
+
2697
+          if(this.org_id == 0){
2698
+            this.org_template_info.template_id= 80
2699
+          }
2679 2700
           console.log('kkkkkkk222222',this.org_template_info);
2680 2701
           this.loading = false;
2681 2702
           //   this.adminUser = response.data.data.users

+ 3 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue 查看文件

@@ -996,7 +996,7 @@
996 996
                         <span v-if="org_id!=10206&& org_id!=10510 && org_id!=0"> {{
997 997
                           prescription.displace_liqui_value
998 998
                             ? prescription.displace_liqui_value
999
-                            : "/"
999
+                            : "0"
1000 1000
                         }}
1001 1001
                         </span>
1002 1002
                       </div>
@@ -2232,12 +2232,11 @@
2232 2232
                             advice.execution_frequency
2233 2233
                           }}</span>
2234 2234
                           <span
2235
-                            v-if="
2236
-                              advice.parent_id == 0 && advice.remark.length > 0
2235
+                            v-if="advice.parent_id == 0 && advice.remark.length > 0 && org_id!=10644
2237 2236
                             "
2238 2237
                             >({{ advice.remark }})</span
2239 2238
                           >
2240
-                          <span v-if="org_id == 0 || org_id == 10644">({{ advice.remark }})</span>
2239
+                          <span v-if="(org_id == 0 || org_id == 10644) && advice.remark.length>0" >({{ advice.remark }})</span>
2241 2240
                         </td>
2242 2241
 
2243 2242
                         <td height="32px">

+ 4 - 4
src/xt_pages/dialysis/template/DialysisPrintOrdereighty.vue 查看文件

@@ -755,7 +755,7 @@
755 755
                         </td>
756 756
                       </tr>
757 757
 
758
-                      <!-- <tr
758
+                     <tr
759 759
                         v-for="(advice, advice_index) in projectsOne"
760 760
                         :key="advice_index"
761 761
                       >
@@ -814,7 +814,7 @@
814 814
                             getTime(advice.execution_time, "{h}:{i}")
815 815
                           }}</span>
816 816
                         </td>
817
-                      </tr> -->
817
+                      </tr> 
818 818
 
819 819
                     </tbody>
820 820
                   </table>
@@ -1378,9 +1378,9 @@
1378 1378
         </div>
1379 1379
       </div>
1380 1380
       <div class="row" style="margin-top: 15px">
1381
-        <div class="inline_block" style="">
1381
+        <div  style="">
1382 1382
           诊断:
1383
-          <div class="under_line" style="width:180px;text-align: left;white-space: normal;">
1383
+          <div class="under_line" style="width: 95%;text-align: left;white-space: normal;">
1384 1384
             {{ patientInfo.diagnose }}
1385 1385
           </div>
1386 1386
         </div>

+ 13 - 13
src/xt_permission.js 查看文件

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-    store.dispatch('VerifyConfigList', []).then(() => {
17
-      next()
18
-    })
19
-  }
20
-  if (store.getters.permission_routers === undefined) {
21
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-      next()
23
-    })
24
-  } else {
25
-    next()
26
-  }
27
-  return
15
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28 28
   // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))