Browse Source

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

yq1 1 year ago
parent
commit
d52e891707

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue View File

@@ -1142,8 +1142,8 @@ export default {
1142 1142
           this.advices = tableAdvice;
1143 1143
         }
1144 1144
 
1145
-        // var arr = [] 
1146
-        // arr = this.unique(this.advices)
1145
+        var arr = [] 
1146
+        arr = this.unique(this.advices)
1147 1147
         // console.log("arriooowo",arr)
1148 1148
         // if(arr!=null && arr.length >0){
1149 1149
   

+ 6 - 6
src/xt_pages/management/components/PlanForm.vue View File

@@ -41,7 +41,7 @@
41 41
                 default-first-option
42 42
                 placeholder="请选择时间"
43 43
                 style="width: 135px;"
44
-               
44
+
45 45
               >
46 46
                 <el-option
47 47
                   v-for="item in this.timeType"
@@ -251,7 +251,7 @@ export default {
251 251
         { id: 1, name: "床单" },
252 252
         { id: 2, name: "被套" },
253 253
         { id: 3, name: "枕套" },
254
-      
254
+
255 255
       ],
256 256
       DeviceType: [],
257 257
       planid: 0,
@@ -272,7 +272,7 @@ export default {
272 272
       });
273 273
     },
274 274
     savePlan(formName) {
275
-      
275
+
276 276
       var equimentid = this.equimentid;
277 277
       // console.log('equimentid', equimentid);
278 278
       var devicetype = this.form.device_type;
@@ -300,7 +300,7 @@ export default {
300 300
           var msg = response.data.data.msg;
301 301
           // console.log('msg', msg);
302 302
           this.$message.success("保存成功");
303
-          
303
+
304 304
           this.dialogVisible = false;
305 305
           this.$refs['form'].resetFields()
306 306
           this.$emit("getAllPlan");
@@ -308,12 +308,12 @@ export default {
308 308
           // 如果保存成功通过状态值改变父组键表格的值
309 309
           this.plandata = 1;
310 310
           this.$emit("func", this.plandata);
311
-          
311
+
312 312
         } else {
313 313
           this.$message.error("该消毒计划已存在");
314 314
         }
315 315
       });
316
-      
316
+
317 317
     },
318 318
     getAllEquitType() {
319 319
       getAllEquitType().then(response => {

+ 67 - 31
src/xt_pages/outpatientCharges/summary.vue View File

@@ -283,10 +283,11 @@
283 283
               size="mini"
284 284
               type="primary"
285 285
               @click="confirmUploadInfo(scope.row)"
286
-              v-if="$store.getters.xt_user.org_id == 10265"
286
+              v-if="$store.getters.xt_user.org_id == 10265 || $store.getters.xt_user.org_id == 10191"
287 287
             >
288 288
               确认结算清单
289 289
             </el-button>
290
+
290 291
             <el-button
291 292
               size="mini"
292 293
               type="primary"
@@ -848,37 +849,72 @@ export default {
848 849
     },
849 850
     confirmUploadInfo(row){
850 851
       var that = this;
851
-      axios
852
-        .get("http://127.0.0.1:9532/api/4102", {
853
-          params: {
854
-            order_id: row.id,
855
-            admin_user_id: this.$store.getters.xt_user.user.id,
856
-            stas_type: 1
857
-          },
858
-        })
859
-        .then(function (response) {
860
-          if (response.data.state == 0) {
861
-            that.$message.error(response.data.msg);
862
-            return false;
863
-          } else {
864
-            if (response.data.data.failed_code == -10) {
865
-              that
866
-                .$confirm(response.data.data.msg, "医保错误信息", {
867
-                  confirmButtonText: "确 定",
868
-                  type: "warning",
869
-                })
870
-                .then(() => {
871
-                })
872
-                .catch(() => {
873
-                });
852
+      if(this.$store.getters.xt_user.org_id == 10191){
853
+        axios
854
+          .get("http://127.0.0.1:9532/api/comfirm/upload", {
855
+            params: {
856
+              order_id: row.id,
857
+              admin_user_id: this.$store.getters.xt_user.user.id,
858
+              stas_type: 1
859
+            },
860
+          })
861
+          .then(function (response) {
862
+            if (response.data.state == 0) {
863
+              that.$message.error(response.data.msg);
864
+              return false;
865
+            } else {
866
+              if (response.data.data.failed_code == -10) {
867
+                that
868
+                  .$confirm(response.data.data.msg, "医保错误信息", {
869
+                    confirmButtonText: "确 定",
870
+                    type: "warning",
871
+                  })
872
+                  .then(() => {
873
+                  })
874
+                  .catch(() => {
875
+                  });
876
+              } else {
877
+                that.$message.success("确认成功");
878
+                row.result.id = response.data.data.result.id;
879
+              }
880
+            }
881
+          })
882
+          .catch(function (error) {
883
+          });
884
+      }else{
885
+        axios
886
+          .get("http://127.0.0.1:9532/api/4102", {
887
+            params: {
888
+              order_id: row.id,
889
+              admin_user_id: this.$store.getters.xt_user.user.id,
890
+              stas_type: 1
891
+            },
892
+          })
893
+          .then(function (response) {
894
+            if (response.data.state == 0) {
895
+              that.$message.error(response.data.msg);
896
+              return false;
874 897
             } else {
875
-              that.$message.success("确认成功");
876
-              row.result.id = response.data.data.result.id;
898
+              if (response.data.data.failed_code == -10) {
899
+                that
900
+                  .$confirm(response.data.data.msg, "医保错误信息", {
901
+                    confirmButtonText: "确 定",
902
+                    type: "warning",
903
+                  })
904
+                  .then(() => {
905
+                  })
906
+                  .catch(() => {
907
+                  });
908
+              } else {
909
+                that.$message.success("确认成功");
910
+                row.result.id = response.data.data.result.id;
911
+              }
877 912
             }
878
-          }
879
-        })
880
-        .catch(function (error) {
881
-        });
913
+          })
914
+          .catch(function (error) {
915
+          });
916
+
917
+      }
882 918
 
883 919
 
884 920
     },
@@ -1280,7 +1316,7 @@ export default {
1280 1316
                 name: order.patient.name,
1281 1317
                 id_card_no: order.patient.id_card_no,
1282 1318
                 year: "2023",
1283
-                month: "08",
1319
+                month: "09",
1284 1320
                 code: data[b].code,
1285 1321
                 pric: data[b].total ,
1286 1322
                 item_name: data[b].name,

+ 7 - 7
src/xt_pages/role/admin.vue View File

@@ -187,12 +187,12 @@
187 187
           @click="toSendInformaton">发送短信验证码</el-button>  -->
188 188
        
189 189
           
190
-        <!-- <el-button
190
+          <!--<el-button
191 191
           type="primary"
192 192
           size="small"
193 193
           icon="el-icon-circle-plus-outline"
194 194
           style="float:left"
195
-          @click="toSavePDFInformation">生成PDF</el-button> -->
195
+          @click="toSavePDFInformation">生成PDF</el-button>-->
196 196
 
197 197
 
198 198
         <!-- <el-button
@@ -1071,11 +1071,11 @@ export default {
1071 1071
            
1072 1072
            var orderId = response.data.data.orderId
1073 1073
            
1074
-           var base64Img = 'data:image/png;base64'+","+orderId
1075
-           console.log("base64Img",base64Img)
1076
-           var imgFile = this.base64ImgtoFile(base64Img)
1077
-           this.downloadBlob(imgFile, 'test.png')
1078
-           console.log("imgFilewoowow",imgFile)
1074
+          //  var base64Img = 'data:image/png;base64'+","+orderId
1075
+          //  console.log("base64Img",base64Img)
1076
+          //  var imgFile = this.base64ImgtoFile(base64Img)
1077
+          //  this.downloadBlob(imgFile, 'test.png')
1078
+          //  console.log("imgFilewoowow",imgFile)
1079 1079
 
1080 1080
            const blob = this.base64ToBlob(orderId, 'application/pdf');
1081 1081
            this.openPdf(blob);