订单详情不加载问题
commit
f63c21b17a
|
@ -17,13 +17,10 @@
|
||||||
"mv-count-down": "^0.1.15",
|
"mv-count-down": "^0.1.15",
|
||||||
"psl": "^1.8.0",
|
"psl": "^1.8.0",
|
||||||
"qs": "^6.9.4",
|
"qs": "^6.9.4",
|
||||||
"swiper": "^5.2.0",
|
|
||||||
"uuid": "^8.3.2",
|
"uuid": "^8.3.2",
|
||||||
"v-distpicker": "^1.0.17",
|
"v-distpicker": "^1.0.17",
|
||||||
"view-design": "^4.3.2",
|
"view-design": "^4.3.2",
|
||||||
"vue": "^2.5.2",
|
"vue": "^2.5.2",
|
||||||
"vue-awesome": "^4.0.2",
|
|
||||||
"vue-awesome-swiper": "^4.1.1",
|
|
||||||
"vue-piczoom": "^1.0.6",
|
"vue-piczoom": "^1.0.6",
|
||||||
"vue-qr": "^2.3.0",
|
"vue-qr": "^2.3.0",
|
||||||
"vue-router": "^3.0.1",
|
"vue-router": "^3.0.1",
|
||||||
|
|
|
@ -46,3 +46,14 @@ export function pointGoods (params) {
|
||||||
params
|
params
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 获取积分商品详情
|
||||||
|
*/
|
||||||
|
export function pointGoodsDetail (id) {
|
||||||
|
return request({
|
||||||
|
url: `/buyer/promotion/pointsGoods/${id}`,
|
||||||
|
method: Method.GET,
|
||||||
|
needToken: true,
|
||||||
|
id
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
|
@ -36,9 +36,11 @@ export default {
|
||||||
},
|
},
|
||||||
components: {drawerPage},
|
components: {drawerPage},
|
||||||
computed: {
|
computed: {
|
||||||
|
// 用户信息
|
||||||
userInfo () {
|
userInfo () {
|
||||||
return Storage.getItem('userInfo');
|
return Storage.getItem('userInfo');
|
||||||
},
|
},
|
||||||
|
// 购物车商品数量
|
||||||
cartNum () {
|
cartNum () {
|
||||||
return this.$store.state.cartNum
|
return this.$store.state.cartNum
|
||||||
}
|
}
|
||||||
|
|
|
@ -144,6 +144,7 @@ import { addCartGoods } from '@/api/cart.js';
|
||||||
export default {
|
export default {
|
||||||
name: 'ShowGoods',
|
name: 'ShowGoods',
|
||||||
props: {
|
props: {
|
||||||
|
// 商品数据
|
||||||
detail: {
|
detail: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: null
|
default: null
|
||||||
|
@ -168,10 +169,7 @@ export default {
|
||||||
isCollected: false // 是否收藏
|
isCollected: false // 是否收藏
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
components: {
|
components: { PicZoom, Promotion },
|
||||||
PicZoom,
|
|
||||||
Promotion
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
select (index, value) { // 选择规格
|
select (index, value) { // 选择规格
|
||||||
this.$set(this.currentSelceted, index, value);
|
this.$set(this.currentSelceted, index, value);
|
||||||
|
|
|
@ -1,23 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="item-intro-show">
|
<div class="item-intro-show">
|
||||||
<!-- <div class="item-intro-recommend">
|
|
||||||
<div class="item-recommend-title">
|
|
||||||
<p>店铺热销</p>
|
|
||||||
</div>
|
|
||||||
<div class="item-intro-recommend-column">
|
|
||||||
<div class="item-recommend-column" v-for="(item, index) in hotList" :key="index">
|
|
||||||
<div class="item-recommend-img">
|
|
||||||
<img :src="item.img" alt="">
|
|
||||||
</div>
|
|
||||||
<div class="item-recommend-intro">
|
|
||||||
<span>
|
|
||||||
<span class="item-recommend-top-num">{{index + 1}}</span> 热销{{item.sale}}件</span>
|
|
||||||
<span class="item-recommend-price">¥{{item.price | unitPrice}}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
<div class="item-intro-detail" ref="itemIntroDetail">
|
<div class="item-intro-detail" ref="itemIntroDetail">
|
||||||
<div class="item-intro-nav item-tabs">
|
<div class="item-intro-nav item-tabs">
|
||||||
<Tabs :animated="false" @on-click="tabClick">
|
<Tabs :animated="false" @on-click="tabClick">
|
||||||
|
@ -131,7 +114,8 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
skuDetail () { // skuId
|
// 商品详情
|
||||||
|
skuDetail () {
|
||||||
return this.detail.data;
|
return this.detail.data;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -31,15 +31,13 @@
|
||||||
</template>
|
</template>
|
||||||
<!-- 限时秒杀 待完善 -->
|
<!-- 限时秒杀 待完善 -->
|
||||||
<!-- <template v-if="element.type == 'seckill'">
|
<!-- <template v-if="element.type == 'seckill'">
|
||||||
<seckill :data="element"></seckill>
|
<seckill class="mb_20"></seckill>
|
||||||
</template> -->
|
</template> -->
|
||||||
<!-- 折扣广告 -->
|
<!-- 折扣广告 -->
|
||||||
<template v-if="element.type == 'discountAdvert'">
|
<template v-if="element.type == 'discountAdvert'">
|
||||||
<div
|
<div
|
||||||
class="discountAdvert mb_20"
|
class="discountAdvert mb_20"
|
||||||
:style="{
|
:style="{'backgroundImage' :'url(' + require('@/assets/images/decorate.png')+')'}"
|
||||||
'background-image': 'url(' + element.options.bgImg.img + ')',
|
|
||||||
}"
|
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
@click="linkTo(item.url)"
|
@click="linkTo(item.url)"
|
||||||
|
|
|
@ -14,46 +14,14 @@
|
||||||
{{ actStatus == 0 ? "未开始" : "已结束" }}
|
{{ actStatus == 0 ? "未开始" : "已结束" }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="section">
|
|
||||||
<swiper ref="mySwiper" :options="swiperOptions">
|
|
||||||
<swiper-slide
|
|
||||||
v-for="(item, index) in options.list[0].goodsList"
|
|
||||||
:key="index"
|
|
||||||
class="swiper-slide"
|
|
||||||
>
|
|
||||||
<div class="content hover-pointer" @click="goPromotion">
|
|
||||||
<img :src="item.img" width="140" height="140" :alt="item.name" />
|
|
||||||
<div class="ellipsis">{{ item.name }}</div>
|
|
||||||
<div>
|
|
||||||
<span>{{ item.price | unitPrice("¥") }}</span>
|
|
||||||
<span>{{ item.originalPrice | unitPrice("¥") }}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</swiper-slide>
|
|
||||||
</swiper>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { Swiper, SwiperSlide, directive } from 'vue-awesome-swiper';
|
|
||||||
// import 'swiper/swiper-bundle.css';
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
|
||||||
Swiper,
|
|
||||||
SwiperSlide
|
|
||||||
},
|
|
||||||
directives: {
|
|
||||||
swiper: directive
|
|
||||||
},
|
|
||||||
props: {
|
|
||||||
data: {
|
|
||||||
type: Object,
|
|
||||||
default: null
|
|
||||||
}
|
|
||||||
},
|
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
options: this.data.options, // 装修数据
|
list: [], // 秒杀商品
|
||||||
actStatus: 0, // 0 未开始 1 进行中 2 已结束
|
actStatus: 0, // 0 未开始 1 进行中 2 已结束
|
||||||
actName: '限时秒杀', // 活动名称
|
actName: '限时秒杀', // 活动名称
|
||||||
currHour: '00', // 当前秒杀场
|
currHour: '00', // 当前秒杀场
|
||||||
|
@ -62,83 +30,22 @@ export default {
|
||||||
hours: 0, // 小时
|
hours: 0, // 小时
|
||||||
minutes: 0, // 分钟
|
minutes: 0, // 分钟
|
||||||
seconds: 0, // 秒
|
seconds: 0, // 秒
|
||||||
interval: undefined, // 定时器
|
interval: null, // 定时器
|
||||||
swiperOptions: { // 轮播图参数
|
swiperOptions: { // 轮播图参数
|
||||||
slidesPerView: 5,
|
// slidesPerView: 5,
|
||||||
autoplay: true,
|
// autoplay: true,
|
||||||
loop: true
|
// loop: true
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
computed: {
|
||||||
diffSeconds (val) { // 秒杀倒计时
|
|
||||||
const hours = Math.floor(val / 3600);
|
|
||||||
// 当前秒数 / 60,向下取整
|
|
||||||
// 获取到所有分钟数 3600 / 60 = 60分钟
|
|
||||||
// 对60取模,超过小时数的分钟数
|
|
||||||
const minutes = Math.floor(val / 60) % 60;
|
|
||||||
// 当前的秒数 % 60,获取到 超过小时数、分钟数的秒数(秒数)
|
|
||||||
const seconds = val % 60;
|
|
||||||
this.hours = hours < 10 ? '0' + hours : hours;
|
|
||||||
this.minutes = minutes < 10 ? '0' + minutes : minutes;
|
|
||||||
this.seconds = seconds < 10 ? '0' + seconds : seconds;
|
|
||||||
|
|
||||||
if (val === 0) {
|
|
||||||
clearInterval(this.interval);
|
|
||||||
this.hours = 0;
|
|
||||||
this.minutes = 0;
|
|
||||||
this.seconds = 0;
|
|
||||||
this.countDown(this.options.list);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted () {
|
|
||||||
this.countDown(this.options.list);
|
|
||||||
},
|
},
|
||||||
beforeDestroy () {
|
beforeDestroy () {
|
||||||
clearInterval(this.interval);
|
clearInterval(this.interval);
|
||||||
},
|
},
|
||||||
|
mounted () {
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 倒计时
|
|
||||||
countDown (list) {
|
|
||||||
/**
|
|
||||||
* 默认倒计时两小时
|
|
||||||
* 如果没有开始,则显示未开始
|
|
||||||
* 进行中显示倒计时 + 时间
|
|
||||||
* 今天的秒杀结束则显示已结束
|
|
||||||
*/
|
|
||||||
let nowHour = new Date().getHours();
|
|
||||||
if (nowHour < Number(list[0].time)) {
|
|
||||||
// 活动未开始
|
|
||||||
this.currHour = list[0].time;
|
|
||||||
this.actStatus = 0;
|
|
||||||
} else if (nowHour >= Number(list[list.length - 1].time + 2)) {
|
|
||||||
// 活动已结束
|
|
||||||
this.actStatus = 2;
|
|
||||||
this.currHour = list[list.length - 1].time;
|
|
||||||
} else {
|
|
||||||
// 活动进行中
|
|
||||||
this.actStatus = 1;
|
|
||||||
for (let i = 0; i < list.length; i++) {
|
|
||||||
if (nowHour === Number(list[i].time)) {
|
|
||||||
this.currHour = list[i].time;
|
|
||||||
}
|
|
||||||
if (
|
|
||||||
nowHour > Number(list[i].time) &&
|
|
||||||
nowHour < Number(list[i].time + 2)
|
|
||||||
) {
|
|
||||||
this.currHour = list[i].time;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// 当前0点时间戳
|
|
||||||
let zeroTime = new Date(new Date().toLocaleDateString()).getTime();
|
|
||||||
// 活动倒计时
|
|
||||||
this.diffSeconds = Math.floor((zeroTime + 3600 * 1000 * (this.currHour + 2) - new Date().getTime()) / 1000);
|
|
||||||
this.interval = setInterval(() => {
|
|
||||||
this.diffSeconds--;
|
|
||||||
}, 1000);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
goPromotion () { // 跳转秒杀页面
|
goPromotion () { // 跳转秒杀页面
|
||||||
let routeUrl = this.$router.resolve({
|
let routeUrl = this.$router.resolve({
|
||||||
path: '/seckill'
|
path: '/seckill'
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<h3>积分日志</h3>
|
<h3>积分日志</h3>
|
||||||
<Table :columns="logColumns" :data="logData.records">
|
<Table :columns="logColumns" :data="logData.records">
|
||||||
<template slot-scope="{ row }" slot="point">
|
<template slot-scope="{ row }" slot="point">
|
||||||
<div><span>{{row.pointType == "1" ? '+' : '-'}}</span>{{ row.variablePoint }}</div>
|
<div><span>{{row.pointType == "INCREASE" ? '+' : '-'}}</span>{{ row.variablePoint }}</div>
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
<!-- 分页 -->
|
<!-- 分页 -->
|
||||||
|
|
|
@ -31,11 +31,16 @@
|
||||||
<p>配送方式:{{order.deliveryMethodValue}}</p>
|
<p>配送方式:{{order.deliveryMethodValue}}</p>
|
||||||
<p>配送状态:{{order.deliverStatusValue}}</p>
|
<p>配送状态:{{order.deliverStatusValue}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="order-card" v-if="order.order.receipt">
|
<div class="order-card">
|
||||||
<h3>发票信息</h3>
|
<h3>发票信息</h3>
|
||||||
<p>发票抬头:{{order.order.receiptVO.receiptTitle}}</p>
|
<template v-if="order.order.receipt">
|
||||||
<p>发票内容:{{order.order.receiptVO.receiptContent}}</p>
|
<p>发票抬头:{{order.order.receiptVO.receiptTitle}}</p>
|
||||||
<p v-if="order.order.receiptVO.taxpayerId">纳税人识别号:{{order.order.receiptVO.taxpayerId}}</p>
|
<p>发票内容:{{order.order.receiptVO.receiptContent}}</p>
|
||||||
|
<p v-if="order.order.receiptVO.taxpayerId">纳税人识别号:{{order.order.receiptVO.taxpayerId}}</p>
|
||||||
|
</template>
|
||||||
|
<div v-else style="color:#999;margin-left:5px">
|
||||||
|
未开发票
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 订单商品 -->
|
<!-- 订单商品 -->
|
||||||
<div class="goods">
|
<div class="goods">
|
||||||
|
@ -155,6 +160,7 @@ export default {
|
||||||
p {
|
p {
|
||||||
color: #999;
|
color: #999;
|
||||||
margin: 3px;
|
margin: 3px;
|
||||||
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
h3 {
|
h3 {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
|
16794
buyer/yarn.lock
16794
buyer/yarn.lock
File diff suppressed because it is too large
Load Diff
|
@ -17,14 +17,14 @@ export default {
|
||||||
* @description api请求基础路径
|
* @description api请求基础路径
|
||||||
*/
|
*/
|
||||||
api_dev: {
|
api_dev: {
|
||||||
common: "https://common-api.pickmall.cn",
|
// common: "https://common-api.pickmall.cn",
|
||||||
buyer: "https://buyer-api.pickmall.cn",
|
// buyer: "https://buyer-api.pickmall.cn",
|
||||||
seller: "https://store-api.pickmall.cn",
|
// seller: "https://store-api.pickmall.cn",
|
||||||
manager: "https://admin-api.pickmall.cn"
|
// manager: "https://admin-api.pickmall.cn"
|
||||||
// common: 'http://192.168.0.101:8890',
|
common: 'http://192.168.0.101:8890',
|
||||||
// buyer: 'http://192.168.0.101:8888',
|
buyer: 'http://192.168.0.101:8888',
|
||||||
// seller: 'http://192.168.0.101:8889',
|
seller: 'http://192.168.0.101:8889',
|
||||||
// manager: 'http://192.168.0.101:8887'
|
manager: 'http://192.168.0.101:8887'
|
||||||
},
|
},
|
||||||
api_prod: {
|
api_prod: {
|
||||||
common: "https://common-api.pickmall.cn",
|
common: "https://common-api.pickmall.cn",
|
||||||
|
|
|
@ -12,8 +12,6 @@
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" class="mt_10">
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table" class="mt_10">
|
||||||
<!-- 页面展示 -->
|
<!-- 页面展示 -->
|
||||||
<template slot="shopDisableSlot" slot-scope="scope">
|
<template slot="shopDisableSlot" slot-scope="scope">
|
||||||
<div>
|
|
||||||
</div>
|
|
||||||
<i-switch size="large" true-value="OPEN" false-value="CLOSE" v-model="scope.row.status"
|
<i-switch size="large" true-value="OPEN" false-value="CLOSE" v-model="scope.row.status"
|
||||||
@on-change="changeSwitch(scope.row)">
|
@on-change="changeSwitch(scope.row)">
|
||||||
<span slot="open">展示</span>
|
<span slot="open">展示</span>
|
||||||
|
@ -50,13 +48,19 @@
|
||||||
<div class="div-height"> 店铺名称:{{ infoData.storeName }}</div>
|
<div class="div-height"> 店铺名称:{{ infoData.storeName }}</div>
|
||||||
<div class="div-height"> 订单号:{{ infoData.orderNo }}</div>
|
<div class="div-height"> 订单号:{{ infoData.orderNo }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="border-b">
|
<div class="border-b">
|
||||||
<List>
|
<List>
|
||||||
|
|
||||||
<ListItem>
|
<ListItem>
|
||||||
<ListItemMeta :avatar="infoData.memberProfile" :title="infoData.memberName"
|
<ListItemMeta :avatar="infoData.memberProfile" :title="infoData.memberName"
|
||||||
:description="infoData.content"/>
|
:description="infoData.content"/>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
|
<div class="score-content">
|
||||||
|
<span>物流评分:{{infoData.deliveryScore}}</span>
|
||||||
|
<span>服务评分:{{infoData.serviceScore}}</span>
|
||||||
|
<span>描述评分:{{infoData.descriptionScore}}</span>
|
||||||
|
</div>
|
||||||
<div class="" v-if="infoData.haveImage">
|
<div class="" v-if="infoData.haveImage">
|
||||||
评价图
|
评价图
|
||||||
<div style="margin-left: 40px">
|
<div style="margin-left: 40px">
|
||||||
|
@ -82,7 +86,6 @@
|
||||||
<img style="width: 100px;height: 110px" v-for="(img,index) in infoData.replyImage.split(',')" :key="index"
|
<img style="width: 100px;height: 110px" v-for="(img,index) in infoData.replyImage.split(',')" :key="index"
|
||||||
:src="img" alt=""/>
|
:src="img" alt=""/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -142,14 +145,28 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
return h("Tag", {props: {color: "red",},}, "差评");
|
return h("Tag", {props: {color: "red",},}, "差评");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "物流评分",
|
||||||
|
key: "deliveryScore",
|
||||||
|
render: (h, params) => {
|
||||||
|
return h('div',params.row.deliveryScore || 5 + '星')
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "评价内容",
|
title: "服务评分",
|
||||||
key: "content",
|
key: "deliveryScore",
|
||||||
align: "left",
|
render: (h, params) => {
|
||||||
minWidth: 200,
|
return h('div',params.row.serviceScore || 5 + '星')
|
||||||
tooltip: true,
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "描述评分",
|
||||||
|
key: "deliveryScore",
|
||||||
|
render: (h, params) => {
|
||||||
|
return h('div',params.row.descriptionScore || 5 + '星')
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "评价时间",
|
title: "评价时间",
|
||||||
|
@ -348,4 +365,8 @@ label {
|
||||||
.div-height{
|
.div-height{
|
||||||
line-height: 25px;
|
line-height: 25px;
|
||||||
}
|
}
|
||||||
|
.score-content {
|
||||||
|
margin: 5px 0;
|
||||||
|
span{margin-right: 20px;}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -125,7 +125,7 @@
|
||||||
></liliDialog>
|
></liliDialog>
|
||||||
<!-- 选择图片 -->
|
<!-- 选择图片 -->
|
||||||
<Modal width="1200px" v-model="picModelFlag" footer-hide>
|
<Modal width="1200px" v-model="picModelFlag" footer-hide>
|
||||||
<ossManage @callback="callbackSelected" ref="ossManage" />
|
<ossManage @callback="callbackSelected" :isComponent="true" ref="ossManage" />
|
||||||
</Modal>
|
</Modal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -130,7 +130,7 @@
|
||||||
></liliDialog>
|
></liliDialog>
|
||||||
<!-- 选择图片 -->
|
<!-- 选择图片 -->
|
||||||
<Modal width="1200px" v-model="picModelFlag" footer-hide>
|
<Modal width="1200px" v-model="picModelFlag" footer-hide>
|
||||||
<ossManage @callback="callbackSelected" ref="ossManage" />
|
<ossManage @callback="callbackSelected" :isComponent="true" ref="ossManage" />
|
||||||
</Modal>
|
</Modal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -113,7 +113,7 @@
|
||||||
></liliDialog>
|
></liliDialog>
|
||||||
<!-- 选择图片 -->
|
<!-- 选择图片 -->
|
||||||
<Modal width="1200px" v-model="picModelFlag" footer-hide>
|
<Modal width="1200px" v-model="picModelFlag" footer-hide>
|
||||||
<ossManage @callback="callbackSelected" ref="ossManage" />
|
<ossManage @callback="callbackSelected" :isComponent="true" ref="ossManage" />
|
||||||
</Modal>
|
</Modal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
></liliDialog>
|
></liliDialog>
|
||||||
<!-- 选择图片 -->
|
<!-- 选择图片 -->
|
||||||
<Modal width="1200px" v-model="picModelFlag" footer-hide>
|
<Modal width="1200px" v-model="picModelFlag" footer-hide>
|
||||||
<ossManage @callback="callbackSelected" ref="ossManage" />
|
<ossManage @callback="callbackSelected" :isComponent="true" ref="ossManage" />
|
||||||
</Modal>
|
</Modal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -134,7 +134,7 @@
|
||||||
></liliDialog>
|
></liliDialog>
|
||||||
<!-- 选择图片 -->
|
<!-- 选择图片 -->
|
||||||
<Modal width="1200px" v-model="picModelFlag" footer-hide>
|
<Modal width="1200px" v-model="picModelFlag" footer-hide>
|
||||||
<ossManage @callback="callbackSelected" ref="ossManage" />
|
<ossManage @callback="callbackSelected" :isComponent="true" ref="ossManage" />
|
||||||
</Modal>
|
</Modal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -200,7 +200,7 @@
|
||||||
></liliDialog>
|
></liliDialog>
|
||||||
<!-- 选择图片 -->
|
<!-- 选择图片 -->
|
||||||
<Modal width="1200px" v-model="picModelFlag" footer-hide>
|
<Modal width="1200px" v-model="picModelFlag" footer-hide>
|
||||||
<ossManage @callback="callbackSelected" ref="ossManage" />
|
<ossManage @callback="callbackSelected" :isComponent="true" ref="ossManage" />
|
||||||
</Modal>
|
</Modal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -50,10 +50,8 @@ export default {
|
||||||
const data = {
|
const data = {
|
||||||
id: this.$route.query.id,
|
id: this.$route.query.id,
|
||||||
pageData: modelForm,
|
pageData: modelForm,
|
||||||
pageShow,
|
pageShow
|
||||||
};
|
};
|
||||||
console.log(this.modelForm);
|
|
||||||
|
|
||||||
API_floor.updateHome(this.$route.query.id, data).then((res) => {
|
API_floor.updateHome(this.$route.query.id, data).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$Message.success("保存模板成功");
|
this.$Message.success("保存模板成功");
|
||||||
|
|
|
@ -45,7 +45,6 @@ export default {
|
||||||
// 监听路由变化
|
// 监听路由变化
|
||||||
$route: {
|
$route: {
|
||||||
handler: function (val, oldVal) {
|
handler: function (val, oldVal) {
|
||||||
console.log(val);
|
|
||||||
if (val.meta.firstRouterName && val.meta.firstRouterName !== this.currNav) {
|
if (val.meta.firstRouterName && val.meta.firstRouterName !== this.currNav) {
|
||||||
this.selectNav(val.meta.firstRouterName)
|
this.selectNav(val.meta.firstRouterName)
|
||||||
}
|
}
|
||||||
|
|
|
@ -172,11 +172,8 @@
|
||||||
</li>
|
</li>
|
||||||
<li v-if="orderInfo.order.priceDetailDTO.payPoint != 0">
|
<li v-if="orderInfo.order.priceDetailDTO.payPoint != 0">
|
||||||
<span class="label">使用积分:</span>
|
<span class="label">使用积分:</span>
|
||||||
<span class="txt">{{
|
<span class="txt flowPrice">{{orderInfo.order.priceDetailDTO.payPoint}}</span>
|
||||||
orderInfo.order.priceDetailDTO.payPoint
|
|
||||||
}}</span>
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<span class="label">应付金额:</span>
|
<span class="label">应付金额:</span>
|
||||||
<span class="txt flowPrice">¥{{ orderInfo.order.priceDetailDTO.flowPrice | unitPrice }}</span>
|
<span class="txt flowPrice">¥{{ orderInfo.order.priceDetailDTO.flowPrice | unitPrice }}</span>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
<div class="card-list">
|
<div class="card-list">
|
||||||
<Card v-for="words in data" class="card-item" onclick="">
|
<Card v-for="words in data" class="card-item" :key="words" onclick="">
|
||||||
<p><a href="#" slot="extra" @click.prevent="add(words)">{{ words }}</a></p>
|
<p><a href="#" slot="extra" @click.prevent="add(words)">{{ words }}</a></p>
|
||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect">
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table" class="mt_10" @on-selection-change="changeSelect">
|
||||||
</Table>
|
</Table>
|
||||||
<Row type="flex" justify="end" class="mt_10">
|
<Row type="flex" justify="end" class="mt_10">
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
||||||
|
@ -140,44 +140,44 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 初始化数据
|
||||||
init() {
|
init() {
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
},
|
},
|
||||||
|
// 分页 改变页码
|
||||||
changePage(v) {
|
changePage(v) {
|
||||||
this.searchForm.pageNumber = v;
|
this.searchForm.pageNumber = v;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
this.clearSelectAll();
|
this.clearSelectAll();
|
||||||
},
|
},
|
||||||
|
// 分页 改变页数
|
||||||
changePageSize(v) {
|
changePageSize(v) {
|
||||||
|
this.searchForm.pageNumber = 1
|
||||||
this.searchForm.pageSize = v;
|
this.searchForm.pageSize = v;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
},
|
},
|
||||||
|
// 搜索
|
||||||
handleSearch() {
|
handleSearch() {
|
||||||
this.searchForm.pageNumber = 1;
|
this.searchForm.pageNumber = 1;
|
||||||
this.searchForm.pageSize = 10;
|
|
||||||
this.getDataList();
|
|
||||||
},
|
|
||||||
changeSort(e) {
|
|
||||||
this.searchForm.sort = e.key;
|
|
||||||
this.searchForm.order = e.order;
|
|
||||||
if (e.order === "normal") {
|
|
||||||
this.searchForm.order = "";
|
|
||||||
}
|
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
},
|
},
|
||||||
|
// 清除选中状态
|
||||||
clearSelectAll() {
|
clearSelectAll() {
|
||||||
this.$refs.table.selectAll(false);
|
this.$refs.table.selectAll(false);
|
||||||
},
|
},
|
||||||
|
// 选中回调
|
||||||
changeSelect(e) {
|
changeSelect(e) {
|
||||||
this.selectList = e;
|
this.selectList = e;
|
||||||
this.selectCount = e.length;
|
this.selectCount = e.length;
|
||||||
},
|
},
|
||||||
|
// 起止时间从新赋值
|
||||||
selectDateRange(v) {
|
selectDateRange(v) {
|
||||||
if (v) {
|
if (v) {
|
||||||
this.searchForm.startDate = v[0];
|
this.searchForm.startDate = v[0];
|
||||||
this.searchForm.endDate = v[1];
|
this.searchForm.endDate = v[1];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 获取列表数据
|
||||||
getDataList() {
|
getDataList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
|
||||||
|
@ -200,6 +200,7 @@ export default {
|
||||||
this.total = this.data.length;
|
this.total = this.data.length;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
},
|
},
|
||||||
|
// 详情
|
||||||
detail(v) {
|
detail(v) {
|
||||||
let id = v.id;
|
let id = v.id;
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
|
|
|
@ -1,99 +1,85 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<template>
|
<Card>
|
||||||
<Row>
|
<p slot="title">商家信息</p>
|
||||||
<i-col span="24">
|
<div class="flex flex_align_item">
|
||||||
<Card>
|
<p>店铺名称:{{ bill.storeName }}</p>
|
||||||
<p slot="title">商家信息</p>
|
<p>银行开户名:{{ bill.bankAccountName }}</p>
|
||||||
<div class="flex flex_align_item">
|
<p>银行账号:{{ bill.bankAccountNumber }}</p>
|
||||||
<p>店铺名称:{{ bill.storeName }}</p>
|
<p>开户行支行名称:{{ bill.bankName }}</p>
|
||||||
<p>银行开户名:{{ bill.bankAccountName }}</p>
|
<p>支行联行号:{{ bill.bankCode }}</p>
|
||||||
<p>银行账号:{{ bill.bankAccountNumber }}</p>
|
</div>
|
||||||
<p>开户行支行名称:{{ bill.bankName }}</p>
|
</Card>
|
||||||
<p>支行联行号:{{ bill.bankCode }}</p>
|
<Card class="mt_10 mb_10">
|
||||||
</div>
|
<p slot="title">账单详细</p>
|
||||||
</Card>
|
|
||||||
</i-col>
|
|
||||||
</Row>
|
|
||||||
</template>
|
|
||||||
<template>
|
|
||||||
<Row>
|
|
||||||
<i-col span="24">
|
|
||||||
<Card>
|
|
||||||
<p slot="title">账单详细</p>
|
|
||||||
|
|
||||||
<div class="tips-status">
|
<div class="tips-status">
|
||||||
<span>商品状态</span>
|
<span>商品状态</span>
|
||||||
|
|
||||||
<span class="theme_color">{{
|
<span class="theme_color">{{
|
||||||
bill.billStatus | unixSellerBillStatus
|
bill.billStatus | unixSellerBillStatus
|
||||||
}}</span>
|
}}</span>
|
||||||
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
v-if="bill.billStatus == 'CHECK'"
|
v-if="bill.billStatus == 'CHECK'"
|
||||||
size="mini"
|
size="mini"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="pass()"
|
@click="pass()"
|
||||||
>付款</Button
|
>付款</Button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<i-table :columns="columns" :data="data" stripe></i-table>
|
<i-table :columns="columns" :data="data" stripe></i-table>
|
||||||
</Card>
|
</Card>
|
||||||
</i-col>
|
<Tabs active-key="key1" @on-click="clickTabs">
|
||||||
</Row>
|
<Tab-pane label="入账流水" key="key1">
|
||||||
</template>
|
<Card>
|
||||||
<template>
|
<Table
|
||||||
<Tabs active-key="key1" @on-click="clickTabs">
|
:loading="loading"
|
||||||
<Tab-pane label="入账流水" key="key1">
|
border
|
||||||
<Card>
|
:columns="orderColumns"
|
||||||
<Table
|
:data="order"
|
||||||
:loading="loading"
|
ref="table"
|
||||||
border
|
></Table>
|
||||||
:columns="orderColumns"
|
<Row type="flex" justify="end" class="mt_10">
|
||||||
:data="order"
|
<Page
|
||||||
ref="table"
|
:current="orderParam.pageNumber"
|
||||||
></Table>
|
:total="orderTotal"
|
||||||
<Row type="flex" justify="end" class="mt_10">
|
:page-size="orderParam.pageSize"
|
||||||
<Page
|
@on-change="orderChangePage"
|
||||||
:current="orderParam.pageNumber"
|
@on-page-size-change="orderChangePageSize"
|
||||||
:total="orderTotal"
|
size="small"
|
||||||
:page-size="orderParam.pageSize"
|
show-total
|
||||||
@on-change="orderChangePage"
|
show-elevator
|
||||||
@on-page-size-change="orderChangePageSize"
|
></Page>
|
||||||
size="small"
|
</Row>
|
||||||
show-total
|
</Card>
|
||||||
show-elevator
|
</Tab-pane>
|
||||||
></Page>
|
<Tab-pane label="退款流水" key="key2">
|
||||||
</Row>
|
<Card>
|
||||||
</Card>
|
<Table
|
||||||
</Tab-pane>
|
:loading="loading"
|
||||||
<Tab-pane label="退款流水" key="key2">
|
border
|
||||||
<Card>
|
:columns="refundColumns"
|
||||||
<Table
|
:data="refund"
|
||||||
:loading="loading"
|
ref="table"
|
||||||
border
|
></Table>
|
||||||
:columns="refundColumns"
|
<Row type="flex" justify="end" class="mt_10">
|
||||||
:data="refund"
|
<Page
|
||||||
ref="table"
|
:current="refundParam.pageNumber"
|
||||||
></Table>
|
:total="refundTotal"
|
||||||
<Row type="flex" justify="end" class="mt_10">
|
:page-size="refundParam.pageSize"
|
||||||
<Page
|
@on-change="getRefund()"
|
||||||
:current="refundParam.pageNumber"
|
@on-page-size-change="getRefund()"
|
||||||
:total="refundTotal"
|
size="small"
|
||||||
:page-size="refundParam.pageSize"
|
show-total
|
||||||
@on-change="getRefund()"
|
show-elevator
|
||||||
@on-page-size-change="getRefund()"
|
></Page>
|
||||||
size="small"
|
</Row>
|
||||||
show-total
|
</Card>
|
||||||
show-elevator
|
</Tab-pane>
|
||||||
></Page>
|
</Tabs>
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Tab-pane>
|
|
||||||
</Tabs>
|
|
||||||
</template>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
@ -185,6 +171,26 @@ export default {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "砍价商品结算价格",
|
||||||
|
key: "kanjiaSettlementPrice",
|
||||||
|
render: (h, params) => {
|
||||||
|
return h(
|
||||||
|
"div",
|
||||||
|
this.$options.filters.unitPrice(params.row.kanjiaSettlementPrice, "¥")
|
||||||
|
);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "积分商品结算价格",
|
||||||
|
key: "pointSettlementPrice",
|
||||||
|
render: (h, params) => {
|
||||||
|
return h(
|
||||||
|
"div",
|
||||||
|
this.$options.filters.unitPrice(params.row.pointSettlementPrice, "¥")
|
||||||
|
);
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: "平台分佣",
|
title: "平台分佣",
|
||||||
key: "commissionPrice",
|
key: "commissionPrice",
|
||||||
|
@ -199,7 +205,6 @@ export default {
|
||||||
{
|
{
|
||||||
title: "平台优惠券",
|
title: "平台优惠券",
|
||||||
key: "siteCouponPrice",
|
key: "siteCouponPrice",
|
||||||
minWidth: 120,
|
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if(params.row.siteCouponPrice == null){
|
if(params.row.siteCouponPrice == null){
|
||||||
return h(
|
return h(
|
||||||
|
|
|
@ -97,17 +97,6 @@
|
||||||
<FormItem
|
<FormItem
|
||||||
label="路由名称"
|
label="路由名称"
|
||||||
prop="name"
|
prop="name"
|
||||||
v-if="form.level == 0"
|
|
||||||
class="block-tool"
|
|
||||||
>
|
|
||||||
<Tooltip placement="right" content="路由name,需英文唯一,跳转页面用">
|
|
||||||
<Input v-model="form.name"/>
|
|
||||||
</Tooltip>
|
|
||||||
</FormItem>
|
|
||||||
<FormItem
|
|
||||||
label="路由名称"
|
|
||||||
prop="name"
|
|
||||||
v-if="form.level != 0"
|
|
||||||
class="block-tool"
|
class="block-tool"
|
||||||
>
|
>
|
||||||
<Tooltip placement="right" content="路由name,需英文唯一,跳转页面用" transfer>
|
<Tooltip placement="right" content="路由name,需英文唯一,跳转页面用" transfer>
|
||||||
|
@ -201,17 +190,6 @@
|
||||||
<FormItem
|
<FormItem
|
||||||
label="路由名称"
|
label="路由名称"
|
||||||
prop="name"
|
prop="name"
|
||||||
v-if="formAdd.level == 0"
|
|
||||||
class="block-tool"
|
|
||||||
>
|
|
||||||
<Tooltip placement="right" content="路由name,需英文唯一,跳转页面用">
|
|
||||||
<Input v-model="formAdd.name"/>
|
|
||||||
</Tooltip>
|
|
||||||
</FormItem>
|
|
||||||
<FormItem
|
|
||||||
label="路由名称"
|
|
||||||
prop="name"
|
|
||||||
v-if="formAdd.level != 0"
|
|
||||||
class="block-tool"
|
class="block-tool"
|
||||||
>
|
>
|
||||||
<Tooltip placement="right" content="路由name,需英文唯一,跳转页面用">
|
<Tooltip placement="right" content="路由name,需英文唯一,跳转页面用">
|
||||||
|
|
|
@ -26,9 +26,7 @@
|
||||||
style="width: 200px"
|
style="width: 200px"
|
||||||
/>
|
/>
|
||||||
</Form-item>
|
</Form-item>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn"
|
|
||||||
>搜索
|
|
||||||
</Button>
|
|
||||||
<Form-item label="上传时间">
|
<Form-item label="上传时间">
|
||||||
<DatePicker
|
<DatePicker
|
||||||
v-model="selectDate"
|
v-model="selectDate"
|
||||||
|
@ -40,7 +38,9 @@
|
||||||
style="width: 200px"
|
style="width: 200px"
|
||||||
></DatePicker>
|
></DatePicker>
|
||||||
</Form-item>
|
</Form-item>
|
||||||
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn"
|
||||||
|
>搜索
|
||||||
|
</Button>
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<div class="oss-operation padding-row">
|
<div class="oss-operation padding-row">
|
||||||
|
@ -273,6 +273,12 @@ import config from "@/config";
|
||||||
var dp;
|
var dp;
|
||||||
export default {
|
export default {
|
||||||
name: "oss-manage",
|
name: "oss-manage",
|
||||||
|
props:{
|
||||||
|
isComponent:{
|
||||||
|
default: false,
|
||||||
|
type:Boolean
|
||||||
|
}
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
config, // api地址
|
config, // api地址
|
||||||
|
@ -551,6 +557,11 @@ export default {
|
||||||
pageSizeOpts: [5, 10, 20], // 页码展示项
|
pageSizeOpts: [5, 10, 20], // 页码展示项
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
watch:{
|
||||||
|
selectImage(val) {
|
||||||
|
if (val && !this.data.length) this.init()
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/**
|
/**
|
||||||
* 选择
|
* 选择
|
||||||
|
@ -811,11 +822,14 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.init();
|
if(!this.isComponent) { // 是组件的话,初始化不调用接口
|
||||||
|
this.init();
|
||||||
|
}
|
||||||
this.baseUrl =
|
this.baseUrl =
|
||||||
process.env.NODE_ENV === "development"
|
process.env.NODE_ENV === "development"
|
||||||
? this.config.api_dev.common
|
? this.config.api_dev.common
|
||||||
: this.config.api_prod.common;
|
: this.config.api_prod.common;
|
||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -22,7 +22,10 @@ export default {
|
||||||
buyer: "https://buyer-api.pickmall.cn",
|
buyer: "https://buyer-api.pickmall.cn",
|
||||||
seller: "https://store-api.pickmall.cn",
|
seller: "https://store-api.pickmall.cn",
|
||||||
manager: "https://admin-api.pickmall.cn"
|
manager: "https://admin-api.pickmall.cn"
|
||||||
|
// common: 'http://192.168.0.101:8890',
|
||||||
|
// buyer: 'http://192.168.0.101:8888',
|
||||||
|
// seller: 'http://192.168.0.101:8889',
|
||||||
|
// manager: 'http://192.168.0.101:8887'
|
||||||
},
|
},
|
||||||
api_prod: {
|
api_prod: {
|
||||||
common: "https://common-api.pickmall.cn",
|
common: "https://common-api.pickmall.cn",
|
||||||
|
|
|
@ -507,7 +507,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 返回售后状态中文描述
|
// 返回售后状态中文描述
|
||||||
filterStatus(status) {
|
filterStatus(status) {
|
||||||
let label = "";
|
let label = '';
|
||||||
for (let i = 0; i < this.afterSaleStatus.length; i++) {
|
for (let i = 0; i < this.afterSaleStatus.length; i++) {
|
||||||
const obj = this.afterSaleStatus[i];
|
const obj = this.afterSaleStatus[i];
|
||||||
if (obj.status === status) {
|
if (obj.status === status) {
|
||||||
|
@ -518,8 +518,6 @@ export default {
|
||||||
return label;
|
return label;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.sn = this.$route.query.sn;
|
this.sn = this.$route.query.sn;
|
||||||
this.getDetail();
|
this.getDetail();
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
</Form-item>
|
</Form-item>
|
||||||
<Form-item label="状态" prop="receiptStatus">
|
<Form-item label="状态" prop="receiptStatus">
|
||||||
<Select v-model="searchForm.receiptStatus" placeholder="请选择" clearable style="width: 200px">
|
<Select v-model="searchForm.receiptStatus" placeholder="请选择" clearable style="width: 200px">
|
||||||
<Option value="0">未开票</Option>
|
<Option :value="0">未开票</Option>
|
||||||
<Option value="1">已开票</Option>
|
<Option :value="1">已开票</Option>
|
||||||
</Select>
|
</Select>
|
||||||
</Form-item>
|
</Form-item>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
|
@ -50,7 +50,7 @@ export default {
|
||||||
pageSize: 10, // 页面大小
|
pageSize: 10, // 页面大小
|
||||||
sort: "createTime", // 默认排序字段
|
sort: "createTime", // 默认排序字段
|
||||||
order: "desc", // 默认排序方式
|
order: "desc", // 默认排序方式
|
||||||
receiptStatus: "", // 起始时间
|
receiptStatus: "", // 发票状态
|
||||||
},
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
|
@ -110,13 +110,13 @@ export default {
|
||||||
width: 100,
|
width: 100,
|
||||||
tooltip: true,
|
tooltip: true,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if (params.row.receiptStatus == 0) {
|
if (params.row.receiptStatus === 0) {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h("tag", { props: { color: "volcano" } }, "未开票"),
|
h("tag", { props: { color: "volcano" } }, "未开票"),
|
||||||
]);
|
]);
|
||||||
} else {
|
} else {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h("tag", { props: { color: "green" } }, "未开票"),
|
h("tag", { props: { color: "green" } }, "已开票"),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -165,17 +165,14 @@ export default {
|
||||||
{
|
{
|
||||||
title: "入账时间",
|
title: "入账时间",
|
||||||
key: "createTime",
|
key: "createTime",
|
||||||
minWidth: 120
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "订单编号",
|
title: "订单编号",
|
||||||
key: "sn",
|
key: "sn",
|
||||||
minWidth: 120
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "订单金额",
|
title: "订单金额",
|
||||||
key: "finalPrice",
|
key: "finalPrice",
|
||||||
minWidth: 120,
|
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h(
|
return h(
|
||||||
"div",
|
"div",
|
||||||
|
@ -183,10 +180,29 @@ export default {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "砍价商品结算价格",
|
||||||
|
key: "kanjiaSettlementPrice",
|
||||||
|
render: (h, params) => {
|
||||||
|
return h(
|
||||||
|
"div",
|
||||||
|
this.$options.filters.unitPrice(params.row.kanjiaSettlementPrice, "¥")
|
||||||
|
);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "积分商品结算价格",
|
||||||
|
key: "pointSettlementPrice",
|
||||||
|
render: (h, params) => {
|
||||||
|
return h(
|
||||||
|
"div",
|
||||||
|
this.$options.filters.unitPrice(params.row.pointSettlementPrice, "¥")
|
||||||
|
);
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: "平台分佣",
|
title: "平台分佣",
|
||||||
key: "commissionPrice",
|
key: "commissionPrice",
|
||||||
minWidth: 120,
|
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h(
|
return h(
|
||||||
"div",
|
"div",
|
||||||
|
@ -197,7 +213,6 @@ export default {
|
||||||
{
|
{
|
||||||
title: "平台优惠券",
|
title: "平台优惠券",
|
||||||
key: "siteCouponPrice",
|
key: "siteCouponPrice",
|
||||||
minWidth: 120,
|
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if(params.row.siteCouponPrice == null){
|
if(params.row.siteCouponPrice == null){
|
||||||
return h(
|
return h(
|
||||||
|
@ -216,7 +231,6 @@ export default {
|
||||||
{
|
{
|
||||||
title: "分销金额",
|
title: "分销金额",
|
||||||
key: "distributionRebate",
|
key: "distributionRebate",
|
||||||
minWidth: 100,
|
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if(params.row.distributionRebate == null){
|
if(params.row.distributionRebate == null){
|
||||||
return h(
|
return h(
|
||||||
|
@ -235,7 +249,6 @@ export default {
|
||||||
{
|
{
|
||||||
title: "应结金额",
|
title: "应结金额",
|
||||||
key: "billPrice",
|
key: "billPrice",
|
||||||
minWidth: 120,
|
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h(
|
return h(
|
||||||
"div",
|
"div",
|
||||||
|
|
Loading…
Reference in New Issue