Browse Source

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

28169 6 months ago
parent
commit
ea5713631d

+ 0 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_fortyeight.vue View File

@@ -1201,8 +1201,6 @@ export default {
1201 1201
       return vascular_access_part_name
1202 1202
     },
1203 1203
     printThisPage() {
1204
-      
1205
-      
1206 1204
       var ptime = Math.round(new Date().getTime() / 1000)
1207 1205
       this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
1208 1206
       const style =

+ 26 - 4
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

@@ -988,6 +988,18 @@
988 988
         >
989 989
         </div>
990 990
       </template>
991
+      <template v-if="org_template_info.template_id == 80">
992
+        <div>
993
+          <el-button
994
+          :loading="loading"
995
+          size="small"
996
+          icon="el-icon-printer"
997
+          @click="printThisPage"
998
+          type="primary"
999
+          >打印</el-button
1000
+        >
1001
+        </div>
1002
+      </template>
991 1003
     </div>
992 1004
     <div class="app-container" style="min-height: 0">
993 1005
       <!--<div class="order-print-btn"-->
@@ -1507,8 +1519,11 @@
1507 1519
 
1508 1520
           <DialysisPrintOrderSeventynine v-bind:childResponse="childResponse"
1509 1521
           v-if="org_template_info.template_id == 79">
1510
-
1511 1522
           </DialysisPrintOrderSeventynine>
1523
+
1524
+          <DialysisPrintOrdereighty v-bind:childResponse="childResponse"
1525
+            v-if="org_template_info.template_id == 80">
1526
+          </DialysisPrintOrdereighty>
1512 1527
         </div>
1513 1528
       </el-container>
1514 1529
     </div>
@@ -1606,6 +1621,7 @@ import DialysisPrintOrderSeventysix from './template/DialysisPrintOrderSeventysi
1606 1621
 import DialysisPrintOrderSeventyseven from './template/DialysisPrintOrderSeventyseven'
1607 1622
 import DialysisPrintOrderSeventyeight from './template/DialysisPrintOrderSeventyeight'
1608 1623
 import DialysisPrintOrderSeventynine from './template/DialysisPrintOrderSeventynine'
1624
+import DialysisPrintOrdereighty from './template/DialysisPrintOrdereighty'
1609 1625
 import DialysisPrintOrderZero from './template/DialysisPrintOrderZero'
1610 1626
 export default {
1611 1627
   name: "dialysisPrintOrder",
@@ -1689,6 +1705,7 @@ export default {
1689 1705
     DialysisPrintOrderSeventyseven,
1690 1706
     DialysisPrintOrderSeventyeight,
1691 1707
     DialysisPrintOrderSeventynine,
1708
+    DialysisPrintOrdereighty,
1692 1709
     DialysisPrintOrderZero,
1693 1710
     LabelBox,
1694 1711
     BreadCrumb,
@@ -2248,9 +2265,7 @@ export default {
2248 2265
           scanStyles: false,
2249 2266
         });
2250 2267
 
2251
-      }else if (
2252
-        this.org_template_info.template_id == 52
2253
-      ) {
2268
+      }else if ( this.org_template_info.template_id == 52) {
2254 2269
         printJS({
2255 2270
           printable: "dialysis-print-box-1",
2256 2271
           type: "html",
@@ -2402,6 +2417,13 @@ export default {
2402 2417
           style: style4,
2403 2418
           scanStyles: false,
2404 2419
         });
2420
+      }else if (this.org_template_info.template_id == 80) {
2421
+        printJS({
2422
+          printable: "dialysis-print-box-1",
2423
+          type: "html",
2424
+          style: style2,
2425
+          scanStyles: false,
2426
+        });
2405 2427
       }
2406 2428
        else if (this.org_template_info.template_id == 199 ) {
2407 2429
         printJS({

File diff suppressed because it is too large
+ 3705 - 0
src/xt_pages/dialysis/template/DialysisPrintOrdereighty.vue


+ 30 - 2
src/xt_pages/eleFaPiao/fapiao.vue View File

@@ -116,7 +116,7 @@
116 116
         <el-table-column align="center" prop="name" label="操作">
117 117
           <template slot-scope="scope">
118 118
 
119
-            <el-button v-if="scope.row.id > 0 && scope.row.is_red_washed == 1" size="mini" type="primary"
119
+            <el-button v-if="scope.row.id > 0 && scope.row.is_red_washed == 0" size="mini" type="primary"
120 120
                        @click="hongchong(scope.row)">
121 121
               红冲
122 122
             </el-button>
@@ -260,10 +260,38 @@ export default {
260 260
     blue(row){
261 261
 
262 262
     }, yulan(row){
263
-
263
+      window.open( row.pdf_url, "_blank");
264 264
 
265 265
     },hongchong(row){
266
+      var  id = row.id
267
+
268
+      let params = {
269
+        "id":id,
270
+        "admin_user_id":this.$store.getters.xt_user.user.id,
271
+      }
266 272
 
273
+      var that = this;
274
+      axios.get('http://127.0.0.1:9532/api/fapiao/red',{params:params}).then(function(response) {
275
+        if (response.data.state == 0) {
276
+          that.$message.error(response.data.data.msg);
277
+          return false
278
+        } else {
279
+          if(response.data.data.failed_code == -10){
280
+            that.$confirm(response.data.data.msg, '错误信息', {
281
+              confirmButtonText: '确 定',
282
+              type: 'warning'
283
+            }).then(() => {
284
+
285
+            }).catch(() => {
286
+            })
287
+          }else{
288
+            that.$message.success(response.data.data.msg)
289
+            that.getHisOrderList()
290
+          }
291
+
292
+        }
293
+      }).catch(function(error) {
294
+      })
267 295
     },
268 296
     getAllstaff(){
269 297
       adminMainView()

+ 23 - 23
src/xt_pages/eleFaPiao/settleDetail.vue View File

@@ -151,19 +151,24 @@
151 151
                         @click="blue(scope.row)">
152 152
               开票
153 153
             </el-button>
154
-            <el-button v-if="scope.row.result.id > 0 && scope.row.result.fapiao_status == 1" disabled="true" size="mini" type="primary"
155
-                       @click="blue(scope.row)">
154
+            <el-button v-if="scope.row.result.id > 0  && scope.row.result.fapiao_status == '1'" disabled="true" size="mini" type="primary"
155
+            >
156 156
               开票审核中
157 157
             </el-button>
158
-            <el-button v-if="scope.row.result.id > 0 && scope.row.result.is_red_washed == 0 && scope.row.result.fapiao_status == 2" size="mini" type="primary"
158
+            <el-button v-if="scope.row.result.id == 0 && scope.row.result.fapiao_status == '3'" size="mini" type="primary"
159
+                       @click="blue(scope.row)">
160
+              开具蓝票失败,点击查看原因
161
+            </el-button>
162
+            <el-button v-if="scope.row.result.id > 0 && scope.row.result.is_red_washed == 0 && scope.row.result.fapiao_status == '2'" size="mini" type="primary"
159 163
                         @click="hongchong(scope.row)">
160 164
               红冲
161 165
             </el-button>
162
-            <el-button size="mini" type="primary" v-if="scope.row.result.id > 0 && scope.row.result.is_red_washed == 0 && scope.row.result.fapiao_status == 2"
166
+            <el-button size="mini" type="primary" v-if="scope.row.result.id > 0 && scope.row.result.is_red_washed == 0 && scope.row.result.fapiao_status == '2'"
163 167
                        @click="yulan(scope.row)">
164 168
               下载
165 169
             </el-button>
166
-            <el-button size="mini" type="primary" v-if="scope.row.result.id > 0 && scope.row.result.is_red_washed == 0 && scope.row.result.fapiao_status == 2 && scope.row.fapiao_number == ''"
170
+
171
+            <el-button size="mini" type="primary" v-if="scope.row.result.id > 0 && scope.row.result.is_red_washed == 0 && scope.row.result.fapiao_status == '2'"
167 172
                        @click="chaxun(scope.row)">
168 173
               查询并同步发票号码
169 174
             </el-button>
@@ -399,7 +404,7 @@ export default {
399 404
             }).catch(() => {
400 405
             })
401 406
           }else{
402
-            this.getHisOrderList()
407
+            that.getHisOrderList()
403 408
             that.$confirm(response.data.data.msg, '信息', {
404 409
               confirmButtonText: '确 定',
405 410
               type: 'warning'
@@ -605,23 +610,18 @@ export default {
605 610
             })
606 611
           }else{
607 612
             if(response.data.data.cus_status == 1){
608
-              Vue.nextTick(() => {
609
-                // 确保二维码数据存在
610
-                if (response.data.data.qr_code) {
611
-                  // 生成新的二维码
612
-                  var qrcode = new QRCode(that.$refs.qrCodeUrl, {
613
-                    text: response.data.data.qr_code,
614
-                    width: 120,
615
-                    height: 120,
616
-                    colorDark: '#000000',
617
-                    colorLight: '#ffffff',
618
-                    correctLevel: QRCode.CorrectLevel.H
619
-                  });
620
-                  that.qr_dialogVisible = true;
621
-                } else {
622
-                  that.$message.error('二维码数据为空。');
623
-                }
624
-              });
613
+              that.$nextTick(() =>{
614
+                that.$refs.qrCodeUrl.innerHTML = ""
615
+                var qrcode = new QRCode(that.$refs.qrCodeUrl, {
616
+                  text: response.data.data.qr_code, // 需要转换为二维码的内容
617
+                  width: 120,
618
+                  height: 120,
619
+                  colorDark: '#000000',
620
+                  colorLight: '#ffffff',
621
+                  correctLevel: QRCode.CorrectLevel.H
622
+                })
623
+              })
624
+              that.qr_dialogVisible =true
625 625
             }else if(response.data.data.cus_status == -1){
626 626
               // this.$message.error(response.data.msg)/*  */
627 627
               that

+ 13 - 2
src/xt_pages/outpatientTool/components/settle.vue View File

@@ -83,6 +83,13 @@
83 83
               </template>
84 84
           </el-table-column>
85 85
 
86
+        <el-table-column align="center" prop="item_name" label="参保地">
87
+          <template slot-scope="scope">
88
+            {{scope.row.clr_optins}}
89
+          </template>
90
+        </el-table-column>
91
+
92
+
86 93
         <el-table-column align="center" prop="item_name" label="病种名称">
87 94
           <template slot-scope="scope">
88 95
             {{scope.row.sick_name}}
@@ -250,14 +257,18 @@
250 257
           {{scope.row.setl_time?scope.row.setl_time.split(" ")[0]:getTimes(scope.row.settle_accounts_date)}}
251 258
         </template>
252 259
       </el-table-column>
253
-
254
-
255 260
       <el-table-column align="center" prop="item_name" label="病种名称">
256 261
         <template slot-scope="scope">
257 262
           {{scope.row.sick_name}}
258 263
         </template>
259 264
       </el-table-column>
260 265
 
266
+      <el-table-column align="center" prop="item_name" label="参保地">
267
+        <template slot-scope="scope">
268
+          {{scope.row.clr_optins}}
269
+        </template>
270
+      </el-table-column>
271
+
261 272
       <el-table-column align="center" prop="item_name" label="结算类型">
262 273
         <template slot-scope="scope">
263 274
           <div v-if="scope.row.is_medicine_insurance == 0">自费</div>