This commit is contained in:
Gao xiaosong
2020-03-16 01:40:52 +08:00
parent 397082cdaf
commit e215701560
216 changed files with 11659 additions and 13905 deletions
@@ -98,16 +98,6 @@ var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
if (!_vm._isMounted) {
_vm.e0 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/GoodsDeliver/index",
query: {
id: _vm.orderInfo.orderId
}
})
}
}
}
var recyclableRender = false
var staticRenderFns = []
@@ -141,11 +131,7 @@ __webpack_require__.r(__webpack_exports__);
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 59));
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 59));
@@ -341,6 +327,12 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
this.getIndex();
},
methods: {
goGoodsDeliver: function goGoodsDeliver(orderInfo) {
this.$yrouter.push({
path: "/pages/orderAdmin/GoodsDeliver/index",
query: { id: orderInfo.orderId } });
},
copyClipboard: _utils.copyClipboard,
more: function more() {
this.order = !this.order;
@@ -362,7 +354,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
that.payType = res.data._status._payType;
},
function (err) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -392,7 +384,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
(0, _admin.setAdminOrderPrice)(data).then(
function () {
that.change = false;
wx.showToast({
uni.showToast({
title: "改价成功",
icon: "success",
duration: 2000 });
@@ -401,7 +393,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
},
function () {
that.change = false;
wx.showToast({
uni.showToast({
title: "改价失败",
icon: "none",
duration: 2000 });
@@ -424,7 +416,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
(0, _admin.setOrderRefund)(data).then(
function (res) {
that.change = false;
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -433,7 +425,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
},
function (err) {
that.change = false;
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -453,7 +445,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
(0, _admin.setAdminOrderRemark)(data).then(
function (res) {
that.change = false;
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -462,7 +454,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
},
function (err) {
that.change = false;
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -474,7 +466,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
offlinePay: function offlinePay() {var _this = this;
(0, _admin.setOfflinePay)({ order_id: this.orderInfo.order_id }).then(
function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -482,7 +474,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
_this.getIndex();
},
function (err) {
wx.showToast({
uni.showToast({
title: err.msg,
icon: "none",
duration: 2000 });
@@ -490,6 +482,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
});
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ })
File diff suppressed because one or more lines are too long
@@ -98,16 +98,6 @@ var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
if (!_vm._isMounted) {
_vm.e0 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/GoodsDeliver/index",
query: {
id: _vm.item.orderId
}
})
}
}
}
var recyclableRender = false
var staticRenderFns = []
@@ -141,11 +131,7 @@ __webpack_require__.r(__webpack_exports__);
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 59));
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 59));
@@ -287,6 +273,12 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
!that.loading && that.getIndex();
},
methods: {
goGoodsDeliver: function goGoodsDeliver(item) {
this.$yrouter.push({
path: "/pages/orderAdmin/GoodsDeliver/index",
query: { id: item.orderId } });
},
more: function more(index) {
if (this.current === index) this.current = "";else
this.current = index;
@@ -322,7 +314,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
(0, _admin.setAdminOrderPrice)(data).then(
function () {
that.change = false;
wx.showToast({
uni.showToast({
title: "改价成功",
icon: "success",
duration: 2000 });
@@ -331,7 +323,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
},
function () {
that.change = false;
wx.showToast({
uni.showToast({
title: "改价失败",
icon: "none",
duration: 2000 });
@@ -354,7 +346,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
(0, _admin.setOrderRefund)(data).then(
function (res) {
that.change = false;
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -363,7 +355,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
},
function (err) {
that.change = false;
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -382,7 +374,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
(0, _admin.setAdminOrderRemark)(data).then(
function (res) {
that.change = false;
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -391,7 +383,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
},
function (err) {
that.change = false;
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -420,7 +412,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
that.where.page = that.where.page + 1;
},
function (err) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -436,14 +428,14 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
},
toDetail: function toDetail(item) {
this.$yrouter.push({
path: "/pages/orderAdmin/AdminOrder/main",
path: "/pages/orderAdmin/AdminOrder/index",
query: { oid: item.orderId } });
},
offlinePay: function offlinePay(item) {var _this = this;
(0, _admin.setOfflinePay)({ order_id: item.order_id }).then(
function (res) {
_this.$wx.showToast({ title: res.msg, icon: "none", duration: 2000 });
_this.$uni.showToast({ title: res.msg, icon: "none", duration: 2000 });
_this.init();
},
function (error) {
@@ -451,6 +443,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
});
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ })
@@ -1 +1 @@
<view data-ref="container" class="pos-order-list _div vue-ref"><view class="nav acea-row row-around row-middle _div"><view data-event-opts="{{[['tap',[['changeStatus',[0]]]]]}}" class="{{['item _div',where.status==0?'on':'']}}" bindtap="__e">待付款</view><view data-event-opts="{{[['tap',[['changeStatus',[1]]]]]}}" class="{{['item _div',where.status==1?'on':'']}}" bindtap="__e">待发货</view><view data-event-opts="{{[['tap',[['changeStatus',[2]]]]]}}" class="{{['item _div',where.status==2?'on':'']}}" bindtap="__e">待收货</view><view data-event-opts="{{[['tap',[['changeStatus',[3]]]]]}}" class="{{['item _div',where.status==3?'on':'']}}" bindtap="__e">待评价</view><view data-event-opts="{{[['tap',[['changeStatus',[4]]]]]}}" class="{{['item _div',where.status==4?'on':'']}}" bindtap="__e">已完成</view><view data-event-opts="{{[['tap',[['changeStatus',[-3]]]]]}}" class="{{['item _div',where.status==-3?'on':'']}}" bindtap="__e">退款</view></view><view class="list _div"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="listIndex" wx:key="listIndex"><view class="item _div"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['list','',listIndex]]]]]]]}}" class="order-num acea-row row-middle _div" bindtap="__e"><label class="_span">{{"订单号:"+item.orderId}}</label><label class="time _span"><label class="_span">下单时间:</label><data-format vue-id="{{'49d27afe-1-'+listIndex}}" data="{{item.addTime}}" bind:__l="__l"></data-format></label></view><block wx:for="{{item.cartInfo}}" wx:for-item="val" wx:for-index="key" wx:key="key"><view class="pos-order-goods _div"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['list','',listIndex]]]]]]]}}" class="goods acea-row row-between-wrapper _div" bindtap="__e"><view class="picTxt acea-row row-between-wrapper _div"><view class="pictrue _div"><image src="{{val.productInfo.image}}" class="_img"></image></view><view class="text acea-row row-between row-column _div"><view class="info line2 _div">{{val.productInfo.storeName}}</view><block wx:if="{{val.productInfo.suk}}"><view class="attr _div">{{val.productInfo.suk}}</view></block></view></view><view class="money _div"><view class="x-money _div">{{"¥"+val.productInfo.price}}</view><view class="num _div">{{"x"+val.cartNum}}</view><view class="y-money _div">{{"¥"+val.productInfo.otPrice}}</view></view></view></view></block><view class="public-total _div">{{'共'+item.totalNum+'件商品,应支付'}}<label class="money _span">{{"¥"+item.payPrice}}</label>{{'( 邮费 ¥'+item.totalPostage+'\n )'}}</view><view class="operation acea-row row-between-wrapper _div"><view class="more _div"></view><view class="acea-row row-middle _div"><block wx:if="{{where.status==0}}"><view data-event-opts="{{[['tap',[['modify',['$0',0],[[['list','',listIndex]]]]]]]}}" class="bnt _div" bindtap="__e">一键改价</view></block><block wx:if="{{where.status==-3&&item.refundStatus===1}}"><view data-event-opts="{{[['tap',[['modify',['$0',0],[[['list','',listIndex]]]]]]]}}" class="bnt _div" bindtap="__e">立即退款</view></block><block wx:if="{{item.pay_type==='offline'&&item.paid===0}}"><view data-event-opts="{{[['tap',[['offlinePay',['$0'],[[['list','',listIndex]]]]]]]}}" class="bnt cancel _div" bindtap="__e">确认付款</view></block><block wx:if="{{where.status==1}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="bnt _div" bindtap="__e">去发货</view></block></view></view></view></block></view><loading vue-id="49d27afe-2" loaded="{{loaded}}" loading="{{loading}}" bind:__l="__l"></loading><price-change vue-id="49d27afe-3" change="{{change}}" orderInfo="{{orderInfo}}" status="{{status}}" data-event-opts="{{[['^closechange',[['changeclose',['$event']]]],['^savePrice',[['savePrice']]]]}}" bind:closechange="__e" bind:savePrice="__e" bind:__l="__l"></price-change></view>
<view data-ref="container" class="pos-order-list _div vue-ref"><view class="nav acea-row row-around row-middle _div"><view data-event-opts="{{[['tap',[['changeStatus',[0]]]]]}}" class="{{['item _div',where.status==0?'on':'']}}" bindtap="__e">待付款</view><view data-event-opts="{{[['tap',[['changeStatus',[1]]]]]}}" class="{{['item _div',where.status==1?'on':'']}}" bindtap="__e">待发货</view><view data-event-opts="{{[['tap',[['changeStatus',[2]]]]]}}" class="{{['item _div',where.status==2?'on':'']}}" bindtap="__e">待收货</view><view data-event-opts="{{[['tap',[['changeStatus',[3]]]]]}}" class="{{['item _div',where.status==3?'on':'']}}" bindtap="__e">待评价</view><view data-event-opts="{{[['tap',[['changeStatus',[4]]]]]}}" class="{{['item _div',where.status==4?'on':'']}}" bindtap="__e">已完成</view><view data-event-opts="{{[['tap',[['changeStatus',[-3]]]]]}}" class="{{['item _div',where.status==-3?'on':'']}}" bindtap="__e">退款</view></view><view class="list _div"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="listIndex" wx:key="listIndex"><view class="item _div"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['list','',listIndex]]]]]]]}}" class="order-num acea-row row-middle _div" bindtap="__e"><label class="_span">{{"订单号:"+item.orderId}}</label><label class="time _span"><label class="_span">下单时间:</label><data-format vue-id="{{'49d27afe-1-'+listIndex}}" data="{{item.addTime}}" bind:__l="__l"></data-format></label></view><block wx:for="{{item.cartInfo}}" wx:for-item="val" wx:for-index="key" wx:key="key"><view class="pos-order-goods _div"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['list','',listIndex]]]]]]]}}" class="goods acea-row row-between-wrapper _div" bindtap="__e"><view class="picTxt acea-row row-between-wrapper _div"><view class="pictrue _div"><image src="{{val.productInfo.image}}" class="_img"></image></view><view class="text acea-row row-between row-column _div"><view class="info line2 _div">{{val.productInfo.storeName}}</view><block wx:if="{{val.productInfo.suk}}"><view class="attr _div">{{val.productInfo.suk}}</view></block></view></view><view class="money _div"><view class="x-money _div">{{"¥"+val.productInfo.price}}</view><view class="num _div">{{"x"+val.cartNum}}</view><view class="y-money _div">{{"¥"+val.productInfo.otPrice}}</view></view></view></view></block><view class="public-total _div">{{'共'+item.totalNum+'件商品,应支付'}}<label class="money _span">{{"¥"+item.payPrice}}</label>{{'( 邮费 ¥'+item.totalPostage+'\n )'}}</view><view class="operation acea-row row-between-wrapper _div"><view class="more _div"></view><view class="acea-row row-middle _div"><block wx:if="{{where.status==0}}"><view data-event-opts="{{[['tap',[['modify',['$0',0],[[['list','',listIndex]]]]]]]}}" class="bnt _div" bindtap="__e">一键改价</view></block><block wx:if="{{where.status==-3&&item.refundStatus===1}}"><view data-event-opts="{{[['tap',[['modify',['$0',0],[[['list','',listIndex]]]]]]]}}" class="bnt _div" bindtap="__e">立即退款</view></block><block wx:if="{{item.pay_type==='offline'&&item.paid===0}}"><view data-event-opts="{{[['tap',[['offlinePay',['$0'],[[['list','',listIndex]]]]]]]}}" class="bnt cancel _div" bindtap="__e">确认付款</view></block><block wx:if="{{where.status==1}}"><view data-event-opts="{{[['tap',[['goGoodsDeliver',['$0'],[[['list','',listIndex]]]]]]]}}" class="bnt _div" bindtap="__e">去发货</view></block></view></view></view></block></view><loading vue-id="49d27afe-2" loaded="{{loaded}}" loading="{{loading}}" bind:__l="__l"></loading><price-change vue-id="49d27afe-3" change="{{change}}" orderInfo="{{orderInfo}}" status="{{status}}" data-event-opts="{{[['^closechange',[['changeclose',['$event']]]],['^savePrice',[['savePrice']]]]}}" bind:closechange="__e" bind:savePrice="__e" bind:__l="__l"></price-change></view>
@@ -131,7 +131,7 @@ __webpack_require__.r(__webpack_exports__);
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 59));
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 59));
@@ -254,7 +254,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
that.delivery = res.data;
},
function (error) {
wx.showToast({
uni.showToast({
title: error.msg,
icon: "none",
duration: 2000 });
@@ -269,7 +269,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
that.logistics = res.data;
},
function (error) {
wx.showToast({
uni.showToast({
title: error.msg,
icon: "none",
duration: 2000 });
@@ -318,7 +318,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
var that = this;
(0, _admin.setAdminOrderDelivery)(item).then(
function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -326,7 +326,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
that.$yrouter.go(-1);
},
function (error) {
wx.showToast({
uni.showToast({
title: error.msg,
icon: "none",
duration: 2000 });
@@ -334,6 +334,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
});
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ })
@@ -133,7 +133,7 @@ __webpack_require__.r(__webpack_exports__);
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
@@ -229,7 +229,7 @@ var NAME = "OrderCancellation";var _default =
then(function (res) {
_this.iShidden = true;
_this.verify_code = "";
_this.$wx.showToast({ title: res.msg, icon: 'none', duration: 2000 });
_this.$uni.showToast({ title: res.msg, icon: 'none', duration: 2000 });
}).
catch(function (res) {
_this.$dialog.error(res.msg);
@@ -240,15 +240,15 @@ var NAME = "OrderCancellation";var _default =
if (!this.verify_code) return this.$dialog.error("请输入核销码");
if (!ref.test(this.verify_code))
return this.$dialog.error("请输入正确的核销码");
wx.showLoading({ title: "查询中" });
uni.showLoading({ title: "查询中" });
(0, _order.orderVerific)(this.verify_code, 0).
then(function (res) {
wx.hideLoading();
uni.hideLoading();
_this2.orderInfo = res.data;
_this2.iShidden = false;
}).
catch(function () {
wx.hideLoading();
uni.hideLoading();
});
},
openQRCode: function openQRCode() {
@@ -262,7 +262,7 @@ var NAME = "OrderCancellation";var _default =
// that.verify_code = res.resultStr;
// that.storeCancellation();
// } else {
// wx.showToast({
// uni.showToast({
// title: '没有扫描到什么!',
// icon: "none",
// duration: 2000
@@ -280,7 +280,7 @@ var NAME = "OrderCancellation";var _default =
// },
// fail: function(res) {
// if (res.errMsg == "scanQRCode:permission denied") {
// wx.showToast({
// uni.showToast({
// title: '没有权限',
// icon: "none",
// duration: 2000
@@ -291,6 +291,7 @@ var NAME = "OrderCancellation";var _default =
// }
// });
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }),
@@ -98,112 +98,6 @@ var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
if (!_vm._isMounted) {
_vm.e0 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/AdminOrderList/index",
query: {
types: 0
}
})
}
_vm.e1 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/AdminOrderList/index",
query: {
types: 1
}
})
}
_vm.e2 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/AdminOrderList/index",
query: {
types: 2
}
})
}
_vm.e3 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/AdminOrderList/index",
query: {
types: 3
}
})
}
_vm.e4 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/AdminOrderList/index",
query: {
types: 3
}
})
}
_vm.e5 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/Statistics/index",
query: {
type: "price",
time: "today"
}
})
}
_vm.e6 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/Statistics/index",
query: {
type: "price",
time: "yesterday"
}
})
}
_vm.e7 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/Statistics/index",
query: {
type: "price",
time: "month"
}
})
}
_vm.e8 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/Statistics/index",
query: {
type: "order",
time: "today"
}
})
}
_vm.e9 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/Statistics/index",
query: {
type: "order",
time: "yesterday"
}
})
}
_vm.e10 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/Statistics/index",
query: {
type: "order",
time: "month"
}
})
}
}
}
var recyclableRender = false
var staticRenderFns = []
@@ -296,39 +190,6 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
@@ -429,40 +290,7 @@ var _admin = __webpack_require__(/*! @/api/admin */ 402); //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var Loading = function Loading() {return __webpack_require__.e(/*! import() | components/Loading */ "components/Loading").then(__webpack_require__.bind(null, /*! @/components/Loading */ 494));};var _default = { name: "OrderIndex", components: { Loading: Loading }, props: {}, data: function data() {return { census: { orderCount: {}, orderTimeCount: {} }, list: [], where: { page: 1, limit: 15 }, loaded: false, loading: false };}, mounted: function mounted() {this.getIndex();this.getList();}, onReachBottom: function onReachBottom() {!this.loading && this.getList();}, methods: { getIndex: function getIndex() {var that = this;(0, _admin.getStatisticsInfo)().then(function (res) {that.census = res.data;that.census.unpaidCount = that.census.orderCount.unpaidCount;}, function (err) {that.$dialog.message(err.msg);});}, getList: function getList() {var that = this;if (that.loading || that.loaded) return;that.loading = true;(0, _admin.getStatisticsMonth)(that.where).then(function (res) {that.loading = false;that.loaded = res.data.length < that.where.limit;that.list.push.apply(that.list, res.data);that.where.page = that.where.page + 1;}, function (error) {that.$dialog.message(error.msg);}, 300);} } };exports.default = _default;
var Loading = function Loading() {return __webpack_require__.e(/*! import() | components/Loading */ "components/Loading").then(__webpack_require__.bind(null, /*! @/components/Loading */ 494));};var _default = { name: "OrderIndex", components: { Loading: Loading }, props: {}, data: function data() {return { census: { orderCount: {}, orderTimeCount: {} }, list: [], where: { page: 1, limit: 15 }, loaded: false, loading: false };}, mounted: function mounted() {this.getIndex();this.getList();}, onReachBottom: function onReachBottom() {!this.loading && this.getList();}, methods: { goStatistics: function goStatistics(query) {this.$yrouter.push({ path: "/pages/orderAdmin/Statistics/index", query: query });}, goAdminOrderList: function goAdminOrderList(types) {this.$yrouter.push({ path: "/pages/orderAdmin/AdminOrderList/index", query: { types: types } });}, getIndex: function getIndex() {var that = this;(0, _admin.getStatisticsInfo)().then(function (res) {that.census = res.data;that.census.unpaidCount = that.census.orderCount.unpaidCount;}, function (err) {that.$dialog.message(err.msg);});}, getList: function getList() {var that = this;if (that.loading || that.loaded) return;that.loading = true;(0, _admin.getStatisticsMonth)(that.where).then(function (res) {that.loading = false;that.loaded = res.data.length < that.where.limit;that.list.push.apply(that.list, res.data);that.where.page = that.where.page + 1;}, function (error) {that.$dialog.message(error.msg);}, 300);} } };exports.default = _default;
/***/ })
@@ -1 +1 @@
<view data-ref="container" class="order-index _div vue-ref"><view class="header acea-row _div"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderCount.unpaidCount}}</view><view class="_div">待付款</view></view><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderCount.unshippedCount}}</view><view class="_div">待发货</view></view><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderCount.receivedCount}}</view><view class="_div">待收货</view></view><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderCount.evaluatedCount}}</view><view class="_div">待评价</view></view><view data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderCount.refundCount}}</view><view class="_div">退款</view></view></view><view class="wrapper _div"><view class="title _div"><label class="iconfont icon-shujutongji _span"></label>数据统计</view><view class="list acea-row _div"><view data-event-opts="{{[['tap',[['e5',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.todayPrice}}</view><view class="_div">今日成交额</view></view><view data-event-opts="{{[['tap',[['e6',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.proPrice}}</view><view class="_div">昨日成交额</view></view><view data-event-opts="{{[['tap',[['e7',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.monthPrice}}</view><view class="_div">本月成交额</view></view><view data-event-opts="{{[['tap',[['e8',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.todayCount}}</view><view class="_div">今日订单数</view></view><view data-event-opts="{{[['tap',[['e9',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.proCount}}</view><view class="_div">昨日订单数</view></view><view data-event-opts="{{[['tap',[['e10',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.monthCount}}</view><view class="_div">本月订单数</view></view></view></view><view class="public-wrapper _div"><view class="title _div"><label class="iconfont icon-xiangxishuju _span"></label>详细数据</view><view class="nav acea-row row-between-wrapper _div"><view class="data _div">日期</view><view class="browse _div">订单数</view><view class="turnover _div">成交额</view></view><view class="conter _div"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="orderListIndex" wx:key="orderListIndex"><view class="item acea-row row-between-wrapper _div"><view class="data _div">{{item.time}}</view><view class="browse _div">{{item.count}}</view><view class="turnover _div">{{item.price}}</view></view></block></view></view><loading vue-id="4c65cdfa-1" loaded="{{loaded}}" loading="{{loading}}" bind:__l="__l"></loading></view>
<view data-ref="container" class="order-index _div vue-ref"><view class="header acea-row _div"><view data-event-opts="{{[['tap',[['goAdminOrderList',[0]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderCount.unpaidCount}}</view><view class="_div">待付款</view></view><view data-event-opts="{{[['tap',[['goAdminOrderList',[1]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderCount.unshippedCount}}</view><view class="_div">待发货</view></view><view data-event-opts="{{[['tap',[['goAdminOrderList',[2]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderCount.receivedCount}}</view><view class="_div">待收货</view></view><view data-event-opts="{{[['tap',[['goAdminOrderList',[3]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderCount.evaluatedCount}}</view><view class="_div">待评价</view></view><view data-event-opts="{{[['tap',[['goAdminOrderList',[3]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderCount.refundCount}}</view><view class="_div">退款</view></view></view><view class="wrapper _div"><view class="title _div"><label class="iconfont icon-shujutongji _span"></label>数据统计</view><view class="list acea-row _div"><view data-event-opts="{{[['tap',[['goStatistics',[['o',['type','price'],['time','today']]]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.todayPrice}}</view><view class="_div">今日成交额</view></view><view data-event-opts="{{[['tap',[['goStatistics',[['o',['type','price'],['time','yesterday']]]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.proPrice}}</view><view class="_div">昨日成交额</view></view><view data-event-opts="{{[['tap',[['goStatistics',[['o',['type','price'],['time','month']]]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.monthPrice}}</view><view class="_div">本月成交额</view></view><view data-event-opts="{{[['tap',[['goStatistics',[['o',['type','order'],['time','today']]]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.todayCount}}</view><view class="_div">今日订单数</view></view><view data-event-opts="{{[['tap',[['goStatistics',[['o',['type','order'],['time','yesterday']]]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.proCount}}</view><view class="_div">昨日订单数</view></view><view data-event-opts="{{[['tap',[['goStatistics',[['o',['type','order'],['time','month']]]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.monthCount}}</view><view class="_div">本月订单数</view></view></view></view><view class="public-wrapper _div"><view class="title _div"><label class="iconfont icon-xiangxishuju _span"></label>详细数据</view><view class="nav acea-row row-between-wrapper _div"><view class="data _div">日期</view><view class="browse _div">订单数</view><view class="turnover _div">成交额</view></view><view class="conter _div"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="orderListIndex" wx:key="orderListIndex"><view class="item acea-row row-between-wrapper _div"><view class="data _div">{{item.time}}</view><view class="browse _div">{{item.count}}</view><view class="turnover _div">{{item.price}}</view></view></block></view></view><loading vue-id="4c65cdfa-1" loaded="{{loaded}}" loading="{{loading}}" bind:__l="__l"></loading></view>
@@ -133,7 +133,7 @@ __webpack_require__.r(__webpack_exports__);
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
@@ -373,7 +373,7 @@ var Loading = function Loading() {return __webpack_require__.e(/*! import() | co
that.time_price = res.data.time;
},
function (error) {
wx.showToast({
uni.showToast({
title: error.msg,
icon: "none",
duration: 2000 });
@@ -538,6 +538,7 @@ var Loading = function Loading() {return __webpack_require__.e(/*! import() | co
});
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }),