发票
This commit is contained in:
@@ -69,6 +69,14 @@
|
||||
<image src="../static/image/1.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view class="title">开具发票</view>
|
||||
<view class="value" @click="selectInvoice">
|
||||
<view class="invoice" v-if="!hasInvoice">本次不开具发票</view>
|
||||
<view class="invoice" v-else>{{ hasInvoice == 1 ? '个人或事业单位发票' : '企业发票' }}</view>
|
||||
<image src="../static/image/1.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<u-popup v-model="couponStatus" mode="bottom">
|
||||
<scroll-view class="coupon-choose" scroll-y style="height: 50vh;" v-if="this.couponType.type == 1">
|
||||
@@ -134,6 +142,7 @@ export default {
|
||||
orderType: '', // 订单类型 1 普通订单 2 拼团订单 3 秒杀订单 4 优惠券 5 购物车订单
|
||||
debounce: true,
|
||||
is_selfraising: 0, // 是否自提:0=》否,1=》是
|
||||
hasInvoice: 0,
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -176,9 +185,12 @@ export default {
|
||||
} else {
|
||||
if(this.$store.getters.getOrderAddress) this.addressInfo = this.$store.state.orderAddress;
|
||||
}
|
||||
this.hasInvoice = this.$store.getters.hasInvoice;
|
||||
console.log(this.hasInvoice);
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.$store.commit('updateAddress', {});
|
||||
this.$store.commit('setInvoiceInfo', {});
|
||||
},
|
||||
watch: {
|
||||
'$store.state.orderAddress'(value) {
|
||||
@@ -265,6 +277,7 @@ export default {
|
||||
address_id: this.addressInfo.address_id,
|
||||
buy_city_id: this.addressInfo.city_id,
|
||||
is_selfraising: this.is_selfraising,
|
||||
invoice_id: this.$store.getters.getInvoiceId, // 发票抬头ID,不开票传0
|
||||
}
|
||||
if(coupon.length) Object.assign(params, { voucher_id: coupon });
|
||||
if(this.orderType == 2) {
|
||||
@@ -430,7 +443,10 @@ export default {
|
||||
uni.navigateTo({
|
||||
url: '/pageE/more/Address?type=choose'
|
||||
});
|
||||
}
|
||||
},
|
||||
selectInvoice() {
|
||||
this.$u.route('/pageC/cart/selectInvoice');
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -632,6 +648,9 @@ export default {
|
||||
align-items: center;
|
||||
font-size: 30rpx;
|
||||
color:rgba(51,51,51,1);
|
||||
.invoice {
|
||||
font-size: 26rpx;
|
||||
}
|
||||
> image {
|
||||
width: 12rpx;
|
||||
height: 22rpx;
|
||||
|
||||
Reference in New Issue
Block a user