|
@@ -13,6 +13,7 @@ import { myNotInvoicedList } from '../../list';
|
|
import { wxToLoginCallback } from '@/utils';
|
|
import { wxToLoginCallback } from '@/utils';
|
|
import CacheTool from '@/utils/cache-tool'
|
|
import CacheTool from '@/utils/cache-tool'
|
|
import { invoicesCompleted, invoicesNotapplied } from '@/api/parking';
|
|
import { invoicesCompleted, invoicesNotapplied } from '@/api/parking';
|
|
|
|
+import { Dialog } from 'vant';
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -36,7 +37,9 @@ export default {
|
|
totalNum: 0.0,
|
|
totalNum: 0.0,
|
|
options: null,
|
|
options: null,
|
|
preUrl: '',
|
|
preUrl: '',
|
|
- invoiceDetailList: []
|
|
|
|
|
|
+ invoiceDetailList: [],
|
|
|
|
+ boxids: [],
|
|
|
|
+ choosekMax: 2
|
|
};
|
|
};
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
@@ -106,6 +109,13 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ checkboxchange2 (e, index) {
|
|
|
|
+ if (this.boxids.length > 2) {
|
|
|
|
+ console.log(2222222222)
|
|
|
|
+ this.$refs.checkboxes[index].toggle();
|
|
|
|
+ }
|
|
|
|
+ console.log('eeeeeeee:::', e, index)
|
|
|
|
+ },
|
|
invoice(e) {
|
|
invoice(e) {
|
|
this.tabIndex = e;
|
|
this.tabIndex = e;
|
|
this.current = -1;
|
|
this.current = -1;
|
|
@@ -116,7 +126,7 @@ export default {
|
|
this.getInvoiceList();
|
|
this.getInvoiceList();
|
|
},
|
|
},
|
|
goToDeatil(item) {
|
|
goToDeatil(item) {
|
|
- if (this.tabIndex === 2 || item.status === 'COMPLETE') {
|
|
|
|
|
|
+ if (this.tabIndex === 2 && item.status === 'COMPLETE') {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: 'parkingInvoice?id=' + item.id,
|
|
path: 'parkingInvoice?id=' + item.id,
|
|
});
|
|
});
|
|
@@ -152,6 +162,18 @@ export default {
|
|
this.current = i;
|
|
this.current = i;
|
|
this.ids = [this.list[i].id];
|
|
this.ids = [this.list[i].id];
|
|
this.totalNum = this.list[i].totalPaidAmount;
|
|
this.totalNum = this.list[i].totalPaidAmount;
|
|
|
|
+ if (this.ids > 2) {
|
|
|
|
+ Dialog.confirm({
|
|
|
|
+ message: '确认要删除该发票抬头吗?',
|
|
|
|
+ confirmButtonColor: '#644A79'
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ // on cancel
|
|
|
|
+ });
|
|
|
|
+ }
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -248,7 +270,7 @@ export default {
|
|
// }, 3000);
|
|
// }, 3000);
|
|
const listarr = res.content
|
|
const listarr = res.content
|
|
if (listarr.length > 0) {
|
|
if (listarr.length > 0) {
|
|
- this.list = res.content
|
|
|
|
|
|
+ this.list = this.list.concat(res.content)
|
|
}
|
|
}
|
|
// this.list = this.list.concat(res.content);
|
|
// this.list = this.list.concat(res.content);
|
|
console.log(111, res.content)
|
|
console.log(111, res.content)
|
|
@@ -328,7 +350,20 @@ export default {
|
|
// });
|
|
// });
|
|
},
|
|
},
|
|
checkboxChange(ids) {
|
|
checkboxChange(ids) {
|
|
|
|
+ this.boxids = ids
|
|
console.log(423, ids);
|
|
console.log(423, ids);
|
|
|
|
+ if (ids.length > this.choosekMax) {
|
|
|
|
+
|
|
|
|
+ Dialog.alert({
|
|
|
|
+ title: '选择上限提示',
|
|
|
|
+ message: '合并开票订单数量上限为200条,超出的部分请多次开具',
|
|
|
|
+ confirmButtonText: '关闭',
|
|
|
|
+ confirmButtonColor: '#644A79'
|
|
|
|
+ }).then(() => {
|
|
|
|
+ // on close
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
this.calculatePrice(ids);
|
|
this.calculatePrice(ids);
|
|
return;
|
|
return;
|
|
const itemId = e.detail.value;
|
|
const itemId = e.detail.value;
|