From bafab64758008f3d1662c9e3cfd3fc5040c1de22 Mon Sep 17 00:00:00 2001 From: 123456 <13063093621@163.com> Date: Fri, 15 Mar 2024 23:43:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E7=A5=A8=E5=88=A4=E6=96=AD=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E5=B1=95=E7=A4=BA=E4=BF=AE=E6=94=B9/=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E6=8C=89=E9=92=AE=EF=BC=8CclaimNo=20=E5=80=BC?= =?UTF-8?q?=E4=B8=BAnull=EF=BC=8C=E8=A1=A8=E7=A4=BA=E6=9C=AA=E5=85=B3?= =?UTF-8?q?=E8=81=94=E6=8A=A5=E9=94=80=E5=8D=95=E7=9A=84=E5=8F=91=E7=A5=A8?= =?UTF-8?q?=E3=80=82=20=E6=8A=A5=E9=94=80=E5=8D=95=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=85=B3=E8=81=94=E5=8F=91=E7=A5=A8=E5=BC=B9=E6=A1=86=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=BC=A0=E5=8F=82temClaimNo=EF=BC=9A=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=97=B6=E4=BC=A00=EF=BC=8C=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E4=BC=A0=E5=BD=93=E5=89=8D=E6=8A=A5?= =?UTF-8?q?=E9=94=80=E5=8D=95=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ConnectInvoice/index.vue | 112 +++++++++++---------- src/components/MyInvoiceListCard/index.vue | 20 ++-- src/views/company/claim/index.vue | 44 ++++---- 3 files changed, 94 insertions(+), 82 deletions(-) diff --git a/src/components/ConnectInvoice/index.vue b/src/components/ConnectInvoice/index.vue index 2f7072f..50efa5b 100644 --- a/src/components/ConnectInvoice/index.vue +++ b/src/components/ConnectInvoice/index.vue @@ -14,46 +14,46 @@
-
-
- - +
+
+ + +
+
+
发票消费类型: {{item.serviceType || '-'}}
+
发票代码: {{item.invoiceCode || '-'}}
+
发票号码: {{item.invoiceNum || '-'}}
+
开票日期: {{item.invoiceDate && dayjs(item.invoiceDate).format('YY/MM/DD HH:ss')}}
+
+
+
车票号: {{item.ticketNum || '-'}}
+
始发站: {{item.startingStation || '-'}}
+
到达站: {{item.destinationStation || '-'}}
+
出发日期: {{item.startingDate && dayjs(item.startingDate).format('YY/MM/DD HH:ss')}}
+
车次号: {{item.trainNum || '-'}}
+
+
+
姓名: {{item.name || '-'}}
+
始发站: {{item.startingStation || '-'}}
+
目的站: {{item.destinationStation || '-'}}
+
航班号: {{item.flight || '-'}}
+
承运人: {{item.carrier || '-'}}
+
+
+
服务商: {{item.serviceProvider || '-'}}
+
行程人手机号: {{item.phone || '-'}}
+
上车日期: {{item.items[0].pickupDate && dayjs(item.items[0].pickupDate).format('YY/MM/DD HH:ss')}}
+
起点: {{item.items[0].startPlace || '-'}}
+
终点: {{item.items[0].destinationPlace || '-'}}
+
城市: {{item.items[0].city || '-'}}
+
+
+
发票代码: {{item.invoiceCode || '-'}}
+
发票号码: {{item.invoiceNum || '-'}}
+
车牌号: {{item.taxiNum || '-'}}
+
日期: {{item.startingDate && dayjs(item.startingDate).format('YY/MM/DD HH:ss')}}
+
-
-
发票消费类型: {{item.serviceType || '-'}}
-
发票代码: {{item.invoiceCode || '-'}}
-
发票号码: {{item.invoiceNum || '-'}}
-
开票日期: {{item.invoiceDate && dayjs(item.invoiceDate).format('YY/MM/DD HH:ss')}}
-
-
-
车票号: {{item.ticketNum || '-'}}
-
始发站: {{item.startingStation || '-'}}
-
到达站: {{item.destinationStation || '-'}}
-
出发日期: {{item.startingDate && dayjs(item.startingDate).format('YY/MM/DD HH:ss')}}
-
车次号: {{item.trainNum || '-'}}
-
-
-
姓名: {{item.name || '-'}}
-
始发站: {{item.startingStation || '-'}}
-
目的站: {{item.destinationStation || '-'}}
-
航班号: {{item.flight || '-'}}
-
承运人: {{item.carrier || '-'}}
-
-
-
服务商: {{item.serviceProvider || '-'}}
-
行程人手机号: {{item.phone || '-'}}
-
上车日期: {{item.items[0].pickupDate && dayjs(item.items[0].pickupDate).format('YY/MM/DD HH:ss')}}
-
起点: {{item.items[0].startPlace || '-'}}
-
终点: {{item.items[0].destinationPlace || '-'}}
-
城市: {{item.items[0].city || '-'}}
-
-
-
发票代码: {{item.invoiceCode || '-'}}
-
发票号码: {{item.invoiceNum || '-'}}
-
车牌号: {{item.taxiNum || '-'}}
-
日期: {{item.startingDate && dayjs(item.startingDate).format('YY/MM/DD HH:ss')}}
-
-
@@ -72,6 +72,7 @@ import { } from "@/api/bs/invoice"; export default { props: { + temClaimNo: [Number, String], // 关联发票 有值代表编辑 无值代表新增 invoiceIds: Object, // 选中得发票id isOpen: Boolean, isExist: Boolean, // 是否存在 @@ -107,19 +108,20 @@ export default { tableList: [], demo: false, isShow: false, - invoiceType:'01', - invoiceIdsCopy:{}, + invoiceType: '01', + invoiceIdsCopy: {}, moreLoading: false, refreshing: false, finished: false, - listQuery:{ + listQuery: { pageNo: 1, pageSize: 10, + temClaimNo: 0, } } }, created() { - this.$nextTick(()=>{ + this.$nextTick(() => { this.invoiceIdsCopy = this.invoiceIds this.getList('init') }) @@ -127,6 +129,7 @@ export default { watch: { isOpen: { handler(val) { + console.log('6....1111..', val); this.isShow = val if (val) { this.handleInitList() @@ -157,13 +160,13 @@ export default { // this.tableList let _this = this this.$set(this.tableList[index], 'checked', !this.tableList[index].checked) - if(this.tableList[index].checked){ - if(!_this.invoiceIdsCopy.hasOwnProperty(_this.invoiceType)){ + if (this.tableList[index].checked) { + if (!_this.invoiceIdsCopy.hasOwnProperty(_this.invoiceType)) { _this.invoiceIdsCopy[_this.invoiceType] = []; } _this.invoiceIdsCopy[_this.invoiceType].push(this.tableList[index].id) - }else { - _this.invoiceIdsCopy[_this.invoiceType].splice(index,1) + } else { + _this.invoiceIdsCopy[_this.invoiceType].splice(index, 1) } this.$forceUpdate() console.log(_this.invoiceIdsCopy) @@ -199,15 +202,20 @@ export default { this.finished = false this.getList('refresh') }, - vanTabsChange(){ + vanTabsChange() { this.listQuery.pageNo = 1 this.getList('init') }, - getList(val){ + getList(val) { let _this = this this.moreLoading = true this.$loading(true, 'tableLoading') const getInvoicePage = this.invoiceType == '01' ? getInvoicePage01 : this.invoiceType == '02' ? getInvoicePage02 : this.invoiceType == '03' ? getInvoicePage03 : this.invoiceType == '04' ? getInvoicePage04 : getInvoicePage05; + if (_this.temClaimNo) { + _this.listQuery.temClaimNo = _this.temClaimNo + } else { + _this.listQuery.temClaimNo = 0 + } getInvoicePage(_this.listQuery).then(res => { let resList = res.data && res.data.list || [] if (['init', 'refresh'].includes(val)) { @@ -218,9 +226,9 @@ export default { if (resList.length < this.pageSize) { this.finished = true } - if(_this.invoiceIdsCopy && _this.invoiceIdsCopy.hasOwnProperty(_this.invoiceType)){ - _this.tableList.map(item =>{ - item.checked=(_this.invoiceIdsCopy[_this.invoiceType] || []).includes(item.id) + if (_this.invoiceIdsCopy && _this.invoiceIdsCopy.hasOwnProperty(_this.invoiceType)) { + _this.tableList.map(item => { + item.checked = (_this.invoiceIdsCopy[_this.invoiceType] || []).includes(item.id) }) } }).finally(() => { diff --git a/src/components/MyInvoiceListCard/index.vue b/src/components/MyInvoiceListCard/index.vue index 92811de..543b860 100644 --- a/src/components/MyInvoiceListCard/index.vue +++ b/src/components/MyInvoiceListCard/index.vue @@ -7,9 +7,9 @@
发票
-->
- - - + + + @@ -89,8 +89,8 @@
- - + +
@@ -99,7 +99,7 @@