修改bug

master
mabo 2021-06-30 15:51:14 +08:00
parent 950b8a097c
commit c9e58f3586
12 changed files with 73 additions and 60 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

View File

@ -111,7 +111,7 @@
<span class="inventory"> 库存{{skuDetail.quantity}}</span> <span class="inventory"> 库存{{skuDetail.quantity}}</span>
</div> </div>
</div> </div>
<div class="item-select" v-if="skuDetail.goodsType !== 'VIRTUAL_GOODS'"> <div class="item-select" v-if="skuDetail.goodsType !== 'VIRTUAL_GOODS' || skuDetail.weight === 0">
<div class="item-select-title"> <div class="item-select-title">
<p>重量</p> <p>重量</p>
</div> </div>

View File

@ -31,7 +31,7 @@ export default {
return { return {
options: this.data.options // options: this.data.options //
}; };
}, }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View File

@ -15,7 +15,7 @@
> >
<div class="user-icon"> <div class="user-icon">
<div class="user-img"> <div class="user-img">
<img :src="userInfo.face" v-if="userInfo.face" alt /> <img :src="userInfo.face" style="width:100%;height:100%;" v-if="userInfo.face" alt />
<Avatar icon="ios-person" class="mb_10" v-else size="96" /> <Avatar icon="ios-person" class="mb_10" v-else size="96" />
</div> </div>
<p>{{userInfo.nickName}}</p> <p>{{userInfo.nickName}}</p>

View File

@ -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.100:8890', common: 'http://192.168.0.109:8890',
// buyer: 'http://192.168.0.100:8888', buyer: 'http://192.168.0.109:8888',
// seller: 'http://192.168.0.100:8889', seller: 'http://192.168.0.109:8889',
// manager: 'http://192.168.0.100:8887' manager: 'http://192.168.0.109:8887'
}, },
api_prod: { api_prod: {
common: "https://common-api.pickmall.cn", common: "https://common-api.pickmall.cn",

View File

@ -100,7 +100,7 @@ export default {
}, },
{ {
title: "推广单数", title: "推广单数",
key: "orderNum", key: "distributionOrderCount",
minWidth: 120, minWidth: 120,
width: 150, width: 150,
}, },
@ -124,7 +124,7 @@ export default {
render: (h, params) => { render: (h, params) => {
return h( return h(
"div", "div",
this.$options.filters.unitPrice(params.row.rebateTotal, "¥") this.$options.filters.unitPrice(params.row.canRebate, "¥")
); );
}, },
}, },
@ -136,7 +136,7 @@ export default {
render: (h, params) => { render: (h, params) => {
return h( return h(
"div", "div",
this.$options.filters.unitPrice(params.row.rebateTotal, "¥") this.$options.filters.unitPrice(params.row.commissionFrozen, "¥")
); );
}, },
}, },

View File

@ -3,12 +3,12 @@
<Card> <Card>
<Row @keydown.enter.native="handleSearch" > <Row @keydown.enter.native="handleSearch" >
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form"> <Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
<Input class="search-input" v-model="searchForm.memberName"> <Form-item label="会员名称">
<span slot="prepend">会员名称</span> <Input class="search-input" v-model="searchForm.memberName"></Input>
</Input> </Form-item>
<Input class="search-input" v-model="searchForm.sn"> <Form-item label="编号">
<span slot="prepend">编号</span> <Input class="search-input" v-model="searchForm.sn"></Input>
</Input> </Form-item>
<Form-item label="状态" style="margin-left: -20px"> <Form-item label="状态" style="margin-left: -20px">
<Select v-model="searchForm.distributionCashStatus" style="width:150px;"> <Select v-model="searchForm.distributionCashStatus" style="width:150px;">
<Option v-for="item in cashStatusList" :value="item.value" :key="item.value">{{ item.label }}</Option> <Option v-for="item in cashStatusList" :value="item.value" :key="item.value">{{ item.label }}</Option>
@ -114,7 +114,7 @@ export default {
}, },
{ {
title: "处理时间", title: "处理时间",
key: "payTime", key: "updateTime",
minWidth: 130 minWidth: 130
}, },
{ {

View File

@ -21,16 +21,16 @@
<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" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect">
<template slot="goodsName" slot-scope="{row}"> <template slot="goodsName" slot-scope="{row}">
<div> <div>
<div class="div-zoom"> <div class="div-zoom">
<a @click="linkTo(row.goodsId,row.skuId)">{{row.goodsName}}</a> <a @click="linkTo(row.goodsId,row.skuId)">{{row.goodsName}}</a>
</div>
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
<div slot="content">
<vue-qr :text="wapLinkTo(row.goodsId,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
</div>
<img src="../../assets/qrcode.svg" class="hover-pointer" width="20" height="20" alt="">
</Poptip>
</div> </div>
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
<div slot="content">
<vue-qr :text="wapLinkTo(row.goodsId,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
</div>
<img src="../../assets/qrcode.svg" class="hover-pointer" width="20" height="20" alt="">
</Poptip>
</div>
</template> </template>
</Table> </Table>
<Row type="flex" justify="end" class="page"> <Row type="flex" justify="end" class="page">

View File

@ -34,7 +34,25 @@
<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"></Table> <Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom">
<template slot-scope="{row}" slot="goodsMsg">
<div class="goods-msg">
<img :src="row.image" width="60" height="60" alt="">
<div>
<div class="div-zoom">
<a @click="linkTo(row.goodsId,row.skuId)">{{row.goodsName}}</a>
</div>
<div style="color:#999;font-size:10px">数量x{{row.num}}</div>
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
<div slot="content">
<vue-qr :text="wapLinkTo(row.goodsId,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
</div>
<img src="../../assets/qrcode.svg" class="hover-pointer" width="20" height="20" alt="">
</Poptip>
</div>
</div>
</template>
</Table>
<Row type="flex" justify="end" class="page"> <Row type="flex" justify="end" class="page">
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" <Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize"
@on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10,20,50]" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10,20,50]"
@ -71,53 +89,35 @@
{ {
title: "订单编号", title: "订单编号",
key: "orderSn", key: "orderSn",
minWidth: 120, minWidth: 100,
tooltip: true tooltip: true
}, },
{ {
title: "实付金额", title: '商品信息',
key: "orderPrice", slot: 'goodsMsg',
width: 130, minWidth: 120
sortable: false,
render: (h, params) => {
if(params.row.orderPrice == null){
return h("div", this.$options.filters.unitPrice(0, '¥'));
}else{
return h("div", this.$options.filters.unitPrice(params.row.orderPrice, '¥'));
}
}
}, },
{ {
title: "退款金额", title: "退款金额",
key: "returnMoney", key: "returnMoney",
width: 130,
sortable: false, sortable: false,
render: (h, params) => { render: (h, params) => {
if(params.row.orderPrice == null){ if(params.row.sellBackRebate == null){
return h("div", this.$options.filters.unitPrice(0, '¥')); return h("div", this.$options.filters.unitPrice(0, '¥'));
}else{ }else{
return h("div", this.$options.filters.unitPrice(params.row.returnMoney, '¥')); return h("div", this.$options.filters.unitPrice(params.row.sellBackRebate, '¥'));
} }
} }
}, },
{
title: "商品名称",
key: "goodsName",
minWidth: 120,
tooltip: true
},
{ {
title: "分销商", title: "分销商",
key: "distributionName", key: "distributionName",
minWidth: 120,
tooltip: true tooltip: true
}, },
{ {
title: "店铺名称", title: "店铺名称",
key: "storeName", key: "storeName",
minWidth: 120, tooltip: true
}, },
{ {
title: "状态", title: "状态",
@ -141,10 +141,10 @@
width: 120, width: 120,
sortable: false, sortable: false,
render: (h, params) => { render: (h, params) => {
if(params.row.rebateGrade == null){ if(params.row.rebate == null){
return h("div", this.$options.filters.unitPrice(0, '¥')); return h("div", this.$options.filters.unitPrice(0, '¥'));
}else{ }else{
return h("div", this.$options.filters.unitPrice(params.row.rebateGrade, '¥')); return h("div", this.$options.filters.unitPrice(params.row.rebate, '¥'));
} }
} }
@ -225,7 +225,7 @@
this.init(); this.init();
}, },
watch: { watch: {
$route(e) { $route(e) { //
this.distributionId = e.query.id ? e.query.id : undefined; this.distributionId = e.query.id ? e.query.id : undefined;
this.getDataList(); this.getDataList();
} }
@ -234,5 +234,12 @@
</script> </script>
<style lang="scss" > <style lang="scss" >
@import "@/styles/table-common.scss"; @import "@/styles/table-common.scss";
.goods-msg {
display: flex;
align-items: center;
>div{
margin-left: 10px;
}
}
</style> </style>

View File

@ -52,6 +52,8 @@ export default {
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("保存模板成功");

View File

@ -22,6 +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.109:8890',
// buyer: 'http://192.168.0.109:8888',
// seller: 'http://192.168.0.109:8889',
// manager: 'http://192.168.0.109:8887'
}, },
api_prod: { api_prod: {

View File

@ -63,7 +63,7 @@
<div class="div-item" v-if="orderInfo.order.needReceipt == true"> <div class="div-item" v-if="orderInfo.order.needReceipt == true">
<div class="div-item-left">发票金额</div> <div class="div-item-left">发票金额</div>
<div class="div-item-right">{{ orderInfo.receipt.receiptPrice ? orderInfo.receipt.receiptPrice : '暂无' | unitPrice('¥')}}</div> <div class="div-item-right"><span v-if="orderInfo.receipt.receiptPrice"></span>{{ orderInfo.receipt.receiptPrice ? orderInfo.receipt.receiptPrice : '' | unitPrice}}</div>
</div> </div>
<div class="div-item" v-if="orderInfo.order.needReceipt == true"> <div class="div-item" v-if="orderInfo.order.needReceipt == true">