|
|
"use strict";
|
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[2001,47155],{
|
|
|
|
|
|
/***/ 87169:
|
|
|
/*!*******************************************************************************************************************!*\
|
|
|
!*** ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules ***!
|
|
|
\*******************************************************************************************************************/
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
// EXPORTS
|
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
|
Z: function() { return /* binding */ icons_ExclamationCircleOutlined; }
|
|
|
});
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.9@@babel/runtime/helpers/esm/extends.js
|
|
|
var esm_extends = __webpack_require__(92413);
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/ExclamationCircleOutlined.js
|
|
|
// This icon file is generated automatically.
|
|
|
var ExclamationCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, "name": "exclamation-circle", "theme": "outlined" };
|
|
|
/* harmony default export */ var asn_ExclamationCircleOutlined = (ExclamationCircleOutlined);
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
|
|
var AntdIcon = __webpack_require__(7657);
|
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/ExclamationCircleOutlined.js
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var ExclamationCircleOutlined_ExclamationCircleOutlined = function ExclamationCircleOutlined(props, ref) {
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
|
|
ref: ref,
|
|
|
icon: asn_ExclamationCircleOutlined
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
/** */
|
|
|
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(ExclamationCircleOutlined_ExclamationCircleOutlined);
|
|
|
if (false) {}
|
|
|
/* harmony default export */ var icons_ExclamationCircleOutlined = (RefIcon);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 61481:
|
|
|
/*!*******************************************************************************************************!*\
|
|
|
!*** ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/InboxOutlined.js + 1 modules ***!
|
|
|
\*******************************************************************************************************/
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
// EXPORTS
|
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
|
Z: function() { return /* binding */ icons_InboxOutlined; }
|
|
|
});
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.9@@babel/runtime/helpers/esm/extends.js
|
|
|
var esm_extends = __webpack_require__(92413);
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/InboxOutlined.js
|
|
|
// This icon file is generated automatically.
|
|
|
var InboxOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z" } }] }, "name": "inbox", "theme": "outlined" };
|
|
|
/* harmony default export */ var asn_InboxOutlined = (InboxOutlined);
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
|
|
var AntdIcon = __webpack_require__(7657);
|
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/InboxOutlined.js
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var InboxOutlined_InboxOutlined = function InboxOutlined(props, ref) {
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
|
|
ref: ref,
|
|
|
icon: asn_InboxOutlined
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
/** */
|
|
|
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(InboxOutlined_InboxOutlined);
|
|
|
if (false) {}
|
|
|
/* harmony default export */ var icons_InboxOutlined = (RefIcon);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 74038:
|
|
|
/*!*************************************************************************!*\
|
|
|
!*** ./src/pages/Materials/ItemAssets/AddReceive/index.tsx + 1 modules ***!
|
|
|
\*************************************************************************/
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
// ESM COMPAT FLAG
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
|
|
// EXPORTS
|
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
|
"default": function() { return /* binding */ AddReceive; }
|
|
|
});
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
|
|
|
var regeneratorRuntime = __webpack_require__(7557);
|
|
|
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
|
|
|
var objectSpread2 = __webpack_require__(82242);
|
|
|
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
|
|
|
var asyncToGenerator = __webpack_require__(41498);
|
|
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
|
// 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);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
|
|
var slicedToArray = __webpack_require__(79800);
|
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
|
|
var _umi_production_exports = __webpack_require__(13032);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
|
|
|
var es_form = __webpack_require__(78241);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
|
|
|
var tooltip = __webpack_require__(6848);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 3 modules
|
|
|
var input = __webpack_require__(92832);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules
|
|
|
var spin = __webpack_require__(71418);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
|
|
|
var es_select = __webpack_require__(57809);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/date-picker/index.js + 12 modules
|
|
|
var date_picker = __webpack_require__(47119);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
|
|
var message = __webpack_require__(8591);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
|
|
|
var table = __webpack_require__(1710);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
|
|
|
var modal = __webpack_require__(43418);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
|
|
|
var pagination = __webpack_require__(58421);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Materials/ItemAssets/AddReceive/index.less?modules
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
/* harmony default export */ var AddReceivemodules = ({"reportWrp":"reportWrp___NhLpO","reportContent":"reportContent___vTtoF","wrap":"wrap___sbVFy","back_style":"back_style___mjKTr","header":"header___EmJzv","header_form":"header_form___HdkwQ","guize_select":"guize_select___dcYnv","guize_update":"guize_update___OU5cT","shangchuan_button":"shangchuan_button___WuG8T","shangchuan_img":"shangchuan_img___WZsim","shangchuan_close":"shangchuan_close___LYtKj","close_button":"close_button___E_Xi8","submit_button":"submit_button___qNBzF","add_button":"add_button___rc_pQ","search_params":"search_params___uR9Dl","search":"search___tFg2Z","searchIcon":"searchIcon___pm9VG"});
|
|
|
// EXTERNAL MODULE: ./src/service/laboratory.ts
|
|
|
var laboratory = __webpack_require__(35377);
|
|
|
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
|
|
|
var MultiUpload = __webpack_require__(26029);
|
|
|
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 10 modules
|
|
|
var markdown_editor = __webpack_require__(39517);
|
|
|
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
|
|
var fetch = __webpack_require__(58181);
|
|
|
// EXTERNAL MODULE: ./src/service/materials.ts
|
|
|
var materials = __webpack_require__(47155);
|
|
|
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.13@dayjs/dayjs.min.js
|
|
|
var dayjs_min = __webpack_require__(61186);
|
|
|
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
|
var env = __webpack_require__(17631);
|
|
|
// EXTERNAL MODULE: ./src/components/HeaderNav/index.tsx + 4 modules
|
|
|
var HeaderNav = __webpack_require__(79624);
|
|
|
// EXTERNAL MODULE: ./src/utils/hooks/useCustomRequest.ts
|
|
|
var useCustomRequest = __webpack_require__(58618);
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Materials/ItemAssets/AddReceive/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var logo = __webpack_require__(/*! @/../public/images/materials/logo.png */ 12017);
|
|
|
var unitType = {
|
|
|
1: '个',
|
|
|
2: '套',
|
|
|
3: '袋',
|
|
|
4: '条',
|
|
|
5: '根',
|
|
|
6: '升',
|
|
|
7: '毫升'
|
|
|
};
|
|
|
var Navigation = function Navigation(_ref) {
|
|
|
var _reviewUserData$data;
|
|
|
var loading = _ref.loading,
|
|
|
user = _ref.user,
|
|
|
dispatch = _ref.dispatch,
|
|
|
account = _ref.account;
|
|
|
var phoneReg = /^1\d{10}$/;
|
|
|
var emailReg = /^[a-zA-Z0-9]+([.\-_\\]*[a-zA-Z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/;
|
|
|
var params = (0,_umi_production_exports.useParams)();
|
|
|
var _Form$useForm = es_form/* default */.Z.useForm(),
|
|
|
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
|
|
myForm = _Form$useForm2[0];
|
|
|
var _useState = (0,_react_17_0_2_react.useState)(false),
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
openRuleModal = _useState2[0],
|
|
|
setOpenRuleModal = _useState2[1]; //选择规则弹框
|
|
|
//实验室下拉
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
laboratoryLists = _useState4[0],
|
|
|
setLaboratoryLists = _useState4[1];
|
|
|
var _useState5 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
|
laboratoryRooms = _useState6[0],
|
|
|
setLaboratoryRooms = _useState6[1];
|
|
|
// 关联
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
containerList = _useState8[0],
|
|
|
setContainerList = _useState8[1];
|
|
|
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
|
|
|
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
|
|
|
searchParams = _useSearchParams2[0];
|
|
|
|
|
|
//分页
|
|
|
var _useState9 = (0,_react_17_0_2_react.useState)(0),
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
total = _useState10[0],
|
|
|
setTotal = _useState10[1];
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)(1),
|
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
|
page = _useState12[0],
|
|
|
setPage = _useState12[1];
|
|
|
var _useState13 = (0,_react_17_0_2_react.useState)(20),
|
|
|
_useState14 = slicedToArray_default()(_useState13, 2),
|
|
|
limit = _useState14[0],
|
|
|
setLimit = _useState14[1];
|
|
|
//物资类型 可用、报废
|
|
|
var _useState15 = (0,_react_17_0_2_react.useState)(),
|
|
|
_useState16 = slicedToArray_default()(_useState15, 2),
|
|
|
keyword = _useState16[0],
|
|
|
setkeyword = _useState16[1];
|
|
|
var _useState17 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState18 = slicedToArray_default()(_useState17, 2),
|
|
|
tableData = _useState18[0],
|
|
|
setTableData = _useState18[1];
|
|
|
//实验室、实验室房间、物资类别
|
|
|
var _useState19 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState20 = slicedToArray_default()(_useState19, 2),
|
|
|
roomList = _useState20[0],
|
|
|
setRoomList = _useState20[1];
|
|
|
var _useState21 = (0,_react_17_0_2_react.useState)(''),
|
|
|
_useState22 = slicedToArray_default()(_useState21, 2),
|
|
|
classroomRoomId = _useState22[0],
|
|
|
setClassroomRoomId = _useState22[1];
|
|
|
var _useState23 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState24 = slicedToArray_default()(_useState23, 2),
|
|
|
substanceList = _useState24[0],
|
|
|
setSubstanceList = _useState24[1];
|
|
|
var _useState25 = (0,_react_17_0_2_react.useState)(''),
|
|
|
_useState26 = slicedToArray_default()(_useState25, 2),
|
|
|
substanceCategoryId = _useState26[0],
|
|
|
setSubstanceCategoryId = _useState26[1];
|
|
|
//申请物资
|
|
|
var _useState27 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState28 = slicedToArray_default()(_useState27, 2),
|
|
|
modalTableData = _useState28[0],
|
|
|
setModalTableData = _useState28[1];
|
|
|
var _useState29 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState30 = slicedToArray_default()(_useState29, 2),
|
|
|
formTableData = _useState30[0],
|
|
|
setFormTableData = _useState30[1];
|
|
|
var _useState31 = (0,_react_17_0_2_react.useState)(''),
|
|
|
_useState32 = slicedToArray_default()(_useState31, 2),
|
|
|
refresh = _useState32[0],
|
|
|
setRefresh = _useState32[1];
|
|
|
var _useState33 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState34 = slicedToArray_default()(_useState33, 2),
|
|
|
rowKeys = _useState34[0],
|
|
|
setRowKeys = _useState34[1];
|
|
|
var _useState35 = (0,_react_17_0_2_react.useState)(false),
|
|
|
_useState36 = slicedToArray_default()(_useState35, 2),
|
|
|
isLoading = _useState36[0],
|
|
|
setIsLoading = _useState36[1];
|
|
|
var getReviewUser = function getReviewUser() {
|
|
|
return (0,fetch/* default */.ZP)("/api/yn_classrooms/purchases/review_users.json", {
|
|
|
method: "get"
|
|
|
});
|
|
|
};
|
|
|
var _useCustomRequest = (0,useCustomRequest/* useCustomRequest */.U)(getReviewUser, {}),
|
|
|
_useCustomRequest2 = slicedToArray_default()(_useCustomRequest, 4),
|
|
|
queryParams = _useCustomRequest2[0],
|
|
|
reviewUserLoading = _useCustomRequest2[1],
|
|
|
getReviewUsers = _useCustomRequest2[2],
|
|
|
reviewUserData = _useCustomRequest2[3];
|
|
|
|
|
|
//资产表格
|
|
|
var columns = [{
|
|
|
title: '序号',
|
|
|
ellipsis: true,
|
|
|
width: 60,
|
|
|
render: function render(text, record, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: index + 1
|
|
|
});
|
|
|
}
|
|
|
}, {
|
|
|
title: '资产编号',
|
|
|
dataIndex: 'number',
|
|
|
ellipsis: true,
|
|
|
width: 120,
|
|
|
render: function render(text) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
placement: "bottomLeft",
|
|
|
title: text,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: text || '--'
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
}, {
|
|
|
title: '物资名称',
|
|
|
dataIndex: 'title',
|
|
|
ellipsis: true,
|
|
|
width: 120,
|
|
|
render: function render(text) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
placement: "bottomLeft",
|
|
|
title: text,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: text || '--'
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
}, {
|
|
|
title: '型号规格',
|
|
|
dataIndex: 'model',
|
|
|
ellipsis: true,
|
|
|
width: 120,
|
|
|
render: function render(text) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
placement: "bottomLeft",
|
|
|
title: text,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: text || '--'
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
}, {
|
|
|
title: '所在实验室房间号',
|
|
|
dataIndex: 'classroom_room_title',
|
|
|
ellipsis: true,
|
|
|
width: 120,
|
|
|
render: function render(text) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
placement: "bottomLeft",
|
|
|
title: text,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: text || '--'
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
}, {
|
|
|
title: '条形码',
|
|
|
dataIndex: 'image',
|
|
|
width: 160,
|
|
|
render: function render(text) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
src: env/* default */.Z.API_SERVER + '/' + text,
|
|
|
style: {
|
|
|
height: '80px'
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}].filter(function (item) {
|
|
|
return !!item;
|
|
|
});
|
|
|
var addColumns = [{
|
|
|
title: '物资编码',
|
|
|
dataIndex: 'number',
|
|
|
ellipsis: true
|
|
|
}, {
|
|
|
title: '物资名称',
|
|
|
dataIndex: 'title',
|
|
|
ellipsis: true
|
|
|
}, {
|
|
|
title: '规格型号',
|
|
|
dataIndex: 'model',
|
|
|
ellipsis: true
|
|
|
}, {
|
|
|
title: '存放实验室房间',
|
|
|
dataIndex: 'classroom_room_title',
|
|
|
ellipsis: true
|
|
|
}, {
|
|
|
title: '单位',
|
|
|
dataIndex: 'unit',
|
|
|
ellipsis: true,
|
|
|
render: function render(text) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: unitType[text]
|
|
|
});
|
|
|
}
|
|
|
}, {
|
|
|
title: '可申请数量',
|
|
|
dataIndex: 'apply_total',
|
|
|
ellipsis: true
|
|
|
}, {
|
|
|
title: '需申请数量',
|
|
|
dataIndex: 'apply_num',
|
|
|
ellipsis: true,
|
|
|
render: function render(text, record, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
|
defaultValue: text,
|
|
|
onChange: function onChange(e) {
|
|
|
formTableData[index].apply_num = e.target.value;
|
|
|
setFormTableData(toConsumableArray_default()(formTableData));
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}, {
|
|
|
title: '操作',
|
|
|
width: 60,
|
|
|
render: function render(text, record, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
color: '#165DFF',
|
|
|
cursor: 'pointer'
|
|
|
},
|
|
|
onClick: function onClick() {
|
|
|
formTableData.splice(index, 1);
|
|
|
setFormTableData(toConsumableArray_default()(formTableData));
|
|
|
},
|
|
|
children: "\u5220\u9664"
|
|
|
});
|
|
|
}
|
|
|
}];
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
var _user$userInfo, _user$userInfo2;
|
|
|
myForm.setFieldsValue({
|
|
|
phone: user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.phone,
|
|
|
mail: user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.email
|
|
|
});
|
|
|
if (searchParams.get('initId')) {
|
|
|
//从物资详情里面进入
|
|
|
(0,materials/* substances_info */.os)({
|
|
|
id: searchParams.get('initId')
|
|
|
}).then(function (res) {
|
|
|
var _res$data, _res$data2, _res$data4;
|
|
|
myForm.setFieldValue('classroom_id', res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.classroom_id);
|
|
|
setFormTableData([res === null || res === void 0 ? void 0 : res.data]);
|
|
|
//实验室房间
|
|
|
(0,laboratory/* user_substance_classroom_rooms */.Zd)({
|
|
|
classroom_id: res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.classroom_id
|
|
|
}).then(function (res) {
|
|
|
var _res$data3;
|
|
|
setRoomList([{
|
|
|
id: '',
|
|
|
title: '全部'
|
|
|
}].concat(toConsumableArray_default()(res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.list)));
|
|
|
});
|
|
|
//实验室房间
|
|
|
(0,laboratory/* user_substance_classroom_rooms */.Zd)({
|
|
|
classroom_id: res === null || res === void 0 || (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.classroom_place_id
|
|
|
}).then(function (res) {
|
|
|
var _res$data5;
|
|
|
setLaboratoryRooms(toConsumableArray_default()(res === null || res === void 0 || (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.list));
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
if ((params === null || params === void 0 ? void 0 : params.receiveId) != 'null') {
|
|
|
//编辑
|
|
|
(0,materials/* receives_info */.Os)({
|
|
|
id: params === null || params === void 0 ? void 0 : params.receiveId
|
|
|
}).then(function (res) {
|
|
|
var _res$data6, _res$data7, _res$data8, _res$data9, _res$data10, _res$data11, _res$data12, _res$data13, _res$data14, _res$data15, _res$data16, _res$data17, _res$data18, _res$data19, _res$data20, _res$data21, _res$data22, _res$data23, _res$data25, _res$data27;
|
|
|
myForm.setFieldsValue({
|
|
|
number: res === null || res === void 0 || (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.number,
|
|
|
attachment_ids: (res === null || res === void 0 || (_res$data7 = res.data) === null || _res$data7 === void 0 || (_res$data7 = _res$data7.attachments) === null || _res$data7 === void 0 ? void 0 : _res$data7.length) > 0 ? (0,MultiUpload/* coverToFileList */.z)(res === null || res === void 0 || (_res$data8 = res.data) === null || _res$data8 === void 0 ? void 0 : _res$data8.attachments) : [],
|
|
|
classroom_id: res === null || res === void 0 || (_res$data9 = res.data) === null || _res$data9 === void 0 ? void 0 : _res$data9.classroom_id,
|
|
|
phone: res === null || res === void 0 || (_res$data10 = res.data) === null || _res$data10 === void 0 ? void 0 : _res$data10.phone,
|
|
|
mail: res === null || res === void 0 || (_res$data11 = res.data) === null || _res$data11 === void 0 ? void 0 : _res$data11.mail,
|
|
|
reason: res === null || res === void 0 || (_res$data12 = res.data) === null || _res$data12 === void 0 ? void 0 : _res$data12.reason,
|
|
|
container_type: res === null || res === void 0 || (_res$data13 = res.data) === null || _res$data13 === void 0 ? void 0 : _res$data13.container_type,
|
|
|
start_time: dayjs_min_default()(res === null || res === void 0 || (_res$data14 = res.data) === null || _res$data14 === void 0 ? void 0 : _res$data14.start_time),
|
|
|
end_time: dayjs_min_default()(res === null || res === void 0 || (_res$data15 = res.data) === null || _res$data15 === void 0 ? void 0 : _res$data15.end_time),
|
|
|
classroom_place_id: res === null || res === void 0 || (_res$data16 = res.data) === null || _res$data16 === void 0 ? void 0 : _res$data16.classroom_place_id,
|
|
|
place_id: res === null || res === void 0 || (_res$data17 = res.data) === null || _res$data17 === void 0 ? void 0 : _res$data17.place_id,
|
|
|
container_id: res === null || res === void 0 || (_res$data18 = res.data) === null || _res$data18 === void 0 ? void 0 : _res$data18.container_id,
|
|
|
description: res === null || res === void 0 || (_res$data19 = res.data) === null || _res$data19 === void 0 ? void 0 : _res$data19.description,
|
|
|
substances: (res === null || res === void 0 || (_res$data20 = res.data) === null || _res$data20 === void 0 || (_res$data20 = _res$data20.substances) === null || _res$data20 === void 0 ? void 0 : _res$data20.length) > 0 ? res === null || res === void 0 || (_res$data21 = res.data) === null || _res$data21 === void 0 ? void 0 : _res$data21.substances : []
|
|
|
});
|
|
|
setFormTableData(toConsumableArray_default()(res === null || res === void 0 || (_res$data22 = res.data) === null || _res$data22 === void 0 ? void 0 : _res$data22.substances));
|
|
|
//实验室房间弹窗
|
|
|
(0,laboratory/* user_substance_classroom_rooms */.Zd)({
|
|
|
classroom_id: res === null || res === void 0 || (_res$data23 = res.data) === null || _res$data23 === void 0 ? void 0 : _res$data23.classroom_id
|
|
|
}).then(function (res) {
|
|
|
var _res$data24;
|
|
|
setRoomList([{
|
|
|
id: '',
|
|
|
title: '全部'
|
|
|
}].concat(toConsumableArray_default()(res === null || res === void 0 || (_res$data24 = res.data) === null || _res$data24 === void 0 ? void 0 : _res$data24.list)));
|
|
|
});
|
|
|
//实验室房间
|
|
|
(0,laboratory/* user_substance_classroom_rooms */.Zd)({
|
|
|
classroom_id: res === null || res === void 0 || (_res$data25 = res.data) === null || _res$data25 === void 0 ? void 0 : _res$data25.classroom_place_id
|
|
|
}).then(function (res) {
|
|
|
var _res$data26;
|
|
|
setLaboratoryRooms(toConsumableArray_default()(res === null || res === void 0 || (_res$data26 = res.data) === null || _res$data26 === void 0 ? void 0 : _res$data26.list));
|
|
|
});
|
|
|
getContainerList(res === null || res === void 0 || (_res$data27 = res.data) === null || _res$data27 === void 0 ? void 0 : _res$data27.container_type);
|
|
|
});
|
|
|
} else {
|
|
|
myForm.setFieldValue('start_time', dayjs_min_default()(new Date()));
|
|
|
myForm.setFieldValue('end_time', dayjs_min_default()().add(1, 'day'));
|
|
|
}
|
|
|
|
|
|
//我的实验室下拉
|
|
|
(0,laboratory/* user_substance_classrooms */.y8)({
|
|
|
type: 1
|
|
|
}).then(function (res) {
|
|
|
var _res$data28;
|
|
|
setLaboratoryLists(res === null || res === void 0 || (_res$data28 = res.data) === null || _res$data28 === void 0 ? void 0 : _res$data28.list);
|
|
|
});
|
|
|
//物资分类
|
|
|
(0,materials/* substance_categories_query */.xb)({
|
|
|
page: 1,
|
|
|
limit: 10000,
|
|
|
keyword: '',
|
|
|
is_public: 1
|
|
|
}).then(function (res) {
|
|
|
var _res$data29;
|
|
|
setSubstanceList([{
|
|
|
id: '',
|
|
|
title: '全部'
|
|
|
}].concat(toConsumableArray_default()(res === null || res === void 0 || (_res$data29 = res.data) === null || _res$data29 === void 0 ? void 0 : _res$data29.list)));
|
|
|
});
|
|
|
dispatch({
|
|
|
type: 'globalSetting/headerFooterToggle',
|
|
|
payload: false
|
|
|
});
|
|
|
return function () {
|
|
|
dispatch({
|
|
|
type: 'globalSetting/headerFooterToggle',
|
|
|
payload: true
|
|
|
});
|
|
|
};
|
|
|
}, []);
|
|
|
|
|
|
//获取关联
|
|
|
var getContainerList = function getContainerList(e) {
|
|
|
var _user$userInfo3;
|
|
|
var obj = e == 'Subject' ? 'subjects' : e == 'Shixun' ? 'shixuns' : 'courses';
|
|
|
(0,fetch/* default */.ZP)("/api/users/".concat(user === null || user === void 0 || (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.login, "/").concat(obj, ".json"), {
|
|
|
method: 'get',
|
|
|
params: {
|
|
|
page: 1,
|
|
|
per_page: 1000,
|
|
|
username: user.userInfo.login
|
|
|
}
|
|
|
}).then(function (res) {
|
|
|
setContainerList(res === null || res === void 0 ? void 0 : res[obj]);
|
|
|
});
|
|
|
};
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
if (openRuleModal) {
|
|
|
getData(false);
|
|
|
}
|
|
|
}, [page]);
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
getReviewUsers({});
|
|
|
}, []);
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
if (openRuleModal) {
|
|
|
getData(true);
|
|
|
}
|
|
|
}, [keyword, classroomRoomId, substanceCategoryId, myForm.getFieldValue('classroom_id'), limit]);
|
|
|
var getData = function getData(flag) {
|
|
|
if (flag) {
|
|
|
setPage(1);
|
|
|
}
|
|
|
(0,materials/* substances_query */.HM)({
|
|
|
page: page,
|
|
|
limit: limit,
|
|
|
keyword: keyword,
|
|
|
classroom_room_id: classroomRoomId,
|
|
|
classroom_id: myForm.getFieldValue('classroom_id'),
|
|
|
substance_category_id: substanceCategoryId,
|
|
|
scrapped: 0
|
|
|
}).then(function (res) {
|
|
|
var _res$data30, _res$data31;
|
|
|
setTableData(res === null || res === void 0 || (_res$data30 = res.data) === null || _res$data30 === void 0 || (_res$data30 = _res$data30.list) === null || _res$data30 === void 0 ? void 0 : _res$data30.map(function (item) {
|
|
|
item.key = item === null || item === void 0 ? void 0 : item.id;
|
|
|
return item;
|
|
|
}));
|
|
|
setTotal(res === null || res === void 0 || (_res$data31 = res.data) === null || _res$data31 === void 0 ? void 0 : _res$data31.count);
|
|
|
});
|
|
|
};
|
|
|
var onShowSizeChange = function onShowSizeChange(page, size) {
|
|
|
setPage(page);
|
|
|
setLimit(size);
|
|
|
};
|
|
|
var handleDisabledDate = function handleDisabledDate(current) {
|
|
|
// 禁用之前的日期
|
|
|
return current && current < dayjs_min_default()().startOf('day');
|
|
|
};
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
|
|
|
spinning: isLoading,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: AddReceivemodules.reportWrp,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(HeaderNav/* default */.Z, {
|
|
|
title: "\u7269\u8D44\u7BA1\u7406",
|
|
|
goBackUrl: '/materials/myReceive',
|
|
|
imgUrl: logo
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: AddReceivemodules.reportContent,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: AddReceivemodules.wrap,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: AddReceivemodules.back_style,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
className: AddReceivemodules.back_style_span,
|
|
|
onClick: function onClick() {
|
|
|
_umi_production_exports.history.push(searchParams.get('backUrl'));
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
className: "icon-zzxy-fanhui1 font14 mr5"
|
|
|
}), "\u6279\u91CF\u7533\u8BF7\u9886\u7528"]
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: "".concat(AddReceivemodules.header, " mt20"),
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
|
|
form: myForm,
|
|
|
className: AddReceivemodules.header_form
|
|
|
// labelCol={{ span: 3 }}
|
|
|
,
|
|
|
wrapperCol: {
|
|
|
span: 21
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
colon: false,
|
|
|
label: "\u7533\u8BF7\u539F\u56E0",
|
|
|
name: "reason",
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
message: '请输入申请原因'
|
|
|
}],
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
|
size: "large",
|
|
|
showCount: true,
|
|
|
maxLength: 30,
|
|
|
onChange: function onChange(e) {
|
|
|
var _e$target;
|
|
|
myForm.setFieldValue('reason', 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());
|
|
|
}
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: "flex"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
colon: false,
|
|
|
label: "\u5173\u8054",
|
|
|
name: "container_type",
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"], {
|
|
|
size: "large",
|
|
|
style: {
|
|
|
width: '300px'
|
|
|
},
|
|
|
onChange: function onChange(e) {
|
|
|
getContainerList(e);
|
|
|
myForm.setFieldValue('container_id', '');
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
|
|
|
value: 'Subject',
|
|
|
children: "\u5B9E\u8DF5\u8BFE\u7A0B"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
|
|
|
value: 'Shixun',
|
|
|
children: "\u5B9E\u8DF5\u9879\u76EE"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
|
|
|
value: 'Course',
|
|
|
children: "\u6559\u5B66\u8BFE\u5802"
|
|
|
})]
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
colon: false,
|
|
|
name: "container_id",
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
size: "large",
|
|
|
style: {
|
|
|
marginLeft: '10px',
|
|
|
width: '714px'
|
|
|
},
|
|
|
children: containerList === null || containerList === void 0 ? void 0 : containerList.map(function (item, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
|
|
|
value: item === null || item === void 0 ? void 0 : item.id,
|
|
|
children: item === null || item === void 0 ? void 0 : item.name
|
|
|
}, index);
|
|
|
})
|
|
|
})
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: "flex"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
colon: false,
|
|
|
label: "\u4F7F\u7528\u5730\u70B9",
|
|
|
name: "classroom_place_id",
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
message: '必填项'
|
|
|
}],
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
size: "large",
|
|
|
style: {
|
|
|
width: '700px'
|
|
|
},
|
|
|
onChange: function onChange(e) {
|
|
|
myForm.setFieldValue('place_id', '');
|
|
|
//实验室房间
|
|
|
(0,laboratory/* user_substance_classroom_rooms */.Zd)({
|
|
|
classroom_id: e
|
|
|
}).then(function (res) {
|
|
|
var _res$data32;
|
|
|
setLaboratoryRooms(toConsumableArray_default()(res === null || res === void 0 || (_res$data32 = res.data) === null || _res$data32 === void 0 ? void 0 : _res$data32.list));
|
|
|
});
|
|
|
},
|
|
|
children: laboratoryLists === null || laboratoryLists === void 0 ? void 0 : laboratoryLists.map(function (item, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
|
|
|
value: item.id,
|
|
|
children: item.title
|
|
|
}, index);
|
|
|
})
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
colon: false,
|
|
|
name: "place_id",
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
message: '请选择关联'
|
|
|
}],
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
size: "large",
|
|
|
style: {
|
|
|
marginLeft: '10px',
|
|
|
width: '314px'
|
|
|
},
|
|
|
children: laboratoryRooms === null || laboratoryRooms === void 0 ? void 0 : laboratoryRooms.map(function (item, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
|
|
|
value: item === null || item === void 0 ? void 0 : item.id,
|
|
|
children: item === null || item === void 0 ? void 0 : item.title
|
|
|
}, index);
|
|
|
})
|
|
|
})
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: "flex"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
colon: false,
|
|
|
label: "\u4F7F\u7528\u65F6\u95F4",
|
|
|
name: "start_time",
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
message: '请选择开始时间'
|
|
|
}],
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], {
|
|
|
disabledDate: handleDisabledDate,
|
|
|
showTime: true,
|
|
|
size: "large",
|
|
|
style: {
|
|
|
width: '487px'
|
|
|
},
|
|
|
format: "YYYY-MM-DD HH:mm",
|
|
|
onChange: function onChange(e) {
|
|
|
if (myForm.getFieldValue('end_time') && e > myForm.getFieldValue('end_time')) {
|
|
|
myForm.setFieldValue('end_time', '');
|
|
|
message/* default */.ZP.error('开始时间必须小于结束时间');
|
|
|
}
|
|
|
myForm.setFieldValue('start_time', e);
|
|
|
}
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
height: '40px',
|
|
|
lineHeight: '40px',
|
|
|
width: "50px",
|
|
|
textAlign: "center"
|
|
|
},
|
|
|
children: "\u81F3"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
colon: false,
|
|
|
name: "end_time",
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
message: '请选择结束时间'
|
|
|
}],
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], {
|
|
|
disabledDate: handleDisabledDate,
|
|
|
showTime: true,
|
|
|
size: "large",
|
|
|
style: {
|
|
|
width: '487px'
|
|
|
},
|
|
|
format: "YYYY-MM-DD HH:mm",
|
|
|
onChange: function onChange(e) {
|
|
|
if (myForm.getFieldValue('start_time') && e < myForm.getFieldValue('start_time')) {
|
|
|
myForm.setFieldValue('end_time', '');
|
|
|
message/* default */.ZP.error('开始时间必须小于结束时间');
|
|
|
} else {
|
|
|
myForm.setFieldValue('end_time', e);
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
colon: false,
|
|
|
label: "\u7533\u8BF7\u5B9E\u9A8C\u5BA4",
|
|
|
name: "classroom_id",
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
message: '请选择实验室'
|
|
|
}],
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
size: "large",
|
|
|
onChange: function onChange(e) {
|
|
|
//实验室房间
|
|
|
(0,laboratory/* user_substance_classroom_rooms */.Zd)({
|
|
|
classroom_id: e
|
|
|
}).then(function (res) {
|
|
|
var _res$data33;
|
|
|
setRoomList([{
|
|
|
id: '',
|
|
|
title: '全部'
|
|
|
}].concat(toConsumableArray_default()(res === null || res === void 0 || (_res$data33 = res.data) === null || _res$data33 === void 0 ? void 0 : _res$data33.list)));
|
|
|
});
|
|
|
setFormTableData([]);
|
|
|
},
|
|
|
children: laboratoryLists === null || laboratoryLists === void 0 ? void 0 : laboratoryLists.map(function (item, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
|
|
|
value: item.id,
|
|
|
children: item.title
|
|
|
}, index);
|
|
|
})
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
colon: false,
|
|
|
label: "\u624B\u673A\u53F7",
|
|
|
name: "phone",
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
message: '请输入手机号'
|
|
|
}, {
|
|
|
required: true,
|
|
|
pattern: phoneReg,
|
|
|
message: '请输入正确的手机号'
|
|
|
}],
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
|
size: "large"
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
colon: false,
|
|
|
label: "\u6307\u5B9A\u5BA1\u6838\u4EBA",
|
|
|
name: "review_user_id",
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
message: '请选择审核人'
|
|
|
}],
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
placeholder: "\u8BF7\u9009\u62E9\u5BA1\u6838\u4EBA",
|
|
|
children: reviewUserData === null || reviewUserData === void 0 || (_reviewUserData$data = reviewUserData.data) === null || _reviewUserData$data === void 0 || (_reviewUserData$data = _reviewUserData$data.list) === null || _reviewUserData$data === void 0 ? void 0 : _reviewUserData$data.map(function (item, key) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
|
|
|
value: item.user_id,
|
|
|
children: item.real_name
|
|
|
}, key);
|
|
|
})
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
colon: false,
|
|
|
label: "\u5907\u6CE8\u8BF4\u660E",
|
|
|
name: "description",
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
|
|
|
height: 300,
|
|
|
defaultValue: myForm.getFieldValue('description') || '',
|
|
|
watch: true
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
colon: false,
|
|
|
label: "\u9644\u4EF6",
|
|
|
name: "attachment_ids",
|
|
|
style: {
|
|
|
marginTop: '-15px'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
|
|
|
colon: false,
|
|
|
label: "\u7533\u8BF7\u7269\u8D44",
|
|
|
name: "substances",
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
message: '请选择申请物资'
|
|
|
}],
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: AddReceivemodules.guize_select,
|
|
|
onClick: function onClick() {
|
|
|
if (myForm.getFieldValue('classroom_id')) {
|
|
|
setOpenRuleModal(true);
|
|
|
getData(true);
|
|
|
setModalTableData(toConsumableArray_default()(formTableData));
|
|
|
setRowKeys(toConsumableArray_default()(formTableData === null || formTableData === void 0 ? void 0 : formTableData.map(function (item) {
|
|
|
return item === null || item === void 0 ? void 0 : item.id;
|
|
|
})));
|
|
|
} else {
|
|
|
message/* default */.ZP.error('请先选择申请实验室');
|
|
|
}
|
|
|
},
|
|
|
children: "\u6DFB\u52A0"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
|
|
scroll: {
|
|
|
y: 300
|
|
|
},
|
|
|
pagination: false,
|
|
|
style: {
|
|
|
marginTop: '10px'
|
|
|
},
|
|
|
dataSource: formTableData,
|
|
|
columns: addColumns
|
|
|
}, refresh)]
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
marginTop: '40px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: AddReceivemodules.close_button,
|
|
|
onClick: function onClick() {
|
|
|
_umi_production_exports.history.push(searchParams.get('backUrl'));
|
|
|
},
|
|
|
children: "\u53D6\u6D88"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: AddReceivemodules.submit_button,
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
|
var regex, i, _myForm$getFieldValue, _myForm$getFieldValue2, _myForm$getFieldValue3, _myForm$getFieldValue4;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
case 0:
|
|
|
regex = /^(?!0+(\.0*)?$)\d+(\.\d)?$/;
|
|
|
_context.t0 = regeneratorRuntime_default()().keys(formTableData);
|
|
|
case 2:
|
|
|
if ((_context.t1 = _context.t0()).done) {
|
|
|
_context.next = 9;
|
|
|
break;
|
|
|
}
|
|
|
i = _context.t1.value;
|
|
|
if (regex.test(formTableData[i].apply_num)) {
|
|
|
_context.next = 7;
|
|
|
break;
|
|
|
}
|
|
|
message/* default */.ZP.error("请检查需申请数量,必须大于0且最多只能一位小数");
|
|
|
return _context.abrupt("return", false);
|
|
|
case 7:
|
|
|
_context.next = 2;
|
|
|
break;
|
|
|
case 9:
|
|
|
myForm.setFieldValue('substances', formTableData === null || formTableData === void 0 ? void 0 : formTableData.map(function (item) {
|
|
|
item.apply_num = Number(item === null || item === void 0 ? void 0 : item.apply_num);
|
|
|
return item;
|
|
|
}));
|
|
|
_context.next = 12;
|
|
|
return myForm.validateFields();
|
|
|
case 12:
|
|
|
// setIsLoading(true)
|
|
|
// receives_matches({ substances: myForm.getFieldValue('substances'), receive_id: params?.receiveId }).then((res) => {
|
|
|
// if (res?.status == 0) {
|
|
|
// Modal.confirm({
|
|
|
// title: "确认申请",
|
|
|
// icon: null,
|
|
|
// cancelText: "取消",
|
|
|
// okText: "提交申请",
|
|
|
// width: 800,
|
|
|
// centered: true,
|
|
|
// onOk: (() => {
|
|
|
// if (params?.receiveId != 'null') {//编辑
|
|
|
// receives_update({
|
|
|
// id: params?.receiveId,
|
|
|
// receive: {
|
|
|
// ...myForm.getFieldsValue(),
|
|
|
// attachment_ids: myForm.getFieldValue('attachment_ids') ?
|
|
|
// myForm.getFieldValue('attachment_ids')?.map((item: any) => {
|
|
|
// return item?.response?.id
|
|
|
// }) : []
|
|
|
// }
|
|
|
// }).then((res) => {
|
|
|
// if (res?.status == 0) {
|
|
|
// message.success('编辑成功')
|
|
|
// history.push(searchParams.get('backUrl'))
|
|
|
// }
|
|
|
// })
|
|
|
// } else {
|
|
|
// receives_create({
|
|
|
// receive: {
|
|
|
// ...myForm.getFieldsValue(),
|
|
|
// start_time: moment(myForm.getFieldValue('start_time')?.$d).format('YYYY-MM-DD HH:mm'),
|
|
|
// end_time: moment(myForm.getFieldValue('end_time')?.$d).format('YYYY-MM-DD HH:mm'),
|
|
|
// attachment_ids: myForm.getFieldValue('attachment_ids') ?
|
|
|
// myForm.getFieldValue('attachment_ids')?.map((item: any) => {
|
|
|
// return item?.response?.id
|
|
|
// }) : []
|
|
|
// }
|
|
|
// }).then((res) => {
|
|
|
// if (res?.status == 0) {
|
|
|
// message.success('申请成功')
|
|
|
// history.push(searchParams.get('backUrl'))
|
|
|
// }
|
|
|
// })
|
|
|
// }
|
|
|
// }),
|
|
|
// content: <div>
|
|
|
// <div style={{ margin: '0 auto 20px auto' }}>请确认本次申请领用物资明细,确认无误后可提交申请</div>
|
|
|
// <Table
|
|
|
// style={{ width: '750px' }}
|
|
|
// dataSource={res?.data?.list}
|
|
|
// pagination={false}
|
|
|
// bordered
|
|
|
// columns={columns}
|
|
|
// scroll={{ y: 400 }}
|
|
|
// />
|
|
|
// </div>
|
|
|
// })
|
|
|
// }
|
|
|
// setIsLoading(false)
|
|
|
// })
|
|
|
if ((params === null || params === void 0 ? void 0 : params.receiveId) != 'null') {
|
|
|
//编辑
|
|
|
(0,materials/* receives_update */.c7)({
|
|
|
id: params === null || params === void 0 ? void 0 : params.receiveId,
|
|
|
receive: objectSpread2_default()(objectSpread2_default()({}, myForm.getFieldsValue()), {}, {
|
|
|
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;
|
|
|
}) : []
|
|
|
})
|
|
|
}).then(function (res) {
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
message/* default */.ZP.success('编辑成功');
|
|
|
_umi_production_exports.history.push(searchParams.get('backUrl'));
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
(0,materials/* receives_create */.EZ)({
|
|
|
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) {
|
|
|
var _item$response2;
|
|
|
return item === null || item === void 0 || (_item$response2 = item.response) === null || _item$response2 === void 0 ? void 0 : _item$response2.id;
|
|
|
}) : []
|
|
|
})
|
|
|
}).then(function (res) {
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
message/* default */.ZP.success('申请成功');
|
|
|
_umi_production_exports.history.push(searchParams.get('backUrl'));
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
case 13:
|
|
|
case "end":
|
|
|
return _context.stop();
|
|
|
}
|
|
|
}, _callee);
|
|
|
})),
|
|
|
children: "\u63D0\u4EA4"
|
|
|
})]
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
|
|
|
maskClosable: false,
|
|
|
centered: true,
|
|
|
keyboard: false,
|
|
|
destroyOnClose: true,
|
|
|
className: AddReceivemodules.my_modal,
|
|
|
open: openRuleModal,
|
|
|
title: "\u9009\u62E9\u7269\u8D44",
|
|
|
width: "1000px",
|
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
|
var i, j;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
|
case 0:
|
|
|
//去重保存已选的值的 需申请数据
|
|
|
for (i in modalTableData) {
|
|
|
for (j in formTableData) {
|
|
|
if (formTableData[j].id == modalTableData[i].id) {
|
|
|
modalTableData[i] = formTableData[j];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
setFormTableData(toConsumableArray_default()(modalTableData));
|
|
|
setOpenRuleModal(false);
|
|
|
setRefresh(new Date());
|
|
|
case 4:
|
|
|
case "end":
|
|
|
return _context2.stop();
|
|
|
}
|
|
|
}, _callee2);
|
|
|
})),
|
|
|
onCancel: function onCancel() {
|
|
|
setOpenRuleModal(false);
|
|
|
setRefresh(new Date());
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: AddReceivemodules.search_params,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
colon: false,
|
|
|
label: "\u5B9E\u9A8C\u5BA4\u623F\u95F4",
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
style: {
|
|
|
width: 140
|
|
|
},
|
|
|
defaultValue: classroomRoomId,
|
|
|
value: classroomRoomId,
|
|
|
onChange: function onChange(e) {
|
|
|
setClassroomRoomId(e);
|
|
|
},
|
|
|
children: roomList === null || roomList === void 0 ? void 0 : roomList.map(function (item, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
|
|
|
value: item === null || item === void 0 ? void 0 : item.id,
|
|
|
children: item === null || item === void 0 ? void 0 : item.title
|
|
|
}, index);
|
|
|
})
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
colon: false,
|
|
|
label: "\u7269\u8D44\u7C7B\u522B",
|
|
|
style: {
|
|
|
marginLeft: '20px'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
style: {
|
|
|
width: 140
|
|
|
},
|
|
|
defaultValue: substanceCategoryId,
|
|
|
value: substanceCategoryId,
|
|
|
onChange: function onChange(e) {
|
|
|
setSubstanceCategoryId(e);
|
|
|
},
|
|
|
children: substanceList === null || substanceList === void 0 ? void 0 : substanceList.map(function (item, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
|
|
|
value: item === null || item === void 0 ? void 0 : item.id,
|
|
|
children: item === null || item === void 0 ? void 0 : item.title
|
|
|
}, index);
|
|
|
})
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Search, {
|
|
|
placeholder: "\u8BF7\u641C\u7D22\u540D\u79F0/\u7269\u8D44\u7F16\u53F7",
|
|
|
size: "large",
|
|
|
className: AddReceivemodules.search,
|
|
|
value: keyword,
|
|
|
onChange: function onChange(e) {
|
|
|
setkeyword(e.target.value);
|
|
|
},
|
|
|
onSearch: function onSearch(value) {
|
|
|
setkeyword(value);
|
|
|
},
|
|
|
suffix: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
className: "iconfont icon-sousuo9 font14 ".concat(AddReceivemodules.searchIcon),
|
|
|
onClick: function onClick() {
|
|
|
setkeyword(keyword);
|
|
|
getData(true);
|
|
|
}
|
|
|
})
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
|
|
rowSelection: {
|
|
|
type: 'checkbox',
|
|
|
selectedRowKeys: rowKeys,
|
|
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
|
return {
|
|
|
checked: rowKeys.includes(record.key)
|
|
|
};
|
|
|
},
|
|
|
onChange: function onChange(id, info) {
|
|
|
var updatedInfoArr;
|
|
|
if ((id === null || id === void 0 ? void 0 : id.length) === 0) {
|
|
|
var idArr = tableData.map(function (item) {
|
|
|
return item === null || item === void 0 ? void 0 : item.id;
|
|
|
});
|
|
|
var tData = tableData.filter(function (obj) {
|
|
|
return idArr.includes(obj.id);
|
|
|
});
|
|
|
updatedInfoArr = [].concat(toConsumableArray_default()(modalTableData), toConsumableArray_default()(tData)).filter(function (item, index, arr) {
|
|
|
return arr.findIndex(function (item2) {
|
|
|
return (item2 === null || item2 === void 0 ? void 0 : item2.id) === item.id;
|
|
|
}) === index;
|
|
|
});
|
|
|
setRowKeys(rowKeys.filter(function (x) {
|
|
|
return !idArr.includes(x);
|
|
|
}));
|
|
|
} else {
|
|
|
var _tData = tableData.filter(function (obj) {
|
|
|
return !id.includes(obj.id);
|
|
|
});
|
|
|
updatedInfoArr = [].concat(toConsumableArray_default()(modalTableData), toConsumableArray_default()(info)).filter(function (obj) {
|
|
|
return !_tData.map(function (item) {
|
|
|
return item === null || item === void 0 ? void 0 : item.id;
|
|
|
}).includes(obj.id);
|
|
|
});
|
|
|
updatedInfoArr = updatedInfoArr.filter(function (item, index, arr) {
|
|
|
return arr.findIndex(function (item2) {
|
|
|
return (item2 === null || item2 === void 0 ? void 0 : item2.id) === item.id;
|
|
|
}) === index;
|
|
|
});
|
|
|
setRowKeys(Array.from(new Set([].concat(toConsumableArray_default()(rowKeys), toConsumableArray_default()(id)))));
|
|
|
}
|
|
|
setModalTableData(updatedInfoArr);
|
|
|
},
|
|
|
onSelect: function onSelect(record, selected) {
|
|
|
if (selected) {
|
|
|
//添加
|
|
|
setModalTableData([].concat(toConsumableArray_default()(modalTableData), [record]));
|
|
|
setRowKeys([].concat(toConsumableArray_default()(rowKeys), [record === null || record === void 0 ? void 0 : record.id]));
|
|
|
} else {
|
|
|
//删除
|
|
|
for (var i = 0; i < (rowKeys === null || rowKeys === void 0 ? void 0 : rowKeys.length); i++) {
|
|
|
if (rowKeys[i] == (record === null || record === void 0 ? void 0 : record.id)) {
|
|
|
rowKeys.splice(i, 1);
|
|
|
modalTableData.splice(i, 1);
|
|
|
}
|
|
|
}
|
|
|
setModalTableData(toConsumableArray_default()(modalTableData));
|
|
|
setRowKeys(toConsumableArray_default()(rowKeys));
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
scroll: {
|
|
|
y: 300
|
|
|
},
|
|
|
pagination: false,
|
|
|
dataSource: tableData,
|
|
|
columns: [{
|
|
|
title: '物资编号',
|
|
|
dataIndex: 'number',
|
|
|
ellipsis: true
|
|
|
}, {
|
|
|
title: '物资名称',
|
|
|
dataIndex: 'title',
|
|
|
ellipsis: true
|
|
|
}, {
|
|
|
title: '型号规格',
|
|
|
dataIndex: 'model',
|
|
|
ellipsis: true
|
|
|
}, {
|
|
|
title: '可申请数量',
|
|
|
dataIndex: 'apply_total',
|
|
|
ellipsis: true
|
|
|
}, {
|
|
|
title: '物资类别',
|
|
|
dataIndex: 'substance_category_title',
|
|
|
ellipsis: true
|
|
|
}, {
|
|
|
title: '实验室房间',
|
|
|
dataIndex: 'classroom_room_title',
|
|
|
ellipsis: true
|
|
|
}]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
|
|
children: total > 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'space-between',
|
|
|
padding: '10px 7px 20px 7px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
style: {
|
|
|
color: '#656F87'
|
|
|
},
|
|
|
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: "c-white",
|
|
|
children: total
|
|
|
}), "\u6761\u6570\u636E"]
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
|
|
|
showSizeChanger: true,
|
|
|
showQuickJumper: true,
|
|
|
onChange: onShowSizeChange,
|
|
|
defaultCurrent: 1,
|
|
|
pageSizeOptions: ['20', '50', '100'],
|
|
|
current: page || 1,
|
|
|
pageSize: limit || 20,
|
|
|
defaultPageSize: 20,
|
|
|
total: total
|
|
|
})]
|
|
|
}) : ''
|
|
|
})]
|
|
|
})]
|
|
|
})
|
|
|
})]
|
|
|
})
|
|
|
});
|
|
|
};
|
|
|
/* harmony default export */ var AddReceive = ((0,_umi_production_exports.connect)(function (_ref4) {
|
|
|
var loading = _ref4.loading,
|
|
|
user = _ref4.user,
|
|
|
engineeringNavigtion = _ref4.engineeringNavigtion,
|
|
|
dispatch = _ref4.dispatch,
|
|
|
account = _ref4.account;
|
|
|
return objectSpread2_default()(objectSpread2_default()({
|
|
|
loading: loading,
|
|
|
user: user
|
|
|
}, engineeringNavigtion), {}, {
|
|
|
dispatch: dispatch,
|
|
|
account: account
|
|
|
});
|
|
|
})(Navigation));
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 47155:
|
|
|
/*!**********************************!*\
|
|
|
!*** ./src/service/materials.ts ***!
|
|
|
\**********************************/
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
|
/* harmony export */ AY: function() { return /* binding */ purchases_review; },
|
|
|
/* harmony export */ ER: function() { return /* binding */ tracks_info; },
|
|
|
/* harmony export */ EZ: function() { return /* binding */ receives_create; },
|
|
|
/* harmony export */ FE: function() { return /* binding */ my_purchases_query; },
|
|
|
/* harmony export */ FZ: function() { return /* binding */ substances_import; },
|
|
|
/* harmony export */ Gf: function() { return /* binding */ submit_substance_details; },
|
|
|
/* harmony export */ HM: function() { return /* binding */ substances_query; },
|
|
|
/* harmony export */ HX: function() { return /* binding */ substance_categories_delete; },
|
|
|
/* harmony export */ JQ: function() { return /* binding */ receives_cancel; },
|
|
|
/* harmony export */ K$: function() { return /* binding */ bills_create; },
|
|
|
/* harmony export */ LP: function() { return /* binding */ getReceiveReport; },
|
|
|
/* 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; },
|
|
|
/* harmony export */ Qk: function() { return /* binding */ queryLog; },
|
|
|
/* harmony export */ Td: function() { return /* binding */ substance_categories_create; },
|
|
|
/* harmony export */ VT: function() { return /* binding */ bills_update; },
|
|
|
/* harmony export */ ZW: function() { return /* binding */ purchases_query; },
|
|
|
/* harmony export */ _$: function() { return /* binding */ receives_query; },
|
|
|
/* harmony export */ aC: function() { return /* binding */ getStatistics; },
|
|
|
/* harmony export */ aQ: function() { return /* binding */ purchases_update; },
|
|
|
/* harmony export */ br: function() { return /* binding */ random_number; },
|
|
|
/* harmony export */ c7: function() { return /* binding */ receives_update; },
|
|
|
/* harmony export */ cO: function() { return /* binding */ substance_details_query; },
|
|
|
/* harmony export */ eZ: function() { return /* binding */ bills_info; },
|
|
|
/* harmony export */ en: function() { return /* binding */ substance_categories_update; },
|
|
|
/* harmony export */ i6: function() { return /* binding */ substances_create; },
|
|
|
/* harmony export */ iU: function() { return /* binding */ substance_delete; },
|
|
|
/* harmony export */ jc: function() { return /* binding */ purchases_create; },
|
|
|
/* harmony export */ nX: function() { return /* binding */ receives_return; },
|
|
|
/* 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; },
|
|
|
/* harmony export */ yu: function() { return /* binding */ substance_details_create; },
|
|
|
/* harmony export */ zG: function() { return /* binding */ purchases_info; },
|
|
|
/* harmony export */ zO: function() { return /* binding */ me_receives_query; }
|
|
|
/* harmony export */ });
|
|
|
/* unused harmony exports substances_list, substance_details_scrapped, code_download, code_batch_download, receives_matches */
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/utils/fetch */ 58181);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//物资分类列表
|
|
|
function substance_categories_query(_x) {
|
|
|
return _substance_categories_query.apply(this, arguments);
|
|
|
}
|
|
|
//创建物资分类
|
|
|
function _substance_categories_query() {
|
|
|
_substance_categories_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 _callee(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 _callee$(_context) {
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
case 0:
|
|
|
return _context.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/substance_categories.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 _context.stop();
|
|
|
}
|
|
|
}, _callee);
|
|
|
}));
|
|
|
return _substance_categories_query.apply(this, arguments);
|
|
|
}
|
|
|
function substance_categories_create(_x2) {
|
|
|
return _substance_categories_create.apply(this, arguments);
|
|
|
}
|
|
|
//编辑物资分类
|
|
|
function _substance_categories_create() {
|
|
|
_substance_categories_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 _callee2(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 _callee2$(_context2) {
|
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
|
case 0:
|
|
|
return _context2.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/substance_categories.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 _context2.stop();
|
|
|
}
|
|
|
}, _callee2);
|
|
|
}));
|
|
|
return _substance_categories_create.apply(this, arguments);
|
|
|
}
|
|
|
function substance_categories_update(_x3) {
|
|
|
return _substance_categories_update.apply(this, arguments);
|
|
|
}
|
|
|
//删除物资分类
|
|
|
function _substance_categories_update() {
|
|
|
_substance_categories_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 _callee3(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 _callee3$(_context3) {
|
|
|
while (1) switch (_context3.prev = _context3.next) {
|
|
|
case 0:
|
|
|
return _context3.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/substance_categories/".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 _context3.stop();
|
|
|
}
|
|
|
}, _callee3);
|
|
|
}));
|
|
|
return _substance_categories_update.apply(this, arguments);
|
|
|
}
|
|
|
function substance_categories_delete(_x4) {
|
|
|
return _substance_categories_delete.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
//删除物资
|
|
|
function _substance_categories_delete() {
|
|
|
_substance_categories_delete = _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 _callee4(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 _callee4$(_context4) {
|
|
|
while (1) switch (_context4.prev = _context4.next) {
|
|
|
case 0:
|
|
|
return _context4.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/substance_categories/".concat(data === null || data === void 0 ? void 0 : data.id, ".json"), {
|
|
|
method: 'delete',
|
|
|
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 _context4.stop();
|
|
|
}
|
|
|
}, _callee4);
|
|
|
}));
|
|
|
return _substance_categories_delete.apply(this, arguments);
|
|
|
}
|
|
|
function substance_delete(_x5) {
|
|
|
return _substance_delete.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
//账单列表
|
|
|
function _substance_delete() {
|
|
|
_substance_delete = _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 _callee5(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 _callee5$(_context5) {
|
|
|
while (1) switch (_context5.prev = _context5.next) {
|
|
|
case 0:
|
|
|
return _context5.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/substances/".concat(data === null || data === void 0 ? void 0 : data.id, ".json"), {
|
|
|
method: 'delete',
|
|
|
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 _context5.stop();
|
|
|
}
|
|
|
}, _callee5);
|
|
|
}));
|
|
|
return _substance_delete.apply(this, arguments);
|
|
|
}
|
|
|
function bills_query(_x6) {
|
|
|
return _bills_query.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
// 操作日志
|
|
|
function _bills_query() {
|
|
|
_bills_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 _callee6(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 _callee6$(_context6) {
|
|
|
while (1) switch (_context6.prev = _context6.next) {
|
|
|
case 0:
|
|
|
return _context6.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/bills.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 _context6.stop();
|
|
|
}
|
|
|
}, _callee6);
|
|
|
}));
|
|
|
return _bills_query.apply(this, arguments);
|
|
|
}
|
|
|
function queryLog(_x7) {
|
|
|
return _queryLog.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
// 申请报告
|
|
|
function _queryLog() {
|
|
|
_queryLog = _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 _callee7(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 _callee7$(_context7) {
|
|
|
while (1) switch (_context7.prev = _context7.next) {
|
|
|
case 0:
|
|
|
return _context7.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/operation_logs.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 _context7.stop();
|
|
|
}
|
|
|
}, _callee7);
|
|
|
}));
|
|
|
return _queryLog.apply(this, arguments);
|
|
|
}
|
|
|
function getReceiveReport(_x8) {
|
|
|
return _getReceiveReport.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
//账单详情
|
|
|
function _getReceiveReport() {
|
|
|
_getReceiveReport = _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 _callee8(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 _callee8$(_context8) {
|
|
|
while (1) switch (_context8.prev = _context8.next) {
|
|
|
case 0:
|
|
|
return _context8.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/receives/".concat(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 _context8.stop();
|
|
|
}
|
|
|
}, _callee8);
|
|
|
}));
|
|
|
return _getReceiveReport.apply(this, arguments);
|
|
|
}
|
|
|
function bills_info(_x9) {
|
|
|
return _bills_info.apply(this, arguments);
|
|
|
}
|
|
|
//创建账单
|
|
|
function _bills_info() {
|
|
|
_bills_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 _callee9(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 _callee9$(_context9) {
|
|
|
while (1) switch (_context9.prev = _context9.next) {
|
|
|
case 0:
|
|
|
return _context9.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/bills/".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 _context9.stop();
|
|
|
}
|
|
|
}, _callee9);
|
|
|
}));
|
|
|
return _bills_info.apply(this, arguments);
|
|
|
}
|
|
|
function bills_create(_x10) {
|
|
|
return _bills_create.apply(this, arguments);
|
|
|
}
|
|
|
//编辑账单
|
|
|
function _bills_create() {
|
|
|
_bills_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 _callee10(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 _callee10$(_context10) {
|
|
|
while (1) switch (_context10.prev = _context10.next) {
|
|
|
case 0:
|
|
|
return _context10.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/bills.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 _context10.stop();
|
|
|
}
|
|
|
}, _callee10);
|
|
|
}));
|
|
|
return _bills_create.apply(this, arguments);
|
|
|
}
|
|
|
function bills_update(_x11) {
|
|
|
return _bills_update.apply(this, arguments);
|
|
|
}
|
|
|
//删除账单
|
|
|
function _bills_update() {
|
|
|
_bills_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 _callee11(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 _callee11$(_context11) {
|
|
|
while (1) switch (_context11.prev = _context11.next) {
|
|
|
case 0:
|
|
|
return _context11.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/bills/".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 _context11.stop();
|
|
|
}
|
|
|
}, _callee11);
|
|
|
}));
|
|
|
return _bills_update.apply(this, arguments);
|
|
|
}
|
|
|
function bills_delete(_x12) {
|
|
|
return _bills_delete.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
//物资库首页列表数据
|
|
|
function _bills_delete() {
|
|
|
_bills_delete = _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 _callee12(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 _callee12$(_context12) {
|
|
|
while (1) switch (_context12.prev = _context12.next) {
|
|
|
case 0:
|
|
|
return _context12.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/bills/".concat(data === null || data === void 0 ? void 0 : data.id, ".json"), {
|
|
|
method: 'delete',
|
|
|
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 _context12.stop();
|
|
|
}
|
|
|
}, _callee12);
|
|
|
}));
|
|
|
return _bills_delete.apply(this, arguments);
|
|
|
}
|
|
|
function substances_query(_x13) {
|
|
|
return _substances_query.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
//物资管理列表数据
|
|
|
function _substances_query() {
|
|
|
_substances_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 _callee13(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 _callee13$(_context13) {
|
|
|
while (1) switch (_context13.prev = _context13.next) {
|
|
|
case 0:
|
|
|
return _context13.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/substances.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 _context13.stop();
|
|
|
}
|
|
|
}, _callee13);
|
|
|
}));
|
|
|
return _substances_query.apply(this, arguments);
|
|
|
}
|
|
|
function me_substances_query(_x14) {
|
|
|
return _me_substances_query.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
//导入物资
|
|
|
function _me_substances_query() {
|
|
|
_me_substances_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 _callee14(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 _callee14$(_context14) {
|
|
|
while (1) switch (_context14.prev = _context14.next) {
|
|
|
case 0:
|
|
|
return _context14.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/substances/me_substances.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 _context14.stop();
|
|
|
}
|
|
|
}, _callee14);
|
|
|
}));
|
|
|
return _me_substances_query.apply(this, arguments);
|
|
|
}
|
|
|
function substances_import(_x15) {
|
|
|
return _substances_import.apply(this, arguments);
|
|
|
}
|
|
|
//创建物资
|
|
|
function _substances_import() {
|
|
|
_substances_import = _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 _callee15(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 _callee15$(_context15) {
|
|
|
while (1) switch (_context15.prev = _context15.next) {
|
|
|
case 0:
|
|
|
return _context15.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)('/api/yn_classrooms/substances/import', {
|
|
|
method: 'post',
|
|
|
body: data
|
|
|
}, true));
|
|
|
case 1:
|
|
|
case "end":
|
|
|
return _context15.stop();
|
|
|
}
|
|
|
}, _callee15);
|
|
|
}));
|
|
|
return _substances_import.apply(this, arguments);
|
|
|
}
|
|
|
function substances_create(_x16) {
|
|
|
return _substances_create.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
//编辑物资
|
|
|
function _substances_create() {
|
|
|
_substances_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 _callee16(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 _callee16$(_context16) {
|
|
|
while (1) switch (_context16.prev = _context16.next) {
|
|
|
case 0:
|
|
|
return _context16.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/substances.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 _context16.stop();
|
|
|
}
|
|
|
}, _callee16);
|
|
|
}));
|
|
|
return _substances_create.apply(this, arguments);
|
|
|
}
|
|
|
function substances_update(_x17) {
|
|
|
return _substances_update.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
//物资详情
|
|
|
function _substances_update() {
|
|
|
_substances_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 _callee17(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 _callee17$(_context17) {
|
|
|
while (1) switch (_context17.prev = _context17.next) {
|
|
|
case 0:
|
|
|
return _context17.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/substances/".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 _context17.stop();
|
|
|
}
|
|
|
}, _callee17);
|
|
|
}));
|
|
|
return _substances_update.apply(this, arguments);
|
|
|
}
|
|
|
function substances_info(_x18) {
|
|
|
return _substances_info.apply(this, arguments);
|
|
|
}
|
|
|
//物资细则使用轨迹
|
|
|
function _substances_info() {
|
|
|
_substances_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 _callee18(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 _callee18$(_context18) {
|
|
|
while (1) switch (_context18.prev = _context18.next) {
|
|
|
case 0:
|
|
|
return _context18.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/substances/".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 _context18.stop();
|
|
|
}
|
|
|
}, _callee18);
|
|
|
}));
|
|
|
return _substances_info.apply(this, arguments);
|
|
|
}
|
|
|
function tracks_info(_x19) {
|
|
|
return _tracks_info.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
//物资库首页列表数据
|
|
|
function _tracks_info() {
|
|
|
_tracks_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 _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) {
|
|
|
while (1) switch (_context19.prev = _context19.next) {
|
|
|
case 0:
|
|
|
return _context19.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/substance_details/".concat(params === null || params === void 0 ? void 0 : params.id, "/tracks.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 _context19.stop();
|
|
|
}
|
|
|
}, _callee19);
|
|
|
}));
|
|
|
return _tracks_info.apply(this, arguments);
|
|
|
}
|
|
|
function substances_list(_x20) {
|
|
|
return _substances_list.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
//物资细则列表
|
|
|
function _substances_list() {
|
|
|
_substances_list = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(params) {
|
|
|
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
|
while (1) switch (_context20.prev = _context20.next) {
|
|
|
case 0:
|
|
|
return _context20.abrupt("return", Fetch("/api/yn_classrooms/substances.json", {
|
|
|
method: 'get',
|
|
|
params: _objectSpread({}, params)
|
|
|
}));
|
|
|
case 1:
|
|
|
case "end":
|
|
|
return _context20.stop();
|
|
|
}
|
|
|
}, _callee20);
|
|
|
}));
|
|
|
return _substances_list.apply(this, arguments);
|
|
|
}
|
|
|
function substance_details_query(_x21) {
|
|
|
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 _callee21(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 _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: '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 _context21.stop();
|
|
|
}
|
|
|
}, _callee21);
|
|
|
}));
|
|
|
return _substance_details_query.apply(this, arguments);
|
|
|
}
|
|
|
function new_substance_create_details(_x22) {
|
|
|
return _new_substance_create_details.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
//物资细则创建
|
|
|
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 _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 _context22.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)
|
|
|
}));
|
|
|
case 1:
|
|
|
case "end":
|
|
|
return _context22.stop();
|
|
|
}
|
|
|
}, _callee22);
|
|
|
}));
|
|
|
return _new_substance_create_details.apply(this, arguments);
|
|
|
}
|
|
|
function substance_details_create(_x23) {
|
|
|
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 _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 _context23.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 _context23.stop();
|
|
|
}
|
|
|
}, _callee23);
|
|
|
}));
|
|
|
return _substance_details_create.apply(this, arguments);
|
|
|
}
|
|
|
function substance_details_update(_x24) {
|
|
|
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 _callee24(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 _callee24$(_context24) {
|
|
|
while (1) switch (_context24.prev = _context24.next) {
|
|
|
case 0:
|
|
|
return _context24.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 _context24.stop();
|
|
|
}
|
|
|
}, _callee24);
|
|
|
}));
|
|
|
return _substance_details_update.apply(this, arguments);
|
|
|
}
|
|
|
function substance_details_scrapped(_x25) {
|
|
|
return _substance_details_scrapped.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
//申购列表
|
|
|
function _substance_details_scrapped() {
|
|
|
_substance_details_scrapped = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25(data) {
|
|
|
return _regeneratorRuntime().wrap(function _callee25$(_context25) {
|
|
|
while (1) switch (_context25.prev = _context25.next) {
|
|
|
case 0:
|
|
|
return _context25.abrupt("return", Fetch("/api/yn_classrooms/substance_details/".concat(data === null || data === void 0 ? void 0 : data.id, "/scrapped.json"), {
|
|
|
method: 'post',
|
|
|
body: _objectSpread({}, data)
|
|
|
}));
|
|
|
case 1:
|
|
|
case "end":
|
|
|
return _context25.stop();
|
|
|
}
|
|
|
}, _callee25);
|
|
|
}));
|
|
|
return _substance_details_scrapped.apply(this, arguments);
|
|
|
}
|
|
|
function purchases_query(_x26) {
|
|
|
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 _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) {
|
|
|
case 0:
|
|
|
return _context26.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 _context26.stop();
|
|
|
}
|
|
|
}, _callee26);
|
|
|
}));
|
|
|
return _purchases_query.apply(this, arguments);
|
|
|
}
|
|
|
function my_purchases_query(_x27) {
|
|
|
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 _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 _context27.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 _context27.stop();
|
|
|
}
|
|
|
}, _callee27);
|
|
|
}));
|
|
|
return _my_purchases_query.apply(this, arguments);
|
|
|
}
|
|
|
function purchases_review(_x28) {
|
|
|
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 _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 _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, "/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 _context28.stop();
|
|
|
}
|
|
|
}, _callee28);
|
|
|
}));
|
|
|
return _purchases_review.apply(this, arguments);
|
|
|
}
|
|
|
function purchases_canceled(_x29) {
|
|
|
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 _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) {
|
|
|
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, "/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 _context29.stop();
|
|
|
}
|
|
|
}, _callee29);
|
|
|
}));
|
|
|
return _purchases_canceled.apply(this, arguments);
|
|
|
}
|
|
|
function purchases_create(_x30) {
|
|
|
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 _callee30(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 _callee30$(_context30) {
|
|
|
while (1) switch (_context30.prev = _context30.next) {
|
|
|
case 0:
|
|
|
return _context30.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 _context30.stop();
|
|
|
}
|
|
|
}, _callee30);
|
|
|
}));
|
|
|
return _purchases_create.apply(this, arguments);
|
|
|
}
|
|
|
function purchases_update(_x31) {
|
|
|
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 _callee31(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 _callee31$(_context31) {
|
|
|
while (1) switch (_context31.prev = _context31.next) {
|
|
|
case 0:
|
|
|
return _context31.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 _context31.stop();
|
|
|
}
|
|
|
}, _callee31);
|
|
|
}));
|
|
|
return _purchases_update.apply(this, arguments);
|
|
|
}
|
|
|
function purchases_info(_x32) {
|
|
|
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 _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) {
|
|
|
case 0:
|
|
|
return _context32.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 _context32.stop();
|
|
|
}
|
|
|
}, _callee32);
|
|
|
}));
|
|
|
return _purchases_info.apply(this, arguments);
|
|
|
}
|
|
|
function code_download(_x33) {
|
|
|
return _code_download.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
//批量下载条形码
|
|
|
function _code_download() {
|
|
|
_code_download = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee33(params) {
|
|
|
return _regeneratorRuntime().wrap(function _callee33$(_context33) {
|
|
|
while (1) switch (_context33.prev = _context33.next) {
|
|
|
case 0:
|
|
|
return _context33.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 _context33.stop();
|
|
|
}
|
|
|
}, _callee33);
|
|
|
}));
|
|
|
return _code_download.apply(this, arguments);
|
|
|
}
|
|
|
function code_batch_download(_x34) {
|
|
|
return _code_batch_download.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
//我的领用申请
|
|
|
function _code_batch_download() {
|
|
|
_code_batch_download = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee34(params) {
|
|
|
return _regeneratorRuntime().wrap(function _callee34$(_context34) {
|
|
|
while (1) switch (_context34.prev = _context34.next) {
|
|
|
case 0:
|
|
|
return _context34.abrupt("return", Fetch("/api/yn_classrooms/substance_details/batch_download.json", {
|
|
|
method: 'get',
|
|
|
params: _objectSpread({}, params)
|
|
|
}));
|
|
|
case 1:
|
|
|
case "end":
|
|
|
return _context34.stop();
|
|
|
}
|
|
|
}, _callee34);
|
|
|
}));
|
|
|
return _code_batch_download.apply(this, arguments);
|
|
|
}
|
|
|
function me_receives_query(_x35) {
|
|
|
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 _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 _context35.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 _context35.stop();
|
|
|
}
|
|
|
}, _callee35);
|
|
|
}));
|
|
|
return _me_receives_query.apply(this, arguments);
|
|
|
}
|
|
|
function receives_query(_x36) {
|
|
|
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 _callee36(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 _callee36$(_context36) {
|
|
|
while (1) switch (_context36.prev = _context36.next) {
|
|
|
case 0:
|
|
|
return _context36.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 _context36.stop();
|
|
|
}
|
|
|
}, _callee36);
|
|
|
}));
|
|
|
return _receives_query.apply(this, arguments);
|
|
|
}
|
|
|
function receives_cancel(_x37) {
|
|
|
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 _callee37(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 _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/".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 _context37.stop();
|
|
|
}
|
|
|
}, _callee37);
|
|
|
}));
|
|
|
return _receives_cancel.apply(this, arguments);
|
|
|
}
|
|
|
function receives_create(_x38) {
|
|
|
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 _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 _context38.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 _context38.stop();
|
|
|
}
|
|
|
}, _callee38);
|
|
|
}));
|
|
|
return _receives_create.apply(this, arguments);
|
|
|
}
|
|
|
function scene_receives_create(_x39) {
|
|
|
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 _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 _context39.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 _context39.stop();
|
|
|
}
|
|
|
}, _callee39);
|
|
|
}));
|
|
|
return _scene_receives_create.apply(this, arguments);
|
|
|
}
|
|
|
function receives_review(_x40) {
|
|
|
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 _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) {
|
|
|
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, "/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 _context40.stop();
|
|
|
}
|
|
|
}, _callee40);
|
|
|
}));
|
|
|
return _receives_review.apply(this, arguments);
|
|
|
}
|
|
|
function submit_substance_details(_x41) {
|
|
|
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 _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) {
|
|
|
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, "/submit_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()({
|
|
|
substance_detail_ids: data === null || data === void 0 ? void 0 : data.substance_detail_ids
|
|
|
}, data)
|
|
|
}));
|
|
|
case 1:
|
|
|
case "end":
|
|
|
return _context41.stop();
|
|
|
}
|
|
|
}, _callee41);
|
|
|
}));
|
|
|
return _submit_substance_details.apply(this, arguments);
|
|
|
}
|
|
|
function receives_matches(_x42) {
|
|
|
return _receives_matches.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
//领用详情
|
|
|
function _receives_matches() {
|
|
|
_receives_matches = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee42(data) {
|
|
|
return _regeneratorRuntime().wrap(function _callee42$(_context42) {
|
|
|
while (1) switch (_context42.prev = _context42.next) {
|
|
|
case 0:
|
|
|
return _context42.abrupt("return", Fetch("/api/yn_classrooms/receives/matches.json", {
|
|
|
method: 'post',
|
|
|
body: _objectSpread({}, data)
|
|
|
}));
|
|
|
case 1:
|
|
|
case "end":
|
|
|
return _context42.stop();
|
|
|
}
|
|
|
}, _callee42);
|
|
|
}));
|
|
|
return _receives_matches.apply(this, arguments);
|
|
|
}
|
|
|
function receives_info(_x43) {
|
|
|
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 _callee43(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 _callee43$(_context43) {
|
|
|
while (1) switch (_context43.prev = _context43.next) {
|
|
|
case 0:
|
|
|
return _context43.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 _context43.stop();
|
|
|
}
|
|
|
}, _callee43);
|
|
|
}));
|
|
|
return _receives_info.apply(this, arguments);
|
|
|
}
|
|
|
function receives_return(_x44) {
|
|
|
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 _callee44(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 _callee44$(_context44) {
|
|
|
while (1) switch (_context44.prev = _context44.next) {
|
|
|
case 0:
|
|
|
return _context44.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 _context44.stop();
|
|
|
}
|
|
|
}, _callee44);
|
|
|
}));
|
|
|
return _receives_return.apply(this, arguments);
|
|
|
}
|
|
|
function receives_update(_x45) {
|
|
|
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 _callee45(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 _callee45$(_context45) {
|
|
|
while (1) switch (_context45.prev = _context45.next) {
|
|
|
case 0:
|
|
|
return _context45.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 _context45.stop();
|
|
|
}
|
|
|
}, _callee45);
|
|
|
}));
|
|
|
return _receives_update.apply(this, arguments);
|
|
|
}
|
|
|
function random_number(_x46) {
|
|
|
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 _callee46(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 _callee46$(_context46) {
|
|
|
while (1) switch (_context46.prev = _context46.next) {
|
|
|
case 0:
|
|
|
return _context46.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 _context46.stop();
|
|
|
}
|
|
|
}, _callee46);
|
|
|
}));
|
|
|
return _random_number.apply(this, arguments);
|
|
|
}
|
|
|
function getStatistics() {
|
|
|
return _getStatistics.apply(this, arguments);
|
|
|
}
|
|
|
function _getStatistics() {
|
|
|
_getStatistics = _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 _callee47() {
|
|
|
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 _callee47$(_context47) {
|
|
|
while (1) switch (_context47.prev = _context47.next) {
|
|
|
case 0:
|
|
|
return _context47.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/receives/statistics.json", {
|
|
|
method: 'post'
|
|
|
}));
|
|
|
case 1:
|
|
|
case "end":
|
|
|
return _context47.stop();
|
|
|
}
|
|
|
}, _callee47);
|
|
|
}));
|
|
|
return _getStatistics.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 58618:
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./src/utils/hooks/useCustomRequest.ts ***!
|
|
|
\*********************************************/
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
|
/* harmony export */ U: function() { return /* binding */ useCustomRequest; }
|
|
|
/* harmony export */ });
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js */ 79800);
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//常见的请求模式,包含loading和改变params。
|
|
|
|
|
|
function useCustomRequest(request, baseParams) {
|
|
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(baseParams),
|
|
|
_useState2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
|
|
|
params = _useState2[0],
|
|
|
setParams = _useState2[1];
|
|
|
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(false),
|
|
|
_useState4 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3, 2),
|
|
|
loading = _useState4[0],
|
|
|
setLoading = _useState4[1];
|
|
|
var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(),
|
|
|
_useState6 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState5, 2),
|
|
|
data = _useState6[0],
|
|
|
setData = _useState6[1];
|
|
|
var getData = /*#__PURE__*/function () {
|
|
|
var _ref = _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 _callee(newParams) {
|
|
|
var reset,
|
|
|
mergedParams,
|
|
|
res,
|
|
|
_args = arguments;
|
|
|
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 _callee$(_context) {
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
case 0:
|
|
|
reset = _args.length > 1 && _args[1] !== undefined ? _args[1] : false;
|
|
|
mergedParams = reset ? baseParams : _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params), newParams);
|
|
|
setLoading(true);
|
|
|
setParams(mergedParams);
|
|
|
_context.next = 6;
|
|
|
return request(mergedParams);
|
|
|
case 6:
|
|
|
res = _context.sent;
|
|
|
setLoading(false);
|
|
|
setData(res);
|
|
|
return _context.abrupt("return", res);
|
|
|
case 10:
|
|
|
case "end":
|
|
|
return _context.stop();
|
|
|
}
|
|
|
}, _callee);
|
|
|
}));
|
|
|
return function getData(_x) {
|
|
|
return _ref.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
return [params, loading, getData, data];
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 60028:
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/_antd@5.9.0@antd/es/upload/index.js ***!
|
|
|
\**********************************************************/
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
/* harmony import */ var _Dragger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Dragger */ 71409);
|
|
|
/* harmony import */ var _Upload__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Upload */ 37714);
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
|
|
|
const Upload = _Upload__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z;
|
|
|
Upload.Dragger = _Dragger__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
|
|
|
Upload.LIST_IGNORE = _Upload__WEBPACK_IMPORTED_MODULE_0__/* .LIST_IGNORE */ .E;
|
|
|
/* harmony default export */ __webpack_exports__.Z = (Upload);
|
|
|
|
|
|
/***/ })
|
|
|
|
|
|
}]); |