/*! 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=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=0;--t){var n=this.tryEntries[t];if(n[0]>-1&&n[0]<=this.prev&&this.prev=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;t0){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;s0}))[0],a=c._children.filter((function(r){return r.key==e}))[0];if(a.hasOwnProperty("rcjdg")){for(var s=1;s0}))[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-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-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;o0){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;o0){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;tr&&(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;tr&&(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="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}}}]);