diff --git a/api/order.js b/api/order.js
index eb0eb82..e865872 100644
--- a/api/order.js
+++ b/api/order.js
@@ -10,7 +10,7 @@ export function getCartCounts() {
}
/**
* 获取购物车列表
- *
+ *
*/
export function getCartList() {
return request.get("user/cart/lst");
@@ -41,7 +41,7 @@ export function getOrderList(data){
/**
* 订单产品信息
- * @param string unique
+ * @param string unique
*/
export function orderProduct(orderId){
return request.get('reply/product/'+orderId);
@@ -50,7 +50,7 @@ export function orderProduct(orderId){
/**
* 订单评价
* @param object data
- *
+ *
*/
export function orderComment(id,data){
return request.post('reply/'+id,data);
@@ -74,14 +74,14 @@ export function integralOrderPay(id,data){
/**
* 订单统计数据
*/
-export function orderData(){
- return request.get('order/number')
+export function orderData(data){
+ return request.get('order/number',data)
}
/**
* 订单取消
* @param string id
- *
+ *
*/
// export function orderCancel(id){
// return request.post('order/cancel',{id:id});
@@ -90,7 +90,7 @@ export function orderData(){
/**
* 未支付订单取消
* @param string id
- *
+ *
*/
export function unOrderCancel(id){
return request.post('order/cancel/'+id);
@@ -99,7 +99,7 @@ export function unOrderCancel(id){
/**
* 删除已完成订单
* @param string uni
- *
+ *
*/
export function orderDel(id){
return request.post('order/del/'+id);
@@ -107,7 +107,7 @@ export function orderDel(id){
/**
* 订单详情
- * @param string uni
+ * @param string uni
*/
export function getOrderDetail(uni){
return request.get('order/detail/'+uni);
@@ -115,7 +115,7 @@ export function getOrderDetail(uni){
/**
* 订单详情
- * @param string uni
+ * @param string uni
*/
export function groupOrderDetail(uni){
return request.get('order/group_order_detail/'+uni);
@@ -129,7 +129,7 @@ export function getPayOrder(uni){
/**
* 再次下单
* @param string uni
- *
+ *
*/
export function orderAgain(data){
return request.post('user/cart/again',data);
@@ -138,7 +138,7 @@ export function orderAgain(data){
/**
* 订单收货
* @param string uni
- *
+ *
*/
export function orderTake(uni){
return request.post('order/take/'+uni);
@@ -160,7 +160,7 @@ export function refundOrderExpress(merId,id) {
}
/**
* 获取退款理由
- *
+ *
*/
export function ordeRefundReason(){
return request.get('order/refund/reason');
@@ -191,7 +191,7 @@ export function getOrderConfirm(data){
/**
* 获取当前金额能使用的优惠卷
* @param string price
- *
+ *
*/
export function getCouponsOrderPrice(price, data){
return request.get('coupons/order/' + price, data)
@@ -325,4 +325,4 @@ export function applyInvoiceApi(id, data){
*/
export function refundCancelApi(id){
return request.post(`refund/cancel/${id}`);
-}
\ No newline at end of file
+}
diff --git a/pages/supplier/stock/with_goods.vue b/pages/supplier/stock/with_goods.vue
index b0f7516..24231f5 100644
--- a/pages/supplier/stock/with_goods.vue
+++ b/pages/supplier/stock/with_goods.vue
@@ -10,7 +10,10 @@
- 请添加你需要的商品进行进货!
+
+ 请添加你需要的商品进行进货!
+ 进货记录
+
@@ -154,7 +157,7 @@ export default {
return spec.cart_num || 0;
},
- ...mapGetters(['isLogin', 'uid', 'userInfo', 'viewColor','shopToken', 'shopIsLogin', 'shopMerId'])
+ ...mapGetters(['isLogin', 'uid', 'userInfo', 'viewColor', 'shopIsLogin', 'shopMerId'])
},
data() {
return {
@@ -540,13 +543,21 @@ export default {
}
// 去结算
uni.navigateTo({
- url: '/pages/users/order_confirm/index?cartId=' + data.join(',')
+ url: '/pages/users/order_confirm/index?is_with_goods=1&cartId=' + data.join(',')
});
}
}).catch(err => {
_this.$util.Tips({title: err});
});
+ },
+ // 查看进货记录
+ withGoodsRecord(){
+ uni.navigateTo({
+ url: '/pages/users/order_list/index?is_with_goods=1'
+ });
}
+
+
},
// 滚动到底部
onReachBottom() {
@@ -608,6 +619,19 @@ export default {
width: 100%;
height: 80rpx;
line-height: 80rpx;
+ position: relative;
+ .record-btn{
+ position: absolute;
+ top: calc((80rpx - 40rpx) / 2);
+ right: 0;
+ font-size: 26rpx;
+ padding: 0 15rpx;
+ border: 2rpx solid #813d40;
+ height: 40rpx;
+ line-height: 40rpx;
+ border-radius: 6rpx;
+ margin-right: 15rpx;
+ }
}
// 商品列表
.list{
diff --git a/pages/users/order_confirm/index.vue b/pages/users/order_confirm/index.vue
index 4a65cfb..0136e56 100644
--- a/pages/users/order_confirm/index.vue
+++ b/pages/users/order_confirm/index.vue
@@ -297,7 +297,7 @@
{{item.title}}
- {{userInfo.now_money}}
+ {{ is_with_goods ? (withGoodsMerInfo.mer_money || 0.00) : userInfo.now_money }}
@@ -313,7 +313,7 @@
{{item.title}}
- {{userInfo.now_money}}
+ {{ is_with_goods ? (withGoodsMerInfo.mer_money || 0.00) : userInfo.now_money }}
@@ -422,45 +422,24 @@