diff --git a/buyer/src/pages/home/orderCenter/OrderDetail.vue b/buyer/src/pages/home/orderCenter/OrderDetail.vue
index 08ddc03a..bf0223fd 100644
--- a/buyer/src/pages/home/orderCenter/OrderDetail.vue
+++ b/buyer/src/pages/home/orderCenter/OrderDetail.vue
@@ -80,8 +80,8 @@
运费:+{{ order.order.freightPrice | unitPrice("¥") }}
- 优惠券:-{{ order.order.priceDetailDTO.couponPrice || 0 | unitPrice("¥") }}
- 活动优惠:-{{ order.order.discountPrice | unitPrice("¥") }}
+ 优惠券:-{{ order.order.priceDetailDTO.couponPrice || 0 | unitPrice("¥") }}
+ 活动优惠:-{{ order.order.discountPrice | unitPrice("¥") }}
应付金额:
{{ order.order.flowPrice | unitPrice("¥") }}
diff --git a/manager/src/config/index.js b/manager/src/config/index.js
index 596645d1..deef8a67 100644
--- a/manager/src/config/index.js
+++ b/manager/src/config/index.js
@@ -17,14 +17,14 @@ export default {
* @description api请求基础路径
*/
api_dev: {
- // common: "https://common-api.pickmall.cn",
- // buyer: "https://buyer-api.pickmall.cn",
- // seller: "https://store-api.pickmall.cn",
- // manager: "https://admin-api.pickmall.cn"
- common: 'http://192.168.0.103:8890',
- buyer: 'http://192.168.0.103:8888',
- seller: 'http://192.168.0.103:8889',
- manager: 'http://192.168.0.103:8887'
+ common: "https://common-api.pickmall.cn",
+ buyer: "https://buyer-api.pickmall.cn",
+ seller: "https://store-api.pickmall.cn",
+ manager: "https://admin-api.pickmall.cn"
+ // common: 'http://192.168.0.103:8890',
+ // buyer: 'http://192.168.0.103:8888',
+ // seller: 'http://192.168.0.103:8889',
+ // manager: 'http://192.168.0.103:8887'
},
api_prod: {
common: "https://common-api.pickmall.cn",
diff --git a/manager/src/views/distribution/distributionOrder.vue b/manager/src/views/distribution/distributionOrder.vue
index 0a828d92..b1f30079 100644
--- a/manager/src/views/distribution/distributionOrder.vue
+++ b/manager/src/views/distribution/distributionOrder.vue
@@ -52,6 +52,9 @@
+
+ {{filterStatus(row.distributionOrderStatus)}}
+
{
- if (params.row.distributionOrderStatus == 'COMPLETE_CASH') {
- return h('div', '提现完成')
- } else if (params.row.distributionOrderStatus == 'WAIT_BILL') {
- return h('div', '待结算')
- } else if (params.row.distributionOrderStatus == 'WAIT_CASH') {
- return h('div', '待提现')
- }
- }
+ slot: "distributionOrderStatus",
+ width: 120,
+
},
-
{
title: "佣金金额",
key: "rebateGrade",
@@ -219,6 +212,34 @@
},
searchChange(val) { // 店铺搜索,键盘点击回调
this.getShopList(val)
+ },
+ filterStatus (status) { // 过滤订单状态
+ const arr = [
+ {status: 'WAIT_BILL', title: '待结算'},
+ {status: 'WAIT_CASH', title: '待提现'},
+ {status: 'COMPLETE_CASH', title: '提现完成'},
+ {status: 'CANCEL', title: '订单取消'},
+ {status: 'REFUND', title: '退款'},
+ ]
+ for (let i=0;i
-
-
-
-
-
-
-
+
+ {{row.deleteFlag == false ? '正常启用' : '禁用'}}
@@ -129,7 +124,7 @@ import {
} from "@/api/goods";
import uploadPicInput from "@/views/my-components/lili/upload-pic-input";
-
+import {regular} from "@/utils";
export default {
name: "lili-components",
components: {
@@ -172,7 +167,12 @@ export default {
brandWay: "", //请求绑定品牌的信息
specForm: {},
// 表单验证规则
- formValidate: {},
+ formValidate: {
+ commissionRate: [
+ {required: true, message: '请填写佣金比例'},
+ {pattern: regular.Integer, message: "佣金比例不能为负"},
+ ]
+ },
columns: [
{
title: "分类名称",
@@ -181,8 +181,6 @@ export default {
},
{
title: "状态",
- key: "deleteFlag",
-
slot: "deleteFlag",
},
{
diff --git a/manager/src/views/order/flow/paymentLog.vue b/manager/src/views/order/flow/paymentLog.vue
index f0b66afe..f6a37a94 100644
--- a/manager/src/views/order/flow/paymentLog.vue
+++ b/manager/src/views/order/flow/paymentLog.vue
@@ -22,7 +22,7 @@
-
+
@@ -53,10 +53,9 @@ export default {
pageSize: 10, // 页面大小
sort: "createTime", // 默认排序字段
order: "desc", // 默认排序方式
- startDate: "", // 起始时间
- endDate: "", // 终止时间
sn: "",
payStatus: "",
+ paymentTime: "",
},
columns: [
{
@@ -151,61 +150,30 @@ export default {
};
},
methods: {
- dropDown() {
- if (this.drop) {
- this.dropDownContent = "展开";
- this.dropDownIcon = "ios-arrow-down";
- } else {
- this.dropDownContent = "收起";
- this.dropDownIcon = "ios-arrow-up";
- }
- this.drop = !this.drop;
- },
+ // 初始化数据
init() {
this.getDataList();
},
+ // 改变页码
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();
},
- handleReset() {
- this.$refs.searchForm.resetFields();
- this.searchForm.pageNumber = 1;
- this.searchForm.pageSize = 10;
- this.selectDate = null;
- this.searchForm.startDate = "";
- this.searchForm.endDate = "";
- // 重新加载数据
- 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) {
- if (v) {
- this.searchForm.startDate = v[0];
- this.searchForm.endDate = v[1];
- }
+ changeDate (val) { // 改变日期格式
+ this.searchForm.paymentTime = val
},
+ // 获取列表
getDataList() {
this.loading = true;
API_Order.paymentLog(this.searchForm).then((res) => {
diff --git a/manager/src/views/order/order/orderDetail.vue b/manager/src/views/order/order/orderDetail.vue
index 70c04145..67767ffb 100644
--- a/manager/src/views/order/order/orderDetail.vue
+++ b/manager/src/views/order/order/orderDetail.vue
@@ -23,6 +23,11 @@
type="primary"
>订单取消
+
@@ -571,6 +576,25 @@ export default {
this.showRegion = true;
this.regionId = "";
},
+ //确认收款
+ confirmPrice() {
+ this.$Modal.confirm({
+ title: "提示",
+ content:
+ "您确定要收款吗?线下收款涉及库存变更,需异步进行,等待约一分钟刷新列表查看
",
+ onOk: () => {
+ API_Order.orderPay(this.sn).then((res) => {
+ if (res.success) {
+ this.$Message.success("收款成功");
+ this.getDataList();
+ } else {
+ this.$Message.error(res.message);
+ }
+ });
+ },
+ });
+ },
+ // 获取订单详情
getDataList() {
this.loading = true;
API_Order.orderDetail(this.sn).then((res) => {
diff --git a/manager/src/views/order/order/orderList.vue b/manager/src/views/order/order/orderList.vue
index 1a93e173..3998208d 100644
--- a/manager/src/views/order/order/orderList.vue
+++ b/manager/src/views/order/order/orderList.vue
@@ -207,20 +207,13 @@ export default {
title: "操作",
key: "action",
align: "center",
- width: 150,
+ width: 100,
render: (h, params) => {
- return h("div", [h("Button", {props: {type: "primary", size: "small",},
- attrs: {disabled: params.row.orderStatus == "UNPAID" ? false : true,},
+ return h("Button", {props: {type: "info", size: "small",},
style: {marginRight: "5px",},
- on: {click: () => {this.confirmPrice(params.row);},},
- }, "收款"
- ),
- h("Button", {props: {type: "info", size: "small",},
- style: {marginRight: "5px",},
- on: {click: () => {this.detail(params.row);},},
- }, "查看"
- ),
- ]);
+ on: {click: () => {this.detail(params.row);},},
+ }, "查看"
+ )
},
},
],
@@ -286,25 +279,7 @@ export default {
this.total = this.data.length;
this.loading = false;
},
- //确认收款
- confirmPrice(v) {
- this.$Modal.confirm({
- title: "提示",
- content:
- "您确定要收款吗?线下收款涉及库存变更,需异步进行,等待约一分钟刷新列表查看
",
- onOk: () => {
- API_Order.orderPay(v.sn).then((res) => {
- if (res.success) {
- this.$Message.success("收款成功");
- this.getDataList();
- } else {
- this.$Message.error(res.message);
- }
- });
- },
- });
- },
-
+ // 跳转详情页面
detail(v) {
let sn = v.sn;
this.$router.push({
diff --git a/seller/src/config/index.js b/seller/src/config/index.js
index baff612e..9e225895 100644
--- a/seller/src/config/index.js
+++ b/seller/src/config/index.js
@@ -18,14 +18,14 @@ export default {
* @description api请求基础路径
*/
api_dev: {
- common: 'https://common-api.pickmall.cn',
- buyer: 'https://buyer-api.pickmall.cn',
- seller: 'https://store-api.pickmall.cn',
- manager: 'https://admin-api.pickmall.cn',
- // common: 'http://192.168.0.106:8890',
- // buyer: 'http://192.168.0.106:8888',
- // seller: 'http://192.168.0.106:8889',
- // manager: 'http://192.168.0.106:8887'
+ // common: 'https://common-api.pickmall.cn',
+ // buyer: 'https://buyer-api.pickmall.cn',
+ // seller: 'https://store-api.pickmall.cn',
+ // manager: 'https://admin-api.pickmall.cn',
+ common: 'http://192.168.0.103:8890',
+ buyer: 'http://192.168.0.103:8888',
+ seller: 'http://192.168.0.103:8889',
+ manager: 'http://192.168.0.103:8887'
},
api_prod: {
diff --git a/seller/src/views/statistics/order.vue b/seller/src/views/statistics/order.vue
index 0e8bb187..9ce0ca9e 100644
--- a/seller/src/views/statistics/order.vue
+++ b/seller/src/views/statistics/order.vue
@@ -37,7 +37,6 @@
-
下单笔数
{{overViewList.orderNum || 0}}
@@ -48,7 +47,7 @@
下单金额
-
{{overViewList.orderAmount ? ($options.filters.unitPrice(overViewList.orderAmount )) : 0 }}
+
{{overViewList.orderAmount || 0 | unitPrice('¥')}}
付款金额
-
{{ overViewList.paymentAmount ? ($options.filters.unitPrice(overViewList.paymentAmount)) : 0 }}
+
{{ overViewList.paymentAmount || 0 | unitPrice('¥')}}
@@ -141,7 +140,6 @@
-
订退单统计
@@ -152,9 +150,7 @@
{refundParams.pageNumber = index}" @on-page-size-change="(size)=>{refundParams.pageSize= size}" class="page" show-total show-elevator :total="total" />
-
-