"use strict";
/*
 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
(self["webpackChunkfront"] = self["webpackChunkfront"] || []).push([["src_App2_js"],{

/***/ "./node_modules/css-loader/dist/cjs.js!./src/Tabulator.css":
/*!*****************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js!./src/Tabulator.css ***!
  \*****************************************************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/noSourceMaps.js */ \"./node_modules/css-loader/dist/runtime/noSourceMaps.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);\n// Imports\n\n\nvar ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.tabulator{background-color:#E8E9EB;}`, \"\"]);\n// Exports\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);\n\n\n//# sourceURL=webpack://front/./src/Tabulator.css?./node_modules/css-loader/dist/cjs.js");

/***/ }),

/***/ "./src/App2.js":
/*!*********************!*\
  !*** ./src/App2.js ***!
  \*********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ App2)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _mui_material_Box__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @mui/material/Box */ \"./node_modules/@mui/material/esm/Box/Box.js\");\n/* harmony import */ var _mui_material_styles__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @mui/material/styles */ \"./node_modules/@mui/material/esm/styles/styled.js\");\n/* harmony import */ var _mui_material_TextField__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @mui/material/TextField */ \"./node_modules/@mui/material/esm/TextField/TextField.js\");\n/* harmony import */ var _mui_material_InputAdornment__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @mui/material/InputAdornment */ \"./node_modules/@mui/material/esm/InputAdornment/InputAdornment.js\");\n/* harmony import */ var _mui_icons_material_Cancel__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @mui/icons-material/Cancel */ \"./node_modules/@mui/icons-material/esm/Cancel.js\");\n/* harmony import */ var _mui_material_Autocomplete__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! @mui/material/Autocomplete */ \"./node_modules/@mui/material/esm/Autocomplete/Autocomplete.js\");\n/* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/throttle */ \"./node_modules/lodash/throttle.js\");\n/* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_throttle__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _mui_x_tree_view_RichTreeView__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! @mui/x-tree-view/RichTreeView */ \"./node_modules/@mui/x-tree-view/esm/RichTreeView/RichTreeView.js\");\n/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @mui/material */ \"./node_modules/@mui/material/esm/Grid/Grid.js\");\n/* harmony import */ var _mui_material_Tab__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! @mui/material/Tab */ \"./node_modules/@mui/material/esm/Tab/Tab.js\");\n/* harmony import */ var _mui_lab_TabContext__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! @mui/lab/TabContext */ \"./node_modules/@mui/lab/esm/TabContext/TabContext.js\");\n/* harmony import */ var _mui_lab_TabList__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! @mui/lab/TabList */ \"./node_modules/@mui/lab/esm/TabList/TabList.js\");\n/* harmony import */ var _mui_lab_TabPanel__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! @mui/lab/TabPanel */ \"./node_modules/@mui/lab/esm/TabPanel/TabPanel.js\");\n/* harmony import */ var _Qingdan3__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Qingdan3 */ \"./src/Qingdan3.js\");\n/* harmony import */ var _Gfsj__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Gfsj */ \"./src/Gfsj.js\");\n/* harmony import */ var _Tbxx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Tbxx */ \"./src/Tbxx.js\");\n/* harmony import */ var _Bjhz__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Bjhz */ \"./src/Bjhz.js\");\n/* harmony import */ var _Zjcs2__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Zjcs2 */ \"./src/Zjcs2.js\");\n/* harmony import */ var _Djcs3__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Djcs3 */ \"./src/Djcs3.js\");\n/* harmony import */ var _Service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Service */ \"./src/Service.js\");\n/* harmony import */ var _Qufei__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Qufei */ \"./src/Qufei.js\");\n/* harmony import */ var _Rcjhz__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Rcjhz */ \"./src/Rcjhz.js\");\n/* harmony import */ var _Qtxm__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Qtxm */ \"./src/Qtxm.js\");\n/* harmony import */ var _Zlje__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Zlje */ \"./src/Zlje.js\");\n/* harmony import */ var _Zygczgj__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Zygczgj */ \"./src/Zygczgj.js\");\n/* harmony import */ var _Jrg__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Jrg */ \"./src/Jrg.js\");\n/* harmony import */ var _Zcbfwf__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Zcbfwf */ \"./src/Zcbfwf.js\");\n/* harmony import */ var _Fbrgycl__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Fbrgycl */ \"./src/Fbrgycl.js\");\n/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! react-router */ \"./node_modules/react-router/dist/development/chunk-DQRVZFIR.mjs\");\n/* harmony import */ var _mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! @mui/icons-material/ExpandMore */ \"./node_modules/@mui/icons-material/esm/ExpandMore.js\");\n/* harmony import */ var _mui_material_Typography__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! @mui/material/Typography */ \"./node_modules/@mui/material/esm/Typography/Typography.js\");\n/* harmony import */ var _mui_material_InputLabel__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! @mui/material/InputLabel */ \"./node_modules/@mui/material/esm/InputLabel/InputLabel.js\");\n/* harmony import */ var _mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! @mui/material/MenuItem */ \"./node_modules/@mui/material/esm/MenuItem/MenuItem.js\");\n/* harmony import */ var _mui_material_FormControl__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! @mui/material/FormControl */ \"./node_modules/@mui/material/esm/FormControl/FormControl.js\");\n/* harmony import */ var _mui_material_Select__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! @mui/material/Select */ \"./node_modules/@mui/material/esm/Select/Select.js\");\n/* harmony import */ var _mui_material_Accordion__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! @mui/material/Accordion */ \"./node_modules/@mui/material/esm/Accordion/Accordion.js\");\n/* harmony import */ var _mui_material_AccordionSummary__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! @mui/material/AccordionSummary */ \"./node_modules/@mui/material/esm/AccordionSummary/AccordionSummary.js\");\n/* harmony import */ var _mui_material_AccordionDetails__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! @mui/material/AccordionDetails */ \"./node_modules/@mui/material/esm/AccordionDetails/AccordionDetails.js\");\n/* harmony import */ var _mui_material_Stack__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! @mui/material/Stack */ \"./node_modules/@mui/material/esm/Stack/Stack.js\");\n/* harmony import */ var _mui_x_data_grid__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! @mui/x-data-grid */ \"./node_modules/@mui/x-data-grid/esm/DataGrid/DataGrid.js\");\n/* harmony import */ var _mui_material_Backdrop__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! @mui/material/Backdrop */ \"./node_modules/@mui/material/esm/Backdrop/Backdrop.js\");\n/* harmony import */ var _mui_material_CircularProgress__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! @mui/material/CircularProgress */ \"./node_modules/@mui/material/esm/CircularProgress/CircularProgress.js\");\n/* harmony import */ var _mui_x_tree_view_TreeItem__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @mui/x-tree-view/TreeItem */ \"./node_modules/@mui/x-tree-view/esm/TreeItem/TreeItem.js\");\n/* harmony import */ var _mui_x_tree_view_TreeItem__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @mui/x-tree-view/TreeItem */ \"./node_modules/@mui/x-tree-view/esm/TreeItem/treeItemClasses.js\");\n/* harmony import */ var _mui_material_Dialog__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! @mui/material/Dialog */ \"./node_modules/@mui/material/esm/Dialog/Dialog.js\");\n/* harmony import */ var _mui_material_DialogTitle__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! @mui/material/DialogTitle */ \"./node_modules/@mui/material/esm/DialogTitle/DialogTitle.js\");\n/* harmony import */ var _mui_material_DialogContent__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! @mui/material/DialogContent */ \"./node_modules/@mui/material/esm/DialogContent/DialogContent.js\");\n/* harmony import */ var _mui_material_IconButton__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! @mui/material/IconButton */ \"./node_modules/@mui/material/esm/IconButton/IconButton.js\");\n/* harmony import */ var _mui_icons_material_Close__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! @mui/icons-material/Close */ \"./node_modules/@mui/icons-material/esm/Close.js\");\n/* harmony import */ var _mui_icons_material_Search__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @mui/icons-material/Search */ \"./node_modules/@mui/icons-material/esm/Search.js\");\n/* harmony import */ var _mui_material_Button__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! @mui/material/Button */ \"./node_modules/@mui/material/esm/Button/Button.js\");\n/* harmony import */ var _mui_x_data_grid__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @mui/x-data-grid */ \"./node_modules/@mui/x-data-grid/esm/components/toolbarV8/ToolbarButton.js\");\n/* harmony import */ var _mui_x_data_grid__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @mui/x-data-grid */ \"./node_modules/@mui/x-data-grid/esm/components/quickFilter/QuickFilter.js\");\n/* harmony import */ var _mui_x_data_grid__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @mui/x-data-grid */ \"./node_modules/@mui/x-data-grid/esm/components/toolbarV8/Toolbar.js\");\n/* harmony import */ var _mui_x_data_grid__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @mui/x-data-grid */ \"./node_modules/@mui/x-data-grid/esm/components/quickFilter/QuickFilterTrigger.js\");\n/* harmony import */ var _mui_x_data_grid__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @mui/x-data-grid */ \"./node_modules/@mui/x-data-grid/esm/components/quickFilter/QuickFilterControl.js\");\n/* harmony import */ var _mui_x_data_grid__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @mui/x-data-grid */ \"./node_modules/@mui/x-data-grid/esm/components/quickFilter/QuickFilterClear.js\");\n/* harmony import */ var _mui_material_Tooltip__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @mui/material/Tooltip */ \"./node_modules/@mui/material/esm/Tooltip/Tooltip.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nvar _excluded = [\"ref\"];\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar MUI_X_PRODUCTS = [{\n  id: 'grid',\n  label: 'Data Grid',\n  children: [{\n    id: 'grid-community',\n    label: '@mui/x-data-grid'\n  }, {\n    id: 'grid-pro',\n    label: '@mui/x-data-grid-pro'\n  }, {\n    id: 'grid-premium',\n    label: '@mui/x-data-grid-premium'\n  }]\n}, {\n  id: 'pickers',\n  label: 'Date and Time Pickers',\n  children: [{\n    id: 'pickers-community',\n    label: '@mui/x-date-pickers'\n  }, {\n    id: 'pickers-pro',\n    label: '@mui/x-date-pickers-pro'\n  }]\n}, {\n  id: 'charts',\n  label: 'Charts',\n  children: [{\n    id: 'charts-community',\n    label: '@mui/x-charts'\n  }, {\n    id: 'charts-pro',\n    label: '@mui/charts-pro'\n  }]\n}, {\n  id: 'tree-view',\n  label: 'Tree View',\n  children: [{\n    id: 'tree-view-community',\n    label: '@mui/x-tree-view'\n  }, {\n    id: 'tree-view-pro',\n    label: '@mui/x-tree-view-pro'\n  }]\n}];\nvar INFO = [['名称', '金额', '暂估价', '安全文明施工费', '规费']];\nvar CustomTreeItem = (0,_mui_material_styles__WEBPACK_IMPORTED_MODULE_18__[\"default\"])(_mui_x_tree_view_TreeItem__WEBPACK_IMPORTED_MODULE_19__.TreeItem)(function (_ref) {\n  var theme = _ref.theme;\n  return _defineProperty({}, \"& .\".concat(_mui_x_tree_view_TreeItem__WEBPACK_IMPORTED_MODULE_20__.treeItemClasses.content), _defineProperty({\n    padding: theme.spacing(0.5, 1),\n    margin: theme.spacing(0.2, 0)\n  }, \"& .\".concat(_mui_x_tree_view_TreeItem__WEBPACK_IMPORTED_MODULE_20__.treeItemClasses.label), {\n    fontSize: '0.8rem',\n    fontWeight: 500\n  }));\n});\nvar StyledToolbarButton = (0,_mui_material_styles__WEBPACK_IMPORTED_MODULE_18__[\"default\"])(_mui_x_data_grid__WEBPACK_IMPORTED_MODULE_21__.ToolbarButton)(function (_ref3) {\n  var theme = _ref3.theme,\n    ownerState = _ref3.ownerState;\n  return {\n    gridArea: '1 / 1',\n    width: 'min-content',\n    height: 'min-content',\n    zIndex: 1,\n    opacity: ownerState.expanded ? 0 : 1,\n    pointerEvents: ownerState.expanded ? 'none' : 'auto',\n    transition: theme.transitions.create(['opacity'])\n  };\n});\nvar StyledQuickFilter = (0,_mui_material_styles__WEBPACK_IMPORTED_MODULE_18__[\"default\"])(_mui_x_data_grid__WEBPACK_IMPORTED_MODULE_22__.QuickFilter)({\n  display: 'grid',\n  alignItems: 'center',\n  marginLeft: 'auto'\n});\nvar StyledTextField = (0,_mui_material_styles__WEBPACK_IMPORTED_MODULE_18__[\"default\"])(_mui_material_TextField__WEBPACK_IMPORTED_MODULE_23__[\"default\"])(function (_ref4) {\n  var theme = _ref4.theme,\n    ownerState = _ref4.ownerState;\n  return {\n    gridArea: '1 / 1',\n    overflowX: 'clip',\n    width: ownerState.expanded ? 260 : 'var(--trigger-width)',\n    opacity: ownerState.expanded ? 1 : 0,\n    transition: theme.transitions.create(['width', 'opacity'])\n  };\n});\nfunction CustomToolbar() {\n  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_x_data_grid__WEBPACK_IMPORTED_MODULE_24__.Toolbar, {\n    children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(StyledQuickFilter, {\n      defaultExpanded: true,\n      children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_x_data_grid__WEBPACK_IMPORTED_MODULE_25__.QuickFilterTrigger, {\n        render: function render(triggerProps, state) {\n          return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_Tooltip__WEBPACK_IMPORTED_MODULE_26__[\"default\"], {\n            title: \"\\u641C\\u7D22\",\n            enterDelay: 0,\n            children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(StyledToolbarButton, _objectSpread(_objectSpread({}, triggerProps), {}, {\n              ownerState: {\n                expanded: state.expanded\n              },\n              color: \"default\",\n              \"aria-disabled\": state.expanded,\n              children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_icons_material_Search__WEBPACK_IMPORTED_MODULE_27__[\"default\"], {\n                fontSize: \"small\"\n              })\n            }))\n          });\n        }\n      }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_x_data_grid__WEBPACK_IMPORTED_MODULE_28__.QuickFilterControl, {\n        render: function render(_ref5, state) {\n          var _controlProps$slotPro;\n          var ref = _ref5.ref,\n            controlProps = _objectWithoutProperties(_ref5, _excluded);\n          return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(StyledTextField, _objectSpread(_objectSpread({}, controlProps), {}, {\n            ownerState: {\n              expanded: state.expanded\n            },\n            inputRef: ref,\n            \"aria-label\": \"\\u641C\\u7D22\",\n            placeholder: \"\\u641C\\u7D22\",\n            size: \"small\",\n            slotProps: _objectSpread({\n              input: _objectSpread({\n                startAdornment: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_InputAdornment__WEBPACK_IMPORTED_MODULE_29__[\"default\"], {\n                  position: \"start\",\n                  children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_icons_material_Search__WEBPACK_IMPORTED_MODULE_27__[\"default\"], {\n                    fontSize: \"small\"\n                  })\n                }),\n                endAdornment: state.value ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_InputAdornment__WEBPACK_IMPORTED_MODULE_29__[\"default\"], {\n                  position: \"end\",\n                  children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_x_data_grid__WEBPACK_IMPORTED_MODULE_30__.QuickFilterClear, {\n                    edge: \"end\",\n                    size: \"small\",\n                    \"aria-label\": \"\\u6E05\\u9664\",\n                    material: {\n                      sx: {\n                        marginRight: -0.75\n                      }\n                    },\n                    children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_icons_material_Cancel__WEBPACK_IMPORTED_MODULE_31__[\"default\"], {\n                      fontSize: \"small\"\n                    })\n                  })\n                }) : null\n              }, (_controlProps$slotPro = controlProps.slotProps) === null || _controlProps$slotPro === void 0 ? void 0 : _controlProps$slotPro.input)\n            }, controlProps.slotProps)\n          }));\n        }\n      })]\n    })\n  });\n}\nfunction App2() {\n  var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState2 = _slicedToArray(_React$useState, 2),\n    outline = _React$useState2[0],\n    setOutline = _React$useState2[1];\n  var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState4 = _slicedToArray(_React$useState3, 2),\n    peibishu = _React$useState4[0],\n    setPeibishu = _React$useState4[1];\n  var _React$useState5 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState6 = _slicedToArray(_React$useState5, 2),\n    outlineDes = _React$useState6[0],\n    setOutlineDes = _React$useState6[1];\n  var _React$useState7 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState8 = _slicedToArray(_React$useState7, 2),\n    columnHeaders = _React$useState8[0],\n    setColumnHeaders = _React$useState8[1];\n  var _React$useState9 = react__WEBPACK_IMPORTED_MODULE_0__.useState(INFO),\n    _React$useState0 = _slicedToArray(_React$useState9, 2),\n    detail = _React$useState0[0],\n    setDetail = _React$useState0[1];\n  var _React$useState1 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState10 = _slicedToArray(_React$useState1, 2),\n    deXilie = _React$useState10[0],\n    setDeXilie = _React$useState10[1];\n  var _React$useState11 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState12 = _slicedToArray(_React$useState11, 2),\n    pbXilie = _React$useState12[0],\n    setPbXilie = _React$useState12[1];\n  var _React$useState13 = react__WEBPACK_IMPORTED_MODULE_0__.useState(INFO),\n    _React$useState14 = _slicedToArray(_React$useState13, 2),\n    nestDetail = _React$useState14[0],\n    setNestDetail = _React$useState14[1];\n  var _React$useState15 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState16 = _slicedToArray(_React$useState15, 2),\n    nest = _React$useState16[0],\n    setNest = _React$useState16[1];\n  var _React$useState17 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState18 = _slicedToArray(_React$useState17, 2),\n    qingdan = _React$useState18[0],\n    setQingdan = _React$useState18[1];\n  var _React$useState19 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState20 = _slicedToArray(_React$useState19, 2),\n    cuoshi = _React$useState20[0],\n    setCuoshi = _React$useState20[1];\n  var _React$useState21 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState22 = _slicedToArray(_React$useState21, 2),\n    tbxx = _React$useState22[0],\n    setTbxx = _React$useState22[1];\n  var _React$useState23 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState24 = _slicedToArray(_React$useState23, 2),\n    qufei = _React$useState24[0],\n    setQufei = _React$useState24[1];\n  var _React$useState25 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState26 = _slicedToArray(_React$useState25, 2),\n    rcjhz = _React$useState26[0],\n    setRcjhz = _React$useState26[1];\n  var _React$useState27 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState28 = _slicedToArray(_React$useState27, 2),\n    gfsj = _React$useState28[0],\n    setGfsj = _React$useState28[1];\n  var _React$useState29 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState30 = _slicedToArray(_React$useState29, 2),\n    bjhz = _React$useState30[0],\n    setBjhz = _React$useState30[1];\n  var _React$useState31 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState32 = _slicedToArray(_React$useState31, 2),\n    qtxm = _React$useState32[0],\n    setQtxm = _React$useState32[1];\n  var _React$useState33 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState34 = _slicedToArray(_React$useState33, 2),\n    zlje = _React$useState34[0],\n    setZlje = _React$useState34[1];\n  var _React$useState35 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState36 = _slicedToArray(_React$useState35, 2),\n    zygczgj = _React$useState36[0],\n    setZygczgj = _React$useState36[1];\n  var _React$useState37 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState38 = _slicedToArray(_React$useState37, 2),\n    jrg = _React$useState38[0],\n    setJrg = _React$useState38[1];\n  var _React$useState39 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState40 = _slicedToArray(_React$useState39, 2),\n    zcbfwf = _React$useState40[0],\n    setZcbfwf = _React$useState40[1];\n  var _React$useState41 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState42 = _slicedToArray(_React$useState41, 2),\n    fbrgycl = _React$useState42[0],\n    setFbrgycl = _React$useState42[1];\n  var _React$useState43 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState44 = _slicedToArray(_React$useState43, 2),\n    jrgData = _React$useState44[0],\n    setJrgData = _React$useState44[1];\n  var _React$useState45 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState46 = _slicedToArray(_React$useState45, 2),\n    fbrgyclData = _React$useState46[0],\n    setFbrgyclData = _React$useState46[1];\n  var _React$useState47 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState48 = _slicedToArray(_React$useState47, 2),\n    zcbfwfData = _React$useState48[0],\n    setZcbfwfData = _React$useState48[1];\n  var _React$useState49 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState50 = _slicedToArray(_React$useState49, 2),\n    zygczgjData = _React$useState50[0],\n    setZygczgjData = _React$useState50[1];\n  var _React$useState51 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState52 = _slicedToArray(_React$useState51, 2),\n    zljeData = _React$useState52[0],\n    setZljeData = _React$useState52[1];\n  var _React$useState53 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState54 = _slicedToArray(_React$useState53, 2),\n    gfsjData = _React$useState54[0],\n    setGfsjData = _React$useState54[1];\n  var _React$useState55 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState56 = _slicedToArray(_React$useState55, 2),\n    qtxmData = _React$useState56[0],\n    setQtxmData = _React$useState56[1];\n  var _React$useState57 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState58 = _slicedToArray(_React$useState57, 2),\n    bjhzData = _React$useState58[0],\n    setBjhzData = _React$useState58[1];\n  var _React$useState59 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState60 = _slicedToArray(_React$useState59, 2),\n    tbxxData = _React$useState60[0],\n    setTbxxData = _React$useState60[1];\n  var _React$useState61 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState62 = _slicedToArray(_React$useState61, 2),\n    qdbt = _React$useState62[0],\n    setQdbt = _React$useState62[1];\n  var _React$useState63 = react__WEBPACK_IMPORTED_MODULE_0__.useState(null),\n    _React$useState64 = _slicedToArray(_React$useState63, 2),\n    qdbh = _React$useState64[0],\n    setQdbh = _React$useState64[1];\n  var _React$useState65 = react__WEBPACK_IMPORTED_MODULE_0__.useState('1'),\n    _React$useState66 = _slicedToArray(_React$useState65, 2),\n    value = _React$useState66[0],\n    setValue = _React$useState66[1];\n  var _React$useState67 = react__WEBPACK_IMPORTED_MODULE_0__.useState(null),\n    _React$useState68 = _slicedToArray(_React$useState67, 2),\n    dwgc = _React$useState68[0],\n    setDwgc = _React$useState68[1];\n  var _React$useState69 = react__WEBPACK_IMPORTED_MODULE_0__.useState(10),\n    _React$useState70 = _slicedToArray(_React$useState69, 2),\n    zhuanye = _React$useState70[0],\n    setZhuanye = _React$useState70[1];\n  var _React$useState71 = react__WEBPACK_IMPORTED_MODULE_0__.useState(10),\n    _React$useState72 = _slicedToArray(_React$useState71, 2),\n    zhuanye2 = _React$useState72[0],\n    setZhuanye2 = _React$useState72[1];\n  var _React$useState73 = react__WEBPACK_IMPORTED_MODULE_0__.useState(true),\n    _React$useState74 = _slicedToArray(_React$useState73, 2),\n    expandedQd = _React$useState74[0],\n    setExpandedQd = _React$useState74[1];\n  var _React$useState75 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState76 = _slicedToArray(_React$useState75, 2),\n    expandedPb = _React$useState76[0],\n    setExpandedPb = _React$useState76[1];\n  var _React$useState77 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState78 = _slicedToArray(_React$useState77, 2),\n    expandedDe = _React$useState78[0],\n    setExpandedDe = _React$useState78[1];\n  var _React$useState79 = react__WEBPACK_IMPORTED_MODULE_0__.useState(''),\n    _React$useState80 = _slicedToArray(_React$useState79, 2),\n    zylb = _React$useState80[0],\n    setZylb = _React$useState80[1];\n  var _React$useState81 = react__WEBPACK_IMPORTED_MODULE_0__.useState(null),\n    _React$useState82 = _slicedToArray(_React$useState81, 2),\n    selectedItems = _React$useState82[0],\n    setSelectedItems = _React$useState82[1];\n  var _React$useState83 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState84 = _slicedToArray(_React$useState83, 2),\n    expandedItems = _React$useState84[0],\n    setExpandedItems = _React$useState84[1];\n  var _React$useState85 = react__WEBPACK_IMPORTED_MODULE_0__.useState(null),\n    _React$useState86 = _slicedToArray(_React$useState85, 2),\n    rgde = _React$useState86[0],\n    setRgde = _React$useState86[1];\n  var _React$useState87 = react__WEBPACK_IMPORTED_MODULE_0__.useState(null),\n    _React$useState88 = _slicedToArray(_React$useState87, 2),\n    beizhu = _React$useState88[0],\n    setBeizhu = _React$useState88[1];\n  var _React$useState89 = react__WEBPACK_IMPORTED_MODULE_0__.useState(null),\n    _React$useState90 = _slicedToArray(_React$useState89, 2),\n    beizhuFK = _React$useState90[0],\n    setBeizhuFK = _React$useState90[1];\n  var _React$useState91 = react__WEBPACK_IMPORTED_MODULE_0__.useState(null),\n    _React$useState92 = _slicedToArray(_React$useState91, 2),\n    clde = _React$useState92[0],\n    setClde = _React$useState92[1];\n  var _React$useState93 = react__WEBPACK_IMPORTED_MODULE_0__.useState(null),\n    _React$useState94 = _slicedToArray(_React$useState93, 2),\n    jxde = _React$useState94[0],\n    setJxde = _React$useState94[1];\n  var _React$useState95 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState96 = _slicedToArray(_React$useState95, 2),\n    open = _React$useState96[0],\n    setOpen = _React$useState96[1];\n  var _React$useState97 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState98 = _slicedToArray(_React$useState97, 2),\n    dopen = _React$useState98[0],\n    setDopen = _React$useState98[1];\n  var _React$useState99 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState100 = _slicedToArray(_React$useState99, 2),\n    dopen2 = _React$useState100[0],\n    setDopen2 = _React$useState100[1];\n  var _React$useState101 = react__WEBPACK_IMPORTED_MODULE_0__.useState(null),\n    _React$useState102 = _slicedToArray(_React$useState101, 2),\n    dingeclick = _React$useState102[0],\n    setDingeclick = _React$useState102[1];\n  var _React$useState103 = react__WEBPACK_IMPORTED_MODULE_0__.useState(null),\n    _React$useState104 = _slicedToArray(_React$useState103, 2),\n    tihuanClick = _React$useState104[0],\n    setTihuanClick = _React$useState104[1];\n  var tihuanRowRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var relation = react__WEBPACK_IMPORTED_MODULE_0__.useRef({});\n  var columns = [{\n    field: '定额编号',\n    headerName: '定额编号'\n  }, {\n    field: '名称',\n    headerName: '名称'\n  }, {\n    field: '单位',\n    headerName: '单位'\n  }, {\n    field: '单价',\n    headerName: '单价'\n  }];\n  var columns2 = [{\n    field: '编号',\n    headerName: '定额编号'\n  }, {\n    field: '名称',\n    headerName: '名称',\n    width: 200\n  }, {\n    field: '单位',\n    headerName: '单位'\n  }, {\n    field: '单价',\n    headerName: '单价'\n  }];\n  var location = (0,react_router__WEBPACK_IMPORTED_MODULE_32__.useParams)();\n  var _React$useState105 = react__WEBPACK_IMPORTED_MODULE_0__.useState(''),\n    _React$useState106 = _slicedToArray(_React$useState105, 2),\n    acvalue = _React$useState106[0],\n    setAcvalue = _React$useState106[1];\n  var _React$useState107 = react__WEBPACK_IMPORTED_MODULE_0__.useState(''),\n    _React$useState108 = _slicedToArray(_React$useState107, 2),\n    acinputvalue = _React$useState108[0],\n    setAcinputvalue = _React$useState108[1];\n  var _React$useState109 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState110 = _slicedToArray(_React$useState109, 2),\n    options = _React$useState110[0],\n    setOptions = _React$useState110[1];\n  var _React$useState111 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState112 = _slicedToArray(_React$useState111, 2),\n    suanshiError = _React$useState112[0],\n    setSuanshiError = _React$useState112[1];\n  var _React$useState113 = react__WEBPACK_IMPORTED_MODULE_0__.useState(''),\n    _React$useState114 = _slicedToArray(_React$useState113, 2),\n    helperText = _React$useState114[0],\n    setHelperText = _React$useState114[1];\n  var _traverse = function traverse(shu) {\n    for (var i = 0; i < shu.length; i++) {\n      var id = shu[i][\"id\"];\n      var children = shu[i][\"children\"];\n      for (var j = 0; j < children.length; j++) {\n        var id2 = children[j][\"id\"];\n        relation.current[id2] = id;\n      }\n      _traverse(children);\n    }\n  };\n  var setOutlineDes_ = function setOutlineDes_(x) {\n    setOutlineDes(x);\n    relation.current = {};\n    _traverse(x);\n  };\n  var handleChangeZhuanye = function handleChangeZhuanye(event) {\n    //console.log(event.target.value);\n    _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateDingeshu(event.target.value).then(function (x) {\n      setOutlineDes_(x);\n    });\n    setZhuanye(event.target.value);\n  };\n  var handleChangeZhuanye2 = function handleChangeZhuanye2(event) {\n    //console.log(event.target.value);\n\n    setZhuanye2(event.target.value);\n  };\n  var handleChange = function handleChange(event, newValue) {\n    setValue(newValue);\n    setRgde(null);\n    setJxde(null);\n    setClde(null);\n  };\n  var findparent = function findparent(id) {\n    var result = [];\n    while (id) {\n      result.push(id);\n      id = relation.current[id];\n    }\n    return result;\n  };\n  var loadingCallback = function loadingCallback() {\n    setOpen(true);\n    _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].save().then(function (x) {\n      setOpen(false);\n    });\n  };\n  var suanshiCallback = function suanshiCallback() {\n    setDopen2(true);\n  };\n  var loadingCallback_djcs = function loadingCallback_djcs() {\n    setOpen(true);\n    _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].save_djcs().then(function (x) {\n      setOpen(false);\n    });\n  };\n  var qufeiCallback = function qufeiCallback(id, data) {\n    setOpen(true);\n    _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].applyFL(id, data).then(function (x) {\n      _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].clearCache();\n      _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].setQufei(data);\n      setOpen(false);\n    });\n  };\n  var tihuanCallback = function tihuanCallback(row, col) {\n    setDopen(true);\n    tihuanRowRef.current = row;\n  };\n  var tiaojiaCallback = function tiaojiaCallback(bh, bm, mingcheng, danwei, jiage) {\n    setOpen(true);\n    _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].tiaojia(location['id'], bh, bm, mingcheng, danwei, jiage).then(function (x) {\n      setOpen(false);\n    });\n  };\n  var zjcsCallback = function zjcsCallback(biao_id, bh, row) {\n    setOpen(true);\n    _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].updateZjcs(biao_id, bh, row).then(function (x) {\n      setOpen(false);\n    });\n  };\n  var handleClose = function handleClose() {\n    setDopen(false);\n  };\n  var handleSuanshi = function handleSuanshi() {\n    //console.log(acinputvalue);\n    if (/^[A-Z0-9\\.\\-\\[\\]\\+\\*\\(\\)盐常镇泰补扬南通苏新市附录]+$/.test(acinputvalue)) {\n      //console.log();\n\n      _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateSingleDingeXilie(zhuanye2, acinputvalue).then(function (x) {\n        var res = JSON.parse(x);\n        var id = res['reverse'];\n        if (id && id != \"None\") {\n          setSuanshiError(false);\n          setHelperText('');\n          setDopen2(false);\n          res[\"date\"] = Date.now().toString();\n          setDingeclick(JSON.stringify(res));\n        } else {\n          setSuanshiError(true);\n          setHelperText('无效输入');\n          console.log(\"error\");\n        }\n      });\n    } else {\n      setSuanshiError(true);\n      setHelperText('无效输入');\n      console.log(\"error\");\n    }\n  };\n  var handleClose2 = function handleClose2() {\n    setDopen2(false);\n  };\n  var clickCallback = function clickCallback(qdbm, debh) {\n    console.log('####################################zylb#####################'.concat(zylb.toString()));\n    //console.log(debh);\n    setExpandedQd(false);\n    setExpandedDe(true); //1 jianzhu 2 zhuangshi 3 anzhuang 4 shizheng 5 yuanlin 6 guidao 7 xiushantujian 8 xiushananzhuang 9 xiushanjiagu  \n    if (qdbm.startsWith(\"01\")) {\n      var suggestion = 10;\n      if (zylb == \"7\") {\n        suggestion = 50;\n      }\n      setZhuanye(suggestion);\n      _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateSingleDingeXilie(suggestion, debh).then(function (x) {\n        //console.log(x);\n        var res = JSON.parse(x);\n        console.log(res);\n        setZhuanye(res[\"actual_zhuanye\"]);\n        var id = res['reverse'];\n        if (id && id != \"None\") {\n          setRgde(res[\"rgde\"]);\n          setJxde(res[\"jxde\"]);\n          setClde(res[\"clde\"]);\n          console.log(res[\"rgde\"]);\n          console.log(res[\"jxde\"]);\n          console.log(res[\"clde\"]);\n          setBeizhu(res[\"bz_selected\"]);\n          setBeizhuFK(res[\"bz_selected2\"]);\n          _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateDingeshu(res[\"actual_zhuanye\"]).then(function (x) {\n            setOutlineDes_(x);\n            setSelectedItems(id);\n            setExpandedItems(findparent(id));\n            _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateDingeXilie(res[\"actual_zhuanye\"], id).then(function (x) {\n              var y = JSON.parse(x);\n              //console.log(y);\n              var result = [];\n              var keys = Object.keys(y[\"DW\"]);\n              for (var i = 0; i < keys.length; i++) {\n                var key = keys[i];\n                var entry = {\n                  \"id\": y[\"DEBH\"][key],\n                  \"定额编号\": y[\"DEBH\"][key],\n                  \"名称\": y[\"GCLMC\"][key],\n                  \"单位\": y[\"DW\"][key],\n                  \"单价\": y[\"GCLSJDJ\"][key]\n                };\n                result.push(entry);\n              }\n              setDeXilie(result);\n            });\n          });\n        } else {\n          setRgde(null);\n          setJxde(null);\n          setClde(null);\n          setBeizhu(res[\"bz_selected\"]);\n        }\n      });\n    } else if (qdbm.startsWith(\"03\")) {\n      //安装\n      var _suggestion = 30;\n      if (zylb == \"8\") {\n        _suggestion = 60;\n      }\n      setZhuanye(_suggestion);\n      _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateSingleDingeXilie(_suggestion, debh).then(function (x) {\n        //console.log(x);\n        var res = JSON.parse(x);\n        console.log(res);\n        setZhuanye(res[\"actual_zhuanye\"]);\n        var id = res['reverse'];\n        if (id && id != \"None\") {\n          setRgde(res[\"rgde\"]);\n          setJxde(res[\"jxde\"]);\n          setClde(res[\"clde\"]);\n          console.log(res[\"rgde\"]);\n          console.log(res[\"jxde\"]);\n          console.log(res[\"clde\"]);\n          setBeizhu(res[\"bz_selected\"]);\n          _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateDingeshu(res[\"actual_zhuanye\"]).then(function (x) {\n            setOutlineDes_(x);\n            setSelectedItems(id);\n            setExpandedItems(findparent(id));\n            _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateDingeXilie(res[\"actual_zhuanye\"], id).then(function (x) {\n              var y = JSON.parse(x);\n              //console.log(y);\n              var result = [];\n              var keys = Object.keys(y[\"DW\"]);\n              for (var i = 0; i < keys.length; i++) {\n                var key = keys[i];\n                var entry = {\n                  \"id\": y[\"DEBH\"][key],\n                  \"定额编号\": y[\"DEBH\"][key],\n                  \"名称\": y[\"GCLMC\"][key],\n                  \"单位\": y[\"DW\"][key],\n                  \"单价\": y[\"GCLSJDJ\"][key]\n                };\n                result.push(entry);\n              }\n              setDeXilie(result);\n            });\n          });\n        } else {\n          setRgde(null);\n          setJxde(null);\n          setClde(null);\n          setBeizhu(res[\"bz_selected\"]);\n        }\n      });\n    } else if (qdbm.startsWith(\"04\")) {\n      ////市政\n      setZhuanye(20);\n      _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateSingleDingeXilie(20, debh).then(function (x) {\n        //console.log(x);\n        var res = JSON.parse(x);\n        console.log(res);\n        setZhuanye(res[\"actual_zhuanye\"]);\n        var id = res['reverse'];\n        if (id && id != \"None\") {\n          setRgde(res[\"rgde\"]);\n          setJxde(res[\"jxde\"]);\n          setClde(res[\"clde\"]);\n          console.log(res[\"rgde\"]);\n          console.log(res[\"jxde\"]);\n          console.log(res[\"clde\"]);\n          setBeizhu(res[\"bz_selected\"]);\n          _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateDingeshu(res[\"actual_zhuanye\"]).then(function (x) {\n            setOutlineDes_(x);\n            setSelectedItems(id);\n            setExpandedItems(findparent(id));\n            _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateDingeXilie(res[\"actual_zhuanye\"], id).then(function (x) {\n              var y = JSON.parse(x);\n              //console.log(y);\n              var result = [];\n              var keys = Object.keys(y[\"DW\"]);\n              for (var i = 0; i < keys.length; i++) {\n                var key = keys[i];\n                var entry = {\n                  \"id\": y[\"DEBH\"][key],\n                  \"定额编号\": y[\"DEBH\"][key],\n                  \"名称\": y[\"GCLMC\"][key],\n                  \"单位\": y[\"DW\"][key],\n                  \"单价\": y[\"GCLSJDJ\"][key]\n                };\n                result.push(entry);\n              }\n              setDeXilie(result);\n            });\n          });\n        } else {\n          setRgde(null);\n          setJxde(null);\n          setClde(null);\n          setBeizhu(res[\"bz_selected\"]);\n        }\n      });\n    } else if (qdbm.startsWith(\"05\")) {\n      //园林\n      setZhuanye(40);\n      _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateSingleDingeXilie(40, debh).then(function (x) {\n        //console.log(x);\n        var res = JSON.parse(x);\n        console.log(res);\n        setZhuanye(res[\"actual_zhuanye\"]);\n        var id = res['reverse'];\n        if (id && id != \"None\") {\n          setRgde(res[\"rgde\"]);\n          setJxde(res[\"jxde\"]);\n          setClde(res[\"clde\"]);\n          console.log(res[\"rgde\"]);\n          console.log(res[\"jxde\"]);\n          console.log(res[\"clde\"]);\n          setBeizhu(res[\"bz_selected\"]);\n          _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateDingeshu(res[\"actual_zhuanye\"]).then(function (x) {\n            setOutlineDes_(x);\n            setSelectedItems(id);\n            setExpandedItems(findparent(id));\n            _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateDingeXilie(res[\"actual_zhuanye\"], id).then(function (x) {\n              var y = JSON.parse(x);\n              //console.log(y);\n              var result = [];\n              var keys = Object.keys(y[\"DW\"]);\n              for (var i = 0; i < keys.length; i++) {\n                var key = keys[i];\n                var entry = {\n                  \"id\": y[\"DEBH\"][key],\n                  \"定额编号\": y[\"DEBH\"][key],\n                  \"名称\": y[\"GCLMC\"][key],\n                  \"单位\": y[\"DW\"][key],\n                  \"单价\": y[\"GCLSJDJ\"][key]\n                };\n                result.push(entry);\n              }\n              setDeXilie(result);\n            });\n          });\n        } else {\n          setRgde(null);\n          setJxde(null);\n          setClde(null);\n          setBeizhu(res[\"bz_selected\"]);\n        }\n      });\n    } else {\n      console.log('####################################zylb#####################'.concat(zylb.toString()));\n    }\n  };\n  var handleEvent = function handleEvent(A) {\n    var state = {\n      'time': Date.now(),\n      'newBianhao': A.row['编号'],\n      'newName': A.row['名称'],\n      'newJia': A.row['单价'],\n      'old': tihuanRowRef.current\n    };\n    setTihuanClick(JSON.stringify(state));\n    setDopen(false);\n  };\n  var handleChangeAccord = function handleChangeAccord(panel) {\n    return function (event, newExpanded) {\n      if (panel == 'qingdan') {\n        setExpandedQd(newExpanded);\n      } else if (panel == 'peibi') {\n        setExpandedPb(newExpanded);\n      } else {\n        setExpandedDe(newExpanded);\n      }\n    };\n  };\n  var handleItemSelectionTogglePbs = function handleItemSelectionTogglePbs(event, itemId, isSelected) {\n    if (isSelected) {\n      console.log(itemId);\n      if ([\"0\", \"3\", \"4\", \"6\", \"7\", \"8\", \"9\", \"11\", \"12\", \"13\", \"15\", \"16\", \"18\", \"19\", \"20\", \"21\"].includes(itemId)) {\n        _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generatePeibiXilie(itemId).then(function (x) {\n          var y = JSON.parse(x);\n          console.log(y);\n          var result = [];\n          var keys = Object.keys(y[\"PBBH\"]);\n          for (var i = 0; i < keys.length; i++) {\n            var key = keys[i];\n            var entry = {\n              \"id\": y[\"id\"][key],\n              \"编号\": y[\"PBBH\"][key],\n              \"名称\": y[\"PBMC\"][key],\n              \"单位\": y[\"DW\"][key],\n              \"单价\": y[\"PBDJ\"][key]\n            };\n            result.push(entry);\n            setPbXilie(result);\n          }\n        });\n      }\n    }\n  };\n  var handleDingEEvent = function handleDingEEvent(row) {\n    _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateSingleDingeXilie(zhuanye, row.id).then(function (x) {\n      var res = JSON.parse(x);\n      console.log(res);\n      res[\"date\"] = Date.now().toString();\n      setDingeclick(JSON.stringify(res));\n    });\n    //\n  };\n  var handleItemSelectionToggleDes = function handleItemSelectionToggleDes(event, itemId, isSelected) {\n    if (isSelected) {\n      //console.log(itemId);\n      setSelectedItems(itemId);\n      setExpandedItems(findparent(itemId));\n      _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateDingeXilie(zhuanye, itemId).then(function (x) {\n        var y = JSON.parse(x);\n        //console.log(y);\n        var result = [];\n        var keys = Object.keys(y[\"DW\"]);\n        for (var i = 0; i < keys.length; i++) {\n          var key = keys[i];\n          var entry = {\n            \"id\": y[\"DEBH\"][key],\n            \"定额编号\": y[\"DEBH\"][key],\n            \"名称\": y[\"GCLMC\"][key],\n            \"单位\": y[\"DW\"][key],\n            \"单价\": y[\"GCLSJDJ\"][key]\n          };\n          result.push(entry);\n        }\n        setDeXilie(result);\n      });\n    }\n  };\n  var handleItemSelectionToggle = function handleItemSelectionToggle(event, itemId, isSelected) {\n    if (isSelected) {\n      //console.log(itemId);\n      var pos = itemId.indexOf(\"Zylb\");\n      var Zylb = itemId.substring(pos + 4, pos + 5);\n      setZylb(Zylb);\n      //console.log(\"Zylb=\".concat(Zylb));\n      if (itemId.includes(\"bao jia hui zong\")) {\n        var regex = /[0-9]*/;\n        var id = itemId.match(regex)[0];\n        _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateBaojiahuizong2(location[\"id\"], id).then(function (x) {\n          setBjhzData(x);\n          setNest(true);\n          setQingdan(false);\n          setCuoshi(false);\n          setQufei(false);\n          setRcjhz(false);\n          setGfsj(false);\n          setBjhz(true);\n          setTbxx(false);\n          setQtxm(false);\n          setZlje(false);\n          setZygczgj(false);\n          setJrg(false);\n          setZcbfwf(false);\n          setFbrgycl(false);\n          //setColumnHeaders([\"序号\", \"名称\", \"金额\", \"暂估价\", \"类别\"]);\n        });\n      } else if (itemId.includes(\"gui fei shui jin\")) {\n        var _regex = /[0-9]*/;\n        var _id = itemId.match(_regex)[0];\n        _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateGuifeishuijin2(location[\"id\"], _id).then(function (x) {\n          setGfsjData(x);\n          setNest(true);\n          setQingdan(false);\n          setCuoshi(false);\n          setQufei(false);\n          setRcjhz(false);\n          setGfsj(true);\n          setBjhz(false);\n          setTbxx(false);\n          setQtxm(false);\n          setZlje(false);\n          setZygczgj(false);\n          setJrg(false);\n          setZcbfwf(false);\n          setFbrgycl(false);\n          //setColumnHeaders([\"序号\", \"名称\", \"取费基数\", \"计算基础\",\"费率\", \"金额\", \"类别\"]);\n        });\n      } else if (itemId.includes(\"qing dan xiang mu\")) {\n        var _regex2 = /[0-9]*/;\n        var _id2 = itemId.match(_regex2)[0];\n        _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateQingdanxiangmu2(location[\"id\"], _id2).then(function (x) {\n          setValue(\"1\");\n          setNest(false);\n          setQingdan(true);\n          setCuoshi(false);\n          setQdbt(x);\n          setQdbh(_id2);\n          setQufei(false);\n          setRcjhz(false);\n          setGfsj(false);\n          setBjhz(false);\n          setTbxx(false);\n          setQtxm(false);\n          setZlje(false);\n          setZygczgj(false);\n          setJrg(false);\n          setZcbfwf(false);\n          setFbrgycl(false);\n          //setColumnHeaders([\"序号\", \"名称\", \"取费基数\", \"计算基础\", \"金额\", \"类别\"]);\n        });\n      } else if (itemId.includes(\"cuo shi xiang mu\")) {\n        var _regex3 = /[0-9]*/;\n        var _id3 = itemId.match(_regex3)[0];\n        setValue(\"1\");\n        setNest(false);\n        setQingdan(false);\n        setCuoshi(true);\n        setDwgc(_id3);\n        setQufei(false);\n        setRcjhz(false);\n        setGfsj(false);\n        setBjhz(false);\n        setTbxx(false);\n        setQtxm(false);\n        setZlje(false);\n        setZygczgj(false);\n        setJrg(false);\n        setZcbfwf(false);\n        setFbrgycl(false);\n        //setColumnHeaders([\"序号\", \"名称\", \"取费基数\", \"计算基础\", \"金额\", \"类别\"]);\n      } else if (itemId.includes(\"qi ta xiang mu\")) {\n        var _regex4 = /[0-9]*/;\n        var _id4 = itemId.match(_regex4)[0];\n        setValue(\"1\");\n        //setColumnHeaders([\"序号\", \"名称\", \"取费基数\", \"计算基础\", \"金额\", \"类别\"]);\n        _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateQitaxiangmu2(location[\"id\"], _id4).then(function (x) {\n          //setNestDetail(x);\n          setQtxmData(x);\n          setNest(true);\n          setQingdan(false);\n          setCuoshi(false);\n          setQufei(false);\n          setRcjhz(false);\n          setGfsj(false);\n          setBjhz(false);\n          setTbxx(false);\n          setQtxm(true);\n          setZlje(false);\n          setZygczgj(false);\n          setJrg(false);\n          setZcbfwf(false);\n          setFbrgycl(false);\n          //setColumnHeaders([\"序号\", \"名称\", \"金额\", \"项目类别\", \"备注\"]);\n        });\n      } else if (itemId.includes(\"zhuan ye gong cheng zan gu jia\")) {\n        var _regex5 = /[0-9]*/;\n        var _id5 = itemId.match(_regex5)[0];\n        setValue(\"1\");\n        //setColumnHeaders([\"序号\", \"名称\", \"取费基数\", \"计算基础\", \"金额\", \"类别\"]);\n        _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateZygczgj(location[\"id\"], _id5).then(function (x) {\n          setZygczgjData(x);\n          setNest(false);\n          setQingdan(false);\n          setCuoshi(false);\n          setQufei(false);\n          setRcjhz(false);\n          setGfsj(false);\n          setBjhz(false);\n          setTbxx(false);\n          setQtxm(false);\n          setZlje(false);\n          setZygczgj(true);\n          setJrg(false);\n          setZcbfwf(false);\n          setFbrgycl(false);\n          //setColumnHeaders([\"序号\", \"名称\", \"金额\", \"项目类别\", \"备注\"]);\n        });\n      } else if (itemId.includes(\"zan lie jin e\")) {\n        var _regex6 = /[0-9]*/;\n        var _id6 = itemId.match(_regex6)[0];\n        setValue(\"1\");\n        //setColumnHeaders([\"序号\", \"名称\", \"取费基数\", \"计算基础\", \"金额\", \"类别\"]);\n        _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateZanliejine2(location[\"id\"], _id6).then(function (x) {\n          //setDetail(x);\n          setZljeData(x);\n          setNest(false);\n          setQingdan(false);\n          setCuoshi(false);\n          setQufei(false);\n          setRcjhz(false);\n          setGfsj(false);\n          setBjhz(false);\n          setTbxx(false);\n          setQtxm(false);\n          setZlje(true);\n          setZygczgj(false);\n          setJrg(false);\n          setZcbfwf(false);\n          setFbrgycl(false);\n        });\n      } else if (itemId.includes(\"ji ri gong\")) {\n        var _regex7 = /[0-9]*/;\n        var _id7 = itemId.match(_regex7)[0];\n        setValue(\"1\");\n        //setColumnHeaders([\"序号\", \"名称\", \"取费基数\", \"计算基础\", \"金额\", \"类别\"]);\n        _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateJirigong2(location[\"id\"], _id7).then(function (x) {\n          setJrgData(x);\n          setNest(false);\n          setQingdan(false);\n          setCuoshi(false);\n          setQufei(false);\n          setRcjhz(false);\n          setGfsj(false);\n          setBjhz(false);\n          setTbxx(false);\n          setQtxm(false);\n          setZlje(false);\n          setZygczgj(false);\n          setJrg(true);\n          setZcbfwf(false);\n          setFbrgycl(false);\n        });\n      } else if (itemId.includes(\"zong cheng bao fu wu fei\")) {\n        var _regex8 = /[0-9]*/;\n        var _id8 = itemId.match(_regex8)[0];\n        setValue(\"1\");\n        //setColumnHeaders([\"序号\", \"名称\", \"取费基数\", \"计算基础\", \"金额\", \"类别\"]);\n        _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateZongchengbaofuwufei2(location[\"id\"], _id8).then(function (x) {\n          setZcbfwfData(x);\n          setNest(false);\n          setQingdan(false);\n          setCuoshi(false);\n          setQufei(false);\n          setRcjhz(false);\n          setGfsj(false);\n          setBjhz(false);\n          setTbxx(false);\n          setQtxm(false);\n          setZlje(false);\n          setZygczgj(false);\n          setJrg(false);\n          setZcbfwf(true);\n          setFbrgycl(false);\n        });\n      } else if (itemId.includes(\"fa bao ren gong ying cai liao\")) {\n        var _regex9 = /[0-9]*/;\n        var _id9 = itemId.match(_regex9)[0];\n        setValue(\"1\");\n        //setColumnHeaders([\"序号\", \"名称\", \"取费基数\", \"计算基础\", \"金额\", \"类别\"]);\n        _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateFabaorengongyingcailiao2(location[\"id\"], _id9).then(function (x) {\n          setFbrgyclData(x);\n          setNest(false);\n          setQingdan(false);\n          setCuoshi(false);\n          setQufei(false);\n          setRcjhz(false);\n          setGfsj(false);\n          setBjhz(false);\n          setTbxx(false);\n          setQtxm(false);\n          setZlje(false);\n          setZygczgj(false);\n          setJrg(false);\n          setZcbfwf(false);\n          setFbrgycl(true);\n        });\n      } else if (itemId.includes(\"ren cai ji hui zong\")) {\n        var _regex0 = /[0-9]*/;\n        var _id0 = itemId.match(_regex0)[0];\n        setValue(\"1\");\n        //setColumnHeaders([\"序号\", \"名称\", \"取费基数\", \"计算基础\", \"金额\", \"类别\"]);\n        //Service.generateRencaijihuizong2(location[\"id\"], id).then(x=>{\n        //setDetail(x);\n        setRcjhz(true);\n        setNest(false);\n        setQingdan(false);\n        setCuoshi(false);\n        setQufei(false);\n        setGfsj(false);\n        setBjhz(false);\n        setTbxx(false);\n        setQtxm(false);\n        setZlje(false);\n        setZygczgj(false);\n        setJrg(false);\n        setZcbfwf(false);\n        setFbrgycl(false);\n        setQdbh(_id0);\n        //}\n        //)\n        ;\n      } else if (itemId.includes(\"TouBiaoXx\")) {\n        _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateDetail2(location[\"id\"]).then(function (x) {\n          setQingdan(false);\n          setCuoshi(false);\n          setTbxxData(x);\n          setNest(false);\n          setQufei(false);\n          setRcjhz(false);\n          setGfsj(false);\n          setBjhz(false);\n          setTbxx(true);\n          setQtxm(false);\n          setZlje(false);\n          setZygczgj(false);\n          setJrg(false);\n          setZcbfwf(false);\n          setFbrgycl(false);\n        });\n      }\n    }\n  };\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    console.log(location);\n    _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateQufei(location[\"id\"]).then(function (x) {\n      _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].setQufei(x);\n    });\n    _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateOutline2(location[\"id\"]).then(function (x) {\n      setOutline(x);\n    });\n    _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateDetail2(location['id']).then(function (x) {\n      setTbxxData(x);\n      setTbxx(true);\n    });\n    _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generateDingeshu(10).then(function (x) {\n      setOutlineDes_(x);\n    });\n  }, [location]);\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].generatePeibishu(zhuanye).then(function (x) {\n      setPeibishu(x);\n    });\n  }, [zhuanye]);\n\n  /**  <MenuItem value={10}>土建</MenuItem>\n                   <MenuItem value={20}>市政</MenuItem>\n                   <MenuItem value={30}>安装</MenuItem>\n                   <MenuItem value={40}>园林</MenuItem>\n                   <MenuItem value={50}>修缮（土建）</MenuItem>\n                   <MenuItem value={60}>修缮（安装）</MenuItem> */\n\n  var throttled = react__WEBPACK_IMPORTED_MODULE_0__.useRef(lodash_throttle__WEBPACK_IMPORTED_MODULE_1___default()(function (zhuanye2, newValue) {\n    if (zhuanye2 == 10) {\n      _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].searchDe('土建', newValue).then(function (x) {\n        setOptions(x);\n      });\n    }\n    if (zhuanye2 == 20) {\n      _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].searchDe('市政', newValue).then(function (x) {\n        setOptions(x);\n      });\n    }\n    if (zhuanye2 == 30) {\n      _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].searchDe('安装', newValue).then(function (x) {\n        setOptions(x);\n      });\n    }\n    if (zhuanye2 == 40) {\n      _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].searchDe('园林', newValue).then(function (x) {\n        setOptions(x);\n      });\n    }\n    if (zhuanye2 == 50) {\n      _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].searchDe('修缮（土建）', newValue).then(function (x) {\n        setOptions(x);\n      });\n    }\n    if (zhuanye2 == 60) {\n      _Service__WEBPACK_IMPORTED_MODULE_8__[\"default\"].searchDe('修缮（安装）', newValue).then(function (x) {\n        setOptions(x);\n      });\n    }\n  }, 1000));\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    throttled.current(zhuanye2, acinputvalue);\n  }, [acinputvalue]);\n  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(_mui_material_Box__WEBPACK_IMPORTED_MODULE_33__[\"default\"], {\n    sx: {\n      flexGrow: 1\n    },\n    children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(_mui_material__WEBPACK_IMPORTED_MODULE_34__[\"default\"], {\n      container: true,\n      spacing: 2,\n      children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(_mui_material__WEBPACK_IMPORTED_MODULE_34__[\"default\"], {\n        size: 3,\n        children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(_mui_material_Accordion__WEBPACK_IMPORTED_MODULE_35__[\"default\"], {\n          expanded: expandedQd,\n          disableGutters: true,\n          onChange: handleChangeAccord('qingdan'),\n          children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_AccordionSummary__WEBPACK_IMPORTED_MODULE_36__[\"default\"], {\n            expandIcon: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_37__[\"default\"], {}),\n            \"aria-controls\": \"panel1-content\",\n            id: \"panel1-header\",\n            children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_Typography__WEBPACK_IMPORTED_MODULE_38__[\"default\"], {\n              component: \"span\",\n              children: \"\\u6E05\\u5355\"\n            })\n          }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_AccordionDetails__WEBPACK_IMPORTED_MODULE_39__[\"default\"], {\n            children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_x_tree_view_RichTreeView__WEBPACK_IMPORTED_MODULE_40__.RichTreeView, {\n              sx: {\n                overflow: \"scroll\",\n                maxHeight: \"90vh\"\n              },\n              onItemSelectionToggle: handleItemSelectionToggle,\n              slots: {\n                item: CustomTreeItem\n              },\n              items: outline\n            })\n          })]\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(_mui_material_Accordion__WEBPACK_IMPORTED_MODULE_35__[\"default\"], {\n          expanded: expandedDe,\n          disableGutters: true,\n          onChange: handleChangeAccord('dinge'),\n          children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_AccordionSummary__WEBPACK_IMPORTED_MODULE_36__[\"default\"], {\n            expandIcon: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_37__[\"default\"], {}),\n            \"aria-controls\": \"panel1-content\",\n            id: \"panel1-header\",\n            children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_Typography__WEBPACK_IMPORTED_MODULE_38__[\"default\"], {\n              component: \"span\",\n              children: \"\\u5B9A\\u989D\"\n            })\n          }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(_mui_material_AccordionDetails__WEBPACK_IMPORTED_MODULE_39__[\"default\"], {\n            children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(_mui_material_FormControl__WEBPACK_IMPORTED_MODULE_41__[\"default\"], {\n              size: \"small\",\n              children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_InputLabel__WEBPACK_IMPORTED_MODULE_42__[\"default\"], {\n                id: \"demo-multiple-name-label\",\n                children: \"\\u4E13\\u4E1A\"\n              }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(_mui_material_Select__WEBPACK_IMPORTED_MODULE_43__[\"default\"], {\n                labelId: \"demo-multiple-name-label\",\n                id: \"demo-multiple-name\",\n                value: zhuanye,\n                onChange: handleChangeZhuanye,\n                label: \"\\u4E13\\u4E1A\",\n                children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_44__[\"default\"], {\n                  value: 10,\n                  children: \"\\u571F\\u5EFA\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_44__[\"default\"], {\n                  value: 20,\n                  children: \"\\u5E02\\u653F\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_44__[\"default\"], {\n                  value: 30,\n                  children: \"\\u5B89\\u88C5\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_44__[\"default\"], {\n                  value: 40,\n                  children: \"\\u56ED\\u6797\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_44__[\"default\"], {\n                  value: 50,\n                  children: \"\\u4FEE\\u7F2E\\uFF08\\u571F\\u5EFA\\uFF09\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_44__[\"default\"], {\n                  value: 60,\n                  children: \"\\u4FEE\\u7F2E\\uFF08\\u5B89\\u88C5\\uFF09\"\n                })]\n              })]\n            }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(_mui_material_Stack__WEBPACK_IMPORTED_MODULE_45__[\"default\"], {\n              spacing: 1,\n              children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_x_tree_view_RichTreeView__WEBPACK_IMPORTED_MODULE_40__.RichTreeView, {\n                sx: {\n                  overflow: \"scroll\",\n                  maxHeight: \"calc(100vh - 540px)\"\n                },\n                onItemSelectionToggle: handleItemSelectionToggleDes,\n                slots: {\n                  item: CustomTreeItem\n                },\n                selectedItems: selectedItems,\n                expandedItems: expandedItems,\n                items: outlineDes\n              }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(\"div\", {\n                style: {\n                  height: 350\n                },\n                children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_x_data_grid__WEBPACK_IMPORTED_MODULE_46__.DataGrid, {\n                  sx: {\n                    '& .MuiDataGrid-cell': {\n                      fontSize: '0.8rem' // Adjust font size for cells\n                    }\n                    /*  '& .MuiDataGrid-columnHeaders': {\n                        fontSize: '1rem', // Adjust font size for column headers\n                      },*/\n                  },\n                  getRowHeight: function getRowHeight() {\n                    return 'auto';\n                  },\n                  rows: deXilie,\n                  columns: columns,\n                  hideFooter: true,\n                  onRowDoubleClick: handleDingEEvent\n                })\n              })]\n            })]\n          })]\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_Button__WEBPACK_IMPORTED_MODULE_47__[\"default\"], {\n          variant: \"outlined\",\n          fullWidth: true,\n          onClick: function onClick() {\n            setQufei(true);\n            setQingdan(false);\n            setCuoshi(false);\n            setRcjhz(false);\n            setGfsj(false);\n            setBjhz(false);\n            setTbxx(false);\n            setQtxm(false);\n            setZlje(false);\n            setZygczgj(false);\n            setJrg(false);\n            setZcbfwf(false);\n            setFbrgycl(false);\n          },\n          children: \"\\u8D39\\u7387\"\n        })]\n      }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(_mui_material__WEBPACK_IMPORTED_MODULE_34__[\"default\"], {\n        size: 9,\n        children: [!nest && !qingdan && !cuoshi && !qufei && rcjhz && !gfsj && !bjhz && !tbxx && !qtxm && !zlje && !zygczgj && !jrg && !zcbfwf && !fbrgycl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_Rcjhz__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n          id: location['id'],\n          bh: qdbh,\n          tiaojiaCallback: tiaojiaCallback\n        }), !nest && !qingdan && !cuoshi && !qufei && !rcjhz && !gfsj && !bjhz && !tbxx && !qtxm && zlje && !zygczgj && !jrg && !zcbfwf && !fbrgycl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_Zlje__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n          data: zljeData\n        }), !nest && !qingdan && !cuoshi && !qufei && !rcjhz && !gfsj && !bjhz && !tbxx && !qtxm && !zlje && !zygczgj && !jrg && !zcbfwf && fbrgycl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_Fbrgycl__WEBPACK_IMPORTED_MODULE_16__[\"default\"], {\n          data: fbrgyclData\n        }), !nest && !qingdan && !cuoshi && !qufei && !rcjhz && !gfsj && !bjhz && !tbxx && !qtxm && !zlje && !zygczgj && !jrg && zcbfwf && !fbrgycl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_Zcbfwf__WEBPACK_IMPORTED_MODULE_15__[\"default\"], {\n          data: zcbfwfData\n        }), !nest && !qingdan && !cuoshi && !qufei && !rcjhz && !gfsj && !bjhz && !tbxx && !qtxm && !zlje && !zygczgj && jrg && !zcbfwf && !fbrgycl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_Jrg__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {\n          data: jrgData\n        }), !nest && !qingdan && !cuoshi && !qufei && !rcjhz && !gfsj && !bjhz && !tbxx && !qtxm && !zlje && zygczgj && !jrg && !zcbfwf && !fbrgycl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_Zygczgj__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n          data: zygczgjData\n        }), !nest && !qingdan && !cuoshi && !qufei && !rcjhz && !gfsj && !bjhz && tbxx && !qtxm && !zlje && !zygczgj && !jrg && !zcbfwf && !fbrgycl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_Tbxx__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n          data: tbxxData\n        }), nest && !qingdan && !cuoshi && !qufei && !rcjhz && gfsj && !bjhz && !tbxx && !qtxm && !zlje && !zygczgj && !jrg && !zcbfwf && !fbrgycl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_Gfsj__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n          data: gfsjData\n        }), nest && !qingdan && !cuoshi && !qufei && !rcjhz && !gfsj && !bjhz && !tbxx && qtxm && !zlje && !zygczgj && !jrg && !zcbfwf && !fbrgycl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_Qtxm__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n          data: qtxmData\n        }), nest && !qingdan && !cuoshi && !qufei && !rcjhz && !gfsj && bjhz && !tbxx && !qtxm && !zlje && !zygczgj && !jrg && !zcbfwf && !fbrgycl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_Bjhz__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n          data: bjhzData\n        }), !qingdan && !cuoshi && qufei && !rcjhz && !gfsj && !bjhz && !tbxx && !qtxm && !zlje && !zygczgj && !jrg && !zcbfwf && !fbrgycl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_Qufei__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n          id: location['id'],\n          qufeiCallback: qufeiCallback\n        }), !nest && qingdan && !cuoshi && !qufei && !rcjhz && !gfsj && !bjhz && !tbxx && !qtxm && !zlje && !zygczgj && !jrg && !zcbfwf && !fbrgycl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(_mui_lab_TabContext__WEBPACK_IMPORTED_MODULE_48__[\"default\"], {\n          value: value,\n          children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_Box__WEBPACK_IMPORTED_MODULE_33__[\"default\"], {\n            sx: {\n              borderBottom: 1,\n              borderColor: 'divider'\n            },\n            children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_lab_TabList__WEBPACK_IMPORTED_MODULE_49__[\"default\"], {\n              scrollButtons: \"auto\",\n              variant: \"scrollable\",\n              sx: {\n                minHeight: '24px'\n              },\n              onChange: handleChange,\n              \"aria-label\": \"lab API tabs example\",\n              children: qdbt.map(function (x, index) {\n                return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_Tab__WEBPACK_IMPORTED_MODULE_50__[\"default\"], {\n                  sx: {\n                    p: 0,\n                    minHeight: '24px'\n                  },\n                  label: x,\n                  value: (index + 1).toString()\n                });\n              })\n            })\n          }), qdbt.map(function (x, index) {\n            return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_lab_TabPanel__WEBPACK_IMPORTED_MODULE_51__[\"default\"], {\n              sx: {\n                p: 1\n              },\n              value: (index + 1).toString(),\n              children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_Qingdan3__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n                name: location[\"id\"],\n                bh: qdbh,\n                bt: x,\n                rgde: rgde,\n                jxde: jxde,\n                clde: clde,\n                beizhu: beizhu,\n                beizhuFK: beizhuFK,\n                clickCallback: clickCallback,\n                loadingCallback: loadingCallback,\n                dingeclick: dingeclick,\n                tihuanCallback: tihuanCallback,\n                tihuanClick: tihuanClick,\n                suanshiCallback: suanshiCallback\n              })\n            });\n          })]\n        }), !nest && !qingdan && cuoshi && !qufei && !rcjhz && !gfsj && !bjhz && !tbxx && !qtxm && !zlje && !zygczgj && !jrg && !zcbfwf && !fbrgycl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(_mui_lab_TabContext__WEBPACK_IMPORTED_MODULE_48__[\"default\"], {\n          value: value,\n          children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_Box__WEBPACK_IMPORTED_MODULE_33__[\"default\"], {\n            sx: {\n              borderBottom: 1,\n              borderColor: 'divider'\n            },\n            children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(_mui_lab_TabList__WEBPACK_IMPORTED_MODULE_49__[\"default\"], {\n              scrollButtons: \"auto\",\n              variant: \"scrollable\",\n              sx: {\n                minHeight: '24px'\n              },\n              onChange: handleChange,\n              \"aria-label\": \"lab API tabs example\",\n              children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_Tab__WEBPACK_IMPORTED_MODULE_50__[\"default\"], {\n                sx: {\n                  p: 0,\n                  minHeight: '24px'\n                },\n                label: \"\\u603B\\u4EF7\\u63AA\\u65BD\",\n                value: \"1\"\n              }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_Tab__WEBPACK_IMPORTED_MODULE_50__[\"default\"], {\n                sx: {\n                  p: 0,\n                  minHeight: '24px'\n                },\n                label: \"\\u5355\\u4EF7\\u63AA\\u65BD\",\n                value: \"2\"\n              })]\n            })\n          }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_lab_TabPanel__WEBPACK_IMPORTED_MODULE_51__[\"default\"], {\n            sx: {\n              p: 1\n            },\n            value: \"1\",\n            children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_Zjcs2__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n              name: location[\"id\"],\n              bh: dwgc,\n              zjcsCallback: zjcsCallback\n            })\n          }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_lab_TabPanel__WEBPACK_IMPORTED_MODULE_51__[\"default\"], {\n            sx: {\n              p: 1\n            },\n            value: \"2\",\n            children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_Djcs3__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n              name: location[\"id\"],\n              bh: dwgc,\n              rgde: rgde,\n              jxde: jxde,\n              clde: clde,\n              beizhu: beizhu,\n              clickCallback: clickCallback,\n              loadingCallback: loadingCallback_djcs,\n              dingeclick: dingeclick,\n              beizhuFK: beizhuFK\n            })\n          })]\n        })]\n      })]\n    }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_Backdrop__WEBPACK_IMPORTED_MODULE_52__[\"default\"], {\n      sx: function sx(theme) {\n        return {\n          color: '#fff',\n          zIndex: theme.zIndex.drawer + 1\n        };\n      },\n      open: open,\n      children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_CircularProgress__WEBPACK_IMPORTED_MODULE_53__[\"default\"], {\n        color: \"inherit\"\n      })\n    }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(_mui_material_Dialog__WEBPACK_IMPORTED_MODULE_54__[\"default\"], {\n      onClose: handleClose,\n      \"aria-labelledby\": \"customized-dialog-title\",\n      open: dopen,\n      fullWidth: true,\n      maxWidth: \"md\",\n      children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_DialogTitle__WEBPACK_IMPORTED_MODULE_55__[\"default\"], {\n        sx: {\n          m: 0,\n          p: 2\n        },\n        id: \"customized-dialog-title\",\n        children: \"\\u66FF\\u6362\"\n      }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_IconButton__WEBPACK_IMPORTED_MODULE_56__[\"default\"], {\n        \"aria-label\": \"close\",\n        onClick: handleClose,\n        sx: function sx(theme) {\n          return {\n            position: 'absolute',\n            right: 8,\n            top: 8,\n            color: theme.palette.grey[500]\n          };\n        },\n        children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_icons_material_Close__WEBPACK_IMPORTED_MODULE_57__[\"default\"], {})\n      }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_DialogContent__WEBPACK_IMPORTED_MODULE_58__[\"default\"], {\n        dividers: true,\n        children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(_mui_material_Stack__WEBPACK_IMPORTED_MODULE_45__[\"default\"], {\n          direction: \"row\",\n          spacing: 2,\n          children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_x_tree_view_RichTreeView__WEBPACK_IMPORTED_MODULE_40__.RichTreeView, {\n            sx: {\n              overflow: \"scroll\",\n              maxHeight: \"350px\",\n              minWidth: \"250px\"\n            },\n            slots: {\n              item: CustomTreeItem\n            },\n            onItemSelectionToggle: handleItemSelectionTogglePbs,\n            items: peibishu\n          }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(\"div\", {\n            style: {\n              height: 350\n            },\n            children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_x_data_grid__WEBPACK_IMPORTED_MODULE_46__.DataGrid, {\n              disableColumnMenu: true,\n              sx: {\n                '& .MuiDataGrid-cell': {\n                  fontSize: '0.8rem' // Adjust font size for cells\n                }\n              },\n              getRowHeight: function getRowHeight() {\n                return 'auto';\n              },\n              rows: pbXilie,\n              onRowDoubleClick: handleEvent,\n              columns: columns2,\n              hideFooter: false,\n              disableColumnFilter: true,\n              disableColumnSelector: true,\n              disableDensitySelector: true,\n              showToolbar: true,\n              slots: {\n                toolbar: CustomToolbar\n              },\n              localeText: {\n                noRowsLabel: '无数据',\n                paginationRowsPerPage: '每页行数',\n                footerRowSelected: function footerRowSelected(count) {\n                  return \"\\u5171\\u9009\\u4E2D\\u4E86\".concat(count.toLocaleString(), \"\\u884C\");\n                }\n              }\n            })\n          })]\n        })\n      })]\n    }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(_mui_material_Dialog__WEBPACK_IMPORTED_MODULE_54__[\"default\"], {\n      onClose: handleClose2,\n      \"aria-labelledby\": \"customized-dialog-title\",\n      open: dopen2,\n      fullWidth: true,\n      maxWidth: \"md\",\n      children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_DialogTitle__WEBPACK_IMPORTED_MODULE_55__[\"default\"], {\n        sx: {\n          m: 0,\n          p: 2\n        },\n        id: \"customized-dialog-title\",\n        children: \"\\u5B9A\\u989D\\uFF08\\u7B97\\u5F0F\\uFF09\"\n      }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_IconButton__WEBPACK_IMPORTED_MODULE_56__[\"default\"], {\n        \"aria-label\": \"close\",\n        onClick: handleClose2,\n        sx: function sx(theme) {\n          return {\n            position: 'absolute',\n            right: 8,\n            top: 8,\n            color: theme.palette.grey[500]\n          };\n        },\n        children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_icons_material_Close__WEBPACK_IMPORTED_MODULE_57__[\"default\"], {})\n      }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_DialogContent__WEBPACK_IMPORTED_MODULE_58__[\"default\"], {\n        dividers: true,\n        children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(_mui_material_Stack__WEBPACK_IMPORTED_MODULE_45__[\"default\"], {\n          direction: \"row\",\n          spacing: 2,\n          children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(_mui_material_FormControl__WEBPACK_IMPORTED_MODULE_41__[\"default\"], {\n            size: \"small\",\n            children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_InputLabel__WEBPACK_IMPORTED_MODULE_42__[\"default\"], {\n              id: \"demo-multiple-name-label\",\n              children: \"\\u4E13\\u4E1A\"\n            }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(_mui_material_Select__WEBPACK_IMPORTED_MODULE_43__[\"default\"], {\n              labelId: \"demo-multiple-name-label\",\n              id: \"demo-multiple-name\",\n              value: zhuanye2,\n              onChange: handleChangeZhuanye2,\n              label: \"\\u4E13\\u4E1A\",\n              children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_44__[\"default\"], {\n                value: 10,\n                children: \"\\u571F\\u5EFA\"\n              }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_44__[\"default\"], {\n                value: 20,\n                children: \"\\u5E02\\u653F\"\n              }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_44__[\"default\"], {\n                value: 30,\n                children: \"\\u5B89\\u88C5\"\n              }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_44__[\"default\"], {\n                value: 40,\n                children: \"\\u56ED\\u6797\"\n              }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_44__[\"default\"], {\n                value: 50,\n                children: \"\\u4FEE\\u7F2E\\uFF08\\u571F\\u5EFA\\uFF09\"\n              }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_44__[\"default\"], {\n                value: 60,\n                children: \"\\u4FEE\\u7F2E\\uFF08\\u5B89\\u88C5\\uFF09\"\n              })]\n            })]\n          }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_Autocomplete__WEBPACK_IMPORTED_MODULE_59__[\"default\"], {\n            sx: {\n              width: 300\n            },\n            size: \"small\",\n            disableClearable: true,\n            id: \"free-solo-demo\",\n            freeSolo: true,\n            filterOptions: function filterOptions(x) {\n              return x;\n            },\n            options: options,\n            value: acvalue,\n            inputValue: acinputvalue,\n            onChange: function onChange(event, newValue) {\n              //setOptions(newValue ? [newValue, ...options] : options);\n              setAcvalue(newValue);\n            },\n            getOptionDisabled: function getOptionDisabled() {\n              return true;\n            },\n            onInputChange: function onInputChange(event, newInputValue) {\n              setAcinputvalue(newInputValue);\n            },\n            renderInput: function renderInput(params) {\n              return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_TextField__WEBPACK_IMPORTED_MODULE_23__[\"default\"], _objectSpread(_objectSpread({}, params), {}, {\n                error: suanshiError,\n                helperText: helperText\n              }));\n            }\n          }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_mui_material_Button__WEBPACK_IMPORTED_MODULE_47__[\"default\"], {\n            variant: \"outlined\",\n            size: \"small\",\n            onClick: handleSuanshi,\n            children: \"\\u786E\\u5B9A\"\n          })]\n        })\n      })]\n    })]\n  });\n}\n\n//# sourceURL=webpack://front/./src/App2.js?");

/***/ }),

/***/ "./src/Bjhz.js":
/*!*********************!*\
  !*** ./src/Bjhz.js ***!
  \*********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ Bjhz)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _Service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Service */ \"./src/Service.js\");\n/* harmony import */ var _EditableSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./EditableSelect */ \"./src/EditableSelect.js\");\n/* harmony import */ var _EditableSelectGC__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EditableSelectGC */ \"./src/EditableSelectGC.js\");\n/* harmony import */ var _Editable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Editable */ \"./src/Editable.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n/* harmony import */ var tabulator_tables__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! tabulator-tables */ \"./node_modules/tabulator-tables/dist/js/tabulator_esm.mjs\");\n/* harmony import */ var tabulator_tables_dist_css_tabulator_min_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! tabulator-tables/dist/css/tabulator.min.css */ \"./node_modules/tabulator-tables/dist/css/tabulator.min.css\");\n/* harmony import */ var _Tabulator_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Tabulator.css */ \"./src/Tabulator.css\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\n\n\n\n//registerPlugin(NestedRows);\n\n\n\n\n\n\n //import Tabulator library\n //import Tabulator stylesheet\n\n\nfunction Bjhz(_ref) {\n  var data = _ref.data;\n  var myRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef();\n  var myTable = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    myTable.current = new tabulator_tables__WEBPACK_IMPORTED_MODULE_9__.TabulatorFull(myRef.current, _defineProperty(_defineProperty({\n      index: \"key\",\n      height: 600,\n      data: data,\n      //link data to table\n      reactiveData: false,\n      //enable data reactivity\n      dataTreeStartExpanded: true,\n      dataTree: true,\n      selectableRows: 1,\n      //make rows selectable\n      editTriggerEvent: \"dblclick\"\n    }, \"dataTreeStartExpanded\", function dataTreeStartExpanded(row, level) {\n      //console.log(row);\n      //console.log(level);\n      return true; //expand rows where the \"driver\" data field is true;\n    }), \"columns\", [\n    //Define Table Columns 序号\", \"名称\", \"取费基数\", \"计算基础\",\"费率\", \"金额\", \"类别\n    {\n      title: \"序号\",\n      field: \"序号\",\n      width: 80,\n      headerSort: false\n    },\n    //never hide this column\n    {\n      title: \"名称\",\n      field: \"名称\",\n      width: 150,\n      headerSort: false,\n      formatter: \"textarea\"\n    },\n    //hide this column first\n    {\n      title: \"金额\",\n      field: \"金额\",\n      width: 100,\n      formatter: \"money\"\n    }, {\n      title: \"暂估价\",\n      field: \"暂估价\",\n      width: 100,\n      formatter: \"textarea\"\n    }, {\n      title: \"类别\",\n      field: \"类别\",\n      width: 100,\n      formatter: \"textarea\"\n    }]));\n    myTable.current.on(\"cellDblClick\", function (e, cell) {\n      //e - the click event object\n      //cell - cell component\n      console.log(cell);\n    });\n\n    //myTable.current.on(\"rowSelected\", handleSelect);\n  }, [data]);\n  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"div\", {\n    ref: myRef\n  });\n}\n\n//# sourceURL=webpack://front/./src/Bjhz.js?");

/***/ }),

/***/ "./src/Djcs3.js":
/*!**********************!*\
  !*** ./src/Djcs3.js ***!
  \**********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ Djcs3)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _mui_material_Box__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @mui/material/Box */ \"./node_modules/@mui/material/esm/Box/Box.js\");\n/* harmony import */ var _mui_material_Tab__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @mui/material/Tab */ \"./node_modules/@mui/material/esm/Tab/Tab.js\");\n/* harmony import */ var _mui_lab_TabContext__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @mui/lab/TabContext */ \"./node_modules/@mui/lab/esm/TabContext/TabContext.js\");\n/* harmony import */ var _mui_lab_TabList__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @mui/lab/TabList */ \"./node_modules/@mui/lab/esm/TabList/TabList.js\");\n/* harmony import */ var _mui_lab_TabPanel__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @mui/lab/TabPanel */ \"./node_modules/@mui/lab/esm/TabPanel/TabPanel.js\");\n/* harmony import */ var _mui_material_Stack__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mui/material/Stack */ \"./node_modules/@mui/material/esm/Stack/Stack.js\");\n/* harmony import */ var _Service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Service */ \"./src/Service.js\");\n/* harmony import */ var tabulator_tables__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! tabulator-tables */ \"./node_modules/tabulator-tables/dist/js/tabulator_esm.mjs\");\n/* harmony import */ var tabulator_tables_dist_css_tabulator_min_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tabulator-tables/dist/css/tabulator.min.css */ \"./node_modules/tabulator-tables/dist/css/tabulator.min.css\");\n/* harmony import */ var _Tabulator_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Tabulator.css */ \"./src/Tabulator.css\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n/* harmony import */ var _mui_material_Button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @mui/material/Button */ \"./node_modules/@mui/material/esm/Button/Button.js\");\n/* harmony import */ var _editor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./editor */ \"./src/editor.js\");\n/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! antd */ \"./node_modules/antd/es/config-provider/index.js\");\n/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! antd */ \"./node_modules/antd/es/table/index.js\");\n/* harmony import */ var antd_locale_zh_CN__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! antd/locale/zh_CN */ \"./node_modules/antd/lib/locale/zh_CN.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n\n\n\n\n\n\n\n\n\n\n //import Tabulator library\n //import Tabulator stylesheet\n\n\n\n\n\n\n\n\n\nfunction number_equal(a, b) {\n  if (Number(a) - Number(b) < 0.0001 && Number(a) - Number(b) > -0.0001) {\n    return true;\n  }\n  return false;\n}\nfunction Djcs3(_ref) {\n  var name = _ref.name,\n    bh = _ref.bh,\n    rgde = _ref.rgde,\n    jxde = _ref.jxde,\n    clde = _ref.clde,\n    beizhu = _ref.beizhu,\n    beizhuFK = _ref.beizhuFK,\n    clickCallback = _ref.clickCallback,\n    loadingCallback = _ref.loadingCallback,\n    dingeclick = _ref.dingeclick;\n  var lastClickRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var editCheck = function editCheck(cell) {\n    //cell - the cell component for the editable cell\n\n    //get row data\n    //console.log(cell);\n    if (cell._cell.row.data['序号']) return false;\n    return true;\n  };\n  var editCheckRcj = function editCheckRcj(cell) {\n    //cell - the cell component for the editable cell\n\n    //get row data\n    //console.log(cell);\n    if (isQdrcj.current) return false;\n    return true;\n  };\n  var sparklineFormatter = function sparklineFormatter(cell, formatterParams, onRendered) {\n    for (var i = 0; i < highlight.current.length; i++) {\n      var entry = highlight.current[i];\n      if (entry.row + 1 == cell._cell.row.position && entry.col + 1 == cell._cell.column.getPosition()) {\n        cell.getElement().style.fontWeight = 'bold';\n        cell.getElement().style.color = 'green';\n        cell.getElement().style.background = '#d7f1e1';\n      }\n    }\n    return Number(cell.getValue()).toFixed(2).toString();\n  };\n  function handleSelect(row) {\n    //e - the click event object\n    //cell - cell component\n    console.log('rowSelected');\n    selectedRowKeysTable.current = [row._row['data']['key']];\n    var bt = \"Djcs\";\n    if (row._row.data['序号'] != null && row._row.data['序号'].length > 0) {\n      selectedRowKeysTableParent.current = row._row['data']['key'];\n      setFuzhu([]);\n      _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].generateQingdanrcj(name, bh, bt, row._row.data['清单编码']).then(function (x) {\n        var y = [];\n        for (var i = 1; i < x.length; i++) {\n          y.push({\n            'ID': x[i][0],\n            '人材机编码': x[i][1],\n            '名称': x[i][2],\n            '规格型号': x[i][3],\n            '单位': x[i][4],\n            '单价': x[i][5],\n            '产地': x[i][6],\n            '供应厂商': x[i][7],\n            '人材机类别': x[i][8],\n            '甲供标志': x[i][9],\n            '含量': x[i][10],\n            '合价': x[i][11],\n            '暂估价标志': x[i][12],\n            '主要材料标志': x[i][13],\n            '主材标志': x[i][14],\n            '设备标志': x[i][15]\n          });\n        }\n        setRcjhl(y);\n        if (rcjTable.current) {\n          rcjTable.current.replaceData(y);\n        }\n        isQdrcj.current = true;\n        highlight.current = [];\n      });\n      _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].generateQingdanTuijian(name, bh, bt, row._row.data['清单编码']).then(function (x) {\n        setTuijian(x);\n        if (tuijianTable.current) tuijianTable.current.replaceData(x);\n      });\n    } else {\n      var row_parent = row._row;\n      while (row_parent.modules.dataTree.parent) {\n        row_parent = row_parent.modules.dataTree.parent;\n      }\n      debmRef.current = row._row['data']['清单编码'];\n      selectedRowKeysTableParent.current = row_parent['data']['key'];\n      clickCallback(row_parent['data']['清单编码'], row._row['data']['清单编码']);\n      _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].generateDingercj(name, bh, bt, row_parent['data']['清单编码'], row._row['data']['清单编码']).then(function (x) {\n        var y = [];\n        for (var i = 1; i < x[0].length; i++) {\n          y.push({\n            'ID': x[0][i][0],\n            '人材机编码': x[0][i][1],\n            '名称': x[0][i][2],\n            '规格型号': x[0][i][3],\n            '单位': x[0][i][4],\n            '单价': x[0][i][5],\n            '产地': x[0][i][6],\n            '供应厂商': x[0][i][7],\n            '人材机类别': x[0][i][8],\n            '甲供标志': x[0][i][9],\n            '含量': x[0][i][10],\n            '合价': x[0][i][11],\n            '暂估价标志': x[0][i][12],\n            '主要材料标志': x[0][i][13],\n            '主材标志': x[0][i][14],\n            '设备标志': x[0][i][15]\n          });\n        }\n        setRcjhl(y);\n        if (rcjTable.current) {\n          rcjTable.current.replaceData(y);\n        }\n        isQdrcj.current = false;\n        setFuzhuEnable(x[1]);\n        var toHighlight = [];\n        for (var _i = 0; _i < y.length; _i++) {\n          var entry = y[_i];\n          var bianhao = entry['人材机编码'];\n          var rcjlb = entry['人材机类别'];\n          if (Number(rcjlb) == 1 && rgdeRef.current) {\n            for (var j = 0; j < rgdeRef.current.length; j++) {\n              if (rgdeRef.current[j][\"CLBH\"] == bianhao) {\n                var danjia = Number(entry['单价']);\n                if (!number_equal(danjia, rgdeRef.current[j][\"YSJG\"])) {\n                  console.log(\"[\".concat(_i, \",5]danjia bu yizhi\"));\n                  toHighlight.push({\n                    row: _i,\n                    col: 5\n                  });\n                }\n                var hanliang = Number(entry['含量']);\n                if (!number_equal(hanliang, rgdeRef.current[j][\"gr\"])) {\n                  console.log(\"[\".concat(_i, \", 10]hanliang bu yizhi\"));\n                  toHighlight.push({\n                    row: _i,\n                    col: 10\n                  });\n                }\n              }\n            }\n          }\n          if (Number(rcjlb) == 3 && jxdeRef.current) {\n            for (var _j = 0; _j < jxdeRef.current.length; _j++) {\n              if (jxdeRef.current[_j][\"jxbh\"] == bianhao) {\n                var _danjia = Number(entry['单价']);\n                if (!number_equal(_danjia, jxdeRef.current[_j][\"tbdj\"])) {\n                  console.log(\"[\".concat(_i, \",5]danjia bu yizhi\"));\n                  toHighlight.push({\n                    row: _i,\n                    col: 5\n                  });\n                }\n                var _hanliang = Number(entry['含量']);\n                if (!number_equal(_hanliang, jxdeRef.current[_j][\"sl\"])) {\n                  console.log(\"[\".concat(_i, \", 10]hanliang bu yizhi\"));\n                  toHighlight.push({\n                    row: _i,\n                    col: 10\n                  });\n                }\n              }\n            }\n          }\n          if (Number(rcjlb) == 2 && cldeRef.current) {\n            for (var _j2 = 0; _j2 < cldeRef.current.length; _j2++) {\n              if (cldeRef.current[_j2][\"CLBH\"] == bianhao) {\n                var _danjia2 = Number(entry['单价']);\n                if (!number_equal(_danjia2, cldeRef.current[_j2][\"YSJG\"])) {\n                  console.log(\"[\".concat(_i, \",5]danjia bu yizhi\"));\n                  toHighlight.push({\n                    row: _i,\n                    col: 5\n                  });\n                }\n                var _hanliang2 = Number(entry['含量']);\n                if (!number_equal(_hanliang2, cldeRef.current[_j2][\"SL\"])) {\n                  console.log(\"[\".concat(_i, \", 10]hanliang bu yizhi\"));\n                  toHighlight.push({\n                    row: _i,\n                    col: 10\n                  });\n                }\n              }\n            }\n          }\n        }\n        highlight.current = toHighlight;\n      });\n    }\n  }\n  var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState2 = _slicedToArray(_React$useState, 2),\n    detail = _React$useState2[0],\n    setDetail = _React$useState2[1];\n  var myRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var myTable = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var tuijianRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var tuijianTable = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var rcj2Ref = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var rcj2Table = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var rcjRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var rcjTable = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_0__.useState(\"1\"),\n    _React$useState4 = _slicedToArray(_React$useState3, 2),\n    value = _React$useState4[0],\n    setValue = _React$useState4[1];\n  var _React$useState5 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState6 = _slicedToArray(_React$useState5, 2),\n    rcjhl = _React$useState6[0],\n    setRcjhl = _React$useState6[1];\n  var _React$useState7 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState8 = _slicedToArray(_React$useState7, 2),\n    rcjhl2 = _React$useState8[0],\n    setRcjhl2 = _React$useState8[1];\n  var _React$useState9 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState0 = _slicedToArray(_React$useState9, 2),\n    fuzhu = _React$useState0[0],\n    setFuzhu = _React$useState0[1];\n  var _React$useState1 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState10 = _slicedToArray(_React$useState1, 2),\n    tuijian = _React$useState10[0],\n    setTuijian = _React$useState10[1];\n  var beizhuFKRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var _React$useState11 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState12 = _slicedToArray(_React$useState11, 2),\n    fuzhuEnable = _React$useState12[0],\n    setFuzhuEnable = _React$useState12[1];\n  var _React$useState13 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState14 = _slicedToArray(_React$useState13, 2),\n    selectedRowKeys = _React$useState14[0],\n    setSelectedRowKeys = _React$useState14[1];\n  var onSelectChange = function onSelectChange(newSelectedRowKeys) {\n    console.log('selectedRowKeys changed: ', newSelectedRowKeys);\n    setSelectedRowKeys(newSelectedRowKeys);\n    var _handleBeizhu_djcs = (0,_editor__WEBPACK_IMPORTED_MODULE_5__.handleBeizhu_djcs)(beizhuFKRef.current, selectedRowKeysTable.current[0], newSelectedRowKeys, fuzhu),\n      _handleBeizhu_djcs2 = _slicedToArray(_handleBeizhu_djcs, 2),\n      newData = _handleBeizhu_djcs2[0],\n      newHl = _handleBeizhu_djcs2[1];\n    if (newData) {\n      myTable.current.updateData(newData.filter(function (x) {\n        return x['key'] == selectedRowKeysTableParent.current;\n      }));\n      var y = [];\n      for (var i = 1; i < newHl.length; i++) {\n        y.push({\n          'ID': newHl[i][0],\n          '人材机编码': newHl[i][1],\n          '名称': newHl[i][2],\n          '规格型号': newHl[i][3],\n          '单位': newHl[i][4],\n          '单价': newHl[i][5],\n          '产地': newHl[i][6],\n          '供应厂商': newHl[i][7],\n          '人材机类别': newHl[i][8],\n          '甲供标志': newHl[i][9],\n          '含量': newHl[i][10],\n          '合价': newHl[i][11],\n          '暂估价标志': newHl[i][12],\n          '主要材料标志': newHl[i][13],\n          '主材标志': newHl[i][14],\n          '设备标志': newHl[i][15]\n        });\n      }\n      setRcjhl(y);\n      if (rcjTable.current) {\n        rcjTable.current.replaceData(y);\n      }\n    }\n  };\n  var rowSelection = {\n    selectedRowKeys: selectedRowKeys,\n    onChange: onSelectChange,\n    getCheckboxProps: function getCheckboxProps(record) {\n      return {\n        disabled: !fuzhuEnable\n      };\n    }\n  };\n  var highlight = react__WEBPACK_IMPORTED_MODULE_0__.useRef([]);\n  var rgdeRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var jxdeRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var cldeRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var isQdrcj = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false);\n  var debmRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var selectedRowKeysTable = react__WEBPACK_IMPORTED_MODULE_0__.useRef([]);\n  var selectedRowKeysTableParent = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    myTable.current = new tabulator_tables__WEBPACK_IMPORTED_MODULE_7__.TabulatorFull(myRef.current, _defineProperty(_defineProperty({\n      index: \"key\",\n      height: 380,\n      data: detail,\n      //link data to table\n      reactiveData: false,\n      //enable data reactivity\n      dataTreeStartExpanded: true,\n      dataTree: true,\n      selectableRows: 1,\n      //make rows selectable\n      editTriggerEvent: \"dblclick\"\n    }, \"dataTreeStartExpanded\", function dataTreeStartExpanded(row, level) {\n      //console.log(row);\n      //console.log(level);\n      return true; //expand rows where the \"driver\" data field is true;\n    }), \"columns\", [\n    //Define Table Columns\n    {\n      title: \"序号\",\n      field: \"序号\",\n      width: 80,\n      headerSort: false,\n      frozen: true\n    },\n    //never hide this column\n    {\n      title: \"清单编码\",\n      field: \"清单编码\",\n      width: 120,\n      headerSort: false,\n      frozen: true,\n      formatter: \"textarea\"\n    }, {\n      title: \"名称\",\n      field: \"名称\",\n      width: 150,\n      headerSort: false,\n      formatter: \"textarea\"\n    },\n    //hide this column first\n    {\n      title: \"项目特征\",\n      field: \"项目特征\",\n      width: 150,\n      headerSort: false,\n      formatter: \"textarea\"\n    }, {\n      title: \"计算规则\",\n      field: \"计算规则\",\n      width: 150,\n      headerSort: false,\n      formatter: \"textarea\"\n    }, {\n      title: \"单位\",\n      field: \"单位\",\n      width: 100,\n      headerSort: false\n    }, {\n      title: \"数量\",\n      field: \"数量\",\n      width: 100,\n      headerSort: false,\n      editor: \"input\",\n      editable: editCheck\n    }, {\n      title: \"综合单价\",\n      field: \"综合单价\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"合价\",\n      field: \"合价\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"人工费\",\n      field: \"人工费\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"主材费\",\n      field: \"主材费\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"设备费\",\n      field: \"设备费\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"辅材费\",\n      field: \"辅材费\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"材料费\",\n      field: \"材料费\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"机械费\",\n      field: \"机械费\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"管理费\",\n      field: \"管理费\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"利润\",\n      field: \"利润\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"暂估价\",\n      field: \"暂估价\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"综合人工工日\",\n      field: \"综合人工工日\",\n      width: 100,\n      headerSort: false\n    }]));\n    myTable.current.on(\"cellDblClick\", function (e, cell) {\n      //e - the click event object\n      //cell - cell component\n      console.log(cell);\n    });\n    myTable.current.on(\"rowSelected\", handleSelect);\n    myTable.current.on(\"cellEdited\", function (cell) {\n      //console.log(\"edited\");\n      //console.log();\n      var key = cell._cell.row.data['key'];\n      myTable.current.deselectRow();\n      var _updateShuliang_djcs = (0,_editor__WEBPACK_IMPORTED_MODULE_5__.updateShuliang_djcs)(cell._cell.row.data['数量'], selectedRowKeysTable.current[0]),\n        _updateShuliang_djcs2 = _slicedToArray(_updateShuliang_djcs, 2),\n        success = _updateShuliang_djcs2[0],\n        data = _updateShuliang_djcs2[1];\n      if (success) {\n        myTable.current.updateData(data.filter(function (x) {\n          return x['key'] == selectedRowKeysTableParent.current;\n        })).then(function () {\n          var getRow = myTable.current.getRows(); //get array of currently selected row components.\n          var component = null;\n          for (var i = 0; i < getRow.length; i++) {\n            var entry = getRow[i]._row.modules.dataTree.children;\n            for (var j = 0; j < entry.length; j++) {\n              var child = entry[j];\n              if (child.data['key'] == key) {\n                //console.log(child);\n                component = child.component;\n                break;\n              }\n            }\n          }\n          component.select();\n          handleSelect(component);\n          //handleSelect(getRow[0]);\n        });\n      }\n    });\n    myTable.current.on(\"tableBuilt\", function () {\n      _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].generateDjcs(name, bh).then(function (x) {\n        myTable.current.replaceData(x);\n      });\n    });\n  }, [bh]);\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    beizhuFKRef.current = beizhuFK;\n  }, [beizhuFK]);\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    console.log(beizhu);\n    var result = [];\n    if (beizhu != null) {\n      var keys = Object.keys(beizhu[\"BZBH\"]);\n      for (var i = 0; i < keys.length; i++) {\n        var key = keys[i];\n        result.push({\n          'key': i + 1,\n          '序号': i + 1,\n          '编号': beizhu[\"BZBH\"][key],\n          '说明': beizhu[\"SM\"][key]\n        }); //序号很重要\n      }\n      setFuzhu(result);\n      var newSelect = (0,_utils__WEBPACK_IMPORTED_MODULE_4__.extractFuzhu)(debmRef.current);\n      setSelectedRowKeys(newSelect);\n      //setSelectedRowKeys([1]);\n    }\n  }, [beizhu]);\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    if (tuijianRef.current != null) {\n      tuijianTable.current = new tabulator_tables__WEBPACK_IMPORTED_MODULE_7__.TabulatorFull(tuijianRef.current, {\n        index: \"key\",\n        height: 200,\n        data: tuijian,\n        //link data to table\n        reactiveData: false,\n        //enable data reactivity\n        dataTreeStartExpanded: false,\n        dataTree: false,\n        selectableRows: 1,\n        //make rows selectable\n\n        columns: [\n        //Define Table Columns\n        {\n          title: \"ID\",\n          field: \"ID\",\n          width: 80,\n          headerSort: false\n        },\n        //never hide this column\n        {\n          title: \"定额编号\",\n          field: \"定额编号\",\n          width: 120,\n          headerSort: false,\n          formatter: \"textarea\"\n        }, {\n          title: \"工程量名称\",\n          field: \"工程量名称\",\n          width: 150,\n          headerSort: false,\n          formatter: \"textarea\"\n        },\n        //hide this column first\n        {\n          title: \"工作内容\",\n          field: \"工作内容\",\n          width: 150,\n          headerSort: false,\n          formatter: \"textarea\"\n        }]\n      });\n      tuijianTable.current.on(\"tableBuilt\", function () {\n        tuijianTable.current.replaceData(tuijian);\n      });\n    }\n    if (rcj2Ref.current != null) {\n      rcj2Table.current = new tabulator_tables__WEBPACK_IMPORTED_MODULE_7__.TabulatorFull(rcj2Ref.current, {\n        index: \"key\",\n        height: 200,\n        data: rcjhl2,\n        //link data to table\n        reactiveData: false,\n        //enable data reactivity\n        dataTreeStartExpanded: false,\n        dataTree: false,\n        selectableRows: 1,\n        //make rows selectable\n\n        columns: [\n        //Define Table Columns\n        {\n          title: \"人材机编码\",\n          field: \"人材机编码\",\n          width: 80,\n          headerSort: false\n        },\n        //never hide this column\n        {\n          title: \"名称\",\n          field: \"名称\",\n          width: 120,\n          headerSort: false,\n          formatter: \"textarea\"\n        }, {\n          title: \"单位\",\n          field: \"单位\",\n          width: 150,\n          headerSort: false,\n          formatter: \"textarea\"\n        },\n        //hide this column first\n        {\n          title: \"单价\",\n          field: \"单价\",\n          width: 150,\n          headerSort: false,\n          formatter: \"money\"\n        }, {\n          title: \"合价\",\n          field: \"合价\",\n          width: 150,\n          headerSort: false,\n          formatter: \"money\"\n        }, {\n          title: \"含量\",\n          field: \"含量\",\n          width: 150,\n          headerSort: false,\n          formatter: \"textarea\"\n        }]\n      });\n      rcj2Table.current.on(\"tableBuilt\", function () {\n        rcj2Table.current.replaceData(rcjhl2);\n      });\n    }\n    if (rcjRef.current != null) {\n      rcjTable.current = new tabulator_tables__WEBPACK_IMPORTED_MODULE_7__.TabulatorFull(rcjRef.current, {\n        index: \"key\",\n        height: 200,\n        data: rcjhl,\n        //link data to table\n        reactiveData: false,\n        //enable data reactivity\n        dataTreeStartExpanded: false,\n        dataTree: false,\n        selectableRows: 1,\n        //make rows selectable\n        editTriggerEvent: \"dblclick\",\n        columns: [\n        //Define Table Columns\n        {\n          title: \"ID\",\n          field: \"ID\",\n          width: 80,\n          headerSort: false\n        }, {\n          title: \"人材机编码\",\n          field: \"人材机编码\",\n          width: 80,\n          headerSort: false\n        },\n        //never hide this column\n        {\n          title: \"名称\",\n          field: \"名称\",\n          width: 120,\n          headerSort: false,\n          formatter: \"textarea\",\n          editor: \"input\",\n          editable: editCheckRcj\n        }, {\n          title: \"规格型号\",\n          field: \"规格型号\",\n          width: 80,\n          headerSort: false,\n          editor: \"input\",\n          editable: editCheckRcj\n        }, {\n          title: \"单位\",\n          field: \"单位\",\n          width: 80,\n          headerSort: false,\n          formatter: \"textarea\"\n        },\n        //hide this column first\n        {\n          title: \"单价\",\n          field: \"单价\",\n          width: 80,\n          headerSort: false,\n          formatter: sparklineFormatter,\n          editor: \"input\",\n          editable: editCheckRcj\n        }, {\n          title: \"产地\",\n          field: \"产地\",\n          width: 80,\n          headerSort: false\n        }, {\n          title: \"供应厂商\",\n          field: \"供应厂商\",\n          width: 80,\n          headerSort: false\n        }, {\n          title: \"人材机类别\",\n          field: \"人材机类别\",\n          width: 80,\n          headerSort: false\n        }, {\n          title: \"甲供标志\",\n          field: \"甲供标志\",\n          width: 80,\n          headerSort: false,\n          formatter: \"textarea\"\n        }, {\n          title: \"含量\",\n          field: \"含量\",\n          width: 80,\n          headerSort: false,\n          formatter: \"money\",\n          formatterParams: {\n            precision: 4\n          },\n          editor: \"input\",\n          editable: editCheckRcj\n        }, {\n          title: \"合价\",\n          field: \"合价\",\n          width: 80,\n          headerSort: false,\n          formatter: \"money\"\n        }, {\n          title: \"暂估价标志\",\n          field: \"暂估价标志\",\n          width: 80,\n          headerSort: false,\n          formatter: \"textarea\"\n        }, {\n          title: \"主要材料标志\",\n          field: \"主要材料标志\",\n          width: 100,\n          headerSort: false,\n          formatter: \"textarea\"\n        }, {\n          title: \"主材标志\",\n          field: \"主材标志\",\n          width: 80,\n          headerSort: false,\n          formatter: \"textarea\"\n        }, {\n          title: \"设备标志\",\n          field: \"设备标志\",\n          width: 80,\n          headerSort: false,\n          formatter: \"textarea\"\n        }]\n      });\n      rcjTable.current.on(\"tableBuilt\", function () {\n        rcjTable.current.replaceData(rcjhl);\n      });\n      rcjTable.current.on(\"cellEdited\", function (cell) {\n        var data = (0,_utils__WEBPACK_IMPORTED_MODULE_4__.copy)(cell._cell.table.getData());\n        for (var i = 0; i < data.length; i++) {\n          data[i]['合价'] = Number(data[i]['单价']) * Number(data[i]['含量']);\n        }\n        setRcjhl(data);\n        if (rcjTable.current) {\n          rcjTable.current.replaceData(data);\n        }\n        var data2 = [['ID', '人材机编码', '名称', '规格型号', '单位', '单价', '产地', '供应厂商', '人材机类别', '甲供标志', '含量', '合价', '暂估价标志', '主要材料标志', '主材标志', '设备标志']];\n        for (var _i2 = 0; _i2 < data.length; _i2++) {\n          data2.push([data[_i2]['ID'], data[_i2]['人材机编码'], data[_i2]['名称'], data[_i2]['规格型号'], data[_i2]['单位'], data[_i2]['单价'], data[_i2]['产地'], data[_i2]['供应厂商'], data[_i2]['人材机类别'], data[_i2]['甲供标志'], data[_i2]['含量'], data[_i2]['合价'], data[_i2]['暂估价标志'], data[_i2]['主要材料标志'], data[_i2]['主材标志'], data[_i2]['设备标志']]);\n        }\n        var newData = (0,_editor__WEBPACK_IMPORTED_MODULE_5__.updateDercj_djcs)(selectedRowKeysTable.current[0], data2);\n        myTable.current.updateData(newData.filter(function (x) {\n          return x['key'] == selectedRowKeysTableParent.current;\n        })).then(function () {\n          var getRow = myTable.current.getRows(); //get array of currently selected row components.\n          var component = null;\n          for (var _i3 = 0; _i3 < getRow.length; _i3++) {\n            var entry = getRow[_i3]._row.modules.dataTree.children;\n            for (var j = 0; j < entry.length; j++) {\n              var child = entry[j];\n              if (child.data['key'] == selectedRowKeysTable.current[0]) {\n                //console.log(child);\n                component = child.component;\n                break;\n              }\n            }\n          }\n          handleSelect(component);\n        });\n      });\n    }\n  }, [value]);\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    myTable.current.deselectRow();\n    //console.log(dingeclick);\n    if (selectedRowKeysTable.current.length > 0) {\n      var _changguidinge_djcs = (0,_editor__WEBPACK_IMPORTED_MODULE_5__.changguidinge_djcs)(JSON.parse(dingeclick), selectedRowKeysTable.current[0]),\n        _changguidinge_djcs2 = _slicedToArray(_changguidinge_djcs, 3),\n        success = _changguidinge_djcs2[0],\n        data = _changguidinge_djcs2[1],\n        key = _changguidinge_djcs2[2];\n      if (success) {\n        myTable.current.updateData(data.filter(function (x) {\n          return x['key'] == selectedRowKeysTableParent.current;\n        })).then(function () {\n          var getRow = myTable.current.getRows(); //get array of currently selected row components.\n          var component = null;\n          for (var i = 0; i < getRow.length; i++) {\n            var entry = getRow[i]._row.modules.dataTree.children;\n            for (var j = 0; j < entry.length; j++) {\n              var child = entry[j];\n              if (child.data['key'] == key) {\n                //console.log(child);\n                component = child.component;\n                break;\n              }\n            }\n          }\n          component.select();\n          handleSelect(component);\n        });\n      }\n    }\n  }, [dingeclick] //常规添加定额\n  );\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    console.log(\"rgde changed\");\n    console.log(rgde);\n    rgdeRef.current = rgde;\n    jxdeRef.current = jxde;\n    cldeRef.current = clde;\n    if (isQdrcj.current) {\n      highlight.current = [];\n    } else {\n      var toHighlight = [];\n      for (var i = 0; i < rcjhl.length; i++) {\n        var entry = rcjhl[i];\n        var bianhao = entry['人材机编码'];\n        var rcjlb = entry['人材机类别'];\n        if (Number(rcjlb) == Number(1) && rgde) {\n          for (var j = 0; j < rgde.length; j++) {\n            if (rgde[j][\"CLBH\"] == bianhao) {\n              var danjia = Number(entry['单价']);\n              if (!number_equal(danjia, rgde[j][\"YSJG\"])) {\n                console.log(\"[\".concat(i, \",5]danjia bu yizhi\"));\n                toHighlight.push({\n                  row: i,\n                  col: 5\n                });\n              }\n              var hanliang = Number(entry['含量']);\n              if (!number_equal(hanliang, rgde[j][\"gr\"])) {\n                console.log(\"[\".concat(i, \", 10]hanliang bu yizhi\"));\n                toHighlight.push({\n                  row: i,\n                  col: 10\n                });\n              }\n            }\n          }\n        }\n        if (Number(rcjlb) == Number(3) && jxde) {\n          for (var _j3 = 0; _j3 < jxde.length; _j3++) {\n            if (jxde[_j3][\"jxbh\"] == bianhao) {\n              var _danjia3 = Number(entry['单价']);\n              if (!number_equal(_danjia3, jxde[_j3][\"tbdj\"])) {\n                console.log(\"[\".concat(i, \",5]danjia bu yizhi\"));\n                toHighlight.push({\n                  row: i,\n                  col: 5\n                });\n              }\n              var _hanliang3 = Number(entry['含量']);\n              if (!number_equal(_hanliang3, jxde[_j3][\"sl\"])) {\n                console.log(\"[\".concat(i, \", 10]hanliang bu yizhi\"));\n                toHighlight.push({\n                  row: i,\n                  col: 10\n                });\n              }\n            }\n          }\n        }\n        if (Number(rcjlb) == Number(2) && clde) {\n          for (var _j4 = 0; _j4 < clde.length; _j4++) {\n            if (clde[_j4][\"CLBH\"] == bianhao) {\n              var _danjia4 = Number(entry['单价']);\n              if (!number_equal(_danjia4, clde[_j4][\"YSJG\"])) {\n                console.log(\"[\".concat(i, \",5]danjia bu yizhi\"));\n                toHighlight.push({\n                  row: i,\n                  col: 5\n                });\n              }\n              var _hanliang4 = Number(entry['含量']);\n              if (!number_equal(_hanliang4, clde[_j4][\"SL\"])) {\n                console.log(\"[\".concat(i, \", 10]hanliang bu yizhi\"));\n                toHighlight.push({\n                  row: i,\n                  col: 10\n                });\n              }\n            }\n          }\n        }\n      }\n      console.log(toHighlight);\n      highlight.current = toHighlight;\n    }\n    var bzrcjhl = [];\n    if (rgde) for (var _i4 = 0; _i4 < rgde.length; _i4++) {\n      bzrcjhl.push({\n        '人材机编码': rgde[_i4][\"CLBH\"],\n        '名称': rgde[_i4][\"CLMC\"],\n        '单位': rgde[_i4][\"JLDW\"],\n        '单价': rgde[_i4][\"YSJG\"],\n        '合价': rgde[_i4][\"gf\"],\n        '含量': rgde[_i4][\"gr\"]\n      });\n    }\n    if (clde) for (var _i5 = 0; _i5 < clde.length; _i5++) {\n      bzrcjhl.push({\n        '人材机编码': clde[_i5][\"CLBH\"],\n        '名称': clde[_i5][\"CLMC\"],\n        '单位': clde[_i5][\"JLDW\"],\n        '单价': clde[_i5][\"YSJG\"],\n        '合价': clde[_i5][\"HJ\"],\n        '含量': clde[_i5][\"SL\"]\n      });\n    }\n    if (jxde) for (var _i6 = 0; _i6 < jxde.length; _i6++) {\n      bzrcjhl.push({\n        '人材机编码': jxde[_i6][\"jxbh\"],\n        '名称': jxde[_i6][\"jxmc\"],\n        '单位': jxde[_i6][\"DW\"],\n        '单价': jxde[_i6][\"tbdj\"],\n        '合价': jxde[_i6][\"hj\"],\n        '含量': jxde[_i6][\"sl\"]\n      });\n    }\n    setRcjhl2(bzrcjhl);\n    if (rcj2Table.current) {\n      rcj2Table.current.replaceData(bzrcjhl);\n    }\n  }, [rgde, jxde, clde]);\n  var handleChange = function handleChange(event, newValue) {\n    setValue(newValue);\n  };\n  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(_mui_material_Stack__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n    spacing: 1,\n    children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(_mui_material_Stack__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n      direction: \"row\",\n      spacing: 2,\n      children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_mui_material_Button__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n        variant: \"outlined\",\n        size: \"small\",\n        onClick: function onClick() {\n          if (selectedRowKeysTable.current.length > 0) {\n            var _danxiangdinge_djcs = (0,_editor__WEBPACK_IMPORTED_MODULE_5__.danxiangdinge_djcs)(selectedRowKeysTable.current[0]),\n              _danxiangdinge_djcs2 = _slicedToArray(_danxiangdinge_djcs, 2),\n              success = _danxiangdinge_djcs2[0],\n              data = _danxiangdinge_djcs2[1];\n            if (success) {\n              myTable.current.updateData(data.filter(function (x) {\n                return x['key'] == selectedRowKeysTableParent.current;\n              })).then(function () {\n                selectedRowKeysTable.current = [];\n                selectedRowKeysTableParent.current = null;\n                setRcjhl([]);\n                if (rcjTable.current) {\n                  rcjTable.current.replaceData([]);\n                }\n                setFuzhu([]);\n                isQdrcj.current = true;\n                highlight.current = [];\n              });\n              //console.log(data);\n            }\n          }\n        },\n        children: \"\\u5355\\u9879\\u5B9A\\u989D\"\n      }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_mui_material_Button__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n        variant: \"outlined\",\n        size: \"small\",\n        onClick: function onClick() {\n          if (selectedRowKeysTable.current.length > 0) {\n            var newData = (0,_editor__WEBPACK_IMPORTED_MODULE_5__.shanchu_djcs)(selectedRowKeysTable.current[0]);\n            myTable.current.updateData(newData.filter(function (x) {\n              return x['key'] == selectedRowKeysTableParent.current;\n            })).then(function () {\n              if (newData.filter(function (x) {\n                return x['key'] == selectedRowKeysTable.current[0];\n              }).length == 0) {\n                selectedRowKeysTable.current = [];\n                selectedRowKeysTableParent.current = [];\n                setRcjhl([]);\n                if (rcjTable.current) {\n                  rcjTable.current.replaceData([]);\n                }\n                setFuzhu([]);\n                isQdrcj.current = true;\n                highlight.current = [];\n              }\n            });\n          }\n        },\n        children: \"\\u5220\\u9664\"\n      }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_mui_material_Button__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n        variant: \"outlined\",\n        size: \"small\",\n        onClick: function onClick() {\n          var newData = (0,_editor__WEBPACK_IMPORTED_MODULE_5__.undo_djcs)();\n          myTable.current.updateData(newData).then(function () {\n            selectedRowKeysTable.current = [];\n            selectedRowKeysTableParent.current = null;\n            setRcjhl([]);\n            if (rcjTable.current) {\n              rcjTable.current.replaceData([]);\n            }\n            setFuzhu([]);\n            isQdrcj.current = true;\n            highlight.current = [];\n          });\n        },\n        children: \"\\u64A4\\u9500\"\n      }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_mui_material_Button__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n        variant: \"outlined\",\n        size: \"small\",\n        onClick: function onClick() {\n          var newData = (0,_editor__WEBPACK_IMPORTED_MODULE_5__.redo_djcs)();\n          myTable.current.updateData(newData).then(function () {\n            selectedRowKeysTable.current = [];\n            selectedRowKeysTableParent.current = null;\n            setRcjhl([]);\n            if (rcjTable.current) {\n              rcjTable.current.replaceData([]);\n            }\n            setFuzhu([]);\n            isQdrcj.current = true;\n            highlight.current = [];\n          });\n        },\n        children: \"\\u91CD\\u505A\"\n      }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_mui_material_Button__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n        variant: \"outlined\",\n        size: \"small\",\n        onClick: function onClick() {\n          console.log(\"save to cloud\");\n          loadingCallback();\n        },\n        children: \"\\u4FDD\\u5B58\"\n      })]\n    }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(\"div\", {\n      ref: myRef\n    }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_mui_material_Box__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n      children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(_mui_lab_TabContext__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n        value: value,\n        children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_mui_material_Box__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n          sx: {\n            borderBottom: 1,\n            borderColor: 'divider'\n          },\n          children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(_mui_lab_TabList__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n            onChange: handleChange,\n            \"aria-label\": \"lab API tabs example\",\n            sx: {\n              minHeight: '24px'\n            },\n            children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_mui_material_Tab__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n              sx: {\n                p: 0,\n                minHeight: '24px'\n              },\n              label: \"\\u4EBA\\u6750\\u673A\\u542B\\u91CF\",\n              value: \"1\"\n            }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_mui_material_Tab__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n              sx: {\n                p: 0,\n                minHeight: '24px'\n              },\n              label: \"\\u6807\\u51C6\\u5B9A\\u989D\\u4EBA\\u6750\\u673A\\u542B\\u91CF\",\n              value: \"2\"\n            }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_mui_material_Tab__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n              sx: {\n                p: 0,\n                minHeight: '24px'\n              },\n              label: \"\\u5B9A\\u989D\\u9644\\u6CE8\",\n              value: \"3\"\n            }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_mui_material_Tab__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n              sx: {\n                p: 0,\n                minHeight: '24px'\n              },\n              label: \"\\u7EC4\\u4EF7\\u63A8\\u8350\",\n              value: \"4\"\n            })]\n          })\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_mui_lab_TabPanel__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {\n          value: \"1\",\n          children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(\"div\", {\n            ref: rcjRef\n          })\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_mui_lab_TabPanel__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {\n          value: \"2\",\n          children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(\"div\", {\n            ref: rcj2Ref\n          })\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_mui_lab_TabPanel__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {\n          value: \"3\",\n          children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_mui_material_Box__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n            sx: {\n              maxHeight: \"200px\"\n            },\n            children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_15__[\"default\"], {\n              locale: antd_locale_zh_CN__WEBPACK_IMPORTED_MODULE_16__[\"default\"],\n              theme: {\n                components: {\n                  Table: {\n                    /* here is your component tokens */\n                    cellPaddingBlock: 8\n                  }\n                }\n              },\n              children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n                scroll: {\n                  x: 'max-content',\n                  y: 200\n                },\n                pagination: false,\n                rowSelection: rowSelection,\n                columns: [{\n                  title: '序号',\n                  dataIndex: '序号',\n                  width: 80\n                }, {\n                  title: '编号',\n                  dataIndex: '编号'\n                }, {\n                  title: '说明',\n                  dataIndex: '说明',\n                  width: 550\n                }],\n                dataSource: fuzhu\n              })\n            })\n          })\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_mui_lab_TabPanel__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {\n          value: \"4\",\n          children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(\"div\", {\n            ref: tuijianRef\n          })\n        })]\n      })\n    })]\n  });\n}\n\n//# sourceURL=webpack://front/./src/Djcs3.js?");

/***/ }),

/***/ "./src/Editable.js":
/*!*************************!*\
  !*** ./src/Editable.js ***!
  \*************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ Editable)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _mui_material_Box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mui/material/Box */ \"./node_modules/@mui/material/esm/Box/Box.js\");\n/* harmony import */ var _Service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Service */ \"./src/Service.js\");\n/* harmony import */ var _mui_material_Button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mui/material/Button */ \"./node_modules/@mui/material/esm/Button/Button.js\");\n/* harmony import */ var _mui_material_TextField__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mui/material/TextField */ \"./node_modules/@mui/material/esm/TextField/TextField.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n\n\n\n\n\n\n\n\n//registerPlugin(NestedRows);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nfunction Editable(_ref) {\n  var initialText = _ref.initialText,\n    onChange = _ref.onChange;\n  var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState2 = _slicedToArray(_React$useState, 2),\n    isEditing = _React$useState2[0],\n    setIsEditing = _React$useState2[1];\n  var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_0__.useState(initialText),\n    _React$useState4 = _slicedToArray(_React$useState3, 2),\n    textValue = _React$useState4[0],\n    setTextValue = _React$useState4[1];\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    setTextValue(initialText);\n  }, [initialText]);\n  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_Box__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n    children: isEditing ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_TextField__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n      id: \"outlined-basic\",\n      value: textValue,\n      size: \"small\",\n      autoFocus: true,\n      variant: \"outlined\",\n      onChange: function onChange(event) {\n        setTextValue(event.target.value);\n      },\n      onKeyDown: function onKeyDown(e) {\n        if (e.key == \"Enter\") {\n          setIsEditing(false);\n          onChange(textValue);\n        }\n      },\n      onBlur: function onBlur() {\n        setIsEditing(false);\n        onChange(textValue);\n      }\n    }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_Button__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n      disableRipple: true,\n      variant: \"text\",\n      color: \"#000000\",\n      onDoubleClick: function onDoubleClick() {\n        setIsEditing(true);\n      },\n      children: textValue\n    })\n  });\n}\n\n//# sourceURL=webpack://front/./src/Editable.js?");

/***/ }),

/***/ "./src/EditableSelect.js":
/*!*******************************!*\
  !*** ./src/EditableSelect.js ***!
  \*******************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ EditableSelect)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _mui_material_Box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mui/material/Box */ \"./node_modules/@mui/material/esm/Box/Box.js\");\n/* harmony import */ var _Service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Service */ \"./src/Service.js\");\n/* harmony import */ var _mui_material_InputLabel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mui/material/InputLabel */ \"./node_modules/@mui/material/esm/InputLabel/InputLabel.js\");\n/* harmony import */ var _mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mui/material/MenuItem */ \"./node_modules/@mui/material/esm/MenuItem/MenuItem.js\");\n/* harmony import */ var _mui_material_FormControl__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mui/material/FormControl */ \"./node_modules/@mui/material/esm/FormControl/FormControl.js\");\n/* harmony import */ var _mui_material_Select__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mui/material/Select */ \"./node_modules/@mui/material/esm/Select/Select.js\");\n/* harmony import */ var _mui_material_Button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mui/material/Button */ \"./node_modules/@mui/material/esm/Button/Button.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n\n\n\n\n\n\n\n\n//registerPlugin(NestedRows);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nfunction EditableSelect(_ref) {\n  var initialText = _ref.initialText,\n    onChange = _ref.onChange;\n  var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState2 = _slicedToArray(_React$useState, 2),\n    isEditing = _React$useState2[0],\n    setIsEditing = _React$useState2[1];\n  var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_0__.useState(initialText),\n    _React$useState4 = _slicedToArray(_React$useState3, 2),\n    textValue = _React$useState4[0],\n    setTextValue = _React$useState4[1];\n  var handleChange = function handleChange(event) {\n    setTextValue(event.target.value);\n    setIsEditing(false);\n    onChange(event.target.value);\n  };\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    setTextValue(initialText);\n    setIsEditing(false);\n  }, [initialText]);\n  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_Box__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n    children: isEditing ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(_mui_material_FormControl__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n      sx: {\n        m: 1,\n        minWidth: 100\n      },\n      size: \"small\",\n      children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_InputLabel__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n        id: \"demo-select-small-label\",\n        children: \"\\u5DE5\\u7A0B\\u7C7B\\u522B\"\n      }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(_mui_material_Select__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n        labelId: \"demo-select-small-label\",\n        id: \"demo-select-small\",\n        value: textValue,\n        label: \"\\u5DE5\\u7A0B\\u7C7B\\u522B\",\n        onChange: handleChange,\n        onBlur: function onBlur() {\n          setIsEditing(false);\n        },\n        children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n          value: \"\",\n          children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"em\", {})\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n          value: \"一类工程\",\n          children: \"\\u4E00\\u7C7B\\u5DE5\\u7A0B\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n          value: \"二类工程\",\n          children: \"\\u4E8C\\u7C7B\\u5DE5\\u7A0B\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n          value: \"三类工程\",\n          children: \"\\u4E09\\u7C7B\\u5DE5\\u7A0B\"\n        })]\n      })]\n    }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_Button__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n      disableRipple: true,\n      variant: \"text\",\n      color: \"#000000\",\n      onDoubleClick: function onDoubleClick() {\n        setIsEditing(true);\n      },\n      children: textValue\n    })\n  });\n}\n\n//# sourceURL=webpack://front/./src/EditableSelect.js?");

/***/ }),

/***/ "./src/EditableSelectGC.js":
/*!*********************************!*\
  !*** ./src/EditableSelectGC.js ***!
  \*********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ EditableSelectGC)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _mui_material_Box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mui/material/Box */ \"./node_modules/@mui/material/esm/Box/Box.js\");\n/* harmony import */ var _Service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Service */ \"./src/Service.js\");\n/* harmony import */ var _mui_material_InputLabel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mui/material/InputLabel */ \"./node_modules/@mui/material/esm/InputLabel/InputLabel.js\");\n/* harmony import */ var _mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mui/material/MenuItem */ \"./node_modules/@mui/material/esm/MenuItem/MenuItem.js\");\n/* harmony import */ var _mui_material_FormControl__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mui/material/FormControl */ \"./node_modules/@mui/material/esm/FormControl/FormControl.js\");\n/* harmony import */ var _mui_material_Select__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mui/material/Select */ \"./node_modules/@mui/material/esm/Select/Select.js\");\n/* harmony import */ var _mui_material_Button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @mui/material/Button */ \"./node_modules/@mui/material/esm/Button/Button.js\");\n/* harmony import */ var _mui_material_ListSubheader__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mui/material/ListSubheader */ \"./node_modules/@mui/material/esm/ListSubheader/ListSubheader.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n\n\n\n\n\n\n\n\n//registerPlugin(NestedRows);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nfunction EditableSelectGC(_ref) {\n  var initialText = _ref.initialText,\n    onChange = _ref.onChange;\n  var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState2 = _slicedToArray(_React$useState, 2),\n    isEditing = _React$useState2[0],\n    setIsEditing = _React$useState2[1];\n  var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_0__.useState(initialText),\n    _React$useState4 = _slicedToArray(_React$useState3, 2),\n    textValue = _React$useState4[0],\n    setTextValue = _React$useState4[1];\n  var handleChange = function handleChange(event) {\n    setTextValue(event.target.value);\n    setIsEditing(false);\n    onChange(event.target.value);\n  };\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    setTextValue(initialText);\n    setIsEditing(false);\n  }, [initialText]);\n  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_Box__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n    children: isEditing ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(_mui_material_FormControl__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n      sx: {\n        m: 1,\n        minWidth: 100\n      },\n      size: \"small\",\n      children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_InputLabel__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n        id: \"demo-select-small-label\",\n        children: \"\\u5DE5\\u7A0B\\u7C7B\\u578B\"\n      }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(_mui_material_Select__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n        labelId: \"demo-select-small-label\",\n        id: \"demo-select-small\",\n        value: textValue,\n        label: \"\\u5DE5\\u7A0B\\u7C7B\\u578B\",\n        onChange: handleChange,\n        onBlur: function onBlur() {\n          setIsEditing(false);\n        },\n        children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n          value: \"\",\n          children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"em\", {})\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_ListSubheader__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n          children: \"\\u5EFA\\u7B51\\u5DE5\\u7A0B\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n          value: \"建筑工程\",\n          children: \"\\u5EFA\\u7B51\\u5DE5\\u7A0B\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n          value: \"单独预制构件制作\",\n          children: \"\\u5355\\u72EC\\u9884\\u5236\\u6784\\u4EF6\\u5236\\u4F5C\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n          value: \"打预制桩、单独构件吊装\",\n          children: \"\\u6253\\u9884\\u5236\\u6869\\u3001\\u5355\\u72EC\\u6784\\u4EF6\\u540A\\u88C5\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n          value: \"单独预制构件制作\",\n          children: \"\\u5355\\u72EC\\u9884\\u5236\\u6784\\u4EF6\\u5236\\u4F5C\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n          value: \"制作兼打桩\",\n          children: \"\\u5236\\u4F5C\\u517C\\u6253\\u6869\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n          value: \"大型土石方工程\",\n          children: \"\\u5927\\u578B\\u571F\\u77F3\\u65B9\\u5DE5\\u7A0B\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_ListSubheader__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n          children: \"\\u5355\\u72EC\\u88C5\\u9970\\u5DE5\\u7A0B\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n          value: \"单独装饰工程\",\n          children: \"\\u5355\\u72EC\\u88C5\\u9970\\u5DE5\\u7A0B\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_ListSubheader__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n          children: \"\\u5B89\\u88C5\\u5DE5\\u7A0B\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n          value: \"安装工程\",\n          children: \"\\u5B89\\u88C5\\u5DE5\\u7A0B\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_ListSubheader__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n          children: \"\\u5E02\\u653F\\u5DE5\\u7A0B\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n          value: \"通用项目、道路、排水工程\",\n          children: \"\\u901A\\u7528\\u9879\\u76EE\\u3001\\u9053\\u8DEF\\u3001\\u6392\\u6C34\\u5DE5\\u7A0B\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n          value: \"桥梁、水工构筑物\",\n          children: \"\\u6865\\u6881\\u3001\\u6C34\\u5DE5\\u6784\\u7B51\\u7269\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n          value: \"给水、燃气与集中供热\",\n          children: \"\\u7ED9\\u6C34\\u3001\\u71C3\\u6C14\\u4E0E\\u96C6\\u4E2D\\u4F9B\\u70ED\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n          value: \"路灯及交通设施工程\",\n          children: \"\\u8DEF\\u706F\\u53CA\\u4EA4\\u901A\\u8BBE\\u65BD\\u5DE5\\u7A0B\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n          value: \"（市）大型土石方工程\",\n          children: \"\\uFF08\\u5E02\\uFF09\\u5927\\u578B\\u571F\\u77F3\\u65B9\\u5DE5\\u7A0B\"\n        })]\n      })]\n    }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_mui_material_Button__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n      disableRipple: true,\n      variant: \"text\",\n      color: \"#000000\",\n      onDoubleClick: function onDoubleClick() {\n        setIsEditing(true);\n      },\n      children: textValue\n    })\n  });\n}\n\n//# sourceURL=webpack://front/./src/EditableSelectGC.js?");

/***/ }),

/***/ "./src/Fbrgycl.js":
/*!************************!*\
  !*** ./src/Fbrgycl.js ***!
  \************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ Fbrgycl)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _Service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Service */ \"./src/Service.js\");\n/* harmony import */ var _EditableSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./EditableSelect */ \"./src/EditableSelect.js\");\n/* harmony import */ var _EditableSelectGC__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EditableSelectGC */ \"./src/EditableSelectGC.js\");\n/* harmony import */ var _Editable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Editable */ \"./src/Editable.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n/* harmony import */ var tabulator_tables__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! tabulator-tables */ \"./node_modules/tabulator-tables/dist/js/tabulator_esm.mjs\");\n/* harmony import */ var tabulator_tables_dist_css_tabulator_min_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! tabulator-tables/dist/css/tabulator.min.css */ \"./node_modules/tabulator-tables/dist/css/tabulator.min.css\");\n/* harmony import */ var _Tabulator_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Tabulator.css */ \"./src/Tabulator.css\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\n\n\n\n//registerPlugin(NestedRows);\n\n\n\n\n\n\n //import Tabulator library\n //import Tabulator stylesheet\n\n\nfunction Fbrgycl(_ref) {\n  var data = _ref.data;\n  var myRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef();\n  var myTable = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    myTable.current = new tabulator_tables__WEBPACK_IMPORTED_MODULE_9__.TabulatorFull(myRef.current, _defineProperty(_defineProperty({\n      index: \"key\",\n      height: 600,\n      data: data,\n      //link data to table\n      reactiveData: false,\n      //enable data reactivity\n      dataTreeStartExpanded: true,\n      dataTree: true,\n      selectableRows: 1,\n      //make rows selectable\n      editTriggerEvent: \"dblclick\"\n    }, \"dataTreeStartExpanded\", function dataTreeStartExpanded(row, level) {\n      //console.log(row);\n      //console.log(level);\n      return true; //expand rows where the \"driver\" data field is true;\n    }), \"columns\", [\n    //Define Table Columns 序号\", \"名称\", \"取费基数\", \"计算基础\",\"费率\", \"金额\", \"类别\n    {\n      title: \"序号\",\n      field: \"序号\",\n      width: 80,\n      headerSort: false\n    },\n    //never hide this column\n    {\n      title: \"ID\",\n      field: \"ID\",\n      width: 150,\n      headerSort: false,\n      formatter: \"textarea\"\n    },\n    //hide this column first\n    {\n      title: \"材料编号\",\n      field: \"材料编号\",\n      width: 100,\n      formatter: \"textarea\"\n    }, {\n      title: \"名称\",\n      field: \"名称\",\n      width: 100,\n      formatter: \"textarea\"\n    }, {\n      title: \"规格型号\",\n      field: \"规格型号\",\n      width: 100,\n      formatter: \"textarea\"\n    }, {\n      title: \"单位\",\n      field: \"单位\",\n      width: 100,\n      formatter: \"textarea\"\n    }, {\n      title: \"数量\",\n      field: \"数量\",\n      width: 100,\n      formatter: \"textarea\"\n    }, {\n      title: \"单价\",\n      field: \"单价\",\n      width: 100,\n      formatter: \"money\"\n    }, {\n      title: \"合价\",\n      field: \"合价\",\n      width: 100,\n      formatter: \"money\"\n    }, {\n      title: \"交货方式\",\n      field: \"交货方式\",\n      width: 100,\n      formatter: \"textarea\"\n    }, {\n      title: \"送达地点\",\n      field: \"送达地点\",\n      width: 100,\n      formatter: \"textarea\"\n    }, {\n      title: \"备注\",\n      field: \"备注\",\n      width: 100,\n      formatter: \"textarea\"\n    }]));\n    myTable.current.on(\"cellDblClick\", function (e, cell) {\n      //e - the click event object\n      //cell - cell component\n      console.log(cell);\n    });\n\n    //myTable.current.on(\"rowSelected\", handleSelect);\n  }, [data]);\n  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"div\", {\n    ref: myRef\n  });\n}\n\n//# sourceURL=webpack://front/./src/Fbrgycl.js?");

/***/ }),

/***/ "./src/Gfsj.js":
/*!*********************!*\
  !*** ./src/Gfsj.js ***!
  \*********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ Gfsj)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _Service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Service */ \"./src/Service.js\");\n/* harmony import */ var _EditableSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./EditableSelect */ \"./src/EditableSelect.js\");\n/* harmony import */ var _EditableSelectGC__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EditableSelectGC */ \"./src/EditableSelectGC.js\");\n/* harmony import */ var _Editable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Editable */ \"./src/Editable.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n/* harmony import */ var tabulator_tables__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! tabulator-tables */ \"./node_modules/tabulator-tables/dist/js/tabulator_esm.mjs\");\n/* harmony import */ var tabulator_tables_dist_css_tabulator_min_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! tabulator-tables/dist/css/tabulator.min.css */ \"./node_modules/tabulator-tables/dist/css/tabulator.min.css\");\n/* harmony import */ var _Tabulator_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Tabulator.css */ \"./src/Tabulator.css\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\n\n\n\n//registerPlugin(NestedRows);\n\n\n\n\n\n\n //import Tabulator library\n //import Tabulator stylesheet\n\n\nfunction Gfsj(_ref) {\n  var data = _ref.data;\n  var myRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef();\n  var myTable = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    myTable.current = new tabulator_tables__WEBPACK_IMPORTED_MODULE_9__.TabulatorFull(myRef.current, _defineProperty(_defineProperty({\n      index: \"key\",\n      height: 600,\n      data: data,\n      //link data to table\n      reactiveData: false,\n      //enable data reactivity\n      dataTreeStartExpanded: true,\n      dataTree: true,\n      selectableRows: 1,\n      //make rows selectable\n      editTriggerEvent: \"dblclick\"\n    }, \"dataTreeStartExpanded\", function dataTreeStartExpanded(row, level) {\n      //console.log(row);\n      //console.log(level);\n      return true; //expand rows where the \"driver\" data field is true;\n    }), \"columns\", [\n    //Define Table Columns 序号\", \"名称\", \"取费基数\", \"计算基础\",\"费率\", \"金额\", \"类别\n    {\n      title: \"序号\",\n      field: \"序号\",\n      width: 80,\n      headerSort: false\n    },\n    //never hide this column\n    {\n      title: \"名称\",\n      field: \"名称\",\n      width: 150,\n      headerSort: false,\n      formatter: \"textarea\"\n    },\n    //hide this column first\n    {\n      title: \"取费基数\",\n      field: \"取费基数\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"计算基础\",\n      field: \"计算基础\",\n      width: 350,\n      headerSort: false,\n      formatter: \"textarea\"\n    }, {\n      title: \"费率\",\n      field: \"费率\",\n      width: 100,\n      headerSort: true,\n      sorter: \"number\",\n      formatter: \"textarea\"\n    }, {\n      title: \"金额\",\n      field: \"金额\",\n      width: 100,\n      headerSort: true,\n      sorter: \"number\",\n      formatter: \"money\"\n    }, {\n      title: \"类别\",\n      field: \"类别\",\n      width: 100,\n      headerSort: true,\n      sorter: \"number\",\n      formatter: \"textarea\"\n    }]));\n    myTable.current.on(\"cellDblClick\", function (e, cell) {\n      //e - the click event object\n      //cell - cell component\n      console.log(cell);\n    });\n\n    //myTable.current.on(\"rowSelected\", handleSelect);\n  }, [data]);\n  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"div\", {\n    ref: myRef\n  });\n}\n\n//# sourceURL=webpack://front/./src/Gfsj.js?");

/***/ }),

/***/ "./src/Jrg.js":
/*!********************!*\
  !*** ./src/Jrg.js ***!
  \********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ Jrg)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _Service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Service */ \"./src/Service.js\");\n/* harmony import */ var _EditableSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./EditableSelect */ \"./src/EditableSelect.js\");\n/* harmony import */ var _EditableSelectGC__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EditableSelectGC */ \"./src/EditableSelectGC.js\");\n/* harmony import */ var _Editable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Editable */ \"./src/Editable.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n/* harmony import */ var tabulator_tables__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! tabulator-tables */ \"./node_modules/tabulator-tables/dist/js/tabulator_esm.mjs\");\n/* harmony import */ var tabulator_tables_dist_css_tabulator_min_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! tabulator-tables/dist/css/tabulator.min.css */ \"./node_modules/tabulator-tables/dist/css/tabulator.min.css\");\n/* harmony import */ var _Tabulator_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Tabulator.css */ \"./src/Tabulator.css\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\n\n\n\n//registerPlugin(NestedRows);\n\n\n\n\n\n\n //import Tabulator library\n //import Tabulator stylesheet\n\n\nfunction Jrg(_ref) {\n  var data = _ref.data;\n  var myRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef();\n  var myTable = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    myTable.current = new tabulator_tables__WEBPACK_IMPORTED_MODULE_9__.TabulatorFull(myRef.current, _defineProperty(_defineProperty({\n      index: \"key\",\n      height: 600,\n      data: data,\n      //link data to table\n      reactiveData: false,\n      //enable data reactivity\n      dataTreeStartExpanded: true,\n      dataTree: true,\n      selectableRows: 1,\n      //make rows selectable\n      editTriggerEvent: \"dblclick\"\n    }, \"dataTreeStartExpanded\", function dataTreeStartExpanded(row, level) {\n      //console.log(row);\n      //console.log(level);\n      return true; //expand rows where the \"driver\" data field is true;\n    }), \"columns\", [\n    //Define Table Columns 序号\", \"名称\", \"取费基数\", \"计算基础\",\"费率\", \"金额\", \"类别\n    {\n      title: \"序号\",\n      field: \"序号\",\n      width: 80,\n      headerSort: false\n    },\n    //never hide this column\n    {\n      title: \"名称\",\n      field: \"名称\",\n      width: 150,\n      headerSort: false,\n      formatter: \"textarea\"\n    },\n    //hide this column first\n    {\n      title: \"金额\",\n      field: \"金额\",\n      width: 100,\n      formatter: \"money\"\n    }, {\n      title: \"类别\",\n      field: \"类别\",\n      width: 100,\n      formatter: \"textarea\"\n    }]));\n    myTable.current.on(\"cellDblClick\", function (e, cell) {\n      //e - the click event object\n      //cell - cell component\n      console.log(cell);\n    });\n\n    //myTable.current.on(\"rowSelected\", handleSelect);\n  }, [data]);\n  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"div\", {\n    ref: myRef\n  });\n}\n\n//# sourceURL=webpack://front/./src/Jrg.js?");

/***/ }),

/***/ "./src/Qingdan3.js":
/*!*************************!*\
  !*** ./src/Qingdan3.js ***!
  \*************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ Qingdan3)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _mui_material_Box__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @mui/material/Box */ \"./node_modules/@mui/material/esm/Box/Box.js\");\n/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd */ \"./node_modules/antd/es/table/index.js\");\n/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! antd */ \"./node_modules/antd/es/config-provider/index.js\");\n/* harmony import */ var _mui_material_Tab__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @mui/material/Tab */ \"./node_modules/@mui/material/esm/Tab/Tab.js\");\n/* harmony import */ var _mui_lab_TabContext__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @mui/lab/TabContext */ \"./node_modules/@mui/lab/esm/TabContext/TabContext.js\");\n/* harmony import */ var _mui_lab_TabList__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @mui/lab/TabList */ \"./node_modules/@mui/lab/esm/TabList/TabList.js\");\n/* harmony import */ var _mui_lab_TabPanel__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @mui/lab/TabPanel */ \"./node_modules/@mui/lab/esm/TabPanel/TabPanel.js\");\n/* harmony import */ var _mui_material_Stack__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @mui/material/Stack */ \"./node_modules/@mui/material/esm/Stack/Stack.js\");\n/* harmony import */ var _Service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Service */ \"./src/Service.js\");\n/* harmony import */ var _mui_material_Button__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @mui/material/Button */ \"./node_modules/@mui/material/esm/Button/Button.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n/* harmony import */ var _editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./editor */ \"./src/editor.js\");\n/* harmony import */ var _Editable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Editable */ \"./src/Editable.js\");\n/* harmony import */ var antd_locale_zh_CN__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! antd/locale/zh_CN */ \"./node_modules/antd/lib/locale/zh_CN.js\");\n/* harmony import */ var tabulator_tables__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! tabulator-tables */ \"./node_modules/tabulator-tables/dist/js/tabulator_esm.mjs\");\n/* harmony import */ var tabulator_tables_dist_css_tabulator_min_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! tabulator-tables/dist/css/tabulator.min.css */ \"./node_modules/tabulator-tables/dist/css/tabulator.min.css\");\n/* harmony import */ var _Tabulator_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Tabulator.css */ \"./src/Tabulator.css\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n //import Tabulator library\n //import Tabulator stylesheet\n\n\n/**\n * \n本条规定了工程量清单编码的表示方式：十二位阿拉伯数字及其设置规定。\n各位数字的含义是：一、二位为专业工程代码（01—房屋建筑与装饰工程；02—仿古建筑工程；\n03—通用安装工程；04—市政工程；05—园林绿化工程；06—矿山工程；07—构筑物工程；08—城市\n轨道交通工程；09—爆破工程。以后进入国标的专业工程代码以此类推）；三、四位为附录分类顺序码；\n五、六位为分部工程顺序码；七、八、九位为分项工程项目名称顺序码；十至十二位为清单项目名称\n顺序码。\n */\n\nfunction Qingdan3(_ref) {\n  var name = _ref.name,\n    bh = _ref.bh,\n    bt = _ref.bt,\n    rgde = _ref.rgde,\n    jxde = _ref.jxde,\n    clde = _ref.clde,\n    beizhu = _ref.beizhu,\n    beizhuFK = _ref.beizhuFK,\n    clickCallback = _ref.clickCallback,\n    loadingCallback = _ref.loadingCallback,\n    dingeclick = _ref.dingeclick,\n    tihuanCallback = _ref.tihuanCallback,\n    tihuanClick = _ref.tihuanClick,\n    suanshiCallback = _ref.suanshiCallback;\n  var myTable = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var myRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(\"1\"),\n    _React$useState2 = _slicedToArray(_React$useState, 2),\n    valueTab = _React$useState2[0],\n    setValueTab = _React$useState2[1];\n  var handleChange = function handleChange(event, newValue) {\n    setValueTab(newValue);\n  };\n  var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState4 = _slicedToArray(_React$useState3, 2),\n    rcjhl = _React$useState4[0],\n    setRcjhl = _React$useState4[1];\n  var _React$useState5 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState6 = _slicedToArray(_React$useState5, 2),\n    rcjhl2 = _React$useState6[0],\n    setRcjhl2 = _React$useState6[1];\n  var _React$useState7 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState8 = _slicedToArray(_React$useState7, 2),\n    fuzhu = _React$useState8[0],\n    setFuzhu = _React$useState8[1]; //展示用的附注行\n  var _React$useState9 = react__WEBPACK_IMPORTED_MODULE_0__.useState([{\n      'key': '0',\n      '说明': '无'\n    }, {\n      'key': '1',\n      '说明': '湿拌砂浆'\n    }, {\n      'key': '2',\n      '说明': '散装干拌（混）砂浆'\n    }, {\n      'key': '3',\n      '说明': '袋装干拌（混）砂浆'\n    }]),\n    _React$useState0 = _slicedToArray(_React$useState9, 2),\n    yuban = _React$useState0[0],\n    setYuban = _React$useState0[1];\n  var _React$useState1 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState10 = _slicedToArray(_React$useState1, 2),\n    tuijian = _React$useState10[0],\n    setTuijian = _React$useState10[1];\n  var _React$useState11 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState12 = _slicedToArray(_React$useState11, 2),\n    fuzhuEnable = _React$useState12[0],\n    setFuzhuEnable = _React$useState12[1];\n  var _React$useState13 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n    _React$useState14 = _slicedToArray(_React$useState13, 2),\n    yubanEnable = _React$useState14[0],\n    setYubanEnable = _React$useState14[1];\n  var hotRcjRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var hotTuijianRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var highlight = react__WEBPACK_IMPORTED_MODULE_0__.useRef([]);\n  var debmRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var lastClickRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var tuijianRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var tuijianTable = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var rcj2Ref = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var rcj2Table = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var rcjRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var rcjTable = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var _React$useState15 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState16 = _slicedToArray(_React$useState15, 2),\n    detail = _React$useState16[0],\n    setDetail = _React$useState16[1];\n  var selectedRowKeysTable = react__WEBPACK_IMPORTED_MODULE_0__.useRef([]);\n  var selectedRowKeysTableParent = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var beizhuFKRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var rgdeRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var jxdeRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var cldeRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var isQdrcj = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false);\n  var _React$useState17 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState18 = _slicedToArray(_React$useState17, 2),\n    selectedRowKeys = _React$useState18[0],\n    setSelectedRowKeys = _React$useState18[1];\n  var _React$useState19 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState20 = _slicedToArray(_React$useState19, 2),\n    selectedRowKeys2 = _React$useState20[0],\n    setSelectedRowKeys2 = _React$useState20[1];\n  var onSelectChange = function onSelectChange(newSelectedRowKeys) {\n    console.log('selectedRowKeys changed: ', newSelectedRowKeys);\n    setSelectedRowKeys(newSelectedRowKeys);\n    var _handleBeizhu = (0,_editor__WEBPACK_IMPORTED_MODULE_3__.handleBeizhu)(beizhuFKRef.current, selectedRowKeysTable.current[0], newSelectedRowKeys, fuzhu),\n      _handleBeizhu2 = _slicedToArray(_handleBeizhu, 2),\n      newData = _handleBeizhu2[0],\n      newHl = _handleBeizhu2[1];\n    if (newData) {\n      myTable.current.updateData(newData.filter(function (x) {\n        return x['key'] == selectedRowKeysTableParent.current;\n      }));\n      var y = [];\n      for (var i = 1; i < newHl.length; i++) {\n        y.push({\n          'ID': newHl[i][0],\n          '人材机编码': newHl[i][1],\n          '名称': newHl[i][2],\n          '规格型号': newHl[i][3],\n          '单位': newHl[i][4],\n          '单价': newHl[i][5],\n          '产地': newHl[i][6],\n          '供应厂商': newHl[i][7],\n          '人材机类别': newHl[i][8],\n          '甲供标志': newHl[i][9],\n          '含量': newHl[i][10],\n          '合价': newHl[i][11],\n          '暂估价标志': newHl[i][12],\n          '主要材料标志': newHl[i][13],\n          '主材标志': newHl[i][14],\n          '设备标志': newHl[i][15]\n        });\n      }\n      setRcjhl(y);\n      if (rcjTable.current) {\n        rcjTable.current.replaceData(y);\n      }\n    }\n  };\n  var onSelectChange2 = function onSelectChange2(newSelectedRowKeys) {\n    setSelectedRowKeys2(newSelectedRowKeys);\n    var _handleYuban = (0,_editor__WEBPACK_IMPORTED_MODULE_3__.handleYuban)(selectedRowKeysTable.current[0], newSelectedRowKeys),\n      _handleYuban2 = _slicedToArray(_handleYuban, 2),\n      newData = _handleYuban2[0],\n      newHl = _handleYuban2[1];\n    if (newData) {\n      myTable.current.updateData(newData.filter(function (x) {\n        return x['key'] == selectedRowKeysTableParent.current;\n      }));\n      var y = [];\n      for (var i = 1; i < newHl.length; i++) {\n        y.push({\n          'ID': newHl[i][0],\n          '人材机编码': newHl[i][1],\n          '名称': newHl[i][2],\n          '规格型号': newHl[i][3],\n          '单位': newHl[i][4],\n          '单价': newHl[i][5],\n          '产地': newHl[i][6],\n          '供应厂商': newHl[i][7],\n          '人材机类别': newHl[i][8],\n          '甲供标志': newHl[i][9],\n          '含量': newHl[i][10],\n          '合价': newHl[i][11],\n          '暂估价标志': newHl[i][12],\n          '主要材料标志': newHl[i][13],\n          '主材标志': newHl[i][14],\n          '设备标志': newHl[i][15]\n        });\n      }\n      setRcjhl(y);\n      if (rcjTable.current) {\n        rcjTable.current.replaceData(y);\n      }\n    }\n  };\n\n  /**fuzhu select */\n  var rowSelection = {\n    selectedRowKeys: selectedRowKeys,\n    onChange: onSelectChange,\n    getCheckboxProps: function getCheckboxProps(record) {\n      return {\n        disabled: !fuzhuEnable\n      };\n    }\n  };\n  var rowSelection2 = {\n    type: 'radio',\n    selectedRowKeys: selectedRowKeys2,\n    selections: [antd__WEBPACK_IMPORTED_MODULE_8__[\"default\"].SELECTION_NONE],\n    onChange: onSelectChange2,\n    getCheckboxProps: function getCheckboxProps(record) {\n      return {\n        disabled: !yubanEnable\n      };\n    }\n  };\n  var editCheck = function editCheck(cell) {\n    //cell - the cell component for the editable cell\n\n    //get row data\n    //console.log(cell);\n    if (cell._cell.row.data['序号']) return false;\n    return true;\n  };\n  var editCheckRcj = function editCheckRcj(cell) {\n    //cell - the cell component for the editable cell\n\n    //get row data\n    //console.log(cell);\n    if (isQdrcj.current) return false;\n    return true;\n  };\n  var sparklineFormatter = function sparklineFormatter(cell, formatterParams, onRendered) {\n    for (var i = 0; i < highlight.current.length; i++) {\n      var entry = highlight.current[i];\n      if (entry.row + 1 == cell._cell.row.position && entry.col + 1 == cell._cell.column.getPosition()) {\n        cell.getElement().style.fontWeight = 'bold';\n        cell.getElement().style.color = 'green';\n        cell.getElement().style.background = '#d7f1e1';\n      }\n    }\n    return Number(cell.getValue()).toFixed(2).toString();\n  };\n  function handleSelect(row) {\n    selectedRowKeysTable.current = [row._row['data']['key']];\n    if (row._row.data['序号'] != null && row._row.data['序号'].length > 0) {\n      selectedRowKeysTableParent.current = row._row['data']['key'];\n      setFuzhu([]);\n      setYubanEnable(false);\n      setSelectedRowKeys2([]);\n      _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].generateQingdanrcj(name, bh, bt, row._row.data['清单编码']).then(function (x) {\n        var y = [];\n        for (var i = 1; i < x.length; i++) {\n          y.push({\n            'ID': x[i][0],\n            '人材机编码': x[i][1],\n            '名称': x[i][2],\n            '规格型号': x[i][3],\n            '单位': x[i][4],\n            '单价': x[i][5],\n            '产地': x[i][6],\n            '供应厂商': x[i][7],\n            '人材机类别': x[i][8],\n            '甲供标志': x[i][9],\n            '含量': x[i][10],\n            '合价': x[i][11],\n            '暂估价标志': x[i][12],\n            '主要材料标志': x[i][13],\n            '主材标志': x[i][14],\n            '设备标志': x[i][15]\n          });\n        }\n        setRcjhl(y);\n        if (rcjTable.current) {\n          rcjTable.current.replaceData(y);\n        }\n        isQdrcj.current = true;\n        highlight.current = [];\n      });\n      _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].generateQingdanTuijian(name, bh, bt, row._row.data['清单编码']).then(function (x) {\n        setTuijian(x);\n        if (tuijianTable.current) tuijianTable.current.replaceData(x);\n      });\n    } else {\n      setTuijian([]);\n      if (tuijianTable.current) tuijianTable.current.replaceData([]);\n      var row_parent = row._row;\n      while (row_parent.modules.dataTree.parent) {\n        row_parent = row_parent.modules.dataTree.parent;\n      }\n\n      //console.log(name, bh,bt,qdbm, selected[1]);\n      debmRef.current = row._row['data']['清单编码'];\n      selectedRowKeysTableParent.current = row_parent['data']['key'];\n      var qdbm = row_parent['data']['清单编码'];\n      var debm = row._row['data']['清单编码'];\n      console.log('debm=');\n      console.log(debm);\n      var danwei = row._row['data']['单位'];\n      clickCallback(qdbm, debm);\n      _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].generateDingercj(name, bh, bt, qdbm, debm, danwei).then(function (x) {\n        console.log(x);\n        var y = [];\n        for (var i = 1; i < x[0].length; i++) {\n          y.push({\n            'ID': x[0][i][0],\n            '人材机编码': x[0][i][1],\n            '名称': x[0][i][2],\n            '规格型号': x[0][i][3],\n            '单位': x[0][i][4],\n            '单价': x[0][i][5],\n            '产地': x[0][i][6],\n            '供应厂商': x[0][i][7],\n            '人材机类别': x[0][i][8],\n            '甲供标志': x[0][i][9],\n            '含量': x[0][i][10],\n            '合价': x[0][i][11],\n            '暂估价标志': x[0][i][12],\n            '主要材料标志': x[0][i][13],\n            '主材标志': x[0][i][14],\n            '设备标志': x[0][i][15]\n          });\n        }\n        setRcjhl(y);\n        if (rcjTable.current) {\n          rcjTable.current.replaceData(y);\n        }\n        setFuzhuEnable(x[1]);\n        setYubanEnable(x[1]);\n        setSelectedRowKeys2(x[2]);\n        //hotRcjRef.current?.hotInstance?.loadData(x);\n        isQdrcj.current = false;\n        var toHighlight = [];\n        for (var _i = 0; _i < y.length; _i++) {\n          var entry = y[_i];\n          var bianhao = entry['人材机编码'];\n          var rcjlb = entry['人材机类别'];\n          var hit = false;\n          if (Number(rcjlb) == 1 && rgdeRef.current) {\n            for (var j = 0; j < rgdeRef.current.length; j++) {\n              if (rgdeRef.current[j][\"CLBH\"] == bianhao) {\n                if (rgdeRef.current[j][\"CLMC\"] == entry['名称']) hit = true;\n                var danjia = Number(entry['单价']);\n                if (danjia != rgdeRef.current[j][\"YSJG\"]) {\n                  //console.log(`[${i},5]danjia bu yizhi`);\n                  toHighlight.push({\n                    row: _i,\n                    col: 5,\n                    renderer: \"customStylesRenderer\"\n                  });\n                }\n                var hanliang = Number(entry['含量']);\n                if (hanliang != rgdeRef.current[j][\"gr\"]) {\n                  //console.log(`[${i}, 10]hanliang bu yizhi`);\n                  toHighlight.push({\n                    row: _i,\n                    col: 10,\n                    renderer: \"customStylesRenderer\"\n                  });\n                }\n              }\n            }\n          }\n          if (Number(rcjlb) == 3 && jxdeRef.current) {\n            for (var _j = 0; _j < jxdeRef.current.length; _j++) {\n              if (jxdeRef.current[_j][\"jxbh\"] == bianhao) {\n                if (jxdeRef.current[_j][\"jxmc\"] == entry['名称']) hit = true;\n                var _danjia = Number(entry['单价']);\n                if (_danjia != jxdeRef.current[_j][\"tbdj\"]) {\n                  //console.log(`[${i},5]danjia bu yizhi`);\n                  toHighlight.push({\n                    row: _i,\n                    col: 5,\n                    renderer: \"customStylesRenderer\"\n                  });\n                }\n                var _hanliang = Number(entry['含量']);\n                if (_hanliang != jxdeRef.current[_j][\"sl\"]) {\n                  //console.log(`[${i}, 10]hanliang bu yizhi`);\n                  toHighlight.push({\n                    row: _i,\n                    col: 10,\n                    renderer: \"customStylesRenderer\"\n                  });\n                }\n              }\n            }\n          }\n          if (Number(rcjlb) == 2 && cldeRef.current) {\n            for (var _j2 = 0; _j2 < cldeRef.current.length; _j2++) {\n              if (cldeRef.current[_j2][\"CLBH\"] == bianhao) {\n                if (cldeRef.current[_j2][\"CLMC\"] == entry['名称']) hit = true;\n                var _danjia2 = Number(entry['单价']);\n                if (_danjia2 != cldeRef.current[_j2][\"YSJG\"]) {\n                  //console.log(`[${i},5]danjia bu yizhi`);\n                  toHighlight.push({\n                    row: _i,\n                    col: 5,\n                    renderer: \"customStylesRenderer\"\n                  });\n                }\n                var _hanliang2 = Number(entry['含量']);\n                if (_hanliang2 != cldeRef.current[_j2][\"SL\"]) {\n                  //console.log(`[${i}, 10]hanliang bu yizhi`);\n                  toHighlight.push({\n                    row: _i,\n                    col: 10,\n                    renderer: \"customStylesRenderer\"\n                  });\n                }\n              }\n            }\n          }\n          if (!hit) {\n            toHighlight.push({\n              row: _i,\n              col: 1,\n              renderer: \"customStylesRenderer\"\n            });\n          }\n        }\n        highlight.current = toHighlight;\n      });\n    }\n  }\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    myTable.current = new tabulator_tables__WEBPACK_IMPORTED_MODULE_9__.TabulatorFull(myRef.current, _defineProperty(_defineProperty({\n      index: \"key\",\n      height: 380,\n      data: detail,\n      //link data to table\n      reactiveData: false,\n      //enable data reactivity\n      dataTreeStartExpanded: true,\n      dataTree: true,\n      selectableRows: 1,\n      //make rows selectable\n      editTriggerEvent: \"dblclick\"\n    }, \"dataTreeStartExpanded\", function dataTreeStartExpanded(row, level) {\n      //console.log(row);\n      //console.log(level);\n      return true; //expand rows where the \"driver\" data field is true;\n    }), \"columns\", [\n    //Define Table Columns\n    {\n      title: \"序号\",\n      field: \"序号\",\n      width: 80,\n      headerSort: false,\n      frozen: true\n    },\n    //never hide this column\n    {\n      title: \"清单编码\",\n      field: \"清单编码\",\n      width: 120,\n      headerSort: false,\n      frozen: true,\n      formatter: \"textarea\"\n    }, {\n      title: \"名称\",\n      field: \"名称\",\n      width: 150,\n      headerSort: false,\n      formatter: \"textarea\"\n    },\n    //hide this column first\n    {\n      title: \"项目特征\",\n      field: \"项目特征\",\n      width: 150,\n      headerSort: false,\n      formatter: \"textarea\"\n    }, {\n      title: \"计算规则\",\n      field: \"计算规则\",\n      width: 150,\n      headerSort: false,\n      formatter: \"textarea\"\n    }, {\n      title: \"单位\",\n      field: \"单位\",\n      width: 100,\n      headerSort: false\n    }, {\n      title: \"数量\",\n      field: \"数量\",\n      width: 100,\n      headerSort: false,\n      editor: \"input\",\n      editable: editCheck\n    }, {\n      title: \"综合单价\",\n      field: \"综合单价\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"合价\",\n      field: \"合价\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"人工费\",\n      field: \"人工费\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"主材费\",\n      field: \"主材费\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"设备费\",\n      field: \"设备费\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"辅材费\",\n      field: \"辅材费\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"材料费\",\n      field: \"材料费\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"机械费\",\n      field: \"机械费\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"管理费\",\n      field: \"管理费\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"利润\",\n      field: \"利润\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"暂估价\",\n      field: \"暂估价\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"综合人工工日\",\n      field: \"综合人工工日\",\n      width: 100,\n      headerSort: false\n    }]));\n    myTable.current.on(\"cellDblClick\", function (e, cell) {\n      //e - the click event object\n      //cell - cell component\n      console.log(cell);\n    });\n    myTable.current.on(\"rowSelected\", handleSelect);\n    myTable.current.on(\"cellEdited\", function (cell) {\n      //console.log(\"edited\");\n      //console.log();\n      var key = cell._cell.row.data['key'];\n      myTable.current.deselectRow();\n      var _updateShuliang = (0,_editor__WEBPACK_IMPORTED_MODULE_3__.updateShuliang)(cell._cell.row.data['数量'], selectedRowKeysTable.current[0]),\n        _updateShuliang2 = _slicedToArray(_updateShuliang, 2),\n        success = _updateShuliang2[0],\n        data = _updateShuliang2[1];\n      if (success) {\n        myTable.current.updateData(data.filter(function (x) {\n          return x['key'] == selectedRowKeysTableParent.current;\n        })).then(function () {\n          var getRow = myTable.current.getRows(); //get array of currently selected row components.\n          var component = null;\n          for (var i = 0; i < getRow.length; i++) {\n            var entry = getRow[i]._row.modules.dataTree.children;\n            for (var j = 0; j < entry.length; j++) {\n              var child = entry[j];\n              if (child.data['key'] == key) {\n                //console.log(child);\n                component = child.component;\n                break;\n              }\n            }\n          }\n          component.select();\n          handleSelect(component);\n          //handleSelect(getRow[0]);\n        });\n      }\n    });\n    myTable.current.on(\"tableBuilt\", function () {\n      _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].generateQingdanmingxi(name, bh, bt).then(function (x) {\n        myTable.current.replaceData(x);\n      });\n    });\n  }, [bh, bt]);\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    //console.log(\"rgde changed\");\n    //console.log(rgde);\n    rgdeRef.current = rgde;\n    jxdeRef.current = jxde;\n    cldeRef.current = clde;\n    if (isQdrcj.current) {\n      highlight.current = [];\n    } else {\n      var toHighlight = [];\n      for (var i = 0; i < rcjhl.length; i++) {\n        var entry = rcjhl[i];\n        var bianhao = entry['人材机编码'];\n        var rcjlb = entry['人材机类别'];\n        var hit = false;\n        if (Number(rcjlb) == Number(1) && rgde) {\n          for (var j = 0; j < rgde.length; j++) {\n            if (rgde[j][\"CLBH\"] == bianhao) {\n              if (rgde[j][\"CLMC\"] == entry['名称']) hit = true;\n              var danjia = Number(entry['单价']);\n              if (danjia != rgde[j][\"YSJG\"]) {\n                //console.log(`[${i},5]danjia bu yizhi`);\n                toHighlight.push({\n                  row: i,\n                  col: 5,\n                  renderer: \"customStylesRenderer\"\n                });\n              }\n              var hanliang = Number(entry['含量']);\n              if (hanliang != rgde[j][\"gr\"]) {\n                //console.log(`[${i}, 10]hanliang bu yizhi`);\n                toHighlight.push({\n                  row: i,\n                  col: 10,\n                  renderer: \"customStylesRenderer\"\n                });\n              }\n            }\n          }\n        }\n        if (Number(rcjlb) == Number(3) && jxde) {\n          for (var _j3 = 0; _j3 < jxde.length; _j3++) {\n            if (jxde[_j3][\"jxbh\"] == bianhao) {\n              if (jxde[_j3][\"jxmc\"] == entry['名称']) hit = true;\n              var _danjia3 = Number(entry['单价']);\n              if (_danjia3 != jxde[_j3][\"tbdj\"]) {\n                //console.log(`[${i},5]danjia bu yizhi`);\n                toHighlight.push({\n                  row: i,\n                  col: 5,\n                  renderer: \"customStylesRenderer\"\n                });\n              }\n              var _hanliang3 = Number(entry['含量']);\n              if (_hanliang3 != jxde[_j3][\"sl\"]) {\n                //console.log(`[${i}, 10]hanliang bu yizhi`);\n                toHighlight.push({\n                  row: i,\n                  col: 10,\n                  renderer: \"customStylesRenderer\"\n                });\n              }\n            }\n          }\n        }\n        if (Number(rcjlb) == Number(2) && clde) {\n          for (var _j4 = 0; _j4 < clde.length; _j4++) {\n            if (clde[_j4][\"CLBH\"] == bianhao) {\n              if (clde[_j4][\"CLMC\"] == entry['名称']) hit = true;\n              var _danjia4 = Number(entry['单价']);\n              if (_danjia4 != clde[_j4][\"YSJG\"]) {\n                //console.log(`[${i},5]danjia bu yizhi`);\n                toHighlight.push({\n                  row: i,\n                  col: 5,\n                  renderer: \"customStylesRenderer\"\n                });\n              }\n              var _hanliang4 = Number(entry['含量']);\n              if (_hanliang4 != clde[_j4][\"SL\"]) {\n                //console.log(`[${i}, 10]hanliang bu yizhi`);\n                toHighlight.push({\n                  row: i,\n                  col: 10,\n                  renderer: \"customStylesRenderer\"\n                });\n              }\n            }\n          }\n        }\n        if (!hit) {\n          toHighlight.push({\n            row: i,\n            col: 1,\n            renderer: \"customStylesRenderer\"\n          });\n        }\n      }\n      //console.log(toHighlight);\n      highlight.current = toHighlight;\n    }\n    var bzrcjhl = [/*[\"人材机编码\", \"名称\", \"单位\", \"单价\", \"合价\", \"含量\"]*/];\n    if (rgde) for (var _i2 = 0; _i2 < rgde.length; _i2++) {\n      bzrcjhl.push({\n        '人材机编码': rgde[_i2][\"CLBH\"],\n        '名称': rgde[_i2][\"CLMC\"],\n        '单位': rgde[_i2][\"JLDW\"],\n        '单价': rgde[_i2][\"YSJG\"],\n        '合价': rgde[_i2][\"gf\"],\n        '含量': rgde[_i2][\"gr\"]\n      });\n    }\n    if (clde) for (var _i3 = 0; _i3 < clde.length; _i3++) {\n      bzrcjhl.push({\n        '人材机编码': clde[_i3][\"CLBH\"],\n        '名称': clde[_i3][\"CLMC\"],\n        '单位': clde[_i3][\"JLDW\"],\n        '单价': clde[_i3][\"YSJG\"],\n        '合价': clde[_i3][\"HJ\"],\n        '含量': clde[_i3][\"SL\"]\n      });\n    }\n    if (jxde) for (var _i4 = 0; _i4 < jxde.length; _i4++) {\n      bzrcjhl.push({\n        '人材机编码': jxde[_i4][\"jxbh\"],\n        '名称': jxde[_i4][\"jxmc\"],\n        '单位': jxde[_i4][\"DW\"],\n        '单价': jxde[_i4][\"tbdj\"],\n        '合价': jxde[_i4][\"hj\"],\n        '含量': jxde[_i4][\"sl\"]\n      });\n    }\n    setRcjhl2(bzrcjhl);\n  }, [rgde, jxde, clde]);\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    console.log(beizhu);\n    var result = [];\n    if (beizhu != null) {\n      var keys = Object.keys(beizhu[\"BZBH\"]);\n      for (var i = 0; i < keys.length; i++) {\n        var key = keys[i];\n        result.push({\n          'key': i + 1,\n          '序号': i + 1,\n          '编号': beizhu[\"BZBH\"][key],\n          '说明': beizhu[\"SM\"][key]\n        }); //序号很重要\n      }\n      setFuzhu(result);\n      var newSelect = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.extractFuzhu)(debmRef.current);\n      setSelectedRowKeys(newSelect);\n      //setSelectedRowKeys([1]);\n    }\n  }, [beizhu]);\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    beizhuFKRef.current = beizhuFK;\n  }, [beizhuFK]);\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    myTable.current.deselectRow();\n    //console.log(dingeclick);\n    if (selectedRowKeysTable.current.length > 0) {\n      var _changguidinge = (0,_editor__WEBPACK_IMPORTED_MODULE_3__.changguidinge)(JSON.parse(dingeclick), selectedRowKeysTable.current[0]),\n        _changguidinge2 = _slicedToArray(_changguidinge, 3),\n        success = _changguidinge2[0],\n        data = _changguidinge2[1],\n        key = _changguidinge2[2];\n      if (success) {\n        myTable.current.updateData(data.filter(function (x) {\n          return x['key'] == selectedRowKeysTableParent.current;\n        })).then(function () {\n          var getRow = myTable.current.getRows(); //get array of currently selected row components.\n          var component = null;\n          for (var i = 0; i < getRow.length; i++) {\n            var entry = getRow[i]._row.modules.dataTree.children;\n            for (var j = 0; j < entry.length; j++) {\n              var child = entry[j];\n              if (child.data['key'] == key) {\n                //console.log(child);\n                component = child.component;\n                break;\n              }\n            }\n          }\n          component.select();\n          handleSelect(component);\n        });\n      }\n    }\n  }, [dingeclick] //常规添加定额\n  );\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    //console.log(dingeclick);\n    if (selectedRowKeysTable.current.length > 0) {\n      var data = (0,_editor__WEBPACK_IMPORTED_MODULE_3__.huan)(JSON.parse(tihuanClick), selectedRowKeysTable.current[0]);\n      myTable.current.updateData(data.filter(function (x) {\n        return x['key'] == selectedRowKeysTableParent.current;\n      })).then(function () {\n        var getRow = myTable.current.getRows(); //get array of currently selected row components.\n        var component = null;\n        for (var i = 0; i < getRow.length; i++) {\n          var entry = getRow[i]._row.modules.dataTree.children;\n          for (var j = 0; j < entry.length; j++) {\n            var child = entry[j];\n            if (child.data['key'] == selectedRowKeysTable.current[0]) {\n              //console.log(child);\n              component = child.component;\n              break;\n            }\n          }\n        }\n        handleSelect(component);\n      });\n    }\n  }, [tihuanClick] //替换定额人材机\n  );\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    if (tuijianRef.current != null) {\n      tuijianTable.current = new tabulator_tables__WEBPACK_IMPORTED_MODULE_9__.TabulatorFull(tuijianRef.current, {\n        index: \"key\",\n        height: 200,\n        data: tuijian,\n        //link data to table\n        reactiveData: false,\n        //enable data reactivity\n        dataTreeStartExpanded: false,\n        dataTree: false,\n        selectableRows: 1,\n        //make rows selectable\n\n        columns: [\n        //Define Table Columns\n        {\n          title: \"ID\",\n          field: \"ID\",\n          width: 80,\n          headerSort: false\n        },\n        //never hide this column\n        {\n          title: \"定额编号\",\n          field: \"定额编号\",\n          width: 120,\n          headerSort: false,\n          formatter: \"textarea\"\n        }, {\n          title: \"工程量名称\",\n          field: \"工程量名称\",\n          width: 150,\n          headerSort: false,\n          formatter: \"textarea\"\n        },\n        //hide this column first\n        {\n          title: \"工作内容\",\n          field: \"工作内容\",\n          width: 150,\n          headerSort: false,\n          formatter: \"textarea\"\n        }]\n      });\n      tuijianTable.current.on(\"tableBuilt\", function () {\n        tuijianTable.current.replaceData(tuijian);\n      });\n    }\n    if (rcj2Ref.current != null) {\n      rcj2Table.current = new tabulator_tables__WEBPACK_IMPORTED_MODULE_9__.TabulatorFull(rcj2Ref.current, {\n        index: \"key\",\n        height: 200,\n        data: rcjhl2,\n        //link data to table\n        reactiveData: false,\n        //enable data reactivity\n        dataTreeStartExpanded: false,\n        dataTree: false,\n        selectableRows: 1,\n        //make rows selectable\n\n        columns: [\n        //Define Table Columns\n        {\n          title: \"人材机编码\",\n          field: \"人材机编码\",\n          width: 80,\n          headerSort: false\n        },\n        //never hide this column\n        {\n          title: \"名称\",\n          field: \"名称\",\n          width: 120,\n          headerSort: false,\n          formatter: \"textarea\"\n        }, {\n          title: \"单位\",\n          field: \"单位\",\n          width: 150,\n          headerSort: false,\n          formatter: \"textarea\"\n        },\n        //hide this column first\n        {\n          title: \"单价\",\n          field: \"单价\",\n          width: 150,\n          headerSort: false,\n          formatter: \"money\"\n        }, {\n          title: \"合价\",\n          field: \"合价\",\n          width: 150,\n          headerSort: false,\n          formatter: \"money\"\n        }, {\n          title: \"含量\",\n          field: \"含量\",\n          width: 150,\n          headerSort: false,\n          formatter: \"textarea\"\n        }]\n      });\n      rcj2Table.current.on(\"tableBuilt\", function () {\n        rcj2Table.current.replaceData(rcjhl2);\n      });\n    }\n    if (rcjRef.current != null) {\n      rcjTable.current = new tabulator_tables__WEBPACK_IMPORTED_MODULE_9__.TabulatorFull(rcjRef.current, {\n        index: \"key\",\n        height: 200,\n        data: rcjhl,\n        //link data to table\n        reactiveData: false,\n        //enable data reactivity\n        dataTreeStartExpanded: false,\n        dataTree: false,\n        selectableRows: 1,\n        //make rows selectable\n        editTriggerEvent: \"dblclick\",\n        columns: [\n        //Define Table Columns\n        {\n          title: \"ID\",\n          field: \"ID\",\n          width: 80,\n          headerSort: false\n        }, {\n          title: \"人材机编码\",\n          field: \"人材机编码\",\n          width: 80,\n          headerSort: false\n        },\n        //never hide this column\n        {\n          title: \"名称\",\n          field: \"名称\",\n          width: 120,\n          headerSort: false,\n          formatter: \"textarea\",\n          editor: \"input\",\n          editable: editCheckRcj\n        }, {\n          title: \"规格型号\",\n          field: \"规格型号\",\n          width: 80,\n          headerSort: false,\n          editor: \"input\",\n          editable: editCheckRcj\n        }, {\n          title: \"单位\",\n          field: \"单位\",\n          width: 80,\n          headerSort: false,\n          formatter: \"textarea\"\n        },\n        //hide this column first\n        {\n          title: \"单价\",\n          field: \"单价\",\n          width: 80,\n          headerSort: false,\n          formatter: sparklineFormatter,\n          editor: \"input\",\n          editable: editCheckRcj\n        }, {\n          title: \"产地\",\n          field: \"产地\",\n          width: 80,\n          headerSort: false\n        }, {\n          title: \"供应厂商\",\n          field: \"供应厂商\",\n          width: 80,\n          headerSort: false\n        }, {\n          title: \"人材机类别\",\n          field: \"人材机类别\",\n          width: 80,\n          headerSort: false\n        }, {\n          title: \"甲供标志\",\n          field: \"甲供标志\",\n          width: 80,\n          headerSort: false,\n          formatter: \"textarea\"\n        }, {\n          title: \"含量\",\n          field: \"含量\",\n          width: 80,\n          headerSort: false,\n          formatter: \"money\",\n          formatterParams: {\n            precision: 4\n          },\n          editor: \"input\",\n          editable: editCheckRcj\n        }, {\n          title: \"合价\",\n          field: \"合价\",\n          width: 80,\n          headerSort: false,\n          formatter: \"money\"\n        }, {\n          title: \"暂估价标志\",\n          field: \"暂估价标志\",\n          width: 80,\n          headerSort: false,\n          formatter: \"textarea\"\n        }, {\n          title: \"主要材料标志\",\n          field: \"主要材料标志\",\n          width: 100,\n          headerSort: false,\n          formatter: \"textarea\"\n        }, {\n          title: \"主材标志\",\n          field: \"主材标志\",\n          width: 80,\n          headerSort: false,\n          formatter: \"textarea\"\n        }, {\n          title: \"设备标志\",\n          field: \"设备标志\",\n          width: 80,\n          headerSort: false,\n          formatter: \"textarea\"\n        }]\n      });\n      rcjTable.current.on(\"tableBuilt\", function () {\n        rcjTable.current.replaceData(rcjhl);\n      });\n      rcjTable.current.on(\"cellDblClick\", function (e, cell) {\n        //e - the click event object\n        //cell - cell component\n        if (cell._cell.column.getPosition() == 2 && !isQdrcj.current) {\n          tihuanCallback(cell._cell.row.position, cell._cell.column.getPosition());\n        }\n      });\n      rcjTable.current.on(\"cellEdited\", function (cell) {\n        var data = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.copy)(cell._cell.table.getData());\n        for (var i = 0; i < data.length; i++) {\n          data[i]['合价'] = Number(data[i]['单价']) * Number(data[i]['含量']);\n        }\n        setRcjhl(data);\n        if (rcjTable.current) {\n          rcjTable.current.replaceData(data);\n        }\n        var data2 = [['ID', '人材机编码', '名称', '规格型号', '单位', '单价', '产地', '供应厂商', '人材机类别', '甲供标志', '含量', '合价', '暂估价标志', '主要材料标志', '主材标志', '设备标志']];\n        for (var _i5 = 0; _i5 < data.length; _i5++) {\n          data2.push([data[_i5]['ID'], data[_i5]['人材机编码'], data[_i5]['名称'], data[_i5]['规格型号'], data[_i5]['单位'], data[_i5]['单价'], data[_i5]['产地'], data[_i5]['供应厂商'], data[_i5]['人材机类别'], data[_i5]['甲供标志'], data[_i5]['含量'], data[_i5]['合价'], data[_i5]['暂估价标志'], data[_i5]['主要材料标志'], data[_i5]['主材标志'], data[_i5]['设备标志']]);\n        }\n        var newData = (0,_editor__WEBPACK_IMPORTED_MODULE_3__.updateDercj)(selectedRowKeysTable.current[0], data2);\n        myTable.current.updateData(newData.filter(function (x) {\n          return x['key'] == selectedRowKeysTableParent.current;\n        })).then(function () {\n          var getRow = myTable.current.getRows(); //get array of currently selected row components.\n          var component = null;\n          for (var _i6 = 0; _i6 < getRow.length; _i6++) {\n            var entry = getRow[_i6]._row.modules.dataTree.children;\n            for (var j = 0; j < entry.length; j++) {\n              var child = entry[j];\n              if (child.data['key'] == selectedRowKeysTable.current[0]) {\n                //console.log(child);\n                component = child.component;\n                break;\n              }\n            }\n          }\n          handleSelect(component);\n        });\n      });\n    }\n  }, [valueTab]);\n  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(_mui_material_Stack__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n    spacing: 2,\n    children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(_mui_material_Box__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n      children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(_mui_material_Stack__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n        direction: \"row\",\n        spacing: 2,\n        children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_mui_material_Button__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n          variant: \"outlined\",\n          size: \"small\",\n          onClick: function onClick() {\n            if (selectedRowKeysTable.current.length > 0) {\n              var getRow = myTable.current.getRows(); //get array of currently selected row components.\n              var hit = false;\n              for (var i = 0; i < getRow.length; i++) {\n                if (getRow[i]._row.data['key'] == selectedRowKeysTable.current[0]) {\n                  hit = true;\n                }\n              }\n              if (hit) {\n                suanshiCallback();\n              }\n            }\n          },\n          children: \"\\u5B9A\\u989D\\uFF08\\u7B97\\u5F0F\\uFF09\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_mui_material_Button__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n          variant: \"outlined\",\n          size: \"small\",\n          onClick: function onClick() {\n            if (selectedRowKeysTable.current.length > 0) {\n              var _danxiangdinge = (0,_editor__WEBPACK_IMPORTED_MODULE_3__.danxiangdinge)(selectedRowKeysTable.current[0]),\n                _danxiangdinge2 = _slicedToArray(_danxiangdinge, 2),\n                success = _danxiangdinge2[0],\n                data = _danxiangdinge2[1];\n              if (success) {\n                myTable.current.updateData(data.filter(function (x) {\n                  return x['key'] == selectedRowKeysTableParent.current;\n                })).then(function () {\n                  selectedRowKeysTable.current = [];\n                  selectedRowKeysTableParent.current = null;\n                  setRcjhl([]);\n                  if (rcjTable.current) {\n                    rcjTable.current.replaceData([]);\n                  }\n                  setFuzhu([]);\n                  setSelectedRowKeys2([]);\n                  setYubanEnable(false);\n                  isQdrcj.current = true;\n                  highlight.current = [];\n                });\n              }\n            }\n          },\n          children: \"\\u5355\\u9879\\u5B9A\\u989D\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_mui_material_Button__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n          variant: \"outlined\",\n          size: \"small\",\n          onClick: function onClick() {\n            if (selectedRowKeysTable.current.length > 0) {\n              var newData = (0,_editor__WEBPACK_IMPORTED_MODULE_3__.shanchu)(selectedRowKeysTable.current[0]);\n              myTable.current.updateData(newData.filter(function (x) {\n                return x['key'] == selectedRowKeysTableParent.current;\n              })).then(function () {\n                if (newData.filter(function (x) {\n                  return x['key'] == selectedRowKeysTable.current[0];\n                }).length == 0) {\n                  selectedRowKeysTable.current = [];\n                  selectedRowKeysTableParent.current = [];\n                  setRcjhl([]);\n                  if (rcjTable.current) {\n                    rcjTable.current.replaceData([]);\n                  }\n                  setFuzhu([]);\n                  setSelectedRowKeys2([]);\n                  setYubanEnable(false);\n                  isQdrcj.current = true;\n                  highlight.current = [];\n                }\n              });\n            }\n          },\n          children: \"\\u5220\\u9664\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_mui_material_Button__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n          variant: \"outlined\",\n          size: \"small\",\n          onClick: function onClick() {\n            var newData = (0,_editor__WEBPACK_IMPORTED_MODULE_3__.undo)();\n            myTable.current.updateData(newData).then(function () {\n              selectedRowKeysTable.current = [];\n              selectedRowKeysTableParent.current = null;\n              setRcjhl([]);\n              if (rcjTable.current) {\n                rcjTable.current.replaceData([]);\n              }\n              setFuzhu([]);\n              setSelectedRowKeys2([]);\n              setYubanEnable(false);\n              isQdrcj.current = true;\n              highlight.current = [];\n            });\n          },\n          children: \"\\u64A4\\u9500\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_mui_material_Button__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n          variant: \"outlined\",\n          size: \"small\",\n          onClick: function onClick() {\n            var newData = (0,_editor__WEBPACK_IMPORTED_MODULE_3__.redo)();\n            myTable.current.updateData(newData).then(function () {\n              selectedRowKeysTable.current = [];\n              selectedRowKeysTableParent.current = null;\n              setRcjhl([]);\n              if (rcjTable.current) {\n                rcjTable.current.replaceData([]);\n              }\n              setFuzhu([]);\n              setSelectedRowKeys2([]);\n              setYubanEnable(false);\n              isQdrcj.current = true;\n              highlight.current = [];\n            });\n          },\n          children: \"\\u91CD\\u505A\"\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_mui_material_Button__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n          variant: \"outlined\",\n          size: \"small\",\n          onClick: function onClick() {\n            console.log(\"save to cloud\");\n            loadingCallback();\n          },\n          children: \"\\u4FDD\\u5B58\"\n        })]\n      }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"div\", {\n        ref: myRef\n      })]\n    }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_mui_material_Box__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n      children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(_mui_lab_TabContext__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n        value: valueTab,\n        children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_mui_material_Box__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n          sx: {\n            borderBottom: 1,\n            borderColor: 'divider'\n          },\n          children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(_mui_lab_TabList__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {\n            sx: {\n              minHeight: '24px'\n            },\n            onChange: handleChange,\n            \"aria-label\": \"lab API tabs example\",\n            children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_mui_material_Tab__WEBPACK_IMPORTED_MODULE_15__[\"default\"], {\n              sx: {\n                p: 0,\n                minHeight: '24px'\n              },\n              label: \"\\u4EBA\\u6750\\u673A\\u542B\\u91CF\",\n              value: \"1\"\n            }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_mui_material_Tab__WEBPACK_IMPORTED_MODULE_15__[\"default\"], {\n              sx: {\n                p: 0,\n                minHeight: '24px'\n              },\n              label: \"\\u6807\\u51C6\\u5B9A\\u989D\\u4EBA\\u6750\\u673A\\u542B\\u91CF\",\n              value: \"2\"\n            }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_mui_material_Tab__WEBPACK_IMPORTED_MODULE_15__[\"default\"], {\n              sx: {\n                p: 0,\n                minHeight: '24px'\n              },\n              label: \"\\u5B9A\\u989D\\u9644\\u6CE8\",\n              value: \"3\"\n            }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_mui_material_Tab__WEBPACK_IMPORTED_MODULE_15__[\"default\"], {\n              sx: {\n                p: 0,\n                minHeight: '24px'\n              },\n              label: \"\\u9884\\u62CC\\u7802\\u6D46\",\n              value: \"4\"\n            }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_mui_material_Tab__WEBPACK_IMPORTED_MODULE_15__[\"default\"], {\n              sx: {\n                p: 0,\n                minHeight: '24px'\n              },\n              label: \"\\u7EC4\\u4EF7\\u63A8\\u8350\",\n              value: \"5\"\n            })]\n          })\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_mui_lab_TabPanel__WEBPACK_IMPORTED_MODULE_16__[\"default\"], {\n          sx: {\n            p: 1\n          },\n          value: \"1\",\n          children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"div\", {\n            ref: rcjRef\n          })\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_mui_lab_TabPanel__WEBPACK_IMPORTED_MODULE_16__[\"default\"], {\n          sx: {\n            p: 1\n          },\n          value: \"2\",\n          children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"div\", {\n            ref: rcj2Ref\n          })\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_mui_lab_TabPanel__WEBPACK_IMPORTED_MODULE_16__[\"default\"], {\n          sx: {\n            p: 1\n          },\n          value: \"3\",\n          children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_mui_material_Box__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n            sx: {\n              maxHeight: \"190px\"\n            },\n            children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(antd__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n              locale: antd_locale_zh_CN__WEBPACK_IMPORTED_MODULE_18__[\"default\"],\n              theme: {\n                components: {\n                  Table: {\n                    /* here is your component tokens */\n                    cellPaddingBlock: 8\n                  }\n                }\n              },\n              children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(antd__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n                scroll: {\n                  x: 'max-content',\n                  y: 190\n                },\n                pagination: false,\n                rowSelection: rowSelection,\n                columns: [{\n                  title: '序号',\n                  dataIndex: '序号',\n                  width: 80\n                }, {\n                  title: '编号',\n                  dataIndex: '编号'\n                }, {\n                  title: '说明',\n                  dataIndex: '说明',\n                  width: 550\n                }],\n                dataSource: fuzhu\n              })\n            })\n          })\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_mui_lab_TabPanel__WEBPACK_IMPORTED_MODULE_16__[\"default\"], {\n          sx: {\n            p: 1\n          },\n          value: \"4\",\n          children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_mui_material_Box__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n            sx: {\n              maxHeight: \"190px\"\n            },\n            children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(antd__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n              locale: antd_locale_zh_CN__WEBPACK_IMPORTED_MODULE_18__[\"default\"],\n              theme: {\n                components: {\n                  Table: {\n                    /* here is your component tokens */\n                    cellPaddingBlock: 8\n                  }\n                }\n              },\n              children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(antd__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n                scroll: {\n                  x: 'max-content',\n                  y: 190\n                },\n                pagination: false,\n                rowSelection: rowSelection2,\n                columns: [{\n                  title: '说明',\n                  dataIndex: '说明',\n                  width: 550\n                }],\n                dataSource: yuban\n              })\n            })\n          })\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_mui_lab_TabPanel__WEBPACK_IMPORTED_MODULE_16__[\"default\"], {\n          sx: {\n            p: 1\n          },\n          value: \"5\",\n          children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"div\", {\n            ref: tuijianRef\n          })\n        })]\n      })\n    })]\n  });\n}\n\n//# sourceURL=webpack://front/./src/Qingdan3.js?");

/***/ }),

/***/ "./src/Qtxm.js":
/*!*********************!*\
  !*** ./src/Qtxm.js ***!
  \*********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ Qtxm)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _Service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Service */ \"./src/Service.js\");\n/* harmony import */ var _EditableSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./EditableSelect */ \"./src/EditableSelect.js\");\n/* harmony import */ var _EditableSelectGC__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EditableSelectGC */ \"./src/EditableSelectGC.js\");\n/* harmony import */ var _Editable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Editable */ \"./src/Editable.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n/* harmony import */ var tabulator_tables__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! tabulator-tables */ \"./node_modules/tabulator-tables/dist/js/tabulator_esm.mjs\");\n/* harmony import */ var tabulator_tables_dist_css_tabulator_min_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! tabulator-tables/dist/css/tabulator.min.css */ \"./node_modules/tabulator-tables/dist/css/tabulator.min.css\");\n/* harmony import */ var _Tabulator_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Tabulator.css */ \"./src/Tabulator.css\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\n\n\n\n//registerPlugin(NestedRows);\n\n\n\n\n\n\n //import Tabulator library\n //import Tabulator stylesheet\n\n\nfunction Qtxm(_ref) {\n  var data = _ref.data;\n  var myRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef();\n  var myTable = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    myTable.current = new tabulator_tables__WEBPACK_IMPORTED_MODULE_9__.TabulatorFull(myRef.current, _defineProperty(_defineProperty({\n      index: \"key\",\n      height: 600,\n      data: data,\n      //link data to table\n      reactiveData: false,\n      //enable data reactivity\n      dataTreeStartExpanded: true,\n      dataTree: true,\n      selectableRows: 1,\n      //make rows selectable\n      editTriggerEvent: \"dblclick\"\n    }, \"dataTreeStartExpanded\", function dataTreeStartExpanded(row, level) {\n      //console.log(row);\n      //console.log(level);\n      return true; //expand rows where the \"driver\" data field is true;\n    }), \"columns\", [\n    //Define Table Columns 序号\", \"名称\", \"取费基数\", \"计算基础\",\"费率\", \"金额\", \"类别\n    {\n      title: \"序号\",\n      field: \"序号\",\n      width: 80,\n      headerSort: false\n    },\n    //never hide this column\n    {\n      title: \"名称\",\n      field: \"名称\",\n      width: 150,\n      headerSort: false,\n      formatter: \"textarea\"\n    },\n    //hide this column first\n    {\n      title: \"金额\",\n      field: \"金额\",\n      width: 100,\n      formatter: \"money\"\n    }, {\n      title: \"项目类别\",\n      field: \"项目类别\",\n      width: 100,\n      formatter: \"textarea\"\n    }, {\n      title: \"备注\",\n      field: \"备注\",\n      width: 100,\n      formatter: \"textarea\"\n    }]));\n    myTable.current.on(\"cellDblClick\", function (e, cell) {\n      //e - the click event object\n      //cell - cell component\n      console.log(cell);\n    });\n\n    //myTable.current.on(\"rowSelected\", handleSelect);\n  }, [data]);\n  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"div\", {\n    ref: myRef\n  });\n}\n\n//# sourceURL=webpack://front/./src/Qtxm.js?");

/***/ }),

/***/ "./src/Qufei.js":
/*!**********************!*\
  !*** ./src/Qufei.js ***!
  \**********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ Qufei)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _mui_material_Box__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mui/material/Box */ \"./node_modules/@mui/material/esm/Box/Box.js\");\n/* harmony import */ var _Service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Service */ \"./src/Service.js\");\n/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd */ \"./node_modules/antd/es/config-provider/index.js\");\n/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd */ \"./node_modules/antd/es/table/index.js\");\n/* harmony import */ var _EditableSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./EditableSelect */ \"./src/EditableSelect.js\");\n/* harmony import */ var _EditableSelectGC__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EditableSelectGC */ \"./src/EditableSelectGC.js\");\n/* harmony import */ var _Editable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Editable */ \"./src/Editable.js\");\n/* harmony import */ var _mui_material_Button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mui/material/Button */ \"./node_modules/@mui/material/esm/Button/Button.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n\n\n\n\n\n\n\n\n\n//registerPlugin(NestedRows);\n\n\n\n\n\n\n\n\nfunction Qufei(_ref) {\n  var id = _ref.id,\n    qufeiCallback = _ref.qufeiCallback;\n  var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState([{\n      \"序号\": null,\n      \"清单编码\": null,\n      \"名称\": null,\n      \"项目特征\": null,\n      \"计算规则\": null,\n      \"单位\": null,\n      \"数量\": null,\n      \"综合单价\": null,\n      \"合价\": null,\n      \"人工费\": null,\n      \"主材费\": null,\n      \"设备费\": null,\n      \"辅材费\": null,\n      \"材料费\": null,\n      \"机械费\": null,\n      \"管理费\": null,\n      \"利润\": null,\n      \"暂估价\": null,\n      \"综合人工工日\": null,\n      \"备注\": null\n    }]),\n    _React$useState2 = _slicedToArray(_React$useState, 2),\n    detail = _React$useState2[0],\n    setDetail = _React$useState2[1];\n  var hotRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState4 = _slicedToArray(_React$useState3, 2),\n    expandedRowKeys = _React$useState4[0],\n    setExpandedRowKeys = _React$useState4[1];\n  var _React$useState5 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState6 = _slicedToArray(_React$useState5, 2),\n    selectedRowKeys = _React$useState6[0],\n    setSelectedRowKeys = _React$useState6[1];\n  var apply = function apply() {\n    var checked = _check(detail);\n    if (checked) {\n      qufeiCallback(id, detail);\n    }\n  };\n  var _check = function check(data) {\n    for (var i = 0; i < data.length; i++) {\n      if (data[i]['管理费（%）'].length == 0) {\n        return false;\n      }\n      if (data[i]['利润（%）'].length == 0) {\n        return false;\n      }\n      if (data[i].hasOwnProperty('children')) {\n        var checked = _check(data[i]['children']);\n        if (!checked) {\n          return false;\n        }\n        return true;\n      } else {\n        return true;\n      }\n    }\n  };\n  var rowSelection = {\n    selectedRowKeys: selectedRowKeys,\n    onChange: function onChange(selectedRowKeys) {\n      //console.log(selectedRowKeys);\n      if (selectedRowKeys.length > 0) {\n        setExpandedRowKeys([selectedRowKeys.at(-1)]);\n      } else {\n        setSelectedRowKeys(selectedRowKeys);\n        //handleSelection(selectedRowKeys);\n      }\n    }\n  };\n  var _traverse = function traverse(data) {\n    for (var i = 0; i < data.length; i++) {\n      if (data[i]['工程类型'].length > 0 && data[i]['工程类别'].length > 0) {\n        if (data[i]['工程类型'] == '建筑工程') {\n          if (data[i]['工程类别'] == '一类工程') {\n            data[i]['管理费（%）'] = '32';\n            data[i]['利润（%）'] = '12';\n            data[i]['备注'] = '';\n          } else if (data[i]['工程类别'] == '二类工程') {\n            data[i]['管理费（%）'] = '29';\n            data[i]['利润（%）'] = '12';\n            data[i]['备注'] = '';\n          } else {\n            data[i]['管理费（%）'] = '26';\n            data[i]['利润（%）'] = '12';\n            data[i]['备注'] = '';\n          }\n        }\n        if (data[i]['工程类型'] == '单独预制构件制作') {\n          if (data[i]['工程类别'] == '一类工程') {\n            data[i]['管理费（%）'] = '15';\n            data[i]['利润（%）'] = '6';\n            data[i]['备注'] = '';\n          } else if (data[i]['工程类别'] == '二类工程') {\n            data[i]['管理费（%）'] = '13';\n            data[i]['利润（%）'] = '6';\n            data[i]['备注'] = '';\n          } else {\n            data[i]['管理费（%）'] = '11';\n            data[i]['利润（%）'] = '6';\n            data[i]['备注'] = '';\n          }\n        }\n        if (data[i]['工程类型'] == '打预制桩、单独构件吊装') {\n          if (data[i]['工程类别'] == '一类工程') {\n            data[i]['管理费（%）'] = '11';\n            data[i]['利润（%）'] = '5';\n            data[i]['备注'] = '';\n          } else if (data[i]['工程类别'] == '二类工程') {\n            data[i]['管理费（%）'] = '9';\n            data[i]['利润（%）'] = '5';\n            data[i]['备注'] = '';\n          } else {\n            data[i]['管理费（%）'] = '7';\n            data[i]['利润（%）'] = '5';\n            data[i]['备注'] = '';\n          }\n        }\n        if (data[i]['工程类型'] == '制作兼打桩') {\n          if (data[i]['工程类别'] == '一类工程') {\n            data[i]['管理费（%）'] = '17';\n            data[i]['利润（%）'] = '7';\n            data[i]['备注'] = '';\n          } else if (data[i]['工程类别'] == '二类工程') {\n            data[i]['管理费（%）'] = '15';\n            data[i]['利润（%）'] = '7';\n            data[i]['备注'] = '';\n          } else {\n            data[i]['管理费（%）'] = '12';\n            data[i]['利润（%）'] = '7';\n            data[i]['备注'] = '';\n          }\n        }\n        if (data[i]['工程类型'] == '大型土石方工程') {\n          if (data[i]['工程类别'] == '一类工程') {\n            data[i]['管理费（%）'] = '7';\n            data[i]['利润（%）'] = '4';\n            data[i]['备注'] = '';\n          } else if (data[i]['工程类别'] == '二类工程') {\n            data[i]['管理费（%）'] = '7';\n            data[i]['利润（%）'] = '4';\n            data[i]['备注'] = '';\n          } else {\n            data[i]['管理费（%）'] = '7';\n            data[i]['利润（%）'] = '4';\n            data[i]['备注'] = '';\n          }\n        }\n        if (data[i]['工程类型'] == '单独装饰工程') {\n          if (data[i]['工程类别'] == '一类工程') {\n            data[i]['管理费（%）'] = '43';\n            data[i]['利润（%）'] = '15';\n            data[i]['备注'] = '';\n          } else if (data[i]['工程类别'] == '二类工程') {\n            data[i]['管理费（%）'] = '43';\n            data[i]['利润（%）'] = '15';\n            data[i]['备注'] = '';\n          } else {\n            data[i]['管理费（%）'] = '43';\n            data[i]['利润（%）'] = '15';\n            data[i]['备注'] = '';\n          }\n        }\n        if (data[i]['工程类型'] == '安装工程') {\n          if (data[i]['工程类别'] == '一类工程') {\n            data[i]['管理费（%）'] = '48';\n            data[i]['利润（%）'] = '14';\n            data[i]['备注'] = '计算基础：人工费';\n          } else if (data[i]['工程类别'] == '二类工程') {\n            data[i]['管理费（%）'] = '44';\n            data[i]['利润（%）'] = '14';\n            data[i]['备注'] = '计算基础：人工费';\n          } else {\n            data[i]['管理费（%）'] = '40';\n            data[i]['利润（%）'] = '14';\n            data[i]['备注'] = '计算基础：人工费';\n          }\n        }\n        if (data[i]['工程类型'] == '通用项目、道路、排水工程') {\n          if (data[i]['工程类别'] == '一类工程') {\n            data[i]['管理费（%）'] = '26';\n            data[i]['利润（%）'] = '10';\n            data[i]['备注'] = '';\n          } else if (data[i]['工程类别'] == '二类工程') {\n            data[i]['管理费（%）'] = '23';\n            data[i]['利润（%）'] = '10';\n            data[i]['备注'] = '';\n          } else {\n            data[i]['管理费（%）'] = '20';\n            data[i]['利润（%）'] = '10';\n            data[i]['备注'] = '';\n          }\n        }\n        if (data[i]['工程类型'] == '桥梁、水工构筑物') {\n          if (data[i]['工程类别'] == '一类工程') {\n            data[i]['管理费（%）'] = '35';\n            data[i]['利润（%）'] = '10';\n            data[i]['备注'] = '';\n          } else if (data[i]['工程类别'] == '二类工程') {\n            data[i]['管理费（%）'] = '32';\n            data[i]['利润（%）'] = '10';\n            data[i]['备注'] = '';\n          } else {\n            data[i]['管理费（%）'] = '29';\n            data[i]['利润（%）'] = '10';\n            data[i]['备注'] = '';\n          }\n        }\n        if (data[i]['工程类型'] == '给水、燃气与集中供热') {\n          if (data[i]['工程类别'] == '一类工程') {\n            data[i]['管理费（%）'] = '45';\n            data[i]['利润（%）'] = '13';\n            data[i]['备注'] = '计算基础：人工费';\n          } else if (data[i]['工程类别'] == '二类工程') {\n            data[i]['管理费（%）'] = '41';\n            data[i]['利润（%）'] = '13';\n            data[i]['备注'] = '计算基础：人工费';\n          } else {\n            data[i]['管理费（%）'] = '37';\n            data[i]['利润（%）'] = '13';\n            data[i]['备注'] = '计算基础：人工费';\n          }\n        }\n        if (data[i]['工程类型'] == '路灯及交通设施工程') {\n          if (data[i]['工程类别'] == '一类工程') {\n            data[i]['管理费（%）'] = '43';\n            data[i]['利润（%）'] = '13';\n            data[i]['备注'] = '计算基础：人工费';\n          } else if (data[i]['工程类别'] == '二类工程') {\n            data[i]['管理费（%）'] = '43';\n            data[i]['利润（%）'] = '13';\n            data[i]['备注'] = '计算基础：人工费';\n          } else {\n            data[i]['管理费（%）'] = '43';\n            data[i]['利润（%）'] = '13';\n            data[i]['备注'] = '计算基础：人工费';\n          }\n        }\n        if (data[i]['工程类型'] == '（市）大型土石方工程') {\n          if (data[i]['工程类别'] == '一类工程') {\n            data[i]['管理费（%）'] = '7';\n            data[i]['利润（%）'] = '4';\n            data[i]['备注'] = '';\n          } else if (data[i]['工程类别'] == '二类工程') {\n            data[i]['管理费（%）'] = '7';\n            data[i]['利润（%）'] = '4';\n            data[i]['备注'] = '';\n          } else {\n            data[i]['管理费（%）'] = '7';\n            data[i]['利润（%）'] = '4';\n            data[i]['备注'] = '';\n          }\n        }\n      }\n      if (data[i].hasOwnProperty(\"children\")) {\n        _traverse(data[i]['children']);\n      }\n    }\n    return data;\n  };\n  var handleChangeLR = function handleChangeLR(value) {\n    if (selectedRowKeys.length > 0 && detail.length > 0) {\n      var selected = selectedRowKeys[0];\n      if (detail[0]['key'] == selected) {\n        //总选择\n        var newData = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.copy)(detail);\n        newData[0]['利润（%）'] = value;\n        for (var i = 0; i < newData[0][\"children\"].length; i++) {\n          var child = newData[0]['children'][i];\n          child['利润（%）'] = value;\n          for (var j = 0; j < child['children'].length; j++) {\n            child['children'][j]['利润（%）'] = value;\n          }\n        }\n        setDetail(newData);\n      } else if (detail[0][\"children\"].filter(function (x) {\n        return x['key'] == selected;\n      }).length > 0) {\n        //某个单项工程\n        var _newData = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.copy)(detail);\n        for (var _i = 0; _i < _newData[0][\"children\"].length; _i++) {\n          var _child = _newData[0]['children'][_i];\n          if (_child['key'] == selected) {\n            _child['利润（%）'] = value;\n            for (var _j = 0; _j < _child['children'].length; _j++) {\n              _child['children'][_j]['利润（%）'] = value;\n            }\n          }\n        }\n        setDetail(_newData);\n      } else {\n        //具体一行\n        var _newData2 = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.copy)(detail);\n        for (var _i2 = 0; _i2 < _newData2[0][\"children\"].length; _i2++) {\n          var _child2 = _newData2[0]['children'][_i2];\n          for (var _j2 = 0; _j2 < _child2['children'].length; _j2++) {\n            if (_child2['children'][_j2]['key'] == selected) {\n              _child2['children'][_j2]['利润（%）'] = value;\n            }\n          }\n        }\n        setDetail(_newData2);\n      }\n    }\n  };\n  var handleChangeGLF = function handleChangeGLF(value) {\n    if (selectedRowKeys.length > 0 && detail.length > 0) {\n      var selected = selectedRowKeys[0];\n      if (detail[0]['key'] == selected) {\n        //总选择\n        var newData = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.copy)(detail);\n        newData[0]['管理费（%）'] = value;\n        for (var i = 0; i < newData[0][\"children\"].length; i++) {\n          var child = newData[0]['children'][i];\n          child['管理费（%）'] = value;\n          for (var j = 0; j < child['children'].length; j++) {\n            child['children'][j]['管理费（%）'] = value;\n          }\n        }\n        setDetail(newData);\n      } else if (detail[0][\"children\"].filter(function (x) {\n        return x['key'] == selected;\n      }).length > 0) {\n        //某个单项工程\n        var _newData3 = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.copy)(detail);\n        for (var _i3 = 0; _i3 < _newData3[0][\"children\"].length; _i3++) {\n          var _child3 = _newData3[0]['children'][_i3];\n          if (_child3['key'] == selected) {\n            _child3['管理费（%）'] = value;\n            for (var _j3 = 0; _j3 < _child3['children'].length; _j3++) {\n              _child3['children'][_j3]['管理费（%）'] = value;\n            }\n          }\n        }\n        setDetail(_newData3);\n      } else {\n        //具体一行\n        var _newData4 = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.copy)(detail);\n        for (var _i4 = 0; _i4 < _newData4[0][\"children\"].length; _i4++) {\n          var _child4 = _newData4[0]['children'][_i4];\n          for (var _j4 = 0; _j4 < _child4['children'].length; _j4++) {\n            if (_child4['children'][_j4]['key'] == selected) {\n              _child4['children'][_j4]['管理费（%）'] = value;\n            }\n          }\n        }\n        setDetail(_newData4);\n      }\n    }\n  };\n  var handleChange = function handleChange(value) {\n    if (selectedRowKeys.length > 0 && detail.length > 0) {\n      var selected = selectedRowKeys[0];\n      if (detail[0]['key'] == selected) {\n        //总选择\n        var newData = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.copy)(detail);\n        newData[0]['工程类别'] = value;\n        for (var i = 0; i < newData[0][\"children\"].length; i++) {\n          var child = newData[0]['children'][i];\n          child['工程类别'] = value;\n          for (var j = 0; j < child['children'].length; j++) {\n            child['children'][j]['工程类别'] = value;\n          }\n        }\n        setDetail(_traverse(newData));\n      } else if (detail[0][\"children\"].filter(function (x) {\n        return x['key'] == selected;\n      }).length > 0) {\n        //某个单项工程\n        var _newData5 = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.copy)(detail);\n        for (var _i5 = 0; _i5 < _newData5[0][\"children\"].length; _i5++) {\n          var _child5 = _newData5[0]['children'][_i5];\n          if (_child5['key'] == selected) {\n            _child5['工程类别'] = value;\n            for (var _j5 = 0; _j5 < _child5['children'].length; _j5++) {\n              _child5['children'][_j5]['工程类别'] = value;\n            }\n          }\n        }\n        setDetail(_traverse(_newData5));\n      } else {\n        //具体一行\n        var _newData6 = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.copy)(detail);\n        for (var _i6 = 0; _i6 < _newData6[0][\"children\"].length; _i6++) {\n          var _child6 = _newData6[0]['children'][_i6];\n          for (var _j6 = 0; _j6 < _child6['children'].length; _j6++) {\n            if (_child6['children'][_j6]['key'] == selected) {\n              _child6['children'][_j6]['工程类别'] = value;\n            }\n          }\n        }\n        setDetail(_traverse(_newData6));\n      }\n    }\n  };\n  var handleChangeGC = function handleChangeGC(value) {\n    if (selectedRowKeys.length > 0 && detail.length > 0) {\n      var selected = selectedRowKeys[0];\n      if (detail[0]['key'] == selected) {\n        //总选择\n        var newData = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.copy)(detail);\n        newData[0]['工程类型'] = value;\n        for (var i = 0; i < newData[0][\"children\"].length; i++) {\n          var child = newData[0]['children'][i];\n          child['工程类型'] = value;\n          for (var j = 0; j < child['children'].length; j++) {\n            child['children'][j]['工程类型'] = value;\n          }\n        }\n        setDetail(_traverse(newData));\n      } else if (detail[0][\"children\"].filter(function (x) {\n        return x['key'] == selected;\n      }).length > 0) {\n        //某个单项工程\n        var _newData7 = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.copy)(detail);\n        for (var _i7 = 0; _i7 < _newData7[0][\"children\"].length; _i7++) {\n          var _child7 = _newData7[0]['children'][_i7];\n          if (_child7['key'] == selected) {\n            _child7['工程类型'] = value;\n            for (var _j7 = 0; _j7 < _child7['children'].length; _j7++) {\n              _child7['children'][_j7]['工程类型'] = value;\n            }\n          }\n        }\n        setDetail(_traverse(_newData7));\n      } else {\n        //具体一行\n        var _newData8 = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.copy)(detail);\n        for (var _i8 = 0; _i8 < _newData8[0][\"children\"].length; _i8++) {\n          var _child8 = _newData8[0]['children'][_i8];\n          for (var _j8 = 0; _j8 < _child8['children'].length; _j8++) {\n            if (_child8['children'][_j8]['key'] == selected) {\n              _child8['children'][_j8]['工程类型'] = value;\n            }\n          }\n        }\n        setDetail(_traverse(_newData8));\n      }\n    }\n  };\n  function selectRow(record) {\n    /*\n    const selectedRowKeys_ = [...selectedRowKeys];\n    if (selectedRowKeys_.indexOf(record.key) >= 0) {\n         selectedRowKeys_.splice(selectedRowKeys_.indexOf(record.key), 1);\n    } else {\n         selectedRowKeys_.push(record.key);\n    }*/\n    setSelectedRowKeys([record.key]);\n  }\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].generateQufei(id).then(function (x) {\n      setDetail(x);\n    });\n  }, [id]);\n  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(_mui_material_Box__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n    children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_mui_material_Button__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n      variant: \"outlined\",\n      onClick: apply,\n      children: \"\\u5E94\\u7528\"\n    }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n      theme: {\n        components: {\n          Table: {\n            /* here is your component tokens */\n            cellPaddingBlock: 8\n          }\n        }\n      },\n      children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n        dataSource: detail\n\n        //afterSelection={handleSelection}\n        //afterSelection={handleSelection}\n        ,\n        ref: hotRef,\n        expandable: {\n          expandedRowKeys: expandedRowKeys,\n          onExpand: function onExpand(expandable, record) {\n            if (expandable) {\n              setExpandedRowKeys([].concat(_toConsumableArray(expandedRowKeys), [record.key]));\n            } else {\n              setExpandedRowKeys(expandedRowKeys.filter(function (id) {\n                return record.key !== id;\n              }));\n            }\n          },\n          expandRowByClick: true\n        },\n        rowSelection: rowSelection,\n        onRow: function onRow(record) {\n          return {\n            onClick: function onClick() {\n              selectRow(record);\n            }\n          };\n        },\n        scroll: {\n          x: 'max-content',\n          y: 'calc(100vh - 200px)'\n        }\n        //pagination={{ position: ['none', 'none'] }}\n        ,\n        pagination: false,\n        columns: [{\n          dataIndex: '操作',\n          title: '操作',\n          key: '操作',\n          width: 30,\n          fixed: 'left'\n        }, {\n          dataIndex: '名称',\n          title: '名称',\n          key: '名称',\n          width: 250\n        }, {\n          dataIndex: '工程类型',\n          title: '工程类型',\n          key: '工程类型',\n          width: 150,\n          render: function render(text, record) {\n            //console.log(\"column render\");\n            //console.log(\"text\".concat(text));\n            //console.log(record);\n\n            return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_EditableSelectGC__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n              initialText: text,\n              onChange: handleChangeGC\n            });\n\n            //console.log(text);\n          }\n        }, {\n          dataIndex: '工程类别',\n          title: '工程类别',\n          key: '工程类别',\n          width: 100,\n          render: function render(text, record) {\n            //console.log(\"column render\");\n            //console.log(\"text\".concat(text));\n            //console.log(record);\n\n            return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_EditableSelect__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n              initialText: text,\n              onChange: handleChange\n            });\n\n            //console.log(text);\n          }\n        }, {\n          dataIndex: '管理费（%）',\n          title: '管理费（%）',\n          key: '管理费（%）',\n          width: 50,\n          render: function render(text, record) {\n            //console.log(\"column render\");\n            //console.log(\"text\".concat(text));\n            //console.log(record);\n\n            return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_Editable__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n              initialText: text,\n              onChange: handleChangeGLF\n            });\n\n            //console.log(text);\n          }\n        }, {\n          dataIndex: '利润（%）',\n          title: '利润（%）',\n          key: '利润（%）',\n          width: 50,\n          render: function render(text, record) {\n            //console.log(\"column render\");\n            //console.log(\"text\".concat(text));\n            //console.log(record);\n\n            return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_Editable__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n              initialText: text,\n              onChange: handleChangeLR\n            });\n\n            //console.log(text);\n          }\n        }, {\n          dataIndex: '备注',\n          title: '备注',\n          key: '备注',\n          width: 100\n        }]\n      })\n    })]\n  });\n}\n\n//# sourceURL=webpack://front/./src/Qufei.js?");

/***/ }),

/***/ "./src/Rcjhz.js":
/*!**********************!*\
  !*** ./src/Rcjhz.js ***!
  \**********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ Rcjhz)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _Service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Service */ \"./src/Service.js\");\n/* harmony import */ var _EditableSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./EditableSelect */ \"./src/EditableSelect.js\");\n/* harmony import */ var _EditableSelectGC__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EditableSelectGC */ \"./src/EditableSelectGC.js\");\n/* harmony import */ var _Editable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Editable */ \"./src/Editable.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n/* harmony import */ var tabulator_tables__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! tabulator-tables */ \"./node_modules/tabulator-tables/dist/js/tabulator_esm.mjs\");\n/* harmony import */ var tabulator_tables_dist_css_tabulator_min_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! tabulator-tables/dist/css/tabulator.min.css */ \"./node_modules/tabulator-tables/dist/css/tabulator.min.css\");\n/* harmony import */ var _Tabulator_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Tabulator.css */ \"./src/Tabulator.css\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n\n\n\n\n\n\n\n\n\n//registerPlugin(NestedRows);\n\n\n\n\n\n\n //import Tabulator library\n //import Tabulator stylesheet\n\n\nfunction Rcjhz(_ref) {\n  var id = _ref.id,\n    bh = _ref.bh,\n    tiaojiaCallback = _ref.tiaojiaCallback;\n  var myTable = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var myRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState2 = _slicedToArray(_React$useState, 2),\n    detail = _React$useState2[0],\n    setDetail = _React$useState2[1];\n  var editCheck = function editCheck(cell) {\n    //cell - the cell component for the editable cell\n\n    //get row data\n    //console.log(cell);\n    if (cell._cell.row.data['序号']) return false;\n    return true;\n  };\n  function handleSelect(row) {}\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    myTable.current = new tabulator_tables__WEBPACK_IMPORTED_MODULE_9__.TabulatorFull(myRef.current, _defineProperty(_defineProperty({\n      index: \"key\",\n      height: 600,\n      data: detail,\n      //link data to table\n      reactiveData: false,\n      //enable data reactivity\n      dataTreeStartExpanded: true,\n      dataTree: true,\n      selectableRows: 1,\n      //make rows selectable\n      editTriggerEvent: \"dblclick\"\n    }, \"dataTreeStartExpanded\", function dataTreeStartExpanded(row, level) {\n      //console.log(row);\n      //console.log(level);\n      return true; //expand rows where the \"driver\" data field is true;\n    }), \"columns\", [\n    //Define Table Columns\n    {\n      title: \"ID\",\n      field: \"ID\",\n      width: 80,\n      headerSort: false\n    },\n    //never hide this column\n    {\n      title: \"编码\",\n      field: \"编码\",\n      width: 120,\n      headerSort: false,\n      headerFilter: \"input\"\n    }, {\n      title: \"名称\",\n      field: \"名称\",\n      width: 150,\n      headerSort: false,\n      formatter: \"textarea\",\n      headerFilter: \"input\"\n    },\n    //hide this column first\n    {\n      title: \"规格型号\",\n      field: \"规格型号\",\n      width: 70,\n      headerSort: false,\n      formatter: \"textarea\"\n    }, {\n      title: \"单位\",\n      field: \"单位\",\n      width: 50,\n      headerSort: false\n    }, {\n      title: \"数量\",\n      field: \"数量\",\n      width: 100,\n      headerSort: true,\n      sorter: \"number\",\n      formatter: \"money\",\n      formatterParams: {\n        precision: 4\n      }\n    }, {\n      title: \"单价\",\n      field: \"单价\",\n      width: 100,\n      headerSort: true,\n      sorter: \"number\",\n      formatter: \"money\",\n      editor: \"input\"\n    }, {\n      title: \"合价\",\n      field: \"合价\",\n      width: 100,\n      headerSort: true,\n      sorter: \"number\",\n      formatter: \"money\"\n    }, {\n      title: \"产地\",\n      field: \"产地\",\n      width: 50,\n      headerSort: false\n    }, {\n      title: \"供应厂商\",\n      field: \"供应厂商\",\n      width: 80,\n      headerSort: false\n    }, {\n      title: \"人材机类别\",\n      field: \"人材机类别\",\n      width: 120,\n      headerSort: true,\n      sorter: 'string',\n      headerFilter: \"input\"\n    }, {\n      title: \"主要材料标志\",\n      field: \"主要材料标志\",\n      width: 100,\n      headerSort: false\n    }, {\n      title: \"主材标志\",\n      field: \"主材标志\",\n      width: 100,\n      headerSort: false\n    }, {\n      title: \"设备标志\",\n      field: \"设备标志\",\n      width: 100,\n      headerSort: false\n    }, {\n      title: \"甲供标志\",\n      field: \"甲供标志\",\n      width: 100,\n      headerSort: false\n    }, {\n      title: \"暂估价标志\",\n      field: \"暂估价标志\",\n      width: 100,\n      headerSort: false\n    }]));\n    myTable.current.on(\"cellDblClick\", function (e, cell) {\n      //e - the click event object\n      //cell - cell component\n      console.log(cell);\n    });\n    myTable.current.on(\"rowSelected\", handleSelect);\n    myTable.current.on(\"cellEdited\", function (cell) {\n      //console.log(\"edited\");\n      //console.log();\n      var newData = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.copy)(cell._cell.row.data);\n      var newDj = newData['单价'];\n      var sl = newData['数量'];\n      newData['合价'] = Number(newDj) * Number(sl);\n      myTable.current.updateData([newData]);\n      tiaojiaCallback(bh, newData['编码'], newData['名称'], newData['单位'], newDj);\n    });\n    myTable.current.on(\"tableBuilt\", function () {\n      _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].generateRencaijihuizong2(id, bh).then(function (x) {\n        myTable.current.replaceData(x);\n      });\n    });\n  }, [id, bh]);\n  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"div\", {\n    ref: myRef\n  });\n}\n\n//# sourceURL=webpack://front/./src/Rcjhz.js?");

/***/ }),

/***/ "./src/Tabulator.css":
/*!***************************!*\
  !*** ./src/Tabulator.css ***!
  \***************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ \"./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../node_modules/style-loader/dist/runtime/styleDomAPI.js */ \"./node_modules/style-loader/dist/runtime/styleDomAPI.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../node_modules/style-loader/dist/runtime/insertBySelector.js */ \"./node_modules/style-loader/dist/runtime/insertBySelector.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ \"./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../node_modules/style-loader/dist/runtime/insertStyleElement.js */ \"./node_modules/style-loader/dist/runtime/insertStyleElement.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../node_modules/style-loader/dist/runtime/styleTagTransform.js */ \"./node_modules/style-loader/dist/runtime/styleTagTransform.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _node_modules_css_loader_dist_cjs_js_Tabulator_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../node_modules/css-loader/dist/cjs.js!./Tabulator.css */ \"./node_modules/css-loader/dist/cjs.js!./src/Tabulator.css\");\n\n      \n      \n      \n      \n      \n      \n      \n      \n      \n\nvar options = {};\n\noptions.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());\noptions.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());\noptions.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, \"head\");\noptions.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());\noptions.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());\n\nvar update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_Tabulator_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"], options);\n\n\n\n\n       /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_Tabulator_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"] && _node_modules_css_loader_dist_cjs_js_Tabulator_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals ? _node_modules_css_loader_dist_cjs_js_Tabulator_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals : undefined);\n\n\n//# sourceURL=webpack://front/./src/Tabulator.css?");

/***/ }),

/***/ "./src/Tbxx.js":
/*!*********************!*\
  !*** ./src/Tbxx.js ***!
  \*********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ Tbxx)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _Service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Service */ \"./src/Service.js\");\n/* harmony import */ var _EditableSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./EditableSelect */ \"./src/EditableSelect.js\");\n/* harmony import */ var _EditableSelectGC__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EditableSelectGC */ \"./src/EditableSelectGC.js\");\n/* harmony import */ var _Editable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Editable */ \"./src/Editable.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n/* harmony import */ var tabulator_tables__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! tabulator-tables */ \"./node_modules/tabulator-tables/dist/js/tabulator_esm.mjs\");\n/* harmony import */ var tabulator_tables_dist_css_tabulator_min_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! tabulator-tables/dist/css/tabulator.min.css */ \"./node_modules/tabulator-tables/dist/css/tabulator.min.css\");\n/* harmony import */ var _Tabulator_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Tabulator.css */ \"./src/Tabulator.css\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\n\n\n\n//registerPlugin(NestedRows);\n\n\n\n\n\n\n //import Tabulator library\n //import Tabulator stylesheet\n\n\nfunction Tbxx(_ref) {\n  var data = _ref.data;\n  var myRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef();\n  var myTable = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    myTable.current = new tabulator_tables__WEBPACK_IMPORTED_MODULE_9__.TabulatorFull(myRef.current, _defineProperty(_defineProperty({\n      index: \"key\",\n      height: 600,\n      data: data,\n      //link data to table\n      reactiveData: false,\n      //enable data reactivity\n      dataTreeStartExpanded: true,\n      dataTree: true,\n      selectableRows: 1,\n      //make rows selectable\n      editTriggerEvent: \"dblclick\"\n    }, \"dataTreeStartExpanded\", function dataTreeStartExpanded(row, level) {\n      //console.log(row);\n      //console.log(level);\n      return true; //expand rows where the \"driver\" data field is true;\n    }), \"columns\", [\n    //Define Table Columns 序号\", \"名称\", \"取费基数\", \"计算基础\",\"费率\", \"金额\", \"类别\n    {\n      title: \"名称\",\n      field: \"名称\",\n      width: 150,\n      headerSort: false,\n      formatter: \"textarea\"\n    },\n    //hide this column first\n    {\n      title: \"金额\",\n      field: \"金额\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"暂估价\",\n      field: \"暂估价\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"安全文明施工费\",\n      field: \"安全文明施工费\",\n      width: 150,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"规费\",\n      field: \"规费\",\n      width: 100,\n      headerSort: false,\n      formatter: \"money\"\n    }]));\n    myTable.current.on(\"cellDblClick\", function (e, cell) {\n      //e - the click event object\n      //cell - cell component\n      console.log(cell);\n    });\n\n    //myTable.current.on(\"rowSelected\", handleSelect);\n  }, [data]);\n  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"div\", {\n    ref: myRef\n  });\n}\n\n//# sourceURL=webpack://front/./src/Tbxx.js?");

/***/ }),

/***/ "./src/Zcbfwf.js":
/*!***********************!*\
  !*** ./src/Zcbfwf.js ***!
  \***********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ Zcbfwf)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _Service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Service */ \"./src/Service.js\");\n/* harmony import */ var _EditableSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./EditableSelect */ \"./src/EditableSelect.js\");\n/* harmony import */ var _EditableSelectGC__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EditableSelectGC */ \"./src/EditableSelectGC.js\");\n/* harmony import */ var _Editable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Editable */ \"./src/Editable.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n/* harmony import */ var tabulator_tables__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! tabulator-tables */ \"./node_modules/tabulator-tables/dist/js/tabulator_esm.mjs\");\n/* harmony import */ var tabulator_tables_dist_css_tabulator_min_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! tabulator-tables/dist/css/tabulator.min.css */ \"./node_modules/tabulator-tables/dist/css/tabulator.min.css\");\n/* harmony import */ var _Tabulator_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Tabulator.css */ \"./src/Tabulator.css\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\n\n\n\n//registerPlugin(NestedRows);\n\n\n\n\n\n\n //import Tabulator library\n //import Tabulator stylesheet\n\n\nfunction Zcbfwf(_ref) {\n  var data = _ref.data;\n  var myRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef();\n  var myTable = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    myTable.current = new tabulator_tables__WEBPACK_IMPORTED_MODULE_9__.TabulatorFull(myRef.current, _defineProperty(_defineProperty({\n      index: \"key\",\n      height: 600,\n      data: data,\n      //link data to table\n      reactiveData: false,\n      //enable data reactivity\n      dataTreeStartExpanded: true,\n      dataTree: true,\n      selectableRows: 1,\n      //make rows selectable\n      editTriggerEvent: \"dblclick\"\n    }, \"dataTreeStartExpanded\", function dataTreeStartExpanded(row, level) {\n      //console.log(row);\n      //console.log(level);\n      return true; //expand rows where the \"driver\" data field is true;\n    }), \"columns\", [\n    //Define Table Columns 序号\", \"名称\", \"取费基数\", \"计算基础\",\"费率\", \"金额\", \"类别\n    {\n      title: \"序号\",\n      field: \"序号\",\n      width: 80,\n      headerSort: false\n    },\n    //never hide this column\n    {\n      title: \"名称\",\n      field: \"名称\",\n      width: 150,\n      headerSort: false,\n      formatter: \"textarea\"\n    },\n    //hide this column first\n    {\n      title: \"项目价值\",\n      field: \"项目价值\",\n      width: 100,\n      formatter: \"money\"\n    }, {\n      title: \"服务内容\",\n      field: \"服务内容\",\n      width: 100,\n      formatter: \"textarea\"\n    }, {\n      title: \"计算基础\",\n      field: \"计算基础\",\n      width: 100,\n      formatter: \"textarea\"\n    }, {\n      title: \"费率\",\n      field: \"费率\",\n      width: 100,\n      formatter: \"money\"\n    }, {\n      title: \"金额\",\n      field: \"金额\",\n      width: 100,\n      formatter: \"money\"\n    }]));\n    myTable.current.on(\"cellDblClick\", function (e, cell) {\n      //e - the click event object\n      //cell - cell component\n      console.log(cell);\n    });\n\n    //myTable.current.on(\"rowSelected\", handleSelect);\n  }, [data]);\n  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"div\", {\n    ref: myRef\n  });\n}\n\n//# sourceURL=webpack://front/./src/Zcbfwf.js?");

/***/ }),

/***/ "./src/Zjcs2.js":
/*!**********************!*\
  !*** ./src/Zjcs2.js ***!
  \**********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ Zjcs2)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _mui_material_Box__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @mui/material/Box */ \"./node_modules/@mui/material/esm/Box/Box.js\");\n/* harmony import */ var _mui_material_Tab__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @mui/material/Tab */ \"./node_modules/@mui/material/esm/Tab/Tab.js\");\n/* harmony import */ var _mui_material_FormControl__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @mui/material/FormControl */ \"./node_modules/@mui/material/esm/FormControl/FormControl.js\");\n/* harmony import */ var _mui_material_InputLabel__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @mui/material/InputLabel */ \"./node_modules/@mui/material/esm/InputLabel/InputLabel.js\");\n/* harmony import */ var _mui_material_Select__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @mui/material/Select */ \"./node_modules/@mui/material/esm/Select/Select.js\");\n/* harmony import */ var _mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @mui/material/MenuItem */ \"./node_modules/@mui/material/esm/MenuItem/MenuItem.js\");\n/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! uuid */ \"./node_modules/uuid/dist/esm-browser/v4.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n/* harmony import */ var _mui_lab_TabContext__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @mui/lab/TabContext */ \"./node_modules/@mui/lab/esm/TabContext/TabContext.js\");\n/* harmony import */ var _mui_lab_TabList__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @mui/lab/TabList */ \"./node_modules/@mui/lab/esm/TabList/TabList.js\");\n/* harmony import */ var _mui_lab_TabPanel__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @mui/lab/TabPanel */ \"./node_modules/@mui/lab/esm/TabPanel/TabPanel.js\");\n/* harmony import */ var _mui_material_Stack__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mui/material/Stack */ \"./node_modules/@mui/material/esm/Stack/Stack.js\");\n/* harmony import */ var _Service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Service */ \"./src/Service.js\");\n/* harmony import */ var tabulator_tables__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! tabulator-tables */ \"./node_modules/tabulator-tables/dist/js/tabulator_esm.mjs\");\n/* harmony import */ var tabulator_tables_dist_css_tabulator_min_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tabulator-tables/dist/css/tabulator.min.css */ \"./node_modules/tabulator-tables/dist/css/tabulator.min.css\");\n/* harmony import */ var _Tabulator_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Tabulator.css */ \"./src/Tabulator.css\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n //import Tabulator library\n //import Tabulator stylesheet\n\n\nfunction Zjcs2(_ref) {\n  var name = _ref.name,\n    bh = _ref.bh,\n    zjcsCallback = _ref.zjcsCallback;\n  var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState([{\n      \"序号\": null,\n      \"清单编码\": null,\n      \"名称\": null,\n      \"计算基数\": null,\n      \"计算基础\": null,\n      \"费率\": null,\n      \"金额\": null,\n      \"项目类别\": null\n    }]),\n    _React$useState2 = _slicedToArray(_React$useState, 2),\n    detail = _React$useState2[0],\n    setDetail = _React$useState2[1];\n  var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),\n    _React$useState4 = _slicedToArray(_React$useState3, 2),\n    cankao = _React$useState4[0],\n    setCankao = _React$useState4[1];\n  var myRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var myTable = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var cankaoRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var cankaoTable = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var hotRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  var allRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef([]);\n  var _React$useState5 = react__WEBPACK_IMPORTED_MODULE_0__.useState(10),\n    _React$useState6 = _slicedToArray(_React$useState5, 2),\n    value = _React$useState6[0],\n    setValue = _React$useState6[1];\n  var _React$useState7 = react__WEBPACK_IMPORTED_MODULE_0__.useState(\"1\"),\n    _React$useState8 = _slicedToArray(_React$useState7, 2),\n    valueTab = _React$useState8[0],\n    setValueTab = _React$useState8[1];\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    myTable.current = new tabulator_tables__WEBPACK_IMPORTED_MODULE_6__.TabulatorFull(myRef.current, _defineProperty(_defineProperty({\n      index: \"key\",\n      height: 380,\n      data: detail,\n      //link data to table\n      reactiveData: false,\n      //enable data reactivity\n      dataTreeStartExpanded: true,\n      dataTree: true,\n      selectableRows: 1,\n      //make rows selectable\n      editTriggerEvent: \"dblclick\"\n    }, \"dataTreeStartExpanded\", function dataTreeStartExpanded(row, level) {\n      //console.log(row);\n      //console.log(level);\n      return true; //expand rows where the \"driver\" data field is true;\n    }), \"columns\", [\n    //Define Table Columns\n    {\n      title: \"序号\",\n      field: \"序号\",\n      width: 40,\n      headerSort: false,\n      frozen: true\n    },\n    //never hide this column\n    {\n      title: \"清单编码\",\n      field: \"清单编码\",\n      width: 120,\n      headerSort: false,\n      frozen: true,\n      formatter: \"textarea\"\n    }, {\n      title: \"名称\",\n      field: \"名称\",\n      width: 150,\n      headerSort: false,\n      formatter: \"textarea\"\n    },\n    //hide this column first\n    {\n      title: \"计算基数\",\n      field: \"计算基数\",\n      width: 150,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"计算基础\",\n      field: \"计算基础\",\n      width: 250,\n      headerSort: false,\n      formatter: \"textarea\"\n    }, {\n      title: \"费率\",\n      field: \"费率\",\n      width: 60,\n      headerSort: false,\n      formatter: \"money\",\n      editor: \"input\",\n      editable: editCheck\n    }, {\n      title: \"金额\",\n      field: \"金额\",\n      width: 150,\n      headerSort: false,\n      formatter: \"money\"\n    }, {\n      title: \"项目类别\",\n      field: \"项目类别\",\n      width: 80,\n      headerSort: false,\n      formatter: \"textarea\"\n    }]));\n    myTable.current.on(\"cellDblClick\", function (e, cell) {\n      //e - the click event object\n      //cell - cell component\n      console.log(cell);\n    });\n    myTable.current.on(\"cellEdited\", function (cell) {\n      //cell - cell component\n      console.log(cell);\n      var newData = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.copy)(cell._cell.row.data);\n      newData['金额'] = Number(newData['计算基数']) * Number(newData['费率']) / Number(100);\n      myTable.current.updateData([newData]);\n      zjcsCallback(name, bh, newData);\n    });\n    _Service__WEBPACK_IMPORTED_MODULE_2__[\"default\"].generateZjcs(name, bh).then(function (x) {\n      var addedkey = x.map(function (y) {\n        y['key'] = (0,uuid__WEBPACK_IMPORTED_MODULE_7__[\"default\"])();\n        if (y.hasOwnProperty('_children')) {\n          y['_children'] = y['_children'].map(function (z) {\n            z['key'] = (0,uuid__WEBPACK_IMPORTED_MODULE_7__[\"default\"])();\n            return z;\n          });\n        }\n        return y;\n      });\n      myTable.current.replaceData(addedkey);\n    });\n  }, [bh]);\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    cankaoTable.current = new tabulator_tables__WEBPACK_IMPORTED_MODULE_6__.TabulatorFull(cankaoRef.current, {\n      index: \"key\",\n      height: 200,\n      data: cankao,\n      //link data to table\n      reactiveData: false,\n      //enable data reactivity\n\n      dataTree: false,\n      selectableRows: 1,\n      //make rows selectable\n\n      columns: [\n      //Define Table Columns\n      {\n        title: \"工程类型\",\n        field: \"工程类型\",\n        width: 200,\n        headerSort: false,\n        headerFilter: \"input\",\n        formatter: \"textarea\"\n      },\n      //never hide this column\n      {\n        title: \"名称\",\n        field: \"名称\",\n        width: 150,\n        headerSort: false,\n        formatter: \"textarea\"\n      },\n      //hide this column first\n      {\n        title: \"计算基础\",\n        field: \"计算基础\",\n        width: 250,\n        headerSort: false,\n        formatter: \"textarea\"\n      }, {\n        title: \"参考费率\",\n        field: \"参考费率\",\n        width: 100,\n        headerSort: false,\n        formatter: \"money\"\n      }, {\n        title: \"地区\",\n        field: \"地区\",\n        width: 50,\n        headerSort: false,\n        formatter: \"textarea\"\n      }, {\n        title: \"备注\",\n        field: \"备注\",\n        width: 280,\n        headerSort: false,\n        formatter: \"textarea\"\n      }]\n    });\n    _Service__WEBPACK_IMPORTED_MODULE_2__[\"default\"].cankao().then(function (x) {\n      allRef.current = x;\n      filterData(value);\n    });\n  }, []);\n  var filterData = function filterData(value) {\n    if (value == 10) {\n      var newData = allRef.current.filter(function (y) {\n        return y['名称'].includes('安全文明施工措施费');\n      });\n      cankaoTable.current.replaceData(newData);\n    } else if (value == 20) {\n      var _newData = allRef.current.filter(function (y) {\n        return y['名称'].includes('扬尘污染防治增加费');\n      });\n      cankaoTable.current.replaceData(_newData);\n    } else if (value == 30) {\n      var _newData2 = allRef.current.filter(function (y) {\n        return y['名称'].includes('按质论价');\n      });\n      cankaoTable.current.replaceData(_newData2);\n    } else if (value == 40) {\n      var _newData3 = allRef.current.filter(function (y) {\n        return y['名称'].includes('非夜间施工照明');\n      });\n      cankaoTable.current.replaceData(_newData3);\n    } else if (value == 50) {\n      var _newData4 = allRef.current.filter(function (y) {\n        return y['名称'].includes('冬雨季施工');\n      });\n      cankaoTable.current.replaceData(_newData4);\n    } else if (value == 60) {\n      var _newData5 = allRef.current.filter(function (y) {\n        return y['名称'].includes('已完工程及设备保护');\n      });\n      cankaoTable.current.replaceData(_newData5);\n    } else if (value == 70) {\n      var _newData6 = allRef.current.filter(function (y) {\n        return y['名称'].includes('临时设施');\n      });\n      cankaoTable.current.replaceData(_newData6);\n    } else if (value == 80) {\n      var _newData7 = allRef.current.filter(function (y) {\n        return y['名称'].includes('赶工措施');\n      });\n      cankaoTable.current.replaceData(_newData7);\n    } else if (value == 90) {\n      var _newData8 = allRef.current.filter(function (y) {\n        return y['名称'].includes('住宅分户验收');\n      });\n      cankaoTable.current.replaceData(_newData8);\n    } else if (value == 100) {\n      var _newData9 = allRef.current.filter(function (y) {\n        return y['名称'].includes('夜间施工');\n      });\n      cankaoTable.current.replaceData(_newData9);\n    } else if (value == 110) {\n      var _newData0 = allRef.current.filter(function (y) {\n        return y['名称'].includes('建筑工人实名制费用');\n      });\n      cankaoTable.current.replaceData(_newData0);\n    } else if (value == 120) {\n      var _newData1 = allRef.current.filter(function (y) {\n        return y['名称'].includes('苏安码管理增加费');\n      });\n      cankaoTable.current.replaceData(_newData1);\n    } else if (value == 130) {\n      var _newData10 = allRef.current.filter(function (y) {\n        return y['名称'].includes('特殊施工降效');\n      });\n      cankaoTable.current.replaceData(_newData10);\n    } else if (value == 140) {\n      var _newData11 = allRef.current.filter(function (y) {\n        return y['名称'].includes('交通组织维护');\n      });\n      cankaoTable.current.replaceData(_newData11);\n    } else if (value == 150) {\n      var _newData12 = allRef.current.filter(function (y) {\n        return y['名称'].includes('协管费');\n      });\n      cankaoTable.current.replaceData(_newData12);\n    } else if (value == 160) {\n      var _newData13 = allRef.current.filter(function (y) {\n        return y['名称'].includes('垂直运输');\n      });\n      cankaoTable.current.replaceData(_newData13);\n    } else if (value == 170) {\n      var _newData14 = allRef.current.filter(function (y) {\n        return y['名称'].includes('二次搬运');\n      });\n      cankaoTable.current.replaceData(_newData14);\n    } else if (value == 180) {\n      var _newData15 = allRef.current.filter(function (y) {\n        return y['名称'].includes('智慧工地费用');\n      });\n      cankaoTable.current.replaceData(_newData15);\n    } else if (value == 190) {\n      var _newData16 = allRef.current.filter(function (y) {\n        return y['名称'].includes('外脚手架钢板网使用增加费');\n      });\n      cankaoTable.current.replaceData(_newData16);\n    }\n  };\n  var handleChange = function handleChange(event) {\n    setValue(event.target.value);\n    filterData(event.target.value);\n  };\n  var editCheck = function editCheck(cell) {\n    //cell - the cell component for the editable cell\n\n    //get row data\n    var row = cell._cell.row;\n    while (row.modules.dataTree.parent) {\n      row = row.modules.dataTree.parent;\n    }\n    if (row.data['名称'] == '现场安全文明施工') return false;\n    return true; // only allow the name cell to be edited if the age is over 18\n  };\n  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_mui_material_Stack__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n    spacing: 1,\n    children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(\"div\", {\n      ref: myRef\n    }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_Box__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n      children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_mui_lab_TabContext__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n        value: valueTab,\n        children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_Box__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n          sx: {\n            borderBottom: 1,\n            borderColor: 'divider'\n          },\n          children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_lab_TabList__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n            sx: {\n              minHeight: '24px'\n            },\n            \"aria-label\": \"lab API tabs example\",\n            children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_Tab__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n              sx: {\n                p: 0,\n                minHeight: '24px'\n              },\n              label: \"\\u53C2\\u8003\\u8D39\\u7387\",\n              value: \"1\"\n            })\n          })\n        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_lab_TabPanel__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n          sx: {\n            p: 1\n          },\n          value: \"1\",\n          children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_mui_material_Stack__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n            direction: \"row\",\n            spacing: 1,\n            children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_mui_material_FormControl__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {\n              sx: {\n                width: 200\n              },\n              children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_InputLabel__WEBPACK_IMPORTED_MODULE_15__[\"default\"], {\n                id: \"demo-simple-select-label\",\n                children: \"\\u63AA\\u65BD\\u5206\\u7C7B\"\n              }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_mui_material_Select__WEBPACK_IMPORTED_MODULE_16__[\"default\"], {\n                labelId: \"demo-simple-select-label\",\n                id: \"demo-simple-select\",\n                value: value,\n                label: \"\\u63AA\\u65BD\\u5206\\u7C7B\",\n                onChange: handleChange,\n                children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n                  value: 10,\n                  children: \"\\u5B89\\u5168\\u6587\\u660E\\u65BD\\u5DE5\\u63AA\\u65BD\\u8D39\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n                  value: 20,\n                  children: \"\\u626C\\u5C18\\u6C61\\u67D3\\u9632\\u6CBB\\u589E\\u52A0\\u8D39\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n                  value: 30,\n                  children: \"\\u6309\\u8D28\\u8BBA\\u4EF7\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n                  value: 40,\n                  children: \"\\u975E\\u591C\\u95F4\\u65BD\\u5DE5\\u7167\\u660E\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n                  value: 50,\n                  children: \"\\u51AC\\u96E8\\u5B63\\u65BD\\u5DE5\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n                  value: 60,\n                  children: \"\\u5DF2\\u5B8C\\u5DE5\\u7A0B\\u53CA\\u8BBE\\u5907\\u4FDD\\u62A4\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n                  value: 70,\n                  children: \"\\u4E34\\u65F6\\u8BBE\\u65BD\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n                  value: 80,\n                  children: \"\\u8D76\\u5DE5\\u63AA\\u65BD\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n                  value: 90,\n                  children: \"\\u4F4F\\u5B85\\u5206\\u6237\\u9A8C\\u6536\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n                  value: 100,\n                  children: \"\\u591C\\u95F4\\u65BD\\u5DE5\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n                  value: 110,\n                  children: \"\\u5EFA\\u7B51\\u5DE5\\u4EBA\\u5B9E\\u540D\\u5236\\u8D39\\u7528\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n                  value: 120,\n                  children: \"\\u82CF\\u5B89\\u7801\\u7BA1\\u7406\\u589E\\u52A0\\u8D39\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n                  value: 130,\n                  children: \"\\u7279\\u6B8A\\u65BD\\u5DE5\\u964D\\u6548\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n                  value: 140,\n                  children: \"\\u4EA4\\u901A\\u7EC4\\u7EC7\\u7EF4\\u62A4\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n                  value: 150,\n                  children: \"\\u534F\\u7BA1\\u8D39\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n                  value: 160,\n                  children: \"\\u5782\\u76F4\\u8FD0\\u8F93\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n                  value: 170,\n                  children: \"\\u4E8C\\u6B21\\u642C\\u8FD0\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n                  value: 180,\n                  children: \"\\u667A\\u6167\\u5DE5\\u5730\\u8D39\\u7528\"\n                }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_mui_material_MenuItem__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n                  value: 190,\n                  children: \"\\u5916\\u811A\\u624B\\u67B6\\u94A2\\u677F\\u7F51\\u4F7F\\u7528\\u589E\\u52A0\\u8D39\"\n                })]\n              })]\n            }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(\"div\", {\n              ref: cankaoRef\n            })]\n          })\n        })]\n      })\n    })]\n  });\n}\n\n//# sourceURL=webpack://front/./src/Zjcs2.js?");

/***/ }),

/***/ "./src/Zlje.js":
/*!*********************!*\
  !*** ./src/Zlje.js ***!
  \*********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ Zlje)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _Service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Service */ \"./src/Service.js\");\n/* harmony import */ var _EditableSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./EditableSelect */ \"./src/EditableSelect.js\");\n/* harmony import */ var _EditableSelectGC__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EditableSelectGC */ \"./src/EditableSelectGC.js\");\n/* harmony import */ var _Editable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Editable */ \"./src/Editable.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n/* harmony import */ var tabulator_tables__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! tabulator-tables */ \"./node_modules/tabulator-tables/dist/js/tabulator_esm.mjs\");\n/* harmony import */ var tabulator_tables_dist_css_tabulator_min_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! tabulator-tables/dist/css/tabulator.min.css */ \"./node_modules/tabulator-tables/dist/css/tabulator.min.css\");\n/* harmony import */ var _Tabulator_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Tabulator.css */ \"./src/Tabulator.css\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\n\n\n\n//registerPlugin(NestedRows);\n\n\n\n\n\n\n //import Tabulator library\n //import Tabulator stylesheet\n\n\nfunction Zlje(_ref) {\n  var data = _ref.data;\n  var myRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef();\n  var myTable = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    myTable.current = new tabulator_tables__WEBPACK_IMPORTED_MODULE_9__.TabulatorFull(myRef.current, _defineProperty(_defineProperty({\n      index: \"key\",\n      height: 600,\n      data: data,\n      //link data to table\n      reactiveData: false,\n      //enable data reactivity\n      dataTreeStartExpanded: true,\n      dataTree: true,\n      selectableRows: 1,\n      //make rows selectable\n      editTriggerEvent: \"dblclick\"\n    }, \"dataTreeStartExpanded\", function dataTreeStartExpanded(row, level) {\n      //console.log(row);\n      //console.log(level);\n      return true; //expand rows where the \"driver\" data field is true;\n    }), \"columns\", [\n    //Define Table Columns 序号\", \"名称\", \"取费基数\", \"计算基础\",\"费率\", \"金额\", \"类别\n    {\n      title: \"序号\",\n      field: \"序号\",\n      width: 80,\n      headerSort: false\n    },\n    //never hide this column\n    {\n      title: \"名称\",\n      field: \"名称\",\n      width: 150,\n      headerSort: false,\n      formatter: \"textarea\"\n    },\n    //hide this column first\n    {\n      title: \"单位\",\n      field: \"单位\",\n      width: 100\n    }, {\n      title: \"暂定金额\",\n      field: \"暂定金额\",\n      width: 100,\n      formatter: \"money\"\n    }, {\n      title: \"备注\",\n      field: \"备注\",\n      width: 100,\n      formatter: \"textarea\"\n    }]));\n    myTable.current.on(\"cellDblClick\", function (e, cell) {\n      //e - the click event object\n      //cell - cell component\n      console.log(cell);\n    });\n\n    //myTable.current.on(\"rowSelected\", handleSelect);\n  }, [data]);\n  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"div\", {\n    ref: myRef\n  });\n}\n\n//# sourceURL=webpack://front/./src/Zlje.js?");

/***/ }),

/***/ "./src/Zygczgj.js":
/*!************************!*\
  !*** ./src/Zygczgj.js ***!
  \************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ Zygczgj)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _Service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Service */ \"./src/Service.js\");\n/* harmony import */ var _EditableSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./EditableSelect */ \"./src/EditableSelect.js\");\n/* harmony import */ var _EditableSelectGC__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EditableSelectGC */ \"./src/EditableSelectGC.js\");\n/* harmony import */ var _Editable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Editable */ \"./src/Editable.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n/* harmony import */ var tabulator_tables__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! tabulator-tables */ \"./node_modules/tabulator-tables/dist/js/tabulator_esm.mjs\");\n/* harmony import */ var tabulator_tables_dist_css_tabulator_min_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! tabulator-tables/dist/css/tabulator.min.css */ \"./node_modules/tabulator-tables/dist/css/tabulator.min.css\");\n/* harmony import */ var _Tabulator_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Tabulator.css */ \"./src/Tabulator.css\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\n\n\n\n//registerPlugin(NestedRows);\n\n\n\n\n\n\n //import Tabulator library\n //import Tabulator stylesheet\n\n\nfunction Zygczgj(_ref) {\n  var data = _ref.data;\n  var myRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef();\n  var myTable = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);\n  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n    myTable.current = new tabulator_tables__WEBPACK_IMPORTED_MODULE_9__.TabulatorFull(myRef.current, _defineProperty(_defineProperty({\n      index: \"key\",\n      height: 600,\n      data: data,\n      //link data to table\n      reactiveData: false,\n      //enable data reactivity\n      dataTreeStartExpanded: true,\n      dataTree: true,\n      selectableRows: 1,\n      //make rows selectable\n      editTriggerEvent: \"dblclick\"\n    }, \"dataTreeStartExpanded\", function dataTreeStartExpanded(row, level) {\n      //console.log(row);\n      //console.log(level);\n      return true; //expand rows where the \"driver\" data field is true;\n    }), \"columns\", [\n    //Define Table Columns 序号\", \"名称\", \"取费基数\", \"计算基础\",\"费率\", \"金额\", \"类别\n    {\n      title: \"序号\",\n      field: \"序号\",\n      width: 80,\n      headerSort: false\n    },\n    //never hide this column\n    {\n      title: \"名称\",\n      field: \"名称\",\n      width: 150,\n      headerSort: false,\n      formatter: \"textarea\"\n    },\n    //hide this column first\n    {\n      title: \"工程内容\",\n      field: \"工程内容\",\n      width: 100,\n      formatter: \"textarea\"\n    }, {\n      title: \"金额\",\n      field: \"金额\",\n      width: 100,\n      formatter: \"money\"\n    }, {\n      title: \"备注\",\n      field: \"备注\",\n      width: 100,\n      formatter: \"textarea\"\n    }]));\n    myTable.current.on(\"cellDblClick\", function (e, cell) {\n      //e - the click event object\n      //cell - cell component\n      console.log(cell);\n    });\n\n    //myTable.current.on(\"rowSelected\", handleSelect);\n  }, [data]);\n  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"div\", {\n    ref: myRef\n  });\n}\n\n//# sourceURL=webpack://front/./src/Zygczgj.js?");

/***/ }),

/***/ "./src/editor.js":
/*!***********************!*\
  !*** ./src/editor.js ***!
  \***********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   changguidinge: () => (/* binding */ changguidinge),\n/* harmony export */   changguidinge_djcs: () => (/* binding */ changguidinge_djcs),\n/* harmony export */   danxiangdinge: () => (/* binding */ danxiangdinge),\n/* harmony export */   danxiangdinge_djcs: () => (/* binding */ danxiangdinge_djcs),\n/* harmony export */   handleBeizhu: () => (/* binding */ handleBeizhu),\n/* harmony export */   handleBeizhu_djcs: () => (/* binding */ handleBeizhu_djcs),\n/* harmony export */   handleYuban: () => (/* binding */ handleYuban),\n/* harmony export */   huan: () => (/* binding */ huan),\n/* harmony export */   redo: () => (/* binding */ redo),\n/* harmony export */   redo_djcs: () => (/* binding */ redo_djcs),\n/* harmony export */   shanchu: () => (/* binding */ shanchu),\n/* harmony export */   shanchu_djcs: () => (/* binding */ shanchu_djcs),\n/* harmony export */   undo: () => (/* binding */ undo),\n/* harmony export */   undo_djcs: () => (/* binding */ undo_djcs),\n/* harmony export */   updateDercj: () => (/* binding */ updateDercj),\n/* harmony export */   updateDercj_djcs: () => (/* binding */ updateDercj_djcs),\n/* harmony export */   updateShuliang: () => (/* binding */ updateShuliang),\n/* harmony export */   updateShuliang_djcs: () => (/* binding */ updateShuliang_djcs)\n/* harmony export */ });\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n/* harmony import */ var _Service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Service */ \"./src/Service.js\");\n\n\nfunction copy(input) {\n  return JSON.parse(JSON.stringify(input));\n}\nvar undo = function undo() {\n  var newData = _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].undo();\n  return newData;\n};\nvar undo_djcs = function undo_djcs() {\n  var newData = _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].undo_djcs();\n  return newData;\n};\nvar redo = function redo() {\n  var newData = _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].redo();\n  return newData;\n};\nvar redo_djcs = function redo_djcs() {\n  var newData = _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].redo_djcs();\n  return newData;\n};\nvar shanchu = function shanchu(selectedRow) {\n  var newData = _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].shanchu(selectedRow);\n  return newData;\n};\nvar shanchu_djcs = function shanchu_djcs(selectedRow) {\n  var newData = _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].shanchu_djcs(selectedRow);\n  return newData;\n};\nvar danxiangdinge = function danxiangdinge(selectedRow) {\n  return _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].danxiangdinge(selectedRow);\n};\nvar danxiangdinge_djcs = function danxiangdinge_djcs(selectedRow) {\n  return _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].danxiangdinge_djcs(selectedRow);\n};\nvar updateDercj = function updateDercj(row, data) {\n  return _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].updateDercj(row, data);\n};\nvar updateDercj_djcs = function updateDercj_djcs(row, data) {\n  return _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].updateDercj_djcs(row, data);\n};\nvar huan = function huan(replaceState, row) {\n  return _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].huan(replaceState['old'], replaceState['newBianhao'], replaceState['newName'], replaceState['newJia'], row);\n};\nvar updateShuliang = function updateShuliang(data, row) {\n  return _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].updateShuliang(data, row);\n};\nvar updateShuliang_djcs = function updateShuliang_djcs(data, row) {\n  return _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].updateShuliang_djcs(data, row);\n};\nvar changguidinge = function changguidinge(dingeclick, selectedRow) {\n  return _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].changguidinge(dingeclick, selectedRow);\n};\nvar changguidinge_djcs = function changguidinge_djcs(dingeclick, selectedRow) {\n  return _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].changguidinge_djcs(dingeclick, selectedRow);\n};\nvar handleYuban = function handleYuban(derow, select) {\n  return _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].handleYuban(derow, select);\n};\nvar handleBeizhu = function handleBeizhu(beizhuFK, derow, fuzhuSelect, fuzhu) {\n  console.log(beizhuFK);\n  var bianma = [];\n  var xuhao = [];\n  var fuzhuSelect_ = Array.from(fuzhuSelect);\n  var keys = beizhuFK['BZBH'];\n  for (var j = 0; j < fuzhuSelect_.length; j++) {\n    var entry = fuzhuSelect_[j];\n    for (var i = 0; i < fuzhu.length; i++) {\n      if (fuzhu[i]['key'] == entry) {\n        bianma.push(fuzhu[i]['编号']);\n        xuhao.push(fuzhu[i]['序号']);\n      }\n    }\n  }\n  var result = [];\n  for (var _i = 0; _i < bianma.length; _i++) {\n    var bh = bianma[_i];\n    for (var _j = 0; _j < Object.keys(keys).length; _j++) {\n      var BZBH_ = Object.keys(keys)[_j];\n      var BZBH = keys[BZBH_];\n      if (BZBH == bh) {\n        result.push([beizhuFK['BH'][BZBH_], beizhuFK['MC'][BZBH_], beizhuFK['LB'][BZBH_], beizhuFK['SL'][BZBH_], beizhuFK['DW'][BZBH_]]);\n      }\n    }\n  }\n  console.log(result);\n  return _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].updateBeizhu(derow, result, xuhao);\n};\nvar handleBeizhu_djcs = function handleBeizhu_djcs(beizhuFK, derow, fuzhuSelect, fuzhu) {\n  console.log(beizhuFK);\n  var bianma = [];\n  var xuhao = [];\n  var fuzhuSelect_ = Array.from(fuzhuSelect);\n  var keys = beizhuFK['BZBH'];\n  for (var j = 0; j < fuzhuSelect_.length; j++) {\n    var entry = fuzhuSelect_[j];\n    for (var i = 0; i < fuzhu.length; i++) {\n      if (fuzhu[i]['key'] == entry) {\n        bianma.push(fuzhu[i]['编号']);\n        xuhao.push(fuzhu[i]['序号']);\n      }\n    }\n  }\n  var result = [];\n  for (var _i2 = 0; _i2 < bianma.length; _i2++) {\n    var bh = bianma[_i2];\n    for (var _j2 = 0; _j2 < Object.keys(keys).length; _j2++) {\n      var BZBH_ = Object.keys(keys)[_j2];\n      var BZBH = keys[BZBH_];\n      if (BZBH == bh) {\n        result.push([beizhuFK['BH'][BZBH_], beizhuFK['MC'][BZBH_], beizhuFK['LB'][BZBH_], beizhuFK['SL'][BZBH_], beizhuFK['DW'][BZBH_]]);\n      }\n    }\n  }\n  console.log(result);\n  return _Service__WEBPACK_IMPORTED_MODULE_1__[\"default\"].updateBeizhu_djcs(derow, result, xuhao);\n};\n\n//# sourceURL=webpack://front/./src/editor.js?");

/***/ })

}]);