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