控制台警告消除

pull/1/head
gongzeliang 8 months ago
parent 15e0900fbe
commit 6dec8ca55c

@ -42,10 +42,10 @@
<div class="new-cr" @click="handleSetCheck(index,item)" v-if="invoiceType == '04'"> <div class="new-cr" @click="handleSetCheck(index,item)" v-if="invoiceType == '04'">
<div class="mt5">服务商 {{item.serviceProvider || '-'}}</div> <div class="mt5">服务商 {{item.serviceProvider || '-'}}</div>
<div class="mt5">行程人手机号 {{item.phone || '-'}}</div> <div class="mt5">行程人手机号 {{item.phone || '-'}}</div>
<div style="margin-top: 0.3rem;color:#333 ">上车日期 {{item.items[0].pickupDate && dayjs(item.items[0].pickupDate).format('YY/MM/DD HH:ss')}}</div> <div style="margin-top: 0.3rem;color:#333 " v-if="item.items && item.items.length > 0"> {{item.items[0].pickupDate && dayjs(item.items[0].pickupDate).format('YY/MM/DD HH:ss')}}</div>
<div class="mt5">起点 {{item.items[0].startPlace || '-'}}</div> <div class="mt5" v-if="item.items && item.items.length > 0"> {{item.items[0].startPlace || '-'}}</div>
<div class="mt5">终点 {{item.items[0].destinationPlace || '-'}}</div> <div class="mt5" v-if="item.items && item.items.length > 0"> {{item.items[0].destinationPlace || '-'}}</div>
<div class="mt5">城市 {{item.items[0].city || '-'}}</div> <div class="mt5" v-if="item.items && item.items.length > 0"> {{item.items[0].city || '-'}}</div>
</div> </div>
<div class="new-cr" @click="handleSetCheck(index,item)" v-if="invoiceType == '05'"> <div class="new-cr" @click="handleSetCheck(index,item)" v-if="invoiceType == '05'">
<div class="mt5">发票代码 {{item.invoiceCode || '-'}}</div> <div class="mt5">发票代码 {{item.invoiceCode || '-'}}</div>

@ -62,13 +62,13 @@
<div style="margin-top: 0.3rem;color:#333 ">行程结束时间 {{itemData.endTime && dayjs(itemData.endTime).format('YY/MM/DD HH:ss')}}</div> <div style="margin-top: 0.3rem;color:#333 ">行程结束时间 {{itemData.endTime && dayjs(itemData.endTime).format('YY/MM/DD HH:ss')}}</div>
<div class="mt5">行程人手机号 {{itemData.phone || '-'}}</div> <div class="mt5">行程人手机号 {{itemData.phone || '-'}}</div>
<div style="margin-top: 0.3rem;color:#333 ">申请日期 {{itemData.applicationDate && dayjs(itemData.applicationDate).format('YY/MM/DD HH:ss')}}</div> <div style="margin-top: 0.3rem;color:#333 ">申请日期 {{itemData.applicationDate && dayjs(itemData.applicationDate).format('YY/MM/DD HH:ss')}}</div>
<div style="margin-top: 0.3rem;color:#333 ">上车日期 {{itemData.items[0].pickupDate && dayjs(itemData.items[0].pickupDate).format('YY/MM/DD HH:ss')}}</div> <div style="margin-top: 0.3rem;color:#333 " v-if="itemData.items && itemData.items.length > 0"> {{itemData.items[0].pickupDate && dayjs(itemData.items[0].pickupDate).format('YY/MM/DD HH:ss')}}</div>
<div class="mt5">车型 {{itemData.items[0].carType || '-'}}</div> <div class="mt5" v-if="itemData.items && itemData.items.length > 0"> {{itemData.items[0].carType || '-'}}</div>
<div class="mt5">里程 {{itemData.items[0].distance || '-'}}</div> <div class="mt5" v-if="itemData.items && itemData.items.length > 0"> {{itemData.items[0].distance || '-'}}</div>
<div class="mt5">起点 {{itemData.items[0].startPlace || '-'}}</div> <div class="mt5" v-if="itemData.items && itemData.items.length > 0"> {{itemData.items[0].startPlace || '-'}}</div>
<div class="mt5">终点 {{itemData.items[0].destinationPlace || '-'}}</div> <div class="mt5" v-if="itemData.items && itemData.items.length > 0"> {{itemData.items[0].destinationPlace || '-'}}</div>
<div class="mt5">城市 {{itemData.items[0].city || '-'}}</div> <div class="mt5" v-if="itemData.items && itemData.items.length > 0"> {{itemData.items[0].city || '-'}}</div>
<div class="mt5">金额 {{itemData.items[0].fare || '-'}}</div> <div class="mt5" v-if="itemData.items && itemData.items.length > 0"> {{itemData.items[0].fare || '-'}}</div>
<div class="mt5">总金额 {{itemData.totalFare || '-'}}</div> <div class="mt5">总金额 {{itemData.totalFare || '-'}}</div>
</div> </div>
<div class="ct-md" v-if="invoiceType == '05'"> <div class="ct-md" v-if="invoiceType == '05'">

@ -138,11 +138,11 @@ export default {
} }
}, },
handleScan() { handleScan() {
if (this.uploadList.length) { if (!this.uploadList.length) {
this.$fm('请先上传发票!') this.$fm('请先上传发票!')
} else { } else {
// const { url } = this.uploadList[0] const { url } = this.uploadList[0]
let url = 'https://p8.itc.cn/q_70/images03/20210420/b5e2b7a15457406bb48135828b8fea03.jpeg' // let url = 'https://p8.itc.cn/q_70/images03/20210420/b5e2b7a15457406bb48135828b8fea03.jpeg'
this.$loading(true) this.$loading(true)
const invoiceScanApi = this.type == '01' ? invoiceScanApi01 : this.type == '02' ? invoiceScanApi02 : this.type == '03' ? invoiceScanApi03 : this.type == '04' ? invoiceScanApi04 : invoiceScanApi05; 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) => { invoiceScanApi({ url,type:this.type }).then((res) => {

Loading…
Cancel
Save