商家端保存商品列表筛选条件

master
mabo 2021-05-14 17:28:01 +08:00
parent b6b45926f9
commit f2c2734b15
20 changed files with 132 additions and 105 deletions

View File

@ -192,27 +192,21 @@ export const otherRouter = {
component: () => import("@/views/goods/goods-info/goodsDetail.vue") component: () => import("@/views/goods/goods-info/goodsDetail.vue")
}, },
{ {
path: "promotion/manager-poonts-goods", path: "promotion/add-points-goods",
title: "积分商品",
name: "manager-points-goods",
component: () => import("@/views/promotion/pointsGoods/pointsGoods.vue")
},
{
path: "promotion/add-poonts-goods",
title: "添加积分商品", title: "添加积分商品",
name: "add-points-goods", name: "add-points-goods",
component: () => component: () =>
import("@/views/promotion/pointsGoods/addPointsGoods.vue") import("@/views/promotion/pointsGoods/addPointsGoods.vue")
}, },
{ {
path: "promotion/edit-poonts-goods", path: "promotion/edit-points-goods",
title: "修改积分商品", title: "修改积分商品",
name: "edit-points-goods", name: "edit-points-goods",
component: () => component: () =>
import("@/views/promotion/pointsGoods/editPointsGoods.vue") import("@/views/promotion/pointsGoods/editPointsGoods.vue")
}, },
{ {
path: "promotion/manager-poonts-goods-category", path: "promotion/manager-points-goods-category",
title: "积分商品分类", title: "积分商品分类",
name: "manager-points-goods-category", name: "manager-points-goods-category",
component: () => component: () =>

View File

@ -234,7 +234,7 @@ export default {
}, },
{ {
title: "店铺名称", title: "店铺名称",
key: "sellerName", key: "storeName",
minWidth: 60, minWidth: 60,
}, },
{ {
@ -348,7 +348,7 @@ export default {
}, },
// //
closeCurrentPage() { closeCurrentPage() {
this.$store.commit("removeTag", "add-poonts-goods"); this.$store.commit("removeTag", "add-points-goods");
localStorage.pageOpenedList = JSON.stringify( localStorage.pageOpenedList = JSON.stringify(
this.$store.state.app.pageOpenedList this.$store.state.app.pageOpenedList
); );
@ -406,7 +406,7 @@ export default {
originalPrice: e.price, originalPrice: e.price,
quantity: e.quantity, quantity: e.quantity,
storeId: e.storeId, storeId: e.storeId,
sellerName: e.sellerName, storeName: e.storeName,
skuId: e.id, skuId: e.id,
...e, ...e,
}); });

View File

@ -62,6 +62,6 @@ export default {
@import "./style.scss"; @import "./style.scss";
/deep/ .ivu-form-item-content{ /deep/ .ivu-form-item-content{
align-items: center; align-items: center;
paddinig-bottom: 5px; padding-bottom: 5px;
} }
</style> </style>

View File

@ -255,7 +255,7 @@ export const getGoodsListDataByStockSeller = params => {
export const getGoods = id => { export const getGoods = id => {
return getRequest(`/goods/get/${id}`); return getRequest(`/goods/get/${id}`);
}; };
// 上架商品 // 上架商品
export const upGoods = params => { export const upGoods = params => {
return putRequest(`/goods/up`, params); return putRequest(`/goods/up`, params);
}; };

View File

@ -18,10 +18,10 @@ export default {
* @description api请求基础路径 * @description api请求基础路径
*/ */
api_dev: { api_dev: {
common: 'http://127.0.0.1:8890', common: 'https://common-api.pickmall.cn',
buyer: 'http://127.0.0.1:8888', buyer: 'https://buyer-api.pickmall.cn',
seller: 'http://127.0.0.1:8889', seller: 'https://store-api.pickmall.cn',
manager: 'http://127.0.0.1:8887' manager: 'https://admin-api.pickmall.cn'
}, },
api_prod: { api_prod: {
common: 'http://127.0.0.1:8890', common: 'http://127.0.0.1:8890',

View File

@ -133,7 +133,7 @@ export const result = [
permTypes: [], permTypes: [],
children: [ children: [
{ {
name: "order", name: "orderList",
showAlways: true, showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
@ -266,12 +266,12 @@ export const result = [
permTypes: [], permTypes: [],
children: [ children: [
{ {
name: "bill", name: "accountStatementBill",
showAlways: true, showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "财务对账", title: "财务对账",
path: "bill", path: "accountStatementBill",
component: "shop/bill/accountStatementBill", component: "shop/bill/accountStatementBill",
icon: "md-person", icon: "md-person",
isMenu: true, isMenu: true,
@ -297,7 +297,7 @@ export const result = [
}, },
{ {
name: "receipt", name: "receiptManager",
showAlways: true, showAlways: true,
level: 1, level: 1,
type: 0, type: 0,
@ -386,12 +386,12 @@ export const result = [
] ]
}, },
{ {
name: "promotion", name: "storePromotion",
showAlways: true, showAlways: true,
level: 1, level: 1,
type: 0, type: 0,
title: "商家活动", title: "商家活动",
path: "/promotion", path: "/storePromotion",
component: "Main", component: "Main",
icon: "md-person", icon: "md-person",
isMenu: true, isMenu: true,
@ -429,12 +429,12 @@ export const result = [
] ]
}, },
{ {
name: "promotion", name: "distribution",
showAlways: true, showAlways: true,
level: 1, level: 1,
type: 0, type: 0,
title: "分销管理", title: "分销管理",
path: "/promotion", path: "/distribution",
component: "Main", component: "Main",
icon: "md-person", icon: "md-person",
isMenu: true, isMenu: true,

View File

@ -115,15 +115,9 @@ export const otherRouter = {
component: () => component: () =>
import("@/views/order/after-order/reurnGoodsOrderDetail.vue") import("@/views/order/after-order/reurnGoodsOrderDetail.vue")
}, },
{
path: "full-cut",
title: "满优惠",
name: "full-cut",
component: () => import("@/views/promotion/fullCut/full-cut.vue")
},
{ {
path: "full-cut-detail", path: "full-cut-detail",
title: "添加满优惠", title: "添加满额活动",
name: "full-cut-detail", name: "full-cut-detail",
component: () => import("@/views/promotion/fullCut/newFullCut.vue") component: () => import("@/views/promotion/fullCut/newFullCut.vue")
}, },

View File

@ -17,6 +17,7 @@
<Input type="text" v-model="searchForm.sn" placeholder="商品编号" clearable style="width: 200px" /> <Input type="text" v-model="searchForm.sn" placeholder="商品编号" clearable style="width: 200px" />
</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>
<Button @click="handleReset" class="search-btn">重置</Button>
</Form> </Form>
</Row> </Row>
<Row class="operation padding-row"> <Row class="operation padding-row">
@ -114,12 +115,6 @@ import * as API_Store from "@/api/shops";
export default { export default {
name: "goods", name: "goods",
components: {},
watch: {
$route() {
this.getDataList();
},
},
data() { data() {
return { return {
id: "", //id id: "", //id
@ -482,28 +477,28 @@ export default {
} }
}); });
}, },
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.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.$refs.searchForm.resetFields(); this.searchForm = {};
this.searchForm.pageNumber = 1; this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10; this.searchForm.pageSize = 10;
// //
this.getDataList(); this.getDataList();
}, },
changeSort(e) { changeSort (e) {
this.searchForm.sort = e.key; this.searchForm.sort = e.key;
this.searchForm.order = e.order; this.searchForm.order = e.order;
if (e.order === "normal") { if (e.order === "normal") {
@ -511,15 +506,15 @@ export default {
} }
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;
}, },
// //
saveShipTemplate() { saveShipTemplate () {
if (this.shipTemplateForm.freightPayer == "BUYER") { if (this.shipTemplateForm.freightPayer == "BUYER") {
{ {
this.shipTemplateForm.templateId = 0; this.shipTemplateForm.templateId = 0;
@ -717,7 +712,7 @@ export default {
}); });
}, },
}, },
mounted() { activated () {
this.init(); this.init();
}, },
}; };

View File

@ -42,6 +42,7 @@
></DatePicker> ></DatePicker>
</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>
<Button @click="handleReset" class="search-btn">重置</Button>
</Form> </Form>
</Row> </Row>
<Row class="padding-row"> <Row class="padding-row">
@ -305,6 +306,12 @@ export default {
this.searchForm.pageSize = 10; this.searchForm.pageSize = 10;
this.getDataList(); this.getDataList();
}, },
handleReset() {
this.searchForm = {}
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10;
this.getDataList();
},
changeSort(e) { changeSort(e) {
this.searchForm.sort = e.key; this.searchForm.sort = e.key;
this.searchForm.order = e.order; this.searchForm.order = e.order;
@ -332,11 +339,9 @@ export default {
this.loading = false; this.loading = false;
if (res.success) { if (res.success) {
this.data = res.result.records; this.data = res.result.records;
this.total = res.result.total; this.total = res.result.total;
} }
}); });
this.total = this.data.length;
this.loading = false;
}, },
// //
handleSubmit() { handleSubmit() {
@ -379,7 +384,7 @@ export default {
}); });
}, },
}, },
mounted() { activated() {
this.init(); this.init();
}, },
}; };

View File

@ -35,6 +35,7 @@
</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>
<Button @click="handleReset" class="search-btn">重置</Button>
</Form> </Form>
</Row> </Row>
<Row class="padding-row"> <Row class="padding-row">
@ -279,6 +280,12 @@
this.searchForm.pageSize = 10; this.searchForm.pageSize = 10;
this.getDataList(); this.getDataList();
}, },
handleReset() {
this.searchForm = {}
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10;
this.getDataList();
},
changeSort(e) { changeSort(e) {
this.searchForm.sort = e.key; this.searchForm.sort = e.key;
this.searchForm.order = e.order; this.searchForm.order = e.order;
@ -346,7 +353,7 @@
}); });
}, },
}, },
mounted() { activated() {
this.init(); this.init();
}, },
}; };

View File

@ -45,6 +45,7 @@
></DatePicker> ></DatePicker>
</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>
<Button @click="handleReset" class="search-btn">重置</Button>
</Form> </Form>
</Row> </Row>
<Row class="padding-row"> <Row class="padding-row">
@ -263,6 +264,13 @@
this.searchForm.pageSize = 10; this.searchForm.pageSize = 10;
this.getDataList(); this.getDataList();
}, },
handleReset() {
this.searchForm = {};
this.selectDate = ''
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10;
this.getDataList();
},
changeSort(e) { changeSort(e) {
this.searchForm.sort = e.key; this.searchForm.sort = e.key;
@ -307,7 +315,7 @@
}, },
}, },
mounted() { activated () {
this.init(); this.init();
}, },
}; };

View File

@ -45,6 +45,7 @@
></DatePicker> ></DatePicker>
</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>
<Button @click="handleReset" class="search-btn">重置</Button>
</Form> </Form>
</Row> </Row>
<Row class="padding-row"> <Row class="padding-row">
@ -258,6 +259,13 @@
this.searchForm.pageSize = 10; this.searchForm.pageSize = 10;
this.getDataList(); this.getDataList();
}, },
handleReset() {
this.selectDate = ''
this.searchForm = {}
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10;
this.getDataList();
},
changeSort(e) { changeSort(e) {
this.searchForm.sort = e.key; this.searchForm.sort = e.key;
this.searchForm.order = e.order; this.searchForm.order = e.order;
@ -301,7 +309,7 @@
}, },
}, },
mounted() { activated() {
this.init(); this.init();
}, },
}; };

View File

@ -38,7 +38,7 @@
<DatePicker <DatePicker
v-model="selectDate" v-model="selectDate"
type="datetimerange" type="datetimerange"
format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd"
clearable clearable
@on-change="selectDateRange" @on-change="selectDateRange"
placeholder="选择起始时间" placeholder="选择起始时间"
@ -46,6 +46,7 @@
></DatePicker> ></DatePicker>
</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>
<Button @click="handleReset" class="search-btn">重置</Button>
</Form> </Form>
</Row> </Row>
@ -83,12 +84,8 @@
<script> <script>
import * as API_Order from "@/api/order"; import * as API_Order from "@/api/order";
export default { export default {
name: "orderList", name: "orderList",
components: {
},
data() { data() {
return { return {
loading: true, // loading: true, //
@ -245,7 +242,7 @@
this.getDataList(); this.getDataList();
}, },
handleReset() { handleReset() {
this.$refs.searchForm.resetFields(); this.searchForm = {};
this.searchForm.pageNumber = 1; this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10; this.searchForm.pageSize = 10;
this.selectDate = null; this.selectDate = null;
@ -284,8 +281,6 @@
this.total = res.result.total; this.total = res.result.total;
} }
}); });
this.total = this.data.length;
this.loading = false;
}, },
detail(v) { detail(v) {
@ -297,7 +292,7 @@
}, },
}, },
mounted() { activated () {
this.init(); this.init();
}, },
}; };

View File

@ -45,7 +45,7 @@
</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>
<Button @click="handleReset" class="search-btn">重置</Button>
</Form> </Form>
</Row> </Row>
<Row class="padding-row"> <Row class="padding-row">
@ -256,6 +256,12 @@
this.searchForm.pageSize = 10; this.searchForm.pageSize = 10;
this.getData(); this.getData();
}, },
handleReset() {
this.searchForm = {}
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10;
this.getData();
},
changeSort(e) { changeSort(e) {
this.searchForm.sort = e.key; this.searchForm.sort = e.key;
this.searchForm.order = e.order; this.searchForm.order = e.order;
@ -309,7 +315,7 @@
}); });
}, },
}, },
mounted() { activated() {
this.init(); this.init();
}, },
}; };

View File

@ -47,6 +47,7 @@
icon="ios-search" icon="ios-search"
>搜索</Button >搜索</Button
> >
<Button @click="handleReset" class="search-btn">重置</Button>
</Form> </Form>
</Row> </Row>
<Row class="operator padding-row"> <Row class="operator padding-row">
@ -264,6 +265,12 @@ export default {
this.searchForm.pageNumber = 0; this.searchForm.pageNumber = 0;
this.getDataList(); this.getDataList();
}, },
handleReset() {
this.searchForm = {}
this.selectDate = ''
this.searchForm.pageNumber = 0;
this.getDataList();
},
changeSort(e) { changeSort(e) {
this.searchForm.sort = e.key; this.searchForm.sort = e.key;
@ -390,16 +397,9 @@ export default {
}); });
}, },
}, },
mounted() { activated () {
this.init(); this.init();
}, },
watch: {
$route(to, from) {
if (to.fullPath == "/promotion/coupon") {
this.init();
}
},
},
}; };
</script> </script>
<style lang="scss"> <style lang="scss">

View File

@ -41,6 +41,7 @@
></DatePicker> ></DatePicker>
</Form-item> </Form-item>
<Button @click="handleSearch" type="primary" class="search-btn" icon="ios-search">搜索</Button> <Button @click="handleSearch" type="primary" class="search-btn" icon="ios-search">搜索</Button>
<Button @click="handleReset" class="ml_10">重置</Button>
</Form> </Form>
</Row> </Row>
<Row class="operation"> <Row class="operation">
@ -207,6 +208,13 @@ export default {
this.searchForm.pageSize = 10; this.searchForm.pageSize = 10;
this.getDataList(); this.getDataList();
}, },
handleReset() {
this.selectDate = ''
this.searchForm = {}
this.searchForm.pageNumber = 0;
this.searchForm.pageSize = 10;
this.getDataList();
},
edit(row) { edit(row) {
// //
@ -248,16 +256,9 @@ export default {
}); });
}, },
}, },
mounted() { activated() {
this.init(); this.init();
}, }
watch: {
$route(to, from) {
if (to.fullPath == "/promotion/full-cut") {
this.init();
}
},
},
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View File

@ -39,6 +39,7 @@
></DatePicker> ></DatePicker>
</Form-item> </Form-item>
<Button @click="handleSearch" type="primary" class="search-btn " icon="ios-search">搜索</Button> <Button @click="handleSearch" type="primary" class="search-btn " icon="ios-search">搜索</Button>
<Button @click="handleReset" class="search-btn">重置</Button>
</Form> </Form>
</Row> </Row>
<Row class="operation padding-row"> <Row class="operation padding-row">
@ -206,6 +207,13 @@ export default {
this.searchForm.pageSize = 10; this.searchForm.pageSize = 10;
this.getDataList(); this.getDataList();
}, },
handleReset() {
this.searchForm = {}
this.selectDate = ''
this.searchForm.pageNumber = 0;
this.searchForm.pageSize = 10;
this.getDataList();
},
clearSelectAll() { clearSelectAll() {
this.$refs.table.selectAll(false); this.$refs.table.selectAll(false);
@ -323,14 +331,7 @@ export default {
}); });
}, },
}, },
watch: { activated() {
$route(to, from) {
if (to.fullPath == "/promotion/pintuan") {
this.init();
}
},
},
mounted() {
this.init(); this.init();
}, },
}; };

View File

@ -41,6 +41,7 @@
></DatePicker> ></DatePicker>
</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>
<Button @click="handleReset" class="ml_10">重置</Button>
</Form> </Form>
</Row> </Row>
@ -95,7 +96,7 @@
<script> <script>
import { seckillList } from "@/api/promotion"; import { seckillList } from "@/api/promotion";
export default { export default {
name: "goods", name: "seckill",
components: {}, components: {},
data() { data() {
return { return {
@ -185,6 +186,13 @@ export default {
this.searchForm.pageSize = 10; this.searchForm.pageSize = 10;
this.getDataList(); this.getDataList();
}, },
handleReset() {
this.searchForm = {}
this.selectDate = ''
this.searchForm.pageNumber = 0;
this.searchForm.pageSize = 10;
this.getDataList();
},
manage(row) { manage(row) {
this.$router.push({ name: "seckill-goods", query: { id: row.id } }); this.$router.push({ name: "seckill-goods", query: { id: row.id } });
@ -220,16 +228,9 @@ export default {
return hourArr; return hourArr;
}, },
}, },
mounted() { activated () {
this.init(); this.init();
}, }
watch: {
$route(to, from) {
if (to.fullPath == "/promotion/seckill") {
this.init();
}
},
},
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View File

@ -33,7 +33,7 @@
></DatePicker> ></DatePicker>
</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>
<Button @click="handleReset" class="search-btn">重置</Button>
</Form> </Form>
</Row> </Row>
<Row class="padding-row"> <Row class="padding-row">
@ -202,6 +202,12 @@
this.searchForm.pageSize = 10; this.searchForm.pageSize = 10;
this.getDataList(); this.getDataList();
}, },
handleReset() {
this.searchForm = {}
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10;
this.getDataList();
},
changeSort(e) { changeSort(e) {
this.searchForm.sort = e.key; this.searchForm.sort = e.key;
this.searchForm.order = e.order; this.searchForm.order = e.order;

View File

@ -40,7 +40,7 @@
</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>
<Button @click="handleReset" class="search-btn">重置</Button>
</Form> </Form>
</Row> </Row>
<Row class="padding-row"> <Row class="padding-row">
@ -209,6 +209,12 @@
this.searchForm.pageSize = 10; this.searchForm.pageSize = 10;
this.getDataList(); this.getDataList();
}, },
handleReset() {
this.searchForm = {}
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10;
this.getDataList();
},
changeSort(e) { changeSort(e) {
this.searchForm.sort = e.key; this.searchForm.sort = e.key;
this.searchForm.order = e.order; this.searchForm.order = e.order;
@ -252,7 +258,7 @@
}, },
}, },
mounted() { activated () {
this.init(); this.init();
}, },
}; };