|
@@ -282,6 +282,72 @@ var _default = {
|
|
|
}, _callee5);
|
|
|
}))();
|
|
|
},
|
|
|
+ // 重新审批
|
|
|
+ toExam: function toExam(item) {
|
|
|
+ var _this3 = this;
|
|
|
+ return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
|
|
+ var that, user, obj;
|
|
|
+ return _regenerator.default.wrap(function _callee7$(_context7) {
|
|
|
+ while (1) {
|
|
|
+ switch (_context7.prev = _context7.next) {
|
|
|
+ case 0:
|
|
|
+ that = _this3;
|
|
|
+ user = that.user;
|
|
|
+ obj = {
|
|
|
+ status: '0'
|
|
|
+ };
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '确定重新申请该订单吗?',
|
|
|
+ success: function () {
|
|
|
+ var _success2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(res) {
|
|
|
+ var _res2;
|
|
|
+ return _regenerator.default.wrap(function _callee6$(_context6) {
|
|
|
+ while (1) {
|
|
|
+ switch (_context6.prev = _context6.next) {
|
|
|
+ case 0:
|
|
|
+ if (!res.confirm) {
|
|
|
+ _context6.next = 5;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ _context6.next = 3;
|
|
|
+ return that.$api("/OrderDetail/".concat(item._id), 'POST', obj);
|
|
|
+ case 3:
|
|
|
+ _res2 = _context6.sent;
|
|
|
+ if (_res2.errcode == '0') {
|
|
|
+ uni.showToast({
|
|
|
+ title: '维护信息成功',
|
|
|
+ icon: 'none'
|
|
|
+ });
|
|
|
+ that.clearPage();
|
|
|
+ that.search();
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: _res2.errmsg,
|
|
|
+ icon: 'none'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ case 5:
|
|
|
+ case "end":
|
|
|
+ return _context6.stop();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }, _callee6);
|
|
|
+ }));
|
|
|
+ function success(_x3) {
|
|
|
+ return _success2.apply(this, arguments);
|
|
|
+ }
|
|
|
+ return success;
|
|
|
+ }()
|
|
|
+ });
|
|
|
+ case 4:
|
|
|
+ case "end":
|
|
|
+ return _context7.stop();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }, _callee7);
|
|
|
+ }))();
|
|
|
+ },
|
|
|
// 查看详情
|
|
|
toInfo: function toInfo(e) {
|
|
|
uni.navigateTo({
|
|
@@ -323,25 +389,25 @@ var _default = {
|
|
|
},
|
|
|
// 查询其他信息
|
|
|
searchOther: function searchOther() {
|
|
|
- var _this3 = this;
|
|
|
- return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
|
|
+ var _this4 = this;
|
|
|
+ return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
|
|
|
var that, res, status, menu;
|
|
|
- return _regenerator.default.wrap(function _callee6$(_context6) {
|
|
|
+ return _regenerator.default.wrap(function _callee8$(_context8) {
|
|
|
while (1) {
|
|
|
- switch (_context6.prev = _context6.next) {
|
|
|
+ switch (_context8.prev = _context8.next) {
|
|
|
case 0:
|
|
|
- that = _this3;
|
|
|
- _context6.next = 3;
|
|
|
+ that = _this4;
|
|
|
+ _context8.next = 3;
|
|
|
return that.$api("/DictData", 'GET', {
|
|
|
type: 'order_status',
|
|
|
is_use: '0'
|
|
|
});
|
|
|
case 3:
|
|
|
- res = _context6.sent;
|
|
|
+ res = _context8.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 == '-2' || i.value == '-3';
|
|
|
});
|
|
|
menu = status.map(function (item) {
|
|
|
return {
|
|
@@ -357,10 +423,10 @@ var _default = {
|
|
|
}
|
|
|
case 5:
|
|
|
case "end":
|
|
|
- return _context6.stop();
|
|
|
+ return _context8.stop();
|
|
|
}
|
|
|
}
|
|
|
- }, _callee6);
|
|
|
+ }, _callee8);
|
|
|
}))();
|
|
|
},
|
|
|
// 选择选项卡
|