|
@@ -7,13 +7,13 @@
|
|
</div>
|
|
</div>
|
|
<div class="plan-table">
|
|
<div class="plan-table">
|
|
<el-table :data="tableData" style="width: 100%" :default-sort = "{prop: 'date', order: 'descending'}">
|
|
<el-table :data="tableData" style="width: 100%" :default-sort = "{prop: 'date', order: 'descending'}">
|
|
- <el-table-column prop="payTime" :label="$t('invoices.date')" min-width="120"></el-table-column>
|
|
|
|
- <el-table-column prop="orderNo" :label="$t('invoices.order')" min-width="240"></el-table-column>
|
|
|
|
- <el-table-column prop="price" :label="$t('invoices.amount') " min-width="60"></el-table-column>
|
|
|
|
- <el-table-column prop="billNo" :label="$t('invoices.number')" min-width="120">
|
|
|
|
|
|
+ <el-table-column prop="payTime" :label="$t('invoices.date')" min-width="170"></el-table-column>
|
|
|
|
+ <el-table-column prop="orderNo" :label="$t('invoices.order')" min-width="360"></el-table-column>
|
|
|
|
+ <el-table-column prop="price" :label="$t('invoices.amount') " min-width="90"></el-table-column>
|
|
|
|
+ <el-table-column prop="billNo" :label="$t('invoices.number')" min-width="180">
|
|
<template slot-scope="scope">{{scope.row.billNo ? scope.row.billNo : '-' }}</template>
|
|
<template slot-scope="scope">{{scope.row.billNo ? scope.row.billNo : '-' }}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="remainingFiles" :label="$t('invoices.operation') " min-width="180">
|
|
|
|
|
|
+ <el-table-column prop="remainingFiles" :label="$t('invoices.operation') " min-width="220">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div class="opera">
|
|
<div class="opera">
|
|
<template v-if="scope.row.billNo">
|
|
<template v-if="scope.row.billNo">
|
|
@@ -69,17 +69,19 @@ export default class Plan extends Vue {
|
|
const failedConnect: any = this.$t('failedConnect')
|
|
const failedConnect: any = this.$t('failedConnect')
|
|
getInvoices().then((res:any) => {
|
|
getInvoices().then((res:any) => {
|
|
if (res.code === '200') {
|
|
if (res.code === '200') {
|
|
- const array = this.paginateArray(res.data, this.pageSize)[this.currentPage - 1]
|
|
|
|
- this.tableData = []
|
|
|
|
- this.totalNum = res.data.length
|
|
|
|
- this.totalPageNum = Math.ceil(res.data.length / 8)
|
|
|
|
- for (let i = 0; i < array.length; i++) {
|
|
|
|
- this.tableData.push(array[i])
|
|
|
|
- if (this.currentPage <= 1) {
|
|
|
|
- this.disabledPrevBtn = true
|
|
|
|
- }
|
|
|
|
- if (this.currentPage >= this.totalPageNum) {
|
|
|
|
- this.disabledNextBtn = true
|
|
|
|
|
|
+ if (res.data.length !== 0) {
|
|
|
|
+ const array = this.paginateArray(res.data, this.pageSize)[this.currentPage - 1]
|
|
|
|
+ this.tableData = []
|
|
|
|
+ this.totalNum = res.data.length
|
|
|
|
+ this.totalPageNum = Math.ceil(res.data.length / 8)
|
|
|
|
+ for (let i = 0; i < array.length; i++) {
|
|
|
|
+ this.tableData.push(array[i])
|
|
|
|
+ if (this.currentPage <= 1) {
|
|
|
|
+ this.disabledPrevBtn = true
|
|
|
|
+ }
|
|
|
|
+ if (this.currentPage >= this.totalPageNum) {
|
|
|
|
+ this.disabledNextBtn = true
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
@@ -140,9 +142,10 @@ export default class Plan extends Vue {
|
|
// 用户信息完整申请开票
|
|
// 用户信息完整申请开票
|
|
if (valid) {
|
|
if (valid) {
|
|
this.loading = true
|
|
this.loading = true
|
|
|
|
+ const cn = this.$i18n.locale === 'zh-cn'
|
|
const emailFail: any = this.$t('invoices.fail')
|
|
const emailFail: any = this.$t('invoices.fail')
|
|
const emailSuccess: any = this.$t('invoices.success')
|
|
const emailSuccess: any = this.$t('invoices.success')
|
|
- const data: any = await apiApplyInvoice({ orderId: val.id }, {})
|
|
|
|
|
|
+ const data: any = await apiApplyInvoice({ orderId: val.id, isCN: cn }, {})
|
|
if (data.code === '200') {
|
|
if (data.code === '200') {
|
|
this.loading = false
|
|
this.loading = false
|
|
this.$message({
|
|
this.$message({
|
|
@@ -200,7 +203,6 @@ export default class Plan extends Vue {
|
|
} else {
|
|
} else {
|
|
this.$message.error(emailFail)
|
|
this.$message.error(emailFail)
|
|
}
|
|
}
|
|
- console.log(res)
|
|
|
|
}).catch((err) => {
|
|
}).catch((err) => {
|
|
if (err === 'cancel') {
|
|
if (err === 'cancel') {
|
|
this.$router.push('/billing/information')
|
|
this.$router.push('/billing/information')
|
|
@@ -335,7 +337,7 @@ export default class Plan extends Vue {
|
|
}
|
|
}
|
|
::v-deep .el-table {
|
|
::v-deep .el-table {
|
|
.el-table__header {
|
|
.el-table__header {
|
|
- @media screen and (max-width: 429px) {
|
|
|
|
|
|
+ @media screen and (max-width: 576px) {
|
|
width: 1020px !important;
|
|
width: 1020px !important;
|
|
}
|
|
}
|
|
.is-leaf {
|
|
.is-leaf {
|
|
@@ -344,7 +346,7 @@ export default class Plan extends Vue {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.el-table__body {
|
|
.el-table__body {
|
|
- @media screen and (max-width: 429px) {
|
|
|
|
|
|
+ @media screen and (max-width: 576px) {
|
|
width: 1020px !important;
|
|
width: 1020px !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -389,20 +391,20 @@ export default class Plan extends Vue {
|
|
// 未录入收件邮箱
|
|
// 未录入收件邮箱
|
|
.el-message-box.infoBox.el-message-box--center {
|
|
.el-message-box.infoBox.el-message-box--center {
|
|
width: 474px;
|
|
width: 474px;
|
|
- @media screen and (max-width: 429px) {
|
|
|
|
|
|
+ @media screen and (max-width: 576px) {
|
|
width: calc(100% - 60px);
|
|
width: calc(100% - 60px);
|
|
}
|
|
}
|
|
.el-message-box__btns {
|
|
.el-message-box__btns {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
- @media screen and (max-width: 429px) {
|
|
|
|
|
|
+ @media screen and (max-width: 576px) {
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
& button:nth-child(1) {
|
|
& button:nth-child(1) {
|
|
width: 151px;
|
|
width: 151px;
|
|
color: #396FFA;
|
|
color: #396FFA;
|
|
border-color: #396FFA;
|
|
border-color: #396FFA;
|
|
- @media screen and (max-width: 429px) {
|
|
|
|
|
|
+ @media screen and (max-width: 576px) {
|
|
width: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
&:hover {
|
|
&:hover {
|
|
@@ -412,7 +414,7 @@ export default class Plan extends Vue {
|
|
}
|
|
}
|
|
& button:nth-child(2) {
|
|
& button:nth-child(2) {
|
|
width: calc(100% - 167px);
|
|
width: calc(100% - 167px);
|
|
- @media screen and (max-width: 429px) {
|
|
|
|
|
|
+ @media screen and (max-width: 576px) {
|
|
width: 100%;
|
|
width: 100%;
|
|
margin-left: 0;
|
|
margin-left: 0;
|
|
margin-top: 12px;
|
|
margin-top: 12px;
|
|
@@ -427,14 +429,9 @@ export default class Plan extends Vue {
|
|
// 邮件发送确认
|
|
// 邮件发送确认
|
|
.el-message-box.emailBox.el-message-box--center {
|
|
.el-message-box.emailBox.el-message-box--center {
|
|
width: 454px;
|
|
width: 454px;
|
|
- @media screen and (max-width: 429px) {
|
|
|
|
|
|
+ @media screen and (max-width: 576px) {
|
|
width: calc(100% - 60px);
|
|
width: calc(100% - 60px);
|
|
}
|
|
}
|
|
- @media screen and (max-width: 429px){
|
|
|
|
- .el-message-box {
|
|
|
|
- width: calc(100% - 60px);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
.el-message-box__header {
|
|
.el-message-box__header {
|
|
display: none;
|
|
display: none;
|
|
}
|
|
}
|
|
@@ -446,14 +443,14 @@ export default class Plan extends Vue {
|
|
padding: 32px;
|
|
padding: 32px;
|
|
padding-bottom: 40px;
|
|
padding-bottom: 40px;
|
|
justify-content: flex-end;
|
|
justify-content: flex-end;
|
|
- @media screen and (max-width: 429px) {
|
|
|
|
|
|
+ @media screen and (max-width: 576px) {
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
justify-content: inherit;
|
|
justify-content: inherit;
|
|
}
|
|
}
|
|
& button:nth-child(1) {
|
|
& button:nth-child(1) {
|
|
color: #396FFA;
|
|
color: #396FFA;
|
|
border-color: #396FFA;
|
|
border-color: #396FFA;
|
|
- @media screen and (max-width: 429px) {
|
|
|
|
|
|
+ @media screen and (max-width: 576px) {
|
|
width: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
&:hover {
|
|
&:hover {
|
|
@@ -462,7 +459,7 @@ export default class Plan extends Vue {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
& button:nth-child(2) {
|
|
& button:nth-child(2) {
|
|
- @media screen and (max-width: 429px) {
|
|
|
|
|
|
+ @media screen and (max-width: 576px) {
|
|
width: 100%;
|
|
width: 100%;
|
|
margin-left: 0;
|
|
margin-left: 0;
|
|
margin-top: 12px;
|
|
margin-top: 12px;
|
|
@@ -478,7 +475,7 @@ export default class Plan extends Vue {
|
|
// 未录入收件邮箱
|
|
// 未录入收件邮箱
|
|
.el-message-box.emailErrBox.el-message-box--center {
|
|
.el-message-box.emailErrBox.el-message-box--center {
|
|
width: 464px;
|
|
width: 464px;
|
|
- @media screen and (max-width: 429px) {
|
|
|
|
|
|
+ @media screen and (max-width: 576px) {
|
|
width: calc(100% - 60px);
|
|
width: calc(100% - 60px);
|
|
}
|
|
}
|
|
.el-message-box__header {
|
|
.el-message-box__header {
|
|
@@ -492,14 +489,14 @@ export default class Plan extends Vue {
|
|
padding: 32px;
|
|
padding: 32px;
|
|
padding-bottom: 40px;
|
|
padding-bottom: 40px;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
- @media screen and (max-width: 429px) {
|
|
|
|
|
|
+ @media screen and (max-width: 576px) {
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
justify-content: inherit;
|
|
justify-content: inherit;
|
|
}
|
|
}
|
|
& button:nth-child(1) {
|
|
& button:nth-child(1) {
|
|
color: #396FFA;
|
|
color: #396FFA;
|
|
border-color: #396FFA;
|
|
border-color: #396FFA;
|
|
- @media screen and (max-width: 429px) {
|
|
|
|
|
|
+ @media screen and (max-width: 576px) {
|
|
width: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
&:hover {
|
|
&:hover {
|
|
@@ -508,7 +505,7 @@ export default class Plan extends Vue {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
& button:nth-child(2) {
|
|
& button:nth-child(2) {
|
|
- @media screen and (max-width: 429px) {
|
|
|
|
|
|
+ @media screen and (max-width: 576px) {
|
|
width: 100%;
|
|
width: 100%;
|
|
margin-left: 0;
|
|
margin-left: 0;
|
|
margin-top: 12px;
|
|
margin-top: 12px;
|