diff --git a/src/api/modules/agent.js b/src/api/modules/agent.js new file mode 100644 index 0000000..1420080 --- /dev/null +++ b/src/api/modules/agent.js @@ -0,0 +1,20 @@ +import $http from "@/utils/httpRequest.js"; +//代理商 +export const agent = { + //商铺列表 + agentShopPage: (data) => { + return $http.request({ + url: `/merchant-api/agent/shop/page`, + method: "get", + params: data, + }); + }, + //市场列表 + agentMarketPage: (data) => { + return $http.request({ + url: `/merchant-api/agent/market/page`, + method: "get", + params: data, + }); + }, +}; diff --git a/src/views/modules/agent/market-list/index.vue b/src/views/modules/agent/market-list/index.vue index 100959b..6bc9f10 100644 --- a/src/views/modules/agent/market-list/index.vue +++ b/src/views/modules/agent/market-list/index.vue @@ -1,15 +1,231 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/views/modules/agent/shop-list/index.vue b/src/views/modules/agent/shop-list/index.vue index fddeffc..2bbe15c 100644 --- a/src/views/modules/agent/shop-list/index.vue +++ b/src/views/modules/agent/shop-list/index.vue @@ -1,15 +1,236 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/views/modules/datacenter/order-analysis/index.vue b/src/views/modules/datacenter/order-analysis/index.vue index 2bb38ae..6928372 100644 --- a/src/views/modules/datacenter/order-analysis/index.vue +++ b/src/views/modules/datacenter/order-analysis/index.vue @@ -311,11 +311,11 @@ export default { this.valueOne = [ year + "-" + month + "-" + day + " 00:00:00", year + "-" + month + "-" + day + " 23:59:59", - (this.formData.settleBeginDate = - year + "-" + month + "-" + day + " 00:00:00"), - (this.formData.settleEndDate = - year + "-" + month + "-" + day + " 23:59:59"), ]; + this.formData.settleBeginDate = + year + "-" + month + "-" + day + " 00:00:00"; + this.formData.settleEndDate = + year + "-" + month + "-" + day + " 23:59:59"; this.getList(); }, changeValue(e) { diff --git a/src/views/modules/marketing/points-mall/index.vue b/src/views/modules/marketing/points-mall/index.vue index 0400454..6674556 100644 --- a/src/views/modules/marketing/points-mall/index.vue +++ b/src/views/modules/marketing/points-mall/index.vue @@ -87,6 +87,8 @@ diff --git a/src/views/modules/marketing/points-mall/popup/add-or-update.vue b/src/views/modules/marketing/points-mall/popup/add-or-update.vue index 392305a..d3ed42c 100644 --- a/src/views/modules/marketing/points-mall/popup/add-or-update.vue +++ b/src/views/modules/marketing/points-mall/popup/add-or-update.vue @@ -15,62 +15,7 @@ label-width="150px" class="demo-ruleForm" > - - - - - - - - - - - - - - - + 点击请选择商品
@@ -104,7 +49,7 @@ { - this.orderTime = []; - this.arrears = []; - this.delivery = []; this.ruleForm = { - startTime: "", - endTime: "", - balancePaymentStartTime: "", - balancePaymentEndTime: "", - estimatedStartDeliveryTime: "", - estimatedEndDeliveryTime: "", - productList: [], - isRefundEarnestMoney: 1, //定金可退 1是 2否 + marketId: this.marketId, + shopId: this.shopId, + unitType: JSON.parse(sessionStorage.getItem("userInfo")).unitType, + list: [], }; - this.modalConfig.title = "新增预售"; + this.modalConfig.title = "添加积分兑换商品"; this.isAdd = true; }, update: () => { - this.modalConfig.title = "编辑预售"; + this.modalConfig.title = "编辑积分商品"; this.isAdd = false; }, }; @@ -484,39 +378,6 @@ export default { // this.ruleForm = row; }, - //订单支付时间 - getOrderTime(e) { - if (e) { - console.log(e); - this.ruleForm.startTime = e[0]; - this.ruleForm.endTime = e[1]; - } else { - this.ruleForm.startTime = ""; - this.ruleForm.endTime = ""; - } - }, - //尾款支付时间 - getArrearsTime(e) { - if (e) { - console.log(e); - this.ruleForm.balancePaymentStartTime = e[0]; - this.ruleForm.balancePaymentEndTime = e[1]; - } else { - this.ruleForm.balancePaymentStartTime = ""; - this.ruleForm.balancePaymentEndTime = ""; - } - }, - //发货时间 - deliveryTime(e) { - if (e) { - console.log(e); - this.ruleForm.estimatedStartDeliveryTime = e[0]; - this.ruleForm.estimatedEndDeliveryTime = e[1]; - } else { - this.ruleForm.estimatedStartDeliveryTime = ""; - this.ruleForm.estimatedEndDeliveryTime = ""; - } - }, selectProduct() { console.log("选择商品", this.marketId, this.shopId); this.$nextTick(() => {