From 6dec8ca55c9ccbf8e91986ff2d1beeb533135e3d Mon Sep 17 00:00:00 2001 From: gongzeliang <447196008@qq.com> Date: Sat, 9 Mar 2024 11:22:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=8F=B0=E8=AD=A6=E5=91=8A?= =?UTF-8?q?=E6=B6=88=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ConnectInvoice/index.vue | 8 ++++---- src/components/MyInvoiceListCard/index.vue | 14 +++++++------- src/components/UploadImagePdf/index.vue | 6 +++--- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/components/ConnectInvoice/index.vue b/src/components/ConnectInvoice/index.vue index 33d6f77..2f7072f 100644 --- a/src/components/ConnectInvoice/index.vue +++ b/src/components/ConnectInvoice/index.vue @@ -42,10 +42,10 @@
服务商: {{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.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 || '-'}}
diff --git a/src/components/MyInvoiceListCard/index.vue b/src/components/MyInvoiceListCard/index.vue index aecaffe..8ba6b2f 100644 --- a/src/components/MyInvoiceListCard/index.vue +++ b/src/components/MyInvoiceListCard/index.vue @@ -62,13 +62,13 @@
行程结束时间: {{itemData.endTime && dayjs(itemData.endTime).format('YY/MM/DD HH:ss')}}
行程人手机号: {{itemData.phone || '-'}}
申请日期: {{itemData.applicationDate && dayjs(itemData.applicationDate).format('YY/MM/DD HH:ss')}}
-
上车日期: {{itemData.items[0].pickupDate && dayjs(itemData.items[0].pickupDate).format('YY/MM/DD HH:ss')}}
-
车型: {{itemData.items[0].carType || '-'}}
-
里程: {{itemData.items[0].distance || '-'}}
-
起点: {{itemData.items[0].startPlace || '-'}}
-
终点: {{itemData.items[0].destinationPlace || '-'}}
-
城市: {{itemData.items[0].city || '-'}}
-
金额: {{itemData.items[0].fare || '-'}}
+
上车日期: {{itemData.items[0].pickupDate && dayjs(itemData.items[0].pickupDate).format('YY/MM/DD HH:ss')}}
+
车型: {{itemData.items[0].carType || '-'}}
+
里程: {{itemData.items[0].distance || '-'}}
+
起点: {{itemData.items[0].startPlace || '-'}}
+
终点: {{itemData.items[0].destinationPlace || '-'}}
+
城市: {{itemData.items[0].city || '-'}}
+
金额: {{itemData.items[0].fare || '-'}}
总金额: {{itemData.totalFare || '-'}}
diff --git a/src/components/UploadImagePdf/index.vue b/src/components/UploadImagePdf/index.vue index 0a059c6..35cbda1 100644 --- a/src/components/UploadImagePdf/index.vue +++ b/src/components/UploadImagePdf/index.vue @@ -138,11 +138,11 @@ export default { } }, handleScan() { - if (this.uploadList.length) { + if (!this.uploadList.length) { this.$fm('请先上传发票!') } else { - // const { url } = this.uploadList[0] - let url = 'https://p8.itc.cn/q_70/images03/20210420/b5e2b7a15457406bb48135828b8fea03.jpeg' + const { url } = this.uploadList[0] + // let url = 'https://p8.itc.cn/q_70/images03/20210420/b5e2b7a15457406bb48135828b8fea03.jpeg' this.$loading(true) const invoiceScanApi = this.type == '01' ? invoiceScanApi01 : this.type == '02' ? invoiceScanApi02 : this.type == '03' ? invoiceScanApi03 : this.type == '04' ? invoiceScanApi04 : invoiceScanApi05; invoiceScanApi({ url,type:this.type }).then((res) => {