You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Materials__MyProcure__in...

857 lines
34 KiB

"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[25807],{
/***/ 1866:
/*!*************************************************************!*\
!*** ./src/pages/Materials/MyProcure/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 */ MyProcure; }
});
// 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/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/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/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__(80608);
;// CONCATENATED MODULE: ./src/pages/Materials/MyProcure/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var MyProcuremodules = ({"header_div":"header_div___Wlpv4","header_title":"header_title___Ke5eh","search":"search___TCi9C","searchIcon":"searchIcon___aj2zp","clear_Data":"clear_Data___alPld","batch":"batch___AYgkR","btns":"btns___Hq8qk","btn":"btn___fFGnN"});
// 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/modal/index.js + 16 modules
var modal = __webpack_require__(43418);
// 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/form/index.js + 19 modules
var es_form = __webpack_require__(78241);
// 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/input/index.js + 3 modules
var input = __webpack_require__(92832);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
var table = __webpack_require__(51945);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
var pagination = __webpack_require__(86859);
// EXTERNAL MODULE: ./src/service/laboratory.ts
var service_laboratory = __webpack_require__(70974);
// EXTERNAL MODULE: ./src/service/materials.ts
var materials = __webpack_require__(32013);
// 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/pages/Materials/Procure/ViewModal/index.tsx + 1 modules
var ViewModal = __webpack_require__(66544);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Materials/MyProcure/index.tsx
var statusType = {
pending: '待审核',
approved: '已同意',
rejected: '已驳回',
canceled: '已取消'
};
var Navigation = function Navigation(_ref) {
var loading = _ref.loading,
dispatch = _ref.dispatch;
var _useState = (0,_react_17_0_2_react.useState)(),
_useState2 = slicedToArray_default()(_useState, 2),
keyword = _useState2[0],
setkeyword = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(false),
_useState4 = slicedToArray_default()(_useState3, 2),
openViewModal = _useState4[0],
setOpenViewModal = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(false),
_useState6 = slicedToArray_default()(_useState5, 2),
openRejectModal = _useState6[0],
setOpenRejectModal = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)({}),
_useState8 = slicedToArray_default()(_useState7, 2),
viewData = _useState8[0],
setViewData = _useState8[1];
//预约数据
var _useState9 = (0,_react_17_0_2_react.useState)([]),
_useState10 = slicedToArray_default()(_useState9, 2),
tableData = _useState10[0],
setTableData = _useState10[1];
//分页
var _useState11 = (0,_react_17_0_2_react.useState)(0),
_useState12 = slicedToArray_default()(_useState11, 2),
total = _useState12[0],
setTotal = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)(1),
_useState14 = slicedToArray_default()(_useState13, 2),
page = _useState14[0],
setPage = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)(10),
_useState16 = slicedToArray_default()(_useState15, 2),
limit = _useState16[0],
setLimit = _useState16[1];
//实验室
var _useState17 = (0,_react_17_0_2_react.useState)([]),
_useState18 = slicedToArray_default()(_useState17, 2),
laboratoryLists = _useState18[0],
setLaboratoryLists = _useState18[1];
var _useState19 = (0,_react_17_0_2_react.useState)(''),
_useState20 = slicedToArray_default()(_useState19, 2),
laboratory = _useState20[0],
setLaboratory = _useState20[1];
var _useState21 = (0,_react_17_0_2_react.useState)(''),
_useState22 = slicedToArray_default()(_useState21, 2),
status = _useState22[0],
setStatus = _useState22[1];
var columns = [{
title: '申购编号',
dataIndex: 'number',
ellipsis: true
}, {
title: '申购名称',
dataIndex: 'reason',
ellipsis: true,
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: 'status',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: statusType[text],
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: statusType[text]
})
});
}
}, {
title: '申请实验室',
dataIndex: 'classroom_title',
ellipsis: true,
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: '申购物资',
ellipsis: true,
render: function render(text, record) {
var _record$substances, _record$substances2;
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: record === null || record === void 0 || (_record$substances = record.substances) === null || _record$substances === void 0 ? void 0 : _record$substances.map(function (item, index) {
return item === null || item === void 0 ? void 0 : item.title;
}).join('、'),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: record === null || record === void 0 || (_record$substances2 = record.substances) === null || _record$substances2 === void 0 ? void 0 : _record$substances2.map(function (item, index) {
return item === null || item === void 0 ? void 0 : item.title;
}).join('、')
})
});
}
}, {
title: '申请时间',
dataIndex: 'apply_time',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text ? dayjs_min_default()(text).format('YYYY-MM-DD HH:mm') : '--',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text ? dayjs_min_default()(text).format('YYYY-MM-DD HH:mm') : '--'
})
});
}
}, {
title: '操作',
ellipsis: true,
width: '150',
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#165DFF",
cursor: "pointer"
},
onClick: function onClick() {
setViewData(record);
setOpenViewModal(true);
},
children: "\u67E5\u770B"
}), ((record === null || record === void 0 ? void 0 : record.status) == 'pending' || (record === null || record === void 0 ? void 0 : record.status) == 'rejected') && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#165DFF",
cursor: "pointer",
marginLeft: 10
},
onClick: function onClick() {
_umi_production_exports.history.push("/materials/itemAssets/AddProcure/".concat(record === null || record === void 0 ? void 0 : record.id, "?backUrl=/materials/myProcure"));
},
children: "\u4FEE\u6539"
}), (record === null || record === void 0 ? void 0 : record.status) == 'pending' && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#165DFF",
cursor: "pointer",
marginLeft: 10
},
onClick: function onClick() {
modal/* default */.Z.confirm({
centered: true,
okText: '确定',
cancelText: '取消',
title: "提示",
content: "\u8BF7\u786E\u8BA4\u662F\u5426\u53D6\u6D88\u8BE5\u91C7\u8D2D\u7533\u8BF7",
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
(0,materials/* purchases_canceled */.pd)({
id: record === null || record === void 0 ? void 0 : record.id
}).then(function (res) {
if (res.status === 0) {
message/* default */.ZP.success('取消成功');
getData(true);
}
});
case 1:
case "end":
return _context.stop();
}
}, _callee);
}));
function onOk() {
return _onOk.apply(this, arguments);
}
return onOk;
}()
});
},
children: "\u53D6\u6D88"
})]
});
}
}];
(0,_react_17_0_2_react.useEffect)(function () {
//实验室列表
(0,service_laboratory/* user_substance_classrooms */.y8)({
type: 2,
kclass: 'Purchase'
}).then(function (res) {
var _res$data;
setLaboratoryLists([{
id: '',
title: '全部'
}].concat(toConsumableArray_default()(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list)));
});
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
getData(false);
}, [page]);
(0,_react_17_0_2_react.useEffect)(function () {
getData(true);
}, [keyword, status, laboratory, limit]);
var getData = function getData(flag) {
if (flag) {
setPage(1);
}
(0,materials/* my_purchases_query */.FE)({
page: page,
limit: limit,
keyword: keyword,
classroom_id: laboratory,
status: status
}).then(function (res) {
var _res$data2, _res$data3;
setTotal(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.count);
setTableData(res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.list);
});
};
var onShowSizeChange = function onShowSizeChange(page, size) {
setPage(page);
setLimit(size);
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: MyProcuremodules.header_div,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: MyProcuremodules.header_title,
children: "\u6211\u7684\u91C7\u8D2D\u7533\u8BF7"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u7533\u8BF7\u5B9E\u9A8C\u5BA4",
style: {
marginLeft: 'auto'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
style: {
width: 140
},
defaultValue: laboratory,
value: laboratory,
onChange: function onChange(e) {
setLaboratory(e);
},
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 === 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: "\u72B6\u6001",
style: {
marginLeft: '20px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"], {
style: {
width: 120
},
defaultValue: status,
value: status,
onChange: function onChange(e) {
setStatus(e);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: "",
children: "\u5168\u90E8"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: "1",
children: "\u5F85\u5BA1\u6838"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: "2",
children: "\u5DF2\u540C\u610F"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: "3",
children: "\u5DF2\u9A73\u56DE"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: "4",
children: "\u5DF2\u53D6\u6D88"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Search, {
placeholder: "\u8BF7\u8F93\u5165\u7533\u8D2D\u7F16\u53F7\u641C\u7D22",
size: "large",
className: MyProcuremodules.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(MyProcuremodules.searchIcon),
onClick: function onClick() {
setkeyword(keyword);
getData(true);
}
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: MyProcuremodules.search_params
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
pagination: false,
dataSource: tableData,
columns: columns
}), /*#__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-light-primary",
children: total
}), "\u6761\u6570\u636E"]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
showSizeChanger: true,
showQuickJumper: true,
onChange: onShowSizeChange,
defaultCurrent: 1,
pageSizeOptions: ['10', '20', '50', '100'],
current: page || 1,
pageSize: limit || 10,
defaultPageSize: 10,
total: total
})]
}) : ''
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ViewModal/* default */.Z, {
openViewModal: openViewModal,
showButton: true,
viewInfo: viewData,
onCancel: function onCancel() {
return setOpenViewModal(false);
},
onReject: function onReject() {
setOpenViewModal(false);
setOpenRejectModal(true);
}
})]
});
};
/* harmony default export */ var MyProcure = ((0,_umi_production_exports.connect)(function (_ref2) {
var loading = _ref2.loading,
engineeringNavigtion = _ref2.engineeringNavigtion,
dispatch = _ref2.dispatch;
return objectSpread2_default()(objectSpread2_default()({
loading: loading
}, engineeringNavigtion), {}, {
dispatch: dispatch
});
})(Navigation));
/***/ }),
/***/ 66544:
/*!*********************************************************************!*\
!*** ./src/pages/Materials/Procure/ViewModal/index.tsx + 1 modules ***!
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ Procure_ViewModal; }
});
// 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);
;// CONCATENATED MODULE: ./src/pages/Materials/Procure/ViewModal/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var ViewModalmodules = ({"header":"header___U15p7","header_params":"header_params___ikSYg","header_title":"header_title___rHPD3","file_list":"file_list___AhrUn","file_list_title":"file_list_title___hV7tF","file_list_size":"file_list_size___uK7bz","search_params":"search_params___EUPnq","search":"search___aOFb1","searchIcon":"searchIcon___wLu0m","header_button":"header_button___RoTre","header_content":"header_content____LPJe","header_content_div":"header_content_div___VVpS_","header_content_text":"header_content_text___cR9y6"});
// 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/modal/index.js + 16 modules
var modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// 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__(51945);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(71681);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(27876);
// EXTERNAL MODULE: ./src/components/PreviewAll/index.tsx + 3 modules
var PreviewAll = __webpack_require__(89976);
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 2 modules
var RenderHtml = __webpack_require__(47759);
// EXTERNAL MODULE: ./src/service/materials.ts
var materials = __webpack_require__(32013);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Materials/Procure/ViewModal/index.tsx
var unitType = {
1: '个',
2: '套',
3: '袋',
4: '条',
5: '根',
6: '升',
7: '毫升'
};
var ViewModal = function ViewModal(_ref) {
var _viewInfo$attachments;
var openViewModal = _ref.openViewModal,
viewInfo = _ref.viewInfo,
_onCancel = _ref.onCancel,
onReject = _ref.onReject,
showButton = _ref.showButton;
var _useState = (0,_react_17_0_2_react.useState)({
content: "",
type: ""
}),
_useState2 = slicedToArray_default()(_useState, 2),
data = _useState2[0],
setData = _useState2[1];
var columns = [{
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)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: unitType[text]
})
});
}
}, {
title: '需申请数量',
dataIndex: 'apply_num',
ellipsis: true
}];
return /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
maskClosable: false,
centered: true,
keyboard: false,
destroyOnClose: true,
className: ViewModalmodules.my_modal,
open: openViewModal,
title: "\u7533\u8D2D\u7EC6\u5219",
width: "810px",
footer: (viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.status) == 'pending' && !showButton && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewModalmodules.footer,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "default",
onClick: function onClick() {
onReject();
},
children: "\u9A73\u56DE"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
onClick: function onClick() {
(0,materials/* purchases_review */.AY)({
id: viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.id,
type: 2
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success('操作成功');
}
});
_onCancel();
},
children: "\u540C\u610F"
})]
}),
onCancel: function onCancel(e) {
_onCancel();
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ViewModalmodules.header,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewModalmodules.header_params,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewModalmodules.header_content,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewModalmodules.header_content_div,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
color: '#999999'
},
children: "\u7533\u8D2D\u539F\u56E0"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: (viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.reason) || '--',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ViewModalmodules.header_content_text,
title: viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.reason,
style: {
color: '#000',
display: 'inline-block',
width: 250,
marginBottom: 0,
position: 'relative',
top: 0
},
children: (viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.reason) || '--'
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewModalmodules.header_content_div,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
color: '#999999'
},
children: "\u5173\u8054"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: (viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.container_titile) || '--',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ViewModalmodules.header_content_text,
style: {
color: '#000'
},
children: (viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.container_titile) || '--'
})
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewModalmodules.header_content,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewModalmodules.header_content_div,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
color: '#999999'
},
children: "\u7533\u8BF7\u5B9E\u9A8C\u5BA4"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: (viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.classroom_title) || '--',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ViewModalmodules.header_content_text,
style: {
color: '#000',
width: '200px'
},
children: (viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.classroom_title) || '--'
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewModalmodules.header_content_div,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
color: '#999999'
},
children: "\u7533\u8BF7\u4EBA"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.user_name,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ViewModalmodules.header_content_text,
style: {
color: '#000'
},
children: viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.user_name
})
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewModalmodules.header_content,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewModalmodules.header_content_div,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
color: '#999999'
},
children: "\u624B\u673A\u53F7"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: (viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.phone) || '--',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ViewModalmodules.header_content_text,
style: {
color: '#000'
},
children: (viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.phone) || '--'
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewModalmodules.header_content_div,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
color: '#999999'
},
children: "\u90AE\u7BB1"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: (viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.mail) || '--',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ViewModalmodules.header_content_text,
style: {
color: '#000'
},
children: (viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.mail) || '--'
})
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ViewModalmodules.header_content,
style: {
marginBottom: '12px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: "flex",
width: '100%'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
color: '#999999',
width: '65px'
},
children: "\u5907\u6CE8\u8BF4\u660E"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
color: '#000',
width: '85%',
marginTop: '-2px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: (viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.description) || '--'
})
})]
})
}), viewInfo === null || viewInfo === void 0 || (_viewInfo$attachments = viewInfo.attachments) === null || _viewInfo$attachments === void 0 ? void 0 : _viewInfo$attachments.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewModalmodules.file_list,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ViewModalmodules.file_list_title,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-fujian font12 mr5"
}), item === null || item === void 0 ? void 0 : item.title]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ViewModalmodules.file_list_size,
children: item === null || item === void 0 ? void 0 : item.filesize
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
marginLeft: '20px',
cursor: 'pointer',
lineHeight: '24px'
},
onClick: function onClick() {
var _item$url;
(0,util/* downLoadLink */.Nd)('', "".concat(env/* default */.Z.API_SERVER).concat(item === null || item === void 0 || (_item$url = item.url) === null || _item$url === void 0 ? void 0 : _item$url.replace('disposition=inline', '')));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-xiazai4 font12 mr5"
}), "\u4E0B\u8F7D"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
marginLeft: '20px',
cursor: 'pointer',
lineHeight: '24px',
color: '#50A760'
},
onClick: function onClick() {
setData({
type: item === null || item === void 0 ? void 0 : item.file_type,
content: env/* default */.Z.API_SERVER + (item === null || item === void 0 ? void 0 : item.url)
});
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-yulan font12 mr5"
}), "\u9884\u89C8"]
})]
});
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ViewModalmodules.header_content,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
color: '#999999',
margin: '15px 0 10px 0 '
},
children: "\u7533\u8D2D\u7269\u8D44"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: 749
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
pagination: false,
dataSource: (viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.substances) || [],
columns: columns,
rowKey: "id"
})
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(PreviewAll/* default */.Z, {
close: true,
data: data === null || data === void 0 ? void 0 : data.content,
type: data === null || data === void 0 ? void 0 : data.type,
hasMask: true,
monacoEditor: {
language: "txt",
onChange: function onChange() {},
options: {
readOnly: true,
fontSize: 14,
minimap: {
enabled: false
}
}
},
onClose: function onClose() {
setData({
content: "",
type: ""
});
}
})]
});
};
/* harmony default export */ var Procure_ViewModal = (ViewModal);
/***/ })
}]);