Auto Submit

dev_local_v9_test4
autosubmit 2 years ago
parent 2bbfb40af2
commit 414bf41114

@ -20,6 +20,7 @@
/* harmony export */ JQ: function() { return /* binding */ receives_cancel; },
/* harmony export */ K$: function() { return /* binding */ bills_create; },
/* harmony export */ M1: function() { return /* binding */ bills_delete; },
/* harmony export */ NP: function() { return /* binding */ new_substance_create_details; },
/* harmony export */ OV: function() { return /* binding */ me_substances_query; },
/* harmony export */ O_: function() { return /* binding */ bills_query; },
/* harmony export */ Os: function() { return /* binding */ receives_info; },
@ -40,6 +41,7 @@
/* harmony export */ os: function() { return /* binding */ substances_info; },
/* harmony export */ pd: function() { return /* binding */ purchases_canceled; },
/* harmony export */ vH: function() { return /* binding */ receives_review; },
/* harmony export */ vR: function() { return /* binding */ scene_receives_create; },
/* harmony export */ xR: function() { return /* binding */ substances_update; },
/* harmony export */ xb: function() { return /* binding */ substance_categories_query; },
/* harmony export */ y_: function() { return /* binding */ substance_details_update; },
@ -453,7 +455,7 @@ function substance_details_query(_x19) {
return _substance_details_query.apply(this, arguments);
}
//物资细则创建
//最新创建物资细则接口
function _substance_details_query() {
_substance_details_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee19(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee19$(_context19) {
@ -471,16 +473,17 @@ function _substance_details_query() {
}));
return _substance_details_query.apply(this, arguments);
}
function substance_details_create(_x20) {
return _substance_details_create.apply(this, arguments);
function new_substance_create_details(_x20) {
return _new_substance_create_details.apply(this, arguments);
}
//物资细则编辑
function _substance_details_create() {
_substance_details_create = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee20(data) {
//物资细则创建
function _new_substance_create_details() {
_new_substance_create_details = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee20(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee20$(_context20) {
while (1) switch (_context20.prev = _context20.next) {
case 0:
return _context20.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/substance_details.json", {
return _context20.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/substance_details/create_details.json", {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
@ -490,369 +493,413 @@ function _substance_details_create() {
}
}, _callee20);
}));
return _new_substance_create_details.apply(this, arguments);
}
function substance_details_create(_x21) {
return _substance_details_create.apply(this, arguments);
}
//物资细则编辑
function _substance_details_create() {
_substance_details_create = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee21(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee21$(_context21) {
while (1) switch (_context21.prev = _context21.next) {
case 0:
return _context21.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/substance_details.json", {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context21.stop();
}
}, _callee21);
}));
return _substance_details_create.apply(this, arguments);
}
function substance_details_update(_x21) {
function substance_details_update(_x22) {
return _substance_details_update.apply(this, arguments);
}
//物资细则报废
function _substance_details_update() {
_substance_details_update = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee21(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee21$(_context21) {
while (1) switch (_context21.prev = _context21.next) {
_substance_details_update = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee22(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee22$(_context22) {
while (1) switch (_context22.prev = _context22.next) {
case 0:
return _context21.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/substance_details/".concat(data === null || data === void 0 ? void 0 : data.id, ".json"), {
return _context22.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/substance_details/".concat(data === null || data === void 0 ? void 0 : data.id, ".json"), {
method: 'put',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context21.stop();
return _context22.stop();
}
}, _callee21);
}, _callee22);
}));
return _substance_details_update.apply(this, arguments);
}
function substance_details_scrapped(_x22) {
function substance_details_scrapped(_x23) {
return _substance_details_scrapped.apply(this, arguments);
}
//申购列表
function _substance_details_scrapped() {
_substance_details_scrapped = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee22(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee22$(_context22) {
while (1) switch (_context22.prev = _context22.next) {
_substance_details_scrapped = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee23(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee23$(_context23) {
while (1) switch (_context23.prev = _context23.next) {
case 0:
return _context22.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/substance_details/".concat(data === null || data === void 0 ? void 0 : data.id, "/scrapped.json"), {
return _context23.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/substance_details/".concat(data === null || data === void 0 ? void 0 : data.id, "/scrapped.json"), {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context22.stop();
return _context23.stop();
}
}, _callee22);
}, _callee23);
}));
return _substance_details_scrapped.apply(this, arguments);
}
function purchases_query(_x23) {
function purchases_query(_x24) {
return _purchases_query.apply(this, arguments);
}
//我的申购列表
function _purchases_query() {
_purchases_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee23(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee23$(_context23) {
while (1) switch (_context23.prev = _context23.next) {
_purchases_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee24(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee24$(_context24) {
while (1) switch (_context24.prev = _context24.next) {
case 0:
return _context23.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/purchases.json", {
return _context24.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/purchases.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context23.stop();
return _context24.stop();
}
}, _callee23);
}, _callee24);
}));
return _purchases_query.apply(this, arguments);
}
function my_purchases_query(_x24) {
function my_purchases_query(_x25) {
return _my_purchases_query.apply(this, arguments);
}
//驳回与同意采购申请
function _my_purchases_query() {
_my_purchases_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee24(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee24$(_context24) {
while (1) switch (_context24.prev = _context24.next) {
_my_purchases_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee25(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee25$(_context25) {
while (1) switch (_context25.prev = _context25.next) {
case 0:
return _context24.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/purchases/me_purchases.json", {
return _context25.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/purchases/me_purchases.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context24.stop();
return _context25.stop();
}
}, _callee24);
}, _callee25);
}));
return _my_purchases_query.apply(this, arguments);
}
function purchases_review(_x25) {
function purchases_review(_x26) {
return _purchases_review.apply(this, arguments);
}
//取消采购申请
function _purchases_review() {
_purchases_review = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee25(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee25$(_context25) {
while (1) switch (_context25.prev = _context25.next) {
_purchases_review = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee26(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee26$(_context26) {
while (1) switch (_context26.prev = _context26.next) {
case 0:
return _context25.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/purchases/".concat(data === null || data === void 0 ? void 0 : data.id, "/review.json"), {
return _context26.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/purchases/".concat(data === null || data === void 0 ? void 0 : data.id, "/review.json"), {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context25.stop();
return _context26.stop();
}
}, _callee25);
}, _callee26);
}));
return _purchases_review.apply(this, arguments);
}
function purchases_canceled(_x26) {
function purchases_canceled(_x27) {
return _purchases_canceled.apply(this, arguments);
}
//创建采购申请
function _purchases_canceled() {
_purchases_canceled = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee26(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee26$(_context26) {
while (1) switch (_context26.prev = _context26.next) {
_purchases_canceled = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee27(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee27$(_context27) {
while (1) switch (_context27.prev = _context27.next) {
case 0:
return _context26.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/purchases/".concat(params === null || params === void 0 ? void 0 : params.id, "/canceled.json"), {
return _context27.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/purchases/".concat(params === null || params === void 0 ? void 0 : params.id, "/canceled.json"), {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context26.stop();
return _context27.stop();
}
}, _callee26);
}, _callee27);
}));
return _purchases_canceled.apply(this, arguments);
}
function purchases_create(_x27) {
function purchases_create(_x28) {
return _purchases_create.apply(this, arguments);
}
//编辑采购申请
function _purchases_create() {
_purchases_create = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee27(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee27$(_context27) {
while (1) switch (_context27.prev = _context27.next) {
_purchases_create = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee28(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee28$(_context28) {
while (1) switch (_context28.prev = _context28.next) {
case 0:
return _context27.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/purchases.json", {
return _context28.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/purchases.json", {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context27.stop();
return _context28.stop();
}
}, _callee27);
}, _callee28);
}));
return _purchases_create.apply(this, arguments);
}
function purchases_update(_x28) {
function purchases_update(_x29) {
return _purchases_update.apply(this, arguments);
}
//采购详情
function _purchases_update() {
_purchases_update = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee28(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee28$(_context28) {
while (1) switch (_context28.prev = _context28.next) {
_purchases_update = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee29(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee29$(_context29) {
while (1) switch (_context29.prev = _context29.next) {
case 0:
return _context28.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/purchases/".concat(data === null || data === void 0 ? void 0 : data.id, ".json"), {
return _context29.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/purchases/".concat(data === null || data === void 0 ? void 0 : data.id, ".json"), {
method: 'put',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context28.stop();
return _context29.stop();
}
}, _callee28);
}, _callee29);
}));
return _purchases_update.apply(this, arguments);
}
function purchases_info(_x29) {
function purchases_info(_x30) {
return _purchases_info.apply(this, arguments);
}
//下载条形码
function _purchases_info() {
_purchases_info = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee29(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee29$(_context29) {
while (1) switch (_context29.prev = _context29.next) {
_purchases_info = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee30(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee30$(_context30) {
while (1) switch (_context30.prev = _context30.next) {
case 0:
return _context29.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/purchases/".concat(params === null || params === void 0 ? void 0 : params.id, ".json"), {
return _context30.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/purchases/".concat(params === null || params === void 0 ? void 0 : params.id, ".json"), {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context29.stop();
return _context30.stop();
}
}, _callee29);
}, _callee30);
}));
return _purchases_info.apply(this, arguments);
}
function code_download(_x30) {
function code_download(_x31) {
return _code_download.apply(this, arguments);
}
//批量下载条形码
function _code_download() {
_code_download = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30(params) {
return _regeneratorRuntime().wrap(function _callee30$(_context30) {
while (1) switch (_context30.prev = _context30.next) {
_code_download = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31(params) {
return _regeneratorRuntime().wrap(function _callee31$(_context31) {
while (1) switch (_context31.prev = _context31.next) {
case 0:
return _context30.abrupt("return", Fetch("/api/yn_classrooms/substance_details/".concat(params === null || params === void 0 ? void 0 : params.id, "/download.json"), {
return _context31.abrupt("return", Fetch("/api/yn_classrooms/substance_details/".concat(params === null || params === void 0 ? void 0 : params.id, "/download.json"), {
method: 'get',
params: _objectSpread({}, params)
}));
case 1:
case "end":
return _context30.stop();
return _context31.stop();
}
}, _callee30);
}, _callee31);
}));
return _code_download.apply(this, arguments);
}
function code_batch_download(_x31) {
function code_batch_download(_x32) {
return _code_batch_download.apply(this, arguments);
}
//我的领用申请
function _code_batch_download() {
_code_batch_download = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31(params) {
return _regeneratorRuntime().wrap(function _callee31$(_context31) {
while (1) switch (_context31.prev = _context31.next) {
_code_batch_download = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee32(params) {
return _regeneratorRuntime().wrap(function _callee32$(_context32) {
while (1) switch (_context32.prev = _context32.next) {
case 0:
return _context31.abrupt("return", Fetch("/api/yn_classrooms/substance_details/batch_download.json", {
return _context32.abrupt("return", Fetch("/api/yn_classrooms/substance_details/batch_download.json", {
method: 'get',
params: _objectSpread({}, params)
}));
case 1:
case "end":
return _context31.stop();
return _context32.stop();
}
}, _callee31);
}, _callee32);
}));
return _code_batch_download.apply(this, arguments);
}
function me_receives_query(_x32) {
function me_receives_query(_x33) {
return _me_receives_query.apply(this, arguments);
}
//领用列表
function _me_receives_query() {
_me_receives_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee32(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee32$(_context32) {
while (1) switch (_context32.prev = _context32.next) {
_me_receives_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee33(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee33$(_context33) {
while (1) switch (_context33.prev = _context33.next) {
case 0:
return _context32.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/receives/me_receives.json", {
return _context33.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/receives/me_receives.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context32.stop();
return _context33.stop();
}
}, _callee32);
}, _callee33);
}));
return _me_receives_query.apply(this, arguments);
}
function receives_query(_x33) {
function receives_query(_x34) {
return _receives_query.apply(this, arguments);
}
//取消领用申请
function _receives_query() {
_receives_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee33(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee33$(_context33) {
while (1) switch (_context33.prev = _context33.next) {
_receives_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee34(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee34$(_context34) {
while (1) switch (_context34.prev = _context34.next) {
case 0:
return _context33.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/receives.json", {
return _context34.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/receives.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context33.stop();
return _context34.stop();
}
}, _callee33);
}, _callee34);
}));
return _receives_query.apply(this, arguments);
}
function receives_cancel(_x34) {
function receives_cancel(_x35) {
return _receives_cancel.apply(this, arguments);
}
//创建领用申请
function _receives_cancel() {
_receives_cancel = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee34(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee34$(_context34) {
while (1) switch (_context34.prev = _context34.next) {
_receives_cancel = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee35(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee35$(_context35) {
while (1) switch (_context35.prev = _context35.next) {
case 0:
return _context34.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/receives/".concat(params === null || params === void 0 ? void 0 : params.id, "/cancel.json"), {
return _context35.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/receives/".concat(params === null || params === void 0 ? void 0 : params.id, "/cancel.json"), {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context34.stop();
return _context35.stop();
}
}, _callee34);
}, _callee35);
}));
return _receives_cancel.apply(this, arguments);
}
function receives_create(_x35) {
function receives_create(_x36) {
return _receives_create.apply(this, arguments);
}
//驳回/同意领用申请
//现场创建领用申请
function _receives_create() {
_receives_create = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee35(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee35$(_context35) {
while (1) switch (_context35.prev = _context35.next) {
_receives_create = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee36(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee36$(_context36) {
while (1) switch (_context36.prev = _context36.next) {
case 0:
return _context35.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/receives.json", {
return _context36.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/receives.json", {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context35.stop();
return _context36.stop();
}
}, _callee35);
}, _callee36);
}));
return _receives_create.apply(this, arguments);
}
function receives_review(_x36) {
function scene_receives_create(_x37) {
return _scene_receives_create.apply(this, arguments);
}
//驳回/同意领用申请
function _scene_receives_create() {
_scene_receives_create = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee37(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee37$(_context37) {
while (1) switch (_context37.prev = _context37.next) {
case 0:
return _context37.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/receives/now_receive.json", {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context37.stop();
}
}, _callee37);
}));
return _scene_receives_create.apply(this, arguments);
}
function receives_review(_x38) {
return _receives_review.apply(this, arguments);
}
// 确认出库
function _receives_review() {
_receives_review = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee36(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee36$(_context36) {
while (1) switch (_context36.prev = _context36.next) {
_receives_review = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee38(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee38$(_context38) {
while (1) switch (_context38.prev = _context38.next) {
case 0:
return _context36.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/receives/".concat(data === null || data === void 0 ? void 0 : data.id, "/review.json"), {
return _context38.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/receives/".concat(data === null || data === void 0 ? void 0 : data.id, "/review.json"), {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context36.stop();
return _context38.stop();
}
}, _callee36);
}, _callee38);
}));
return _receives_review.apply(this, arguments);
}
function submit_substance_details(_x37) {
function submit_substance_details(_x39) {
return _submit_substance_details.apply(this, arguments);
}
//通过资源自动获取可用资源详情数据
function _submit_substance_details() {
_submit_substance_details = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee37(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee37$(_context37) {
while (1) switch (_context37.prev = _context37.next) {
_submit_substance_details = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee39(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee39$(_context39) {
while (1) switch (_context39.prev = _context39.next) {
case 0:
return _context37.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/receives/".concat(data === null || data === void 0 ? void 0 : data.id, "/submit_substance_details.json"), {
return _context39.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/receives/".concat(data === null || data === void 0 ? void 0 : data.id, "/submit_substance_details.json"), {
method: 'post',
body: {
substance_detail_ids: data === null || data === void 0 ? void 0 : data.substance_detail_ids
@ -860,116 +907,116 @@ function _submit_substance_details() {
}));
case 1:
case "end":
return _context37.stop();
return _context39.stop();
}
}, _callee37);
}, _callee39);
}));
return _submit_substance_details.apply(this, arguments);
}
function receives_matches(_x38) {
function receives_matches(_x40) {
return _receives_matches.apply(this, arguments);
}
//领用详情
function _receives_matches() {
_receives_matches = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee38(data) {
return _regeneratorRuntime().wrap(function _callee38$(_context38) {
while (1) switch (_context38.prev = _context38.next) {
_receives_matches = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee40(data) {
return _regeneratorRuntime().wrap(function _callee40$(_context40) {
while (1) switch (_context40.prev = _context40.next) {
case 0:
return _context38.abrupt("return", Fetch("/api/yn_classrooms/receives/matches.json", {
return _context40.abrupt("return", Fetch("/api/yn_classrooms/receives/matches.json", {
method: 'post',
body: _objectSpread({}, data)
}));
case 1:
case "end":
return _context38.stop();
return _context40.stop();
}
}, _callee38);
}, _callee40);
}));
return _receives_matches.apply(this, arguments);
}
function receives_info(_x39) {
function receives_info(_x41) {
return _receives_info.apply(this, arguments);
}
//归还物资细则
function _receives_info() {
_receives_info = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee39(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee39$(_context39) {
while (1) switch (_context39.prev = _context39.next) {
_receives_info = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee41(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee41$(_context41) {
while (1) switch (_context41.prev = _context41.next) {
case 0:
return _context39.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/receives/".concat(params === null || params === void 0 ? void 0 : params.id, ".json"), {
return _context41.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/receives/".concat(params === null || params === void 0 ? void 0 : params.id, ".json"), {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context39.stop();
return _context41.stop();
}
}, _callee39);
}, _callee41);
}));
return _receives_info.apply(this, arguments);
}
function receives_return(_x40) {
function receives_return(_x42) {
return _receives_return.apply(this, arguments);
}
//编辑领用
function _receives_return() {
_receives_return = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee40(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee40$(_context40) {
while (1) switch (_context40.prev = _context40.next) {
_receives_return = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee42(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee42$(_context42) {
while (1) switch (_context42.prev = _context42.next) {
case 0:
return _context40.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/receives/".concat(data === null || data === void 0 ? void 0 : data.id, "/return.json"), {
return _context42.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/receives/".concat(data === null || data === void 0 ? void 0 : data.id, "/return.json"), {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context40.stop();
return _context42.stop();
}
}, _callee40);
}, _callee42);
}));
return _receives_return.apply(this, arguments);
}
function receives_update(_x41) {
function receives_update(_x43) {
return _receives_update.apply(this, arguments);
}
//获取物资细则编号
function _receives_update() {
_receives_update = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee41(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee41$(_context41) {
while (1) switch (_context41.prev = _context41.next) {
_receives_update = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee43(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee43$(_context43) {
while (1) switch (_context43.prev = _context43.next) {
case 0:
return _context41.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/receives/".concat(data === null || data === void 0 ? void 0 : data.id, ".json"), {
return _context43.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/receives/".concat(data === null || data === void 0 ? void 0 : data.id, ".json"), {
method: 'put',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context41.stop();
return _context43.stop();
}
}, _callee41);
}, _callee43);
}));
return _receives_update.apply(this, arguments);
}
function random_number(_x42) {
function random_number(_x44) {
return _random_number.apply(this, arguments);
}
function _random_number() {
_random_number = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee42(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee42$(_context42) {
while (1) switch (_context42.prev = _context42.next) {
_random_number = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee44(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee44$(_context44) {
while (1) switch (_context44.prev = _context44.next) {
case 0:
return _context42.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/substance_details/random_number.json", {
return _context44.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/substance_details/random_number.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context42.stop();
return _context44.stop();
}
}, _callee42);
}, _callee44);
}));
return _random_number.apply(this, arguments);
}

@ -27,7 +27,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.a1df2489.js"></script>
<script src="/react/build/umi.c2baf6ee.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -168,10 +168,6 @@ var Navigation = function Navigation(_ref) {
_useState28 = slicedToArray_default()(_useState27, 2),
substanceCategoryId = _useState28[0],
setSubstanceCategoryId = _useState28[1];
var _useState29 = (0,_react_17_0_2_react.useState)([]),
_useState30 = slicedToArray_default()(_useState29, 2),
warehousingList = _useState30[0],
setWarehousingList = _useState30[1];
var columns = [{
title: '物资编号',
dataIndex: 'number',
@ -413,10 +409,14 @@ var Navigation = function Navigation(_ref) {
});
//添加入库
var _useState31 = (0,_react_17_0_2_react.useState)(false),
var _useState29 = (0,_react_17_0_2_react.useState)(false),
_useState30 = slicedToArray_default()(_useState29, 2),
warehousing = _useState30[0],
setWarehousing = _useState30[1];
var _useState31 = (0,_react_17_0_2_react.useState)([]),
_useState32 = slicedToArray_default()(_useState31, 2),
warehousing = _useState32[0],
setWarehousing = _useState32[1];
warehousingList = _useState32[0],
setWarehousingList = _useState32[1];
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
myRuleForm = _Form$useForm2[0];

@ -661,7 +661,7 @@ var Navigation = function Navigation(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: AddReceiveScenemodules.submit_button,
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _myForm$getFieldValue, _myForm$getFieldValue2, _myForm$getFieldValue3, _myForm$getFieldValue4;
var _myForm$getFieldValue, _myForm$getFieldValue2, _myForm$getFieldValue3, _myForm$getFieldValue4, _myForm$getFieldValue5, _myForm$getFieldValue6;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
@ -680,6 +680,9 @@ var Navigation = function Navigation(_ref) {
attachment_ids: myForm.getFieldValue('attachment_ids') ? (_myForm$getFieldValue = myForm.getFieldValue('attachment_ids')) === null || _myForm$getFieldValue === void 0 ? void 0 : _myForm$getFieldValue.map(function (item) {
var _item$response;
return item === null || item === void 0 || (_item$response = item.response) === null || _item$response === void 0 ? void 0 : _item$response.id;
}) : [],
substance_detail_ids: myForm.getFieldValue('substances') ? (_myForm$getFieldValue2 = myForm.getFieldValue('substances')) === null || _myForm$getFieldValue2 === void 0 ? void 0 : _myForm$getFieldValue2.map(function (item) {
return item === null || item === void 0 ? void 0 : item.id;
}) : []
})
}).then(function (res) {
@ -689,13 +692,16 @@ var Navigation = function Navigation(_ref) {
}
});
} else {
(0,materials/* receives_create */.EZ)({
(0,materials/* scene_receives_create */.vR)({
receive: objectSpread2_default()(objectSpread2_default()({}, myForm.getFieldsValue()), {}, {
start_time: dayjs_min_default()((_myForm$getFieldValue2 = myForm.getFieldValue('start_time')) === null || _myForm$getFieldValue2 === void 0 ? void 0 : _myForm$getFieldValue2.$d).format('YYYY-MM-DD HH:mm'),
end_time: dayjs_min_default()((_myForm$getFieldValue3 = myForm.getFieldValue('end_time')) === null || _myForm$getFieldValue3 === void 0 ? void 0 : _myForm$getFieldValue3.$d).format('YYYY-MM-DD HH:mm'),
attachment_ids: myForm.getFieldValue('attachment_ids') ? (_myForm$getFieldValue4 = myForm.getFieldValue('attachment_ids')) === null || _myForm$getFieldValue4 === void 0 ? void 0 : _myForm$getFieldValue4.map(function (item) {
start_time: dayjs_min_default()((_myForm$getFieldValue3 = myForm.getFieldValue('start_time')) === null || _myForm$getFieldValue3 === void 0 ? void 0 : _myForm$getFieldValue3.$d).format('YYYY-MM-DD HH:mm'),
end_time: dayjs_min_default()((_myForm$getFieldValue4 = myForm.getFieldValue('end_time')) === null || _myForm$getFieldValue4 === void 0 ? void 0 : _myForm$getFieldValue4.$d).format('YYYY-MM-DD HH:mm'),
attachment_ids: myForm.getFieldValue('attachment_ids') ? (_myForm$getFieldValue5 = myForm.getFieldValue('attachment_ids')) === null || _myForm$getFieldValue5 === void 0 ? void 0 : _myForm$getFieldValue5.map(function (item) {
var _item$response2;
return item === null || item === void 0 || (_item$response2 = item.response) === null || _item$response2 === void 0 ? void 0 : _item$response2.id;
}) : [],
substance_detail_ids: myForm.getFieldValue('substances') ? (_myForm$getFieldValue6 = myForm.getFieldValue('substances')) === null || _myForm$getFieldValue6 === void 0 ? void 0 : _myForm$getFieldValue6.map(function (item) {
return item === null || item === void 0 ? void 0 : item.id;
}) : []
})
}).then(function (res) {

@ -625,12 +625,10 @@ var Navigation = function Navigation(_ref) {
_context.next = 2;
return myForm.validateFields();
case 2:
(0,materials/* substance_details_create */.yu)({
(0,materials/* new_substance_create_details */.NP)({
substance_detail: {
number: myForm.getFieldValue('number'),
substance_id: itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.id,
num: myForm.getFieldValue('num'),
image: myForm.getFieldValue('image')
num: myForm.getFieldValue('num')
}
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {

@ -1,8 +1,8 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[2948],{
/***/ 79847:
/***/ 65412:
/*!*******************************************************************!*\
!*** ./src/pages/Materials/ItemAssets/Info/index.tsx + 3 modules ***!
!*** ./src/pages/Materials/ItemAssets/Info/index.tsx + 5 modules ***!
\*******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -255,6 +255,197 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
var NoData = __webpack_require__(6638);
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 2 modules
var RenderHtml = __webpack_require__(47759);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js
var toConsumableArray = __webpack_require__(37205);
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
;// CONCATENATED MODULE: ./src/pages/Materials/ItemAssets/Info/AddInventoryModal/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var AddInventoryModalmodules = ({"warehousing_add":"warehousing_add___QCB51"});
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(49105);
;// CONCATENATED MODULE: ./src/pages/Materials/ItemAssets/Info/AddInventoryModal/index.tsx
var AddInventoryModal = function AddInventoryModal(_ref) {
var user = _ref.user,
account = _ref.account,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
dispatch = _ref.dispatch,
visible = _ref.visible,
onCancel = _ref.onCancel,
onOk = _ref.onOk;
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
myRuleForm = _Form$useForm2[0];
var _useState = (0,_react_17_0_2_react.useState)([]),
_useState2 = slicedToArray_default()(_useState, 2),
warehousingList = _useState2[0],
setWarehousingList = _useState2[1];
(0,_react_17_0_2_react.useEffect)(function () {
if (visible) {
showConfirm();
}
}, [visible]);
// 确认入库
var confirmSubmit = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return (0,fetch/* default */.ZP)("/api/yn_classrooms/substance_details/storing.json", {
method: 'post',
body: {
substance_detail_ids: warehousingList.map(function (item) {
return item === null || item === void 0 ? void 0 : item.id;
})
}
});
case 2:
res = _context.sent;
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success('入库成功');
setWarehousingList([]);
onOk();
}
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
return function confirmSubmit() {
return _ref2.apply(this, arguments);
};
}();
//正则校验
var validateInput = function validateInput(rule, value, callback) {
var pattern = /^[0-9a-zA-Z]+$/;
if (!pattern.test(value)) {
callback('请输入数字和字母');
} else {
callback();
}
};
var showConfirm = function showConfirm() {
return modal/* default */.Z.confirm({
centered: true,
okText: '确定',
cancelText: '取消',
title: '添加',
icon: null,
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z, {
className: AddInventoryModalmodules.formWrap,
form: myRuleForm,
wrapperCol: {
span: 20
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u8D44\u4EA7\u7F16\u53F7",
name: "number",
rules: [{
required: true,
message: '请输入资产编号'
}, {
validator: validateInput,
message: '请输入数字和字母'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
size: "large",
onChange: function onChange(e) {
var _e$target;
myRuleForm.setFieldValue('number', e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 || (_e$target = _e$target.value) === null || _e$target === void 0 ? void 0 : _e$target.trim());
}
})
})
})
}),
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var number, numberArr, res, _res$data;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return myRuleForm.validateFields();
case 2:
number = myRuleForm.getFieldValue('number');
numberArr = warehousingList === null || warehousingList === void 0 ? void 0 : warehousingList.map(function (item) {
return item.number;
});
if (!(numberArr !== null && numberArr !== void 0 && numberArr.includes(number))) {
_context2.next = 7;
break;
}
message/* default */.ZP.warning('该物资已存在申请物资列表中');
return _context2.abrupt("return");
case 7:
_context2.next = 9;
return (0,fetch/* default */.ZP)("/api/yn_classrooms/substance_details/serach_by_number.json", {
method: 'get',
params: {
number: myRuleForm.getFieldValue('number')
}
});
case 9:
res = _context2.sent;
if (!((res === null || res === void 0 ? void 0 : res.status) == 0)) {
_context2.next = 15;
break;
}
myRuleForm.setFieldValue('number', '');
if (res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && _res$data.id) {
warehousingList.push(res === null || res === void 0 ? void 0 : res.data);
setWarehousingList(toConsumableArray_default()(warehousingList));
// message.success('添加成功')
confirmSubmit();
}
_context2.next = 16;
break;
case 15:
return _context2.abrupt("return", Promise.reject());
case 16:
case "end":
return _context2.stop();
}
}, _callee2);
}));
function onOk() {
return _onOk.apply(this, arguments);
}
return onOk;
}()
});
};
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {});
};
/* harmony default export */ var Info_AddInventoryModal = ((0,_umi_production_exports.connect)(function (_ref3) {
var user = _ref3.user,
account = _ref3.account,
loading = _ref3.loading,
globalSetting = _ref3.globalSetting;
return {
user: user,
account: account,
globalSetting: globalSetting,
loading: loading.effects
};
})(AddInventoryModal));
;// CONCATENATED MODULE: ./src/pages/Materials/ItemAssets/Info/index.tsx
@ -275,6 +466,7 @@ var RenderHtml = __webpack_require__(47759);
var unitType = {
@ -411,6 +603,12 @@ var Navigation = function Navigation(_ref) {
historyData = _useState40[0],
setHistoryData = _useState40[1];
//添加入库
var _useState41 = (0,_react_17_0_2_react.useState)(false),
_useState42 = slicedToArray_default()(_useState41, 2),
warehousing = _useState42[0],
setWarehousing = _useState42[1];
//资产表格
var columns = [{
title: '资产编号',
@ -439,7 +637,7 @@ var Navigation = function Navigation(_ref) {
});
}
}, {
title: '量',
title: '量',
dataIndex: 'num',
ellipsis: true,
width: 80,
@ -646,6 +844,7 @@ var Navigation = function Navigation(_ref) {
}].filter(function (item) {
return !!item;
});
//正则校验
var validateInput = function validateInput(rule, value, callback) {
var pattern = /^[0-9a-zA-Z]+$/;
@ -948,26 +1147,12 @@ var Navigation = function Navigation(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Infomodules.header_button,
style: {
width: '68px'
width: '88px'
},
onClick: function onClick() {
setBoxId('');
(0,materials/* random_number */.br)({
substance_id: itemAsssInfo.id
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
var _res$data5;
setOpenBox(true);
setCodeNumber('');
myForm.setFieldsValue({
unit: itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.unit,
number: res === null || res === void 0 || (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.code,
num: itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.capacity
});
}
});
setWarehousing(true);
},
children: "\u6DFB\u52A0"
children: "\u6DFB\u52A0\u5165\u5E93"
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
@ -1129,6 +1314,7 @@ var Navigation = function Navigation(_ref) {
style: {
height: '40px'
},
disabled: true,
maxLength: 20,
showCount: true,
onChange: function onChange(e) {
@ -1260,6 +1446,12 @@ var Navigation = function Navigation(_ref) {
});
}
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Info_AddInventoryModal, {
visible: warehousing,
onOk: function onOk() {
getData(true);
setWarehousing(false);
}
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
maskClosable: false,
centered: true,

@ -528,3 +528,25 @@
cursor: not-allowed;
}
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.18@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.18@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Materials/ItemAssets/Info/AddInventoryModal/index.less?modules ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.warehousing_add___QCB51 {
width: 60px;
height: 32px;
background: #3061D0;
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 2px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 14px;
color: #FFFFFF;
line-height: 32px;
font-style: normal;
text-align: center;
cursor: pointer;
position: absolute;
right: 70px;
top: 18px;
}

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save