"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_Service_js"],{

/***/ "./src/Service.js":
/*!************************!*\
  !*** ./src/Service.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\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! uuid */ \"./node_modules/uuid/dist/esm-browser/v4.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 _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return r; }; var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = \"function\" == typeof Symbol ? Symbol : {}, i = o.iterator || \"@@iterator\", a = o.asyncIterator || \"@@asyncIterator\", u = o.toStringTag || \"@@toStringTag\"; function c(t, r, e, n) { return Object.defineProperty(t, r, { value: e, enumerable: !n, configurable: !n, writable: !n }); } try { c({}, \"\"); } catch (t) { c = function c(t, r, e) { return t[r] = e; }; } function h(r, e, n, o) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype); return c(a, \"_invoke\", function (r, e, n) { var o = 1; return function (i, a) { if (3 === o) throw Error(\"Generator is already running\"); if (4 === o) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var u = n.delegate; if (u) { var c = d(u, n); if (c) { if (c === f) continue; return c; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (1 === o) throw o = 4, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = 3; var h = s(r, e, n); if (\"normal\" === h.type) { if (o = n.done ? 4 : 2, h.arg === f) continue; return { value: h.arg, done: n.done }; } \"throw\" === h.type && (o = 4, n.method = \"throw\", n.arg = h.arg); } }; }(r, n, new Context(o || [])), !0), a; } function s(t, r, e) { try { return { type: \"normal\", arg: t.call(r, e) }; } catch (t) { return { type: \"throw\", arg: t }; } } r.wrap = h; var f = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var l = {}; c(l, i, function () { return this; }); var p = Object.getPrototypeOf, y = p && p(p(x([]))); y && y !== e && n.call(y, i) && (l = y); var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l); function g(t) { [\"next\", \"throw\", \"return\"].forEach(function (r) { c(t, r, function (t) { return this._invoke(r, t); }); }); } function AsyncIterator(t, r) { function e(o, i, a, u) { var c = s(t[o], t, i); if (\"throw\" !== c.type) { var h = c.arg, f = h.value; return f && \"object\" == _typeof(f) && n.call(f, \"__await\") ? r.resolve(f.__await).then(function (t) { e(\"next\", t, a, u); }, function (t) { e(\"throw\", t, a, u); }) : r.resolve(f).then(function (t) { h.value = t, a(h); }, function (t) { return e(\"throw\", t, a, u); }); } u(c.arg); } var o; c(this, \"_invoke\", function (t, n) { function i() { return new r(function (r, o) { e(t, n, r, o); }); } return o = o ? o.then(i, i) : i(); }, !0); } function d(r, e) { var n = e.method, o = r.i[n]; if (o === t) return e.delegate = null, \"throw\" === n && r.i[\"return\"] && (e.method = \"return\", e.arg = t, d(r, e), \"throw\" === e.method) || \"return\" !== n && (e.method = \"throw\", e.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), f; var i = s(o, r.i, e.arg); if (\"throw\" === i.type) return e.method = \"throw\", e.arg = i.arg, e.delegate = null, f; var a = i.arg; return a ? a.done ? (e[r.r] = a.value, e.next = r.n, \"return\" !== e.method && (e.method = \"next\", e.arg = t), e.delegate = null, f) : a : (e.method = \"throw\", e.arg = new TypeError(\"iterator result is not an object\"), e.delegate = null, f); } function w(t) { this.tryEntries.push(t); } function m(r) { var e = r[4] || {}; e.type = \"normal\", e.arg = t, r[4] = e; } function Context(t) { this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0); } function x(r) { if (null != r) { var e = r[i]; if (e) return e.call(r); if (\"function\" == typeof r.next) return r; if (!isNaN(r.length)) { var o = -1, a = function e() { for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e; return e.value = t, e.done = !0, e; }; return a.next = a; } } throw new TypeError(_typeof(r) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, \"constructor\", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), r.isGeneratorFunction = function (t) { var r = \"function\" == typeof t && t.constructor; return !!r && (r === GeneratorFunction || \"GeneratorFunction\" === (r.displayName || r.name)); }, r.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, \"GeneratorFunction\")), t.prototype = Object.create(v), t; }, r.awrap = function (t) { return { __await: t }; }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () { return this; }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(h(t, e, n, o), i); return r.isGeneratorFunction(e) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, g(v), c(v, u, \"Generator\"), c(v, i, function () { return this; }), c(v, \"toString\", function () { return \"[object Generator]\"; }), r.keys = function (t) { var r = Object(t), e = []; for (var n in r) e.unshift(n); return function t() { for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t; return t.done = !0, t; }; }, r.values = x, Context.prototype = { constructor: Context, reset: function reset(r) { if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) \"t\" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0][4]; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(r) { if (this.done) throw r; var e = this; function n(t) { a.type = \"throw\", a.arg = r, e.next = t; } for (var o = e.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i[4], u = this.prev, c = i[1], h = i[2]; if (-1 === i[0]) return n(\"end\"), !1; if (!c && !h) throw Error(\"try statement without catch or finally\"); if (null != i[0] && i[0] <= u) { if (u < c) return this.method = \"next\", this.arg = t, n(c), !0; if (u < h) return n(h), !1; } } }, abrupt: function abrupt(t, r) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var n = this.tryEntries[e]; if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) { var o = n; break; } } o && (\"break\" === t || \"continue\" === t) && o[0] <= r && r <= o[2] && (o = null); var i = o ? o[4] : {}; return i.type = t, i.arg = r, o ? (this.method = \"next\", this.next = o[2], f) : this.complete(i); }, complete: function complete(t, r) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && r && (this.next = r), f; }, finish: function finish(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[2] === t) return this.complete(e[4], e[3]), m(e), f; } }, \"catch\": function _catch(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[0] === t) { var n = e[4]; if (\"throw\" === n.type) { var o = n.arg; m(e); } return o; } } throw Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(r, e, n) { return this.delegate = { i: x(r), r: e, n: n }, \"next\" === this.method && (this.arg = t), f; } }, r; }\nfunction asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\nfunction _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), 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\nvar Service = /*#__PURE__*/function () {\n  function Service() {\n    _classCallCheck(this, Service);\n    this.cache = [];\n    this.memory = [];\n    this.mem_pointer = -1;\n    this.cache_djcs = [];\n    this.memory_djcs = [];\n    this.mem_pointer_djcs = -1;\n    this.qufei = [];\n    this.qufeiEntry = null;\n  }\n  return _createClass(Service, [{\n    key: \"ip\",\n    value: function ip() {\n      return \"/api\"; //return \"http://127.0.0.1:8000\"\n    }\n  }, {\n    key: \"clearCache\",\n    value: function clearCache() {\n      //set qufei will clear cache\n      this.cache = [];\n      this.memory = [];\n      this.mem_pointer = -1;\n      this.cache_djcs = [];\n      this.memory_djcs = [];\n      this.mem_pointer_djcs = -1;\n    }\n  }, {\n    key: \"setQufei\",\n    value: function setQufei(data) {\n      var result = [];\n      for (var i = 0; i < data[0]['children'].length; i++) {\n        var child = data[0]['children'][i];\n        for (var j = 0; j < child['children'].length; j++) {\n          var grandchild = child['children'][j];\n          //console.log(grandchild);\n          result.push(grandchild);\n        }\n      }\n      this.qufei = result;\n    }\n  }, {\n    key: \"setQufeiEntry\",\n    value: function setQufeiEntry(bh) {\n      this.qufeiEntry = this.qufei.filter(function (x) {\n        return x['key'] == bh;\n      })[0];\n    }\n  }, {\n    key: \"processDjcsmingxi\",\n    value: function processDjcsmingxi(mingxi) {\n      this.cache_djcs = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(mingxi);\n      for (var i = 0; i < this.cache_djcs.length; i++) {\n        var zimu = this.cache_djcs[i];\n        if (!zimu.hasOwnProperty(\"_children\")) {\n          zimu[\"_children\"] = [];\n        }\n        if (!zimu.hasOwnProperty(\"rcj\")) {\n          zimu[\"rcj\"] = [[\"ID\", \"人材机编码\", \"名称\", \"规格型号\", \"单位\", \"单价\", \"产地\", \"供应厂商\", \"人材机类别\", \"甲供标志\", \"含量\", \"合价\", \"暂估价标志\", \"主要材料标志\", \"主材标志\", \"设备标志\"]];\n        }\n      }\n      for (var _i = 0; _i < this.cache_djcs.length; _i++) {\n        var _zimu = this.cache_djcs[_i];\n        for (var j = 0; j < _zimu[\"_children\"].length; j++) {\n          var de = _zimu[\"_children\"][j];\n          if (!de.hasOwnProperty(\"dercj\")) {\n            de[\"dercj\"] = [[\"ID\", \"人材机编码\", \"名称\", \"规格型号\", \"单位\", \"单价\", \"产地\", \"供应厂商\", \"人材机类别\", \"甲供标志\", \"含量\", \"合价\", \"暂估价标志\", \"主要材料标志\", \"主材标志\", \"设备标志\"]];\n          }\n        }\n      }\n      this.cache_djcs = this.cache_djcs.map(function (x) {\n        //x[\"children\"] = x[\"__children\"];\n\n        x[\"key\"] = x[\"序号\"];\n        x[\"_children\"] = x[\"_children\"].map(function (y) {\n          if (!y.hasOwnProperty('key')) {\n            y['key'] = (0,uuid__WEBPACK_IMPORTED_MODULE_1__[\"default\"])();\n          }\n          return y;\n        });\n        return x;\n      });\n      this.memory_djcs = [];\n      this.memory_djcs.push((0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache_djcs));\n      this.mem_pointer_djcs = 0;\n    }\n  }, {\n    key: \"processQingdanmingxi\",\n    value: function processQingdanmingxi(mingxi) {\n      this.cache = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(mingxi);\n      for (var i = 0; i < this.cache.length; i++) {\n        var zimu = this.cache[i];\n        if (!zimu.hasOwnProperty(\"__children\")) {\n          zimu[\"__children\"] = [];\n        }\n        if (!zimu.hasOwnProperty(\"rcj\")) {\n          zimu[\"rcj\"] = [[\"ID\", \"人材机编码\", \"名称\", \"规格型号\", \"单位\", \"单价\", \"产地\", \"供应厂商\", \"人材机类别\", \"甲供标志\", \"含量\", \"合价\", \"暂估价标志\", \"主要材料标志\", \"主材标志\", \"设备标志\"]];\n        }\n      }\n      for (var _i2 = 0; _i2 < this.cache.length; _i2++) {\n        var _zimu2 = this.cache[_i2];\n        for (var j = 0; j < _zimu2[\"__children\"].length; j++) {\n          var de = _zimu2[\"__children\"][j];\n          if (!de.hasOwnProperty(\"dercj\")) {\n            de[\"dercj\"] = [[\"ID\", \"人材机编码\", \"名称\", \"规格型号\", \"单位\", \"单价\", \"产地\", \"供应厂商\", \"人材机类别\", \"甲供标志\", \"含量\", \"合价\", \"暂估价标志\", \"主要材料标志\", \"主材标志\", \"设备标志\"]];\n          }\n        }\n      }\n      this.cache = this.cache.map(function (x) {\n        x[\"_children\"] = x[\"__children\"];\n        x[\"key\"] = x[\"序号\"];\n        x[\"_children\"] = x[\"_children\"].map(function (y) {\n          if (!y.hasOwnProperty('key')) {\n            y['key'] = (0,uuid__WEBPACK_IMPORTED_MODULE_1__[\"default\"])();\n          }\n          return y;\n        });\n        return x;\n      });\n      this.memory = [];\n      this.memory.push((0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache));\n      this.mem_pointer = 0;\n    }\n  }, {\n    key: \"generateOutline\",\n    value: function () {\n      var _generateOutline = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(name) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee$(_context) {\n          while (1) switch (_context.prev = _context.next) {\n            case 0:\n              _context.next = 2;\n              return fetch(this.ip().concat(\"/outline\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  \"name\": name\n                })\n              });\n            case 2:\n              response = _context.sent;\n              if (response.ok) {\n                _context.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context.next = 11;\n              break;\n            case 7:\n              _context.next = 9;\n              return response.json();\n            case 9:\n              data = _context.sent;\n              return _context.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context.stop();\n          }\n        }, _callee, this);\n      }));\n      function generateOutline(_x) {\n        return _generateOutline.apply(this, arguments);\n      }\n      return generateOutline;\n    }()\n  }, {\n    key: \"uploadFile\",\n    value: function () {\n      var _uploadFile = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(fd) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee2$(_context2) {\n          while (1) switch (_context2.prev = _context2.next) {\n            case 0:\n              _context2.next = 2;\n              return fetch(this.ip().concat(\"/upload/\"), {\n                method: \"POST\",\n                body: fd\n              });\n            case 2:\n              response = _context2.sent;\n              if (response.ok) {\n                _context2.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context2.next = 11;\n              break;\n            case 7:\n              _context2.next = 9;\n              return response.json();\n            case 9:\n              data = _context2.sent;\n              return _context2.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context2.stop();\n          }\n        }, _callee2, this);\n      }));\n      function uploadFile(_x2) {\n        return _uploadFile.apply(this, arguments);\n      }\n      return uploadFile;\n    }()\n  }, {\n    key: \"generateQufei\",\n    value: function () {\n      var _generateQufei = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(name) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee3$(_context3) {\n          while (1) switch (_context3.prev = _context3.next) {\n            case 0:\n              _context3.next = 2;\n              return fetch(this.ip().concat(\"/qufei/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  \"name\": name\n                })\n              });\n            case 2:\n              response = _context3.sent;\n              if (response.ok) {\n                _context3.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context3.next = 11;\n              break;\n            case 7:\n              _context3.next = 9;\n              return response.json();\n            case 9:\n              data = _context3.sent;\n              return _context3.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context3.stop();\n          }\n        }, _callee3, this);\n      }));\n      function generateQufei(_x3) {\n        return _generateQufei.apply(this, arguments);\n      }\n      return generateQufei;\n    }()\n  }, {\n    key: \"generateOutline2\",\n    value: function () {\n      var _generateOutline2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(name) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee4$(_context4) {\n          while (1) switch (_context4.prev = _context4.next) {\n            case 0:\n              _context4.next = 2;\n              return fetch(this.ip().concat(\"/outline2\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  \"name\": name\n                })\n              });\n            case 2:\n              response = _context4.sent;\n              if (response.ok) {\n                _context4.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context4.next = 11;\n              break;\n            case 7:\n              _context4.next = 9;\n              return response.json();\n            case 9:\n              data = _context4.sent;\n              return _context4.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context4.stop();\n          }\n        }, _callee4, this);\n      }));\n      function generateOutline2(_x4) {\n        return _generateOutline2.apply(this, arguments);\n      }\n      return generateOutline2;\n    }()\n  }, {\n    key: \"generateDetail\",\n    value: function () {\n      var _generateDetail = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(name) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee5$(_context5) {\n          while (1) switch (_context5.prev = _context5.next) {\n            case 0:\n              _context5.next = 2;\n              return fetch(this.ip().concat(\"/detail\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  \"name\": name\n                })\n              });\n            case 2:\n              response = _context5.sent;\n              if (response.ok) {\n                _context5.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context5.next = 11;\n              break;\n            case 7:\n              _context5.next = 9;\n              return response.json();\n            case 9:\n              data = _context5.sent;\n              return _context5.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context5.stop();\n          }\n        }, _callee5, this);\n      }));\n      function generateDetail(_x5) {\n        return _generateDetail.apply(this, arguments);\n      }\n      return generateDetail;\n    }()\n  }, {\n    key: \"generateDetail2\",\n    value: function () {\n      var _generateDetail2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(name) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee6$(_context6) {\n          while (1) switch (_context6.prev = _context6.next) {\n            case 0:\n              _context6.next = 2;\n              return fetch(this.ip().concat(\"/detail2\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  \"name\": name\n                })\n              });\n            case 2:\n              response = _context6.sent;\n              if (response.ok) {\n                _context6.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context6.next = 11;\n              break;\n            case 7:\n              _context6.next = 9;\n              return response.json();\n            case 9:\n              data = _context6.sent;\n              return _context6.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context6.stop();\n          }\n        }, _callee6, this);\n      }));\n      function generateDetail2(_x6) {\n        return _generateDetail2.apply(this, arguments);\n      }\n      return generateDetail2;\n    }()\n  }, {\n    key: \"generateBaojiahuizong\",\n    value: function () {\n      var _generateBaojiahuizong = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(name, id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee7$(_context7) {\n          while (1) switch (_context7.prev = _context7.next) {\n            case 0:\n              _context7.next = 2;\n              return fetch(this.ip().concat(\"/baojiahuizong/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  name: name,\n                  id: id\n                })\n              });\n            case 2:\n              response = _context7.sent;\n              if (response.ok) {\n                _context7.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context7.next = 11;\n              break;\n            case 7:\n              _context7.next = 9;\n              return response.json();\n            case 9:\n              data = _context7.sent;\n              return _context7.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context7.stop();\n          }\n        }, _callee7, this);\n      }));\n      function generateBaojiahuizong(_x7, _x8) {\n        return _generateBaojiahuizong.apply(this, arguments);\n      }\n      return generateBaojiahuizong;\n    }()\n  }, {\n    key: \"generateBaojiahuizong2\",\n    value: function () {\n      var _generateBaojiahuizong2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(name, id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee8$(_context8) {\n          while (1) switch (_context8.prev = _context8.next) {\n            case 0:\n              _context8.next = 2;\n              return fetch(this.ip().concat(\"/baojiahuizong2/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  name: name,\n                  id: id\n                })\n              });\n            case 2:\n              response = _context8.sent;\n              if (response.ok) {\n                _context8.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context8.next = 11;\n              break;\n            case 7:\n              _context8.next = 9;\n              return response.json();\n            case 9:\n              data = _context8.sent;\n              return _context8.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context8.stop();\n          }\n        }, _callee8, this);\n      }));\n      function generateBaojiahuizong2(_x9, _x0) {\n        return _generateBaojiahuizong2.apply(this, arguments);\n      }\n      return generateBaojiahuizong2;\n    }()\n  }, {\n    key: \"generateGuifeishuijin\",\n    value: function () {\n      var _generateGuifeishuijin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(name, id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee9$(_context9) {\n          while (1) switch (_context9.prev = _context9.next) {\n            case 0:\n              _context9.next = 2;\n              return fetch(this.ip().concat(\"/guifeishuijin/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  name: name,\n                  id: id\n                })\n              });\n            case 2:\n              response = _context9.sent;\n              if (response.ok) {\n                _context9.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context9.next = 11;\n              break;\n            case 7:\n              _context9.next = 9;\n              return response.json();\n            case 9:\n              data = _context9.sent;\n              return _context9.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context9.stop();\n          }\n        }, _callee9, this);\n      }));\n      function generateGuifeishuijin(_x1, _x10) {\n        return _generateGuifeishuijin.apply(this, arguments);\n      }\n      return generateGuifeishuijin;\n    }()\n  }, {\n    key: \"generateGuifeishuijin2\",\n    value: function () {\n      var _generateGuifeishuijin2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee0(name, id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee0$(_context0) {\n          while (1) switch (_context0.prev = _context0.next) {\n            case 0:\n              _context0.next = 2;\n              return fetch(this.ip().concat(\"/guifeishuijin2/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  name: name,\n                  id: id\n                })\n              });\n            case 2:\n              response = _context0.sent;\n              if (response.ok) {\n                _context0.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context0.next = 11;\n              break;\n            case 7:\n              _context0.next = 9;\n              return response.json();\n            case 9:\n              data = _context0.sent;\n              return _context0.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context0.stop();\n          }\n        }, _callee0, this);\n      }));\n      function generateGuifeishuijin2(_x11, _x12) {\n        return _generateGuifeishuijin2.apply(this, arguments);\n      }\n      return generateGuifeishuijin2;\n    }()\n  }, {\n    key: \"generateQitaxiangmu\",\n    value: function () {\n      var _generateQitaxiangmu = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee1(name, id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee1$(_context1) {\n          while (1) switch (_context1.prev = _context1.next) {\n            case 0:\n              _context1.next = 2;\n              return fetch(this.ip().concat(\"/qitaxiangmu/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  name: name,\n                  id: id\n                })\n              });\n            case 2:\n              response = _context1.sent;\n              if (response.ok) {\n                _context1.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context1.next = 11;\n              break;\n            case 7:\n              _context1.next = 9;\n              return response.json();\n            case 9:\n              data = _context1.sent;\n              return _context1.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context1.stop();\n          }\n        }, _callee1, this);\n      }));\n      function generateQitaxiangmu(_x13, _x14) {\n        return _generateQitaxiangmu.apply(this, arguments);\n      }\n      return generateQitaxiangmu;\n    }()\n  }, {\n    key: \"generateQitaxiangmu2\",\n    value: function () {\n      var _generateQitaxiangmu2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(name, id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee10$(_context10) {\n          while (1) switch (_context10.prev = _context10.next) {\n            case 0:\n              _context10.next = 2;\n              return fetch(this.ip().concat(\"/qitaxiangmu2/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  name: name,\n                  id: id\n                })\n              });\n            case 2:\n              response = _context10.sent;\n              if (response.ok) {\n                _context10.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context10.next = 11;\n              break;\n            case 7:\n              _context10.next = 9;\n              return response.json();\n            case 9:\n              data = _context10.sent;\n              return _context10.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context10.stop();\n          }\n        }, _callee10, this);\n      }));\n      function generateQitaxiangmu2(_x15, _x16) {\n        return _generateQitaxiangmu2.apply(this, arguments);\n      }\n      return generateQitaxiangmu2;\n    }()\n  }, {\n    key: \"generateZygczgj\",\n    value: function () {\n      var _generateZygczgj = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(name, id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee11$(_context11) {\n          while (1) switch (_context11.prev = _context11.next) {\n            case 0:\n              _context11.next = 2;\n              return fetch(this.ip().concat(\"/zygczgj/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  name: name,\n                  id: id\n                })\n              });\n            case 2:\n              response = _context11.sent;\n              if (response.ok) {\n                _context11.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context11.next = 11;\n              break;\n            case 7:\n              _context11.next = 9;\n              return response.json();\n            case 9:\n              data = _context11.sent;\n              return _context11.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context11.stop();\n          }\n        }, _callee11, this);\n      }));\n      function generateZygczgj(_x17, _x18) {\n        return _generateZygczgj.apply(this, arguments);\n      }\n      return generateZygczgj;\n    }()\n  }, {\n    key: \"generateZongchengbaofuwufei\",\n    value: function () {\n      var _generateZongchengbaofuwufei = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(name, id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee12$(_context12) {\n          while (1) switch (_context12.prev = _context12.next) {\n            case 0:\n              _context12.next = 2;\n              return fetch(this.ip().concat(\"/zongchengbaofuwufei/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  name: name,\n                  id: id\n                })\n              });\n            case 2:\n              response = _context12.sent;\n              if (response.ok) {\n                _context12.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context12.next = 11;\n              break;\n            case 7:\n              _context12.next = 9;\n              return response.json();\n            case 9:\n              data = _context12.sent;\n              return _context12.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context12.stop();\n          }\n        }, _callee12, this);\n      }));\n      function generateZongchengbaofuwufei(_x19, _x20) {\n        return _generateZongchengbaofuwufei.apply(this, arguments);\n      }\n      return generateZongchengbaofuwufei;\n    }()\n  }, {\n    key: \"generateZongchengbaofuwufei2\",\n    value: function () {\n      var _generateZongchengbaofuwufei2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(name, id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee13$(_context13) {\n          while (1) switch (_context13.prev = _context13.next) {\n            case 0:\n              _context13.next = 2;\n              return fetch(this.ip().concat(\"/zongchengbaofuwufei2/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  name: name,\n                  id: id\n                })\n              });\n            case 2:\n              response = _context13.sent;\n              if (response.ok) {\n                _context13.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context13.next = 11;\n              break;\n            case 7:\n              _context13.next = 9;\n              return response.json();\n            case 9:\n              data = _context13.sent;\n              return _context13.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context13.stop();\n          }\n        }, _callee13, this);\n      }));\n      function generateZongchengbaofuwufei2(_x21, _x22) {\n        return _generateZongchengbaofuwufei2.apply(this, arguments);\n      }\n      return generateZongchengbaofuwufei2;\n    }()\n  }, {\n    key: \"generateFabaorengongyingcailiao\",\n    value: function () {\n      var _generateFabaorengongyingcailiao = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(name, id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee14$(_context14) {\n          while (1) switch (_context14.prev = _context14.next) {\n            case 0:\n              _context14.next = 2;\n              return fetch(this.ip().concat(\"/fabaorengongyingcailiao/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  name: name,\n                  id: id\n                })\n              });\n            case 2:\n              response = _context14.sent;\n              if (response.ok) {\n                _context14.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context14.next = 11;\n              break;\n            case 7:\n              _context14.next = 9;\n              return response.json();\n            case 9:\n              data = _context14.sent;\n              return _context14.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context14.stop();\n          }\n        }, _callee14, this);\n      }));\n      function generateFabaorengongyingcailiao(_x23, _x24) {\n        return _generateFabaorengongyingcailiao.apply(this, arguments);\n      }\n      return generateFabaorengongyingcailiao;\n    }()\n  }, {\n    key: \"generateFabaorengongyingcailiao2\",\n    value: function () {\n      var _generateFabaorengongyingcailiao2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(name, id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee15$(_context15) {\n          while (1) switch (_context15.prev = _context15.next) {\n            case 0:\n              _context15.next = 2;\n              return fetch(this.ip().concat(\"/fabaorengongyingcailiao2/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  name: name,\n                  id: id\n                })\n              });\n            case 2:\n              response = _context15.sent;\n              if (response.ok) {\n                _context15.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context15.next = 11;\n              break;\n            case 7:\n              _context15.next = 9;\n              return response.json();\n            case 9:\n              data = _context15.sent;\n              return _context15.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context15.stop();\n          }\n        }, _callee15, this);\n      }));\n      function generateFabaorengongyingcailiao2(_x25, _x26) {\n        return _generateFabaorengongyingcailiao2.apply(this, arguments);\n      }\n      return generateFabaorengongyingcailiao2;\n    }()\n  }, {\n    key: \"generateRencaijihuizong\",\n    value: function () {\n      var _generateRencaijihuizong = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee16(name, id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee16$(_context16) {\n          while (1) switch (_context16.prev = _context16.next) {\n            case 0:\n              _context16.next = 2;\n              return fetch(this.ip().concat(\"/rencaijihuizong/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  name: name,\n                  id: id\n                })\n              });\n            case 2:\n              response = _context16.sent;\n              if (response.ok) {\n                _context16.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context16.next = 11;\n              break;\n            case 7:\n              _context16.next = 9;\n              return response.json();\n            case 9:\n              data = _context16.sent;\n              return _context16.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context16.stop();\n          }\n        }, _callee16, this);\n      }));\n      function generateRencaijihuizong(_x27, _x28) {\n        return _generateRencaijihuizong.apply(this, arguments);\n      }\n      return generateRencaijihuizong;\n    }()\n  }, {\n    key: \"generateRencaijihuizong2\",\n    value: function () {\n      var _generateRencaijihuizong2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17(name, id) {\n        var response, data, result, i;\n        return _regeneratorRuntime().wrap(function _callee17$(_context17) {\n          while (1) switch (_context17.prev = _context17.next) {\n            case 0:\n              _context17.next = 2;\n              return fetch(this.ip().concat(\"/rencaijihuizong2/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  name: name,\n                  id: id\n                })\n              });\n            case 2:\n              response = _context17.sent;\n              if (response.ok) {\n                _context17.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context17.next = 14;\n              break;\n            case 7:\n              _context17.next = 9;\n              return response.json();\n            case 9:\n              data = _context17.sent;\n              result = [];\n              for (i = 1; i < data.length; i++) {\n                result.push({\n                  'key': (0,uuid__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(),\n                  'ID': data[i][0],\n                  '编码': data[i][1],\n                  '名称': data[i][2],\n                  '规格型号': data[i][3],\n                  '单位': data[i][4],\n                  '数量': data[i][5],\n                  '单价': data[i][6],\n                  '合价': data[i][7],\n                  '产地': data[i][8],\n                  '供应厂商': data[i][9],\n                  '人材机类别': data[i][10],\n                  '主要材料标志': data[i][11],\n                  '主材标志': data[i][12],\n                  '设备标志': data[i][13],\n                  '甲供标志': data[i][14],\n                  '暂估价标志': data[i][15]\n                });\n              }\n              this.setQufeiEntry(id);\n              return _context17.abrupt(\"return\", result);\n            case 14:\n            case \"end\":\n              return _context17.stop();\n          }\n        }, _callee17, this);\n      }));\n      function generateRencaijihuizong2(_x29, _x30) {\n        return _generateRencaijihuizong2.apply(this, arguments);\n      }\n      return generateRencaijihuizong2;\n    }()\n  }, {\n    key: \"generateJirigong\",\n    value: function () {\n      var _generateJirigong = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee18(name, id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee18$(_context18) {\n          while (1) switch (_context18.prev = _context18.next) {\n            case 0:\n              _context18.next = 2;\n              return fetch(this.ip().concat(\"/jirigong/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  name: name,\n                  id: id\n                })\n              });\n            case 2:\n              response = _context18.sent;\n              if (response.ok) {\n                _context18.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context18.next = 11;\n              break;\n            case 7:\n              _context18.next = 9;\n              return response.json();\n            case 9:\n              data = _context18.sent;\n              return _context18.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context18.stop();\n          }\n        }, _callee18, this);\n      }));\n      function generateJirigong(_x31, _x32) {\n        return _generateJirigong.apply(this, arguments);\n      }\n      return generateJirigong;\n    }()\n  }, {\n    key: \"generateJirigong2\",\n    value: function () {\n      var _generateJirigong2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee19(name, id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee19$(_context19) {\n          while (1) switch (_context19.prev = _context19.next) {\n            case 0:\n              _context19.next = 2;\n              return fetch(this.ip().concat(\"/jirigong2/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  name: name,\n                  id: id\n                })\n              });\n            case 2:\n              response = _context19.sent;\n              if (response.ok) {\n                _context19.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context19.next = 11;\n              break;\n            case 7:\n              _context19.next = 9;\n              return response.json();\n            case 9:\n              data = _context19.sent;\n              return _context19.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context19.stop();\n          }\n        }, _callee19, this);\n      }));\n      function generateJirigong2(_x33, _x34) {\n        return _generateJirigong2.apply(this, arguments);\n      }\n      return generateJirigong2;\n    }()\n  }, {\n    key: \"generateZanliejine\",\n    value: function () {\n      var _generateZanliejine = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee20(name, id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee20$(_context20) {\n          while (1) switch (_context20.prev = _context20.next) {\n            case 0:\n              _context20.next = 2;\n              return fetch(this.ip().concat(\"/zanliejine/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  name: name,\n                  id: id\n                })\n              });\n            case 2:\n              response = _context20.sent;\n              if (response.ok) {\n                _context20.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context20.next = 11;\n              break;\n            case 7:\n              _context20.next = 9;\n              return response.json();\n            case 9:\n              data = _context20.sent;\n              return _context20.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context20.stop();\n          }\n        }, _callee20, this);\n      }));\n      function generateZanliejine(_x35, _x36) {\n        return _generateZanliejine.apply(this, arguments);\n      }\n      return generateZanliejine;\n    }()\n  }, {\n    key: \"generateZanliejine2\",\n    value: function () {\n      var _generateZanliejine2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee21(name, id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee21$(_context21) {\n          while (1) switch (_context21.prev = _context21.next) {\n            case 0:\n              _context21.next = 2;\n              return fetch(this.ip().concat(\"/zanliejine2/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  name: name,\n                  id: id\n                })\n              });\n            case 2:\n              response = _context21.sent;\n              if (response.ok) {\n                _context21.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context21.next = 11;\n              break;\n            case 7:\n              _context21.next = 9;\n              return response.json();\n            case 9:\n              data = _context21.sent;\n              return _context21.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context21.stop();\n          }\n        }, _callee21, this);\n      }));\n      function generateZanliejine2(_x37, _x38) {\n        return _generateZanliejine2.apply(this, arguments);\n      }\n      return generateZanliejine2;\n    }()\n  }, {\n    key: \"generateQingdanxiangmu\",\n    value: function () {\n      var _generateQingdanxiangmu = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee22(name, id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee22$(_context22) {\n          while (1) switch (_context22.prev = _context22.next) {\n            case 0:\n              _context22.next = 2;\n              return fetch(this.ip().concat(\"/qingdanxiangmu/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  name: name,\n                  id: id\n                })\n              });\n            case 2:\n              response = _context22.sent;\n              if (response.ok) {\n                _context22.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context22.next = 11;\n              break;\n            case 7:\n              _context22.next = 9;\n              return response.json();\n            case 9:\n              data = _context22.sent;\n              return _context22.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context22.stop();\n          }\n        }, _callee22, this);\n      }));\n      function generateQingdanxiangmu(_x39, _x40) {\n        return _generateQingdanxiangmu.apply(this, arguments);\n      }\n      return generateQingdanxiangmu;\n    }()\n  }, {\n    key: \"generateQingdanxiangmu2\",\n    value: function () {\n      var _generateQingdanxiangmu2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee23(name, id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee23$(_context23) {\n          while (1) switch (_context23.prev = _context23.next) {\n            case 0:\n              _context23.next = 2;\n              return fetch(this.ip().concat(\"/qingdanxiangmu2/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  name: name,\n                  id: id\n                })\n              });\n            case 2:\n              response = _context23.sent;\n              if (response.ok) {\n                _context23.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context23.next = 11;\n              break;\n            case 7:\n              _context23.next = 9;\n              return response.json();\n            case 9:\n              data = _context23.sent;\n              return _context23.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context23.stop();\n          }\n        }, _callee23, this);\n      }));\n      function generateQingdanxiangmu2(_x41, _x42) {\n        return _generateQingdanxiangmu2.apply(this, arguments);\n      }\n      return generateQingdanxiangmu2;\n    }()\n  }, {\n    key: \"searchDe\",\n    value: function () {\n      var _searchDe = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee24(zhuanye, text) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee24$(_context24) {\n          while (1) switch (_context24.prev = _context24.next) {\n            case 0:\n              _context24.next = 2;\n              return fetch(this.ip().concat(\"/searchde/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  zhuanye: zhuanye,\n                  text: text\n                })\n              });\n            case 2:\n              response = _context24.sent;\n              if (response.ok) {\n                _context24.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context24.next = 11;\n              break;\n            case 7:\n              _context24.next = 9;\n              return response.json();\n            case 9:\n              data = _context24.sent;\n              return _context24.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context24.stop();\n          }\n        }, _callee24, this);\n      }));\n      function searchDe(_x43, _x44) {\n        return _searchDe.apply(this, arguments);\n      }\n      return searchDe;\n    }() /////////////////////////////////////qingdan//////////////////////////////////////\n  }, {\n    key: \"generateQingdanmingxi\",\n    value: function () {\n      var _generateQingdanmingxi = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee25(name, bh, bt) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee25$(_context25) {\n          while (1) switch (_context25.prev = _context25.next) {\n            case 0:\n              if (!(this.cache.length == 0 || this.cache[0][\"biao_id\"] != name || this.cache[0][\"Dwgcbh\"] != bh || this.cache[0][\"bt\"] != bt)) {\n                _context25.next = 16;\n                break;\n              }\n              _context25.next = 3;\n              return fetch(this.ip().concat(\"/qingdanmingxi/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  \"bh\": bh,\n                  \"bt\": bt,\n                  \"name\": name\n                })\n              });\n            case 3:\n              response = _context25.sent;\n              if (response.ok) {\n                _context25.next = 8;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context25.next = 14;\n              break;\n            case 8:\n              _context25.next = 10;\n              return response.json();\n            case 10:\n              data = _context25.sent;\n              this.processQingdanmingxi(data);\n              this.setQufeiEntry(bh);\n              return _context25.abrupt(\"return\", (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache));\n            case 14:\n              _context25.next = 17;\n              break;\n            case 16:\n              return _context25.abrupt(\"return\", (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache));\n            case 17:\n            case \"end\":\n              return _context25.stop();\n          }\n        }, _callee25, this);\n      }));\n      function generateQingdanmingxi(_x45, _x46, _x47) {\n        return _generateQingdanmingxi.apply(this, arguments);\n      }\n      return generateQingdanmingxi;\n    }()\n  }, {\n    key: \"generateQingdanrcj\",\n    value: function () {\n      var _generateQingdanrcj = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee26(name, bh, bt, bm) {\n        var _qd, qd;\n        return _regeneratorRuntime().wrap(function _callee26$(_context26) {\n          while (1) switch (_context26.prev = _context26.next) {\n            case 0:\n              if (!(bt == \"Djcs\")) {\n                _context26.next = 3;\n                break;\n              }\n              _qd = this.cache_djcs.filter(function (x) {\n                return x[\"清单编码\"] == bm;\n              })[0];\n              return _context26.abrupt(\"return\", (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(_qd[\"rcj\"]));\n            case 3:\n              qd = this.cache.filter(function (x) {\n                return x[\"清单编码\"] == bm;\n              })[0];\n              return _context26.abrupt(\"return\", (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(qd[\"rcj\"]));\n            case 5:\n            case \"end\":\n              return _context26.stop();\n          }\n        }, _callee26, this);\n      }));\n      function generateQingdanrcj(_x48, _x49, _x50, _x51) {\n        return _generateQingdanrcj.apply(this, arguments);\n      }\n      return generateQingdanrcj;\n    }()\n  }, {\n    key: \"generateDingercj\",\n    value: function () {\n      var _generateDingercj = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee27(name, bh, bt, qdbm, debm, danwei) {\n        var _qd2, _de, qd, de;\n        return _regeneratorRuntime().wrap(function _callee27$(_context27) {\n          while (1) switch (_context27.prev = _context27.next) {\n            case 0:\n              console.log('generateDingercj');\n              console.log(debm);\n              if (!(bt == 'Djcs')) {\n                _context27.next = 6;\n                break;\n              }\n              _qd2 = this.cache_djcs.filter(function (x) {\n                return x[\"清单编码\"] == qdbm;\n              })[0];\n              _de = _qd2[\"_children\"].filter(function (x) {\n                return x[\"清单编码\"] == debm;\n              })[0];\n              return _context27.abrupt(\"return\", [(0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(_de[\"dercj\"]), _de[\"fuzhuEnable\"]]);\n            case 6:\n              qd = this.cache.filter(function (x) {\n                return x[\"清单编码\"] == qdbm;\n              })[0];\n              de = qd[\"_children\"].filter(function (x) {\n                return x[\"清单编码\"] == debm;\n              })[0];\n              return _context27.abrupt(\"return\", [(0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(de[\"dercj\"]), de[\"fuzhuEnable\"], de['yuban']]);\n            case 9:\n            case \"end\":\n              return _context27.stop();\n          }\n        }, _callee27, this);\n      }));\n      function generateDingercj(_x52, _x53, _x54, _x55, _x56, _x57) {\n        return _generateDingercj.apply(this, arguments);\n      }\n      return generateDingercj;\n    }() /////////////////////////////end of qingdan////////////////////////////////////\n  }, {\n    key: \"generateQingdanTuijian\",\n    value: function () {\n      var _generateQingdanTuijian = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee28(name, bh, bt, bm) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee28$(_context28) {\n          while (1) switch (_context28.prev = _context28.next) {\n            case 0:\n              _context28.next = 2;\n              return fetch(this.ip().concat(\"/qingdantuijian/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  \"bh\": bh,\n                  \"bt\": bt,\n                  \"bm\": bm,\n                  \"name\": name\n                })\n              });\n            case 2:\n              response = _context28.sent;\n              if (response.ok) {\n                _context28.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context28.next = 11;\n              break;\n            case 7:\n              _context28.next = 9;\n              return response.json();\n            case 9:\n              data = _context28.sent;\n              return _context28.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context28.stop();\n          }\n        }, _callee28, this);\n      }));\n      function generateQingdanTuijian(_x58, _x59, _x60, _x61) {\n        return _generateQingdanTuijian.apply(this, arguments);\n      }\n      return generateQingdanTuijian;\n    }()\n  }, {\n    key: \"generateZjcs\",\n    value: function () {\n      var _generateZjcs = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee29(name, bh) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee29$(_context29) {\n          while (1) switch (_context29.prev = _context29.next) {\n            case 0:\n              _context29.next = 2;\n              return fetch(this.ip().concat(\"/zjcs/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  \"bh\": bh,\n                  \"name\": name\n                })\n              });\n            case 2:\n              response = _context29.sent;\n              if (response.ok) {\n                _context29.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context29.next = 11;\n              break;\n            case 7:\n              _context29.next = 9;\n              return response.json();\n            case 9:\n              data = _context29.sent;\n              return _context29.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context29.stop();\n          }\n        }, _callee29, this);\n      }));\n      function generateZjcs(_x62, _x63) {\n        return _generateZjcs.apply(this, arguments);\n      }\n      return generateZjcs;\n    }()\n  }, {\n    key: \"generateDjcs\",\n    value: function () {\n      var _generateDjcs = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee30(name, bh) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee30$(_context30) {\n          while (1) switch (_context30.prev = _context30.next) {\n            case 0:\n              if (!(this.cache_djcs.length == 0 || this.cache_djcs[0][\"biao_id\"] != name || this.cache_djcs[0][\"Dwgcbh\"] != bh)) {\n                _context30.next = 16;\n                break;\n              }\n              _context30.next = 3;\n              return fetch(this.ip().concat(\"/djcs/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  \"bh\": bh,\n                  \"name\": name\n                })\n              });\n            case 3:\n              response = _context30.sent;\n              if (response.ok) {\n                _context30.next = 8;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context30.next = 14;\n              break;\n            case 8:\n              _context30.next = 10;\n              return response.json();\n            case 10:\n              data = _context30.sent;\n              this.processDjcsmingxi(data);\n              this.setQufeiEntry(bh);\n              return _context30.abrupt(\"return\", (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache_djcs));\n            case 14:\n              _context30.next = 17;\n              break;\n            case 16:\n              return _context30.abrupt(\"return\", (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache_djcs));\n            case 17:\n            case \"end\":\n              return _context30.stop();\n          }\n        }, _callee30, this);\n      }));\n      function generateDjcs(_x64, _x65) {\n        return _generateDjcs.apply(this, arguments);\n      }\n      return generateDjcs;\n    }()\n  }, {\n    key: \"generateFiles\",\n    value: function () {\n      var _generateFiles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee31() {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee31$(_context31) {\n          while (1) switch (_context31.prev = _context31.next) {\n            case 0:\n              _context31.next = 2;\n              return fetch(this.ip().concat(\"/files/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                }\n              });\n            case 2:\n              response = _context31.sent;\n              if (response.ok) {\n                _context31.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context31.next = 11;\n              break;\n            case 7:\n              _context31.next = 9;\n              return response.json();\n            case 9:\n              data = _context31.sent;\n              return _context31.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context31.stop();\n          }\n        }, _callee31, this);\n      }));\n      function generateFiles() {\n        return _generateFiles.apply(this, arguments);\n      }\n      return generateFiles;\n    }()\n  }, {\n    key: \"generateFiles2\",\n    value: function () {\n      var _generateFiles2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee32() {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee32$(_context32) {\n          while (1) switch (_context32.prev = _context32.next) {\n            case 0:\n              _context32.next = 2;\n              return fetch(this.ip().concat(\"/files2/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                }\n              });\n            case 2:\n              response = _context32.sent;\n              if (response.ok) {\n                _context32.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context32.next = 11;\n              break;\n            case 7:\n              _context32.next = 9;\n              return response.json();\n            case 9:\n              data = _context32.sent;\n              return _context32.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context32.stop();\n          }\n        }, _callee32, this);\n      }));\n      function generateFiles2() {\n        return _generateFiles2.apply(this, arguments);\n      }\n      return generateFiles2;\n    }()\n  }, {\n    key: \"deleteFiles\",\n    value: function () {\n      var _deleteFiles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee33(id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee33$(_context33) {\n          while (1) switch (_context33.prev = _context33.next) {\n            case 0:\n              _context33.next = 2;\n              return fetch(this.ip().concat(\"/deleteFile/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  \"name\": id\n                })\n              });\n            case 2:\n              response = _context33.sent;\n              if (response.ok) {\n                _context33.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context33.next = 11;\n              break;\n            case 7:\n              _context33.next = 9;\n              return response.json();\n            case 9:\n              data = _context33.sent;\n              return _context33.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context33.stop();\n          }\n        }, _callee33, this);\n      }));\n      function deleteFiles(_x66) {\n        return _deleteFiles.apply(this, arguments);\n      }\n      return deleteFiles;\n    }()\n  }, {\n    key: \"generatePeibiXilie\",\n    value: function () {\n      var _generatePeibiXilie = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee34(id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee34$(_context34) {\n          while (1) switch (_context34.prev = _context34.next) {\n            case 0:\n              _context34.next = 2;\n              return fetch(this.ip().concat(\"/pbxl/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  \"name\": id\n                })\n              });\n            case 2:\n              response = _context34.sent;\n              if (response.ok) {\n                _context34.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context34.next = 11;\n              break;\n            case 7:\n              _context34.next = 9;\n              return response.json();\n            case 9:\n              data = _context34.sent;\n              return _context34.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context34.stop();\n          }\n        }, _callee34, this);\n      }));\n      function generatePeibiXilie(_x67) {\n        return _generatePeibiXilie.apply(this, arguments);\n      }\n      return generatePeibiXilie;\n    }()\n  }, {\n    key: \"generatePeibishu\",\n    value: function () {\n      var _generatePeibishu = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee35(zhuanye) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee35$(_context35) {\n          while (1) switch (_context35.prev = _context35.next) {\n            case 0:\n              _context35.next = 2;\n              return fetch(this.ip().concat(\"/pbs/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  \"value\": zhuanye\n                })\n              });\n            case 2:\n              response = _context35.sent;\n              if (response.ok) {\n                _context35.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context35.next = 11;\n              break;\n            case 7:\n              _context35.next = 9;\n              return response.json();\n            case 9:\n              data = _context35.sent;\n              return _context35.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context35.stop();\n          }\n        }, _callee35, this);\n      }));\n      function generatePeibishu(_x68) {\n        return _generatePeibishu.apply(this, arguments);\n      }\n      return generatePeibishu;\n    }()\n  }, {\n    key: \"generateDingeshu\",\n    value: function () {\n      var _generateDingeshu = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee36(value) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee36$(_context36) {\n          while (1) switch (_context36.prev = _context36.next) {\n            case 0:\n              _context36.next = 2;\n              return fetch(this.ip().concat(\"/des/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  \"value\": value\n                })\n              });\n            case 2:\n              response = _context36.sent;\n              if (response.ok) {\n                _context36.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context36.next = 11;\n              break;\n            case 7:\n              _context36.next = 9;\n              return response.json();\n            case 9:\n              data = _context36.sent;\n              return _context36.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context36.stop();\n          }\n        }, _callee36, this);\n      }));\n      function generateDingeshu(_x69) {\n        return _generateDingeshu.apply(this, arguments);\n      }\n      return generateDingeshu;\n    }()\n  }, {\n    key: \"generateDingeXilie\",\n    value: function () {\n      var _generateDingeXilie = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee37(value, id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee37$(_context37) {\n          while (1) switch (_context37.prev = _context37.next) {\n            case 0:\n              _context37.next = 2;\n              return fetch(this.ip().concat(\"/dexilie/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  \"value\": value,\n                  \"id\": id\n                })\n              });\n            case 2:\n              response = _context37.sent;\n              if (response.ok) {\n                _context37.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context37.next = 11;\n              break;\n            case 7:\n              _context37.next = 9;\n              return response.json();\n            case 9:\n              data = _context37.sent;\n              return _context37.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context37.stop();\n          }\n        }, _callee37, this);\n      }));\n      function generateDingeXilie(_x70, _x71) {\n        return _generateDingeXilie.apply(this, arguments);\n      }\n      return generateDingeXilie;\n    }()\n  }, {\n    key: \"generateSingleDingeXilie\",\n    value: function () {\n      var _generateSingleDingeXilie = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee38(zhuanye, debh) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee38$(_context38) {\n          while (1) switch (_context38.prev = _context38.next) {\n            case 0:\n              _context38.next = 2;\n              return fetch(this.ip().concat(\"/singledexilie/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  \"debh\": debh,\n                  \"zhuanye\": zhuanye\n                })\n              });\n            case 2:\n              response = _context38.sent;\n              if (response.ok) {\n                _context38.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context38.next = 11;\n              break;\n            case 7:\n              _context38.next = 9;\n              return response.json();\n            case 9:\n              data = _context38.sent;\n              return _context38.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context38.stop();\n          }\n        }, _callee38, this);\n      }));\n      function generateSingleDingeXilie(_x72, _x73) {\n        return _generateSingleDingeXilie.apply(this, arguments);\n      }\n      return generateSingleDingeXilie;\n    }()\n  }, {\n    key: \"save\",\n    value: function () {\n      var _save = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee39() {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee39$(_context39) {\n          while (1) switch (_context39.prev = _context39.next) {\n            case 0:\n              _context39.next = 2;\n              return fetch(this.ip().concat(\"/save/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  \"name\": JSON.stringify(this.cache)\n                })\n              });\n            case 2:\n              response = _context39.sent;\n              if (response.ok) {\n                _context39.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context39.next = 11;\n              break;\n            case 7:\n              _context39.next = 9;\n              return response.json();\n            case 9:\n              data = _context39.sent;\n              return _context39.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context39.stop();\n          }\n        }, _callee39, this);\n      }));\n      function save() {\n        return _save.apply(this, arguments);\n      }\n      return save;\n    }()\n  }, {\n    key: \"save_djcs\",\n    value: function () {\n      var _save_djcs = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee40() {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee40$(_context40) {\n          while (1) switch (_context40.prev = _context40.next) {\n            case 0:\n              _context40.next = 2;\n              return fetch(this.ip().concat(\"/savedjcs/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  \"name\": JSON.stringify(this.cache_djcs)\n                })\n              });\n            case 2:\n              response = _context40.sent;\n              if (response.ok) {\n                _context40.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context40.next = 11;\n              break;\n            case 7:\n              _context40.next = 9;\n              return response.json();\n            case 9:\n              data = _context40.sent;\n              return _context40.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context40.stop();\n          }\n        }, _callee40, this);\n      }));\n      function save_djcs() {\n        return _save_djcs.apply(this, arguments);\n      }\n      return save_djcs;\n    }()\n  }, {\n    key: \"applyFL\",\n    value: function () {\n      var _applyFL = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee41(id, data) {\n        var response, _data;\n        return _regeneratorRuntime().wrap(function _callee41$(_context41) {\n          while (1) switch (_context41.prev = _context41.next) {\n            case 0:\n              _context41.next = 2;\n              return fetch(this.ip().concat(\"/applyFL/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  \"id\": id,\n                  \"name\": JSON.stringify(data)\n                })\n              });\n            case 2:\n              response = _context41.sent;\n              if (response.ok) {\n                _context41.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context41.next = 11;\n              break;\n            case 7:\n              _context41.next = 9;\n              return response.json();\n            case 9:\n              _data = _context41.sent;\n              return _context41.abrupt(\"return\", _data);\n            case 11:\n            case \"end\":\n              return _context41.stop();\n          }\n        }, _callee41, this);\n      }));\n      function applyFL(_x74, _x75) {\n        return _applyFL.apply(this, arguments);\n      }\n      return applyFL;\n    }()\n  }, {\n    key: \"download\",\n    value: function () {\n      var _download = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee42(id) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee42$(_context42) {\n          while (1) switch (_context42.prev = _context42.next) {\n            case 0:\n              _context42.next = 2;\n              return fetch(this.ip().concat(\"/download/\").concat(id.toString()));\n            case 2:\n              response = _context42.sent;\n              if (response.ok) {\n                _context42.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context42.next = 11;\n              break;\n            case 7:\n              _context42.next = 9;\n              return response.blob();\n            case 9:\n              data = _context42.sent;\n              return _context42.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context42.stop();\n          }\n        }, _callee42, this);\n      }));\n      function download(_x76) {\n        return _download.apply(this, arguments);\n      }\n      return download;\n    }()\n  }, {\n    key: \"tiaojia\",\n    value: function () {\n      var _tiaojia = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee43(biao_id, bh, bm, mingcheng, danwei, jiage) {\n        var glf, lr, bz, response, data;\n        return _regeneratorRuntime().wrap(function _callee43$(_context43) {\n          while (1) switch (_context43.prev = _context43.next) {\n            case 0:\n              glf = \"\";\n              lr = \"\";\n              bz = 0; //changgui\n              if (this.qufeiEntry['备注'].length == 0) {\n                //changuiqufei\n                glf = this.qufeiEntry['管理费（%）'];\n                lr = this.qufeiEntry['利润（%）'];\n              } else {\n                glf = this.qufeiEntry['管理费（%）'];\n                lr = this.qufeiEntry['利润（%）'];\n                bz = 1;\n              }\n              _context43.next = 6;\n              return fetch(this.ip().concat(\"/tiaojia/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  \"biao_id\": biao_id,\n                  \"bh\": bh,\n                  \"bm\": bm,\n                  \"mingcheng\": mingcheng,\n                  \"danwei\": danwei,\n                  \"jiage\": jiage,\n                  \"glf\": glf,\n                  \"lr\": lr,\n                  \"bz\": bz\n                })\n              });\n            case 6:\n              response = _context43.sent;\n              if (response.ok) {\n                _context43.next = 11;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context43.next = 16;\n              break;\n            case 11:\n              _context43.next = 13;\n              return response.json();\n            case 13:\n              data = _context43.sent;\n              this.clearCache();\n              return _context43.abrupt(\"return\", data);\n            case 16:\n            case \"end\":\n              return _context43.stop();\n          }\n        }, _callee43, this);\n      }));\n      function tiaojia(_x77, _x78, _x79, _x80, _x81, _x82) {\n        return _tiaojia.apply(this, arguments);\n      }\n      return tiaojia;\n    }()\n  }, {\n    key: \"updateZjcs\",\n    value: function () {\n      var _updateZjcs = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee44(biao_id, bh, row) {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee44$(_context44) {\n          while (1) switch (_context44.prev = _context44.next) {\n            case 0:\n              _context44.next = 2;\n              return fetch(this.ip().concat(\"/updatezjcs/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({\n                  \"biao_id\": biao_id,\n                  \"bh\": bh,\n                  'mc': row['名称'].toString(),\n                  'fl': row['费率'].toString()\n                })\n              });\n            case 2:\n              response = _context44.sent;\n              if (response.ok) {\n                _context44.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context44.next = 11;\n              break;\n            case 7:\n              _context44.next = 9;\n              return response.json();\n            case 9:\n              data = _context44.sent;\n              return _context44.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context44.stop();\n          }\n        }, _callee44, this);\n      }));\n      function updateZjcs(_x83, _x84, _x85) {\n        return _updateZjcs.apply(this, arguments);\n      }\n      return updateZjcs;\n    }()\n  }, {\n    key: \"cankao\",\n    value: function () {\n      var _cankao = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee45() {\n        var response, data;\n        return _regeneratorRuntime().wrap(function _callee45$(_context45) {\n          while (1) switch (_context45.prev = _context45.next) {\n            case 0:\n              _context45.next = 2;\n              return fetch(this.ip().concat(\"/cankao/\"), {\n                method: \"POST\",\n                headers: {\n                  \"Content-type\": \"application/json\"\n                },\n                body: JSON.stringify({})\n              });\n            case 2:\n              response = _context45.sent;\n              if (response.ok) {\n                _context45.next = 7;\n                break;\n              }\n              //const error = await response.json();\n              console.error('error');\n              _context45.next = 11;\n              break;\n            case 7:\n              _context45.next = 9;\n              return response.json();\n            case 9:\n              data = _context45.sent;\n              return _context45.abrupt(\"return\", data);\n            case 11:\n            case \"end\":\n              return _context45.stop();\n          }\n        }, _callee45, this);\n      }));\n      function cankao() {\n        return _cankao.apply(this, arguments);\n      }\n      return cankao;\n    }() ///////////////////////////////////editor//////////////////////////////////\n  }, {\n    key: \"summarize_one_djcs\",\n    value: function summarize_one_djcs(qd) {\n      ///根据定额汇总清单\n      var dict = {};\n      for (var i = 0; i < qd[\"_children\"].length; i++) {\n        var de = qd[\"_children\"][i];\n        var desl = Number(de['数量']);\n        var dercj = de['dercj'];\n        for (var j = 1; j < dercj.length; j++) {\n          var hl = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(dercj[j]);\n          hl[10] = desl * Number(hl[10]);\n          hl[11] = desl * Number(hl[11]);\n          var a = hl[1]; //\"人材机编码\", \n          var b = a.concat(hl[2]); //\"名称\", \n          var c = b.concat(hl[4]); // \"单位\"\n          if (dict.hasOwnProperty(c)) {\n            dict[c].push(hl);\n          } else {\n            dict[c] = [hl];\n          }\n        }\n      }\n      var result = [];\n      for (var key in dict) {\n        var list = dict[key];\n        var sum = 0;\n        var danjia = Number(list[0][5]);\n        for (var _i3 = 0; _i3 < list.length; _i3++) {\n          sum += Number(list[_i3][10]);\n        }\n        var entry = [list[0][0], list[0][1], list[0][2], list[0][3], list[0][4], danjia, list[0][6], list[0][7], list[0][8], list[0][9], sum, sum * danjia, list[0][12], list[0][13], list[0][14], list[0][15]];\n        result.push(entry);\n      }\n      var gongri = 0;\n      for (var _i4 = 0; _i4 < result.length; _i4++) {\n        if (result[_i4][4] == '工日') {\n          gongri += result[_i4][10];\n        }\n      }\n      result.sort(function (a, b) {\n        return Number(a[8]) - Number(b[8]);\n      });\n      qd['rcj'] = [[\"ID\", \"人材机编码\", \"名称\", \"规格型号\", \"单位\", \"单价\", \"产地\", \"供应厂商\", \"人材机类别\", \"甲供标志\", \"含量\", \"合价\", \"暂估价标志\", \"主要材料标志\", \"主材标志\", \"设备标志\"]].concat(result);\n      qd[\"综合人工工日\"] = gongri;\n      qd['综合单价'] = 0;\n      qd['合价'] = 0;\n      qd['人工费'] = 0;\n      qd['主材费'] = 0;\n      qd['设备费'] = 0;\n      qd['辅材费'] = 0;\n      qd['材料费'] = 0;\n      qd['机械费'] = 0;\n      qd['管理费'] = 0;\n      qd['利润'] = 0;\n      for (var _i5 = 0; _i5 < qd[\"_children\"].length; _i5++) {\n        qd['综合单价'] += Number(qd['_children'][_i5]['数量']) * Number(qd['_children'][_i5]['综合单价']);\n        qd['合价'] += Number(qd['_children'][_i5]['合价']);\n        qd['人工费'] += Number(qd['_children'][_i5]['数量']) * Number(qd['_children'][_i5]['人工费']);\n        qd['主材费'] += Number(qd['_children'][_i5]['数量']) * Number(qd['_children'][_i5]['主材费']);\n        qd['设备费'] += Number(qd['_children'][_i5]['数量']) * Number(qd['_children'][_i5]['设备费']);\n        qd['辅材费'] += Number(qd['_children'][_i5]['数量']) * Number(qd['_children'][_i5]['辅材费']);\n        qd['材料费'] += Number(qd['_children'][_i5]['数量']) * Number(qd['_children'][_i5]['材料费']);\n        qd['机械费'] += Number(qd['_children'][_i5]['数量']) * Number(qd['_children'][_i5]['机械费']);\n        qd['管理费'] += Number(qd['_children'][_i5]['数量']) * Number(qd['_children'][_i5]['管理费']);\n        qd['利润'] += Number(qd['_children'][_i5]['数量']) * Number(qd['_children'][_i5]['利润']);\n      }\n      return qd;\n    }\n  }, {\n    key: \"summarize_one\",\n    value: function summarize_one(qd) {\n      ///根据定额汇总清单\n      var dict = {};\n      for (var i = 0; i < qd[\"_children\"].length; i++) {\n        var de = qd[\"_children\"][i];\n        var desl = Number(de['数量']);\n        var dercj = de['dercj'];\n        for (var j = 1; j < dercj.length; j++) {\n          var hl = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(dercj[j]);\n          hl[10] = desl * Number(hl[10]);\n          hl[11] = desl * Number(hl[11]);\n          var a = hl[1]; //\"人材机编码\", \n          var b = a.concat(hl[2]); //\"名称\", \n          var c = b.concat(hl[4]); // \"单位\"\n          if (dict.hasOwnProperty(c)) {\n            dict[c].push(hl);\n          } else {\n            dict[c] = [hl];\n          }\n        }\n      }\n      var result = [];\n      for (var key in dict) {\n        var list = dict[key];\n        var sum = 0;\n        var danjia = Number(list[0][5]);\n        for (var _i6 = 0; _i6 < list.length; _i6++) {\n          sum += Number(list[_i6][10]);\n        }\n        var entry = [list[0][0], list[0][1], list[0][2], list[0][3], list[0][4], danjia, list[0][6], list[0][7], list[0][8], list[0][9], sum, sum * danjia, list[0][12], list[0][13], list[0][14], list[0][15]];\n        result.push(entry);\n      }\n      var gongri = 0;\n      for (var _i7 = 0; _i7 < result.length; _i7++) {\n        if (result[_i7][4] == '工日') {\n          gongri += result[_i7][10];\n        }\n      }\n      result.sort(function (a, b) {\n        return Number(a[8]) - Number(b[8]);\n      });\n      qd['rcj'] = [[\"ID\", \"人材机编码\", \"名称\", \"规格型号\", \"单位\", \"单价\", \"产地\", \"供应厂商\", \"人材机类别\", \"甲供标志\", \"含量\", \"合价\", \"暂估价标志\", \"主要材料标志\", \"主材标志\", \"设备标志\"]].concat(result);\n      qd[\"综合人工工日\"] = gongri;\n      qd['综合单价'] = 0;\n      qd['合价'] = 0;\n      qd['人工费'] = 0;\n      qd['主材费'] = 0;\n      qd['设备费'] = 0;\n      qd['辅材费'] = 0;\n      qd['材料费'] = 0;\n      qd['机械费'] = 0;\n      qd['管理费'] = 0;\n      qd['利润'] = 0;\n      for (var _i8 = 0; _i8 < qd[\"_children\"].length; _i8++) {\n        qd['综合单价'] += Number(qd['_children'][_i8]['数量']) * Number(qd['_children'][_i8]['综合单价']);\n        qd['合价'] += Number(qd['_children'][_i8]['合价']);\n        qd['人工费'] += Number(qd['_children'][_i8]['数量']) * Number(qd['_children'][_i8]['人工费']);\n        qd['主材费'] += Number(qd['_children'][_i8]['数量']) * Number(qd['_children'][_i8]['主材费']);\n        qd['设备费'] += Number(qd['_children'][_i8]['数量']) * Number(qd['_children'][_i8]['设备费']);\n        qd['辅材费'] += Number(qd['_children'][_i8]['数量']) * Number(qd['_children'][_i8]['辅材费']);\n        qd['材料费'] += Number(qd['_children'][_i8]['数量']) * Number(qd['_children'][_i8]['材料费']);\n        qd['机械费'] += Number(qd['_children'][_i8]['数量']) * Number(qd['_children'][_i8]['机械费']);\n        qd['管理费'] += Number(qd['_children'][_i8]['数量']) * Number(qd['_children'][_i8]['管理费']);\n        qd['利润'] += Number(qd['_children'][_i8]['数量']) * Number(qd['_children'][_i8]['利润']);\n      }\n      return qd;\n    }\n  }, {\n    key: \"summarize\",\n    value: function summarize(data) {\n      var _this = this;\n      return data.map(function (x) {\n        return _this.summarize_one(x);\n      });\n    }\n  }, {\n    key: \"summarize_djcs\",\n    value: function summarize_djcs(data) {\n      var _this2 = this;\n      return data.map(function (x) {\n        return _this2.summarize_one_djcs(x);\n      });\n    }\n  }, {\n    key: \"push_op\",\n    value: function push_op(newData) {\n      if (this.memory.length == this.mem_pointer + 1) {\n        this.memory.push((0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(newData));\n        this.mem_pointer = this.mem_pointer + 1;\n      } else {\n        this.memory.splice(this.mem_pointer + 1);\n        this.memory.push((0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(newData));\n        this.mem_pointer = this.mem_pointer + 1;\n      }\n    }\n  }, {\n    key: \"push_op_djcs\",\n    value: function push_op_djcs(newData) {\n      if (this.memory_djcs.length == this.mem_pointer_djcs + 1) {\n        this.memory_djcs.push((0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(newData));\n        this.mem_pointer_djcs = this.mem_pointer_djcs + 1;\n      } else {\n        this.memory_djcs.splice(this.mem_pointer_djcs + 1);\n        this.memory_djcs.push((0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(newData));\n        this.mem_pointer_djcs = this.mem_pointer_djcs + 1;\n      }\n    }\n  }, {\n    key: \"undo\",\n    value: function undo() {\n      if (this.mem_pointer > 0) {\n        var newData = this.memory[this.mem_pointer - 1];\n        this.mem_pointer = this.mem_pointer - 1;\n        this.cache = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(newData);\n        return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(newData);\n      }\n      return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache);\n    }\n  }, {\n    key: \"undo_djcs\",\n    value: function undo_djcs() {\n      if (this.mem_pointer_djcs > 0) {\n        var newData = this.memory_djcs[this.mem_pointer_djcs - 1];\n        this.mem_pointer_djcs = this.mem_pointer_djcs - 1;\n        this.cache_djcs = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(newData);\n        return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(newData);\n      }\n      return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache_djcs);\n    }\n  }, {\n    key: \"redo\",\n    value: function redo() {\n      if (this.mem_pointer + 1 != this.memory.length) {\n        var newData = this.memory[this.mem_pointer + 1];\n        this.mem_pointer = this.mem_pointer + 1;\n        this.cache = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(newData);\n        return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(newData);\n      }\n      return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache);\n    }\n  }, {\n    key: \"redo_djcs\",\n    value: function redo_djcs() {\n      if (this.mem_pointer_djcs + 1 != this.memory_djcs.length) {\n        var newData = this.memory_djcs[this.mem_pointer_djcs + 1];\n        this.mem_pointer_djcs = this.mem_pointer_djcs + 1;\n        this.cache_djcs = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(newData);\n        return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(newData);\n      }\n      return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache_djcs);\n    }\n  }, {\n    key: \"shanchu_djcs\",\n    value: function shanchu_djcs(key) {\n      if (this.cache_djcs.filter(function (x) {\n        return x['key'] == key;\n      }).length > 0) {\n        ///qd\n        var newData = this.cache_djcs.map(function (x) {\n          if (x[\"key\"] == key) {\n            var y = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(x);\n            y[\"_children\"] = [];\n            return y;\n          } else {\n            return x;\n          }\n        });\n        var summarized = this.summarize_djcs(newData);\n        this.push_op_djcs(summarized);\n        /////////////////\n        this.cache_djcs = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(summarized);\n        return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache_djcs);\n      } else {\n        var qd = this.cache_djcs.filter(function (x) {\n          return x[\"_children\"].filter(function (y) {\n            return y['key'] == key;\n          }).length > 0;\n        })[0];\n        var qdbm = qd['清单编码'];\n        var _newData = this.cache_djcs.map(function (x) {\n          if (x[\"清单编码\"] == qdbm) {\n            var y = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(x);\n            var origin = y[\"_children\"];\n            var trans = origin.filter(function (z) {\n              return z[\"key\"] != key;\n            });\n            y[\"_children\"] = trans;\n            return y;\n          } else {\n            return x;\n          }\n        });\n        var _summarized = this.summarize_djcs(_newData);\n        this.push_op_djcs(_summarized);\n        /////////////////\n        this.cache_djcs = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(_summarized);\n        return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache_djcs);\n      }\n    }\n  }, {\n    key: \"shanchu\",\n    value: function shanchu(key) {\n      if (this.cache.filter(function (x) {\n        return x['key'] == key;\n      }).length > 0) {\n        ///qd\n        var newData = this.cache.map(function (x) {\n          if (x[\"key\"] == key) {\n            var y = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(x);\n            y[\"_children\"] = [];\n            return y;\n          } else {\n            return x;\n          }\n        });\n        var summarized = this.summarize(newData);\n        this.push_op(summarized);\n        /////////////////\n        this.cache = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(summarized);\n        return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache);\n      } else {\n        var qd = this.cache.filter(function (x) {\n          return x[\"_children\"].filter(function (y) {\n            return y['key'] == key;\n          }).length > 0;\n        })[0];\n        var qdbm = qd['清单编码'];\n        var _newData2 = this.cache.map(function (x) {\n          if (x[\"清单编码\"] == qdbm) {\n            var y = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(x);\n            var origin = y[\"_children\"];\n            var trans = origin.filter(function (z) {\n              return z[\"key\"] != key;\n            });\n            y[\"_children\"] = trans;\n            return y;\n          } else {\n            return x;\n          }\n        });\n        var _summarized2 = this.summarize(_newData2);\n        this.push_op(_summarized2);\n        /////////////////\n        this.cache = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(_summarized2);\n        return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache);\n      }\n    }\n  }, {\n    key: \"updateDercj_djcs_\",\n    value: function updateDercj_djcs_(row, data, xuhao) {\n      ///change 一条定额 inplace, 汇总一条定额的rcj, xuhao is for rename\n      console.log(\"data updated\");\n      //处理附注\n      var huan = false; //换\n      var qd = this.cache_djcs.filter(function (x) {\n        return x[\"_children\"].filter(function (y) {\n          return y['key'] == row;\n        }).length > 0;\n      })[0];\n      var de = qd[\"_children\"].filter(function (x) {\n        return x['key'] == row;\n      })[0];\n      if (de.hasOwnProperty(\"rcjdg\")) {\n        //新数据\n        for (var i = 1; i < de['rcjdg'].length; i++) {\n          de['rcjdg'][i][5] = data[i][5]; //更新单价\n          /****ToDo 更新其他字段 */\n          if (de['rcjdg'][i][2] == data[i][2]) {//更新名称\n          } else {\n            huan = true;\n          }\n        }\n        if (de['fuzhuEnable'] && de.hasOwnProperty('fuzhu')) {\n          //没强行改过含量\n\n          for (var j = 1; j < de['rcjdg'].length; j++) {\n            var origin = Number(de['rcjdg'][j][10]);\n            for (var _i9 = 0; _i9 < de['fuzhu'].length; _i9++) {\n              var selected = de['fuzhu'][_i9];\n              var target = selected[0];\n              if ((0,_utils__WEBPACK_IMPORTED_MODULE_0__.match_target)(de['rcjdg'][j][1], target)) {\n                if (selected[2] == '系数') {\n                  origin = origin * Number(selected[3]);\n                } else if (selected[2] == '含量') {\n                  origin = Number(selected[3]);\n                } else if (selected[2] == '调整') {\n                  origin = origin + Number(selected[3]);\n                } else {\n                  throw new Error('无法处理的附注'.concat(selected[2]));\n                }\n              }\n            }\n            de['dercj'][j][2] = data[j][2]; //名称\n            de['dercj'][j][1] = data[j][1]; //编号\n            de['dercj'][j][5] = de['rcjdg'][j][5]; //单价\n            de['dercj'][j][10] = origin;\n            de['dercj'][j][11] = Number(de['dercj'][j][5]) * origin;\n          }\n        } else if (de['fuzhuEnable'] && !de.hasOwnProperty('fuzhu')) {\n          for (var _j = 1; _j < de['rcjdg'].length; _j++) {\n            var _origin = Number(de['rcjdg'][_j][10]);\n            de['dercj'][_j][2] = data[_j][2]; //名称\n            de['dercj'][_j][1] = data[_j][1]; //编号\n\n            de['dercj'][_j][5] = de['rcjdg'][_j][5];\n            de['dercj'][_j][10] = _origin;\n            de['dercj'][_j][11] = Number(de['dercj'][_j][5]) * _origin;\n          }\n        } else {\n          //强行改含量\n          de['dercj'] = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(data);\n        }\n        data = de['dercj'];\n      } else {\n        ////单项定额没有底稿，老数据没底搞，无法判断换部换，暂时统一认为不换\n        //强行改含量\n        de['dercj'] = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(data);\n        data = de['dercj'];\n      }\n      //模拟formula计算每一行的合价\n      for (var _i0 = 1; _i0 < data.length; _i0++) {\n        data[_i0][11] = Number(data[_i0][10]) * Number(data[_i0][5]);\n      }\n      var sum = 0;\n      var rgf_sum = 0;\n      var jxf_sum = 0;\n      var clf_sum = 0;\n      for (var _i1 = 1; _i1 < data.length; _i1++) {\n        sum += Number(data[_i1][11]); //11-> hejia\n        if (Number(data[_i1][8]) == 1) {\n          rgf_sum += Number(data[_i1][11]);\n        }\n        if (Number(data[_i1][8]) == 2) {\n          clf_sum += Number(data[_i1][11]);\n        }\n        if (Number(data[_i1][8]) == 3) {\n          jxf_sum += Number(data[_i1][11]);\n        }\n      }\n      console.log(\"sum=\".concat(sum));\n      var shuliang = Number(qd['数量']);\n      for (var _i10 = 0; _i10 < qd[\"_children\"].length; _i10++) {\n        if (qd[\"_children\"][_i10]['key'] == row) {\n          var desl = Number(qd[\"_children\"][_i10]['数量']);\n          var oldname = qd[\"_children\"][_i10]['清单编码'];\n          qd[\"_children\"][_i10]['辅材费'] = clf_sum;\n          qd[\"_children\"][_i10]['材料费'] = clf_sum;\n          qd[\"_children\"][_i10]['人工费'] = rgf_sum;\n          qd[\"_children\"][_i10]['主材费'] = 0;\n          qd[\"_children\"][_i10]['设备费'] = 0;\n          qd[\"_children\"][_i10]['机械费'] = jxf_sum;\n          if (oldname.startsWith(\"D\")) {\n            //单项清单\n            qd[\"_children\"][_i10]['管理费'] = 0;\n            qd[\"_children\"][_i10]['利润'] = 0;\n          } else {\n            if (this.qufeiEntry['备注'].length == 0) {\n              //changuiqufei\n              qd[\"_children\"][_i10]['管理费'] = (rgf_sum + jxf_sum) * Number(this.qufeiEntry['管理费（%）']) / Number(100);\n              qd[\"_children\"][_i10]['利润'] = (rgf_sum + jxf_sum) * Number(this.qufeiEntry['利润（%）']) / Number(100);\n            } else {\n              qd[\"_children\"][_i10]['管理费'] = rgf_sum * Number(this.qufeiEntry['管理费（%）']) / Number(100);\n              qd[\"_children\"][_i10]['利润'] = rgf_sum * Number(this.qufeiEntry['利润（%）']) / Number(100);\n            }\n          }\n          qd[\"_children\"][_i10]['综合单价'] = sum + qd[\"_children\"][_i10]['管理费'] + qd[\"_children\"][_i10]['利润'];\n          qd[\"_children\"][_i10]['合价'] = qd[\"_children\"][_i10]['综合单价'] * shuliang * desl;\n          qd[\"_children\"][_i10][\"dercj\"] = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(data);\n          qd[\"_children\"][_i10]['清单编码'] = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.renameDingE)(oldname, xuhao, huan);\n        }\n      }\n    }\n  }, {\n    key: \"updateDercj_\",\n    value: function updateDercj_(row, data, xuhao, yuban) {\n      ///change 一条定额 inplace, 汇总一条定额的rcj, xuhao is for rename, yuban is 预拌砂浆\n      console.log(\"data updated\");\n      //处理附注\n      var huan = false; //换\n      var qd = this.cache.filter(function (x) {\n        return x[\"_children\"].filter(function (y) {\n          return y['key'] == row;\n        }).length > 0;\n      })[0];\n      var de = qd[\"_children\"].filter(function (x) {\n        return x['key'] == row;\n      })[0];\n      if (de.hasOwnProperty(\"rcjdg\")) {\n        //新数据\n        for (var i = 1; i < de['rcjdg'].length; i++) {\n          de['rcjdg'][i][5] = data[i][5]; //更新单价,底稿的单价不是很需要同步（在人才机汇总修改价格）\n          /****ToDo 更新其他字段 */\n          if (de['rcjdg'][i][2] == data[i][2]) {//更新名称\n          } else {\n            huan = true;\n          }\n        }\n        if (de['fuzhuEnable'] && de.hasOwnProperty('fuzhu')) {\n          //没强行改过含量\n\n          for (var j = 1; j < de['rcjdg'].length; j++) {\n            var origin = Number(de['rcjdg'][j][10]);\n            for (var _i11 = 0; _i11 < de['fuzhu'].length; _i11++) {\n              var selected = de['fuzhu'][_i11];\n              var target = selected[0];\n              if ((0,_utils__WEBPACK_IMPORTED_MODULE_0__.match_target)(de['rcjdg'][j][1], target)) {\n                if (selected[2] == '系数') {\n                  origin = origin * Number(selected[3]);\n                } else if (selected[2] == '含量') {\n                  origin = Number(selected[3]);\n                } else if (selected[2] == '调整') {\n                  origin = origin + Number(selected[3]);\n                } else {\n                  throw new Error('无法处理的附注'.concat(selected[2]));\n                }\n              }\n            }\n            de['dercj'][j][2] = data[j][2]; //名称\n            de['dercj'][j][1] = data[j][1]; //编号\n            de['dercj'][j][5] = de['rcjdg'][j][5]; //单价\n            de['dercj'][j][10] = origin;\n            de['dercj'][j][11] = Number(de['dercj'][j][5]) * origin;\n          }\n        } else if (de['fuzhuEnable'] && !de.hasOwnProperty('fuzhu')) {\n          for (var _j2 = 1; _j2 < de['rcjdg'].length; _j2++) {\n            var _origin2 = Number(de['rcjdg'][_j2][10]);\n            de['dercj'][_j2][2] = data[_j2][2]; //名称\n            de['dercj'][_j2][1] = data[_j2][1]; //编号\n\n            de['dercj'][_j2][5] = de['rcjdg'][_j2][5];\n            de['dercj'][_j2][10] = _origin2;\n            de['dercj'][_j2][11] = Number(de['dercj'][_j2][5]) * _origin2;\n          }\n        } else {\n          //强行改含量\n          de['dercj'] = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(data);\n        }\n        data = de['dercj'];\n      } else {\n        ////单项定额没有底稿，老数据没底搞，无法判断换部换，暂时统一认为不换\n        //强行改含量\n        de['dercj'] = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(data);\n        data = de['dercj'];\n      }\n      data = data.filter(function (x) {\n        return x[1] != 'S00001' && x[1] != 'JD0001';\n      });\n      de['dercj'] = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(data);\n      if (de.hasOwnProperty(\"rcjdg\") && de['fuzhuEnable'] && yuban.length > 0) {\n        //没强行改过含量\n        if (yuban.includes('1')) {\n          for (var _i12 = 1; _i12 < data.length; _i12++) {\n            if (data[_i12][4] == '工日') {\n              data[_i12][10] = Number(data[_i12][10]) - 0.45;\n            }\n            if (data[_i12][2].includes('搅拌机')) {\n              data[_i12][10] = 0;\n            }\n            if (data[_i12][2].includes('砂浆') && !data[_i12][2].includes('搅拌机')) {\n              data[_i12][2] = data[_i12][2].concat('（湿拌砂浆）');\n            }\n          }\n        } else if (yuban.includes('2')) {\n          var _origin3 = 0;\n          for (var _i13 = 1; _i13 < data.length; _i13++) {\n            if (data[_i13][4] == '工日') {\n              data[_i13][10] = Number(data[_i13][10]) - 0.3;\n            }\n            if (data[_i13][2].includes('搅拌机')) {\n              data[_i13][10] = 0;\n            }\n            if (data[_i13][2].includes('砂浆') && !data[_i13][2].includes('搅拌机')) {\n              data[_i13][2] = data[_i13][2].concat('（干拌（混）砂浆）');\n              _origin3 = Number(data[_i13][10]);\n              data[_i13][10] = _origin3 * 1.75;\n            }\n          }\n          data.push(['', 'S00001', '水', '', 't', '4.70', '', '', '2', 'false', (_origin3 * 0.29).toString(), '', '', '', '', '']);\n          data.push(['', 'JD0001', '其他机械费（电）', '', '度', '0.65', '', '', '3', 'false', (_origin3 * 2.15).toString(), '', '', '', '', '']);\n        } else if (yuban.includes('3')) {\n          var _origin4 = 0;\n          for (var _i14 = 1; _i14 < data.length; _i14++) {\n            if (data[_i14][4] == '工日') {\n              data[_i14][10] = Number(data[_i14][10]) - 0.2;\n            }\n            if (data[_i14][2].includes('砂浆') && !data[_i14][2].includes('搅拌机')) {\n              data[_i14][2] = data[_i14][2].concat('（干拌（混）砂浆）');\n              _origin4 = Number(data[_i14][10]);\n              data[_i14][10] = _origin4 * 1.75;\n            }\n          }\n          data.push(['', 'S00001', '水', '', 't', '4.70', '', '', '2', 'false', (_origin4 * 0.29).toString(), '', '', '', '', '']);\n        }\n        de['dercj'] = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(data);\n      }\n      //模拟formula计算每一行的合价\n      for (var _i15 = 1; _i15 < data.length; _i15++) {\n        data[_i15][11] = Number(data[_i15][10]) * Number(data[_i15][5]);\n      }\n      var sum = 0;\n      var rgf_sum = 0;\n      var jxf_sum = 0;\n      var clf_sum = 0;\n      for (var _i16 = 1; _i16 < data.length; _i16++) {\n        sum += Number(data[_i16][11]); //11-> hejia\n        if (Number(data[_i16][8]) == 1) {\n          rgf_sum += Number(data[_i16][11]);\n        }\n        if (Number(data[_i16][8]) == 2) {\n          clf_sum += Number(data[_i16][11]);\n        }\n        if (Number(data[_i16][8]) == 3) {\n          jxf_sum += Number(data[_i16][11]);\n        }\n      }\n      console.log(\"sum=\".concat(sum));\n      var shuliang = Number(qd['数量']);\n      for (var _i17 = 0; _i17 < qd[\"_children\"].length; _i17++) {\n        if (qd[\"_children\"][_i17]['key'] == row) {\n          var desl = Number(qd[\"_children\"][_i17]['数量']);\n          var oldname = qd[\"_children\"][_i17]['清单编码'];\n          qd[\"_children\"][_i17]['辅材费'] = clf_sum;\n          qd[\"_children\"][_i17]['材料费'] = clf_sum;\n          qd[\"_children\"][_i17]['人工费'] = rgf_sum;\n          qd[\"_children\"][_i17]['主材费'] = 0;\n          qd[\"_children\"][_i17]['设备费'] = 0;\n          qd[\"_children\"][_i17]['机械费'] = jxf_sum;\n          if (oldname.startsWith(\"D\")) {\n            //单项清单\n            qd[\"_children\"][_i17]['管理费'] = 0;\n            qd[\"_children\"][_i17]['利润'] = 0;\n          } else {\n            if (this.qufeiEntry['备注'].length == 0) {\n              //changuiqufei\n              qd[\"_children\"][_i17]['管理费'] = (rgf_sum + jxf_sum) * Number(this.qufeiEntry['管理费（%）']) / Number(100);\n              qd[\"_children\"][_i17]['利润'] = (rgf_sum + jxf_sum) * Number(this.qufeiEntry['利润（%）']) / Number(100);\n            } else {\n              qd[\"_children\"][_i17]['管理费'] = rgf_sum * Number(this.qufeiEntry['管理费（%）']) / Number(100);\n              qd[\"_children\"][_i17]['利润'] = rgf_sum * Number(this.qufeiEntry['利润（%）']) / Number(100);\n            }\n          }\n          qd[\"_children\"][_i17]['综合单价'] = sum + qd[\"_children\"][_i17]['管理费'] + qd[\"_children\"][_i17]['利润'];\n          qd[\"_children\"][_i17]['合价'] = qd[\"_children\"][_i17]['综合单价'] * shuliang * desl;\n          qd[\"_children\"][_i17][\"dercj\"] = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(data);\n          qd[\"_children\"][_i17]['清单编码'] = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.renameDingE)(oldname, xuhao, huan);\n        }\n      }\n    }\n  }, {\n    key: \"updateDercj\",\n    value: function updateDercj(row, data) {\n      //是否手动设置含量\n      var qd = this.cache.filter(function (x) {\n        return x[\"_children\"].filter(function (y) {\n          return y['key'] == row;\n        }).length > 0;\n      })[0];\n      var de = qd[\"_children\"].filter(function (x) {\n        return x['key'] == row;\n      })[0];\n      var bm = de['清单编码'];\n      var alreadyFuzhu = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.extractFuzhu)(bm); //[xuhao]\n      var origin = de['dercj'];\n      var change = false;\n      for (var i = 1; i < data.length; i++) {\n        var before = origin[i][10]; //含量\n        var after = data[i][10];\n        if (Number(before) - Number(after) < 0.0001 && Number(before) - Number(after) > -0.0001) {\n          //no change\n        } else {\n          change = true;\n          break;\n        }\n      }\n      if (change) {\n        de['fuzhuEnable'] = false;\n      }\n      this.updateDercj_(row, data, alreadyFuzhu, de['yuban']);\n      //let qd = this.cache.filter(x=>x[\"children\"].filter(y=>y['key']==row).length > 0)[0];\n\n      var newData = this.cache.map(function (x) {\n        if (x['key'] == qd['key']) {\n          return qd;\n        } else {\n          return x;\n        }\n      });\n      var summarized = this.summarize(newData);\n      this.push_op(summarized);\n      /////////////////\n      this.cache = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(summarized);\n      return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache);\n    }\n  }, {\n    key: \"updateDercj_djcs\",\n    value: function updateDercj_djcs(row, data) {\n      //是否手动设置含量\n      var qd = this.cache_djcs.filter(function (x) {\n        return x[\"_children\"].filter(function (y) {\n          return y['key'] == row;\n        }).length > 0;\n      })[0];\n      var de = qd[\"_children\"].filter(function (x) {\n        return x['key'] == row;\n      })[0];\n      var bm = de['清单编码'];\n      var alreadyFuzhu = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.extractFuzhu)(bm); //[xuhao]\n      var origin = de['dercj'];\n      var change = false;\n      for (var i = 1; i < data.length; i++) {\n        var before = origin[i][10];\n        var after = data[i][10];\n        if (Number(before) - Number(after) < 0.0001 && Number(before) - Number(after) > -0.0001) {\n          //no change\n        } else {\n          change = true;\n          break;\n        }\n      }\n      if (change) {\n        de['fuzhuEnable'] = false;\n      }\n      this.updateDercj_djcs_(row, data, alreadyFuzhu);\n      //let qd = this.cache.filter(x=>x[\"children\"].filter(y=>y['key']==row).length > 0)[0];\n\n      var newData = this.cache_djcs.map(function (x) {\n        if (x['key'] == qd['key']) {\n          return qd;\n        } else {\n          return x;\n        }\n      });\n      var summarized = this.summarize_djcs(newData);\n      this.push_op_djcs(summarized);\n      /////////////////\n      this.cache_djcs = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(summarized);\n      return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache_djcs);\n    }\n  }, {\n    key: \"updateBeizhu\",\n    value: function updateBeizhu(row, selected, xuhao) {\n      //xuhao is for rename\n      var qd = this.cache.filter(function (x) {\n        return x[\"_children\"].filter(function (y) {\n          return y['key'] == row;\n        }).length > 0;\n      })[0];\n      if (!qd) return [null, null];\n      var de = qd[\"_children\"].filter(function (x) {\n        return x['key'] == row;\n      })[0];\n      if (de.hasOwnProperty(\"rcjdg\")) {//底稿\n      } else {///老数据不能有底稿，附注功能也不使能\n        //de['rcjdg'] = copy(de['dercj']);\n      }\n      de['fuzhu'] = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(selected);\n      this.updateDercj_(row, de['dercj'], xuhao, de['yuban']);\n      var newData = this.cache.map(function (x) {\n        if (x['key'] == qd['key']) {\n          return qd;\n        } else {\n          return x;\n        }\n      });\n      var summarized = this.summarize(newData);\n      this.push_op(summarized);\n      /////////////////\n      this.cache = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(summarized);\n      return [(0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache), (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(de['dercj'])];\n    }\n  }, {\n    key: \"updateBeizhu_djcs\",\n    value: function updateBeizhu_djcs(row, selected, xuhao) {\n      //xuhao is for rename\n      var qd = this.cache_djcs.filter(function (x) {\n        return x[\"_children\"].filter(function (y) {\n          return y['key'] == row;\n        }).length > 0;\n      })[0];\n      if (!qd) return [null, null];\n      var de = qd[\"_children\"].filter(function (x) {\n        return x['key'] == row;\n      })[0];\n      if (de.hasOwnProperty(\"rcjdg\")) {//底稿\n      } else {///老数据不能有底稿，附注功能也不使能\n        //de['rcjdg'] = copy(de['dercj']);\n      }\n      de['fuzhu'] = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(selected);\n      this.updateDercj_djcs_(row, de['dercj'], xuhao);\n      var newData = this.cache_djcs.map(function (x) {\n        if (x['key'] == qd['key']) {\n          return qd;\n        } else {\n          return x;\n        }\n      });\n      var summarized = this.summarize_djcs(newData);\n      this.push_op_djcs(summarized);\n      /////////////////\n      this.cache_djcs = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(summarized);\n      return [(0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache_djcs), (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(de['dercj'])];\n    }\n  }, {\n    key: \"huan\",\n    value: function huan(old_index, new_bianhao, new_name, new_jia, row) {\n      var qd = this.cache.filter(function (x) {\n        return x[\"_children\"].filter(function (y) {\n          return y['key'] == row;\n        }).length > 0;\n      })[0];\n      var de = qd[\"_children\"].filter(function (x) {\n        return x['key'] == row;\n      })[0];\n      var rcj = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(de['dercj']);\n      rcj[old_index][1] = new_bianhao;\n      rcj[old_index][2] = new_name;\n      rcj[old_index][5] = new_jia;\n      return this.updateDercj(row, rcj);\n    }\n  }, {\n    key: \"updateShuliang\",\n    value: function updateShuliang(value, row) {\n      var qd = this.cache.filter(function (x) {\n        return x[\"_children\"].filter(function (y) {\n          return y['key'] == row;\n        }).length > 0;\n      })[0];\n      var de = qd[\"_children\"].filter(function (x) {\n        return x['key'] == row;\n      })[0];\n      var origin = de['数量'];\n      if (Number(origin) - Number(value) < 0.0001 && Number(origin) - Number(value) > -0.0001) {\n        return [false, null];\n      }\n      console.log(\"shuliang update\");\n      de['数量'] = value;\n      de['合价'] = Number(qd['数量']) * Number(de['综合单价']) * Number(de['数量']);\n      var newData = this.cache.map(function (x) {\n        if (x['key'] == qd['key']) {\n          return qd;\n        } else {\n          return x;\n        }\n      });\n      var summarized = this.summarize(newData);\n      this.push_op(summarized);\n      /////////////////\n      this.cache = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(summarized);\n      return [true, (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache)];\n    }\n  }, {\n    key: \"updateShuliang_djcs\",\n    value: function updateShuliang_djcs(value, row) {\n      var qd = this.cache_djcs.filter(function (x) {\n        return x[\"_children\"].filter(function (y) {\n          return y['key'] == row;\n        }).length > 0;\n      })[0];\n      var de = qd[\"_children\"].filter(function (x) {\n        return x['key'] == row;\n      })[0];\n      var origin = de['数量'];\n      if (Number(origin) - Number(value) < 0.0001 && Number(origin) - Number(value) > -0.0001) {\n        return [false, null];\n      }\n      console.log(\"shuliang update\");\n      de['数量'] = value;\n      de['合价'] = Number(qd['数量']) * Number(de['综合单价']) * Number(de['数量']);\n      var newData = this.cache_djcs.map(function (x) {\n        if (x['key'] == qd['key']) {\n          return qd;\n        } else {\n          return x;\n        }\n      });\n      var summarized = this.summarize_djcs(newData);\n      this.push_op_djcs(summarized);\n      /////////////////\n      this.cache_djcs = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(summarized);\n      return [true, (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache_djcs)];\n    }\n  }, {\n    key: \"changguidinge_djcs\",\n    value: function changguidinge_djcs(dingeclick, row) {\n      if (this.cache_djcs.filter(function (x) {\n        return x['key'] == row;\n      }).length > 0) {\n        var res = dingeclick;\n        var keys = Object.keys(res['DEBH']);\n        var key = keys[0];\n        //console.log(res);\n        var qd = this.cache_djcs.filter(function (x) {\n          return x['key'] == row;\n        })[0];\n        var dercj = [[\"ID\", \"人材机编码\", \"名称\", \"规格型号\", \"单位\", \"单价\", \"产地\", \"供应厂商\", \"人材机类别\", \"甲供标志\", \"含量\", \"合价\", \"暂估价标志\", \"主要材料标志\", \"主材标志\", \"设备标志\"]];\n        for (var i = 0; i < res['rgde'].length; i++) {\n          dercj.push(['', res['rgde'][i]['CLBH'], res['rgde'][i]['CLMC'], '', res['rgde'][i]['JLDW'], res['rgde'][i]['YSJG'], '', '', '1', '', res['rgde'][i]['gr'], res['rgde'][i]['gf'], '', '', '', '']);\n        }\n        for (var _i18 = 0; _i18 < res['clde'].length; _i18++) {\n          dercj.push(['', res['clde'][_i18]['CLBH'], res['clde'][_i18]['CLMC'], '', res['clde'][_i18]['JLDW'], res['clde'][_i18]['YSJG'], '', '', '2', '', res['clde'][_i18]['SL'], res['clde'][_i18]['HJ'], '', '', '', '']);\n        }\n        for (var _i19 = 0; _i19 < res['jxde'].length; _i19++) {\n          dercj.push(['', res['jxde'][_i19]['jxbh'], res['jxde'][_i19]['jxmc'], '', res['jxde'][_i19]['DW'], res['jxde'][_i19]['tbdj'], '', '', '3', '', res['jxde'][_i19]['sl'], res['jxde'][_i19]['hj'], '', '', '', '']);\n        }\n        var newKey = (0,uuid__WEBPACK_IMPORTED_MODULE_1__[\"default\"])();\n        qd[\"_children\"].push({\n          '操作': '',\n          '序号': null,\n          '清单编码': res['DEBH'][key],\n          '名称': res['GCLMC'][key],\n          '项目特征': null,\n          '计算规则': null,\n          '单位': res['DW'][key],\n          '数量': '1',\n          '综合单价': '0',\n          '合价': '0',\n          '人工费': '0',\n          '主材费': '0',\n          '设备费': '0',\n          '辅材费': '0',\n          '材料费': '0',\n          '机械费': '0',\n          '管理费': '0',\n          '利润': '0',\n          '暂估价': null,\n          '综合人工工日': null,\n          '备注': null,\n          \"dercj\": dercj,\n          'rcjdg': (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(dercj),\n          'key': newKey,\n          \"fuzhuEnable\": true\n        });\n        this.updateDercj_djcs_(newKey, dercj, []);\n        var summarized = this.summarize_djcs(this.cache_djcs);\n        this.push_op_djcs((0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(summarized));\n        /////////////////\n        this.cache_djcs = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(summarized);\n        //return copy(this.cache);\n\n        return [true, (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache_djcs), newKey];\n      } else {\n        return [false, null, null];\n      }\n    }\n  }, {\n    key: \"changguidinge\",\n    value: function changguidinge(dingeclick, row) {\n      if (this.cache.filter(function (x) {\n        return x['key'] == row;\n      }).length > 0) {\n        var res = dingeclick;\n        var keys = Object.keys(res['DEBH']);\n        var key = keys[0];\n        //console.log(res);\n        var qd = this.cache.filter(function (x) {\n          return x['key'] == row;\n        })[0];\n        var dercj = [[\"ID\", \"人材机编码\", \"名称\", \"规格型号\", \"单位\", \"单价\", \"产地\", \"供应厂商\", \"人材机类别\", \"甲供标志\", \"含量\", \"合价\", \"暂估价标志\", \"主要材料标志\", \"主材标志\", \"设备标志\"]];\n        for (var i = 0; i < res['rgde'].length; i++) {\n          dercj.push(['', res['rgde'][i]['CLBH'], res['rgde'][i]['CLMC'], '', res['rgde'][i]['JLDW'], res['rgde'][i]['YSJG'], '', '', '1', '', res['rgde'][i]['gr'], res['rgde'][i]['gf'], '', '', '', '']);\n        }\n        for (var _i20 = 0; _i20 < res['clde'].length; _i20++) {\n          dercj.push(['', res['clde'][_i20]['CLBH'], res['clde'][_i20]['CLMC'], '', res['clde'][_i20]['JLDW'], res['clde'][_i20]['YSJG'], '', '', '2', '', res['clde'][_i20]['SL'], res['clde'][_i20]['HJ'], '', '', '', '']);\n        }\n        for (var _i21 = 0; _i21 < res['jxde'].length; _i21++) {\n          dercj.push(['', res['jxde'][_i21]['jxbh'], res['jxde'][_i21]['jxmc'], '', res['jxde'][_i21]['DW'], res['jxde'][_i21]['tbdj'], '', '', '3', '', res['jxde'][_i21]['sl'], res['jxde'][_i21]['hj'], '', '', '', '']);\n        }\n        var newKey = (0,uuid__WEBPACK_IMPORTED_MODULE_1__[\"default\"])();\n        qd[\"_children\"].push({\n          '操作': '',\n          '序号': null,\n          '清单编码': res['DEBH'][key],\n          '名称': res['GCLMC'][key],\n          '项目特征': null,\n          '计算规则': null,\n          '单位': res['DW'][key],\n          '数量': '1',\n          '综合单价': '0',\n          '合价': '0',\n          '人工费': '0',\n          '主材费': '0',\n          '设备费': '0',\n          '辅材费': '0',\n          '材料费': '0',\n          '机械费': '0',\n          '管理费': '0',\n          '利润': '0',\n          '暂估价': null,\n          '综合人工工日': null,\n          '备注': null,\n          \"dercj\": dercj,\n          'rcjdg': (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(dercj),\n          'key': newKey,\n          \"fuzhuEnable\": true,\n          'yuban': []\n        });\n        this.updateDercj_(newKey, dercj, [], []);\n        var summarized = this.summarize(this.cache);\n        this.push_op((0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(summarized));\n        /////////////////\n        this.cache = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(summarized);\n        //return copy(this.cache);\n\n        return [true, (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache), newKey];\n      } else {\n        return [false, null, null];\n      }\n    }\n  }, {\n    key: \"danxiangdinge\",\n    value: function danxiangdinge(row) {\n      var bh = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.danxiangdinge_index)(this.cache);\n      if (this.cache.filter(function (x) {\n        return x['key'] == row;\n      }).length > 0) {\n        var selected = this.cache.filter(function (x) {\n          return x['key'] == row;\n        })[0];\n        var danwei = selected[\"单位\"];\n        var mingcheng = selected['名称'];\n        var children = selected[\"_children\"];\n        children.push({\n          '操作': '',\n          '序号': null,\n          '清单编码': bh,\n          '名称': mingcheng,\n          '项目特征': null,\n          '计算规则': null,\n          '单位': danwei,\n          '数量': '1',\n          '综合单价': '',\n          '合价': '',\n          '人工费': '0',\n          '主材费': '0',\n          '设备费': '0',\n          '辅材费': '',\n          '材料费': '',\n          '机械费': '0',\n          '管理费': '0',\n          '利润': '0',\n          '暂估价': null,\n          '综合人工工日': null,\n          '备注': null,\n          \"dercj\": [[\"ID\", \"人材机编码\", \"名称\", \"规格型号\", \"单位\", \"单价\", \"产地\", \"供应厂商\", \"人材机类别\", \"甲供标志\", \"含量\", \"合价\", \"暂估价标志\", \"主要材料标志\", \"主材标志\", \"设备标志\"], ['', bh, mingcheng, '', danwei, '', '', '', '2', '', '1', '', '', '', '', '']],\n          'key': (0,uuid__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(),\n          \"fuzhuEnable\": false,\n          'yuban': []\n        });\n        var summarized = this.summarize(this.cache);\n        this.push_op(summarized);\n        this.cache = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(summarized);\n        return [true, (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache)];\n      } else {\n        return [false, null];\n      }\n    }\n  }, {\n    key: \"danxiangdinge_djcs\",\n    value: function danxiangdinge_djcs(row) {\n      var bh = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.danxiangdinge_index_djcs)(this.cache_djcs);\n      if (this.cache_djcs.filter(function (x) {\n        return x['key'] == row;\n      }).length > 0) {\n        var selected = this.cache_djcs.filter(function (x) {\n          return x['key'] == row;\n        })[0];\n        var danwei = selected[\"单位\"];\n        var mingcheng = selected['名称'];\n        var children = selected[\"_children\"];\n        children.push({\n          '序号': null,\n          '清单编码': bh,\n          '名称': mingcheng,\n          '项目特征': null,\n          '计算规则': null,\n          '单位': danwei,\n          '数量': '1',\n          '综合单价': '',\n          '合价': '',\n          '人工费': '0',\n          '主材费': '0',\n          '设备费': '0',\n          '辅材费': '',\n          '材料费': '',\n          '机械费': '0',\n          '管理费': '0',\n          '利润': '0',\n          '暂估价': null,\n          '综合人工工日': null,\n          '备注': null,\n          \"dercj\": [[\"ID\", \"人材机编码\", \"名称\", \"规格型号\", \"单位\", \"单价\", \"产地\", \"供应厂商\", \"人材机类别\", \"甲供标志\", \"含量\", \"合价\", \"暂估价标志\", \"主要材料标志\", \"主材标志\", \"设备标志\"], ['', bh, mingcheng, '', danwei, '', '', '', '2', '', '1', '', '', '', '', '']],\n          'key': (0,uuid__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(),\n          \"fuzhuEnable\": false\n        });\n        var summarized = this.summarize_djcs(this.cache_djcs);\n        this.push_op_djcs(summarized);\n        this.cache_djcs = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(summarized);\n        return [true, (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache_djcs)];\n      } else {\n        return [false, null];\n      }\n    }\n  }, {\n    key: \"handleYuban\",\n    value: function handleYuban(row, selected) {\n      var qd = this.cache.filter(function (x) {\n        return x[\"_children\"].filter(function (y) {\n          return y['key'] == row;\n        }).length > 0;\n      })[0];\n      if (!qd) return [null, null];\n      var de = qd[\"_children\"].filter(function (x) {\n        return x['key'] == row;\n      })[0];\n      var bm = de['清单编码'];\n      var alreadyFuzhu = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.extractFuzhu)(bm); //[xuhao]\n      if (de.hasOwnProperty(\"rcjdg\")) {//底稿\n      } else {///老数据不能有底稿，附注功能也不使能，预拌也不能使\n        //de['rcjdg'] = copy(de['dercj']);\n      }\n      de['yuban'] = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(selected);\n      this.updateDercj_(row, de['dercj'], alreadyFuzhu, selected);\n      var newData = this.cache.map(function (x) {\n        if (x['key'] == qd['key']) {\n          return qd;\n        } else {\n          return x;\n        }\n      });\n      var summarized = this.summarize(newData);\n      this.push_op(summarized);\n      /////////////////\n      this.cache = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(summarized);\n      return [(0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(this.cache), (0,_utils__WEBPACK_IMPORTED_MODULE_0__.copy)(de['dercj'])];\n    }\n  }]);\n}();\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (new Service());\n\n//# sourceURL=webpack://front/./src/Service.js?");

/***/ }),

/***/ "./src/utils.js":
/*!**********************!*\
  !*** ./src/utils.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 */   copy: () => (/* binding */ copy),\n/* harmony export */   danxiangdinge_index: () => (/* binding */ danxiangdinge_index),\n/* harmony export */   danxiangdinge_index_djcs: () => (/* binding */ danxiangdinge_index_djcs),\n/* harmony export */   extractFuzhu: () => (/* binding */ extractFuzhu),\n/* harmony export */   match_target: () => (/* binding */ match_target),\n/* harmony export */   renameDingE: () => (/* binding */ renameDingE)\n/* harmony export */ });\nvar danxiangdinge_index = function danxiangdinge_index(data) {\n  var max = 0;\n  for (var i = 0; i < data.length; i++) {\n    if (data[i].hasOwnProperty(\"_children\")) {\n      var child = data[i][\"_children\"];\n      for (var j = 0; j < child.length; j++) {\n        var de = child[j];\n        if (de[\"清单编码\"].startsWith(\"D\")) {\n          var number = de[\"清单编码\"].substring(1);\n          var n = Number(number);\n          if (n > max) {\n            max = n;\n          }\n        }\n      }\n    }\n  }\n  var result = (max + 1).toString();\n  result = result.padStart(5, '0');\n  return \"D\".concat(result);\n};\nvar danxiangdinge_index_djcs = function danxiangdinge_index_djcs(data) {\n  var max = 0;\n  for (var i = 0; i < data.length; i++) {\n    if (data[i].hasOwnProperty(\"_children\")) {\n      var child = data[i][\"_children\"];\n      for (var j = 0; j < child.length; j++) {\n        var de = child[j];\n        if (de[\"清单编码\"].startsWith(\"D\")) {\n          var number = de[\"清单编码\"].substring(1);\n          var n = Number(number);\n          if (n > max) {\n            max = n;\n          }\n        }\n      }\n    }\n  }\n  var result = (max + 1).toString();\n  result = result.padStart(5, '0');\n  return \"D\".concat(result);\n};\nvar copy = function copy(input) {\n  return JSON.parse(JSON.stringify(input));\n};\nvar renameDingE = function renameDingE(oldname, xuhao, huan) {\n  var index = oldname.indexOf('附注', 0);\n  var raw = oldname;\n  if (index == -1) {} else {\n    raw = oldname.substring(0, index);\n  }\n  for (var i = 0; i < xuhao.length; i++) {\n    raw = raw.concat(\"附注\");\n    raw = raw.concat(xuhao[i].toString());\n  }\n  if (huan && raw.indexOf('换') == -1) {\n    raw = raw.concat('换');\n  }\n  return raw;\n};\nvar extractFuzhu = function extractFuzhu(debm) {\n  if (debm) {\n    var start = 0;\n    var result = [];\n    while (start < debm.length) {\n      var index = debm.indexOf('附注', start);\n      if (index == -1) break;\n      var i = index + 2;\n      for (i = index + 2; i < debm.length; i++) {\n        if (debm[i] >= '0' && debm[i] <= '9') {} else {\n          break;\n        }\n      }\n      var find = debm.substring(index + 2, i);\n      result.push(Number(find));\n      start = i;\n    }\n    return result;\n  } else {\n    return [];\n  }\n};\nvar match_target = function match_target(input, target) {\n  if (target == '000001') {\n    //普世的人工费\n    if (input.startsWith(\"0001\")) {\n      return true;\n    } else {\n      return false;\n    }\n  } else if (target == 'J00000') {\n    //普世机械费\n    if (input.startsWith('99')) {\n      return true;\n    } else {\n      return false;\n    }\n  } else if (target == '100000') {\n    //全部材料\n    if (input.startsWith('99')) {\n      return false;\n    } else if (input.startsWith(\"0001\")) {\n      return false;\n    } else {\n      return true;\n    }\n  }\n  return input == target;\n};\n\n//# sourceURL=webpack://front/./src/utils.js?");

/***/ })

}]);