issues上bug修改
parent
f7167912e7
commit
6887b6c624
|
@ -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>
|
||||||
|
|
|
@ -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' || skuDetail.weight === 0">
|
<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>
|
||||||
|
@ -267,7 +267,6 @@ export default {
|
||||||
},
|
},
|
||||||
formatSku (list) {
|
formatSku (list) {
|
||||||
// 格式化数据
|
// 格式化数据
|
||||||
console.log(list);
|
|
||||||
let arr = [{}];
|
let arr = [{}];
|
||||||
|
|
||||||
list.forEach((item, index) => {
|
list.forEach((item, index) => {
|
||||||
|
@ -304,7 +303,7 @@ export default {
|
||||||
});
|
});
|
||||||
arr.shift();
|
arr.shift();
|
||||||
this.formatList = arr;
|
this.formatList = arr;
|
||||||
console.log(this.formatList);
|
|
||||||
let cur = list.filter((i) => i.skuId === this.$route.query.skuId)[0];
|
let cur = list.filter((i) => i.skuId === this.$route.query.skuId)[0];
|
||||||
if (cur) {
|
if (cur) {
|
||||||
cur.specValues.filter((i) => i.specName !== 'images')
|
cur.specValues.filter((i) => i.specName !== 'images')
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 导航主体 */
|
/* 导航主体 */
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -30,8 +30,20 @@
|
||||||
<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 +55,12 @@
|
||||||
<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";
|
||||||
export default {
|
export default {
|
||||||
name: "orderList",
|
name: "orderList",
|
||||||
|
components: {
|
||||||
|
"download-excel": JsonExcel,
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
orderCode: "",
|
orderCode: "",
|
||||||
|
@ -74,8 +90,6 @@ export default {
|
||||||
// 表单验证规则
|
// 表单验证规则
|
||||||
formValidate: {},
|
formValidate: {},
|
||||||
submitLoading: false, // 添加或编辑提交状态
|
submitLoading: false, // 添加或编辑提交状态
|
||||||
selectList: [], // 多选数据
|
|
||||||
selectCount: 0, // 多选计数
|
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: "订单号",
|
title: "订单号",
|
||||||
|
@ -178,6 +192,13 @@ export default {
|
||||||
],
|
],
|
||||||
data: [], // 表单数据
|
data: [], // 表单数据
|
||||||
total: 0, // 表单数据总数
|
total: 0, // 表单数据总数
|
||||||
|
excelColumns: { // 导出excel的参数
|
||||||
|
'编号': 'index',
|
||||||
|
'订单号': 'sn',
|
||||||
|
'收货人': 'memberName',
|
||||||
|
'收货人联系电话': 'memberName',
|
||||||
|
'收货地址': 'memberName',
|
||||||
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -202,22 +223,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 +254,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 +272,25 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 导出的待发货订单数据
|
||||||
|
async exportOrder () {
|
||||||
|
const params = {
|
||||||
|
// 搜索框初始化对象
|
||||||
|
pageNumber: 1, // 当前页数
|
||||||
|
pageSize: 10, // 页面大小
|
||||||
|
sort: "", // 默认排序字段
|
||||||
|
order: "", // 默认排序方式
|
||||||
|
startDate: "", // 起始时间
|
||||||
|
endDate: "", // 终止时间
|
||||||
|
orderSn: "",
|
||||||
|
buyerName: "",
|
||||||
|
orderStatus: "UNDELIVERED",
|
||||||
|
orderType: "NORMAL",
|
||||||
|
}
|
||||||
|
const res = await API_Order.getOrderList(params)
|
||||||
|
return res.result.records
|
||||||
|
},
|
||||||
|
// 查看订单详情
|
||||||
detail(v) {
|
detail(v) {
|
||||||
let sn = v.sn;
|
let sn = v.sn;
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
|
|
Loading…
Reference in New Issue