|
@@ -348,6 +348,50 @@ var _default = {
|
|
|
}, _callee7);
|
|
|
}))();
|
|
|
},
|
|
|
+ // 申请维修
|
|
|
+ toKeep: function toKeep(item) {
|
|
|
+ var that = this;
|
|
|
+ var user = that.user;
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '确定申请维修该商品吗?',
|
|
|
+ success: function () {
|
|
|
+ var _success3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8(res) {
|
|
|
+ return _regenerator.default.wrap(function _callee8$(_context8) {
|
|
|
+ while (1) {
|
|
|
+ switch (_context8.prev = _context8.next) {
|
|
|
+ case 0:
|
|
|
+ if (res.confirm) {
|
|
|
+ console.log('维修');
|
|
|
+ // const res = await that.$api(`/OrderDetail/${item._id}`, 'POST', obj);
|
|
|
+ // if (res.errcode == '0') {
|
|
|
+ // uni.showToast({
|
|
|
+ // title: '维护信息成功',
|
|
|
+ // icon: 'none'
|
|
|
+ // })
|
|
|
+ // that.clearPage()
|
|
|
+ // that.search()
|
|
|
+ // } else {
|
|
|
+ // uni.showToast({
|
|
|
+ // title: res.errmsg,
|
|
|
+ // icon: 'none'
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ }
|
|
|
+ case 1:
|
|
|
+ case "end":
|
|
|
+ return _context8.stop();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }, _callee8);
|
|
|
+ }));
|
|
|
+ function success(_x4) {
|
|
|
+ return _success3.apply(this, arguments);
|
|
|
+ }
|
|
|
+ return success;
|
|
|
+ }()
|
|
|
+ });
|
|
|
+ },
|
|
|
// 查看详情
|
|
|
toInfo: function toInfo(e) {
|
|
|
uni.navigateTo({
|
|
@@ -390,20 +434,20 @@ var _default = {
|
|
|
// 查询其他信息
|
|
|
searchOther: function searchOther() {
|
|
|
var _this4 = this;
|
|
|
- return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
|
|
|
+ return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
|
|
|
var that, res, status, menu;
|
|
|
- return _regenerator.default.wrap(function _callee8$(_context8) {
|
|
|
+ return _regenerator.default.wrap(function _callee9$(_context9) {
|
|
|
while (1) {
|
|
|
- switch (_context8.prev = _context8.next) {
|
|
|
+ switch (_context9.prev = _context9.next) {
|
|
|
case 0:
|
|
|
that = _this4;
|
|
|
- _context8.next = 3;
|
|
|
+ _context9.next = 3;
|
|
|
return that.$api("/DictData", 'GET', {
|
|
|
type: 'order_status',
|
|
|
is_use: '0'
|
|
|
});
|
|
|
case 3:
|
|
|
- res = _context8.sent;
|
|
|
+ res = _context9.sent;
|
|
|
if (res.errcode == '0') {
|
|
|
that.$set(that, "statusList", res.data);
|
|
|
status = res.data.filter(function (i) {
|
|
@@ -423,10 +467,10 @@ var _default = {
|
|
|
}
|
|
|
case 5:
|
|
|
case "end":
|
|
|
- return _context8.stop();
|
|
|
+ return _context9.stop();
|
|
|
}
|
|
|
}
|
|
|
- }, _callee8);
|
|
|
+ }, _callee9);
|
|
|
}))();
|
|
|
},
|
|
|
// 选择选项卡
|