|
@@ -1,21 +1,15 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="iApp">
|
|
<div class="iApp">
|
|
|
<div class="log_list" :style="{ height: height }">
|
|
<div class="log_list" :style="{ height: height }">
|
|
|
- <div class="list_box" v-for="(item, index) of list" :key="index">
|
|
|
|
|
|
|
+ <div class="list_box" v-for="(item, index) of list" :key="index" @click="toDetail(item.fpqqlsh)">
|
|
|
<div class="list_item">
|
|
<div class="list_item">
|
|
|
<div class="p1 flex_r flex_jb c05">
|
|
<div class="p1 flex_r flex_jb c05">
|
|
|
- <span>订单号:{{ item.order_sn }}</span>
|
|
|
|
|
- <span>{{ $day(item.add_time * 1000).format("YYYY-MM-DD") }}</span>
|
|
|
|
|
|
|
+ <span>状态:{{ typeStatus(item.status) }}</span>
|
|
|
|
|
+ <span>{{item.create_time}}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="p2 flex_r flex_jb">
|
|
<div class="p2 flex_r flex_jb">
|
|
|
- <img :src="item.original_img" class="odr_img" alt />
|
|
|
|
|
- <div class="odr_info flex_c flex_jb">
|
|
|
|
|
- <div class="tit ellipsis1">{{ item.goods_name }}</div>
|
|
|
|
|
- <div class="num">数量 x{{ item.goods_num }}</div>
|
|
|
|
|
- <div class="money flex_r flex_jb">
|
|
|
|
|
- <span>金额{{ item.total_amount }}</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="tit ellipsis1">电子发票</div>
|
|
|
|
|
+ <span class="money">金额{{ item.money }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -69,7 +63,7 @@ export default {
|
|
|
page: this.page,
|
|
page: this.page,
|
|
|
rows: this.rows,
|
|
rows: this.rows,
|
|
|
};
|
|
};
|
|
|
- post("invoice/orderList", data).then((res) => {
|
|
|
|
|
|
|
+ post("invoice/myInvoice", data).then((res) => {
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
|
this.list = this.list.concat(res.data.data);
|
|
this.list = this.list.concat(res.data.data);
|
|
|
this.total = res.data.total;
|
|
this.total = res.data.total;
|
|
@@ -79,42 +73,26 @@ export default {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- checkboxChange(e, item) {
|
|
|
|
|
- this.trueTotal = 0;
|
|
|
|
|
- this.money = 0;
|
|
|
|
|
- if (item.isclick == true) {
|
|
|
|
|
- this.$set(item, "isclick", false);
|
|
|
|
|
- } else {
|
|
|
|
|
- this.$set(item, "isclick", true);
|
|
|
|
|
- }
|
|
|
|
|
- for (let i of this.list) {
|
|
|
|
|
- if (i.isclick) {
|
|
|
|
|
- this.trueTotal++;
|
|
|
|
|
- this.money = this.money + i.total_amount * 1;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- toEditinvoice() {
|
|
|
|
|
- if (this.trueTotal == 0) {
|
|
|
|
|
- appEv.errTips("请先选择订单");
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- let list = []
|
|
|
|
|
- ;
|
|
|
|
|
- for (let i of this.list) {
|
|
|
|
|
- if (i.isclick == true) {
|
|
|
|
|
- list.push(i.order_sn);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- console.log(list,"qqqq");
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: "/pagesB/invoice/editinvoice?icheckList="+ list.toString() + '&money=' + this.money,
|
|
|
|
|
- });
|
|
|
|
|
- // this.goto("/pagesB/invoice/editinvoice",{checkList : list.toString(),money:this.money});
|
|
|
|
|
|
|
+ toDetail(id){
|
|
|
|
|
+ this.goto("/pagesB/invoice/Billingresult",{id : id});
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
- computed: {},
|
|
|
|
|
- watch: {},
|
|
|
|
|
|
|
+ computed: {
|
|
|
|
|
+ typeStatus(){
|
|
|
|
|
+ return (da) => {
|
|
|
|
|
+ let str;
|
|
|
|
|
+ if (da === 1) str = "已开票";
|
|
|
|
|
+ if (da === 2) str = "开票失败";
|
|
|
|
|
+ if (da === 4) str = "红冲发票";
|
|
|
|
|
+ if (da === 5) str = "开票中";
|
|
|
|
|
+ if (da === 6) str = "发票作废";
|
|
|
|
|
+ return str;
|
|
|
|
|
+ };
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ watch: {
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
<style scoped lang='scss'>
|
|
<style scoped lang='scss'>
|
|
@@ -235,5 +213,9 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ .money{
|
|
|
|
|
+ color:#2db389;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|