| 12 |
- /*! For license information please see 874.bundle.js.LICENSE.txt */
- "use strict";(self.webpackChunkfront=self.webpackChunkfront||[]).push([[874],{1874:(e,r,t)=>{t.d(r,{A:()=>f});var n=t(5948),i=t(4011);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function a(){a=function(){return r};var e,r={},t=Object.prototype,n=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function h(e,r,t,n){return Object.defineProperty(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n})}try{h({},"")}catch(e){h=function(e,r,t){return e[r]=t}}function f(r,t,n,i){var c=t&&t.prototype instanceof d?t:d,a=Object.create(c.prototype);return h(a,"_invoke",function(r,t,n){var i=1;return function(c,a){if(3===i)throw Error("Generator is already running");if(4===i){if("throw"===c)throw a;return{value:e,done:!0}}for(n.method=c,n.arg=a;;){var s=n.delegate;if(s){var o=x(s,n);if(o){if(o===p)continue;return o}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===i)throw i=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=3;var u=l(r,t,n);if("normal"===u.type){if(i=n.done?4:2,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=4,n.method="throw",n.arg=u.arg)}}}(r,n,new C(i||[])),!0),a}function l(e,r,t){try{return{type:"normal",arg:e.call(r,t)}}catch(e){return{type:"throw",arg:e}}}r.wrap=f;var p={};function d(){}function m(){}function y(){}var b={};h(b,s,(function(){return this}));var v=Object.getPrototypeOf,j=v&&v(v(O([])));j&&j!==t&&n.call(j,s)&&(b=j);var g=y.prototype=d.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(r){h(e,r,(function(e){return this._invoke(r,e)}))}))}function _(e,r){function t(i,a,s,o){var u=l(e[i],e,a);if("throw"!==u.type){var h=u.arg,f=h.value;return f&&"object"==c(f)&&n.call(f,"__await")?r.resolve(f.__await).then((function(e){t("next",e,s,o)}),(function(e){t("throw",e,s,o)})):r.resolve(f).then((function(e){h.value=e,s(h)}),(function(e){return t("throw",e,s,o)}))}o(u.arg)}var i;h(this,"_invoke",(function(e,n){function c(){return new r((function(r,i){t(e,n,r,i)}))}return i=i?i.then(c,c):c()}),!0)}function x(r,t){var n=t.method,i=r.i[n];if(i===e)return t.delegate=null,"throw"===n&&r.i.return&&(t.method="return",t.arg=e,x(r,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var c=l(i,r.i,t.arg);if("throw"===c.type)return t.method="throw",t.arg=c.arg,t.delegate=null,p;var a=c.arg;return a?a.done?(t[r.r]=a.value,t.next=r.n,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,p):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function N(e){this.tryEntries.push(e)}function w(r){var t=r[4]||{};t.type="normal",t.arg=e,r[4]=t}function C(e){this.tryEntries=[[-1]],e.forEach(N,this),this.reset(!0)}function O(r){if(null!=r){var t=r[s];if(t)return t.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var i=-1,a=function t(){for(;++i<r.length;)if(n.call(r,i))return t.value=r[i],t.done=!1,t;return t.value=e,t.done=!0,t};return a.next=a}}throw new TypeError(c(r)+" is not iterable")}return m.prototype=y,h(g,"constructor",y),h(y,"constructor",m),m.displayName=h(y,u,"GeneratorFunction"),r.isGeneratorFunction=function(e){var r="function"==typeof e&&e.constructor;return!!r&&(r===m||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,h(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},r.awrap=function(e){return{__await:e}},k(_.prototype),h(_.prototype,o,(function(){return this})),r.AsyncIterator=_,r.async=function(e,t,n,i,c){void 0===c&&(c=Promise);var a=new _(f(e,t,n,i),c);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(g),h(g,u,"Generator"),h(g,s,(function(){return this})),h(g,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var r=Object(e),t=[];for(var n in r)t.unshift(n);return function e(){for(;t.length;)if((n=t.pop())in r)return e.value=n,e.done=!1,e;return e.done=!0,e}},r.values=O,C.prototype={constructor:C,reset:function(r){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(w),!r)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var t=this;function n(e){a.type="throw",a.arg=r,t.next=e}for(var i=t.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],a=c[4],s=this.prev,o=c[1],u=c[2];if(-1===c[0])return n("end"),!1;if(!o&&!u)throw Error("try statement without catch or finally");if(null!=c[0]&&c[0]<=s){if(s<o)return this.method="next",this.arg=e,n(o),!0;if(s<u)return n(u),!1}}},abrupt:function(e,r){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var i=n;break}}i&&("break"===e||"continue"===e)&&i[0]<=r&&r<=i[2]&&(i=null);var c=i?i[4]:{};return c.type=e,c.arg=r,i?(this.method="next",this.next=i[2],p):this.complete(c)},complete:function(e,r){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&r&&(this.next=r),p},finish:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var t=this.tryEntries[r];if(t[2]===e)return this.complete(t[4],t[3]),w(t),p}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var t=this.tryEntries[r];if(t[0]===e){var n=t[4];if("throw"===n.type){var i=n.arg;w(t)}return i}}throw Error("illegal catch attempt")},delegateYield:function(r,t,n){return this.delegate={i:O(r),r:t,n},"next"===this.method&&(this.arg=e),p}},r}function s(e,r,t,n,i,c,a){try{var s=e[c](a),o=s.value}catch(e){return void t(e)}s.done?r(o):Promise.resolve(o).then(n,i)}function o(e){return function(){var r=this,t=arguments;return new Promise((function(n,i){var c=e.apply(r,t);function a(e){s(c,n,i,a,o,"next",e)}function o(e){s(c,n,i,a,o,"throw",e)}a(void 0)}))}}function u(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function h(e){var r=function(e){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!=c(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(r)?r:r+""}const f=new(function(){return e=function e(){!function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache=[],this.memory=[],this.mem_pointer=-1,this.cache_djcs=[],this.memory_djcs=[],this.mem_pointer_djcs=-1,this.qufei=[],this.qufeiEntry=null},r=[{key:"ip",value:function(){return"/api"}},{key:"clearCache",value:function(){this.cache=[],this.memory=[],this.mem_pointer=-1,this.cache_djcs=[],this.memory_djcs=[],this.mem_pointer_djcs=-1}},{key:"setQufei",value:function(e){for(var r=[],t=0;t<e[0].children.length;t++)for(var n=e[0].children[t],i=0;i<n.children.length;i++){var c=n.children[i];r.push(c)}this.qufei=r}},{key:"setQufeiEntry",value:function(e){this.qufeiEntry=this.qufei.filter((function(r){return r.key==e}))[0]}},{key:"processDjcsmingxi",value:function(e){this.cache_djcs=(0,n.C)(e);for(var r=0;r<this.cache_djcs.length;r++){var t=this.cache_djcs[r];t.hasOwnProperty("_children")||(t._children=[]),t.hasOwnProperty("rcj")||(t.rcj=[["ID","人材机编码","名称","规格型号","单位","单价","产地","供应厂商","人材机类别","甲供标志","含量","合价","暂估价标志","主要材料标志","主材标志","设备标志"]])}for(var c=0;c<this.cache_djcs.length;c++)for(var a=this.cache_djcs[c],s=0;s<a._children.length;s++){var o=a._children[s];o.hasOwnProperty("dercj")||(o.dercj=[["ID","人材机编码","名称","规格型号","单位","单价","产地","供应厂商","人材机类别","甲供标志","含量","合价","暂估价标志","主要材料标志","主材标志","设备标志"]])}this.cache_djcs=this.cache_djcs.map((function(e){return e.key=e["序号"],e._children=e._children.map((function(e){return e.hasOwnProperty("key")||(e.key=(0,i.A)()),e})),e})),this.memory_djcs=[],this.memory_djcs.push((0,n.C)(this.cache_djcs)),this.mem_pointer_djcs=0}},{key:"processQingdanmingxi",value:function(e){this.cache=(0,n.C)(e);for(var r=0;r<this.cache.length;r++){var t=this.cache[r];t.hasOwnProperty("__children")||(t.__children=[]),t.hasOwnProperty("rcj")||(t.rcj=[["ID","人材机编码","名称","规格型号","单位","单价","产地","供应厂商","人材机类别","甲供标志","含量","合价","暂估价标志","主要材料标志","主材标志","设备标志"]])}for(var c=0;c<this.cache.length;c++)for(var a=this.cache[c],s=0;s<a.__children.length;s++){var o=a.__children[s];o.hasOwnProperty("dercj")||(o.dercj=[["ID","人材机编码","名称","规格型号","单位","单价","产地","供应厂商","人材机类别","甲供标志","含量","合价","暂估价标志","主要材料标志","主材标志","设备标志"]])}this.cache=this.cache.map((function(e){return e._children=e.__children,e.key=e["序号"],e._children=e._children.map((function(e){return e.hasOwnProperty("key")||(e.key=(0,i.A)()),e})),e})),this.memory=[],this.memory.push((0,n.C)(this.cache)),this.mem_pointer=0}},{key:"generateOutline",value:(V=o(a().mark((function e(r){var t,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/outline"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r})});case 2:if((t=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,t.json();case 9:return n=e.sent,e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return V.apply(this,arguments)})},{key:"uploadFile",value:(U=o(a().mark((function e(r){var t,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/upload/"),{method:"POST",body:r});case 2:if((t=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,t.json();case 9:return n=e.sent,e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return U.apply(this,arguments)})},{key:"generateQufei",value:(K=o(a().mark((function e(r){var t,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/qufei/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r})});case 2:if((t=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,t.json();case 9:return n=e.sent,e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return K.apply(this,arguments)})},{key:"generateOutline2",value:(R=o(a().mark((function e(r){var t,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/outline2"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r})});case 2:if((t=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,t.json();case 9:return n=e.sent,e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return R.apply(this,arguments)})},{key:"generateDetail",value:(X=o(a().mark((function e(r){var t,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/detail"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r})});case 2:if((t=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,t.json();case 9:return n=e.sent,e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return X.apply(this,arguments)})},{key:"generateDetail2",value:(Y=o(a().mark((function e(r){var t,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/detail2"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r})});case 2:if((t=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,t.json();case 9:return n=e.sent,e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return Y.apply(this,arguments)})},{key:"generateBaojiahuizong",value:(M=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/baojiahuizong/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r,id:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return M.apply(this,arguments)})},{key:"generateBaojiahuizong2",value:(Z=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/baojiahuizong2/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r,id:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return Z.apply(this,arguments)})},{key:"generateGuifeishuijin",value:(H=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/guifeishuijin/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r,id:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return H.apply(this,arguments)})},{key:"generateGuifeishuijin2",value:(A=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/guifeishuijin2/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r,id:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return A.apply(this,arguments)})},{key:"generateQitaxiangmu",value:(B=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/qitaxiangmu/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r,id:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return B.apply(this,arguments)})},{key:"generateQitaxiangmu2",value:(I=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/qitaxiangmu2/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r,id:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return I.apply(this,arguments)})},{key:"generateZygczgj",value:(F=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/zygczgj/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r,id:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return F.apply(this,arguments)})},{key:"generateZongchengbaofuwufei",value:(W=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/zongchengbaofuwufei/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r,id:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return W.apply(this,arguments)})},{key:"generateZongchengbaofuwufei2",value:(Q=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/zongchengbaofuwufei2/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r,id:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return Q.apply(this,arguments)})},{key:"generateFabaorengongyingcailiao",value:(L=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/fabaorengongyingcailiao/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r,id:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return L.apply(this,arguments)})},{key:"generateFabaorengongyingcailiao2",value:(G=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/fabaorengongyingcailiao2/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r,id:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return G.apply(this,arguments)})},{key:"generateRencaijihuizong",value:(q=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/rencaijihuizong/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r,id:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return q.apply(this,arguments)})},{key:"generateRencaijihuizong2",value:(T=o(a().mark((function e(r,t){var n,c,s,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/rencaijihuizong2/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r,id:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=14;break;case 7:return e.next=9,n.json();case 9:for(c=e.sent,s=[],o=1;o<c.length;o++)s.push({key:(0,i.A)(),ID:c[o][0],编码:c[o][1],名称:c[o][2],规格型号:c[o][3],单位:c[o][4],数量:c[o][5],单价:c[o][6],合价:c[o][7],产地:c[o][8],供应厂商:c[o][9],人材机类别:c[o][10],主要材料标志:c[o][11],主材标志:c[o][12],设备标志:c[o][13],甲供标志:c[o][14],暂估价标志:c[o][15]});return this.setQufeiEntry(t),e.abrupt("return",s);case 14:case"end":return e.stop()}}),e,this)}))),function(e,r){return T.apply(this,arguments)})},{key:"generateJirigong",value:(D=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/jirigong/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r,id:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return D.apply(this,arguments)})},{key:"generateJirigong2",value:(J=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/jirigong2/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r,id:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return J.apply(this,arguments)})},{key:"generateZanliejine",value:(z=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/zanliejine/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r,id:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return z.apply(this,arguments)})},{key:"generateZanliejine2",value:(E=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/zanliejine2/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r,id:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return E.apply(this,arguments)})},{key:"generateQingdanxiangmu",value:(P=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/qingdanxiangmu/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r,id:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return P.apply(this,arguments)})},{key:"generateQingdanxiangmu2",value:(S=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/qingdanxiangmu2/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r,id:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return S.apply(this,arguments)})},{key:"searchDe",value:(O=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/searchde/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({zhuanye:r,text:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return O.apply(this,arguments)})},{key:"generateQingdanmingxi",value:(C=o(a().mark((function e(r,t,i){var c,s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!=this.cache.length&&this.cache[0].biao_id==r&&this.cache[0].Dwgcbh==t&&this.cache[0].bt==i){e.next=16;break}return e.next=3,fetch(this.ip().concat("/qingdanmingxi/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({bh:t,bt:i,name:r})});case 3:if((c=e.sent).ok){e.next=8;break}console.error("error"),e.next=14;break;case 8:return e.next=10,c.json();case 10:return s=e.sent,this.processQingdanmingxi(s),this.setQufeiEntry(t),e.abrupt("return",(0,n.C)(this.cache));case 14:e.next=17;break;case 16:return e.abrupt("return",(0,n.C)(this.cache));case 17:case"end":return e.stop()}}),e,this)}))),function(e,r,t){return C.apply(this,arguments)})},{key:"generateQingdanrcj",value:(w=o(a().mark((function e(r,t,i,c){var s,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("Djcs"!=i){e.next=3;break}return s=this.cache_djcs.filter((function(e){return e["清单编码"]==c}))[0],e.abrupt("return",(0,n.C)(s.rcj));case 3:return o=this.cache.filter((function(e){return e["清单编码"]==c}))[0],e.abrupt("return",(0,n.C)(o.rcj));case 5:case"end":return e.stop()}}),e,this)}))),function(e,r,t,n){return w.apply(this,arguments)})},{key:"generateDingercj",value:(N=o(a().mark((function e(r,t,i,c,s,o){var u,h,f,l;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("generateDingercj"),console.log(s),"Djcs"!=i){e.next=6;break}return u=this.cache_djcs.filter((function(e){return e["清单编码"]==c}))[0],h=u._children.filter((function(e){return e["清单编码"]==s}))[0],e.abrupt("return",[(0,n.C)(h.dercj),h.fuzhuEnable]);case 6:return f=this.cache.filter((function(e){return e["清单编码"]==c}))[0],l=f._children.filter((function(e){return e["清单编码"]==s}))[0],e.abrupt("return",[(0,n.C)(l.dercj),l.fuzhuEnable]);case 9:case"end":return e.stop()}}),e,this)}))),function(e,r,t,n,i,c){return N.apply(this,arguments)})},{key:"generateQingdanTuijian",value:(x=o(a().mark((function e(r,t,n,i){var c,s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/qingdantuijian/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({bh:t,bt:n,bm:i,name:r})});case 2:if((c=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,c.json();case 9:return s=e.sent,e.abrupt("return",s);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r,t,n){return x.apply(this,arguments)})},{key:"generateZjcs",value:(_=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/zjcs/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({bh:t,name:r})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return _.apply(this,arguments)})},{key:"generateDjcs",value:(k=o(a().mark((function e(r,t){var i,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!=this.cache_djcs.length&&this.cache_djcs[0].biao_id==r&&this.cache_djcs[0].Dwgcbh==t){e.next=16;break}return e.next=3,fetch(this.ip().concat("/djcs/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({bh:t,name:r})});case 3:if((i=e.sent).ok){e.next=8;break}console.error("error"),e.next=14;break;case 8:return e.next=10,i.json();case 10:return c=e.sent,this.processDjcsmingxi(c),this.setQufeiEntry(t),e.abrupt("return",(0,n.C)(this.cache_djcs));case 14:e.next=17;break;case 16:return e.abrupt("return",(0,n.C)(this.cache_djcs));case 17:case"end":return e.stop()}}),e,this)}))),function(e,r){return k.apply(this,arguments)})},{key:"generateFiles",value:(g=o(a().mark((function e(){var r,t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/files/"),{method:"POST",headers:{"Content-type":"application/json"}});case 2:if((r=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,r.json();case 9:return t=e.sent,e.abrupt("return",t);case 11:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{key:"generateFiles2",value:(j=o(a().mark((function e(){var r,t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/files2/"),{method:"POST",headers:{"Content-type":"application/json"}});case 2:if((r=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,r.json();case 9:return t=e.sent,e.abrupt("return",t);case 11:case"end":return e.stop()}}),e,this)}))),function(){return j.apply(this,arguments)})},{key:"deleteFiles",value:(v=o(a().mark((function e(r){var t,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/deleteFile/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r})});case 2:if((t=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,t.json();case 9:return n=e.sent,e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"generatePeibiXilie",value:(b=o(a().mark((function e(r){var t,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/pbxl/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:r})});case 2:if((t=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,t.json();case 9:return n=e.sent,e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{key:"generatePeibishu",value:(y=o(a().mark((function e(r){var t,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/pbs/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({value:r})});case 2:if((t=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,t.json();case 9:return n=e.sent,e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return y.apply(this,arguments)})},{key:"generateDingeshu",value:(m=o(a().mark((function e(r){var t,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/des/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({value:r})});case 2:if((t=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,t.json();case 9:return n=e.sent,e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"generateDingeXilie",value:(d=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/dexilie/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({value:r,id:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return d.apply(this,arguments)})},{key:"generateSingleDingeXilie",value:(p=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/singledexilie/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({debh:t,zhuanye:r})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return p.apply(this,arguments)})},{key:"save",value:(l=o(a().mark((function e(){var r,t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/save/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:JSON.stringify(this.cache)})});case 2:if((r=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,r.json();case 9:return t=e.sent,e.abrupt("return",t);case 11:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"save_djcs",value:(f=o(a().mark((function e(){var r,t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/savedjcs/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:JSON.stringify(this.cache_djcs)})});case 2:if((r=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,r.json();case 9:return t=e.sent,e.abrupt("return",t);case 11:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"applyFL",value:(h=o(a().mark((function e(r,t){var n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/applyFL/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({id:r,name:JSON.stringify(t)})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r){return h.apply(this,arguments)})},{key:"tiaojia",value:(s=o(a().mark((function e(r,t,n,i,c,s){var o,u,h,f,l;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o="",u="",h=0,0==this.qufeiEntry["备注"].length?(o=this.qufeiEntry["管理费(%)"],u=this.qufeiEntry["利润(%)"]):(o=this.qufeiEntry["管理费(%)"],u=this.qufeiEntry["利润(%)"],h=1),e.next=6,fetch(this.ip().concat("/tiaojia/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({biao_id:r,bh:t,bm:n,mingcheng:i,danwei:c,jiage:s,glf:o,lr:u,bz:h})});case 6:if((f=e.sent).ok){e.next=11;break}console.error("error"),e.next=16;break;case 11:return e.next=13,f.json();case 13:return l=e.sent,this.clearCache(),e.abrupt("return",l);case 16:case"end":return e.stop()}}),e,this)}))),function(e,r,t,n,i,c){return s.apply(this,arguments)})},{key:"updateZjcs",value:(c=o(a().mark((function e(r,t,n){var i,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/updatezjcs/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({biao_id:r,bh:t,mc:n["名称"].toString(),fl:n["费率"].toString()})});case 2:if((i=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,i.json();case 9:return c=e.sent,e.abrupt("return",c);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r,t){return c.apply(this,arguments)})},{key:"cankao",value:(t=o(a().mark((function e(){var r,t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat("/cankao/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({})});case 2:if((r=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,r.json();case 9:return t=e.sent,e.abrupt("return",t);case 11:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"summarize_one_djcs",value:function(e){for(var r={},t=0;t<e._children.length;t++)for(var i=e._children[t],c=Number(i["数量"]),a=i.dercj,s=1;s<a.length;s++){var o=(0,n.C)(a[s]);o[10]=c*Number(o[10]),o[11]=c*Number(o[11]);var u=o[1].concat(o[2]).concat(o[4]);r.hasOwnProperty(u)?r[u].push(o):r[u]=[o]}var h=[];for(var f in r){for(var l=r[f],p=0,d=Number(l[0][5]),m=0;m<l.length;m++)p+=Number(l[m][10]);var y=[l[0][0],l[0][1],l[0][2],l[0][3],l[0][4],d,l[0][6],l[0][7],l[0][8],l[0][9],p,p*d,l[0][12],l[0][13],l[0][14],l[0][15]];h.push(y)}for(var b=0,v=0;v<h.length;v++)"工日"==h[v][4]&&(b+=h[v][10]);h.sort((function(e,r){return Number(e[8])-Number(r[8])})),e.rcj=[["ID","人材机编码","名称","规格型号","单位","单价","产地","供应厂商","人材机类别","甲供标志","含量","合价","暂估价标志","主要材料标志","主材标志","设备标志"]].concat(h),e["综合人工工日"]=b,e["综合单价"]=0,e["合价"]=0,e["人工费"]=0,e["主材费"]=0,e["设备费"]=0,e["辅材费"]=0,e["材料费"]=0,e["机械费"]=0,e["管理费"]=0,e["利润"]=0;for(var j=0;j<e._children.length;j++)e["综合单价"]+=Number(e._children[j]["数量"])*Number(e._children[j]["综合单价"]),e["合价"]+=Number(e._children[j]["合价"]),e["人工费"]+=Number(e._children[j]["数量"])*Number(e._children[j]["人工费"]),e["主材费"]+=Number(e._children[j]["数量"])*Number(e._children[j]["主材费"]),e["设备费"]+=Number(e._children[j]["数量"])*Number(e._children[j]["设备费"]),e["辅材费"]+=Number(e._children[j]["数量"])*Number(e._children[j]["辅材费"]),e["材料费"]+=Number(e._children[j]["数量"])*Number(e._children[j]["材料费"]),e["机械费"]+=Number(e._children[j]["数量"])*Number(e._children[j]["机械费"]),e["管理费"]+=Number(e._children[j]["数量"])*Number(e._children[j]["管理费"]),e["利润"]+=Number(e._children[j]["数量"])*Number(e._children[j]["利润"]);return e}},{key:"summarize_one",value:function(e){for(var r={},t=0;t<e._children.length;t++)for(var i=e._children[t],c=Number(i["数量"]),a=i.dercj,s=1;s<a.length;s++){var o=(0,n.C)(a[s]);o[10]=c*Number(o[10]),o[11]=c*Number(o[11]);var u=o[1].concat(o[2]).concat(o[4]);r.hasOwnProperty(u)?r[u].push(o):r[u]=[o]}var h=[];for(var f in r){for(var l=r[f],p=0,d=Number(l[0][5]),m=0;m<l.length;m++)p+=Number(l[m][10]);var y=[l[0][0],l[0][1],l[0][2],l[0][3],l[0][4],d,l[0][6],l[0][7],l[0][8],l[0][9],p,p*d,l[0][12],l[0][13],l[0][14],l[0][15]];h.push(y)}for(var b=0,v=0;v<h.length;v++)"工日"==h[v][4]&&(b+=h[v][10]);h.sort((function(e,r){return Number(e[8])-Number(r[8])})),e.rcj=[["ID","人材机编码","名称","规格型号","单位","单价","产地","供应厂商","人材机类别","甲供标志","含量","合价","暂估价标志","主要材料标志","主材标志","设备标志"]].concat(h),e["综合人工工日"]=b,e["综合单价"]=0,e["合价"]=0,e["人工费"]=0,e["主材费"]=0,e["设备费"]=0,e["辅材费"]=0,e["材料费"]=0,e["机械费"]=0,e["管理费"]=0,e["利润"]=0;for(var j=0;j<e._children.length;j++)e["综合单价"]+=Number(e._children[j]["数量"])*Number(e._children[j]["综合单价"]),e["合价"]+=Number(e._children[j]["合价"]),e["人工费"]+=Number(e._children[j]["数量"])*Number(e._children[j]["人工费"]),e["主材费"]+=Number(e._children[j]["数量"])*Number(e._children[j]["主材费"]),e["设备费"]+=Number(e._children[j]["数量"])*Number(e._children[j]["设备费"]),e["辅材费"]+=Number(e._children[j]["数量"])*Number(e._children[j]["辅材费"]),e["材料费"]+=Number(e._children[j]["数量"])*Number(e._children[j]["材料费"]),e["机械费"]+=Number(e._children[j]["数量"])*Number(e._children[j]["机械费"]),e["管理费"]+=Number(e._children[j]["数量"])*Number(e._children[j]["管理费"]),e["利润"]+=Number(e._children[j]["数量"])*Number(e._children[j]["利润"]);return e}},{key:"summarize",value:function(e){var r=this;return e.map((function(e){return r.summarize_one(e)}))}},{key:"summarize_djcs",value:function(e){var r=this;return e.map((function(e){return r.summarize_one_djcs(e)}))}},{key:"push_op",value:function(e){this.memory.length==this.mem_pointer+1?(this.memory.push((0,n.C)(e)),this.mem_pointer=this.mem_pointer+1):(this.memory.splice(this.mem_pointer+1),this.memory.push((0,n.C)(e)),this.mem_pointer=this.mem_pointer+1)}},{key:"push_op_djcs",value:function(e){this.memory_djcs.length==this.mem_pointer_djcs+1?(this.memory_djcs.push((0,n.C)(e)),this.mem_pointer_djcs=this.mem_pointer_djcs+1):(this.memory_djcs.splice(this.mem_pointer_djcs+1),this.memory_djcs.push((0,n.C)(e)),this.mem_pointer_djcs=this.mem_pointer_djcs+1)}},{key:"undo",value:function(){if(this.mem_pointer>0){var e=this.memory[this.mem_pointer-1];return this.mem_pointer=this.mem_pointer-1,this.cache=(0,n.C)(e),(0,n.C)(e)}return(0,n.C)(this.cache)}},{key:"undo_djcs",value:function(){if(this.mem_pointer_djcs>0){var e=this.memory_djcs[this.mem_pointer_djcs-1];return this.mem_pointer_djcs=this.mem_pointer_djcs-1,this.cache_djcs=(0,n.C)(e),(0,n.C)(e)}return(0,n.C)(this.cache_djcs)}},{key:"redo",value:function(){if(this.mem_pointer+1!=this.memory.length){var e=this.memory[this.mem_pointer+1];return this.mem_pointer=this.mem_pointer+1,this.cache=(0,n.C)(e),(0,n.C)(e)}return(0,n.C)(this.cache)}},{key:"redo_djcs",value:function(){if(this.mem_pointer_djcs+1!=this.memory_djcs.length){var e=this.memory_djcs[this.mem_pointer_djcs+1];return this.mem_pointer_djcs=this.mem_pointer_djcs+1,this.cache_djcs=(0,n.C)(e),(0,n.C)(e)}return(0,n.C)(this.cache_djcs)}},{key:"shanchu_djcs",value:function(e){if(this.cache_djcs.filter((function(r){return r.key==e})).length>0){var r=this.cache_djcs.map((function(r){if(r.key==e){var t=(0,n.C)(r);return t._children=[],t}return r})),t=this.summarize_djcs(r);return this.push_op_djcs(t),this.cache_djcs=(0,n.C)(t),(0,n.C)(this.cache_djcs)}var i=this.cache_djcs.filter((function(r){return r._children.filter((function(r){return r.key==e})).length>0}))[0]["清单编码"],c=this.cache_djcs.map((function(r){if(r["清单编码"]==i){var t=(0,n.C)(r),c=t._children.filter((function(r){return r.key!=e}));return t._children=c,t}return r})),a=this.summarize_djcs(c);return this.push_op_djcs(a),this.cache_djcs=(0,n.C)(a),(0,n.C)(this.cache_djcs)}},{key:"shanchu",value:function(e){if(this.cache.filter((function(r){return r.key==e})).length>0){var r=this.cache.map((function(r){if(r.key==e){var t=(0,n.C)(r);return t._children=[],t}return r})),t=this.summarize(r);return this.push_op(t),this.cache=(0,n.C)(t),(0,n.C)(this.cache)}var i=this.cache.filter((function(r){return r._children.filter((function(r){return r.key==e})).length>0}))[0]["清单编码"],c=this.cache.map((function(r){if(r["清单编码"]==i){var t=(0,n.C)(r),c=t._children.filter((function(r){return r.key!=e}));return t._children=c,t}return r})),a=this.summarize(c);return this.push_op(a),this.cache=(0,n.C)(a),(0,n.C)(this.cache)}},{key:"updateDercj_djcs_",value:function(e,r,t){console.log("data updated");var i=!1,c=this.cache_djcs.filter((function(r){return r._children.filter((function(r){return r.key==e})).length>0}))[0],a=c._children.filter((function(r){return r.key==e}))[0];if(a.hasOwnProperty("rcjdg")){for(var s=1;s<a.rcjdg.length;s++)a.rcjdg[s][5]=r[s][5],a.rcjdg[s][2]==r[s][2]||(i=!0);if(a.fuzhuEnable&&a.hasOwnProperty("fuzhu"))for(var o=1;o<a.rcjdg.length;o++){for(var u=Number(a.rcjdg[o][10]),h=0;h<a.fuzhu.length;h++){var f=a.fuzhu[h],l=f[0];if((0,n.Q4)(a.rcjdg[o][1],l))if("系数"==f[2])u*=Number(f[3]);else if("含量"==f[2])u=Number(f[3]);else{if("调整"!=f[2])throw new Error("无法处理的附注".concat(f[2]));u+=Number(f[3])}}a.dercj[o][2]=r[o][2],a.dercj[o][1]=r[o][1],a.dercj[o][5]=a.rcjdg[o][5],a.dercj[o][10]=u,a.dercj[o][11]=Number(a.dercj[o][5])*u}else if(a.fuzhuEnable&&!a.hasOwnProperty("fuzhu"))for(var p=1;p<a.rcjdg.length;p++){var d=Number(a.rcjdg[p][10]);a.dercj[p][2]=r[p][2],a.dercj[p][1]=r[p][1],a.dercj[p][5]=a.rcjdg[p][5],a.dercj[p][10]=d,a.dercj[p][11]=Number(a.dercj[p][5])*d}else a.dercj=(0,n.C)(r);r=a.dercj}else a.dercj=(0,n.C)(r),r=a.dercj;for(var m=1;m<r.length;m++)r[m][11]=Number(r[m][10])*Number(r[m][5]);for(var y=0,b=0,v=0,j=0,g=1;g<r.length;g++)y+=Number(r[g][11]),1==Number(r[g][8])&&(b+=Number(r[g][11])),2==Number(r[g][8])&&(j+=Number(r[g][11])),3==Number(r[g][8])&&(v+=Number(r[g][11]));console.log("sum=".concat(y));for(var k=Number(c["数量"]),_=0;_<c._children.length;_++)if(c._children[_].key==e){var x=Number(c._children[_]["数量"]),N=c._children[_]["清单编码"];c._children[_]["辅材费"]=j,c._children[_]["材料费"]=j,c._children[_]["人工费"]=b,c._children[_]["主材费"]=0,c._children[_]["设备费"]=0,c._children[_]["机械费"]=v,N.startsWith("D")?(c._children[_]["管理费"]=0,c._children[_]["利润"]=0):0==this.qufeiEntry["备注"].length?(c._children[_]["管理费"]=(b+v)*Number(this.qufeiEntry["管理费(%)"])/Number(100),c._children[_]["利润"]=(b+v)*Number(this.qufeiEntry["利润(%)"])/Number(100)):(c._children[_]["管理费"]=b*Number(this.qufeiEntry["管理费(%)"])/Number(100),c._children[_]["利润"]=b*Number(this.qufeiEntry["利润(%)"])/Number(100)),c._children[_]["综合单价"]=y+c._children[_]["管理费"]+c._children[_]["利润"],c._children[_]["合价"]=c._children[_]["综合单价"]*k*x,c._children[_].dercj=(0,n.C)(r),c._children[_]["清单编码"]=(0,n.i5)(N,t,i)}}},{key:"updateDercj_",value:function(e,r,t){console.log("data updated");var i=!1,c=this.cache.filter((function(r){return r._children.filter((function(r){return r.key==e})).length>0}))[0],a=c._children.filter((function(r){return r.key==e}))[0];if(a.hasOwnProperty("rcjdg")){for(var s=1;s<a.rcjdg.length;s++)a.rcjdg[s][5]=r[s][5],a.rcjdg[s][2]==r[s][2]||(i=!0);if(a.fuzhuEnable&&a.hasOwnProperty("fuzhu"))for(var o=1;o<a.rcjdg.length;o++){for(var u=Number(a.rcjdg[o][10]),h=0;h<a.fuzhu.length;h++){var f=a.fuzhu[h],l=f[0];if((0,n.Q4)(a.rcjdg[o][1],l))if("系数"==f[2])u*=Number(f[3]);else if("含量"==f[2])u=Number(f[3]);else{if("调整"!=f[2])throw new Error("无法处理的附注".concat(f[2]));u+=Number(f[3])}}a.dercj[o][2]=r[o][2],a.dercj[o][1]=r[o][1],a.dercj[o][5]=a.rcjdg[o][5],a.dercj[o][10]=u,a.dercj[o][11]=Number(a.dercj[o][5])*u}else if(a.fuzhuEnable&&!a.hasOwnProperty("fuzhu"))for(var p=1;p<a.rcjdg.length;p++){var d=Number(a.rcjdg[p][10]);a.dercj[p][2]=r[p][2],a.dercj[p][1]=r[p][1],a.dercj[p][5]=a.rcjdg[p][5],a.dercj[p][10]=d,a.dercj[p][11]=Number(a.dercj[p][5])*d}else a.dercj=(0,n.C)(r);r=a.dercj}else a.dercj=(0,n.C)(r),r=a.dercj;for(var m=1;m<r.length;m++)r[m][11]=Number(r[m][10])*Number(r[m][5]);for(var y=0,b=0,v=0,j=0,g=1;g<r.length;g++)y+=Number(r[g][11]),1==Number(r[g][8])&&(b+=Number(r[g][11])),2==Number(r[g][8])&&(j+=Number(r[g][11])),3==Number(r[g][8])&&(v+=Number(r[g][11]));console.log("sum=".concat(y));for(var k=Number(c["数量"]),_=0;_<c._children.length;_++)if(c._children[_].key==e){var x=Number(c._children[_]["数量"]),N=c._children[_]["清单编码"];c._children[_]["辅材费"]=j,c._children[_]["材料费"]=j,c._children[_]["人工费"]=b,c._children[_]["主材费"]=0,c._children[_]["设备费"]=0,c._children[_]["机械费"]=v,N.startsWith("D")?(c._children[_]["管理费"]=0,c._children[_]["利润"]=0):0==this.qufeiEntry["备注"].length?(c._children[_]["管理费"]=(b+v)*Number(this.qufeiEntry["管理费(%)"])/Number(100),c._children[_]["利润"]=(b+v)*Number(this.qufeiEntry["利润(%)"])/Number(100)):(c._children[_]["管理费"]=b*Number(this.qufeiEntry["管理费(%)"])/Number(100),c._children[_]["利润"]=b*Number(this.qufeiEntry["利润(%)"])/Number(100)),c._children[_]["综合单价"]=y+c._children[_]["管理费"]+c._children[_]["利润"],c._children[_]["合价"]=c._children[_]["综合单价"]*k*x,c._children[_].dercj=(0,n.C)(r),c._children[_]["清单编码"]=(0,n.i5)(N,t,i)}}},{key:"updateDercj",value:function(e,r){for(var t=this.cache.filter((function(r){return r._children.filter((function(r){return r.key==e})).length>0}))[0],i=t._children.filter((function(r){return r.key==e}))[0],c=i["清单编码"],a=(0,n.Gu)(c),s=i.dercj,o=!1,u=1;u<r.length;u++){var h=s[u][10],f=r[u][10];if(!(Number(h)-Number(f)<1e-4&&Number(h)-Number(f)>-1e-4)){o=!0;break}}o&&(i.fuzhuEnable=!1),this.updateDercj_(e,r,a);var l=this.cache.map((function(e){return e.key==t.key?t:e})),p=this.summarize(l);return this.push_op(p),this.cache=(0,n.C)(p),(0,n.C)(this.cache)}},{key:"updateDercj_djcs",value:function(e,r){for(var t=this.cache_djcs.filter((function(r){return r._children.filter((function(r){return r.key==e})).length>0}))[0],i=t._children.filter((function(r){return r.key==e}))[0],c=i["清单编码"],a=(0,n.Gu)(c),s=i.dercj,o=!1,u=1;u<r.length;u++){var h=s[u][10],f=r[u][10];if(!(Number(h)-Number(f)<1e-4&&Number(h)-Number(f)>-1e-4)){o=!0;break}}o&&(i.fuzhuEnable=!1),this.updateDercj_djcs_(e,r,a);var l=this.cache_djcs.map((function(e){return e.key==t.key?t:e})),p=this.summarize_djcs(l);return this.push_op_djcs(p),this.cache_djcs=(0,n.C)(p),(0,n.C)(this.cache_djcs)}},{key:"updateBeizhu",value:function(e,r,t){var i=this.cache.filter((function(r){return r._children.filter((function(r){return r.key==e})).length>0}))[0];if(!i)return[null,null];var c=i._children.filter((function(r){return r.key==e}))[0];c.hasOwnProperty("rcjdg"),c.fuzhu=(0,n.C)(r),this.updateDercj_(e,c.dercj,t);var a=this.cache.map((function(e){return e.key==i.key?i:e})),s=this.summarize(a);return this.push_op(s),this.cache=(0,n.C)(s),[(0,n.C)(this.cache),(0,n.C)(c.dercj)]}},{key:"updateBeizhu_djcs",value:function(e,r,t){var i=this.cache_djcs.filter((function(r){return r._children.filter((function(r){return r.key==e})).length>0}))[0];if(!i)return[null,null];var c=i._children.filter((function(r){return r.key==e}))[0];c.hasOwnProperty("rcjdg"),c.fuzhu=(0,n.C)(r),this.updateDercj_djcs_(e,c.dercj,t);var a=this.cache_djcs.map((function(e){return e.key==i.key?i:e})),s=this.summarize_djcs(a);return this.push_op_djcs(s),this.cache_djcs=(0,n.C)(s),[(0,n.C)(this.cache_djcs),(0,n.C)(c.dercj)]}},{key:"huan",value:function(e,r,t,i,c){var a=this.cache.filter((function(e){return e._children.filter((function(e){return e.key==c})).length>0}))[0]._children.filter((function(e){return e.key==c}))[0],s=(0,n.C)(a.dercj);return s[e][1]=r,s[e][2]=t,s[e][5]=i,this.updateDercj(c,s)}},{key:"updateShuliang",value:function(e,r){var t=this.cache.filter((function(e){return e._children.filter((function(e){return e.key==r})).length>0}))[0],i=t._children.filter((function(e){return e.key==r}))[0],c=i["数量"];if(Number(c)-Number(e)<1e-4&&Number(c)-Number(e)>-1e-4)return[!1,null];console.log("shuliang update"),i["数量"]=e,i["合价"]=Number(t["数量"])*Number(i["综合单价"])*Number(i["数量"]);var a=this.cache.map((function(e){return e.key==t.key?t:e})),s=this.summarize(a);return this.push_op(s),this.cache=(0,n.C)(s),[!0,(0,n.C)(this.cache)]}},{key:"updateShuliang_djcs",value:function(e,r){var t=this.cache_djcs.filter((function(e){return e._children.filter((function(e){return e.key==r})).length>0}))[0],i=t._children.filter((function(e){return e.key==r}))[0],c=i["数量"];if(Number(c)-Number(e)<1e-4&&Number(c)-Number(e)>-1e-4)return[!1,null];console.log("shuliang update"),i["数量"]=e,i["合价"]=Number(t["数量"])*Number(i["综合单价"])*Number(i["数量"]);var a=this.cache_djcs.map((function(e){return e.key==t.key?t:e})),s=this.summarize_djcs(a);return this.push_op_djcs(s),this.cache_djcs=(0,n.C)(s),[!0,(0,n.C)(this.cache_djcs)]}},{key:"changguidinge_djcs",value:function(e,r){if(this.cache_djcs.filter((function(e){return e.key==r})).length>0){for(var t=e,c=Object.keys(t.DEBH)[0],a=this.cache_djcs.filter((function(e){return e.key==r}))[0],s=[["ID","人材机编码","名称","规格型号","单位","单价","产地","供应厂商","人材机类别","甲供标志","含量","合价","暂估价标志","主要材料标志","主材标志","设备标志"]],o=0;o<t.rgde.length;o++)s.push(["",t.rgde[o].CLBH,t.rgde[o].CLMC,"",t.rgde[o].JLDW,t.rgde[o].YSJG,"","","1","",t.rgde[o].gr,t.rgde[o].gf,"","","",""]);for(var u=0;u<t.clde.length;u++)s.push(["",t.clde[u].CLBH,t.clde[u].CLMC,"",t.clde[u].JLDW,t.clde[u].YSJG,"","","2","",t.clde[u].SL,t.clde[u].HJ,"","","",""]);for(var h=0;h<t.jxde.length;h++)s.push(["",t.jxde[h].jxbh,t.jxde[h].jxmc,"",t.jxde[h].DW,t.jxde[h].tbdj,"","","3","",t.jxde[h].sl,t.jxde[h].hj,"","","",""]);var f=(0,i.A)();a._children.push({操作:"",序号:null,清单编码:t.DEBH[c],名称:t.GCLMC[c],项目特征:null,计算规则:null,单位:t.DW[c],数量:"1",综合单价:"0",合价:"0",人工费:"0",主材费:"0",设备费:"0",辅材费:"0",材料费:"0",机械费:"0",管理费:"0",利润:"0",暂估价:null,综合人工工日:null,备注:null,dercj:s,rcjdg:(0,n.C)(s),key:f,fuzhuEnable:!0}),this.updateDercj_djcs_(f,s,[]);var l=this.summarize_djcs(this.cache_djcs);return this.push_op_djcs((0,n.C)(l)),this.cache_djcs=(0,n.C)(l),[!0,(0,n.C)(this.cache_djcs),f]}return[!1,null,null]}},{key:"changguidinge",value:function(e,r){if(this.cache.filter((function(e){return e.key==r})).length>0){for(var t=e,c=Object.keys(t.DEBH)[0],a=this.cache.filter((function(e){return e.key==r}))[0],s=[["ID","人材机编码","名称","规格型号","单位","单价","产地","供应厂商","人材机类别","甲供标志","含量","合价","暂估价标志","主要材料标志","主材标志","设备标志"]],o=0;o<t.rgde.length;o++)s.push(["",t.rgde[o].CLBH,t.rgde[o].CLMC,"",t.rgde[o].JLDW,t.rgde[o].YSJG,"","","1","",t.rgde[o].gr,t.rgde[o].gf,"","","",""]);for(var u=0;u<t.clde.length;u++)s.push(["",t.clde[u].CLBH,t.clde[u].CLMC,"",t.clde[u].JLDW,t.clde[u].YSJG,"","","2","",t.clde[u].SL,t.clde[u].HJ,"","","",""]);for(var h=0;h<t.jxde.length;h++)s.push(["",t.jxde[h].jxbh,t.jxde[h].jxmc,"",t.jxde[h].DW,t.jxde[h].tbdj,"","","3","",t.jxde[h].sl,t.jxde[h].hj,"","","",""]);var f=(0,i.A)();a._children.push({操作:"",序号:null,清单编码:t.DEBH[c],名称:t.GCLMC[c],项目特征:null,计算规则:null,单位:t.DW[c],数量:"1",综合单价:"0",合价:"0",人工费:"0",主材费:"0",设备费:"0",辅材费:"0",材料费:"0",机械费:"0",管理费:"0",利润:"0",暂估价:null,综合人工工日:null,备注:null,dercj:s,rcjdg:(0,n.C)(s),key:f,fuzhuEnable:!0}),this.updateDercj_(f,s,[]);var l=this.summarize(this.cache);return this.push_op((0,n.C)(l)),this.cache=(0,n.C)(l),[!0,(0,n.C)(this.cache),f]}return[!1,null,null]}},{key:"danxiangdinge",value:function(e){var r=(0,n.vg)(this.cache);if(this.cache.filter((function(r){return r.key==e})).length>0){var t=this.cache.filter((function(r){return r.key==e}))[0],c=t["单位"],a=t["名称"];t._children.push({操作:"",序号:null,清单编码:r,名称:a,项目特征:null,计算规则:null,单位:c,数量:"1",综合单价:"",合价:"",人工费:"0",主材费:"0",设备费:"0",辅材费:"",材料费:"",机械费:"0",管理费:"0",利润:"0",暂估价:null,综合人工工日:null,备注:null,dercj:[["ID","人材机编码","名称","规格型号","单位","单价","产地","供应厂商","人材机类别","甲供标志","含量","合价","暂估价标志","主要材料标志","主材标志","设备标志"],["",r,a,"",c,"","","","2","","1","","","","",""]],key:(0,i.A)(),fuzhuEnable:!1});var s=this.summarize(this.cache);return this.push_op(s),this.cache=(0,n.C)(s),[!0,(0,n.C)(this.cache)]}return[!1,null]}},{key:"danxiangdinge_djcs",value:function(e){var r=(0,n.EP)(this.cache_djcs);if(this.cache_djcs.filter((function(r){return r.key==e})).length>0){var t=this.cache_djcs.filter((function(r){return r.key==e}))[0],c=t["单位"],a=t["名称"];t._children.push({序号:null,清单编码:r,名称:a,项目特征:null,计算规则:null,单位:c,数量:"1",综合单价:"",合价:"",人工费:"0",主材费:"0",设备费:"0",辅材费:"",材料费:"",机械费:"0",管理费:"0",利润:"0",暂估价:null,综合人工工日:null,备注:null,dercj:[["ID","人材机编码","名称","规格型号","单位","单价","产地","供应厂商","人材机类别","甲供标志","含量","合价","暂估价标志","主要材料标志","主材标志","设备标志"],["",r,a,"",c,"","","","2","","1","","","","",""]],key:(0,i.A)(),fuzhuEnable:!1});var s=this.summarize_djcs(this.cache_djcs);return this.push_op_djcs(s),this.cache_djcs=(0,n.C)(s),[!0,(0,n.C)(this.cache_djcs)]}return[!1,null]}}],r&&u(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,t,c,s,h,f,l,p,d,m,y,b,v,j,g,k,_,x,N,w,C,O,S,P,E,z,J,D,T,q,G,L,Q,W,F,I,B,A,H,Z,M,Y,X,R,K,U,V}())},5948:(e,r,t)=>{t.d(r,{C:()=>c,EP:()=>i,Gu:()=>s,Q4:()=>o,i5:()=>a,vg:()=>n});var n=function(e){for(var r=0,t=0;t<e.length;t++)if(e[t].hasOwnProperty("_children"))for(var n=e[t]._children,i=0;i<n.length;i++){var c=n[i];if(c["清单编码"].startsWith("D")){var a=c["清单编码"].substring(1),s=Number(a);s>r&&(r=s)}}var o=(r+1).toString();return o=o.padStart(5,"0"),"D".concat(o)},i=function(e){for(var r=0,t=0;t<e.length;t++)if(e[t].hasOwnProperty("_children"))for(var n=e[t]._children,i=0;i<n.length;i++){var c=n[i];if(c["清单编码"].startsWith("D")){var a=c["清单编码"].substring(1),s=Number(a);s>r&&(r=s)}}var o=(r+1).toString();return o=o.padStart(5,"0"),"D".concat(o)},c=function(e){return JSON.parse(JSON.stringify(e))},a=function(e,r,t){var n=e.indexOf("附注",0),i=e;-1==n||(i=e.substring(0,n));for(var c=0;c<r.length;c++)i=(i=i.concat("附注")).concat(r[c].toString());return t&&-1==i.indexOf("换")&&(i=i.concat("换")),i},s=function(e){if(e){for(var r=0,t=[];r<e.length;){var n=e.indexOf("附注",r);if(-1==n)break;var i=n+2;for(i=n+2;i<e.length&&e[i]>="0"&&e[i]<="9";i++);var c=e.substring(n+2,i);t.push(Number(c)),r=i}return t}return[]},o=function(e,r){return"000001"==r?!!e.startsWith("0001"):"J00000"==r?!!e.startsWith("99"):"100000"==r?!e.startsWith("99")&&!e.startsWith("0001"):e==r}}}]);
|