issues上bug修改

master
mabo 2021-07-01 16:02:12 +08:00
parent f7167912e7
commit 6887b6c624
8 changed files with 90 additions and 60 deletions

View File

@ -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>

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' || 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')

View File

@ -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>

View File

@ -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;
}
} }
/** 热门广告 */ /** 热门广告 */

View File

@ -94,6 +94,7 @@ export default {
width: 1200px; width: 1200px;
height: 340px; height: 340px;
overflow: hidden; overflow: hidden;
margin-top: -20px;
} }
/* 导航主体 */ /* 导航主体 */

View File

@ -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;
} }
} }

View File

@ -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 {

View File

@ -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({