|
@@ -151,7 +151,7 @@
|
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"
|
|
154
|
+ <el-button v-if="scope.row.result.id > 0 && scope.row.result.fapiao_status == 1" disabled="true" size="mini" type="primary"
|
155
|
155
|
@click="blue(scope.row)">
|
156
|
156
|
开票审核中
|
157
|
157
|
</el-button>
|
|
@@ -163,6 +163,11 @@
|
163
|
163
|
@click="yulan(scope.row)">
|
164
|
164
|
下载
|
165
|
165
|
</el-button>
|
|
166
|
+
|
|
167
|
+ <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 == ''"
|
|
168
|
+ @click="chaxun(scope.row)">
|
|
169
|
+ 查询并同步发票号码
|
|
170
|
+ </el-button>
|
166
|
171
|
</template>
|
167
|
172
|
</el-table-column>
|
168
|
173
|
</el-table>
|
|
@@ -374,6 +379,39 @@ export default {
|
374
|
379
|
},
|
375
|
380
|
|
376
|
381
|
methods: {
|
|
382
|
+ chaxun(row){
|
|
383
|
+ let params = {
|
|
384
|
+ "order_ids": row.id,
|
|
385
|
+ "admin_user_id":this.$store.getters.xt_user.user.id,
|
|
386
|
+ }
|
|
387
|
+ var that = this;
|
|
388
|
+ axios.get('http://127.0.0.1:9532/api/fapiao/query',{params:params}).then(function(response) {
|
|
389
|
+ if (response.data.state == 0) {
|
|
390
|
+ that.$message.error(response.data.data.msg);
|
|
391
|
+ return false
|
|
392
|
+ } else {
|
|
393
|
+ if(response.data.data.failed_code == -10){
|
|
394
|
+ that.settlementVisible = false
|
|
395
|
+ that.$confirm(response.data.data.msg, '错误信息', {
|
|
396
|
+ confirmButtonText: '确 定',
|
|
397
|
+ type: 'warning'
|
|
398
|
+ }).then(() => {
|
|
399
|
+
|
|
400
|
+ }).catch(() => {
|
|
401
|
+ })
|
|
402
|
+ }else{
|
|
403
|
+ that.$confirm(response.data.data.msg, '信息', {
|
|
404
|
+ confirmButtonText: '确 定',
|
|
405
|
+ type: 'warning'
|
|
406
|
+ }).then(() => {
|
|
407
|
+
|
|
408
|
+ }).catch(() => {
|
|
409
|
+ })
|
|
410
|
+ }
|
|
411
|
+ }
|
|
412
|
+ }).catch(function(error) {
|
|
413
|
+ })
|
|
414
|
+ },
|
377
|
415
|
loginSJ(){
|
378
|
416
|
// let params = {
|
379
|
417
|
// "code":this.formLabelAlign.verify,
|
|
@@ -567,18 +605,23 @@ export default {
|
567
|
605
|
})
|
568
|
606
|
}else{
|
569
|
607
|
if(response.data.data.cus_status == 1){
|
570
|
|
- that.$nextTick(() =>{
|
571
|
|
- that.$refs.qrCodeUrl.innerHTML = ''; // Clear the container
|
572
|
|
- var qrcode = new QRCode(that.$refs.qrCodeUrl, {
|
573
|
|
- text: response.data.data.qr_code, // 需要转换为二维码的内容
|
574
|
|
- width: 120,
|
575
|
|
- height: 120,
|
576
|
|
- colorDark: '#000000',
|
577
|
|
- colorLight: '#ffffff',
|
578
|
|
- correctLevel: QRCode.CorrectLevel.H
|
579
|
|
- })
|
580
|
|
- })
|
581
|
|
- that.qr_dialogVisible =true
|
|
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
|
+ });
|
582
|
625
|
}else if(response.data.data.cus_status == -1){
|
583
|
626
|
// this.$message.error(response.data.msg)/* */
|
584
|
627
|
that
|
|
@@ -644,7 +687,6 @@ export default {
|
644
|
687
|
"order_ids": this.cur_ids,
|
645
|
688
|
"admin_user_id":this.$store.getters.xt_user.user.id,
|
646
|
689
|
}
|
647
|
|
-
|
648
|
690
|
var that = this;
|
649
|
691
|
axios.get('http://127.0.0.1:9532/api/fapiao/blue',{params:params}).then(function(response) {
|
650
|
692
|
if (response.data.state == 0) {
|