|
@@ -184,6 +184,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -298,6 +302,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
var data = that.statusList.find(function (i) {return i.value == e;});
|
|
|
if (data) return data.label;else
|
|
|
return '暂无';
|
|
|
+ },
|
|
|
+ // 确认发货
|
|
|
+ toConfirm: function toConfirm(item) {var _this2 = this;return _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee5() {var that, user, obj;return _regenerator.default.wrap(function _callee5$(_context5) {while (1) {switch (_context5.prev = _context5.next) {case 0:
|
|
|
+ that = _this2;
|
|
|
+ user = that.user;
|
|
|
+ obj = {
|
|
|
+ status: '6' };
|
|
|
+
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '是否要确认收货?',
|
|
|
+ success: function () {var _success = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee4(res) {var _res;return _regenerator.default.wrap(function _callee4$(_context4) {while (1) {switch (_context4.prev = _context4.next) {case 0:if (!
|
|
|
+ res.confirm) {_context4.next = 5;break;}_context4.next = 3;return (
|
|
|
+ that.$api("/OrderDetail/".concat(item._id), 'POST', obj));case 3:_res = _context4.sent;
|
|
|
+ if (_res.errcode == '0') {
|
|
|
+ uni.showToast({
|
|
|
+ title: '维护信息成功',
|
|
|
+ icon: 'none' });
|
|
|
+
|
|
|
+ that.clearPage();
|
|
|
+ that.search();
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: _res.errmsg,
|
|
|
+ icon: 'none' });
|
|
|
+
|
|
|
+ }case 5:case "end":return _context4.stop();}}}, _callee4);}));function success(_x2) {return _success.apply(this, arguments);}return success;}() });case 4:case "end":return _context5.stop();}}}, _callee5);}))();
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
// 查看详情
|
|
|
toInfo: function toInfo(item) {
|
|
@@ -338,17 +372,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
that.search();
|
|
|
},
|
|
|
// 查询其他信息
|
|
|
- searchOther: function searchOther() {var _this2 = this;return _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee4() {var that, res, status, menu;return _regenerator.default.wrap(function _callee4$(_context4) {while (1) {switch (_context4.prev = _context4.next) {case 0:
|
|
|
- that = _this2;_context4.next = 3;return (
|
|
|
+ searchOther: function searchOther() {var _this3 = this;return _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee6() {var that, res, status, menu;return _regenerator.default.wrap(function _callee6$(_context6) {while (1) {switch (_context6.prev = _context6.next) {case 0:
|
|
|
+ that = _this3;_context6.next = 3;return (
|
|
|
|
|
|
|
|
|
that.$api("/DictData", 'GET', {
|
|
|
- type: 'order_status' }));case 3:res = _context4.sent;
|
|
|
+ type: 'order_status' }));case 3:res = _context6.sent;
|
|
|
|
|
|
if (res.errcode == '0') {
|
|
|
that.$set(that, "statusList", res.data);
|
|
|
status = res.data.filter(function (i) {
|
|
|
- return i.value == '0' || i.value == '4' || i.value == '5' || i.value == '6';
|
|
|
+ return i.value == '0' || i.value == '4' || i.value == '5' || i.value == '6' || i.
|
|
|
+ value == '7';
|
|
|
});
|
|
|
menu = status.map(function (item) {
|
|
|
return {
|
|
@@ -357,7 +392,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
|
|
});
|
|
|
that.$set(that.tabs, "menu", menu);
|
|
|
- }case 5:case "end":return _context4.stop();}}}, _callee4);}))();
|
|
|
+ }case 5:case "end":return _context6.stop();}}}, _callee6);}))();
|
|
|
},
|
|
|
// 选择选项卡
|
|
|
tabsChange: function tabsChange(e) {
|