Commit 4c4c2423 authored by 许珑标's avatar 许珑标

电子发票去掉测试代码

parent c21f1419
...@@ -881,8 +881,8 @@ export default { ...@@ -881,8 +881,8 @@ export default {
}, },
onlineInvoice(row) { onlineInvoice(row) {
let taxpayerQuery = { let taxpayerQuery = {
// companyType: 2, companyType: 2,
// companyId: row.taxCompanyId companyId: row.taxCompanyId
} }
listAllLoginUser(taxpayerQuery).then(resp => { listAllLoginUser(taxpayerQuery).then(resp => {
if (200 === resp.code) { if (200 === resp.code) {
...@@ -898,20 +898,20 @@ export default { ...@@ -898,20 +898,20 @@ export default {
} }
}, },
onlineGen() { onlineGen() {
this.$prompt('请输入返回值', '操作提示', { // this.$prompt('请输入返回值', '操作提示', {
confirmButtonText: '确定', // confirmButtonText: '确定',
cancelButtonText: '取消', // cancelButtonText: '取消',
}).then(({ value }) => { // }).then(({ value }) => {
let testData = { // let testData = {
code: value // code: value
}
this.invoicingAfter(testData)
})
// onlineInvoicing(this.onlineInvoiceForm).then(resp => {
// if (200 === resp.code) {
// this.invoicingAfter(resp.data)
// } // }
// this.invoicingAfter(testData)
// }) // })
onlineInvoicing(this.onlineInvoiceForm).then(resp => {
if (200 === resp.code) {
this.invoicingAfter(resp.data)
}
})
}, },
invoicingAfter(data) { invoicingAfter(data) {
let code = data.code let code = data.code
...@@ -930,14 +930,8 @@ export default { ...@@ -930,14 +930,8 @@ export default {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
}).then(({ value }) => { }).then(({ value }) => {
// todo 重新发起
this.onlineInvoiceForm.smsCode = value this.onlineInvoiceForm.smsCode = value
// this.onlineGen() this.onlineGen()
this.$message({
type: 'success',
message: '你输入的短信验证码是: ' + value
});
console.log('一键开票请求参数:', this.onlineInvoiceForm)
}) })
} else if (code == 500) { } else if (code == 500) {
this.$modal.msgError(data.msg) this.$modal.msgError(data.msg)
......
...@@ -293,7 +293,6 @@ export default { ...@@ -293,7 +293,6 @@ export default {
this.title = "添加办税人信息"; this.title = "添加办税人信息";
}, },
getAllUnit() { getAllUnit() {
console.log(this.unitList)
if (!this.unitList || this.unitList.length < 1) { if (!this.unitList || this.unitList.length < 1) {
listAllUnitInfo().then(resp => { listAllUnitInfo().then(resp => {
if (200 === resp.code) { if (200 === resp.code) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment