-
-
-
-
-
+
+
+
-
+
@@ -45,14 +43,10 @@ import {
getDistributionGoods,
delDistributionGoods
} from "@/api/distribution";
-import {getShopListData} from '@/api/shops'
export default {
name: "distributionGoods",
- components: {
- },
data() {
return {
- shopList:[], // 店铺列表
loading: true, // 表单加载状态
searchForm: { // 搜索框初始化对象
pageNumber: 1, // 当前页数
@@ -161,50 +155,39 @@ export default {
};
},
methods: {
+ // 初始化数据
init() {
this.getDataList();
- // this.getShopList()
},
+ // 分页 改变页码
changePage(v) {
this.searchForm.pageNumber = v;
this.getDataList();
this.clearSelectAll();
},
+ // 分页 改变页数
changePageSize(v) {
this.searchForm.pageSize = v;
this.getDataList();
},
+ // 搜索
handleSearch() {
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10;
this.getDataList();
},
- handleReset() {
- this.$refs.searchForm.resetFields();
- this.searchForm.pageNumber = 1;
- this.searchForm.pageSize = 10;
- // 重新加载数据
- this.init();
- },
- changeSort(e) {
- this.searchForm.sort = e.key;
- this.searchForm.order = e.order;
- if (e.order === "normal") {
- this.searchForm.order = "";
- }
- this.getDataList();
- },
+ // 清除选中状态
clearSelectAll() {
this.$refs.table.selectAll(false);
},
+ // 选中后赋值
changeSelect(e) {
this.selectList = e;
this.selectCount = e.length;
},
-
+ // 获取列表数据
getDataList() {
this.loading = true;
- // 带多条件搜索参数获取表单数据 请自行修改接口
getDistributionGoods(this.searchForm).then(res => {
this.loading = false;
if (res.success) {
@@ -215,68 +198,50 @@ export default {
this.total = this.data.length;
this.loading = false;
},
+ // 下架商品
remove(v) {
this.$Modal.confirm({
- title: "确认删除",
- // 记得确认修改此处
- content: "您确认要删除么?",
+ title: "确认下架",
+ content: "您确认要下架么?",
loading: true,
onOk: () => {
- // 删除
+ // 下架
delDistributionGoods(v.id).then(res => {
this.$Modal.remove();
if (res.success) {
- this.$Message.success("删除成功");
+ this.$Message.success("下架成功");
this.getDataList();
}
});
}
});
},
+ // 批量下架
delAll() {
if (this.selectCount <= 0) {
- this.$Message.warning("您还未选择要删除的数据");
+ this.$Message.warning("您还未选择要下架的数据");
return;
}
this.$Modal.confirm({
- title: "确认删除",
- content: "您确认要删除所选的 " + this.selectCount + " 条数据?",
+ title: "确认下架",
+ content: "您确认要下架所选的 " + this.selectCount + " 条数据?",
loading: true,
onOk: () => {
let ids = []
this.selectList.forEach(item => {
ids.push(item.id)
});
- // 批量删除
+ // 批量下架
delDistributionGoods(ids.toString()).then(res => {
this.$Modal.remove();
if (res.success) {
- this.$Message.success("删除成功");
+ this.$Message.success("下架成功");
this.clearSelectAll();
this.getDataList();
}
});
}
});
- },
- getShopList(val){
- const params = {
- pageNumber:1,
- pageSize:10,
- storeName:''
- }
- if(val){
- params.storeName = val;
- }else {
- params.storeName = ''
- }
-
- getShopListData(params).then(res => {
- this.shopList = res.result.records
- })
- },
- searchChange(val){
- this.getShopList(val)
}
},
mounted() {
@@ -284,7 +249,5 @@ export default {
}
};
-
+
diff --git a/manager/src/views/distribution/distributionOrder.vue b/manager/src/views/distribution/distributionOrder.vue
index b1f30079..06efbe74 100644
--- a/manager/src/views/distribution/distributionOrder.vue
+++ b/manager/src/views/distribution/distributionOrder.vue
@@ -1,40 +1,38 @@
-
+
-
-
-
-
+
+
@@ -56,7 +54,7 @@
{{filterStatus(row.distributionOrderStatus)}}
-
+
@@ -81,8 +79,6 @@
orderStatusList, // 订单状态列表
shopList: [], // 店铺列表
distributionId: this.$route.query.id, // 分销id
- openSearch: true, // 显示搜索
- openTip: true, // 显示提示
loading: true, // 表单加载状态
searchForm: { // 搜索框初始化对象
pageNumber: 1, // 当前页数
@@ -154,24 +150,28 @@
};
},
methods: {
+ // 初始化数据
init() {
this.getDataList();
this.getShopList()
},
+ //分页 改变页码
changePage(v) {
this.searchForm.pageNumber = v;
this.getDataList();
},
+ // 分页 改变页数
changePageSize(v) {
this.searchForm.pageSize = v;
this.getDataList();
},
+ // 搜索
handleSearch() {
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10;
this.getDataList();
},
-
+ // 获取列表数据
getDataList() {
this.searchForm.distributionId = this.distributionId;
this.loading = true;
@@ -181,7 +181,6 @@
this.searchForm.startTime = this.$options.filters.unixToDate(startTime / 1000)
this.searchForm.endTime = this.$options.filters.unixToDate(endTime / 1000)
}
- console.log(this.searchForm)
// 带多条件搜索参数获取表单数据 请自行修改接口
getDistributionOrder(this.searchForm).then(res => {
this.loading = false;
@@ -194,7 +193,7 @@
this.total = this.data.length;
this.loading = false;
},
- getShopList(val) { // 获取店铺列表
+ getShopList(val) { // 获取店铺列表 搜索用
const params = {
pageNumber: 1,
pageSize: 10,
@@ -253,8 +252,7 @@
}
};
-
diff --git a/manager/src/views/error-page/500.vue b/manager/src/views/error-page/500.vue
index f947f0b5..6a73bec5 100644
--- a/manager/src/views/error-page/500.vue
+++ b/manager/src/views/error-page/500.vue
@@ -1,107 +1,121 @@
-
-
-
-
- 5
-
- Oops! the server is wrong
-
-
-
-
-
+
+
+
+
+ 5
+ Oops! the server is wrong
+
+
+
+
+
+
diff --git a/manager/src/views/goods-unit/index.vue b/manager/src/views/goods-unit/index.vue
index 93c84b5c..e82637ae 100644
--- a/manager/src/views/goods-unit/index.vue
+++ b/manager/src/views/goods-unit/index.vue
@@ -17,7 +17,7 @@
@on-sort-change="changeSort"
@on-selection-change="changeSelect"
>
-
+
-
diff --git a/manager/src/views/goods/goods-industry-statistics/index.vue b/manager/src/views/goods/goods-industry-statistics/index.vue
deleted file mode 100644
index 6d5f13cd..00000000
--- a/manager/src/views/goods/goods-industry-statistics/index.vue
+++ /dev/null
@@ -1,239 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/manager/src/views/goods/goods-info/goods.vue b/manager/src/views/goods/goods-info/goods.vue
index 7585a6cd..fa92e4c1 100644
--- a/manager/src/views/goods/goods-info/goods.vue
+++ b/manager/src/views/goods/goods-info/goods.vue
@@ -1,63 +1,59 @@
-
-
-
+
-
+
{
this.loading = false;
if (res.records) {
@@ -353,16 +332,15 @@ export default {
}
});
},
+ // 编辑
edit(v) {
this.id = v.id;
if (v.underMessage != "{}") {
this.underForm.reason = v.underMessage;
}
-
- this.modalType = 1;
- this.modalTitle = "下架操作";
this.modalVisible = true;
},
+ // 下架
lower() {
lowGoods(this.id, this.underForm).then((res) => {
this.$Modal.remove();
@@ -373,6 +351,7 @@ export default {
}
});
},
+ // 商家
upper(v) {
this.$Modal.confirm({
title: "确认上架",
@@ -397,14 +376,10 @@ export default {
name: "goods-detail",
query: { id: id },
});
- },
+ }
},
mounted() {
this.init();
},
};
-
diff --git a/manager/src/views/goods/goods-info/goodsApply.vue b/manager/src/views/goods/goods-info/goodsApply.vue
index 07de31f3..3c475d26 100644
--- a/manager/src/views/goods/goods-info/goodsApply.vue
+++ b/manager/src/views/goods/goods-info/goodsApply.vue
@@ -57,7 +57,7 @@
-
+
-
+
diff --git a/manager/src/views/goods/goods-manage/brand.vue b/manager/src/views/goods/goods-manage/brand.vue
index d2f2212c..a6126f48 100644
--- a/manager/src/views/goods/goods-manage/brand.vue
+++ b/manager/src/views/goods/goods-manage/brand.vue
@@ -1,6 +1,3 @@
-
@@ -17,7 +14,7 @@
-
+
diff --git a/manager/src/views/goods/goods-manage/category.vue b/manager/src/views/goods/goods-manage/category.vue
index af3d2e41..471878ce 100644
--- a/manager/src/views/goods/goods-manage/category.vue
+++ b/manager/src/views/goods/goods-manage/category.vue
@@ -476,7 +476,6 @@ export default {
};
diff --git a/manager/src/views/goods/goods-review/index.vue b/manager/src/views/goods/goods-review/index.vue
index 4f149a78..2d8c2427 100644
--- a/manager/src/views/goods/goods-review/index.vue
+++ b/manager/src/views/goods/goods-review/index.vue
@@ -22,7 +22,7 @@
-
+
@@ -351,5 +351,4 @@ export default {
diff --git a/manager/src/views/lili-dialog/template/marketing.vue b/manager/src/views/lili-dialog/template/marketing.vue
index 04af40de..688d4fa2 100644
--- a/manager/src/views/lili-dialog/template/marketing.vue
+++ b/manager/src/views/lili-dialog/template/marketing.vue
@@ -22,7 +22,7 @@
- {params.pageNumber = val; } " :current="params.pageNumber" :page-size="params.pageSize" class="page" :total="totals" size="small" show-elevator />
+ {params.pageNumber = val; } " :current="params.pageNumber" :page-size="params.pageSize" class="mt_10" :total="totals" size="small" show-elevator />
diff --git a/manager/src/views/logistics/index.vue b/manager/src/views/logistics/index.vue
index ae43626b..01ca03de 100644
--- a/manager/src/views/logistics/index.vue
+++ b/manager/src/views/logistics/index.vue
@@ -1,7 +1,6 @@
-
@@ -16,14 +15,14 @@
@on-selection-change="changeSelect"
>
-
-
- 展示
- 隐藏
+
+
+ 开启
+ 禁用
-
+
{
this.loading = false;
if (res.success) {
- this.data = res.result.records;
+ const data = res.result.records;
+ data.forEach(e => {
+ e.switch = e.disabled === 'OPEN' ? true : false
+ });
+ this.data = data;
this.total = res.result.total;
}
});
this.total = this.data.length;
this.loading = false;
},
+ // switch 切换状态
+ changeSwitch (v) {
+ this.form.name = v.name;
+ this.form.code = v.code;
+ this.form.standBy = v.standBy;
+ this.form.formItems = v.formItems;
+ this.form.disabled = v.disabled === 'CLOSE' ? 'OPEN' : 'CLOSE';
+ updateLogistics(v.id, this.form).then((res) => {
+ if (res.success) {
+ this.$Message.success("操作成功");
+ this.getDataList();
+ }
+ });
+ },
+ // 确认提交
handleSubmit() {
this.$refs.form.validate((valid) => {
if (valid) {
@@ -300,6 +274,7 @@
}
});
},
+ // 添加信息
add() {
this.modalType = 0;
this.modalTitle = "添加";
@@ -308,6 +283,7 @@
this.modalVisible = true;
},
+ // 编辑
detail(v) {
this.modalType = 1;
this.id = v.id;
@@ -323,6 +299,7 @@
? (this.form.disabled = true)
: (this.form.disabled = false);
},
+ // 删除物流公司
remove(v) {
this.$Modal.confirm({
title: "确认删除",
@@ -347,7 +324,3 @@
},
};
-
diff --git a/manager/src/views/member/advance/recharge.vue b/manager/src/views/member/advance/recharge.vue
index 26c2be83..f1cb3dcd 100644
--- a/manager/src/views/member/advance/recharge.vue
+++ b/manager/src/views/member/advance/recharge.vue
@@ -51,7 +51,7 @@
@on-sort-change="changeSort"
@on-selection-change="changeSelect"
>
-
+
-
-
+
\ No newline at end of file
diff --git a/manager/src/views/member/advance/walletLog.vue b/manager/src/views/member/advance/walletLog.vue
index 3f2da047..a2fc76c1 100644
--- a/manager/src/views/member/advance/walletLog.vue
+++ b/manager/src/views/member/advance/walletLog.vue
@@ -14,7 +14,7 @@
-
+
@@ -188,7 +188,3 @@ export default {
},
};
-
diff --git a/manager/src/views/member/advance/withdrawApply.vue b/manager/src/views/member/advance/withdrawApply.vue
index 27e24eb3..894bbc1a 100644
--- a/manager/src/views/member/advance/withdrawApply.vue
+++ b/manager/src/views/member/advance/withdrawApply.vue
@@ -23,7 +23,7 @@
-
+
@@ -337,7 +337,4 @@ export default {
},
};
-
+
diff --git a/manager/src/views/member/list/index.vue b/manager/src/views/member/list/index.vue
index be3cd83d..9f19bf41 100644
--- a/manager/src/views/member/list/index.vue
+++ b/manager/src/views/member/list/index.vue
@@ -23,7 +23,7 @@
-
+
@@ -530,7 +530,6 @@ export default {
};
diff --git a/manager/src/views/member/list/memberRecycle.vue b/manager/src/views/member/list/memberRecycle.vue
index 0125c430..5af21c76 100644
--- a/manager/src/views/member/list/memberRecycle.vue
+++ b/manager/src/views/member/list/memberRecycle.vue
@@ -43,7 +43,7 @@
@on-selection-change="changeSelect"
>
-
+
+
@@ -111,7 +109,7 @@
@on-selection-change="showSelect"
ref="memberTable"
>
-
+
-
+
-
+
-
+
-@import "@/styles/table-common.scss";
-
@@ -85,7 +82,7 @@
@on-selection-change="showSelect"
ref="table"
>
-
+
-@import "@/styles/table-common.scss";
-
@@ -51,7 +48,7 @@
@on-sort-change="changeSort"
@on-selection-change="changeSelect"
>
-
+
-@import "@/styles/table-common.scss";
-
@@ -53,7 +50,7 @@
:data="weChatData"
ref="weChatTable"
>
-
+
-
+
-
+
-
diff --git a/manager/src/views/member/point/point.vue b/manager/src/views/member/point/point.vue
index 8be76f28..4da33602 100644
--- a/manager/src/views/member/point/point.vue
+++ b/manager/src/views/member/point/point.vue
@@ -33,7 +33,7 @@
@on-selection-change="changeSelect"
>
-
+
diff --git a/manager/src/views/order/after-order/orderComplaint.vue b/manager/src/views/order/after-order/orderComplaint.vue
index 6a359b81..3a50c9df 100644
--- a/manager/src/views/order/after-order/orderComplaint.vue
+++ b/manager/src/views/order/after-order/orderComplaint.vue
@@ -54,7 +54,7 @@
-
+
-
diff --git a/manager/src/views/order/flow/paymentLog.vue b/manager/src/views/order/flow/paymentLog.vue
index f6a37a94..366516b2 100644
--- a/manager/src/views/order/flow/paymentLog.vue
+++ b/manager/src/views/order/flow/paymentLog.vue
@@ -28,7 +28,7 @@
-
+
@@ -192,7 +192,4 @@ export default {
},
};
-
+
diff --git a/manager/src/views/order/flow/refundLog.vue b/manager/src/views/order/flow/refundLog.vue
index d911787b..d6529e21 100644
--- a/manager/src/views/order/flow/refundLog.vue
+++ b/manager/src/views/order/flow/refundLog.vue
@@ -21,7 +21,7 @@
-
+
@@ -175,7 +175,4 @@ export default {
},
};
-
+
diff --git a/manager/src/views/order/order/fictitiousOrderList.vue b/manager/src/views/order/order/fictitiousOrderList.vue
index 39021093..f4d80d60 100644
--- a/manager/src/views/order/order/fictitiousOrderList.vue
+++ b/manager/src/views/order/order/fictitiousOrderList.vue
@@ -57,7 +57,7 @@
@on-sort-change="changeSort"
@on-selection-change="changeSelect"
>
-
+
-
diff --git a/manager/src/views/order/order/orderDetail.vue b/manager/src/views/order/order/orderDetail.vue
index 67767ffb..dc041aae 100644
--- a/manager/src/views/order/order/orderDetail.vue
+++ b/manager/src/views/order/order/orderDetail.vue
@@ -700,8 +700,6 @@ export default {
};
diff --git a/manager/src/views/page/feedback/feedback.vue b/manager/src/views/page/feedback/feedback.vue
index b123ce50..424cf7db 100644
--- a/manager/src/views/page/feedback/feedback.vue
+++ b/manager/src/views/page/feedback/feedback.vue
@@ -1,6 +1,4 @@
-
+
@@ -14,7 +12,7 @@
@on-sort-change="changeSort"
@on-selection-change="changeSelect"
>
-
+
-
+
diff --git a/manager/src/views/page/navigation/pcNavigation.vue b/manager/src/views/page/navigation/pcNavigation.vue
index c17e6fdf..927ee2e3 100644
--- a/manager/src/views/page/navigation/pcNavigation.vue
+++ b/manager/src/views/page/navigation/pcNavigation.vue
@@ -15,7 +15,7 @@
-
+
@@ -437,25 +437,3 @@
}
};
-
diff --git a/manager/src/views/promotion/coupon/coupon.vue b/manager/src/views/promotion/coupon/coupon.vue
index eeeb055f..22347dad 100644
--- a/manager/src/views/promotion/coupon/coupon.vue
+++ b/manager/src/views/promotion/coupon/coupon.vue
@@ -30,7 +30,7 @@
-
+
@@ -394,6 +394,3 @@ export default {
},
};
-
diff --git a/manager/src/views/promotion/coupon/couponInfo.vue b/manager/src/views/promotion/coupon/couponInfo.vue
index 87061b89..35c77a3d 100644
--- a/manager/src/views/promotion/coupon/couponInfo.vue
+++ b/manager/src/views/promotion/coupon/couponInfo.vue
@@ -73,7 +73,7 @@
适用品类范围
-
+
diff --git a/manager/src/views/promotion/couponActivity/coupon.vue b/manager/src/views/promotion/couponActivity/coupon.vue
index 1a70ada7..fb09532b 100644
--- a/manager/src/views/promotion/couponActivity/coupon.vue
+++ b/manager/src/views/promotion/couponActivity/coupon.vue
@@ -16,7 +16,7 @@
-
+
@@ -236,6 +236,3 @@ export default {
},
};
-
diff --git a/manager/src/views/promotion/fullCut/full-cut.vue b/manager/src/views/promotion/fullCut/full-cut.vue
index b441ea88..8f9edc44 100644
--- a/manager/src/views/promotion/fullCut/full-cut.vue
+++ b/manager/src/views/promotion/fullCut/full-cut.vue
@@ -216,7 +216,3 @@ export default {
},
};
-
diff --git a/manager/src/views/promotion/live/live.vue b/manager/src/views/promotion/live/live.vue
index da943fd3..1e079e5b 100644
--- a/manager/src/views/promotion/live/live.vue
+++ b/manager/src/views/promotion/live/live.vue
@@ -10,7 +10,7 @@
-
+
@@ -237,7 +237,6 @@ export default {
diff --git a/manager/src/views/promotion/seckill/seckill.vue b/manager/src/views/promotion/seckill/seckill.vue
index 7ee3c957..2dde72c1 100644
--- a/manager/src/views/promotion/seckill/seckill.vue
+++ b/manager/src/views/promotion/seckill/seckill.vue
@@ -26,7 +26,7 @@
-
+
-
+
@@ -230,7 +230,6 @@ export default {
};
diff --git a/manager/src/views/seller/shop/shopAuditList.vue b/manager/src/views/seller/shop/shopAuditList.vue
index 2101d6c7..c47d7363 100644
--- a/manager/src/views/seller/shop/shopAuditList.vue
+++ b/manager/src/views/seller/shop/shopAuditList.vue
@@ -28,7 +28,7 @@
-
+
@@ -395,7 +395,3 @@
},
};
-
diff --git a/manager/src/views/seller/shop/shopDetail.vue b/manager/src/views/seller/shop/shopDetail.vue
index e5f7ad22..9d2c70d9 100644
--- a/manager/src/views/seller/shop/shopDetail.vue
+++ b/manager/src/views/seller/shop/shopDetail.vue
@@ -263,7 +263,7 @@
-
+
-
+
-
+
diff --git a/manager/src/views/seller/shop/shopList.vue b/manager/src/views/seller/shop/shopList.vue
index 6404d532..0d646f64 100644
--- a/manager/src/views/seller/shop/shopList.vue
+++ b/manager/src/views/seller/shop/shopList.vue
@@ -40,7 +40,7 @@
-
+
@@ -448,7 +448,3 @@ export default {
},
};
-
diff --git a/manager/src/views/sensitiveWords/index.vue b/manager/src/views/sensitiveWords/index.vue
index beb50ee4..4f12091c 100644
--- a/manager/src/views/sensitiveWords/index.vue
+++ b/manager/src/views/sensitiveWords/index.vue
@@ -15,7 +15,7 @@
@on-sort-change="changeSort"
@on-selection-change="changeSelect"
>
-
+
-
diff --git a/manager/src/views/statistics/order.vue b/manager/src/views/statistics/order.vue
index 57222702..d17f6f51 100644
--- a/manager/src/views/statistics/order.vue
+++ b/manager/src/views/statistics/order.vue
@@ -155,7 +155,7 @@
- {refundParams.pageNumber = index}" @on-page-size-change="(size)=>{refundParams.pageSize= size}" class="page" show-total show-elevator :total="total" />
+ {refundParams.pageNumber = index}" @on-page-size-change="(size)=>{refundParams.pageSize= size}" class="mt_10" show-total show-elevator :total="total" />
diff --git a/manager/src/views/sys/app-version/appVersion.vue b/manager/src/views/sys/app-version/appVersion.vue
index 3d411d76..e1098041 100644
--- a/manager/src/views/sys/app-version/appVersion.vue
+++ b/manager/src/views/sys/app-version/appVersion.vue
@@ -20,7 +20,7 @@
-
+
@@ -411,6 +411,4 @@ export default {
.search-form {
width: 100%;
}
-// 建议引入通用样式 可删除下面样式代码
-@import "@/styles/table-common.scss";
diff --git a/manager/src/views/sys/log-manage/logManage.vue b/manager/src/views/sys/log-manage/logManage.vue
index 57e541a9..6dbf4931 100644
--- a/manager/src/views/sys/log-manage/logManage.vue
+++ b/manager/src/views/sys/log-manage/logManage.vue
@@ -1,6 +1,4 @@
-
+
@@ -77,7 +75,7 @@
>
-
+
-
+
-
+
-
+
-
+
diff --git a/manager/src/views/sys/message/sms.vue b/manager/src/views/sys/message/sms.vue
index 3583b5f5..89073c80 100644
--- a/manager/src/views/sys/message/sms.vue
+++ b/manager/src/views/sys/message/sms.vue
@@ -9,7 +9,7 @@
-
+
@@ -21,7 +21,7 @@
-
+
@@ -48,7 +48,7 @@
-
+
@@ -900,8 +900,6 @@ export default {
@@ -166,7 +165,7 @@
-
+
-@import "@/styles/table-common.scss";
@import "./roleManage.scss";
@@ -19,7 +18,7 @@
@on-sort-change="changeSort"
@on-selection-change="changeSelect"
>
-
+
-
+
-
+
-@import "@/styles/table-common.scss";
-
@@ -53,7 +50,7 @@
@on-selection-change="showSelect"
ref="table"
>
-
+
-
-