@@ -173,17 +176,8 @@ export default {
data() {
return {
+ orderOrRefund: true, // 订单还是单
total: "0", // 总数
- orderType: [ // 订单类型
- {
- title: "订单",
- selected: true,
- },
- {
- title: "退单",
- selected: false,
- },
- ],
// 订单状态
orderStatusList: {
UNDELIVERED: "待发货",
@@ -459,20 +453,17 @@ export default {
},
deep: true,
},
+ orderOrRefund:{ // 订单还是退单
+ handler (val) {
+ if (val) {
+ this.getOrderList();
+ } else {
+ this.getOrderRefundList();
+ }
+ }
+ }
},
methods: {
- clickTab(item, index) {
- this.refundIndex = index;
- this.orderType.forEach((res) => {
- res.selected = false;
- });
- if (item.title == "退单") {
- this.getOrderRefundList();
- } else {
- this.getOrderList();
- }
- item.selected = true;
- },
// 订单图
initOrderChart() {
// 默认已经加载 legend-filter 交互
diff --git a/seller/package.json b/seller/package.json
index 8ee9e65b..d912dcb6 100644
--- a/seller/package.json
+++ b/seller/package.json
@@ -30,7 +30,6 @@
"stompjs": "^2.3.3",
"swiper": "^6.3.5",
"uuid": "^8.3.2",
- "view-design": "^4.2.0",
"vue": "^2.6.10",
"vue-awesome": "^4.0.2",
"vue-awesome-swiper": "^4.1.1",
@@ -59,6 +58,7 @@
"less-loader": "^6.2.0",
"style-loader": "^2.0.0",
"style-resources-loader": "^1.3.2",
+ "view-design": "^4.6.1",
"vue-cli-plugin-style-resources-loader": "^0.1.4",
"vue-template-compiler": "^2.6.10"
}
diff --git a/seller/src/views/distribution/distributionGoods.vue b/seller/src/views/distribution/distributionGoods.vue
index 2305b320..10af2831 100644
--- a/seller/src/views/distribution/distributionGoods.vue
+++ b/seller/src/views/distribution/distributionGoods.vue
@@ -12,7 +12,7 @@
-
+
diff --git a/seller/src/views/goods/goods-seller/draftGoods.vue b/seller/src/views/goods/goods-seller/draftGoods.vue
index 53b0d490..8456bd3d 100644
--- a/seller/src/views/goods/goods-seller/draftGoods.vue
+++ b/seller/src/views/goods/goods-seller/draftGoods.vue
@@ -57,6 +57,7 @@
:columns="columns"
:data="data"
ref="table"
+ class="mt_10"
sortable="custom"
>
diff --git a/seller/src/views/goods/goods-seller/goods.vue b/seller/src/views/goods/goods-seller/goods.vue
index 3e5105af..453300c2 100644
--- a/seller/src/views/goods/goods-seller/goods.vue
+++ b/seller/src/views/goods/goods-seller/goods.vue
@@ -41,7 +41,7 @@
-
+
@@ -73,7 +73,7 @@
-
+
diff --git a/seller/src/views/goods/goods-seller/goodsOperationSec.vue b/seller/src/views/goods/goods-seller/goodsOperationSec.vue
index 371dbbca..f13ec3c9 100644
--- a/seller/src/views/goods/goods-seller/goodsOperationSec.vue
+++ b/seller/src/views/goods/goods-seller/goodsOperationSec.vue
@@ -137,7 +137,7 @@
规格详细
-
{
@@ -359,6 +361,7 @@
}
});
},
+ // 删除消息
deleteMessage(id) {
API_Index.deleteMessage(id).then(res => {
if (res.success) {
@@ -369,6 +372,7 @@
backMesTitleList() {
this.showMesTitleList = true;
},
+ // 设置当前消息分类
setCurrentMesType(type) {
if (this.currentMessageType !== type) {
this.showMesTitleList = true;
diff --git a/seller/src/views/my-components/lili/editor.vue b/seller/src/views/my-components/lili/editor.vue
index c8e65270..ea4212c0 100644
--- a/seller/src/views/my-components/lili/editor.vue
+++ b/seller/src/views/my-components/lili/editor.vue
@@ -87,6 +87,7 @@ export default {
};
},
methods: {
+ // 初始化编辑器
initEditor() {
let that = this;
this.editor = new E(`#${this.id}`);
@@ -171,16 +172,19 @@ export default {
}
this.editor.create();
},
+ // html预览
editHTML() {
this.dataEdit = this.data;
this.showHTMLModal = true;
},
+ // 保存
editHTMLOk() {
this.editor.txt.html(this.dataEdit);
this.$emit("input", this.data);
this.$emit("on-change", this.data);
this.showHTMLModal = false;
},
+ // 清空编辑器
clear() {
this.$Modal.confirm({
title: "确认清空",
diff --git a/seller/src/views/my-components/lili/set-password.vue b/seller/src/views/my-components/lili/set-password.vue
index a5ce7688..b3e6b3a9 100644
--- a/seller/src/views/my-components/lili/set-password.vue
+++ b/seller/src/views/my-components/lili/set-password.vue
@@ -83,6 +83,7 @@ export default {
this.grade = grade;
return grade;
},
+ // 强度验证方法
strengthChange() {
if (!this.currentValue) {
this.tipStyle = "password-tip-none";
@@ -108,11 +109,13 @@ export default {
this.strengthValue = 100;
}
},
+ // 输入框change事件
handleChange(v) {
this.strengthChange();
this.$emit("input", this.currentValue);
this.$emit("on-change", this.currentValue, this.grade, this.strength);
},
+ // 回显当前密码
setCurrentValue(value) {
if (value === this.currentValue) {
return;
diff --git a/seller/src/views/my-components/lili/upload-pic-input.vue b/seller/src/views/my-components/lili/upload-pic-input.vue
index 0b156b3d..c01c01c9 100644
--- a/seller/src/views/my-components/lili/upload-pic-input.vue
+++ b/seller/src/views/my-components/lili/upload-pic-input.vue
@@ -55,28 +55,28 @@ export default {
props: {
value: String,
size: String,
- placeholder: {
+ placeholder: { // input提示信息
type: String,
default: "图片链接"
},
- showInput: {
+ showInput: { // 显示图片链接
type: Boolean,
default: true
},
- disabled: {
+ disabled: { // 是否不可选中
type: Boolean,
default: false
},
- readonly: {
+ readonly: { // 是否只读
type: Boolean,
default: false
},
- maxSize: {
+ maxSize: { // 图片最大尺寸
type: Number,
default: 5
},
- maxlength: Number,
- icon: {
+ maxlength: Number, // 最大长度
+ icon: { // 上传按钮图标
type: String,
default: "ios-cloud-upload-outline"
}
@@ -91,11 +91,13 @@ export default {
};
},
methods: {
+ // 初始化
init() {
this.accessToken = {
accessToken: this.getStore("accessToken")
};
},
+ // 格式校验
handleFormatError(file) {
this.loading = false;
this.$Notice.warning({
@@ -106,6 +108,7 @@ export default {
" ’格式不正确, 请选择 .jpg .jpeg .png .gif .bmp格式文件"
});
},
+ // 大小校验
handleMaxSize(file) {
this.loading = false;
this.$Notice.warning({
@@ -113,10 +116,12 @@ export default {
desc: "所选文件‘ " + file.name + " ’大小过大, 不得超过 " + this.maxSize + "M."
});
},
+ // 上传前
beforeUpload() {
this.loading = true;
return true;
},
+ // 上传成功
handleSuccess(res, file) {
this.loading = false;
if (res.success) {
@@ -127,15 +132,18 @@ export default {
this.$Message.error(res.message);
}
},
+ // 上传失败
handleError(error, file, fileList) {
this.loading = false;
this.$Message.error(error.toString());
},
+ // 上传成功回显
handleChange(v) {
this.$emit("input", this.currentValue);
this.$emit("on-change", this.currentValue);
this.$attrs.rollback && this.$attrs.rollback()
},
+ // 初始值
setCurrentValue(value) {
if (value === this.currentValue) {
return;
diff --git a/seller/src/views/my-components/lili/upload-pic-thumb.vue b/seller/src/views/my-components/lili/upload-pic-thumb.vue
index a3e7cc9c..adcfed28 100644
--- a/seller/src/views/my-components/lili/upload-pic-thumb.vue
+++ b/seller/src/views/my-components/lili/upload-pic-thumb.vue
@@ -63,34 +63,34 @@ export default {
vuedraggable
},
props: {
- value: {
+ value: { // 默认值
type: Object
},
- draggable: {
+ draggable: { // 是否可拖拽改变位置
type: Boolean,
default: true
},
- multiple: {
+ multiple: { // 多选
type: Boolean,
default: true
},
- maxSize: {
+ maxSize: { // 大小限制 MB
type: Number,
default: 5
},
- disable:{
+ disable:{ // 禁止上传
type: Boolean,
default: false
},
- remove:{
+ remove:{ // 移除图片
type: Boolean,
default: true
},
- limit: {
+ limit: { // 上传总数限制
type: Number,
default: 10
},
- isView: {
+ isView: { // 显示上传按钮
type: Boolean,
default: false
}
diff --git a/seller/src/views/order/after-order/orderComplaint.vue b/seller/src/views/order/after-order/orderComplaint.vue
index 3e606386..d4ad014d 100644
--- a/seller/src/views/order/after-order/orderComplaint.vue
+++ b/seller/src/views/order/after-order/orderComplaint.vue
@@ -41,6 +41,7 @@
border
:columns="columns"
:data="data"
+ class="mt_10"
ref="table"
sortable="custom"
@on-sort-change="changeSort"
diff --git a/seller/src/views/order/after-order/returnGoodsOrder.vue b/seller/src/views/order/after-order/returnGoodsOrder.vue
index 1842d8ed..0b720392 100644
--- a/seller/src/views/order/after-order/returnGoodsOrder.vue
+++ b/seller/src/views/order/after-order/returnGoodsOrder.vue
@@ -49,6 +49,7 @@
-
+
diff --git a/seller/src/views/order/order/orderList.vue b/seller/src/views/order/order/orderList.vue
index 599dc2cb..3240bbbd 100644
--- a/seller/src/views/order/order/orderList.vue
+++ b/seller/src/views/order/order/orderList.vue
@@ -42,7 +42,7 @@
-
+
diff --git a/seller/src/views/order/order/virtualOrderList.vue b/seller/src/views/order/order/virtualOrderList.vue
index 9c910dd2..5d84e8cb 100644
--- a/seller/src/views/order/order/virtualOrderList.vue
+++ b/seller/src/views/order/order/virtualOrderList.vue
@@ -40,7 +40,7 @@
-
+
diff --git a/seller/src/views/order/receiptManager/receipt.vue b/seller/src/views/order/receiptManager/receipt.vue
index 94ee9637..a9e4ffc7 100644
--- a/seller/src/views/order/receiptManager/receipt.vue
+++ b/seller/src/views/order/receiptManager/receipt.vue
@@ -22,7 +22,7 @@
-
+
{{scope.row.orderSn}}
diff --git a/seller/src/views/promotion/coupon/coupon.vue b/seller/src/views/promotion/coupon/coupon.vue
index 2fc09243..18b0b187 100644
--- a/seller/src/views/promotion/coupon/coupon.vue
+++ b/seller/src/views/promotion/coupon/coupon.vue
@@ -26,7 +26,7 @@
-
+
diff --git a/seller/src/views/promotion/coupon/couponPublish.vue b/seller/src/views/promotion/coupon/couponPublish.vue
index c0ba3b3e..371d4f73 100644
--- a/seller/src/views/promotion/coupon/couponPublish.vue
+++ b/seller/src/views/promotion/coupon/couponPublish.vue
@@ -62,7 +62,7 @@
-
+
diff --git a/seller/src/views/promotion/live/liveGoods.vue b/seller/src/views/promotion/live/liveGoods.vue
index 230712c0..9d5b4162 100644
--- a/seller/src/views/promotion/live/liveGoods.vue
+++ b/seller/src/views/promotion/live/liveGoods.vue
@@ -24,7 +24,7 @@
-
+
diff --git a/seller/src/views/promotion/pintuan/pintuanGoods.vue b/seller/src/views/promotion/pintuan/pintuanGoods.vue
index d6d6550d..b782cf57 100644
--- a/seller/src/views/promotion/pintuan/pintuanGoods.vue
+++ b/seller/src/views/promotion/pintuan/pintuanGoods.vue
@@ -16,7 +16,7 @@
活动商品
-
+
diff --git a/seller/src/views/shop/bill/accountStatementBill.vue b/seller/src/views/shop/bill/accountStatementBill.vue
index 8fa895ba..3615d108 100644
--- a/seller/src/views/shop/bill/accountStatementBill.vue
+++ b/seller/src/views/shop/bill/accountStatementBill.vue
@@ -37,6 +37,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
diff --git a/seller/src/views/statistics/order.vue b/seller/src/views/statistics/order.vue
index 9ce0ca9e..173ca2f0 100644
--- a/seller/src/views/statistics/order.vue
+++ b/seller/src/views/statistics/order.vue
@@ -144,7 +144,10 @@
订退单统计
- {{item.title}}
+
+ 订单
+ 退单
+
@@ -168,18 +171,8 @@ export default {
data() {
return {
+ orderOrRefund: true, // 订单还是退单
total: "0", // 订单总数
- orderType: [
- // tab切换状态
- {
- title: "订单",
- selected: true,
- },
- {
- title: "退单",
- selected: false,
- },
- ],
// 订单状态
orderStatusList: {
UNDELIVERED: "待发货",
@@ -460,20 +453,17 @@ export default {
},
deep: true,
},
+ orderOrRefund:{ // 订单还是退单
+ handler (val) {
+ if (val) {
+ this.getOrderList();
+ } else {
+ this.getOrderRefundList();
+ }
+ }
+ }
},
methods: {
- clickTab(item, index) {
- this.refundIndex = index;
- this.orderType.forEach((res) => {
- res.selected = false;
- });
- if (item.title == "退单") {
- this.getOrderRefundList();
- } else {
- this.getOrderList();
- }
- item.selected = true;
- },
// 订单图
initOrderChart() {
// 默认已经加载 legend-filter 交互