|
@@ -7,13 +7,13 @@
|
|
|
</div>
|
|
|
<div class="plan-table">
|
|
|
<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>
|
|
|
</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">
|
|
|
<div class="opera">
|
|
|
<template v-if="scope.row.billNo">
|
|
@@ -69,17 +69,19 @@ export default class Plan extends Vue {
|
|
|
const failedConnect: any = this.$t('failedConnect')
|
|
|
getInvoices().then((res:any) => {
|
|
|
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 {
|
|
@@ -140,9 +142,10 @@ export default class Plan extends Vue {
|
|
|
// 用户信息完整申请开票
|
|
|
if (valid) {
|
|
|
this.loading = true
|
|
|
+ const cn = this.$i18n.locale === 'zh-cn'
|
|
|
const emailFail: any = this.$t('invoices.fail')
|
|
|
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') {
|
|
|
this.loading = false
|
|
|
this.$message({
|
|
@@ -200,7 +203,6 @@ export default class Plan extends Vue {
|
|
|
} else {
|
|
|
this.$message.error(emailFail)
|
|
|
}
|
|
|
- console.log(res)
|
|
|
}).catch((err) => {
|
|
|
if (err === 'cancel') {
|
|
|
this.$router.push('/billing/information')
|
|
@@ -335,7 +337,7 @@ export default class Plan extends Vue {
|
|
|
}
|
|
|
::v-deep .el-table {
|
|
|
.el-table__header {
|
|
|
- @media screen and (max-width: 429px) {
|
|
|
+ @media screen and (max-width: 576px) {
|
|
|
width: 1020px !important;
|
|
|
}
|
|
|
.is-leaf {
|
|
@@ -344,7 +346,7 @@ export default class Plan extends Vue {
|
|
|
}
|
|
|
}
|
|
|
.el-table__body {
|
|
|
- @media screen and (max-width: 429px) {
|
|
|
+ @media screen and (max-width: 576px) {
|
|
|
width: 1020px !important;
|
|
|
}
|
|
|
}
|
|
@@ -389,20 +391,20 @@ export default class Plan extends Vue {
|
|
|
// 未录入收件邮箱
|
|
|
.el-message-box.infoBox.el-message-box--center {
|
|
|
width: 474px;
|
|
|
- @media screen and (max-width: 429px) {
|
|
|
+ @media screen and (max-width: 576px) {
|
|
|
width: calc(100% - 60px);
|
|
|
}
|
|
|
.el-message-box__btns {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
- @media screen and (max-width: 429px) {
|
|
|
+ @media screen and (max-width: 576px) {
|
|
|
flex-direction: column;
|
|
|
}
|
|
|
& button:nth-child(1) {
|
|
|
width: 151px;
|
|
|
color: #396FFA;
|
|
|
border-color: #396FFA;
|
|
|
- @media screen and (max-width: 429px) {
|
|
|
+ @media screen and (max-width: 576px) {
|
|
|
width: 100%;
|
|
|
}
|
|
|
&:hover {
|
|
@@ -412,7 +414,7 @@ export default class Plan extends Vue {
|
|
|
}
|
|
|
& button:nth-child(2) {
|
|
|
width: calc(100% - 167px);
|
|
|
- @media screen and (max-width: 429px) {
|
|
|
+ @media screen and (max-width: 576px) {
|
|
|
width: 100%;
|
|
|
margin-left: 0;
|
|
|
margin-top: 12px;
|
|
@@ -427,14 +429,9 @@ export default class Plan extends Vue {
|
|
|
// 邮件发送确认
|
|
|
.el-message-box.emailBox.el-message-box--center {
|
|
|
width: 454px;
|
|
|
- @media screen and (max-width: 429px) {
|
|
|
+ @media screen and (max-width: 576px) {
|
|
|
width: calc(100% - 60px);
|
|
|
}
|
|
|
- @media screen and (max-width: 429px){
|
|
|
- .el-message-box {
|
|
|
- width: calc(100% - 60px);
|
|
|
- }
|
|
|
- }
|
|
|
.el-message-box__header {
|
|
|
display: none;
|
|
|
}
|
|
@@ -446,14 +443,14 @@ export default class Plan extends Vue {
|
|
|
padding: 32px;
|
|
|
padding-bottom: 40px;
|
|
|
justify-content: flex-end;
|
|
|
- @media screen and (max-width: 429px) {
|
|
|
+ @media screen and (max-width: 576px) {
|
|
|
flex-direction: column;
|
|
|
justify-content: inherit;
|
|
|
}
|
|
|
& button:nth-child(1) {
|
|
|
color: #396FFA;
|
|
|
border-color: #396FFA;
|
|
|
- @media screen and (max-width: 429px) {
|
|
|
+ @media screen and (max-width: 576px) {
|
|
|
width: 100%;
|
|
|
}
|
|
|
&:hover {
|
|
@@ -462,7 +459,7 @@ export default class Plan extends Vue {
|
|
|
}
|
|
|
}
|
|
|
& button:nth-child(2) {
|
|
|
- @media screen and (max-width: 429px) {
|
|
|
+ @media screen and (max-width: 576px) {
|
|
|
width: 100%;
|
|
|
margin-left: 0;
|
|
|
margin-top: 12px;
|
|
@@ -478,7 +475,7 @@ export default class Plan extends Vue {
|
|
|
// 未录入收件邮箱
|
|
|
.el-message-box.emailErrBox.el-message-box--center {
|
|
|
width: 464px;
|
|
|
- @media screen and (max-width: 429px) {
|
|
|
+ @media screen and (max-width: 576px) {
|
|
|
width: calc(100% - 60px);
|
|
|
}
|
|
|
.el-message-box__header {
|
|
@@ -492,14 +489,14 @@ export default class Plan extends Vue {
|
|
|
padding: 32px;
|
|
|
padding-bottom: 40px;
|
|
|
justify-content: space-between;
|
|
|
- @media screen and (max-width: 429px) {
|
|
|
+ @media screen and (max-width: 576px) {
|
|
|
flex-direction: column;
|
|
|
justify-content: inherit;
|
|
|
}
|
|
|
& button:nth-child(1) {
|
|
|
color: #396FFA;
|
|
|
border-color: #396FFA;
|
|
|
- @media screen and (max-width: 429px) {
|
|
|
+ @media screen and (max-width: 576px) {
|
|
|
width: 100%;
|
|
|
}
|
|
|
&:hover {
|
|
@@ -508,7 +505,7 @@ export default class Plan extends Vue {
|
|
|
}
|
|
|
}
|
|
|
& button:nth-child(2) {
|
|
|
- @media screen and (max-width: 429px) {
|
|
|
+ @media screen and (max-width: 576px) {
|
|
|
width: 100%;
|
|
|
margin-left: 0;
|
|
|
margin-top: 12px;
|