合并master
commit
4166a1ca58
|
@ -1 +1 @@
|
||||||
docker build -t registry.cn-beijing.aliyuncs.com/lili-images/buyer-ui-1.0.1:0.0.4 .
|
docker build -t registry.cn-beijing.aliyuncs.com/lili-images/buyer-ui-4.2.0:0.0.2 .
|
||||||
|
|
|
@ -31,7 +31,6 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
#app{
|
#app{
|
||||||
height: 100%;
|
|
||||||
@include background_color($light_background_color);
|
@include background_color($light_background_color);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
|
@ -84,14 +84,14 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 选择颜色 -->
|
<!-- 选择颜色 -->
|
||||||
<div class="item-select" v-for="(sku, index) in formatList" :key="sku.id">
|
<div class="item-select" v-for="(sku, index) in formatList" :key="sku.name">
|
||||||
<div class="item-select-title">
|
<div class="item-select-title">
|
||||||
<p>{{ sku.name }}</p>
|
<p>{{ sku.name }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-select-column">
|
<div class="item-select-column">
|
||||||
<div class="item-select-row" v-for="(item) in sku.values" :key="item.id">
|
<div class="item-select-row" v-for="(item) in sku.values" :key="item.value">
|
||||||
<div class="item-select-box" @click="select(index, sku.id, item.id)"
|
<div class="item-select-box" @click="select(index, item.value)"
|
||||||
:class="{ 'item-select-box-active': item.id === currentSelceted[index] }"
|
:class="{ 'item-select-box-active': item.value === currentSelceted[index] }"
|
||||||
>
|
>
|
||||||
<div class="item-select-intro">
|
<div class="item-select-intro">
|
||||||
<p>{{ item.value }}</p>
|
<p>{{ item.value }}</p>
|
||||||
|
@ -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>
|
||||||
|
@ -151,7 +151,7 @@ export default {
|
||||||
count: 1, // 商品数量
|
count: 1, // 商品数量
|
||||||
imgIndex: 0, // 展示图片下标
|
imgIndex: 0, // 展示图片下标
|
||||||
currentSelceted: [], // 当前商品sku
|
currentSelceted: [], // 当前商品sku
|
||||||
imgList: this.detail.data.specList[0].specImage || [], // 商品图片列表
|
imgList: this.detail.data.specList[0].specImage || [{}], // 商品图片列表
|
||||||
skuDetail: this.detail.data, // sku详情
|
skuDetail: this.detail.data, // sku详情
|
||||||
goodsSpecList: this.detail.specs, // 商品spec
|
goodsSpecList: this.detail.specs, // 商品spec
|
||||||
promotionMap: { // 活动状态
|
promotionMap: { // 活动状态
|
||||||
|
@ -170,14 +170,14 @@ export default {
|
||||||
Promotion
|
Promotion
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
select (index, id, valueId) { // 选择规格
|
select (index, value) { // 选择规格
|
||||||
this.$set(this.currentSelceted, index, valueId);
|
this.$set(this.currentSelceted, index, value);
|
||||||
|
|
||||||
let selectedSkuId = this.goodsSpecList.find((i) => {
|
let selectedSkuId = this.goodsSpecList.find((i) => {
|
||||||
let matched = true;
|
let matched = true;
|
||||||
let specValues = i.specValues.filter((j) => j.specName !== 'images');
|
let specValues = i.specValues.filter((j) => j.specName !== 'images');
|
||||||
for (let n = 0; n < specValues.length; n++) {
|
for (let n = 0; n < specValues.length; n++) {
|
||||||
if (specValues[n].specValueId !== this.currentSelceted[n]) {
|
if (specValues[n].specValue !== this.currentSelceted[n]) {
|
||||||
matched = false;
|
matched = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -267,15 +267,12 @@ export default {
|
||||||
},
|
},
|
||||||
formatSku (list) {
|
formatSku (list) {
|
||||||
// 格式化数据
|
// 格式化数据
|
||||||
|
|
||||||
let arr = [{}];
|
let arr = [{}];
|
||||||
|
|
||||||
list.forEach((item, index) => {
|
list.forEach((item, index) => {
|
||||||
item.specValues.forEach((spec, specIndex) => {
|
item.specValues.forEach((spec, specIndex) => {
|
||||||
let id = spec.specNameId;
|
|
||||||
let name = spec.specName;
|
let name = spec.specName;
|
||||||
let values = {
|
let values = {
|
||||||
id: spec.specValueId,
|
|
||||||
value: spec.specValue,
|
value: spec.specValue,
|
||||||
quantity: item.quantity
|
quantity: item.quantity
|
||||||
};
|
};
|
||||||
|
@ -287,7 +284,7 @@ export default {
|
||||||
if (
|
if (
|
||||||
arrItem.name === name &&
|
arrItem.name === name &&
|
||||||
arrItem.values &&
|
arrItem.values &&
|
||||||
!arrItem.values.find((i) => i.id === values.id)
|
!arrItem.values.find((i) => i.value === values.value)
|
||||||
) {
|
) {
|
||||||
arrItem.values.push(values);
|
arrItem.values.push(values);
|
||||||
}
|
}
|
||||||
|
@ -297,7 +294,6 @@ export default {
|
||||||
});
|
});
|
||||||
if (!keys.includes(name)) {
|
if (!keys.includes(name)) {
|
||||||
arr.push({
|
arr.push({
|
||||||
id: id,
|
|
||||||
name: name,
|
name: name,
|
||||||
values: [values]
|
values: [values]
|
||||||
});
|
});
|
||||||
|
@ -312,7 +308,7 @@ export default {
|
||||||
if (cur) {
|
if (cur) {
|
||||||
cur.specValues.filter((i) => i.specName !== 'images')
|
cur.specValues.filter((i) => i.specName !== 'images')
|
||||||
.forEach((value, _index) => {
|
.forEach((value, _index) => {
|
||||||
this.currentSelceted[_index] = value.specValueId;
|
this.currentSelceted[_index] = value.specValue;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.skuList = list;
|
this.skuList = list;
|
||||||
|
|
|
@ -87,11 +87,16 @@
|
||||||
</div>
|
</div>
|
||||||
</TabPane>
|
</TabPane>
|
||||||
<TabPane label="商品参数">
|
<TabPane label="商品参数">
|
||||||
<table class="mt_10" border="1" cellpadding='0' cellspacing="0" v-if="skuDetail.goodsParamsList && skuDetail.length">
|
<template v-if="detail.goodsParamsDTOList && detail.goodsParamsDTOList.length">
|
||||||
<tr v-for="param in skuDetail.goodsParamsList" :key="param">
|
<div class="goods-params" v-for="item in detail.goodsParamsDTOList" :key="item.groupId">
|
||||||
<td>{{param.paramName}}</td><td>{{param.paramValue}}</td>
|
<span class="ml_10">{{item.groupName}}</span>
|
||||||
</tr>
|
<table class="mb_10" cellpadding='0' border="1" cellspacing="0" >
|
||||||
</table>
|
<tr v-for="param in item.goodsParamsItemDTOList" :key="param.paramId">
|
||||||
|
<td style="text-align:right">{{param.paramName}}</td><td>{{param.paramValue}}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
<div v-else>暂无商品参数</div>
|
<div v-else>暂无商品参数</div>
|
||||||
</TabPane>
|
</TabPane>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
@ -131,7 +136,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
changeHeight (name) { // 设置商品详情高度
|
changeHeight (name) { // 设置商品详情高度
|
||||||
let heightCss = window.getComputedStyle(this.$refs[name]).height;
|
let heightCss = window.getComputedStyle(this.$refs[name]).height;
|
||||||
heightCss = parseInt(heightCss.substr(0, heightCss.length - 2)) + 89;
|
heightCss = parseInt(heightCss.substr(0, heightCss.length - 2)) + 89;
|
||||||
this.$refs.itemIntroDetail.style.height = heightCss + 'px';
|
this.$refs.itemIntroDetail.style.height = heightCss + 'px';
|
||||||
|
@ -484,17 +489,28 @@ export default {
|
||||||
color: $theme_color;
|
color: $theme_color;
|
||||||
}
|
}
|
||||||
table{
|
table{
|
||||||
border-color: #eee;
|
border-color:#efefef;
|
||||||
color: #999;
|
color: #999;
|
||||||
width: 70%;
|
min-width: 30%;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
|
font-size: 12px;
|
||||||
tr{
|
tr{
|
||||||
td:nth-child(1){
|
td:nth-child(1){
|
||||||
width: 200px;
|
min-width: 70px;
|
||||||
|
}
|
||||||
|
td:nth-child(2){
|
||||||
|
padding-left: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
td{
|
td{
|
||||||
padding: 5px;
|
padding: 6px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.goods-params {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
margin-left: 30px;
|
||||||
|
span{color:#999}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -27,7 +27,7 @@ export default {
|
||||||
.model-content {
|
.model-content {
|
||||||
width: 1200px;
|
width: 1200px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
background: #fff;
|
// background: #fff;
|
||||||
min-height: 1200px;
|
min-height: 1200px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -123,22 +123,7 @@ export default {
|
||||||
.model-item {
|
.model-item {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
&:hover {
|
background-color: #fff;
|
||||||
.del-btn {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.del-btn {
|
|
||||||
width: 100px;
|
|
||||||
height: 100px;
|
|
||||||
display: none;
|
|
||||||
position: absolute;
|
|
||||||
right: -100px;
|
|
||||||
top: 0;
|
|
||||||
&:hover {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 热门广告 */
|
/** 热门广告 */
|
||||||
|
|
|
@ -94,6 +94,7 @@ export default {
|
||||||
width: 1200px;
|
width: 1200px;
|
||||||
height: 340px;
|
height: 340px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
margin-top: -20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 导航主体 */
|
/* 导航主体 */
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -77,7 +77,6 @@ export default {
|
||||||
name: cateName[index]
|
name: cateName[index]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
console.log(cateArr);
|
|
||||||
this.categoryBar = cateArr;
|
this.categoryBar = cateArr;
|
||||||
this.goodsMsg = res.result;
|
this.goodsMsg = res.result;
|
||||||
// 判断是否收藏
|
// 判断是否收藏
|
||||||
|
|
|
@ -18,10 +18,16 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="store-category">
|
<div class="store-category">
|
||||||
<ul>
|
<ul class="cate-list">
|
||||||
<li @click="searchByCate({id:'', labelName: '店铺推荐'})">首页</li>
|
<li class="cate-item" @click="searchByCate({id:'', labelName: '店铺推荐'})">首页</li>
|
||||||
<li v-for="(cate, index) in cateList" :key="index" @click="searchByCate(cate)">
|
<li class="cate-item" v-for="(cate, index) in cateList" :key="index" >
|
||||||
{{cate.labelName}}
|
<Dropdown v-if="cate.children.length">
|
||||||
|
<div @click.self="searchByCate(cate)">{{cate.labelName}} <Icon type="ios-arrow-down"></Icon></div>
|
||||||
|
<DropdownMenu slot="list">
|
||||||
|
<DropdownItem @click.native="searchByCate(sec)" :name="sec.id" v-for="sec in cate.children" :key="sec.id">{{sec.labelName}}</DropdownItem>
|
||||||
|
</DropdownMenu>
|
||||||
|
</Dropdown>
|
||||||
|
<span v-else @click.self="searchByCate(cate)">{{cate.labelName}}</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -97,13 +103,6 @@ export default {
|
||||||
this.getGoodsList()
|
this.getGoodsList()
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
if (this.Cookies.getItem('userInfo')) {
|
|
||||||
isCollection('STORE', this.soterMsg.storeId).then(res => {
|
|
||||||
if (res.success && res.result) {
|
|
||||||
this.storeCollected = true;
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getStoreMsg () { // 店铺信息
|
getStoreMsg () { // 店铺信息
|
||||||
|
@ -111,6 +110,13 @@ export default {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.storeMsg = res.result
|
this.storeMsg = res.result
|
||||||
document.title = this.storeMsg.storeName
|
document.title = this.storeMsg.storeName
|
||||||
|
if (this.Cookies.getItem('userInfo')) {
|
||||||
|
isCollection('STORE', this.storeMsg.storeId).then(res => {
|
||||||
|
if (res.success && res.result) {
|
||||||
|
this.storeCollected = true;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -222,15 +228,17 @@ export default {
|
||||||
.store-category {
|
.store-category {
|
||||||
background-color: #005aa0;
|
background-color: #005aa0;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
ul{
|
.cate-list{
|
||||||
width: 1200px;
|
width: 1200px;
|
||||||
margin: 0 auto 10px;
|
margin: 0 auto ;
|
||||||
padding: 3px 0;
|
clear: left;
|
||||||
display: flex;
|
height: 30px;
|
||||||
li {
|
line-height: 30px;
|
||||||
|
.cate-item {
|
||||||
margin-right: 25px;
|
margin-right: 25px;
|
||||||
|
float: left;
|
||||||
}
|
}
|
||||||
li:hover{
|
.cate-item:hover{
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="order-detail" v-if="order.order">
|
<div class="order-detail" v-if="order.order">
|
||||||
<card _Title="订单详情" :_Size="16"></card>
|
<card _Title="订单详情" :_Size="16"></card>
|
||||||
|
<p class="verificationCode" v-if="order.order.verificationCode">核验码:<span>{{order.order.verificationCode}}</span></p>
|
||||||
<div class="order-card">
|
<div class="order-card">
|
||||||
<p class="global_color fontsize_18">{{ order.orderStatusValue }} <span class="verificationCode" v-if="order.order.verificationCode">核验码:{{order.order.verificationCode}}</span></p>
|
<p class="global_color fontsize_18">{{ order.orderStatusValue }}</p>
|
||||||
<p class="global_color">订单号:{{ order.order.sn }}</p>
|
<p>订单号:{{ order.order.sn }}</p>
|
||||||
<div style="color:#999;" class="operation-time">操作时间:{{order.order.updateTime}}</div>
|
<div style="color:#999;" class="operation-time">操作时间:{{order.order.updateTime}}</div>
|
||||||
<Steps class="progress" :current="progressList.length" direction="vertical">
|
<Steps class="progress" :current="progressList.length" direction="vertical">
|
||||||
<Step
|
<Step
|
||||||
|
@ -25,7 +26,7 @@
|
||||||
<p>支付方式:{{order.paymentMethodValue}}</p>
|
<p>支付方式:{{order.paymentMethodValue}}</p>
|
||||||
<p>付款状态:{{order.payStatusValue}}</p>
|
<p>付款状态:{{order.payStatusValue}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="order-card">
|
<div class="order-card" v-if="!order.order.verificationCode">
|
||||||
<h3>配送信息</h3>
|
<h3>配送信息</h3>
|
||||||
<p>配送方式:{{order.deliveryMethodValue}}</p>
|
<p>配送方式:{{order.deliveryMethodValue}}</p>
|
||||||
<p>配送状态:{{order.deliverStatusValue}}</p>
|
<p>配送状态:{{order.deliverStatusValue}}</p>
|
||||||
|
@ -235,10 +236,14 @@ table {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.verificationCode {
|
.verificationCode {
|
||||||
font-size: 16px;
|
font-size: 20px;
|
||||||
margin-left: 240px;
|
margin-bottom: 20px;
|
||||||
color: rgb(65, 63, 63);
|
color: rgb(65, 63, 63);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
text-align: center;
|
||||||
|
span{
|
||||||
|
color: $theme_color;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/** 订单进度条 */
|
/** 订单进度条 */
|
||||||
.progress {
|
.progress {
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
docker push registry.cn-beijing.aliyuncs.com/lili-images/buyer-ui-1.0.1:0.0.4
|
docker push registry.cn-beijing.aliyuncs.com/lili-images/buyer-ui-4.2.0:0.0.2
|
||||||
docker push registry.cn-beijing.aliyuncs.com/lili-images/wap-ui-1.0.1:0.0.4
|
docker push registry.cn-beijing.aliyuncs.com/lili-images/wap-ui-4.2.0:0.0.2
|
||||||
docker push registry.cn-beijing.aliyuncs.com/lili-images/seller-ui-1.0.1:0.0.4
|
docker push registry.cn-beijing.aliyuncs.com/lili-images/seller-ui-4.2.0:0.0.2
|
||||||
docker push registry.cn-beijing.aliyuncs.com/lili-images/manager-ui-1.0.1:0.0.4
|
docker push registry.cn-beijing.aliyuncs.com/lili-images/manager-ui-4.2.0:0.0.2
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
docker build -t registry.cn-beijing.aliyuncs.com/lili-images/manager-ui-1.0.1:0.0.4 .
|
docker build -t registry.cn-beijing.aliyuncs.com/lili-images/manager-ui-4.2.0:0.0.2 .
|
||||||
|
|
|
@ -21,10 +21,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.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",
|
||||||
|
|
|
@ -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, "¥")
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -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
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -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">
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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("保存模板成功");
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
docker build -t registry.cn-beijing.aliyuncs.com/lili-images/seller-ui-1.0.1:0.0.4 .
|
docker build -t registry.cn-beijing.aliyuncs.com/lili-images/seller-ui-4.2.0:0.0.2 .
|
||||||
|
|
|
@ -12,6 +12,10 @@ export const verificationCode = verificationCode => {
|
||||||
export const downLoadDeliverExcel = params => {
|
export const downLoadDeliverExcel = params => {
|
||||||
return getRequest(`/orders/downLoadDeliverExcel`, params, 'blob');
|
return getRequest(`/orders/downLoadDeliverExcel`, params, 'blob');
|
||||||
};
|
};
|
||||||
|
// 导出待发货订单
|
||||||
|
export const queryExportOrder = params => {
|
||||||
|
return getRequest(`/orders/queryExportOrder`, params);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
// 上传待发货的订单列表
|
// 上传待发货的订单列表
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
|
@ -776,6 +776,7 @@ export default {
|
||||||
this.activestep = 0;
|
this.activestep = 0;
|
||||||
this.isPublish = true;
|
this.isPublish = true;
|
||||||
this.GET_GoodsTemplate();
|
this.GET_GoodsTemplate();
|
||||||
|
|
||||||
this.GET_NextLevelCategory();
|
this.GET_NextLevelCategory();
|
||||||
},
|
},
|
||||||
// 获取已选模板
|
// 获取已选模板
|
||||||
|
@ -790,6 +791,8 @@ export default {
|
||||||
handleClickGoodsTemplate(val) {
|
handleClickGoodsTemplate(val) {
|
||||||
this.draftId = val.id;
|
this.draftId = val.id;
|
||||||
this.selectGoodsType = false;
|
this.selectGoodsType = false;
|
||||||
|
this.GET_GoodData();
|
||||||
|
this.activestep = 1;
|
||||||
},
|
},
|
||||||
// 点击商品类型
|
// 点击商品类型
|
||||||
handleClickGoodsType(val) {
|
handleClickGoodsType(val) {
|
||||||
|
|
|
@ -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">
|
||||||
|
|
|
@ -30,8 +30,19 @@
|
||||||
<Button type="primary" class="export" @click="expressOrderDeliver">
|
<Button type="primary" class="export" @click="expressOrderDeliver">
|
||||||
批量发货
|
批量发货
|
||||||
</Button>
|
</Button>
|
||||||
|
<download-excel
|
||||||
|
style="display:inline-block;"
|
||||||
|
:data="data"
|
||||||
|
:fields="excelColumns"
|
||||||
|
:fetch="exportOrder"
|
||||||
|
name="待发货订单.xls"
|
||||||
|
>
|
||||||
|
<Button type="success">
|
||||||
|
导出待发货订单
|
||||||
|
</Button>
|
||||||
|
</download-excel>
|
||||||
</div>
|
</div>
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom"></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" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]" size="small"
|
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]" size="small"
|
||||||
show-total show-elevator show-sizer></Page>
|
show-total show-elevator show-sizer></Page>
|
||||||
|
@ -43,8 +54,13 @@
|
||||||
<script>
|
<script>
|
||||||
import * as API_Order from "@/api/order";
|
import * as API_Order from "@/api/order";
|
||||||
import { verificationCode } from "@/api/order";
|
import { verificationCode } from "@/api/order";
|
||||||
|
import JsonExcel from "vue-json-excel";
|
||||||
|
import Cookies from "js-cookie";
|
||||||
export default {
|
export default {
|
||||||
name: "orderList",
|
name: "orderList",
|
||||||
|
components: {
|
||||||
|
"download-excel": JsonExcel,
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
orderCode: "",
|
orderCode: "",
|
||||||
|
@ -71,11 +87,7 @@ export default {
|
||||||
endTime: "",
|
endTime: "",
|
||||||
billPrice: "",
|
billPrice: "",
|
||||||
},
|
},
|
||||||
// 表单验证规则
|
|
||||||
formValidate: {},
|
|
||||||
submitLoading: false, // 添加或编辑提交状态
|
submitLoading: false, // 添加或编辑提交状态
|
||||||
selectList: [], // 多选数据
|
|
||||||
selectCount: 0, // 多选计数
|
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: "订单号",
|
title: "订单号",
|
||||||
|
@ -178,6 +190,13 @@ export default {
|
||||||
],
|
],
|
||||||
data: [], // 表单数据
|
data: [], // 表单数据
|
||||||
total: 0, // 表单数据总数
|
total: 0, // 表单数据总数
|
||||||
|
excelColumns: { // 导出excel的参数
|
||||||
|
'编号': 'index',
|
||||||
|
'订单号': 'sn',
|
||||||
|
'收货人': 'consigneeName',
|
||||||
|
'收货人联系电话': 'consigneeMobile',
|
||||||
|
'收货地址': 'consigneeAddress',
|
||||||
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -202,22 +221,27 @@ export default {
|
||||||
path: "/export-order-deliver",
|
path: "/export-order-deliver",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 初始化数据
|
||||||
init() {
|
init() {
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
},
|
},
|
||||||
|
// 改变页码
|
||||||
changePage(v) {
|
changePage(v) {
|
||||||
this.searchForm.pageNumber = v;
|
this.searchForm.pageNumber = v;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
},
|
},
|
||||||
|
// 改变页数
|
||||||
changePageSize(v) {
|
changePageSize(v) {
|
||||||
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.searchForm.pageSize = 10;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
},
|
},
|
||||||
|
// 重置
|
||||||
handleReset() {
|
handleReset() {
|
||||||
this.searchForm = {};
|
this.searchForm = {};
|
||||||
this.searchForm.pageNumber = 1;
|
this.searchForm.pageNumber = 1;
|
||||||
|
@ -228,25 +252,14 @@ export default {
|
||||||
// 重新加载数据
|
// 重新加载数据
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
},
|
},
|
||||||
changeSort(e) {
|
// 起始时间处理
|
||||||
this.searchForm.sort = e.key;
|
|
||||||
this.searchForm.order = e.order;
|
|
||||||
if (e.order === "normal") {
|
|
||||||
this.searchForm.order = "";
|
|
||||||
}
|
|
||||||
this.getDataList();
|
|
||||||
},
|
|
||||||
|
|
||||||
changeSelect(e) {
|
|
||||||
this.selectList = e;
|
|
||||||
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;
|
||||||
API_Order.getOrderList(this.searchForm).then((res) => {
|
API_Order.getOrderList(this.searchForm).then((res) => {
|
||||||
|
@ -257,7 +270,33 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 导出的待发货订单数据
|
||||||
|
async exportOrder () {
|
||||||
|
let userInfo = JSON.parse(Cookies.get("userInfo"));
|
||||||
|
console.log(userInfo);
|
||||||
|
const params = {
|
||||||
|
// 搜索框初始化对象
|
||||||
|
pageNumber: 1, // 当前页数
|
||||||
|
pageSize: 100, // 页面大小
|
||||||
|
sort: "startDate", // 默认排序字段
|
||||||
|
order: "desc", // 默认排序方式
|
||||||
|
startDate: "", // 起始时间
|
||||||
|
endDate: "", // 终止时间
|
||||||
|
orderSn: "",
|
||||||
|
buyerName: "",
|
||||||
|
tag: "WAIT_ROG",
|
||||||
|
orderType: "NORMAL",
|
||||||
|
storeId: userInfo.id
|
||||||
|
}
|
||||||
|
const res = await API_Order.queryExportOrder(params)
|
||||||
|
for (let i=0; i<res.result.length; i++) {
|
||||||
|
res.result[i].index = i+1;
|
||||||
|
res.result[i].consigneeAddress =
|
||||||
|
res.result[i].consigneeAddressPath.replace(/,/g, "") + res.result[i].consigneeDetail
|
||||||
|
}
|
||||||
|
return res.result
|
||||||
|
},
|
||||||
|
// 查看订单详情
|
||||||
detail(v) {
|
detail(v) {
|
||||||
let sn = v.sn;
|
let sn = v.sn;
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
|
|
Loading…
Reference in New Issue