diff --git a/api/admin.js b/api/admin.js index 5df728e..4795d44 100644 --- a/api/admin.js +++ b/api/admin.js @@ -40,6 +40,12 @@ export function setAdminOrderPrice(merId, id, data) { export function postconfirm(merId, data) { return request.post("admin/" + merId + "/confirm" , data, { login: true }); } +/** + * 同意先货后款 + */ +export function postsettle(merId, data) { + return request.post("admin/" + merId + "/settle" , data, { login: true }); +} /** * 订单备注 */ diff --git a/pages.json b/pages.json index 92b8509..aa227e3 100644 --- a/pages.json +++ b/pages.json @@ -486,6 +486,12 @@ "navigationBarTitleText": "我的订单" } }, + { + "path": "order_list/order", + "style": { + "navigationBarTitleText": "我的订单" + } + }, { "path": "order_list/search", "style": { @@ -674,7 +680,16 @@ } } - ] + ,{ + "path" : "payment/payment", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } + ] }, { "root": "pages/store", diff --git a/pages/admin/order/index.vue b/pages/admin/order/index.vue index 906a4ee..56c283f 100644 --- a/pages/admin/order/index.vue +++ b/pages/admin/order/index.vue @@ -77,12 +77,59 @@ - + + + + 订单监控 + + + + + 图 + + + + + 啊十分大师傅但是发sdfsfasfsfs + + + $ 100.00 + + + + 是的方法 + + + + + + 采购数量 + + sdfa + + + + 已售数量 + + sdfa + + + + 库存数量 + + sdfa + + + + + + + @@ -170,7 +217,12 @@ }) } ); - } + }, + navigator(){ + uni.navigateTo({ + url:`/pages/admin/order/monitor?merId=${this.mer_id}` + }) + } }, onReachBottom() { this.getList(this.mer_id) @@ -313,6 +365,13 @@ background-color: #fff; border-radius: 10upx; padding-top: 25upx; + .item{ + .num{ + display: flex; + justify-content: flex-start; + align-items: center; + } + } } .public-wrapper .nav { @@ -346,9 +405,90 @@ border-bottom: 1px solid #f7f7f7; height: 70upx; font-size: 24upx; + } .public-wrapper .conter .item .turnover { color: #d84242; } + .public_footer{ + width: 90%; + margin: auto; + .footer_top{ + display: flex; + align-items: center; + margin: 16px 0 16px 0; + image{ + width: 22px; + height: 22px; + margin-right: 5px; + } + } + .footer_bon{ + width: 100%; + border-radius: 8px; + background-color: #fff; + padding-bottom: 10px; + margin-bottom: 10px; + .bon_top{ + display: flex; + justify-content: flex-start; + align-items: center; + .public_img{ + width: 60px; + height: 60px; + margin: 12px; + } + .text_top{ + display: flex; + justify-content: flex-start; + align-items: center; + margin: 3px 0 3px 0; + .text{ + width: 180px; + background-color: #2291f8; + overflow: hidden; + white-space:nowrap; + text-overflow:ellipsis; + } + .monry{ + margin-left: 20px; + color: #F84221; + } + } + } + .bon_bon{ + width: 90%; + height: 66px; + background: #F5F5F5; + border-radius: 4px 4px 4px 4px; + display: flex; + justify-content: center; + align-items: center; + text-align: center; + margin: auto; + margin-bottom: 10px; + .order{ + width: 120px; + .txt{ + margin-top: 5px; + } + } + } + } + + + } + .footer-bnt{ + margin-top: 20px; + width: 100px; + height: 40px; + border-radius: 15px; + margin: auto; + line-height: 40px; + border: 1px solid #CCCCCC; + background-color: #f5f5f5; + color: #999999; + font-size: 13px + } \ No newline at end of file diff --git a/pages/admin/orderList/index.vue b/pages/admin/orderList/index.vue index 8b16c4d..5dbaab2 100644 --- a/pages/admin/orderList/index.vue +++ b/pages/admin/orderList/index.vue @@ -265,6 +265,7 @@ id:id, type:number } + this.getIndex(); postconfirm(this.merId,data).then(res=>{ console.log(res); }) diff --git a/pages/gather/gather.vue b/pages/gather/gather.vue index ec28b9a..d0dc959 100644 --- a/pages/gather/gather.vue +++ b/pages/gather/gather.vue @@ -69,7 +69,7 @@ 供货采购 - + 进货管理 diff --git a/pages/order_details/stay.vue b/pages/order_details/stay.vue index b010383..822f198 100644 --- a/pages/order_details/stay.vue +++ b/pages/order_details/stay.vue @@ -385,6 +385,8 @@ this.pay_close = true; this.pay_order_id = this.orderInfo.group_order_id.toString(); this.totalPrice = this.orderInfo.pay_price; + console.log(this.pay_order_id); + console.log(this.totalPrice); }, /** * 支付成功回调 diff --git a/pages/product/list/index.vue b/pages/product/list/index.vue index 882c02c..ba97143 100644 --- a/pages/product/list/index.vue +++ b/pages/product/list/index.vue @@ -125,8 +125,10 @@ + -

线下入库

+

线下入库

+

线上入库

我的订单 - 全部订单 diff --git a/pages/users/order_confirm/index.vue b/pages/users/order_confirm/index.vue index f340e6c..3e0ae76 100644 --- a/pages/users/order_confirm/index.vue +++ b/pages/users/order_confirm/index.vue @@ -1005,6 +1005,9 @@ */ getConfirm: function(address_id) { // console.log(address_id, 'address_id') + // console.log(this.take,) + // console.log(this.subCoupon,) + // console.log(this.use_integral, ) let that = this; // console.log(that.cartId.split(",")) uni.showLoading({ @@ -1110,6 +1113,7 @@ real_name: res.data.real_name, phone: res.data.phone } + console.log(that.addressId); this.getConfirm(that.addressId); }) } else { diff --git a/pages/users/order_list/index.vue b/pages/users/order_list/index.vue index 9c1db4e..e77e245 100644 --- a/pages/users/order_list/index.vue +++ b/pages/users/order_list/index.vue @@ -21,7 +21,7 @@ 全部 {{orderData.all || 0}} - + 待付款 {{orderData.noPay || 0}} @@ -59,7 +59,7 @@ - + @@ -416,7 +416,8 @@ id: '' }, //商品分类 - activity_type: '' + activity_type: '', + product_type:0, }; }, computed: { @@ -498,7 +499,10 @@ * 生命周期函数--监听页面加载 */ onLoad: function(options) { + if (options.product_type) this.product_type = options.product_type; + if (options.status) this.orderStatus = options.status; + }, /** * 获取订单统计数据 @@ -506,7 +510,9 @@ */ getOrderData: function() { let that = this; - orderData().then(res => { + orderData({ + product_type:this.product_type + }).then(res => { that.$set(that, 'orderData', res.data); }) }, @@ -540,10 +546,13 @@ * */ goPay: function(pay_price, order_id) { - this.$set(this, 'pay_close', true); - this.order_id = order_id; - this.pay_order_id = order_id.toString() - this.$set(this, 'totalPrice', pay_price); + uni.navigateTo({ + url: '/pages/users/payment/payment?order_id=' + order_id + }); + // this.$set(this, 'pay_close', true); + // this.order_id = order_id; + // this.pay_order_id = order_id.toString() + // this.$set(this, 'totalPrice', pay_price); }, /** * 支付成功回调 @@ -659,37 +668,17 @@ that.loadTitle = "加载更多"; if (that.isReady) { that.isReady = false - if (that.orderStatus == 0) { - groupOrderList({ - page: that.page, - limit: that.limit, - }).then(res => { - console.log(res); - that.isReady = true; - let list = res.data.list || []; - let loadend = list.length < that.limit; - // console.log(that.orderList) - that.orderList = that.page == 1 ? list : that.$util.SplitArray(list, that - .orderList); - that.$set(that, 'orderList', that.orderList); - // console.log(that.orderList) - that.getProductCount(); - that.loadend = loadend; - that.loading = false; - that.loadTitle = loadend ? "我也是有底线的" : '加载更多'; - that.page = that.page + 1 - }) - } else { + getOrderList({ - status: that.orderStatus - 1, + status: that.orderStatus-1, page: that.page, limit: that.limit, + product_type:that.product_type }).then(res => { console.log(res); let list = res.data.list || []; let loadend = list.length < that.limit; - that.orderList = that.page == 1 ? list : that.$util.SplitArray(list, that - .orderList); + that.orderList = that.page == 1 ? list : that.$util.SplitArray(list, that.orderList); that.$set(that, 'orderList', that.orderList); that.getProductCount(); that.loadend = loadend; @@ -702,7 +691,7 @@ that.loadTitle = "加载更多"; }) } - } + }, /** * 获取定金预售订单列表 diff --git a/pages/users/order_list/order.vue b/pages/users/order_list/order.vue new file mode 100644 index 0000000..d802e68 --- /dev/null +++ b/pages/users/order_list/order.vue @@ -0,0 +1,1182 @@ + + + + + \ No newline at end of file diff --git a/pages/users/payment/payment.vue b/pages/users/payment/payment.vue new file mode 100644 index 0000000..397a226 --- /dev/null +++ b/pages/users/payment/payment.vue @@ -0,0 +1,384 @@ + + + + + \ No newline at end of file diff --git a/pages/users/supply_procurement/index.vue b/pages/users/supply_procurement/index.vue index 44d5199..064a6d9 100644 --- a/pages/users/supply_procurement/index.vue +++ b/pages/users/supply_procurement/index.vue @@ -4,7 +4,7 @@ -

现款后货

+

先款后货

先付款后发货
@@ -12,7 +12,7 @@ -

现货后款

+

先货后款

先发货后付款
diff --git a/static/images/jiankong.png b/static/images/jiankong.png new file mode 100644 index 0000000..b25184b Binary files /dev/null and b/static/images/jiankong.png differ