| | |
| | | <template> |
| | | <div class="invoiceForm-wrap"> |
| | | <div v-if="isWeiXin "> |
| | | <div class="title">订单发票</div> |
| | | <div class="invoiceForm-main"> |
| | | <div class="invoiceForm-main-inside"> |
| | | <div class="invoice-date-box"> |
| | | <el-date-picker |
| | | :editable="false" |
| | | format="yyyy-MM" |
| | | value-format="yyyy-MM" |
| | | v-model="date" |
| | | type="month" |
| | | @change="changeDate" |
| | | placeholder="选择日期"> |
| | | </el-date-picker> |
| | | <div class="title">订单发票</div> |
| | | <div class="invoiceForm-main"> |
| | | <div class="invoiceForm-main-inside"> |
| | | <div class="invoice-date-box"> |
| | | <el-date-picker |
| | | :editable="false" |
| | | format="yyyy-MM" |
| | | value-format="yyyy-MM" |
| | | v-model="date" |
| | | type="month" |
| | | @change="changeDate" |
| | | placeholder="选择日期"> |
| | | </el-date-picker> |
| | | </div> |
| | | <van-list |
| | | v-model="loading" |
| | | :finished="finished" |
| | | finished-text="没有更多了" |
| | | :offset="50" |
| | | :immediate-check="false" |
| | | @load="onLoad" |
| | | > |
| | | |
| | | <div v-for="(item,index) in invoiceData" :key="index"> |
| | | <el-checkbox |
| | | v-model="item.isShow" |
| | | class="invoiceForm-block" |
| | | @change="handleCheckedCitiesChange(invoiceData)"> |
| | | <div> |
| | | <div class="invoiceForm-content"> |
| | | |
| | | <svg class="iconSvg" style="font-size: 12px" aria-hidden="true"> |
| | | <use xlink:href="#icon-shijian3"></use> |
| | | </svg> |
| | | {{item.enterTime}} |
| | | </div> |
| | | <div class="invoiceForm-content"> |
| | | |
| | | <svg class="iconSvg" style="font-size: 12px" aria-hidden="true"> |
| | | <use xlink:href="#icon-shijian3"></use> |
| | | </svg> |
| | | {{item.outTime}} |
| | | </div> |
| | | <div class="invoiceForm-content"> |
| | | <svg class="iconSvg" style="font-size: 12px" aria-hidden="true"> |
| | | <use xlink:href="#icon-dizhi1"></use> |
| | | </svg> |
| | | {{item.address}} |
| | | </div> |
| | | </div> |
| | | <div class="money-main"> |
| | | <h1 class="money-box">{{item.money}}<font class="money-small">元</font></h1> |
| | | </div> |
| | | </el-checkbox> |
| | | </div> |
| | | <van-list |
| | | v-model="loading" |
| | | :finished="finished" |
| | | finished-text="没有更多了" |
| | | :offset="50" |
| | | :immediate-check="false" |
| | | @load="onLoad" |
| | | > |
| | | |
| | | <div v-for="(item,index) in invoiceData" :key="index"> |
| | | <el-checkbox |
| | | v-model="item.isShow" |
| | | class="invoiceForm-block" |
| | | @change="handleCheckedCitiesChange(invoiceData)"> |
| | | <div> |
| | | <div class="invoiceForm-content"> |
| | | |
| | | <svg class="iconSvg" style="font-size: 12px" aria-hidden="true"> |
| | | <use xlink:href="#icon-shijian3"></use> |
| | | </svg> |
| | | {{item.enterTime}} |
| | | </div> |
| | | <div class="invoiceForm-content"> |
| | | |
| | | <svg class="iconSvg" style="font-size: 12px" aria-hidden="true"> |
| | | <use xlink:href="#icon-shijian3"></use> |
| | | </svg> |
| | | {{item.outTime}} |
| | | </div> |
| | | <div class="invoiceForm-content"> |
| | | <svg class="iconSvg" style="font-size: 12px" aria-hidden="true"> |
| | | <use xlink:href="#icon-dizhi1"></use> |
| | | </svg> |
| | | {{item.address}} |
| | | </div> |
| | | </div> |
| | | <div class="money-main"> |
| | | <h1 class="money-box">{{item.money}}<font class="money-small">元</font></h1> |
| | | </div> |
| | | </el-checkbox> |
| | | </div> |
| | | </van-list> |
| | | <div class="fapiao-btn"> |
| | | <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox> |
| | | <div class="fapiao-right"> |
| | | <span class="money">金额:<font class="big">{{countMoney}}</font>元</span> |
| | | <el-button size="mini" @click="seeInvoice">下载发票</el-button> |
| | | </div> |
| | | </van-list> |
| | | <div class="fapiao-btn"> |
| | | <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox> |
| | | <div class="fapiao-right"> |
| | | <span class="money">金额:<font class="big">{{countMoney}}</font>元</span> |
| | | <el-button size="mini" @click="seeInvoice">下载发票</el-button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="middlePge-wrap" v-else> |
| | | <div class="middlePge-main"> |
| | | <img src="../../../assets/images/middlePage.png" alt=""> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | isWeiXin: false, |
| | | date:'', |
| | | checkedInvoices: [1,2], |
| | | invoiceData:[], |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.checkWeiXin() |
| | | this.date = this.$byutil.dateFormat(new Date(), "yyyy-MM"); |
| | | }, |
| | | mounted() { |
| | | this.getByCarNo() |
| | | }, |
| | | methods: { |
| | | checkWeiXin() { |
| | | let userAgent = navigator.userAgent; |
| | | console.log(userAgent) |
| | | if (userAgent.includes("MicroMessenger")) { |
| | | this.isWeiXin = true |
| | | } else { |
| | | this.isWeiXin = false |
| | | } |
| | | }, |
| | | onLoad() { |
| | | this.loading = true |
| | | this.current += 1 |
| | |
| | | .el-checkbox__inner::after{ |
| | | left: 5px; |
| | | top: 2px; |
| | | } |
| | | } |
| | | .middlePge-wrap{ |
| | | width: 100%; |
| | | height: 100%; |
| | | background: rgba(0,0,0,0.7); |
| | | .middlePge-main{ |
| | | width: 100%; |
| | | height: 100%; |
| | | img{ |
| | | width: 100%; |
| | | } |
| | | } |
| | | } |
| | | .iconSvg{ |