| 12 |
- /*! For license information please see 766.bundle.js.LICENSE.txt */
- (self.webpackChunkfront=self.webpackChunkfront||[]).push([[766],{7053:(e,r,t)=>{"use strict";t.d(r,{A:()=>h});var n=t(96540),i=t(34477),a=(t(22969),t(33428),t(67677),t(72107),t(7321),t(91874),t(60431)),c=t(83508),s=t(74848);function o(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,i,a,c,s=[],o=!0,u=!1;try{if(a=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;o=!1}else for(;!(o=(n=a.call(t)).done)&&(s.push(n.value),s.length!==r);o=!0);}catch(e){u=!0,i=e}finally{try{if(!o&&null!=t.return&&(c=t.return(),Object(c)!==c))return}finally{if(u)throw i}}return s}}(e,r)||function(e,r){if(e){if("string"==typeof e)return u(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function h(e){var r=e.initialText,t=e.onChange,u=o(n.useState(!1),2),h=u[0],l=u[1],f=o(n.useState(r),2),d=f[0],p=f[1];return n.useEffect((function(){p(r)}),[r]),(0,s.jsx)(i.A,{children:h?(0,s.jsx)(c.A,{id:"outlined-basic",value:d,size:"small",autoFocus:!0,variant:"outlined",onChange:function(e){p(e.target.value)},onKeyDown:function(e){"Enter"==e.key&&(l(!1),t(d))},onBlur:function(){l(!1),t(d)}}):(0,s.jsx)(a.A,{disableRipple:!0,variant:"text",color:"#000000",onDoubleClick:function(){l(!0)},children:d})})}},7321:(e,r,t)=>{"use strict";t(96540),t(22969),t(33428),t(91874),t(74848)},12608:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAoCAMAAADJ7yrpAAAAKlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKE86IAAAADXRSTlMABBEmRGprlJW72e77tTkTKwAAAFJJREFUeAHtzjkSgCAQRNFmQYUZ7n9dKUvru0TmvPAn3br0QfgdZ5xx6x+rQn23GqTYnq1FDcnuzZIO2WmedVqIRVxgGKEyjNgYRjKGkZ1hFIZ3I70LyM0VtU8AAAAASUVORK5CYII="},35358:(e,r,t)=>{var n={"./af":25177,"./af.js":25177,"./ar":61509,"./ar-dz":41488,"./ar-dz.js":41488,"./ar-kw":58676,"./ar-kw.js":58676,"./ar-ly":42353,"./ar-ly.js":42353,"./ar-ma":24496,"./ar-ma.js":24496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":82682,"./ar-sa.js":82682,"./ar-tn":89756,"./ar-tn.js":89756,"./ar.js":61509,"./az":95533,"./az.js":95533,"./be":28959,"./be.js":28959,"./bg":47777,"./bg.js":47777,"./bm":54903,"./bm.js":54903,"./bn":61290,"./bn-bd":17357,"./bn-bd.js":17357,"./bn.js":61290,"./bo":31545,"./bo.js":31545,"./br":11470,"./br.js":11470,"./bs":44429,"./bs.js":44429,"./ca":7306,"./ca.js":7306,"./cs":56464,"./cs.js":56464,"./cv":73635,"./cv.js":73635,"./cy":64226,"./cy.js":64226,"./da":93601,"./da.js":93601,"./de":77853,"./de-at":26111,"./de-at.js":26111,"./de-ch":54697,"./de-ch.js":54697,"./de.js":77853,"./dv":60708,"./dv.js":60708,"./el":54691,"./el.js":54691,"./en-au":53872,"./en-au.js":53872,"./en-ca":28298,"./en-ca.js":28298,"./en-gb":56195,"./en-gb.js":56195,"./en-ie":66584,"./en-ie.js":66584,"./en-il":65543,"./en-il.js":65543,"./en-in":9033,"./en-in.js":9033,"./en-nz":79402,"./en-nz.js":79402,"./en-sg":43004,"./en-sg.js":43004,"./eo":32934,"./eo.js":32934,"./es":97650,"./es-do":20838,"./es-do.js":20838,"./es-mx":17730,"./es-mx.js":17730,"./es-us":56575,"./es-us.js":56575,"./es.js":97650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":90527,"./fi.js":90527,"./fil":95995,"./fil.js":95995,"./fo":52477,"./fo.js":52477,"./fr":85498,"./fr-ca":26435,"./fr-ca.js":26435,"./fr-ch":37892,"./fr-ch.js":37892,"./fr.js":85498,"./fy":37071,"./fy.js":37071,"./ga":41734,"./ga.js":41734,"./gd":70217,"./gd.js":70217,"./gl":77329,"./gl.js":77329,"./gom-deva":32124,"./gom-deva.js":32124,"./gom-latn":93383,"./gom-latn.js":93383,"./gu":95050,"./gu.js":95050,"./he":11713,"./he.js":11713,"./hi":43861,"./hi.js":43861,"./hr":26308,"./hr.js":26308,"./hu":90609,"./hu.js":90609,"./hy-am":17160,"./hy-am.js":17160,"./id":74063,"./id.js":74063,"./is":89374,"./is.js":89374,"./it":88383,"./it-ch":21827,"./it-ch.js":21827,"./it.js":88383,"./ja":23827,"./ja.js":23827,"./jv":89722,"./jv.js":89722,"./ka":41794,"./ka.js":41794,"./kk":27088,"./kk.js":27088,"./km":96870,"./km.js":96870,"./kn":84451,"./kn.js":84451,"./ko":63164,"./ko.js":63164,"./ku":98174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":98174,"./ky":78474,"./ky.js":78474,"./lb":79680,"./lb.js":79680,"./lo":15867,"./lo.js":15867,"./lt":45766,"./lt.js":45766,"./lv":69532,"./lv.js":69532,"./me":58076,"./me.js":58076,"./mi":41848,"./mi.js":41848,"./mk":30306,"./mk.js":30306,"./ml":73739,"./ml.js":73739,"./mn":99053,"./mn.js":99053,"./mr":86169,"./mr.js":86169,"./ms":73386,"./ms-my":92297,"./ms-my.js":92297,"./ms.js":73386,"./mt":77075,"./mt.js":77075,"./my":72264,"./my.js":72264,"./nb":22274,"./nb.js":22274,"./ne":8235,"./ne.js":8235,"./nl":92572,"./nl-be":43784,"./nl-be.js":43784,"./nl.js":92572,"./nn":54566,"./nn.js":54566,"./oc-lnc":69330,"./oc-lnc.js":69330,"./pa-in":29849,"./pa-in.js":29849,"./pl":94418,"./pl.js":94418,"./pt":79834,"./pt-br":48303,"./pt-br.js":48303,"./pt.js":79834,"./ro":24457,"./ro.js":24457,"./ru":82271,"./ru.js":82271,"./sd":1221,"./sd.js":1221,"./se":33478,"./se.js":33478,"./si":17538,"./si.js":17538,"./sk":5784,"./sk.js":5784,"./sl":46637,"./sl.js":46637,"./sq":86794,"./sq.js":86794,"./sr":45719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":45719,"./ss":56e3,"./ss.js":56e3,"./sv":41011,"./sv.js":41011,"./sw":40748,"./sw.js":40748,"./ta":11025,"./ta.js":11025,"./te":11885,"./te.js":11885,"./tet":28861,"./tet.js":28861,"./tg":86571,"./tg.js":86571,"./th":55802,"./th.js":55802,"./tk":59527,"./tk.js":59527,"./tl-ph":29231,"./tl-ph.js":29231,"./tlh":31052,"./tlh.js":31052,"./tr":85096,"./tr.js":85096,"./tzl":79846,"./tzl.js":79846,"./tzm":81765,"./tzm-latn":97711,"./tzm-latn.js":97711,"./tzm.js":81765,"./ug-cn":48414,"./ug-cn.js":48414,"./uk":16618,"./uk.js":16618,"./ur":57777,"./ur.js":57777,"./uz":57609,"./uz-latn":72475,"./uz-latn.js":72475,"./uz.js":57609,"./vi":21135,"./vi.js":21135,"./x-pseudo":64051,"./x-pseudo.js":64051,"./yo":82218,"./yo.js":82218,"./zh-cn":52648,"./zh-cn.js":52648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":31541,"./zh-mo.js":31541,"./zh-tw":50304,"./zh-tw.js":50304};function i(e){var r=a(e);return t(r)}function a(e){if(!t.o(n,e)){var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=a,e.exports=i,i.id=35358},40500:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg=="},48968:(e,r,t)=>{"use strict";t.d(r,{E:()=>u,E8:()=>f,FF:()=>m,HL:()=>o,KI:()=>a,M0:()=>g,RS:()=>p,Uo:()=>s,Vg:()=>b,XY:()=>v,ZS:()=>c,a8:()=>y,bV:()=>l,k5:()=>h,kV:()=>j,nC:()=>d,tN:()=>i});var n=t(91874),i=function(){return n.A.undo()},a=function(){return n.A.undo_djcs()},c=function(){return n.A.redo()},s=function(){return n.A.redo_djcs()},o=function(e){return n.A.shanchu(e)},u=function(e){return n.A.shanchu_djcs(e)},h=function(e){return n.A.danxiangdinge(e)},l=function(e){return n.A.danxiangdinge_djcs(e)},f=function(e,r){return n.A.updateDercj(e,r)},d=function(e,r){return n.A.updateDercj_djcs(e,r)},p=function(e,r){return n.A.huan(e.old,e.newBianhao,e.newName,e.newJia,r)},m=function(e,r){return n.A.updateShuliang(e,r)},j=function(e,r){return n.A.updateShuliang_djcs(e,r)},y=function(e,r){return n.A.changguidinge(e,r)},b=function(e,r){return n.A.changguidinge_djcs(e,r)},g=function(e,r,t,i){console.log(e);for(var a=[],c=[],s=Array.from(t),o=e.BZBH,u=0;u<s.length;u++)for(var h=s[u],l=0;l<i.length;l++)i[l].key==h&&(a.push(i[l]["编号"]),c.push(i[l]["序号"]));for(var f=[],d=0;d<a.length;d++)for(var p=a[d],m=0;m<Object.keys(o).length;m++){var j=Object.keys(o)[m];o[j]==p&&f.push([e.BH[j],e.MC[j],e.LB[j],e.SL[j],e.DW[j]])}return console.log(f),n.A.updateBeizhu(r,f,c)},v=function(e,r,t,i){console.log(e);for(var a=[],c=[],s=Array.from(t),o=e.BZBH,u=0;u<s.length;u++)for(var h=s[u],l=0;l<i.length;l++)i[l].key==h&&(a.push(i[l]["编号"]),c.push(i[l]["序号"]));for(var f=[],d=0;d<a.length;d++)for(var p=a[d],m=0;m<Object.keys(o).length;m++){var j=Object.keys(o)[m];o[j]==p&&f.push([e.BH[j],e.MC[j],e.LB[j],e.SL[j],e.DW[j]])}return console.log(f),n.A.updateBeizhu_djcs(r,f,c)}},65948:(e,r,t)=>{"use strict";t.d(r,{C:()=>a,EP:()=>i,Gu:()=>s,Q4:()=>o,i5:()=>c,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 a=n[i];if(a["清单编码"].startsWith("D")){var c=a["清单编码"].substring(1),s=Number(c);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 a=n[i];if(a["清单编码"].startsWith("D")){var c=a["清单编码"].substring(1),s=Number(c);s>r&&(r=s)}}var o=(r+1).toString();return o=o.padStart(5,"0"),"D".concat(o)},a=function(e){return JSON.parse(JSON.stringify(e))},c=function(e,r,t){var n=e.indexOf("附注",0),i=e;-1==n||(i=e.substring(0,n));for(var a=0;a<r.length;a++)i=(i=i.concat("附注")).concat(r[a].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 a=e.substring(n+2,i);t.push(Number(a)),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}},67677:(e,r,t)=>{"use strict";t(96540),t(22969),t(31524);var n=t(37237);t(91874),t(48968),t(37073),t(7053),t(74848),(0,n.um)()},72107:(e,r,t)=>{"use strict";t(96540),t(22969),t(33428),t(91874),t(74848)},87026:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAoCAMAAADJ7yrpAAAAKlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKE86IAAAADXRSTlMABBEmRGprlJW72e77tTkTKwAAAFNJREFUeAHtzjkSgCAUBNHPgsoy97+ulGXRqJE5L+xkxoYt2UdsLb5bqFINz+aLuuLn5rIu2RkO3fZpWENimNgiw6iBYRTPMLJjGFxQZ1hxxb/xBI1qC8k39CdKAAAAAElFTkSuQmCC"},87698:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII="},91874:(e,r,t)=>{"use strict";t.d(r,{A:()=>l});var n=t(65948),i=t(54011);function a(e){return a="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},a(e)}function c(){c=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 l(r,t,n,i){var a=t&&t.prototype instanceof p?t:p,c=Object.create(a.prototype);return h(c,"_invoke",function(r,t,n){var i=1;return function(a,c){if(3===i)throw Error("Generator is already running");if(4===i){if("throw"===a)throw c;return{value:e,done:!0}}for(n.method=a,n.arg=c;;){var s=n.delegate;if(s){var o=x(s,n);if(o){if(o===d)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=f(r,t,n);if("normal"===u.type){if(i=n.done?4:2,u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=4,n.method="throw",n.arg=u.arg)}}}(r,n,new N(i||[])),!0),c}function f(e,r,t){try{return{type:"normal",arg:e.call(r,t)}}catch(e){return{type:"throw",arg:e}}}r.wrap=l;var d={};function p(){}function m(){}function j(){}var y={};h(y,s,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(C([])));g&&g!==t&&n.call(g,s)&&(y=g);var v=j.prototype=p.prototype=Object.create(y);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,c,s,o){var u=f(e[i],e,c);if("throw"!==u.type){var h=u.arg,l=h.value;return l&&"object"==a(l)&&n.call(l,"__await")?r.resolve(l.__await).then((function(e){t("next",e,s,o)}),(function(e){t("throw",e,s,o)})):r.resolve(l).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 a(){return new r((function(r,i){t(e,n,r,i)}))}return i=i?i.then(a,a):a()}),!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")),d;var a=f(i,r.i,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var c=a.arg;return c?c.done?(t[r.r]=c.value,t.next=r.n,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,d):c:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function A(e){this.tryEntries.push(e)}function w(r){var t=r[4]||{};t.type="normal",t.arg=e,r[4]=t}function N(e){this.tryEntries=[[-1]],e.forEach(A,this),this.reset(!0)}function C(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,c=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 c.next=c}}throw new TypeError(a(r)+" is not iterable")}return m.prototype=j,h(v,"constructor",j),h(j,"constructor",m),m.displayName=h(j,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,j):(e.__proto__=j,h(e,u,"GeneratorFunction")),e.prototype=Object.create(v),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,a){void 0===a&&(a=Promise);var c=new _(l(e,t,n,i),a);return r.isGeneratorFunction(t)?c:c.next().then((function(e){return e.done?e.value:c.next()}))},k(v),h(v,u,"Generator"),h(v,s,(function(){return this})),h(v,"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=C,N.prototype={constructor:N,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){c.type="throw",c.arg=r,t.next=e}for(var i=t.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a[4],s=this.prev,o=a[1],u=a[2];if(-1===a[0])return n("end"),!1;if(!o&&!u)throw Error("try statement without catch or finally");if(null!=a[0]&&a[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 a=i?i[4]:{};return a.type=e,a.arg=r,i?(this.method="next",this.next=i[2],d):this.complete(a)},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),d},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),d}},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:C(r),r:t,n},"next"===this.method&&(this.arg=e),d}},r}function s(e,r,t,n,i,a,c){try{var s=e[a](c),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 a=e.apply(r,t);function c(e){s(a,n,i,c,o,"next",e)}function o(e){s(a,n,i,c,o,"throw",e)}c(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"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!=a(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(r)?r:r+""}const l=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 a=n.children[i];r.push(a)}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 a=0;a<this.cache_djcs.length;a++)for(var c=this.cache_djcs[a],s=0;s<c._children.length;s++){var o=c._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 a=0;a<this.cache.length;a++)for(var c=this.cache[a],s=0;s<c.__children.length;s++){var o=c.__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:(Y=o(c().mark((function e(r){var t,n;return c().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 Y.apply(this,arguments)})},{key:"generateQufei",value:(V=o(c().mark((function e(r){var t,n;return c().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 V.apply(this,arguments)})},{key:"generateOutline2",value:(H=o(c().mark((function e(r){var t,n;return c().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 H.apply(this,arguments)})},{key:"generateDetail",value:(K=o(c().mark((function e(r){var t,n;return c().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 K.apply(this,arguments)})},{key:"generateDetail2",value:(W=o(c().mark((function e(r){var t,n;return c().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 W.apply(this,arguments)})},{key:"generateBaojiahuizong",value:(M=o(c().mark((function e(r,t){var n,i;return c().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:(R=o(c().mark((function e(r,t){var n,i;return c().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 R.apply(this,arguments)})},{key:"generateGuifeishuijin",value:(F=o(c().mark((function e(r,t){var n,i;return c().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 F.apply(this,arguments)})},{key:"generateGuifeishuijin2",value:(U=o(c().mark((function e(r,t){var n,i;return c().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 U.apply(this,arguments)})},{key:"generateQitaxiangmu",value:(L=o(c().mark((function e(r,t){var n,i;return c().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 L.apply(this,arguments)})},{key:"generateQitaxiangmu2",value:(G=o(c().mark((function e(r,t){var n,i;return c().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 G.apply(this,arguments)})},{key:"generateZygczgj",value:(Q=o(c().mark((function e(r,t){var n,i;return c().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 Q.apply(this,arguments)})},{key:"generateZongchengbaofuwufei",value:(I=o(c().mark((function e(r,t){var n,i;return c().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 I.apply(this,arguments)})},{key:"generateZongchengbaofuwufei2",value:(q=o(c().mark((function e(r,t){var n,i;return c().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:(B=o(c().mark((function e(r,t){var n,i;return c().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 B.apply(this,arguments)})},{key:"generateFabaorengongyingcailiao2",value:(T=o(c().mark((function e(r,t){var n,i;return c().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 T.apply(this,arguments)})},{key:"generateRencaijihuizong",value:(D=o(c().mark((function e(r,t){var n,i;return c().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 D.apply(this,arguments)})},{key:"generateRencaijihuizong2",value:(J=o(c().mark((function e(r,t){var n,a,s,o;return c().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(a=e.sent,s=[],o=1;o<a.length;o++)s.push({key:(0,i.A)(),ID:a[o][0],编码:a[o][1],名称:a[o][2],规格型号:a[o][3],单位:a[o][4],数量:a[o][5],单价:a[o][6],合价:a[o][7],产地:a[o][8],供应厂商:a[o][9],人材机类别:a[o][10],主要材料标志:a[o][11],主材标志:a[o][12],设备标志:a[o][13],甲供标志:a[o][14],暂估价标志:a[o][15]});return this.setQufeiEntry(t),e.abrupt("return",s);case 14:case"end":return e.stop()}}),e,this)}))),function(e,r){return J.apply(this,arguments)})},{key:"generateJirigong",value:(P=o(c().mark((function e(r,t){var n,i;return c().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 P.apply(this,arguments)})},{key:"generateJirigong2",value:(z=o(c().mark((function e(r,t){var n,i;return c().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 z.apply(this,arguments)})},{key:"generateZanliejine",value:(E=o(c().mark((function e(r,t){var n,i;return c().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 E.apply(this,arguments)})},{key:"generateZanliejine2",value:(S=o(c().mark((function e(r,t){var n,i;return c().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 S.apply(this,arguments)})},{key:"generateQingdanxiangmu",value:(O=o(c().mark((function e(r,t){var n,i;return c().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 O.apply(this,arguments)})},{key:"generateQingdanxiangmu2",value:(C=o(c().mark((function e(r,t){var n,i;return c().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 C.apply(this,arguments)})},{key:"searchDe",value:(N=o(c().mark((function e(r,t){var n,i;return c().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 N.apply(this,arguments)})},{key:"generateQingdanmingxi",value:(w=o(c().mark((function e(r,t,i){var a,s;return c().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((a=e.sent).ok){e.next=8;break}console.error("error"),e.next=14;break;case 8:return e.next=10,a.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 w.apply(this,arguments)})},{key:"generateQingdanrcj",value:(A=o(c().mark((function e(r,t,i,a){var s,o;return c().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["清单编码"]==a}))[0],e.abrupt("return",(0,n.C)(s.rcj));case 3:return o=this.cache.filter((function(e){return e["清单编码"]==a}))[0],e.abrupt("return",(0,n.C)(o.rcj));case 5:case"end":return e.stop()}}),e,this)}))),function(e,r,t,n){return A.apply(this,arguments)})},{key:"generateDingercj",value:(x=o(c().mark((function e(r,t,i,a,s,o){var u,h,l,f;return c().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["清单编码"]==a}))[0],h=u._children.filter((function(e){return e["清单编码"]==s}))[0],e.abrupt("return",[(0,n.C)(h.dercj),h.fuzhuEnable]);case 6:return l=this.cache.filter((function(e){return e["清单编码"]==a}))[0],f=l._children.filter((function(e){return e["清单编码"]==s}))[0],e.abrupt("return",[(0,n.C)(f.dercj),f.fuzhuEnable]);case 9:case"end":return e.stop()}}),e,this)}))),function(e,r,t,n,i,a){return x.apply(this,arguments)})},{key:"generateQingdanTuijian",value:(_=o(c().mark((function e(r,t,n,i){var a,s;return c().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((a=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,a.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 _.apply(this,arguments)})},{key:"generateZjcs",value:(k=o(c().mark((function e(r,t){var n,i;return c().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 k.apply(this,arguments)})},{key:"generateDjcs",value:(v=o(c().mark((function e(r,t){var i,a;return c().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 a=e.sent,this.processDjcsmingxi(a),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 v.apply(this,arguments)})},{key:"generateFiles",value:(g=o(c().mark((function e(){var r,t;return c().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:(b=o(c().mark((function e(){var r,t;return c().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 b.apply(this,arguments)})},{key:"generatePeibiXilie",value:(y=o(c().mark((function e(r){var t,n;return c().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 y.apply(this,arguments)})},{key:"generatePeibishu",value:(j=o(c().mark((function e(r){var t,n;return c().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 j.apply(this,arguments)})},{key:"generateDingeshu",value:(m=o(c().mark((function e(r){var t,n;return c().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:(p=o(c().mark((function e(r,t){var n,i;return c().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 p.apply(this,arguments)})},{key:"generateSingleDingeXilie",value:(d=o(c().mark((function e(r,t){var n,i;return c().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 d.apply(this,arguments)})},{key:"save",value:(f=o(c().mark((function e(){var r,t;return c().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 f.apply(this,arguments)})},{key:"save_djcs",value:(l=o(c().mark((function e(){var r,t;return c().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 l.apply(this,arguments)})},{key:"applyFL",value:(h=o(c().mark((function e(r,t){var n,i;return c().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(c().mark((function e(r,t,n,i,a,s){var o,u,h,l,f;return c().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:a,jiage:s,glf:o,lr:u,bz:h})});case 6:if((l=e.sent).ok){e.next=11;break}console.error("error"),e.next=16;break;case 11:return e.next=13,l.json();case 13:return f=e.sent,this.clearCache(),e.abrupt("return",f);case 16:case"end":return e.stop()}}),e,this)}))),function(e,r,t,n,i,a){return s.apply(this,arguments)})},{key:"updateZjcs",value:(a=o(c().mark((function e(r,t,n){var i,a;return c().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 a=e.sent,e.abrupt("return",a);case 11:case"end":return e.stop()}}),e,this)}))),function(e,r,t){return a.apply(this,arguments)})},{key:"cankao",value:(t=o(c().mark((function e(){var r,t;return c().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],a=Number(i["数量"]),c=i.dercj,s=1;s<c.length;s++){var o=(0,n.C)(c[s]);o[10]=a*Number(o[10]),o[11]=a*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 l in r){for(var f=r[l],d=0,p=Number(f[0][5]),m=0;m<f.length;m++)d+=Number(f[m][10]);var j=[f[0][0],f[0][1],f[0][2],f[0][3],f[0][4],p,f[0][6],f[0][7],f[0][8],f[0][9],d,d*p,f[0][12],f[0][13],f[0][14],f[0][15]];h.push(j)}for(var y=0,b=0;b<h.length;b++)"工日"==h[b][4]&&(y+=h[b][10]);h.sort((function(e,r){return Number(e[8])-Number(r[8])})),e.rcj=[["ID","人材机编码","名称","规格型号","单位","单价","产地","供应厂商","人材机类别","甲供标志","含量","合价","暂估价标志","主要材料标志","主材标志","设备标志"]].concat(h),e["综合人工工日"]=y,e["综合单价"]=0,e["合价"]=0,e["人工费"]=0,e["主材费"]=0,e["设备费"]=0,e["辅材费"]=0,e["材料费"]=0,e["机械费"]=0,e["管理费"]=0,e["利润"]=0;for(var g=0;g<e._children.length;g++)e["综合单价"]+=Number(e._children[g]["数量"])*Number(e._children[g]["综合单价"]),e["合价"]+=Number(e._children[g]["合价"]),e["人工费"]+=Number(e._children[g]["数量"])*Number(e._children[g]["人工费"]),e["主材费"]+=Number(e._children[g]["数量"])*Number(e._children[g]["主材费"]),e["设备费"]+=Number(e._children[g]["数量"])*Number(e._children[g]["设备费"]),e["辅材费"]+=Number(e._children[g]["数量"])*Number(e._children[g]["辅材费"]),e["材料费"]+=Number(e._children[g]["数量"])*Number(e._children[g]["材料费"]),e["机械费"]+=Number(e._children[g]["数量"])*Number(e._children[g]["机械费"]),e["管理费"]+=Number(e._children[g]["数量"])*Number(e._children[g]["管理费"]),e["利润"]+=Number(e._children[g]["数量"])*Number(e._children[g]["利润"]);return e}},{key:"summarize_one",value:function(e){for(var r={},t=0;t<e._children.length;t++)for(var i=e._children[t],a=Number(i["数量"]),c=i.dercj,s=1;s<c.length;s++){var o=(0,n.C)(c[s]);o[10]=a*Number(o[10]),o[11]=a*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 l in r){for(var f=r[l],d=0,p=Number(f[0][5]),m=0;m<f.length;m++)d+=Number(f[m][10]);var j=[f[0][0],f[0][1],f[0][2],f[0][3],f[0][4],p,f[0][6],f[0][7],f[0][8],f[0][9],d,d*p,f[0][12],f[0][13],f[0][14],f[0][15]];h.push(j)}for(var y=0,b=0;b<h.length;b++)"工日"==h[b][4]&&(y+=h[b][10]);h.sort((function(e,r){return Number(e[8])-Number(r[8])})),e.rcj=[["ID","人材机编码","名称","规格型号","单位","单价","产地","供应厂商","人材机类别","甲供标志","含量","合价","暂估价标志","主要材料标志","主材标志","设备标志"]].concat(h),e["综合人工工日"]=y,e["综合单价"]=0,e["合价"]=0,e["人工费"]=0,e["主材费"]=0,e["设备费"]=0,e["辅材费"]=0,e["材料费"]=0,e["机械费"]=0,e["管理费"]=0,e["利润"]=0;for(var g=0;g<e._children.length;g++)e["综合单价"]+=Number(e._children[g]["数量"])*Number(e._children[g]["综合单价"]),e["合价"]+=Number(e._children[g]["合价"]),e["人工费"]+=Number(e._children[g]["数量"])*Number(e._children[g]["人工费"]),e["主材费"]+=Number(e._children[g]["数量"])*Number(e._children[g]["主材费"]),e["设备费"]+=Number(e._children[g]["数量"])*Number(e._children[g]["设备费"]),e["辅材费"]+=Number(e._children[g]["数量"])*Number(e._children[g]["辅材费"]),e["材料费"]+=Number(e._children[g]["数量"])*Number(e._children[g]["材料费"]),e["机械费"]+=Number(e._children[g]["数量"])*Number(e._children[g]["机械费"]),e["管理费"]+=Number(e._children[g]["数量"])*Number(e._children[g]["管理费"]),e["利润"]+=Number(e._children[g]["数量"])*Number(e._children[g]["利润"]);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]["清单编码"],a=this.cache_djcs.map((function(r){if(r["清单编码"]==i){var t=(0,n.C)(r),a=t._children.filter((function(r){return r.key!=e}));return t._children=a,t}return r})),c=this.summarize_djcs(a);return this.push_op_djcs(c),this.cache_djcs=(0,n.C)(c),(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]["清单编码"],a=this.cache.map((function(r){if(r["清单编码"]==i){var t=(0,n.C)(r),a=t._children.filter((function(r){return r.key!=e}));return t._children=a,t}return r})),c=this.summarize(a);return this.push_op(c),this.cache=(0,n.C)(c),(0,n.C)(this.cache)}},{key:"updateDercj_djcs_",value:function(e,r,t){console.log("data updated");var i=!1,a=this.cache_djcs.filter((function(r){return r._children.filter((function(r){return r.key==e})).length>0}))[0],c=a._children.filter((function(r){return r.key==e}))[0];if(c.hasOwnProperty("rcjdg")){for(var s=1;s<c.rcjdg.length;s++)c.rcjdg[s][5]=r[s][5],c.rcjdg[s][2]==r[s][2]||(i=!0);if(c.fuzhuEnable&&c.hasOwnProperty("fuzhu"))for(var o=1;o<c.rcjdg.length;o++){for(var u=Number(c.rcjdg[o][10]),h=0;h<c.fuzhu.length;h++){var l=c.fuzhu[h],f=l[0];if((0,n.Q4)(c.rcjdg[o][1],f))if("系数"==l[2])u*=Number(l[3]);else if("含量"==l[2])u=Number(l[3]);else{if("调整"!=l[2])throw new Error("无法处理的附注".concat(l[2]));u+=Number(l[3])}}c.dercj[o][2]=r[o][2],c.dercj[o][1]=r[o][1],c.dercj[o][5]=c.rcjdg[o][5],c.dercj[o][10]=u,c.dercj[o][11]=Number(c.dercj[o][5])*u}else if(c.fuzhuEnable&&!c.hasOwnProperty("fuzhu"))for(var d=1;d<c.rcjdg.length;d++){var p=Number(c.rcjdg[d][10]);c.dercj[d][2]=r[d][2],c.dercj[d][1]=r[d][1],c.dercj[d][5]=c.rcjdg[d][5],c.dercj[d][10]=p,c.dercj[d][11]=Number(c.dercj[d][5])*p}else c.dercj=(0,n.C)(r);r=c.dercj}else c.dercj=(0,n.C)(r),r=c.dercj;for(var m=1;m<r.length;m++)r[m][11]=Number(r[m][10])*Number(r[m][5]);for(var j=0,y=0,b=0,g=0,v=1;v<r.length;v++)j+=Number(r[v][11]),1==Number(r[v][8])&&(y+=Number(r[v][11])),2==Number(r[v][8])&&(g+=Number(r[v][11])),3==Number(r[v][8])&&(b+=Number(r[v][11]));console.log("sum=".concat(j));for(var k=Number(a["数量"]),_=0;_<a._children.length;_++)if(a._children[_].key==e){var x=Number(a._children[_]["数量"]),A=a._children[_]["清单编码"];a._children[_]["辅材费"]=g,a._children[_]["材料费"]=g,a._children[_]["人工费"]=y,a._children[_]["主材费"]=0,a._children[_]["设备费"]=0,a._children[_]["机械费"]=b,A.startsWith("D")?(a._children[_]["管理费"]=0,a._children[_]["利润"]=0):0==this.qufeiEntry["备注"].length?(a._children[_]["管理费"]=(y+b)*Number(this.qufeiEntry["管理费(%)"])/Number(100),a._children[_]["利润"]=(y+b)*Number(this.qufeiEntry["利润(%)"])/Number(100)):(a._children[_]["管理费"]=y*Number(this.qufeiEntry["管理费(%)"])/Number(100),a._children[_]["利润"]=y*Number(this.qufeiEntry["利润(%)"])/Number(100)),a._children[_]["综合单价"]=j+a._children[_]["管理费"]+a._children[_]["利润"],a._children[_]["合价"]=a._children[_]["综合单价"]*k*x,a._children[_].dercj=(0,n.C)(r),a._children[_]["清单编码"]=(0,n.i5)(A,t,i)}}},{key:"updateDercj_",value:function(e,r,t){console.log("data updated");var i=!1,a=this.cache.filter((function(r){return r._children.filter((function(r){return r.key==e})).length>0}))[0],c=a._children.filter((function(r){return r.key==e}))[0];if(c.hasOwnProperty("rcjdg")){for(var s=1;s<c.rcjdg.length;s++)c.rcjdg[s][5]=r[s][5],c.rcjdg[s][2]==r[s][2]||(i=!0);if(c.fuzhuEnable&&c.hasOwnProperty("fuzhu"))for(var o=1;o<c.rcjdg.length;o++){for(var u=Number(c.rcjdg[o][10]),h=0;h<c.fuzhu.length;h++){var l=c.fuzhu[h],f=l[0];if((0,n.Q4)(c.rcjdg[o][1],f))if("系数"==l[2])u*=Number(l[3]);else if("含量"==l[2])u=Number(l[3]);else{if("调整"!=l[2])throw new Error("无法处理的附注".concat(l[2]));u+=Number(l[3])}}c.dercj[o][2]=r[o][2],c.dercj[o][1]=r[o][1],c.dercj[o][5]=c.rcjdg[o][5],c.dercj[o][10]=u,c.dercj[o][11]=Number(c.dercj[o][5])*u}else if(c.fuzhuEnable&&!c.hasOwnProperty("fuzhu"))for(var d=1;d<c.rcjdg.length;d++){var p=Number(c.rcjdg[d][10]);c.dercj[d][2]=r[d][2],c.dercj[d][1]=r[d][1],c.dercj[d][5]=c.rcjdg[d][5],c.dercj[d][10]=p,c.dercj[d][11]=Number(c.dercj[d][5])*p}else c.dercj=(0,n.C)(r);r=c.dercj}else c.dercj=(0,n.C)(r),r=c.dercj;for(var m=1;m<r.length;m++)r[m][11]=Number(r[m][10])*Number(r[m][5]);for(var j=0,y=0,b=0,g=0,v=1;v<r.length;v++)j+=Number(r[v][11]),1==Number(r[v][8])&&(y+=Number(r[v][11])),2==Number(r[v][8])&&(g+=Number(r[v][11])),3==Number(r[v][8])&&(b+=Number(r[v][11]));console.log("sum=".concat(j));for(var k=Number(a["数量"]),_=0;_<a._children.length;_++)if(a._children[_].key==e){var x=Number(a._children[_]["数量"]),A=a._children[_]["清单编码"];a._children[_]["辅材费"]=g,a._children[_]["材料费"]=g,a._children[_]["人工费"]=y,a._children[_]["主材费"]=0,a._children[_]["设备费"]=0,a._children[_]["机械费"]=b,A.startsWith("D")?(a._children[_]["管理费"]=0,a._children[_]["利润"]=0):0==this.qufeiEntry["备注"].length?(a._children[_]["管理费"]=(y+b)*Number(this.qufeiEntry["管理费(%)"])/Number(100),a._children[_]["利润"]=(y+b)*Number(this.qufeiEntry["利润(%)"])/Number(100)):(a._children[_]["管理费"]=y*Number(this.qufeiEntry["管理费(%)"])/Number(100),a._children[_]["利润"]=y*Number(this.qufeiEntry["利润(%)"])/Number(100)),a._children[_]["综合单价"]=j+a._children[_]["管理费"]+a._children[_]["利润"],a._children[_]["合价"]=a._children[_]["综合单价"]*k*x,a._children[_].dercj=(0,n.C)(r),a._children[_]["清单编码"]=(0,n.i5)(A,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],a=i["清单编码"],c=(0,n.Gu)(a),s=i.dercj,o=!1,u=1;u<r.length;u++){var h=s[u][10],l=r[u][10];if(!(Number(h)-Number(l)<1e-4&&Number(h)-Number(l)>-1e-4)){o=!0;break}}o&&(i.fuzhuEnable=!1),this.updateDercj_(e,r,c);var f=this.cache.map((function(e){return e.key==t.key?t:e})),d=this.summarize(f);return this.push_op(d),this.cache=(0,n.C)(d),(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],a=i["清单编码"],c=(0,n.Gu)(a),s=i.dercj,o=!1,u=1;u<r.length;u++){var h=s[u][10],l=r[u][10];if(!(Number(h)-Number(l)<1e-4&&Number(h)-Number(l)>-1e-4)){o=!0;break}}o&&(i.fuzhuEnable=!1),this.updateDercj_djcs_(e,r,c);var f=this.cache_djcs.map((function(e){return e.key==t.key?t:e})),d=this.summarize_djcs(f);return this.push_op_djcs(d),this.cache_djcs=(0,n.C)(d),(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 a=i._children.filter((function(r){return r.key==e}))[0];a.hasOwnProperty("rcjdg"),a.fuzhu=(0,n.C)(r),this.updateDercj_(e,a.dercj,t);var c=this.cache.map((function(e){return e.key==i.key?i:e})),s=this.summarize(c);return this.push_op(s),this.cache=(0,n.C)(s),[(0,n.C)(this.cache),(0,n.C)(a.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 a=i._children.filter((function(r){return r.key==e}))[0];a.hasOwnProperty("rcjdg"),a.fuzhu=(0,n.C)(r),this.updateDercj_djcs_(e,a.dercj,t);var c=this.cache_djcs.map((function(e){return e.key==i.key?i:e})),s=this.summarize_djcs(c);return this.push_op_djcs(s),this.cache_djcs=(0,n.C)(s),[(0,n.C)(this.cache_djcs),(0,n.C)(a.dercj)]}},{key:"huan",value:function(e,r,t,i,a){var c=this.cache.filter((function(e){return e._children.filter((function(e){return e.key==a})).length>0}))[0]._children.filter((function(e){return e.key==a}))[0],s=(0,n.C)(c.dercj);return s[e][1]=r,s[e][2]=t,s[e][5]=i,this.updateDercj(a,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],a=i["数量"];if(Number(a)-Number(e)<1e-4&&Number(a)-Number(e)>-1e-4)return[!1,null];console.log("shuliang update"),i["数量"]=e,i["合价"]=Number(t["数量"])*Number(i["综合单价"])*Number(i["数量"]);var c=this.cache.map((function(e){return e.key==t.key?t:e})),s=this.summarize(c);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],a=i["数量"];if(Number(a)-Number(e)<1e-4&&Number(a)-Number(e)>-1e-4)return[!1,null];console.log("shuliang update"),i["数量"]=e,i["合价"]=Number(t["数量"])*Number(i["综合单价"])*Number(i["数量"]);var c=this.cache_djcs.map((function(e){return e.key==t.key?t:e})),s=this.summarize_djcs(c);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,a=Object.keys(t.DEBH)[0],c=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 l=(0,i.A)();c._children.push({操作:"",序号:null,清单编码:t.DEBH[a],名称:t.GCLMC[a],项目特征:null,计算规则:null,单位:t.DW[a],数量:"1",综合单价:"0",合价:"0",人工费:"0",主材费:"0",设备费:"0",辅材费:"0",材料费:"0",机械费:"0",管理费:"0",利润:"0",暂估价:null,综合人工工日:null,备注:null,dercj:s,rcjdg:(0,n.C)(s),key:l,fuzhuEnable:!0}),this.updateDercj_djcs_(l,s,[]);var f=this.summarize_djcs(this.cache_djcs);return this.push_op_djcs((0,n.C)(f)),this.cache_djcs=(0,n.C)(f),[!0,(0,n.C)(this.cache_djcs),l]}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,a=Object.keys(t.DEBH)[0],c=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 l=(0,i.A)();c._children.push({操作:"",序号:null,清单编码:t.DEBH[a],名称:t.GCLMC[a],项目特征:null,计算规则:null,单位:t.DW[a],数量:"1",综合单价:"0",合价:"0",人工费:"0",主材费:"0",设备费:"0",辅材费:"0",材料费:"0",机械费:"0",管理费:"0",利润:"0",暂估价:null,综合人工工日:null,备注:null,dercj:s,rcjdg:(0,n.C)(s),key:l,fuzhuEnable:!0}),this.updateDercj_(l,s,[]);var f=this.summarize(this.cache);return this.push_op((0,n.C)(f)),this.cache=(0,n.C)(f),[!0,(0,n.C)(this.cache),l]}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],a=t["单位"],c=t["名称"];t._children.push({操作:"",序号:null,清单编码:r,名称:c,项目特征:null,计算规则:null,单位:a,数量:"1",综合单价:"",合价:"",人工费:"0",主材费:"0",设备费:"0",辅材费:"",材料费:"",机械费:"0",管理费:"0",利润:"0",暂估价:null,综合人工工日:null,备注:null,dercj:[["ID","人材机编码","名称","规格型号","单位","单价","产地","供应厂商","人材机类别","甲供标志","含量","合价","暂估价标志","主要材料标志","主材标志","设备标志"],["",r,c,"",a,"","","","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],a=t["单位"],c=t["名称"];t._children.push({序号:null,清单编码:r,名称:c,项目特征:null,计算规则:null,单位:a,数量:"1",综合单价:"",合价:"",人工费:"0",主材费:"0",设备费:"0",辅材费:"",材料费:"",机械费:"0",管理费:"0",利润:"0",暂估价:null,综合人工工日:null,备注:null,dercj:[["ID","人材机编码","名称","规格型号","单位","单价","产地","供应厂商","人材机类别","甲供标志","含量","合价","暂估价标志","主要材料标志","主材标志","设备标志"],["",r,c,"",a,"","","","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,a,s,h,l,f,d,p,m,j,y,b,g,v,k,_,x,A,w,N,C,O,S,E,z,P,J,D,T,B,q,I,Q,G,L,U,F,R,M,W,K,H,V,Y}())}}]);
|