陈少旭 6 months ago
parent
commit
c2fdd11996

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