(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1d4ec5b6"],{"0196":function(e,t,a){var i=a("5a88"),n=a("bbf0");function r(e){this.mode=n.BYTE,this.data=i.from(e)}r.getBitsLength=function(e){return 8*e},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(var t=0,a=this.data.length;th)&&(r[l]=h,g.push(l,h),n[l]=s));if("undefined"!==typeof a&&"undefined"===typeof r[a]){var m=["Could not find a path from ",t," to ",a,"."].join("");throw new Error(m)}return n},extract_shortest_path_from_predecessor_list:function(e,t){var a=[],i=t;while(i)a.push(i),e[i],i=e[i];return a.reverse(),a},find_path:function(e,t,a){var n=i.single_source_shortest_paths(e,t,a);return i.extract_shortest_path_from_predecessor_list(n,a)},PriorityQueue:{make:function(e){var t,a=i.PriorityQueue,n={};for(t in e=e||{},a)a.hasOwnProperty(t)&&(n[t]=a[t]);return n.queue=[],n.sorter=e.sorter||a.default_sorter,n},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var a={value:e,cost:t};this.queue.push(a),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=i},"1c35":function(e,t,a){e.exports=a("e1d4")(800)},"26a2":function(e,t,a){},2732:function(e,t,a){var i=a("5a88"),n=a("699e");t.mul=function(e,t){for(var a=i.alloc(e.length+t.length-1),r=0;r=0){for(var r=a[0],o=0;o=1&&e<=40}},"2f3a":function(e,t,a){var i=a("bbf0"),n=a("7bf0");function r(e){this.mode=i.KANJI,this.data=e}r.getBitsLength=function(e){return 13*e},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){var t;for(t=0;t=33088&&a<=40956)a-=33088;else{if(!(a>=57408&&a<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");a-=49472}a=192*(a>>>8&255)+(255&a),e.put(a,13)}},e.exports=r},"34fc":function(e,t,a){var i=a("7a43"),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case i.L:return n[4*(e-1)+0];case i.M:return n[4*(e-1)+1];case i.Q:return n[4*(e-1)+2];case i.H:return n[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case i.L:return r[4*(e-1)+0];case i.M:return r[4*(e-1)+1];case i.Q:return r[4*(e-1)+2];case i.H:return r[4*(e-1)+3];default:return}}},4006:function(e,t,a){var i=a("45be");function n(e,t){var a=e.a/255,i=t+'="'+e.hex+'"';return a<1?i+" "+t+'-opacity="'+a.toFixed(2).slice(1)+'"':i}function r(e,t,a){var i=e+t;return"undefined"!==typeof a&&(i+=" "+a),i}function o(e,t,a){for(var i="",n=0,o=!1,s=0,l=0;l0&&u>0&&e[l-1]||(i+=o?r("M",u+a,.5+d+a):r("m",n,0),n=0,o=!1),u+1':"",f="',h='viewBox="0 0 '+u+" "+u+'"',c=r.width?'width="'+r.width+'" height="'+r.width+'" ':"",p=''+d+f+"\n";return"function"===typeof a&&a(null,p),p}},4146:function(e,t,a){var i=a("45be");function n(e,t,a){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=a,t.width=a,t.style.height=a+"px",t.style.width=a+"px"}function r(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}t.render=function(e,t,a){var o=a,s=t;"undefined"!==typeof o||t&&t.getContext||(o=t,t=void 0),t||(s=r()),o=i.getOptions(o);var l=i.getImageWidth(e.modules.size,o),u=s.getContext("2d"),d=u.createImageData(l,l);return i.qrToImageData(d.data,e,o),n(u,s,l),u.putImageData(d,0,0),s},t.renderToDataURL=function(e,a,i){var n=i;"undefined"!==typeof n||a&&a.getContext||(n=a,a=void 0),n||(n={});var r=t.render(e,a,n),o=n.type||"image/png",s=n.rendererOpts||{};return r.toDataURL(o,s.quality)}},"45be":function(e,t){function a(e){if("number"===typeof e&&(e=e.toString()),"string"!==typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");var a=parseInt(t.join(""),16);return{r:a>>24&255,g:a>>16&255,b:a>>8&255,a:255&a,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var t="undefined"===typeof e.margin||null===e.margin||e.margin<0?4:e.margin,i=e.width&&e.width>=21?e.width:void 0,n=e.scale||4;return{width:i,scale:i?4:n,margin:t,color:{dark:a(e.color.dark||"#000000ff"),light:a(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,a){var i=t.getScale(e,a);return Math.floor((e+2*a.margin)*i)},t.qrToImageData=function(e,a,i){for(var n=a.modules.size,r=a.modules.data,o=t.getScale(n,i),s=Math.floor((n+2*i.margin)*o),l=i.margin*o,u=[i.color.light,i.color.dark],d=0;d=l&&f>=l&&d=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function l(e){return e!==e}function u(e,t){var a;return o.TYPED_ARRAY_SUPPORT?(a=new Uint8Array(t),a.__proto__=o.prototype):(a=e,null===a&&(a=new o(t)),a.length=t),a}function d(e,t){var a=u(e,t<0?0:0|s(t));if(!o.TYPED_ARRAY_SUPPORT)for(var i=0;i55295&&a<57344){if(!n){if(a>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(o+1===i){(t-=3)>-1&&r.push(239,191,189);continue}n=a;continue}if(a<56320){(t-=3)>-1&&r.push(239,191,189),n=a;continue}a=65536+(n-55296<<10|a-56320)}else n&&(t-=3)>-1&&r.push(239,191,189);if(n=null,a<128){if((t-=1)<0)break;r.push(a)}else if(a<2048){if((t-=2)<0)break;r.push(a>>6|192,63&a|128)}else if(a<65536){if((t-=3)<0)break;r.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return r}function m(e){if(o.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var t=e.length;return 0===t?0:g(e).length}function y(e,t,a,i){for(var n=0;n=t.length||n>=e.length)break;t[n+a]=e[n]}return n}function v(e,t,a,i){return y(g(t,e.length-a),e,a,i)}function b(e,t,a,i){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?c(e,t,a,i):"string"===typeof t?f(e,t,a):p(e,t)}o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),o.prototype.write=function(e,t,a){void 0===t||void 0===a&&"string"===typeof t?(a=this.length,t=0):isFinite(t)&&(t|=0,isFinite(a)?a|=0:a=void 0);var i=this.length-t;if((void 0===a||a>i)&&(a=i),e.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return v(this,e,t,a)},o.prototype.slice=function(e,t){var a,i=this.length;if(e=~~e,t=void 0===t?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--n)e[n+t]=this[n+a];else if(r<1e3||!o.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,a=void 0===a?this.length:a>>>0,e||(e=0),"number"===typeof e)for(n=t;n=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){for(var t=e.size,i=0,n=0,r=0,o=null,s=null,l=0;l=5&&(i+=a.N1+(n-5)),o=d,n=1),d=e.get(u,l),d===s?r++:(r>=5&&(i+=a.N1+(r-5)),s=d,r=1)}n>=5&&(i+=a.N1+(n-5)),r>=5&&(i+=a.N1+(r-5))}return i},t.getPenaltyN2=function(e){for(var t=e.size,i=0,n=0;n=10&&(1488===n||93===n)&&i++,r=r<<1&2047|e.get(s,o),s>=10&&(1488===r||93===r)&&i++}return i*a.N3},t.getPenaltyN4=function(e){for(var t=0,i=e.data.length,n=0;n=0&&e.bit<4},t.from=function(e,i){if(t.isValid(e))return e;try{return a(e)}catch(n){return i}}},"7ba0":function(e,t){function a(){this.buffer=[],this.length=0}a.prototype={get:function(e){var t=Math.floor(e/8);return 1===(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var a=0;a>>t-a-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=a},"7bf0":function(e,t){var a,i=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return i[e]},t.getBCHDigit=function(e){var t=0;while(0!==e)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!==typeof e)throw new Error('"toSJISFunc" is not a valid function.');a=e},t.isKanjiModeEnabled=function(){return"undefined"!==typeof a},t.toSJIS=function(e){return a(e)}},"8d23":function(e,t,a){var i=a("5a88"),n=a("2732"),r=a("1c35").Buffer;function o(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},o.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var t=i.alloc(this.degree),a=r.concat([e,t],e.length+this.degree),o=n.mod(a,this.genPoly),s=this.degree-o.length;if(s>0){var l=i.alloc(this.degree);return o.copy(l,s),l}return o},e.exports=o},"903b":function(e,t,a){"use strict";a("c93c")},"924f":function(e,t,a){var i=a("7bf0").getSymbolSize,n=7;t.getPositions=function(e){var t=i(e);return[[0,0],[t-n,0],[0,t-n]]}},9582:function(e,t,a){var i=a("7bf0"),n=1335,r=21522,o=i.getBCHDigit(n);t.getEncodedBits=function(e,t){var a=e.bit<<3|t,s=a<<10;while(i.getBCHDigit(s)-o>=0)s^=n<=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==a.return||a.return()}finally{if(s)throw r}}}}function _(e,t){if(e){if("string"===typeof e)return C(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=new Array(t);a=1&&e!=t&&this.getSubData(this,this.refId)},deep:!0,immediate:!0},templateInfo:{handler:function(e,t){var a=this;if(e&&e.id){var i=this.$loading(this.options),n=this;if(n.templateInfo=e,n.templateInfo.displayField)for(var r=y["a"].parseToJson(n.templateInfo.displayField),o=0;o0&&(u.selectList=n.dataView.selectList),u.refIdValue=n.dataView.refIdValue),this.parameterqQuerys){var f=JSON.parse(v["Base64"].decode(decodeURIComponent(this.parameterqQuerys)));u.pagination.querys=f}var h=this.buildDefaultQuerys();if(h.length>0&&(u.pagination.querys?u.pagination.querys.concat(h):u.pagination.querys=h),this.templateInfo.sortField){for(var c=JSON.parse(this.templateInfo.sortField),p=[],g=0;g0)for(var n=0;n0)for(n=0;n0){var i=t.data.rows[0].id,n="";n="FOLLOW"==r?"/reportModuleInstTaskRead/"+i+"/FOLLOW/"+a.defKey+"/"+a.templateKey:"COMMU"==r?"/reportModuleInst/"+i+"/0/"+a.defKey+"/true/"+a.templateKey:"/reportModuleInstRead/"+e.bpm_proc_inst_id_+"/read/"+i+"/"+a.defKey+"/"+a.templateKey,a.$router.push(n)}}))}else if("doneRead"==t){var o={page:1,pageSize:10,showTotal:"true"};T["a"].post("${bpmRunTime}/runtime/task/v1/getNoticeDoneReadList",{pageBean:o,querys:[{property:"proc_inst_id_",value:e.bpm_proc_inst_id_,operation:"EQUAL",relation:"AND"}]}).then((function(t){if(t.data.rows&&t.data.rows.length>0){var i=t.data.rows[0].id;a.$router.push("/reportModuleInstDone/"+e.bpm_proc_inst_id_+"/read/done/"+i+"/"+a.defKey+"/"+a.templateKey)}}))}else if("myRead"==t){var s={page:1,pageSize:10,showTotal:"true"};T["a"].post("${bpmRunTime}/runtime/task/v1/getMyNoticeReadList",{pageBean:s,querys:[{property:"proc_inst_id_",value:e.bpm_proc_inst_id_,operation:"EQUAL",relation:"AND"}]}).then((function(t){if(t.data.rows&&t.data.rows.length>0){var i=t.data.rows[0].id;a.$router.push("/reportModuleInstMyRead/"+e.bpm_proc_inst_id_+"/"+i+"/myRead/"+a.defKey+"/"+a.templateKey)}}))}else"myDelegate"==t&&this.$router.push("/reportModuleInstRead/"+e.bpm_proc_inst_id_+"/delegate/"+this.defKey+"/"+this.templateKey)},downloadAllQRCode:function(e,t,a,i,n){var r=this;this.QRCodePattern=n;var o=this.$refs.multipleTemplateTable.selection;if(0!==o.length){this.loading=!0;v["Base64"].encode(this.$store.state.login.currentUser.account);for(var s=this.$store.state.login.currentUser.token,l=window.context.mobile,u="",d=new JSZip,f=d.folder("images"),h=[],c=0;c0?this.getConditionQuery():this.getQueryFilter(),e.pagination&&e.pagination&&e.pagination.querys){var t=[],a={};for(var i in e.pagination.querys.forEach((function(e){if(!e.value||"BETWEEN"==e.operation&&e.value.constructor!=Array){if(e.value){var i=e;a[e.property]&&(i=a[e.property],i.value=[i.value],i.value.push(e.value)),a[e.property]=i}}else t.push(e)})),a)t.push(a[i]);e.pagination.querys=t}return e},search:function(e){var t=this.$loading(this.options),a={};if("find"==e&&(this.pagination.page=1),a=this.formType?this.getQueryFilter():$(".search-query").length>0?this.getConditionQuery():this.getQueryFilter(),a.pagination&&a.pagination.querys){var i=[],n={};for(var r in a.pagination.querys.forEach((function(e){if(!e.value||"BETWEEN"==e.operation&&e.value.constructor!=Array){if(e.value){var t=e;n[e.property]&&(t=n[e.property],t.value=[t.value],t.value.push(e.value)),n[e.property]=t}}else i.push(e)})),n)i.push(n[r]);a.pagination.querys=i,a.pagination.querys=a.pagination.querys?a.pagination.querys.concat(this.treeQuerys):this.treeQuerys}this.treeQuerys&&this.treeQuerys.length>0&&(a.pagination.querys=a.pagination.querys?a.pagination.querys.concat(this.treeQuerys):this.treeQuerys),this.dataView&&(this.handelBindFiledValua(),a.refIdValue=this.dataView.refIdValue,this.dataView.selectList&&this.dataView.selectList.length>0&&(a.selectList=this.dataView.selectList));var o=this;o.isJoinFlow&&(a.isJoinFlow=!0,a.taskType=o.taskType,a.defKey=o.defKey),$.isEmptyObject(this.searchForm),this.$store.dispatch("form/getBpmTemplateByPagination",a).then((function(e){o.rows=e.data.rows,o.total=e.data.total,o.pagination.page=e.data.page,o.pagination.pageSize=e.data.pageSize,t.close()}))},getQueryFilter:function(){var e=this,t=this.getSearchItems(),a=this.getFieldType(),i=this.getSpecialMap(),n=[],r={},o={pageBean:this.pagination},s={templateId:this.templateInfo.id};if(s.pagination=o,$.isEmptyObject(this.searchForm))return s;var l=function(r){if("undefined"!=typeof e.searchForm[r]&&""!=e.searchForm[r]&&null!=e.searchForm[r])if(e.searchForm[r]instanceof Array)for(var o=0;o0){var d=1===this.templateInfo.isExternal?"":"F_";Object.keys(this.filters).forEach((function(t){var a=e.filters[t],i={property:d+t,value:a[0],group:"filter",relation:"AND"};1==a.length?(i.operation="EQUAL",n.push(i)):a.length>1&&(i.operation="IN",i.value=a,n.push(i))}))}if(r={pageBean:this.pagination,querys:n},this.templateInfo.sortField){for(var f=JSON.parse(this.templateInfo.sortField),h=[],c=0;c0&&(r.sorter=this.sorter),s.pagination=r,s},clearQueryByGroupName:function(e,t){var a=[];e&&e.forEach((function(e){e.group==t&&a.push(e)})),a.forEach((function(t){e.remove(t)}))},handleSortChange:function(e){e.order?this.sorter=[{property:e.prop,direction:"ascending"==e.order?"ASC":"DESC"}]:this.sorter=null,this.search()},handleFilterChange:function(e){var t=this;this.filters=A(A({},this.filters),e),Object.keys(this.filters).forEach((function(e){t.filters[e]&&0!=t.filters[e].length||delete t.filters[e]})),this.search()},getSearchItems:function(){var e=$(".search-item"),t={},a={like:"LIKE",equal:"EQUAL",between:"BETWEEN",left_like:"LEFT_LIKE",right_like:"RIGHT_LIKE"};if(e)for(var i=0;i0){var s=1===this.templateInfo.isExternal?"":"F_";Object.keys(this.filters).forEach((function(t){var a=e.filters[t],n={property:s+t,value:a[0],group:"filter",relation:"AND"};1==a.length?(n.operation="EQUAL",i.push(n)):a.length>1&&(n.operation="IN",n.value=a,i.push(n))}))}if(""==this.queryForm.queryData)return n={pageBean:this.pagination,querys:i},o.pagination=n,o;if("undefined"!=typeof $($(t[0]).children()[0]).attr("ht-quick-search")){a=$($(t[0]).children()[0]).attr("ht-quick-search");var l,u=a.split(","),d=F(u);try{for(d.s();!(l=d.n()).done;){var f=l.value;i.push({property:f,value:this.queryForm.queryData,group:"main",operation:"LIKE",relation:"OR"})}}catch(h){d.e(h)}finally{d.f()}}return n={pageBean:this.pagination,querys:i},o.pagination=n,o},advanced:function(){this.formType=!this.formType,this.formType?(this.incons="el-icon-arrow-up",this.queryForm.queryData=""):(this.incons="el-icon-arrow-down",this.searchForm={})},searchEnterFun:function(e){var t=window.event?e.keyCode:e.which;13==t&&this.search("find")},reset:function(e){if(this.queryForm.queryData="",this.templateInfo.conditionField)for(var t=y["a"].parseToJson(this.templateInfo.conditionField),a=0;a0){for(var h=[],c=0;c0){var n=i.urlParams,r="";if(n.forEach((function(e){r&&(r+="&"),r=r+e.name+"="+t[e.field]})),r)return e=-1!=e.indexOf("?")?e+"&"+r:e+"?"+r,e}return e}}))}return e},viewReport:function(e,t,a){var i=JSON.parse(v["Base64"].decode(t)),n=i.conditionField,r=[];n&&n.length>0&&n.forEach((function(t){t.parameter&&r.push({property:t.key,value:e[t.parameter],group:"main",operation:t.qt,relation:"AND"})})),sessionStorage.menu_alias&&(this.alias_new=sessionStorage.menu_alias);var o="/"+this.alias_new+"/template/preview/"+i.alias+"/false/"+encodeURIComponent(v["Base64"].encode(JSON.stringify(r)));"new"==a?window.open(this.$router.resolve(o).href,"_blank"):this.$router.push(o)},startFlow:function(e){var t=this,a={defKey:this.templateInfo.defId,businessKey:e,boAlias:this.templateInfo.boDefAlias},i=s["Loading"].service({fullscreen:!0});this.$store.dispatch("storeProcess/startForm",a).then((function(e){i.close(),e.state?(t.$message.success(e.message),t.search()):(t.disabled=!1,t.$message.error(e.message))}))},exports:function(e){var t=this,a=[];e&&(a=JSON.parse(v["Base64"].decode(e))),0==a.length&&this.templateInfo.displayField&&(a=JSON.parse(this.templateInfo.displayField)),this.exportType="main",this.displayFields=[],a.forEach((function(e){e.type&&t.displayFields.push(e)})),this.dialogExportVisible=!0},importCommand:function(e){switch(e.command){case"downloadTempFile":this.downloadMainTempFile();break;case"importMain":this.importMain();break;case"log":this.openLog();break;default:break}},openLog:function(){this.dialogVisible=!0},downloadMainTempFile:function(){var e="";if(this.templateInfo&&this.templateInfo.manageField)for(var t=JSON.parse(this.templateInfo.manageField),a=0;a0&&(e=i.importTemplate[0].id);break}}if(e)this.$store.dispatch("menu/downloadFile",e);else{var n=s["Loading"].service({fullscreen:!0});this.$store.dispatch("form/downloadMainTempFile",this.templateInfo.alias).then((function(){n.close()})).catch((function(e){n.close()}))}},importMain:function(e){var t=this,a=new FormData;a.append("file",e.file);var i={data:a,alias:this.templateInfo.alias};this.dataView&&(this.handelBindFiledValua(),i.bindFilld=this.dataView.bindFilld||"",i.fillValue=this.dataView.fillValue||"",i.refIdValue=this.dataView.refIdValue);var n=s["Loading"].service({fullscreen:!0});S["a"].mainImport(i,(function(a){if(n.close(),a.state){if(t.$parent.refreshTime=(new Date).getTime(),t.$message({type:"success",message:a.message}),e.onSuccess(),sessionStorage.getItem("formImportTempRefId")){var i=JSON.parse(a.value);i.boAlias=t.dataView.boDefAlias;var r=sessionStorage.getItem("formImportTempJson");if(r){for(var o=JSON.parse(r),s=!1,l=0;l0&&(t+=","),t+=this.exportData.expField[a].name;t=v["Base64"].encode(t);var i={boAlias:this.templateInfo.alias,getType:this.exportData.getType,expField:t,filterKey:""};i.query=this.getQueryFilter().pagination,this.dataView&&this.dataView.bindSelectd&&i.query.querys.push({value:this.dataView.selectValue,operation:"EQUAL",property:"F_"+this.dataView.bindSelectd});var n=s["Loading"].service({fullscreen:!0});this.$store.dispatch("form/templateExport",i).then((function(){n.close(),e.dialogExportVisible=!1}));for(var r=0;r0)){e.next=15;break}o=0;case 7:if(!(o0&&(n.childEnts=e.childEnts),new Promise((function(i,r){a.$store.dispatch("form/getSubDataPagination",{pagination:n.pagination,name:e.name,refId:t}).then((function(e){e&&e.rows.length>0?(n.dataList=e.rows,n.pagination.pageBean.pageSize=e.pageSize,n.pagination.pageBean.page=e.page,n.pagination.pageBean.total=e.total):(n.dataList=[],n.pagination.pageBean.pageSize=1,n.pagination.pageBean.page=1,n.pagination.pageBean.total=0),i(n)}))}))},getSubEntsByFormKey:function(e){this.getSubData(this,e)},getSubData:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(t,a){var i,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=JSON.parse(t.templateInfo.subField),!(i&&i.length>0)){e.next=13;break}n=0;case 3:if(!(n0&&(n.selectList=this.dataView.selectList);var r=this;r.isJoinFlow&&(n.isJoinFlow=!0,n.taskType=r.taskType,n.defKey=r.defKey),this.$store.dispatch("form/getBpmTemplateByPagination",n).then((function(e){r.rows=e.data.rows,r.total=e.data.total,r.pagination.page=e.data.page,r.pagination.pageSize=e.data.pageSize,t.close()}))},toTreeData:function(e,t,a,i,n){var r=e.filter((function(e){return e[t]==e[a]||null==e[a]||e[a]==n}));return r||(r=e.filter((function(e){return"undefined"!==e[a]&&null!=e[a]&&e[t]!=e[a]}))),r},initTree:function(e){var t=this;S["a"].getByAlias(e.alias,(function(a){t.customDialog=a,I["a"].getTreeData({requestType:"GET",url:"${form}/form/customDialog/v1/getTreeData?alias="+e.alias+"&mapParam="},(function(e){if(t.customDialog.displayfield){var a=JSON.parse(t.customDialog.displayfield);t.displayField=a,t.treeList=e.data;var i={};i[a.displayName]="全部",i.id=-1,t.tree.push(i)}}))}))},loadTree:function(e,t){var a=this;if(e)if(-1===e.data.id){var i=this.toTreeData(this.treeList,this.displayField.id,this.displayField.pid,this.displayField.displayName,this.displayField.pvalue?this.displayField.pvalue:"0");t(i)}else t(this.treeList.filter((function(t){return t[a.displayField.pid]===e.data[a.displayField.id]})));else t([])},handleSubCurrentChange:function(e,t){var a=this;t.pagination.pageBean.page=e,this.subTableLoading=!0,this.$store.dispatch("form/getSubDataPagination",{pagination:t.pagination,name:t.entName,refId:t.refId?t.refId:this.refId}).then((function(e){t.pagination.pageBean={pageSize:e.pageSize,page:e.page,total:e.total},t.dataList=e.rows})).finally((function(){a.subTableLoading=!1}))},querySubTable:function(e){var t=this;e.pagination.querys=[],this.querySubValue?e.attributeList.forEach((function(a){e.pagination.querys.push({property:a.fieldName,value:t.querySubValue,group:"other",operation:"LIKE",relation:"OR"})})):this.querySunValue&&e.attributeList.forEach((function(a){e.pagination.querys.push({property:a.fieldName,value:t.querySunValue,group:"other",operation:"LIKE",relation:"OR"})})),this.handleSubCurrentChange(1,e)},importSub:function(e){var t=this,a=new FormData;a.append("file",e.file);var i={data:a,alias:this.currentTab.entName,refId:this.refId};S["a"].subImport(i,(function(a){a.state?(t.$message({type:"success",message:a.message}),e.onSuccess(),t.handleSubCurrentChange(1,t.currentTab)):(t.$message.error(a.message),e.onError())}))},exportSub:function(e){var t=this;this.exportType="sub",this.currentTab=e,this.displayFields=[],this.subDisplayFieldsList=[],e.attributeList.forEach((function(e){t.displayFields.push({desc:e.comment,name:e.fieldName,type:e.columnType})})),this.dialogExportVisible=!0},importButton:function(e){this.currentTab=e},myDraftList:function(){!sessionStorage.menu_alias||this.dataView||this.ignoredAlias.includes(sessionStorage.menu_alias)||(this.alias_new=sessionStorage.menu_alias);var e=!1;this.dataView&&this.dataView.boDefAlias&&""!=this.dataView.boDefAlias&&(e=!0);var t="/"+this.alias_new+"/draftList/"+this.templateInfo.alias+"/"+e;("new"==this.openType||e)&&(t+="?isNew=true"),e?window.open(t,"_blank"):this.$router.push(t)},initSwitchStatus:function(){for(var e=y["a"].parseToJson(this.templateInfo.manageField),t=0;t0&&(e.filterMap[a.name]=a.defaultValue,a.defaultValue.forEach((function(e){t.push({property:i+a.name,value:e,group:"defVal_"+a.name,operation:"EQUAL",relation:"OR"})})))})),e.$on("afterMounted",(function(){var t=e.$refs.multipleTemplateTable.$refs.tableHeader.columns;t.forEach((function(t){e.filterMap.hasOwnProperty(t.property)&&e.filterMap[t.property].forEach((function(e){t.filteredValue.push(e)}))}))})),t}}})}}},L=D,x=(a("fd04"),a("2877")),N=Object(x["a"])(L,d,f,!1,null,"2fd6e6c3",null),P=N.exports;function V(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function O(e){for(var t=1;t=0&&s<=6&&(0===l||6===l)||l>=0&&l<=6&&(0===s||6===s)||s>=2&&s<=4&&l>=2&&l<=4?e.set(r+s,o+l,!0,!0):e.set(r+s,o+l,!1,!0))}function b(e){for(var t=e.size,a=8;a>s&1),e.set(a,i,n,!0),e.set(i,a,n,!0)}function T(e,t,a){var i,n,r=e.size,o=p.getEncodedBits(t,a);for(i=0;i<15;i++)n=1===(o>>i&1),i<6?e.set(i,8,n,!0):i<8?e.set(i+1,8,n,!0):e.set(r-15+i,8,n,!0),i<8?e.set(8,r-i-1,n,!0):i<9?e.set(8,15-i-1+1,n,!0):e.set(8,15-i-1,n,!0);e.set(r-8,8,1,!0)}function S(e,t){for(var a=e.size,i=-1,n=a-1,r=7,o=0,s=a-1;s>0;s-=2){6===s&&s--;while(1){for(var l=0;l<2;l++)if(!e.isReserved(n,s-l)){var u=!1;o>>r&1)),e.set(n,s-l,u),r--,-1===r&&(o++,r=7)}if(n+=i,n<0||a<=n){n-=i,i=-i;break}}}}function I(e,t,a){var i=new o;a.forEach((function(t){i.put(t.mode.bit,4),i.put(t.getLength(),g.getCharCountIndicator(t.mode,e)),t.write(i)}));var r=n.getSymbolTotalCodewords(e),s=f.getTotalCodewordsCount(e,t),l=8*(r-s);i.getLengthInBits()+4<=l&&i.put(0,4);while(i.getLengthInBits()%8!==0)i.putBit(0);for(var u=(l-i.getLengthInBits())/8,d=0;d=7&&E(p,t),S(p,f),isNaN(i)&&(i=d.getBestMask(p,T.bind(null,p,a))),d.applyMask(i,p),T(p,a,i),{modules:p,version:t,errorCorrectionLevel:a,maskPattern:i,segments:r}}t.create=function(e,t){if("undefined"===typeof e||""===e)throw new Error("No input text");var a,i,o=r.M;return"undefined"!==typeof t&&(o=r.from(t.errorCorrectionLevel,r.M),a=c.from(t.version),i=d.from(t.maskPattern),t.toSJISFunc&&n.setToSJISFunction(t.toSJISFunc)),_(e,a,o,i)}},bbf0:function(e,t,a){var i=a("27a3"),n=a("0425");function r(e){if("string"!==typeof e)throw new Error("Param is not a string");var a=e.toLowerCase();switch(a){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!i.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return n.testNumeric(e)?t.NUMERIC:n.testAlphanumeric(e)?t.ALPHANUMERIC:n.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,a){if(t.isValid(e))return e;try{return r(e)}catch(i){return a}}},befa:function(e,t,a){var i=a("bbf0"),n=a("dd7e"),r=a("9d94"),o=a("0196"),s=a("2f3a"),l=a("0425"),u=a("7bf0"),d=a("10b0");function f(e){return unescape(encodeURIComponent(e)).length}function h(e,t,a){var i,n=[];while(null!==(i=e.exec(a)))n.push({data:i[0],index:i.index,mode:t,length:i[0].length});return n}function c(e){var t,a,n=h(l.NUMERIC,i.NUMERIC,e),r=h(l.ALPHANUMERIC,i.ALPHANUMERIC,e);u.isKanjiModeEnabled()?(t=h(l.BYTE,i.BYTE,e),a=h(l.KANJI,i.KANJI,e)):(t=h(l.BYTE_KANJI,i.BYTE,e),a=[]);var o=n.concat(r,t,a);return o.sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function p(e,t){switch(t){case i.NUMERIC:return n.getBitsLength(e);case i.ALPHANUMERIC:return r.getBitsLength(e);case i.KANJI:return s.getBitsLength(e);case i.BYTE:return o.getBitsLength(e)}}function g(e){return e.reduce((function(e,t){var a=e.length-1>=0?e[e.length-1]:null;return a&&a.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}function m(e){for(var t=[],a=0;a1)return p(e,i);if(0===e.length)return 1;a=e[0]}else a=e;return f(a.mode,a.getLength(),i)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");var t=e<<12;while(i.getBCHDigit(t)-d>=0)t^=u< * @license MIT */var i=function(e){return Object.keys(e.data&&e.data()||{}).concat(Object.keys(e.props||{}))},n=function(e,t,a){if(!t.hasOwnProperty(a)){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,i)}},r=function(e){var t={};return e.forEach((function(e){e&&Object.getOwnPropertyNames(e).forEach((function(a){return n(e,t,a)}))})),t},o=function(e,t){var a={};return t.forEach((function(t){return n(e,a,t)})),a},s={props:{template:String},render:function(e){if(this.template){var t=this.$parent,a=t.$data,n=t.$props,s=t.$options,l=Object.keys(s.methods||{}),u=i(s).concat(l),d=o(this.$parent,l),f=r([a,n,d]),h={template:this.template||"
",props:u,computed:s.computed,components:s.components};return e(h,{props:f})}}};t["a"]=s},dd7e:function(e,t,a){var i=a("bbf0");function n(e){this.mode=i.NUMERIC,this.data=e.toString()}n.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){var t,a,i;for(t=0;t+3<=this.data.length;t+=3)a=this.data.substr(t,3),i=parseInt(a,10),e.put(i,10);var n=this.data.length-t;n>0&&(a=this.data.substr(t),i=parseInt(a,10),e.put(i,3*n+1))},e.exports=n},de40:function(e,t,a){"use strict";t["a"]={data:function(){return{permission_sub:null,sub_work:!1}},watch:{permission:{handler:function(e,t){this.sub_work||(this.permission_sub=_.cloneDeep(e))}}},created:function(){this.permission_sub=_.cloneDeep(this.permission)}}},e3db:function(e,t){var a={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==a.call(e)}},f255:function(e,t,a){"use strict";a("26a2")},f4e9:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"inputs"},[a("ht-select",{directives:[{name:"dynamic-options",rawName:"v-dynamic-options",value:{cache:!0},expression:"{cache:true}"},{name:"related-query",rawName:"v-related-query",value:{cache:!0},expression:"{cache:true}"},{name:"watch-parent",rawName:"v-watch-parent",value:e.watchParent,expression:"watchParent"}],ref:"selected",staticStyle:{width:"100%"},attrs:{validate:e.validate,options:e.options,name:e.inputName,size:"small",clearable:"",placeholder:e.placeholder,filterable:e.filterable,"allow-create":e.allowCreate,"reserve-keyword":"",multiple:e.multiple,linkage:e.linkage,permission:e.permission_sub},on:{focus:e.selectFocus,blur:e.selectBlur},model:{value:e.inputVal,callback:function(t){e.inputVal=t},expression:"inputVal"}},[e._l(this.options,(function(e){return a("el-option",{key:e.key,attrs:{label:e.value,value:e.key}})}))],2)],1)},n=[],r=(a("28a5"),a("456d"),a("ac6a"),a("2909")),o=(a("7f7f"),a("025e")),s=a("86b9"),l=a("de40"),u={name:"eip-select",props:["validate","value","name","permission","multiple","selectlist","linkage","ganged","filterable","allowCreate","placeholder","customQuery","relatedQuery"],mixins:[l["a"]],data:function(){return{options:[],newValidate:null}},computed:{inputVal:{get:function(){return this.value||0===this.value?(this.relatedQueryLoad(),this.value+""):this.value},set:function(e){this.$emit("input",e),""!=e&&this.relatedQueryLoad()}},inputWriteable:function(){return o["a"].getWriteable(this.permission_sub)},inputValidate:function(){if(this.newValidate)return this.newValidate;var e=this.$store.state.index.validate;return o["a"].addRequiredOrNot(this.permission_sub,this.validate,e,this)},inputName:function(){var e="";return this.$slots&&this.$slots.labeldesc&&this.$slots.labeldesc[0].children&&this.$slots.labeldesc[0].children[0].text?(e=this.$slots.labeldesc[0].children[0].text,this.name?this.name:o["a"].getName()+"-"+e):this.name?this.name:o["a"].getName()},watchParent:function(){var e=!1;if(this.ganged&&this.ganged.bind&&"{}"!=JSON.stringify(this.ganged.bind)){var t=s["a"].getSubScopeElAndIndex(this.$el),a=t.index;e={},e.pid=this.ganged.bind,e.thisVal=this.$attrs["model-name"],e.index=a}return e}},mounted:function(){this.loadOption(!0)},created:function(){this.$on("dynamic-options:update",this.dynamicOptionResponse),this.$validator=this.$root.$validator},methods:{selectBlur:function(){this.$emit("blur")},selectFocus:function(){this.loadOption(),this.$emit("focus")},loadOption:function(e){if(this.ganged&&this.ganged.alias){if(e&&this.ganged.noInit&&"true"==this.ganged.noInit)return;this.dynamicLoadOption()}else this.options=Object(r["a"])(this.selectlist)||[]},prepareLoadParams:function(e){var t={};if(e&&!s["a"].isEmpty(e)){var a=s["a"].getSubScopeElAndIndex(this.$el),i=a.index,n=document.getElementsByName("online-form");if(0==n.length){var r=o["a"].getInstanceByTag(this,"ht-dataview-runtime-template");return 0==r.length?void 0:r.searchForm?(Object.keys(e).forEach((function(a){var i=null;Object.keys(r.searchForm).forEach((function(n){n==e[a]&&(i=r.searchForm[n]),s["a"].isEmpty(i)||(t[a]=i)}))})),t):void 0}var l=n[0].__vue__;Object.keys(e).forEach((function(a){var n=null;n=null==i?o["a"].getValueByPath(l,e[a]):o["a"].getValueByPath(l,e[a],i),s["a"].isEmpty(n)||(t[a]=n)}))}return t},dynamicLoadOption:function(){var e=this.prepareLoadParams(this.ganged.bind);this.$emit("dynamic-options:load",this.ganged.alias,e)},dynamicOptionResponse:function(e,t){var a=this;if(this.ganged&&this.ganged.alias==e&&this.ganged.valueBind&&this.ganged.labelBind)this.options=[],t&&t.constructor==Array&&t.length>0&&t.forEach((function(e){a.options.push({key:e[a.ganged.valueBind]+"",value:e[a.ganged.labelBind]+""})}));else if(this.ganged&&this.ganged.alias&&(!this.ganged.valueBind||!this.ganged.labelBind)){var i=this.inputName;this.$message.error("下拉框【".concat(i.split("-")[1],"】配置了动态选项,但是没有正确的配置选项绑定关系。"))}},relatedQueryLoad:function(){var e=this;this.relatedQuery&&this.relatedQuery.constructor==Array&&this.relatedQuery.length>0&&this.relatedQuery.forEach((function(t){var a=e.prepareLoadParams(t.condition);e.$emit("related-query:load",t.alias,a,t.result)}))}}},d=u,f=(a("f255"),a("2877")),h=Object(f["a"])(d,i,n,!1,null,"1a8ba246",null);t["a"]=h.exports},fd04:function(e,t,a){"use strict";a("6204")}}]);