|
@@ -334,7 +334,13 @@ var _default = {
|
|
|
skip: that.skip,
|
|
|
limit: that.limit
|
|
|
};
|
|
|
- if (user.role == 'kj') info.s_accounting = user._id;else info.s_leader = user._id;
|
|
|
+ if (user.role == 'kj') {
|
|
|
+ info.s_accounting = user._id;
|
|
|
+ info.status = '0';
|
|
|
+ } else {
|
|
|
+ info.s_leader = user._id;
|
|
|
+ info.status = '2';
|
|
|
+ }
|
|
|
_context3.next = 6;
|
|
|
return that.$api("/OrderDetail/queryInfo", 'GET', _objectSpread(_objectSpread({}, info), that.searchInfo));
|
|
|
case 6:
|
|
@@ -420,7 +426,7 @@ var _default = {
|
|
|
// 输入框
|
|
|
toInput: function toInput(e) {
|
|
|
var that = this;
|
|
|
- if (that.searchInfo.goods) that.$set(that.searchInfo, "goods", e.detail.value);else that.$set(that, "searchInfo", {});
|
|
|
+ if (that.searchInfo.user_name) that.$set(that.searchInfo, "user_name", e.detail.value);else that.$set(that, "searchInfo", {});
|
|
|
that.clearPage();
|
|
|
that.search();
|
|
|
},
|
|
@@ -462,7 +468,7 @@ var _default = {
|
|
|
_res = _context4.sent;
|
|
|
if (_res.errcode == '0') {
|
|
|
uni.showToast({
|
|
|
- title: '审批完成请等待其他管理员审批',
|
|
|
+ title: '维护信息成功',
|
|
|
icon: 'none'
|
|
|
});
|
|
|
that.clearPage();
|