parent
56d4235202
commit
0e6d49d00c
@ -0,0 +1,214 @@
|
||||
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.1.2@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.1.2@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Materials/ItemAssets/AddProcure/index.less?modules ***!
|
||||
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.wrap___uDEdN {
|
||||
width: 1200px;
|
||||
margin: 20px auto 40px auto;
|
||||
}
|
||||
.wrap___uDEdN .back_style___Wh6NB {
|
||||
color: #999;
|
||||
margin: 10px 0 15px 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
.wrap___uDEdN .back_style___Wh6NB:hover {
|
||||
color: #165DFF;
|
||||
}
|
||||
.wrap___uDEdN .header___EYIbO {
|
||||
background: #FFFFFF;
|
||||
border-radius: 4px;
|
||||
padding: 30px 30px 30px 0;
|
||||
}
|
||||
.wrap___uDEdN .header___EYIbO .header_form___axdTB .guize_select___zWIti {
|
||||
width: 68px;
|
||||
height: 32px;
|
||||
background: linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%), #F6F7F9;
|
||||
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 2px;
|
||||
border: 1px solid #BACFFE;
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
color: #3061D0;
|
||||
line-height: 30px;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
margin-top: 4px;
|
||||
}
|
||||
.wrap___uDEdN .header___EYIbO .header_form___axdTB .guize_update___FiKWW {
|
||||
width: 48px;
|
||||
height: 22px;
|
||||
background: #3061D0;
|
||||
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 2px;
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 12px;
|
||||
color: #FFFFFF;
|
||||
line-height: 22px;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
margin-top: 9px;
|
||||
}
|
||||
.wrap___uDEdN .header___EYIbO .header_form___axdTB .shangchuan_button___z7F26 {
|
||||
width: 146px;
|
||||
height: 32px;
|
||||
background: linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%), #F6F7F9;
|
||||
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 2px;
|
||||
border: 1px solid #BACFFE;
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
color: #3061D0;
|
||||
line-height: 32px;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
margin-top: 4px;
|
||||
}
|
||||
.wrap___uDEdN .header___EYIbO .header_form___axdTB .shangchuan_img___mHcZH {
|
||||
width: 300px;
|
||||
height: 156px;
|
||||
background: #F5F5F5;
|
||||
border-radius: 1px;
|
||||
position: relative;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.wrap___uDEdN .header___EYIbO .header_form___axdTB .shangchuan_close___sWJYn {
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
right: 10px;
|
||||
color: #FF5555;
|
||||
cursor: pointer;
|
||||
}
|
||||
.wrap___uDEdN .header___EYIbO .header_form___axdTB [class~='ant-form-item'] [class~='ant-form-item-label'] {
|
||||
text-align: right !important;
|
||||
width: 140px !important;
|
||||
}
|
||||
.wrap___uDEdN .header___EYIbO .header_form___axdTB [class~='ant-form-item'] [class~='ant-form-item-label'] label {
|
||||
color: #666 !important;
|
||||
display: block !important;
|
||||
line-height: 40px !important;
|
||||
padding-right: 5px !important;
|
||||
}
|
||||
.wrap___uDEdN .header___EYIbO .header_form___axdTB [class~='ant-upload'] {
|
||||
margin-top: 5px !important;
|
||||
}
|
||||
.wrap___uDEdN .header___EYIbO .close_button___KyOIv {
|
||||
width: 64px;
|
||||
height: 32px;
|
||||
background: #F8F9FC;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #C3CFE0;
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
color: #464F66;
|
||||
line-height: 32px;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
margin-left: auto;
|
||||
}
|
||||
.wrap___uDEdN .header___EYIbO .submit_button___ISIvd {
|
||||
width: 64px;
|
||||
height: 32px;
|
||||
background: #3061D0;
|
||||
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 2px;
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
color: #FFFFFF;
|
||||
line-height: 32px;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
margin-left: 20px;
|
||||
}
|
||||
.add_button___xX4Rr {
|
||||
width: 116px;
|
||||
height: 32px;
|
||||
background: #3061D0;
|
||||
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 2px;
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
color: #FFFFFF;
|
||||
line-height: 32px;
|
||||
font-style: normal;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/_@umijs_bundler-webpack@4.1.2@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/_@umijs_bundler-webpack@4.1.2@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./src/components/MultiUpload/index.less ***!
|
||||
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.upload_button {
|
||||
width: 108px;
|
||||
height: 32px;
|
||||
background: #F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
|
||||
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 2px;
|
||||
border: 1px solid #BACFFE;
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #3061D0;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
align-items: center;
|
||||
align-content: center;
|
||||
}
|
||||
.upload_button .aBtn_img {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
margin-top: -3px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.upload_button:hover {
|
||||
width: 108px;
|
||||
height: 32px;
|
||||
background: #F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
|
||||
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 2px;
|
||||
border: 1px solid #BACFFE;
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #3061D0;
|
||||
}
|
||||
.upload_button:active {
|
||||
width: 108px;
|
||||
height: 32px;
|
||||
background: #F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
|
||||
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 2px;
|
||||
border: 1px solid #BACFFE;
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #3061D0;
|
||||
}
|
||||
.upload_text {
|
||||
width: 129px;
|
||||
height: 20px;
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #5F6367;
|
||||
line-height: 20px;
|
||||
margin-left: 16px;
|
||||
}
|
||||
|
||||
@ -0,0 +1,590 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[19116],{
|
||||
|
||||
/***/ 84263:
|
||||
/*!*******************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.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.24.0@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(36384);
|
||||
// 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.3.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(15436);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.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
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_InboxOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(InboxOutlined_InboxOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 35892:
|
||||
/*!*************************************************************************!*\
|
||||
!*** ./src/pages/Materials/ItemAssets/AddProcure/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 */ AddProcure; }
|
||||
});
|
||||
|
||||
// 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/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/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__(44742);
|
||||
// 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/input/index.js + 5 modules
|
||||
var input = __webpack_require__(20008);
|
||||
// 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 + 66 modules
|
||||
var date_picker = __webpack_require__(72086);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
|
||||
var table = __webpack_require__(86383);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
|
||||
var modal = __webpack_require__(43418);
|
||||
;// CONCATENATED MODULE: ./src/pages/Materials/ItemAssets/AddProcure/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var AddProcuremodules = ({"wrap":"wrap___uDEdN","back_style":"back_style___Wh6NB","header":"header___EYIbO","header_form":"header_form___axdTB","guize_select":"guize_select___zWIti","guize_update":"guize_update___FiKWW","shangchuan_button":"shangchuan_button___z7F26","shangchuan_img":"shangchuan_img___mHcZH","shangchuan_close":"shangchuan_close___sWJYn","close_button":"close_button___KyOIv","submit_button":"submit_button___ISIvd","add_button":"add_button___xX4Rr"});
|
||||
// EXTERNAL MODULE: ./src/service/laboratory.ts
|
||||
var laboratory = __webpack_require__(66754);
|
||||
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 2 modules
|
||||
var MultiUpload = __webpack_require__(41883);
|
||||
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 10 modules
|
||||
var markdown_editor = __webpack_require__(74385);
|
||||
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
||||
var fetch = __webpack_require__(14735);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/pages/Materials/ItemAssets/AddProcure/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var Navigation = function Navigation(_ref) {
|
||||
var loading = _ref.loading,
|
||||
user = _ref.user,
|
||||
dispatch = _ref.dispatch,
|
||||
account = _ref.account;
|
||||
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),
|
||||
containerList = _useState6[0],
|
||||
setContainerList = _useState6[1];
|
||||
//实验室房间
|
||||
var _useState7 = (0,_react_17_0_2_react.useState)([]),
|
||||
_useState8 = slicedToArray_default()(_useState7, 2),
|
||||
laboratoryRooms = _useState8[0],
|
||||
setLaboratoryRooms = _useState8[1];
|
||||
var addColumns = [{
|
||||
title: '物资编码',
|
||||
dataIndex: 'title',
|
||||
ellipsis: true
|
||||
}, {
|
||||
title: '物资名称',
|
||||
dataIndex: 'user_name1',
|
||||
ellipsis: true
|
||||
}, {
|
||||
title: '规格型号',
|
||||
dataIndex: 'user_name2',
|
||||
ellipsis: true
|
||||
}, {
|
||||
title: '存放实验室房间',
|
||||
dataIndex: 'user_name3',
|
||||
ellipsis: true
|
||||
}, {
|
||||
title: '单位',
|
||||
dataIndex: 'user_name4',
|
||||
ellipsis: true
|
||||
}, {
|
||||
title: '可申请数量',
|
||||
dataIndex: 'user_name5',
|
||||
ellipsis: true
|
||||
}, {
|
||||
title: '需申请数量',
|
||||
dataIndex: 'user_name6',
|
||||
ellipsis: true,
|
||||
render: function render(text, record) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {});
|
||||
}
|
||||
}, {
|
||||
title: '操作',
|
||||
render: function render(text, record) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
color: '#165DFF'
|
||||
},
|
||||
children: "\u5220\u9664"
|
||||
});
|
||||
}
|
||||
}];
|
||||
var _useState9 = (0,_react_17_0_2_react.useState)([{}]),
|
||||
_useState10 = slicedToArray_default()(_useState9, 2),
|
||||
addData = _useState10[0],
|
||||
setAddData = _useState10[1];
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
//我的实验室下拉
|
||||
(0,laboratory/* classroom_query */.GJ)({
|
||||
page: 1,
|
||||
limit: 10000,
|
||||
keyword: ''
|
||||
}).then(function (res) {
|
||||
var _res$data;
|
||||
setLaboratoryLists(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list);
|
||||
});
|
||||
dispatch({
|
||||
type: 'globalSetting/headerFooterToggle',
|
||||
payload: false
|
||||
});
|
||||
return function () {
|
||||
dispatch({
|
||||
type: 'globalSetting/headerFooterToggle',
|
||||
payload: true
|
||||
});
|
||||
};
|
||||
}, []);
|
||||
var rowSelection = {
|
||||
onChange: function onChange(selectedRowKeys, selectedRows) {
|
||||
console.log(selectedRows);
|
||||
}
|
||||
};
|
||||
|
||||
//获取关联教学
|
||||
var getContainerList = function getContainerList(e) {
|
||||
var _user$userInfo;
|
||||
var obj = e == 'Subject' ? 'subjects' : e == 'Shixun' ? 'shixuns' : 'courses';
|
||||
(0,fetch/* default */.ZP)("/api/users/".concat(user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.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]);
|
||||
});
|
||||
};
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: AddProcuremodules.wrap,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: AddProcuremodules.back_style,
|
||||
onClick: function onClick() {
|
||||
_umi_production_exports.history.push('/materials/itemAssets');
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-fanhui2 font12 mr5"
|
||||
}), "\u8FD4\u56DE"]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: AddProcuremodules.header,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
||||
form: myForm,
|
||||
className: AddProcuremodules.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: "area1",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请输入申请原因'
|
||||
}],
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
||||
size: "large",
|
||||
showCount: true,
|
||||
maxLength: 30
|
||||
})
|
||||
}), /*#__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\u6559\u5B66",
|
||||
name: "container_type",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '必填项'
|
||||
}],
|
||||
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",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请选择关联教学'
|
||||
}],
|
||||
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: "sys",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '必填项'
|
||||
}],
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
||||
size: "large",
|
||||
style: {
|
||||
width: '700px'
|
||||
},
|
||||
onChange: function onChange(e) {
|
||||
myForm.setFieldValue('sysfj', '');
|
||||
//实验室房间
|
||||
(0,laboratory/* classroom_rooms_query */.jd)({
|
||||
page: 1,
|
||||
limit: 10000,
|
||||
keyword: '',
|
||||
classroom_id: e
|
||||
}).then(function (res) {
|
||||
var _res$data2;
|
||||
setLaboratoryRooms([{
|
||||
id: '',
|
||||
title: '全部'
|
||||
}].concat(toConsumableArray_default()(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.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: "sysfj",
|
||||
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\u5730\u70B9",
|
||||
name: "start_time",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请选择开始时间'
|
||||
}],
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], {
|
||||
size: "large",
|
||||
style: {
|
||||
width: '487px'
|
||||
}
|
||||
})
|
||||
}), /*#__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"], {
|
||||
size: "large",
|
||||
style: {
|
||||
width: '487px'
|
||||
}
|
||||
})
|
||||
})]
|
||||
}), /*#__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",
|
||||
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: "work_num1",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请输入手机号'
|
||||
}, {
|
||||
required: true,
|
||||
pattern: /^(0|[1-9]\d*)$/,
|
||||
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: "\u90AE\u7BB1",
|
||||
name: "area22",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请输入邮箱'
|
||||
}, {
|
||||
required: true,
|
||||
pattern: /^[1-9]\d*(\.\d+)?$/,
|
||||
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: "\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",
|
||||
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: "reservation_rule_id",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请选择规则设置'
|
||||
}],
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: AddProcuremodules.guize_select,
|
||||
onClick: function onClick() {
|
||||
setOpenRuleModal(true);
|
||||
},
|
||||
children: "\u6DFB\u52A0"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
||||
scroll: {
|
||||
y: 300
|
||||
},
|
||||
pagination: false,
|
||||
style: {
|
||||
marginTop: '10px'
|
||||
},
|
||||
dataSource: addData,
|
||||
columns: addColumns
|
||||
})]
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
display: 'flex',
|
||||
marginTop: '40px'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: AddProcuremodules.close_button,
|
||||
onClick: function onClick() {
|
||||
_umi_production_exports.history.push("/materials/itemAssets");
|
||||
},
|
||||
children: "\u53D6\u6D88"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: AddProcuremodules.submit_button,
|
||||
onClick: function onClick() {
|
||||
console.log(addData);
|
||||
},
|
||||
children: "\u63D0\u4EA4"
|
||||
})]
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
||||
centered: true,
|
||||
keyboard: false,
|
||||
destroyOnClose: true,
|
||||
className: AddProcuremodules.my_modal,
|
||||
open: openRuleModal,
|
||||
title: "\u9009\u62E9\u89C4\u5219",
|
||||
width: "600px",
|
||||
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
||||
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
setOpenRuleModal(false);
|
||||
case 1:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
})),
|
||||
onCancel: function onCancel() {
|
||||
setOpenRuleModal(false);
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
||||
rowSelection: objectSpread2_default()({
|
||||
type: 'checkbox'
|
||||
}, rowSelection),
|
||||
scroll: {
|
||||
y: 300
|
||||
},
|
||||
pagination: false,
|
||||
dataSource: [{}],
|
||||
columns: [{
|
||||
title: '规则名称',
|
||||
dataIndex: 'title',
|
||||
ellipsis: true
|
||||
}, {
|
||||
title: '创建人',
|
||||
dataIndex: 'user_name',
|
||||
ellipsis: true
|
||||
}]
|
||||
})
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var AddProcure = ((0,_umi_production_exports.connect)(function (_ref3) {
|
||||
var loading = _ref3.loading,
|
||||
user = _ref3.user,
|
||||
engineeringNavigtion = _ref3.engineeringNavigtion,
|
||||
dispatch = _ref3.dispatch,
|
||||
account = _ref3.account;
|
||||
return objectSpread2_default()(objectSpread2_default()({
|
||||
loading: loading,
|
||||
user: user
|
||||
}, engineeringNavigtion), {}, {
|
||||
dispatch: dispatch,
|
||||
account: account
|
||||
});
|
||||
})(Navigation));
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue