(function(e){function t(t){for(var n,a,r=t[0],s=t[1],d=t[2],c=0,h=[];c<r.length;c++)a=r[c],Object.prototype.hasOwnProperty.call(l,a)&&l[a]&&h.push(l[a][0]),l[a]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);u&&u(t);while(h.length)h.shift()();return o.push.apply(o,d||[]),i()}function i(){for(var e,t=0;t<o.length;t++){for(var i=o[t],n=!0,a=1;a<i.length;a++){var r=i[a];0!==l[r]&&(n=!1)}n&&(o.splice(t--,1),e=s(s.s=i[0]))}return e}var n={},a={app:0},l={app:0},o=[];function r(e){return s.p+"js/"+({}[e]||e)+"."+{"chunk-07ba603d":"e93dfe4a","chunk-0be6bc6c":"035bae02","chunk-04ca5558":"f57f1a24","chunk-0ec37496":"42ce6a4c","chunk-197f0b6d":"dcf7eb1c","chunk-1a29e60c":"e87da454","chunk-2a54da13":"fc430e0a","chunk-2b1e2ba5":"8cc439e8","chunk-2d0a38d5":"e43219de","chunk-2d0ae8fd":"cfde9c72","chunk-2d0b2727":"d294c0fc","chunk-2d0b5f36":"0c85d4d7","chunk-2d0c82d2":"b7588473","chunk-2d0ccbc9":"3507d1a0","chunk-2d0cf39d":"17624c66","chunk-2d0d0b27":"10545c77","chunk-2d0d7dcc":"aa5a2aa8","chunk-2d0da935":"94f842f8","chunk-2d0db7f7":"cc0e818d","chunk-2d0dd7c1":"023b82e2","chunk-2d0dd7d2":"0dc7c77f","chunk-2d0df20a":"a6d419df","chunk-2d0e5987":"d942a1ef","chunk-2d0e9b23":"743d0bc7","chunk-2d207366":"824dc868","chunk-2d21061e":"8eaae0db","chunk-2d216388":"1354c2b2","chunk-2d21681e":"639af3cd","chunk-2d216fc4":"73d28c77","chunk-2d219f9b":"64d94dd8","chunk-2d21d7c9":"873019a5","chunk-2d21f355":"f3d60816","chunk-2d222d3a":"e504ead2","chunk-2d224cf0":"41a798a8","chunk-2d225bf6":"67a144b9","chunk-2d22c0e8":"521d4a3d","chunk-2d22c6c3":"03d75b43","chunk-2d22d443":"fe323306","chunk-2d2304b1":"622cd85b","chunk-2d23774f":"c56ce4f1","chunk-2d237cb1":"02454b19","chunk-2d23811f":"53fbb10a","chunk-2d238502":"b27f7728","chunk-2ecfd031":"8a229c0e","chunk-1f35fdf2":"8b626add","chunk-7b7d4f23":"f8321b6d","chunk-b982dc78":"396ef3c9","chunk-39bbaed0":"bfcaed0e","chunk-3bfb476a":"63ba2622","chunk-3ea04128":"b2d434a5","chunk-441d8e60":"883485e4","chunk-45707914":"62837b9e","chunk-4e08765a":"a65dea9f","chunk-5699b4ef":"85c23bb9","chunk-654aa0e4":"bb50651c","chunk-70f4cd0c":"f5dd6353","chunk-7364e464":"1961d3cf","chunk-75a2a3f1":"75c49706","chunk-7c90c5bc":"1d607b3d","chunk-a20c150e":"2dfe1c81","chunk-d6914d30":"46c9bbb7","chunk-eaad417c":"716e0b78","chunk-1538af4c":"e4b61b64"}[e]+".js"}function s(t){if(n[t])return n[t].exports;var i=n[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,s),i.l=!0,i.exports}s.e=function(e){var t=[],i={"chunk-07ba603d":1,"chunk-0be6bc6c":1,"chunk-04ca5558":1,"chunk-0ec37496":1,"chunk-197f0b6d":1,"chunk-1a29e60c":1,"chunk-2a54da13":1,"chunk-2b1e2ba5":1,"chunk-1f35fdf2":1,"chunk-7b7d4f23":1,"chunk-b982dc78":1,"chunk-39bbaed0":1,"chunk-3bfb476a":1,"chunk-3ea04128":1,"chunk-441d8e60":1,"chunk-45707914":1,"chunk-4e08765a":1,"chunk-5699b4ef":1,"chunk-654aa0e4":1,"chunk-70f4cd0c":1,"chunk-7364e464":1,"chunk-75a2a3f1":1,"chunk-7c90c5bc":1,"chunk-a20c150e":1,"chunk-d6914d30":1,"chunk-eaad417c":1,"chunk-1538af4c":1};a[e]?t.push(a[e]):0!==a[e]&&i[e]&&t.push(a[e]=new Promise((function(t,i){for(var n="css/"+({}[e]||e)+"."+{"chunk-07ba603d":"4ba320fc","chunk-0be6bc6c":"19711928","chunk-04ca5558":"2256618a","chunk-0ec37496":"d8c02201","chunk-197f0b6d":"d9234d96","chunk-1a29e60c":"d8c02201","chunk-2a54da13":"cf48e487","chunk-2b1e2ba5":"6fd1a458","chunk-2d0a38d5":"31d6cfe0","chunk-2d0ae8fd":"31d6cfe0","chunk-2d0b2727":"31d6cfe0","chunk-2d0b5f36":"31d6cfe0","chunk-2d0c82d2":"31d6cfe0","chunk-2d0ccbc9":"31d6cfe0","chunk-2d0cf39d":"31d6cfe0","chunk-2d0d0b27":"31d6cfe0","chunk-2d0d7dcc":"31d6cfe0","chunk-2d0da935":"31d6cfe0","chunk-2d0db7f7":"31d6cfe0","chunk-2d0dd7c1":"31d6cfe0","chunk-2d0dd7d2":"31d6cfe0","chunk-2d0df20a":"31d6cfe0","chunk-2d0e5987":"31d6cfe0","chunk-2d0e9b23":"31d6cfe0","chunk-2d207366":"31d6cfe0","chunk-2d21061e":"31d6cfe0","chunk-2d216388":"31d6cfe0","chunk-2d21681e":"31d6cfe0","chunk-2d216fc4":"31d6cfe0","chunk-2d219f9b":"31d6cfe0","chunk-2d21d7c9":"31d6cfe0","chunk-2d21f355":"31d6cfe0","chunk-2d222d3a":"31d6cfe0","chunk-2d224cf0":"31d6cfe0","chunk-2d225bf6":"31d6cfe0","chunk-2d22c0e8":"31d6cfe0","chunk-2d22c6c3":"31d6cfe0","chunk-2d22d443":"31d6cfe0","chunk-2d2304b1":"31d6cfe0","chunk-2d23774f":"31d6cfe0","chunk-2d237cb1":"31d6cfe0","chunk-2d23811f":"31d6cfe0","chunk-2d238502":"31d6cfe0","chunk-2ecfd031":"31d6cfe0","chunk-1f35fdf2":"45c27629","chunk-7b7d4f23":"0f178a7d","chunk-b982dc78":"cc30f565","chunk-39bbaed0":"bfa9e832","chunk-3bfb476a":"0e40b10e","chunk-3ea04128":"26cc4387","chunk-441d8e60":"bf565a29","chunk-45707914":"d8c02201","chunk-4e08765a":"0dc410fa","chunk-5699b4ef":"1ef8581d","chunk-654aa0e4":"e99c7880","chunk-70f4cd0c":"32004f18","chunk-7364e464":"508901c3","chunk-75a2a3f1":"ab40614b","chunk-7c90c5bc":"6c9e674e","chunk-a20c150e":"24ed764e","chunk-d6914d30":"a9fca89c","chunk-eaad417c":"cf48e487","chunk-1538af4c":"530a980d"}[e]+".css",l=s.p+n,o=document.getElementsByTagName("link"),r=0;r<o.length;r++){var d=o[r],c=d.getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(c===n||c===l))return t()}var h=document.getElementsByTagName("style");for(r=0;r<h.length;r++){d=h[r],c=d.getAttribute("data-href");if(c===n||c===l)return t()}var u=document.createElement("link");u.rel="stylesheet",u.type="text/css",u.onload=t,u.onerror=function(t){var n=t&&t.target&&t.target.src||l,o=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");o.code="CSS_CHUNK_LOAD_FAILED",o.request=n,delete a[e],u.parentNode.removeChild(u),i(o)},u.href=l;var f=document.getElementsByTagName("head")[0];f.appendChild(u)})).then((function(){a[e]=0})));var n=l[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,i){n=l[e]=[t,i]}));t.push(n[2]=o);var d,c=document.createElement("script");c.charset="utf-8",c.timeout=120,s.nc&&c.setAttribute("nonce",s.nc),c.src=r(e);var h=new Error;d=function(t){c.onerror=c.onload=null,clearTimeout(u);var i=l[e];if(0!==i){if(i){var n=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;h.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",h.name="ChunkLoadError",h.type=n,h.request=a,i[1](h)}l[e]=void 0}};var u=setTimeout((function(){d({type:"timeout",target:c})}),12e4);c.onerror=c.onload=d,document.head.appendChild(c)}return Promise.all(t)},s.m=e,s.c=n,s.d=function(e,t,i){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},s.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(i,n,function(t){return e[t]}.bind(null,n));return i},s.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="/",s.oe=function(e){throw console.error(e),e};var d=window["webpackJsonp"]=window["webpackJsonp"]||[],c=d.push.bind(d);d.push=t,d=d.slice();for(var h=0;h<d.length;h++)t(d[h]);var u=c;o.push([0,"chunk-vendors"]),i()})({0:function(e,t,i){e.exports=i("56d7")},"0b13":function(e,t,i){"use strict";var n=i("7a23");const a={class:"mask"},l={class:"message"},o={key:1,class:"edit-el"},r={key:0,class:"extra"},s=["onClick"],d=["clss"],c=["innerHTML"],h={key:1},u=["onClick","textContent"],f=["onerror","onClick","src"],m=["onClick"],p={key:3},b=["onClick","innerHTML"],y=["onClick"],g=["onClick"],O={key:8},k={class:"block pagination",key:"pagination-01"};function j(e,t,i,j,w,x){const v=Object(n["W"])("el-table-column"),C=Object(n["W"])("table-render"),D=Object(n["W"])("el-date-picker"),F=Object(n["W"])("el-switch"),E=Object(n["W"])("el-option"),S=Object(n["W"])("el-select"),A=Object(n["W"])("el-input"),N=Object(n["W"])("el-tag"),_=Object(n["W"])("el-table"),I=Object(n["W"])("el-pagination");return Object(n["N"])(),Object(n["n"])("div",{class:Object(n["D"])(["vol-table",[e.textInline?"text-inline":"",e.fxRight?"fx-right":""]])},[Object(n["ob"])(Object(n["o"])("div",a,null,512),[[n["kb"],e.loading]]),Object(n["ob"])(Object(n["o"])("div",l,"加载中.....",512),[[n["kb"],e.loading]]),(Object(n["N"])(),Object(n["l"])(_,{"show-summary":e.summary,"summary-method":e.getSummaryData,"row-key":e.rowKey,key:e.randomTableKey,lazy:"",stripe:"",load:e.loadTreeChildren,onSelect:e.userSelect,onSelectAll:e.userSelect,onSelectionChange:e.selectionChange,onRowDblclick:e.rowDbClick,onRowClick:e.rowClick,onHeaderClick:e.headerClick,ref:"table",class:"v-table",onSortChange:e.sortChange,"tooltip-effect":"dark",height:e.realHeight,"max-height":e.realMaxHeight,data:e.url?e.rowData:e.tableData,border:"","row-class-name":e.initIndex,"cell-style":e.getCellStyle,style:{width:"100%"}},{default:Object(n["nb"])(()=>[Object(n["s"])(v,{type:"index",fixed:e.fixed,width:"55"},null,8,["fixed"]),e.ck?(Object(n["N"])(),Object(n["l"])(v,{key:0,type:"selection",fixed:e.fixed,width:"55"},null,8,["fixed"])):Object(n["m"])("",!0),(Object(n["N"])(!0),Object(n["n"])(n["b"],null,Object(n["U"])(e.filterColumns,(i,a)=>(Object(n["N"])(),Object(n["l"])(v,{"show-overflow-tooltip":"",prop:i.field,label:i.title,"min-width":i.width,formatter:e.formatter,fixed:i.fixed,key:i.field+a,align:i.align,sortable:!!i.sort&&"custom"},{default:Object(n["nb"])(a=>[i.render&&"function"==typeof i.render?(Object(n["N"])(),Object(n["l"])(C,{row:a.row,key:"rd-01",index:a.$index,column:i,render:i.render},null,8,["row","index","column","render"])):i.edit&&!i.readonly?(Object(n["N"])(),Object(n["n"])("div",o,[i.edit.keep||e.edit.rowIndex==a.$index?(Object(n["N"])(),Object(n["n"])("div",{key:0,onClick:t[0]||(t[0]=Object(n["qb"])(()=>{},["stop"])),class:"e-item"},[Object(n["o"])("div",null,[-1!=["date","datetime"].indexOf(i.edit.type)?(Object(n["N"])(),Object(n["l"])(D,{key:0,clearable:"",size:"small",style:{width:"100%"},modelValue:a.row[i.field],"onUpdate:modelValue":e=>a.row[i.field]=e,onChange:i.onChange,type:i.edit.type,placeholder:i.placeholder?i.placeholder:"请选择"+i.title,disabledDate:t=>e.getDateOptions(t,i),"value-format":e.getDateFormat(i)},null,8,["modelValue","onUpdate:modelValue","onChange","type","placeholder","disabledDate","value-format"])):"switch"==i.edit.type?(Object(n["N"])(),Object(n["l"])(F,{key:1,modelValue:a.row[i.field],"onUpdate:modelValue":e=>a.row[i.field]=e,"active-color":"#0f84ff","inactive-color":"rgb(194 194 194)",onChange:t=>{e.switchChange(t,a.row,i)},"active-value":"boolean"==typeof a.row[i.field]||1,"inactive-value":"boolean"!=typeof a.row[i.field]&&0},null,8,["modelValue","onUpdate:modelValue","onChange","active-value","inactive-value"])):-1!=["select","selectList"].indexOf(i.edit.type)?(Object(n["N"])(),Object(n["l"])(S,{key:2,size:"small",style:{width:"100%"},modelValue:a.row[i.field],"onUpdate:modelValue":e=>a.row[i.field]=e,filterable:!!(i.filter||i.bind.data.length>10),multiple:"select"!=i.edit.type,placeholder:i.placeholder?i.placeholder:"请选择"+i.title,autocomplete:i.autocomplete,onChange:e=>i.onChange&&i.onChange(a.row,i),clearable:""},{default:Object(n["nb"])(()=>[(Object(n["N"])(!0),Object(n["n"])(n["b"],null,Object(n["U"])(i.bind.data,e=>(Object(n["N"])(),Object(n["l"])(E,{key:e.key,label:e.value,value:e.key},{default:Object(n["nb"])(()=>[Object(n["r"])(Object(n["bb"])(e.value),1)]),_:2},1032,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","filterable","multiple","placeholder","autocomplete","onChange"])):(Object(n["N"])(),Object(n["l"])(A,{key:3,onChange:t=>e.inputKeyPress(a.row,i,t),onInput:t=>e.inputKeyPress(a.row,i,t),onKeyup:Object(n["pb"])(t=>e.inputKeyPress(a.row,i,t),["enter"]),size:"small",modelValue:a.row[i.field],"onUpdate:modelValue":e=>a.row[i.field]=e,placeholder:"请输入"+i.title},null,8,["onChange","onInput","onKeyup","modelValue","onUpdate:modelValue","placeholder"]))]),i.extra&&e.edit.rowIndex==a.$index?(Object(n["N"])(),Object(n["n"])("div",r,[Object(n["o"])("a",{style:Object(n["E"])(i.extra.style),onClick:t=>e.extraClick(a.row,i)},[i.extra.icon?(Object(n["N"])(),Object(n["n"])("i",{key:0,clss:[i.extra.icon]},null,8,d)):Object(n["m"])("",!0),Object(n["r"])(" "+Object(n["bb"])(i.extra.text),1)],12,s)])):Object(n["m"])("",!0)])):(Object(n["N"])(),Object(n["n"])(n["b"],{key:1},[i.formatter?(Object(n["N"])(),Object(n["n"])("div",{key:0,innerHTML:i.formatter(a.row,i)},null,8,c)):(Object(n["N"])(),Object(n["n"])("div",h,Object(n["bb"])(e.formatter(a.row,i,!0)),1))],64))])):(Object(n["N"])(),Object(n["n"])(n["b"],{key:2},[i.link?(Object(n["N"])(),Object(n["n"])("a",{key:0,href:"javascript:void(0)",onClick:t=>e.link(a.row,i,t),textContent:Object(n["bb"])(a.row[i.field])},null,8,u)):"img"==i.type?(Object(n["N"])(!0),Object(n["n"])(n["b"],{key:1},Object(n["U"])(e.getFilePath(a.row[i.field],i),(t,l)=>(Object(n["N"])(),Object(n["n"])("img",{key:l,onerror:e.defaultImg,onClick:n=>e.viewImg(a.row,i,t.path,n),class:"table-img",src:t.path},null,8,f))),128)):"file"==i.type||"excel"==i.type?(Object(n["N"])(!0),Object(n["n"])(n["b"],{key:2},Object(n["U"])(e.getFilePath(a.row[i.field],i),(t,i)=>(Object(n["N"])(),Object(n["n"])("a",{style:{"margin-right":"8px"},class:"t-file",key:i,onClick:i=>e.dowloadFile(t)},Object(n["bb"])(t.name),9,m))),128)):"date"==i.type?(Object(n["N"])(),Object(n["n"])("span",p,Object(n["bb"])(e.formatterDate(a.row,i)),1)):i.formatter?(Object(n["N"])(),Object(n["n"])("div",{key:4,onClick:t=>e.formatterClick(a.row,i,t),innerHTML:i.formatter(a.row,i)},null,8,b)):i.bind&&i.normal?(Object(n["N"])(),Object(n["n"])("div",{key:5,onClick:t=>e.formatterClick(a.row,i,t),style:Object(n["E"])(i.getStyle&&i.getStyle(a.row,i))},Object(n["bb"])(e.formatter(a.row,i,!0)),13,y)):i.click?(Object(n["N"])(),Object(n["n"])("div",{key:6,onClick:t=>e.formatterClick(a.row,i)},Object(n["bb"])(a.row[i.field]),9,g)):i.bind?(Object(n["N"])(),Object(n["l"])(N,{key:7,size:"small",class:Object(n["D"])([e.isEmptyTag(a.row,i)]),type:e.getColor(a.row,i)},{default:Object(n["nb"])(()=>[Object(n["r"])(Object(n["bb"])(e.formatter(a.row,i,!0)),1)]),_:2},1032,["class","type"])):(Object(n["N"])(),Object(n["n"])("span",O,Object(n["bb"])(e.formatter(a.row,i,!0)),1))],64))]),_:2},1032,["prop","label","min-width","formatter","fixed","align","sortable"]))),128))]),_:1},8,["show-summary","summary-method","row-key","load","onSelect","onSelectAll","onSelectionChange","onRowDblclick","onRowClick","onHeaderClick","onSortChange","height","max-height","data","row-class-name","cell-style"])),e.paginationHide?Object(n["m"])("",!0):(Object(n["N"])(),Object(n["n"])("div",k,[Object(n["s"])(I,{key:"pagination-02",onSizeChange:e.handleSizeChange,onCurrentChange:e.handleCurrentChange,"current-page":e.paginations.page,"page-sizes":e.paginations.sizes,"page-size":e.paginations.size,layout:"total, sizes, prev, pager, next, jumper",total:e.paginations.total},null,8,["onSizeChange","onCurrentChange","current-page","page-sizes","page-size","total"])]))],2)}i("14d9");var w,x={name:"TableExpand",functional:!0,props:{render:Function,row:{},column:{},index:{type:Number,default:0}},render:({render:e,row:t,column:i,index:a})=>e(n["x"],{row:t,column:i,index:a})};let v;var C=Object(n["u"])({watch:{"tableData.length":{handler(e,t){this.watchRowSelectChange(e,t)}},"rowData.length":{handler(e,t){this.watchRowSelectChange(e,t)}}},components:{"table-render":x},props:{rowKey:{typeof:String,default:void 0},loadTreeChildren:{type:Function,default:(e,t,i)=>i([])},textInline:{type:Boolean,default:!0},tableData:{type:Array,default:()=>[]},columns:{type:Array,default:[]},height:{type:Number,default:0},maxHeight:{type:Number,default:0},linkView:{type:Function,default:function(){return 1}},pagination:{type:Object,default:function(){return{total:0,size:30,sortName:""}}},url:{type:String,default:""},paginationHide:{type:Boolean,default:!0},color:{type:Boolean,default:!0},index:{type:Boolean,default:!1},allowEmpty:{type:Boolean,default:!0},defaultLoadPage:{type:Boolean,default:!0},loadKey:{type:Boolean,default:!0},single:{type:Boolean,default:!1},doubleEdit:{type:Boolean,default:!0},beginEdit:{type:Function,default:function(e,t,i){return!0}},endEditBefore:{type:Function,default:function(e,t,i){return!0}},endEditAfter:{type:Function,default:function(e,t,i){return!0}},ck:{type:Boolean,default:!0},columnIndex:{type:Boolean,default:!0}},data(){return{fixed:!1,clickEdit:!0,randomTableKey:1,visiblyColumns:[],key:"",realHeight:0,realMaxHeight:0,enableEdit:!1,empty:this.allowEmpty?"":"--",defaultImg:'this.src="'+i("5943")+'"',loading:!1,footer:{},total:0,formatConfig:{},colors:["","warning","success","green","info"],rule:{phone:/^[1][3,4,5,6,7,8,9][0-9]{9}$/,decimal:/(^[\-0-9][0-9]*(.[0-9]+)?)$/,number:/(^[\-0-9][0-9]*([0-9]+)?)$/},columnNames:[],rowData:[],paginations:{sort:"",order:"desc",Foots:"",total:0,sizes:[30,60,100,120],size:30,Wheres:[],page:1,rows:30},errorFiled:"",edit:{columnIndex:-1,rowIndex:-1},editStatus:{},summary:!1,summaryData:[],summaryIndex:{},remoteColumns:[],cellStyleColumns:{},fxRight:!1,selectRows:[]}},created(){this.realHeight=this.getHeight(),this.realMaxHeight=this.getMaxHeight(),this.fxRight=this.columns.some(e=>"right"==e.fixed),(this.fxRight||this.columns.some(e=>e.fixed))&&(this.fixed=!0);let e=[],t=[];this.summaryData.push("合计"),this.columnIndex&&this.summaryData.push(" "),this.columns.forEach((i,n)=>{i.cellStyle&&(this.cellStyleColumns[i.field]=i.cellStyle),i.hidden||(this.summaryData.push(""),this.summaryIndex[i.field]=this.summaryData.length-1),i.summary&&!this.summary&&(this.summary=!0),!i.bind||!i.bind.key||i.bind.data&&0!=i.bind.data.length||(i.bind.data||(i.bind.data=[]),i.bind.remote?this.remoteColumns.push(i):this.loadKey&&(e.push(i.bind.key),i.bind.valueTyoe=i.type,t.push(i.bind)))}),e.length>0&&this.http.post("/api/Sys_Dictionary/GetVueDictionary",e).then(e=>{e.forEach(e=>{t.forEach(t=>{"int"!=t.valueTyoe&&"sbyte"!=t.valueTyoe||e.data.forEach(e=>{isNaN(e.key)||(e.key=~~e.key)}),t.key==e.dicNo&&t.data.push(...e.data)})})}),this.paginations.sort=this.pagination.sortName,Object.assign(this.paginations,this.pagination),this.pagination.size&&(this.paginations.rows=this.pagination.size),this.enableEdit=this.columns.some(e=>e.hasOwnProperty("edit"));let i=this.columns.find(e=>e.isKey);i&&(this.key=i.field),w=this,this.defaultLoadPage&&this.load()},computed:{filterColumns(){return this.columns.filter((e,t)=>(e.field||(e.field=e.title+t),!e.hidden))}},methods:{watchRowSelectChange(e,t){e<t&&this.selectRows.length&&(this.selectRows=[],w.$refs.table.clearSelection())},switchChange(e,t,i){Object.keys(t).length<=1||i.onChange&&i.onChange(e,t,i)},inputKeyPress(e,t,i,n){t.onKeyPress&&t.onKeyPress(e,t,i),this.getInputSummaries(null,null,i,t)},extraClick(e,t){t.extra.click&&t.extra.click(e,t,url?rowData:tableData)},headerClick(e,t){this.clickEdit&&-1!=this.edit.rowIndex&&this.rowEndEdit(this.url?this.rowData[this.edit.rowIndex]:this.tableData[this.edit.rowIndex],e)&&(this.edit.rowIndex=-1)},rowDbClick(e,t,i){this.$emit("rowDbClick",{row:e,column:t,event:i})},rowClick(e,t,i){if(-1==this.edit.rowIndex&&this.$emit("rowClick",{row:e,column:t,event:i}),this.doubleEdit){if(this.clickEdit&&-1!=this.edit.rowIndex){if(e.elementIndex==this.edit.rowIndex){let n=this.columns.find(e=>e.field==(i&&i.property||t.property));return void(!n||n.edit&&!n.readonly||this.rowEndEdit(e,i)&&(this.edit.rowIndex=-1))}this.rowEndEdit(e,i&&i.property?i:t)&&(this.edit.rowIndex=-1)}this.rowBeginEdit(e,t)}},dowloadFile(e){this.base.dowloadFile(e.path,e.name,{Authorization:this.$store.getters.getToken()},this.http.ipAddress)},getFilePath(e,t){if(!e)return[];if(t.formatter)return t.formatter(e);let i=e.replace(/\\/g,"/").split(","),n=[];for(let a=0;a<i.length;a++){let e=i[a];if(t.base64)n.push({name:"",path:(-1==e.indexOf("base64,")?"data:image/png;base64,":"")+e});else if(-1!=e.indexOf(".")){let t=e.split("/");t.length>0&&n.push({name:t[t.length-1],path:this.base.isUrl(e)?e:this.http.ipAddress+e})}}return n},reset(){this.tableData&&this.tableData.length>0&&this.tableData.splice(0),this.rowData&&this.rowData.length>0&&this.rowData.splice(0),this.paginationHide||(this.paginations.page=1,this.paginations.wheres&&this.paginations.wheres.length>0&&this.paginations.wheres.splice(0)),this.errorFiled="",this.edit.columnIndex=-1,this.edit.rowIndex=-1},getHeight(){return this.height||this.maxHeight?this.maxHeight?null:this.height:null},getMaxHeight(){return(this.height||this.maxHeight)&&this.maxHeight?this.maxHeight:null},getSelectedOptions(e){return e.bind&&e.bind.data&&e.bind.data.length>0?e.bind.data:[]},formatterClick(e,t,i){t.click&&t.click(e,t,i),i.stopPropagation()},initIndex({row:e,rowIndex:t}){this.index&&(e.elementIndex=t)},toggleEdit(e){},setEditStatus(e){},beginWithButtonEdit(e){this.rowBeginEdit(e.row,this.columns[e.$index])},rowBeginEdit(e,t){if(-1!=this.edit.rowIndex)return;let i=this.columns.find(e=>e.field==t.property);if(i){if(i.readonly)return;if(!i.edit||i.edit.keep&&"switch"==i.edit.type)return}if(this.enableEdit&&(v="",this.beginEdit(e,t,e.elementIndex)&&e.hasOwnProperty("elementIndex"))){if(this.edit.rowIndex==e.elementIndex)return;this.edit.rowIndex=e.elementIndex}},rowEndEdit(e,t,i){if(this.clickEdit&&i)return!0;if(!this.enableEdit){if(!this.errorFiled){if(-1!=this.edit.rowIndex&&!this.endEditAfter(e,t,this.edit.rowIndex))return!1;this.edit.rowIndex=-1}return!0}if(!this.doubleEdit&&i)return!0;if(!this.endEditBefore(e,t,this.edit.rowIndex))return!1;if(-1!=this.edit.rowIndex){let e=(this.url?this.rowData:this.tableData)[this.edit.rowIndex];for(let t=0;t<this.columns.length;t++){const i=this.columns[t];if(i.edit&&!this.validateRow(e,i))return}}return!!this.endEditAfter(e,t,this.edit.rowIndex)&&(this.edit.rowIndex=-1,!0)},validateRow(e,t){return this.validateColum(t,e)?(this.errorFiled="",!0):(this.errorFiled=t.field,v=t.title+v,this.$message.error(v),!1)},validateColum(e,t){if(e.hidden||e.bind)return!0;let i=t[e.field];if((e.require||e.required)&&"0"!=i&&(""===i||void 0===i))return this.errorFiled||(v="不能为空"),!1;if(!e.edit)return!0;let n=e.edit.type;if("int"==n||"decimal"==n||"number"==n){if(""==i||void 0==i)return!0;if("decimal"==n){if(!this.rule.decimal.test(i))return v="只能是数字",!1}else if(!this.rule.decimal.test(i))return v="只能是数字",!1;return void 0!=e.edit.min&&"number"===typeof e.edit.min&&i<e.edit.min?(v="不能小于"+e.edit.min,!1):!(void 0!=e.edit.max&&"number"===typeof e.edit.max&&i>e.edit.max)||(v="不能大于"+e.edit.max,!1)}if(i&&("text"==n||"string"==n)){if(void 0!=e.edit.min&&"number"===typeof e.edit.min&&i.length<e.edit.min)return v="至少"+e.edit.min+"个字符",!1;if(void 0!=e.edit.max&&"number"===typeof e.edit.max&&i.length>e.edit.max)return v="最多"+e.edit.max+"个字符",!1}return!0},delRow(){let e=this.getSelected();if(0==e.length)return this.$Message.error("请选择要删除的行!");let t=this.url?this.rowData:this.tableData,i=this.getSelectedIndex();if(0==i.length)return this.$Message.error("删除操作必须设置VolTable的属性index='true'");if(0==i.length);else for(let n=t.length-1;n>=0;n--)-1!=i.indexOf(n)&&t.splice(n,1);return this.edit.rowIndex=-1,e},addRow(e){e||(e={}),this.columns.forEach(t=>{e.hasOwnProperty(t.field)||(t.edit&&"switch"==t.edit.type?e[t.field]="bool"!=t.type&&0:e.hidden||(e[t.field]=void 0))}),this.url?this.rowData.push(e):this.tableData.push(e)},viewImg(e,t,i,n){n.stopPropagation(),this.base.previewImg(i)},link(e,t,i){i.stopPropagation(),this.$props.linkView(e,t)},getSelected(){return this.selectRows},getSelectedIndex(){if(!this.index)return[];let e=this.selectRows.map(e=>e.elementIndex);return e||[]},GetTableDictionary(e){if(0==this.remoteColumns.length||!e||0==e.length)return;let t={};for(let i=0;i<this.remoteColumns.length;i++){const n=this.remoteColumns[i];let a=n.bind.key,l=[];e.forEach(e=>{-1==l.indexOf(e[n.field])&&l.push(e[n.field])}),l.length>0&&(t[a]=l)}0!=t.length&&this.http.post("/api/Sys_Dictionary/GetTableDictionary",t).then(e=>{e.forEach(e=>{this.remoteColumns.forEach(t=>{t.bind.key==e.key&&(t.bind.data=Object.assign([],t.bind.data,e.data))})})})},load(e,t){if(!this.url)return;t&&this.resetPage();let i={page:this.paginations.page,rows:this.paginations.rows,sort:this.paginations.sort,order:this.paginations.order,wheres:[]},n=!0;e&&(i=Object.assign(i,e)),this.$emit("loadBefore",i,e=>{n=e}),n&&(i.wheres&&i.wheres instanceof Array&&(i.wheres=JSON.stringify(i.wheres)),this.loading=!0,this.http.post(this.url,i).then(e=>{this.rowKey&&(this.randomTableKey++,this.rowData.splice(0)),this.loading=!1,this.$emit("loadAfter",e.rows||[],e=>{n=e},e),n&&(this.GetTableDictionary(e.rows),this.rowData=e.rows||[],this.paginations.total=e.total,this.getSummaries(e))},e=>{this.loading=!1}))},getSummaries(e){this.summary&&e.summary&&(this.summaryData.splice(0),this.columnIndex&&this.summaryData.push(""),this.ck&&this.summaryData.push(""),this.columns.forEach(t=>{t.hidden||(e.summary.hasOwnProperty(t.field)?this.summaryData.push(e.summary[t.field]):this.summaryData.push(""))}),this.summaryData.length>0&&""==this.summaryData[0]&&(this.summaryData[0]="合计"))},getInputChangeSummaries(){},handleSizeChange(e){this.paginations.size=e,this.paginations.rows=e,this.load()},handleCurrentChange(e){this.paginations.page=e,this.load()},sortChange(e){this.paginations.sort=e.prop,this.paginations.order="ascending"==e.order?"asc":"desc",this.load()},resetPage(){this.paginations.page=1},selectionChange(e){if(this.selectRows=e,this.single&&(1==e.length&&this.$emit("rowChange",e[0]),e.length>1)){let t=e[e.length-1];this.$refs.table.toggleRowSelection(e[0]),this.selectRows=[t]}},getColor(e,t){let i=e[t.field];if(t.getColor&&"function"===typeof t.getColor){let i=t.getColor(e,t);if(i)return i}if(!i&&"0"!=i)return"";if(!this.formatConfig[t.field])return this.formatConfig[t.field]=[i],this.colors[0];let n=this.formatConfig[t.field].indexOf(i);return-1!=n?this.colors[n]:this.formatConfig[t.field].length>5?"":(-1==n&&(this.formatConfig[t.field].push(i),n=this.formatConfig[t.field].length-1),this.colors[n])},formatterDate(e,t){return(e[t.field]||"").substr(0,10)},formatter(e,t,i){if(!i)return e[t.property];let n=e[t.field];if(t.edit&&"switch"==t.edit.type)return n?"是":"否";if(!t.bind||!t.bind.data)return e[t.field];if(!n&&0!=n)return n;if(("selectList"==t.bind.type||"checkbox"==t.bind.type)&&"string"===typeof n&&-1!=n.indexOf(","))return this.getSelectFormatter(t,n);let a=t.bind.data.filter(e=>""!==e.key&&void 0!==e.key&&e.key+""===n+"");return a&&a.length>0&&(n=a[0].value),n},getSelectFormatter(e,t){let i=t.split(",");for(let n=0;n<i.length;n++)e.bind.data.forEach(e=>{""!==e.key&&void 0!==e.key&&e.key+""==i[n]+""&&(i[n]=e.value)});return i.join(",")},onChange(e,t,i,n){let a=e.row;n.onChange&&!n.onChange(a,t,i)||this.getInputSummaries(e,t,i,n)},getInputSummaries(e,t,i,n){if(!n.summary)return;let a=0,l=0;(this.url?this.rowData:this.tableData).forEach((e,t)=>{e.hasOwnProperty(n.field)&&!isNaN(e[n.field])&&(l=t,a+=1*e[n.field])}),this.summaryData[this.summaryIndex[n.field]]=a},getSummaryData({columns:e,data:t}){return this.summaryData},getCellStyle(e){if(e.column.property)return this.cellStyleColumns[e.column.property]&&this.cellStyleColumns[e.column.property](e.row,e.rowIndex,e.columnIndex)},compareDate(e,t){return!t||e.valueOf()<("number"==typeof t?t:new Date(t).valueOf())},getDateOptions(e,t){return!(!t.min&&!t.max||!e)&&(t.min&&-1==t.min.indexOf(" ")&&(t.min=t.min+" 00:00:000"),this.compareDate(e,t.min)||!this.compareDate(e,t.max))},getDateFormat(e){return"date"==e.edit.type?"YYYY-MM-DD":"YYYY-MM-DD HH:mm:ss"},userSelect(e,t){this.selectRows=e,this.single||this.$emit("rowChange",{row:t,selection:e})},isEmptyTag(e,t){return e[t.field]||"0"==e[t.field]?"":"empty-tag"}}}),D=(i("fb43"),i("6c80"),i("6b0d")),F=i.n(D);const E=F()(C,[["render",j],["__scopeId","data-v-14fae056"]]);t["a"]=E},1356:function(e,t,i){"use strict";i("aa75")},3893:function(e,t,i){},"3cf0":function(e,t,i){"use strict";i("455e")},"3d49":function(e,t,i){},4360:function(e,t,i){"use strict";i("14d9");var n=i("5502");const a={USER:"user"};function l(e){if(e.userInfo)return e.userInfo;let t=localStorage.getItem(a.USER);return t&&(e.userInfo=JSON.parse(t)),e.userInfo}t["a"]=Object(n["a"])({state:{data:{},permission:[],isLoading:!1,userInfo:null},mutations:{setPermission(e,t){t&&"object"==typeof t&&(t instanceof Array?e.permission.push(...t):e.permission=t)},setUserInfo(e,t){e.userInfo=t,localStorage.setItem(a.USER,JSON.stringify(t))},clearUserInfo(e){e.permission=[],e.userInfo=null,localStorage.removeItem(a.USER)},test(e){return 113344},updateLoadingState(e,t){e.isLoading=t}},getters:{getPermission:e=>t=>t?e.permission.find(e=>e.path==t):e.permission,getUserInfo:e=>()=>(l(e),e.userInfo),getUserName:e=>()=>(l(e),e.userInfo?e.userInfo.userName:"未获取到登陆信息"),getToken:e=>()=>(l(e),e.userInfo?"Bearer "+e.userInfo.token:""),isLogin:e=>()=>!!l(e),isLoading:e=>()=>e.isLoading,data:e=>()=>e.data,getData:e=>()=>e.data},actions:{setPermission(e,t){e.commit("setPermission",t)},toDo(e){return e.Store.m},onLoading(e,t){e.commit("updateLoadingState",t)}}})},"455e":function(e,t,i){},"4d00":function(e,t,i){},"56d7":function(e,t,i){"use strict";i.r(t);var n=i("7a23");const a=Object(n["o"])("div",{id:"nav"},null,-1);function l(e,t,i,l,o,r){const s=Object(n["W"])("router-view"),d=Object(n["W"])("el-config-provider");return Object(n["N"])(),Object(n["n"])(n["b"],null,[a,Object(n["s"])(d,{locale:o.locale},{default:Object(n["nb"])(()=>[Object(n["s"])(s)]),_:1},8,["locale"])],64)}var o=i("7864"),r=i("3ef0"),s=i.n(r),d={name:"vol_app",components:{[o["a"].name]:o["a"]},data(){return{locale:s.a}}},c=(i("1356"),i("6b0d")),h=i.n(c);const u=h()(d,[["render",l]]);var f=u,m=i("6605");let p=[{path:"/Sys_Log",name:"sys_Log",component:()=>i.e("chunk-2d21061e").then(i.bind(null,"b83e"))},{path:"/Sys_User",name:"Sys_User",component:()=>i.e("chunk-2d0db7f7").then(i.bind(null,"6fb3"))},{path:"/permission",name:"permission",component:()=>i.e("chunk-2b1e2ba5").then(i.bind(null,"a81b"))},{path:"/Sys_Dictionary",name:"Sys_Dictionary",component:()=>i.e("chunk-2d222d3a").then(i.bind(null,"cfef"))},{path:"/Sys_Role",name:"Sys_Role",component:()=>i.e("chunk-2d0a38d5").then(i.bind(null,"0351"))},{path:"/Sys_Role1",name:"Sys_Role1",component:()=>i.e("chunk-2d21d7c9").then(i.bind(null,"d205"))},{path:"/PDAPermission",name:"Sys_RoleAuth",component:()=>i.e("chunk-5699b4ef").then(i.bind(null,"2f2e"))},{path:"/Sys_DictionaryList",name:"Sys_DictionaryList",component:()=>i.e("chunk-2d23811f").then(i.bind(null,"fe8b"))},{path:"/Dt_plcinfohead",name:"Dt_plcinfohead",component:()=>i.e("chunk-2d21681e").then(i.bind(null,"c380"))},{path:"/Dt_plcinfodetail",name:"Dt_plcinfodetail",component:()=>i.e("chunk-2d224cf0").then(i.bind(null,"e25b"))},{path:"/Dt_equipmentinfo",name:"Dt_equipmentinfo",component:()=>i.e("chunk-2d0e5987").then(i.bind(null,"94c9"))},{path:"/Dt_stationmanager",name:"Dt_stationmanager",component:()=>i.e("chunk-2d22c6c3").then(i.bind(null,"f2bc"))},{path:"/Dt_rgvtaskinfo",name:"Dt_rgvtaskinfo",component:()=>i.e("chunk-2d0df20a").then(i.bind(null,"891d"))},{path:"/Dt_rgvtaskinfo_hty",name:"Dt_rgvtaskinfo_hty",component:()=>i.e("chunk-2d219f9b").then(i.bind(null,"ba17"))},{path:"/Dt_stacktaskinfo",name:"Dt_stacktaskinfo",component:()=>i.e("chunk-2d0ae8fd").then(i.bind(null,"0b1f"))},{path:"/Dt_stacktaskinfo_hty",name:"Dt_stacktaskinfo_hty",component:()=>i.e("chunk-2d207366").then(i.bind(null,"a023"))},{path:"/Dt_wcstaskinfo",name:"Dt_wcstaskinfo",component:()=>i.e("chunk-2d22c0e8").then(i.bind(null,"f239"))},{path:"/Dt_wcstaskinfo_hty",name:"Dt_wcstaskinfo_hty",component:()=>i.e("chunk-2d237cb1").then(i.bind(null,"fd41"))},{path:"/Dt_sccurrentstate",name:"Dt_sccurrentstate",component:()=>i.e("chunk-2d0cf39d").then(i.bind(null,"638b"))},{path:"/Dt_trackloginfo",name:"Dt_trackloginfo",component:()=>i.e("chunk-2d0b2727").then(i.bind(null,"23c3"))},{path:"/Dt_dispatchmanagement",name:"Dt_dispatchmanagement",component:()=>i.e("chunk-2d0d7dcc").then(i.bind(null,"792f"))},{path:"/VV_Dispatch",name:"VV_Dispatch",component:()=>i.e("chunk-2d238502").then(i.bind(null,"ff9e"))},{path:"/TaskDispatch",name:"TaskDispatch",component:()=>i.e("chunk-2d0ccbc9").then(i.bind(null,"4ece"))},{path:"/Dt_labelingmachine",name:"Dt_labelingmachine",component:()=>i.e("chunk-2d0b5f36").then(i.bind(null,"1aa1"))},{path:"/Dt_agvtask",name:"Dt_agvtask",component:()=>i.e("chunk-2d0da935").then(i.bind(null,"6bd7"))},{path:"/Dt_agvtask_hty",name:"Dt_agvtask_hty",component:()=>i.e("chunk-2d225bf6").then(i.bind(null,"e65d"))},{path:"/Dt_CacheTask",name:"Dt_CacheTask",component:()=>i.e("chunk-2d216fc4").then(i.bind(null,"c595"))},{path:"/Bill_group_stock",name:"Bill_group_stock",component:()=>i.e("chunk-2d0e9b23").then(i.bind(null,"8f43"))},{path:"/Base_ware_location",name:"Base_ware_location",component:()=>i.e("chunk-3ea04128").then(i.bind(null,"ef87"))},{path:"/Base_pda_location",name:"Base_pda_location",component:()=>i.e("chunk-eaad417c").then(i.bind(null,"8132"))},{path:"/VV_ContainerInfo",name:"VV_ContainerInfo",component:()=>i.e("chunk-2d0dd7c1").then(i.bind(null,"821b"))},{path:"/Log",name:"Log",component:()=>i.e("chunk-07ba603d").then(i.bind(null,"f2f9"))},{path:"/dt_materielinfo",name:"dt_materielinfo",component:()=>i.e("chunk-2d22d443").then(i.bind(null,"f784"))},{path:"/Base_routing_table",name:"Base_routing_table",component:()=>i.e("chunk-2d0c82d2").then(i.bind(null,"5485"))},{path:"/Bill_pda_groupdisk",name:"Bill_pda_groupdisk",component:()=>i.e("chunk-2d21f355").then(i.bind(null,"d99c"))},{path:"/dt_stationinfo",name:"dt_stationinfo",component:()=>i.e("chunk-2d0dd7d2").then(i.bind(null,"8235"))},{path:"/BufferRack",name:"BufferRack",component:()=>i.e("chunk-2d23774f").then(i.bind(null,"faca"))},{path:"/DevInfo",name:"DevInfo",component:()=>i.e("chunk-2d0d0b27").then(i.bind(null,"68a0"))},{path:"/InterfaceCallQuery",name:"InterfaceCallQuery",component:()=>i.e("chunk-2d2304b1").then(i.bind(null,"ec52"))}];var b=p,y=i("4360");let g=[{path:"/404",name:"404",component:()=>i.e("chunk-45707914").then(i.bind(null,"6707")),meta:{anonymous:!0}},{path:"/401",name:"401",component:()=>i.e("chunk-1a29e60c").then(i.bind(null,"bcc4"))},{path:"/coding",name:"coding",component:()=>i.e("chunk-0ec37496").then(i.bind(null,"6611"))}];var O=g;let k=[{path:"/chart",name:"chart",component:()=>Promise.all([i.e("chunk-2ecfd031"),i.e("chunk-7b7d4f23")]).then(i.bind(null,"44c3"))},{path:"/formChart",name:"formChart",component:()=>Promise.all([i.e("chunk-2ecfd031"),i.e("chunk-1f35fdf2")]).then(i.bind(null,"2ac0"))},{path:"/flex",name:"flex",component:()=>i.e("chunk-39bbaed0").then(i.bind(null,"ea54"))}];var j=k;const w=[{path:"/",name:"Index",component:()=>i.e("chunk-3bfb476a").then(i.bind(null,"d504")),redirect:"/home",children:[...b,...O,...j,{path:"/home",name:"home",component:()=>i.e("chunk-d6914d30").then(i.bind(null,"bb51"))},{path:"/UserInfo",name:"UserInfo",component:()=>i.e("chunk-654aa0e4").then(i.bind(null,"8f77"))},{path:"/sysMenu",name:"sysMenu",component:()=>i.e("chunk-7364e464").then(i.bind(null,"4c04"))},{path:"/coder",name:"coder",component:()=>i.e("chunk-7c90c5bc").then(i.bind(null,"c016"))},{path:"/formDraggable",name:"formDraggable",component:()=>Promise.all([i.e("chunk-0be6bc6c"),i.e("chunk-04ca5558")]).then(i.bind(null,"f9ee"))},{path:"/formSubmit",name:"formSubmit",component:()=>i.e("chunk-197f0b6d").then(i.bind(null,"7533")),meta:{keepAlive:!1}},{path:"/formCollectionResultTree",name:"formCollectionResultTree",component:()=>i.e("chunk-a20c150e").then(i.bind(null,"1e7f")),meta:{keepAlive:!1}}]},{path:"/login",name:"login",component:()=>i.e("chunk-441d8e60").then(i.bind(null,"a55b"))},{path:"/bigdata",name:"bigdata",component:()=>Promise.all([i.e("chunk-2ecfd031"),i.e("chunk-b982dc78")]).then(i.bind(null,"3142")),meta:{keepAlive:!1}}],x=Object(m["a"])({history:Object(m["b"])(),routes:w});x.beforeEach((e,t,i)=>0==e.matched.length?i({path:"/404"}):(y["a"].dispatch("onLoading",!0),e.hasOwnProperty("meta")&&e.meta.anonymous||y["a"].getters.isLogin()||"/login"==e.path?i():void i({path:"/login",query:{redirect:Math.random()}}))),x.afterEach((e,t)=>{y["a"].dispatch("onLoading",!1)}),x.onError(e=>{try{console.log(e.message),localStorage.setItem("route_error",e.message)}catch(t){}window.location.href="/"});var v=x;i("7dd6"),i("88a7"),i("271a"),i("5494"),i("14d9");let C={isPhone(e){return/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(e)},isDecimal(e){return/(^[\-0-9][0-9]*(.[0-9]+)?)$/.test(e)},isNumber(e){return/(^[\-0-9][0-9]*([0-9]+)?)$/.test(e)},isMail(e){return/^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/.test(e)},isUrl(e){return this.checkUrl(e)},checkUrl(e){var t="^((https|http|ftp)://)?(([\\w_!~*'()\\.&=+$%-]+: )?[\\w_!~*'()\\.&=+$%-]+@)?(([0-9]{1,3}\\.){3}[0-9]{1,3}|(localhost)|([\\w_!~*'()-]+\\.)*\\w+\\.[a-zA-Z]{1,6})(:[0-9]{1,5})?((/?)|(/[\\w_!~*'()\\.;?:@&=+$,%#-]+)+/?)$",i=new RegExp(t,"i");return!!i.test(encodeURI(e))},matchUrlIp(e,t){return!(!e||!t)&&e.indexOf(t.replace("https://","").replace("http://",""))>=0},getImgSrc(e,t){return this.isUrl(e)?e:t?t+e:e},previewImg(e,t){e&&!this.isUrl(e)&&t&&("/"==e.substr(0,1)&&"/"==t.substr(t.length-1,1)&&(e=e.substr(1)),e=t+e);let i="vol-preview",n=document.getElementById(i);if(!n){n=document.createElement("div"),n.setAttribute("id","vol-preview");let t=document.createElement("div");t.style.position="absolute",t.style.width="100%",t.style.height="100%",t.style.background="black",t.style.opacity="0.6",n.appendChild(t),n.style.position="fixed",n.style.width="100%",n.style.height="100%",n.style.top=0,n.style["z-index"]=9999999;let i=document.createElement("img");return i.setAttribute("class","vol-preview-img"),i.style.position="absolute",i.style.top="50%",i.style.left="50%",i.style["max-width"]="90%",i.style["max-height"]="90%",i.style.transform="translate(-50%,-50%)",i.setAttribute("src",e),n.appendChild(i),n.addEventListener("click",(function(){this.style.display="none"})),void document.body.appendChild(n)}let a=document.body.appendChild(n).querySelector(".vol-preview-img");a.setAttribute("src",e),n.style.display="block"},dowloadFile(e,t,i,n){if(!e)return alert("此文件没有url不能下载");this.isUrl(e)||(e=n+e),window.open(e)},downloadImg(e){if(e.url&&e.callback&&"function"===typeof e.callback){if(this.isUrl(e.url)&&!this.matchUrlIp(e.url,e.backGroundUrl))return e.url;if(!this.isUrl(e.url)){if(!this.isUrl(e.backGroundUrl+e.url))return;e.url=e.backGroundUrl+e.url}var t=new XMLHttpRequest;if(t.open("get",e.url,!0),t.responseType="blob",t.setRequestHeader("Content-Type","application/json"),e.header&&"object"===typeof e.header)for(const i in e.header)t.setRequestHeader(i,e.header[i]);t.onload=function(){if(200==this.status){var e=this.response;callback(window.URL.createObjectURL(e))}},t.send()}},convertTree(e,t){var i=[],n=[];e.forEach(a=>{a.hidden||void 0===a.id||a.id===a.parentId||e.some(e=>a.parentId==e.id)?t&&t(a,e,!0,i):(a.isRoot=!0,t&&t(a,e,!0,i),n.push(a),F(a.id,a,e,t,i))});var a=e.filter(e=>-1==i.indexOf(e.id)&&!e.hidden);return n.push(...a),n},getTreeAllParent(e,t){var i=[];if(!(t instanceof Array))return i;t.forEach(e=>{(e.id===e.parentId||t.some(t=>t.parentId===e.id&&t.id===e.parentId))&&(e.parentId=0)});var n=t.find(t=>t.id===e);if(!n)return[];i.push(n);var a=[n.parentId];for(let o=0;o<a.length;o++){var l=t.find(e=>e.id===a[o]&&e.id!==e.parentId);if(!l)return i;a.push(l.parentId),i.unshift(l)}return i}};var D=C;function F(e,t,i,n,a){-1==a.indexOf(e)&&a.push(e),i.forEach(l=>{l.hidden||l.parentId!=e||(t.children||(t.children=[]),n&&n(l,t,!1),t.children.push(l),F(l.id,l,i,n,a))})}var E=i("c1fb");i("a471");let S=[{name:"查 询",value:"Search",icon:"el-icon-search",class:"",type:"primary",onClick:function(){this.search()}},{name:"新 建",icon:"el-icon-plus",value:"Add",class:"",type:"success",onClick:function(){this.add()}},{name:"编 辑",icon:"el-icon-edit",value:"Update",class:"",type:"primary",onClick:function(){this.edit()}},{name:"删 除",icon:"el-icon-delete",class:"",value:"Delete",type:"danger",onClick:function(){this.del()}},{name:"审 核",icon:"el-icon-check",class:"",value:"Audit",plain:!0,type:"primary",onClick:function(){this.audit()}},{name:"导 入",icon:"el-icon-top",class:"",type:"success",plain:!0,value:"Import",onClick:function(){this.import()}},{name:"导 出",icon:"el-icon-bottom",type:"success",plain:!0,value:"Export",onClick:function(){this.export()}},{name:"手动取消",icon:"el-icon-edit",class:"",type:"primary",value:"CancelManually",onClick:function(){}},{name:"手动取消",icon:"el-icon-edit",class:"",type:"primary",value:"CacheManually",onClick:function(){}},{name:"修改货位状态",icon:"el-icon-edit",class:"",type:"primary",value:"ModifyLocationStatus",onClick:function(){}},{name:"删除库存信息",icon:"el-icon-edit",class:"",type:"primary",value:"DelStock",onClick:function(){}}];var A=S;let N={getMenu(){return E["a"].get("/api/getTreeMenu")},getButtons(e,t,i,n){i&&(i="/"+i);let a=y["a"].getters.getPermission(i||e);if(!a&&(a=y["a"].getters.getPermission(e.substring(1)),!a&&(a=y["a"].getters.getPermission("/"+n),!a)))return void _();let l=a.permission,o=A.filter(e=>!e.value||-1!=l.indexOf(e.value));return t&&t instanceof Array&&o.push(...t),o},to401(){_()}};function _(){const e=Object(m["c"])();e.push({path:"/401"})}var I=N;const B=e=>(Object(n["Q"])("data-v-b3f39a56"),e=e(),Object(n["O"])(),e),P={class:"layout-container"},R=["href"],V=B(()=>Object(n["o"])("i",{class:"el-icon-check"},null,-1)),T=B(()=>Object(n["o"])("i",{class:"el-icon-close"},null,-1)),U={class:"view-container"},$={class:"grid-search"},L={key:0,class:"form-closex"},K=B(()=>Object(n["o"])("i",{class:"el-icon-search"},null,-1)),M=B(()=>Object(n["o"])("i",{class:"el-icon-refresh-right"},null,-1)),z=B(()=>Object(n["o"])("i",{class:"el-icon-switch-button"},null,-1)),H={key:0,class:"fs-line"},W={class:"view-header"},q={class:"desc-text"},Y=B(()=>Object(n["o"])("i",{class:"el-icon-s-grid"},null,-1)),X={class:"notice"},G=["title"],J={class:"search-line"},Q={class:"btn-group"},Z=B(()=>Object(n["o"])("i",{class:"el-icon-arrow-down el-icon--right"},null,-1)),ee={class:"box-com"},te={class:"item form-item"},ie={key:0,class:"grid-detail table-item item"},ne={class:"toolbar"},ae={class:"title form-text"},le=B(()=>Object(n["o"])("i",{class:"el-icon-menu"},null,-1)),oe={class:"btns"},re=B(()=>Object(n["o"])("i",{class:"el-icon-close"},"关闭",-1)),se={class:"grid-body"},de={class:"grid-container"};function ce(e,t,i,a,l,o){const r=Object(n["W"])("Audit"),s=Object(n["W"])("el-button"),d=Object(n["W"])("vol-box"),c=Object(n["W"])("UploadExcel"),h=Object(n["W"])("vol-form"),u=Object(n["W"])("QuickSearch"),f=Object(n["W"])("el-dropdown-item"),m=Object(n["W"])("el-dropdown-menu"),p=Object(n["W"])("el-dropdown"),b=Object(n["W"])("vol-table");return Object(n["N"])(),Object(n["n"])("div",P,[Object(n["o"])("a",{href:e.exportHref,ref:"export"},null,8,R),Object(n["s"])(d,{modelValue:e.auditParam.model,"onUpdate:modelValue":t[1]||(t[1]=t=>e.auditParam.model=t),height:300,width:550,lazy:!0,title:e.table.cnName+"--审核"},{content:Object(n["nb"])(()=>[Object(n["o"])("div",null,[Object(n["s"])(r,{auditParam:e.auditParam},null,8,["auditParam"])])]),footer:Object(n["nb"])(()=>[Object(n["o"])("div",null,[Object(n["s"])(s,{type:"primary",size:"mini",onClick:e.saveAudit},{default:Object(n["nb"])(()=>[V,Object(n["r"])("审核")]),_:1},8,["onClick"]),Object(n["s"])(s,{size:"mini",onClick:t[0]||(t[0]=t=>e.auditParam.model=!1)},{default:Object(n["nb"])(()=>[T,Object(n["r"])("关闭")]),_:1})])]),_:1},8,["modelValue","title"]),e.upload.url?(Object(n["N"])(),Object(n["l"])(d,{key:0,modelValue:e.upload.excel,"onUpdate:modelValue":t[2]||(t[2]=t=>e.upload.excel=t),height:350,width:600,lazy:!0,title:e.table.cnName+"--导入"},{default:Object(n["nb"])(()=>[Object(n["s"])(c,{ref:"upload_excel",onImportExcelAfter:e.importAfter,importExcelBefore:e.importExcelBefore,url:e.upload.url,template:e.upload.template},null,8,["onImportExcelAfter","importExcelBefore","url","template"])]),_:1},8,["modelValue","title"])):Object(n["m"])("",!0),(Object(n["N"])(),Object(n["l"])(Object(n["Y"])(e.dynamicComponent.gridHeader),{ref:"gridHeader",onParentCall:e.parentCall},null,40,["onParentCall"])),Object(n["o"])("div",U,[Object(n["o"])("div",$,[Object(n["ob"])(Object(n["o"])("div",{class:Object(n["D"])([e.fiexdSearchForm?"fiexd-search-box":"search-box"])},[Object(n["s"])(h,{ref:"searchForm",style:{padding:"0 15px"},"label-width":e.labelWidth,formRules:e.searchFormOptions,formFields:e.searchFormFields},{footer:Object(n["nb"])(()=>[e.fiexdSearchForm?Object(n["m"])("",!0):(Object(n["N"])(),Object(n["n"])("div",L,[Object(n["s"])(s,{size:"mini",type:"primary",plain:"",onClick:e.search},{default:Object(n["nb"])(()=>[K,Object(n["r"])("查询 ")]),_:1},8,["onClick"]),Object(n["s"])(s,{size:"mini",type:"success",plain:"",onClick:e.resetSearch},{default:Object(n["nb"])(()=>[M,Object(n["r"])("重置 ")]),_:1},8,["onClick"]),Object(n["s"])(s,{size:"mini",plain:"",onClick:t[3]||(t[3]=t=>e.searchBoxShow=!e.searchBoxShow)},{default:Object(n["nb"])(()=>[z,Object(n["r"])("关闭 ")]),_:1})]))]),_:1},8,["label-width","formRules","formFields"]),e.fiexdSearchForm?(Object(n["N"])(),Object(n["n"])("div",H)):Object(n["m"])("",!0)],2),[[n["kb"],e.searchBoxShow]]),Object(n["o"])("div",W,[Object(n["o"])("div",q,[Y,Object(n["o"])("span",null,Object(n["bb"])(e.table.cnName),1)]),Object(n["o"])("div",X,[Object(n["o"])("a",{class:"text",title:e.extend.text},Object(n["bb"])(e.extend.text),9,G)]),Object(n["o"])("div",J,[e.singleSearch?(Object(n["N"])(),Object(n["l"])(u,{key:0,singleSearch:e.singleSearch,searchFormFields:e.searchFormFields,tiggerPress:e.quickSearchKeyPress},null,8,["singleSearch","searchFormFields","tiggerPress"])):Object(n["m"])("",!0)]),Object(n["o"])("div",Q,[(Object(n["N"])(!0),Object(n["n"])(n["b"],null,Object(n["U"])(e.splitButtons,(t,i)=>Object(n["ob"])((Object(n["N"])(),Object(n["l"])(s,{key:i,type:t.type,size:"small",class:Object(n["D"])(t.class),plain:t.plain,onClick:i=>e.onClick(t.onClick)},{default:Object(n["nb"])(()=>[Object(n["o"])("i",{class:Object(n["D"])(t.icon)},null,2),Object(n["r"])(" "+Object(n["bb"])(t.name),1)]),_:2},1032,["type","class","plain","onClick"])),[[n["kb"],!t.hidden]])),128)),e.buttons.length>e.maxBtnLength?(Object(n["N"])(),Object(n["l"])(p,{key:0,size:"small",onClick:e.changeDropdown},{dropdown:Object(n["nb"])(()=>[Object(n["s"])(m,null,{default:Object(n["nb"])(()=>[(Object(n["N"])(!0),Object(n["n"])(n["b"],null,Object(n["U"])(e.buttons.slice(e.maxBtnLength,e.buttons.length),(t,i)=>Object(n["ob"])((Object(n["N"])(),Object(n["l"])(f,{onClick:i=>e.changeDropdown(t.name),name:t.name,icon:t.icon,key:i},{default:Object(n["nb"])(()=>[Object(n["r"])(Object(n["bb"])(t.name),1)]),_:2},1032,["onClick","name","icon"])),[[n["kb"],!t.hidden]])),128))]),_:1})]),default:Object(n["nb"])(()=>[Object(n["s"])(s,{type:"primary",plain:"",size:"small"},{default:Object(n["nb"])(()=>[Object(n["r"])(" 更多"),Z]),_:1})]),_:1},8,["onClick"])):Object(n["m"])("",!0)])]),e.boxInit?(Object(n["N"])(),Object(n["l"])(d,{key:0,modelValue:e.boxModel,"onUpdate:modelValue":t[5]||(t[5]=t=>e.boxModel=t),title:e.table.cnName+e.getCurrentAction(),width:e.boxOptions.width,height:e.boxOptions.height,padding:0,"on-model-close":e.onModelClose},{content:Object(n["nb"])(()=>[Object(n["o"])("div",ee,[(Object(n["N"])(),Object(n["l"])(Object(n["Y"])(e.dynamicComponent.modelHeader),{ref:"modelHeader",onParentCall:e.parentCall},null,40,["onParentCall"])),Object(n["o"])("div",te,[Object(n["s"])(h,{ref:"form",editor:e.editor,"load-key":!1,"label-width":e.boxOptions.labelWidth,formRules:e.editFormOptions,formFields:e.editFormFields},null,8,["editor","label-width","formRules","formFields"])]),(Object(n["N"])(),Object(n["l"])(Object(n["Y"])(e.dynamicComponent.modelBody),{ref:"modelBody",onParentCall:e.parentCall},null,40,["onParentCall"])),e.detail.columns&&e.detail.columns.length>0?(Object(n["N"])(),Object(n["n"])("div",ie,[Object(n["o"])("div",ne,[Object(n["o"])("div",ae,[Object(n["o"])("span",null,[le,Object(n["r"])(" "+Object(n["bb"])(e.detail.cnName),1)])]),Object(n["o"])("div",oe,[(Object(n["N"])(!0),Object(n["n"])(n["b"],null,Object(n["U"])(e.detailOptions.buttons,(t,i)=>Object(n["ob"])((Object(n["N"])(),Object(n["l"])(s,{key:i,plain:t.plain,onClick:i=>e.onClick(t.onClick),size:"mini"},{default:Object(n["nb"])(()=>[Object(n["o"])("i",{class:Object(n["D"])(t.icon)},null,2),Object(n["r"])(Object(n["bb"])(t.name),1)]),_:2},1032,["plain","onClick"])),[[n["kb"],!("boolean"==typeof t.hidden&&t.hidden)]])),128))])]),Object(n["s"])(b,{ref:"detail",onLoadBefore:e.loadInternalDetailTableBefore,onLoadAfter:e.loadDetailTableAfter,onRowChange:e.detailRowOnChange,onRowClick:e.detailRowOnClick,url:e.detailOptions.url,"load-key":!1,index:e.detailOptions.edit,tableData:e.detailOptions.data,columns:e.detailOptions.columns,pagination:e.detailOptions.pagination,height:e.detailOptions.height,single:e.detailOptions.single,"pagination-hide":!1,defaultLoadPage:e.detailOptions.load,doubleEdit:e.detailOptions.doubleEdit,beginEdit:e.detailOptions.beginEdit,endEditBefore:e.detailOptions.endEditBefore,endEditAfter:e.detailOptions.endEditAfter,summary:e.detailOptions.summary,"click-edit":e.detailOptions.clickEdit,"column-index":e.detailOptions.columnIndex,ck:e.detailOptions.ck},null,8,["onLoadBefore","onLoadAfter","onRowChange","onRowClick","url","index","tableData","columns","pagination","height","single","defaultLoadPage","doubleEdit","beginEdit","endEditBefore","endEditAfter","summary","click-edit","column-index","ck"])])):Object(n["m"])("",!0),(Object(n["N"])(),Object(n["l"])(Object(n["Y"])(e.dynamicComponent.modelFooter),{ref:"modelFooter",onParentCall:e.parentCall},null,40,["onParentCall"]))])]),footer:Object(n["nb"])(()=>[Object(n["o"])("div",null,[(Object(n["N"])(!0),Object(n["n"])(n["b"],null,Object(n["U"])(e.boxButtons,(t,i)=>Object(n["ob"])((Object(n["N"])(),Object(n["l"])(s,{key:i,type:t.type,size:"mini",plain:t.plain,disabled:t.hasOwnProperty("disabled")&&!!t.disabled,onClick:i=>e.onClick(t.onClick)},{default:Object(n["nb"])(()=>[Object(n["o"])("i",{class:Object(n["D"])(t.icon)},Object(n["bb"])(t.name),3)]),_:2},1032,["type","plain","disabled","onClick"])),[[n["kb"],!("boolean"==typeof t.hidden&&t.hidden)]])),128)),Object(n["s"])(s,{size:"mini",type:"primary",plain:"",onClick:t[4]||(t[4]=t=>e.onModelClose(!1))},{default:Object(n["nb"])(()=>[re]),_:1})])]),_:1},8,["modelValue","title","width","height","on-model-close"])):Object(n["m"])("",!0)]),Object(n["o"])("div",se,[(Object(n["N"])(),Object(n["l"])(Object(n["Y"])(e.dynamicComponent.gridBody),{ref:"gridBody",onParentCall:e.parentCall},null,40,["onParentCall"]))]),Object(n["o"])("div",de,[Object(n["s"])(b,{ref:"table",single:e.single,rowKey:e.rowKey,loadTreeChildren:e.loadTreeTableChildren,onLoadBefore:e.loadTableBefore,onLoadAfter:e.loadTableAfter,onRowChange:e.rowOnChange,onRowClick:e.rowOnClick,onRowDbclick:e.rowOnDbClick,tableData:[],linkView:e.linkData,columns:e.columns,pagination:e.pagination,height:e.height,"max-height":e.tableMaxHeight,"pagination-hide":!1,url:e.url,"load-key":!1,defaultLoadPage:e.load,summary:e.summary,"double-edit":e.doubleEdit,index:e.doubleEdit,endEditBefore:e.endEditBefore,"click-edit":!0,"column-index":e.columnIndex,"text-inline":e.textInline,ck:e.ck},null,8,["single","rowKey","loadTreeChildren","onLoadBefore","onLoadAfter","onRowChange","onRowClick","onRowDbclick","linkView","columns","pagination","height","max-height","url","defaultLoadPage","summary","double-edit","index","endEditBefore","column-index","text-inline","ck"])])]),(Object(n["N"])(),Object(n["l"])(Object(n["Y"])(e.dynamicComponent.gridFooter),{ref:"gridFooter",onParentCall:e.parentCall},null,40,["onParentCall"]))])}function he(e,t){return Object(n["N"])(),Object(n["n"])("div")}const ue={},fe=h()(ue,[["render",he]]);var me=fe,pe=i("0b13"),be=i("6e5b");let ye={columns:{type:Array,default:()=>[]},detail:{type:Object,default:()=>({columns:[],sortName:""})},editFormFields:{type:Object,default:()=>({})},editFormOptions:{type:Array,default:()=>[]},searchFormFields:{type:Object,default:()=>({})},searchFormOptions:{type:Array,default:()=>[]},table:{type:Object,default:()=>({})},extend:{type:Object,default:()=>({})}};var ge=ye;let Oe={loadInternalDetailTableBefore(e,t){this.detailOptions.delKeys.length>0&&(this.detailOptions.delKeys=[]);let i=this.table.key;return this.currentRow&&this.currentRow.hasOwnProperty(i)&&(e.value=this.currentRow[i]),this.loadDetailTableBefore(e,t)},detailRowOnChange(e){this.detailRowChange(e)},detailRowChange(e){},detailRowOnClick({row:e,column:t,event:i}){this.detailRowClick({row:e,column:t,event:i})},detailRowClick({row:e,column:t,event:i}){},resetDetailTable(e){if(!this.detailOptions.columns||0==this.detailOptions.columns.length)return;let t=this.table.key,i={value:e?e[t]:this.currentRow[t]};this.$refs.detail&&(this.$refs.detail.reset(),this.$refs.detail.load(i))},refreshRow(){this.resetDetailTable()},addRow(){this.$refs.detail.addRow({}),this.updateDetailTableSummaryTotal()},delRow(){let e=this.$refs.detail.getSelected();if(!e||0==e.length)return this.$message.error("请选择要删除的行!");if(!this.delDetailRow(e))return!1;let t=!1;this.$confirm("确认要删除选择的数据吗?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then(()=>{if(t)return;t=!0,e=this.$refs.detail.delRow();let i=this.detailOptions.key;e.forEach(e=>{e.hasOwnProperty(i)&&e[i]&&this.detailOptions.delKeys.push(e[i])}),this.updateDetailTableSummaryTotal()})},updateDetailTableSummaryTotal(){this.$refs.detail&&(this.$refs.detail.paginations.total=this.$refs.detail.rowData.length,this.$refs.detail.summary&&this.$refs.detail.columns.forEach(e=>{e.summary&&this.$refs.detail.getInputSummaries(null,null,null,e)}))}};var ke=Oe;let je={onInit(){console.log("Create执行前")},onInited(){console.log("Create执行后")},mounted(){console.log("mounted")},searchBefore(e){return!0},searchAfter(e,t){return!0},searchDetailBefore(e){return!0},searchDetailAfter(e,t){return!0},delBefore(e,t){return!0},delAfter(e){return!0},delDetailRow(e){return!0},addBefore(e){return!0},async addBeforeAsync(e){return!0},addAfter(e){return!0},updateBefore(e){return!0},async updateBeforeAsync(e){return!0},updateAfter(e){return!0},auditBefore(e,t){return!0},auditAfter(e,t){return!0},resetAddFormBefore(){return!0},resetAddFormAfter(){return!0},resetUpdateFormBefore(){return!0},resetUpdateFormAfter(){return!0},modelOpenBefore(e){},modelOpenAfter(e){},importAfter(e){this.search()},importExcelBefore(e){return!0},reloadDicSource(){this.initDicKeys()},exportBefore(e){return!0},onModelClose(e){this.boxModel=!1}};var we=je;let xe={parentCall(e){if("function"!=typeof e)return console.log("扩展组件需要传入一个回调方法才能获取父级Vue对象");e(this)},getCurrentAction(){return this.currentReadonly?"":"--"+(this.currentAction==this.const.ADD?"新增":"编辑")},quickSearchKeyPress(e){13==e.keyCode&&""!=this.searchFormFields[this.singleSearch.field]&&this.search()},getButtons(){let e=this.buttons.findIndex(e=>"Search"==e.value);if(-1!=e&&this.buttons.splice(e+1,0,{icon:this.fiexdSearchForm?"el-icon-refresh-left":"el-icon-search",name:this.fiexdSearchForm?"重置":"高级查询",plain:!0,type:this.buttons[e].type,onClick:()=>{if(this.fiexdSearchForm)return this.resetSearch();this.searchBoxShow=!this.searchBoxShow}}),this.maxBtnLength+=-1==e?0:1,this.buttons.length<=this.maxBtnLength)return this.buttons;let t=this.buttons.slice(0,this.maxBtnLength);return t[this.maxBtnLength-1].last=!0,t},extendBtn(e,t){e&&t&&t instanceof Array&&t.forEach(t=>{e.splice(void 0==t.index?e.length:t.index,0,t)})},initBoxButtons(){let e=this.$route.path,t=this.permission.getButtons(e,null,this.extend.tableAction,this.table.name);t&&t.forEach(e=>{let t={};for(const i in e)t[i]=e[i];this.buttons.push(t)}),this.extend||(this.extend={}),this.extend.buttons||(this.extend.buttons={}),this.extend.buttons.view&&this.extendBtn(this.buttons,this.extend.buttons.view);let i=[],n=this.buttons.some(e=>{if(e.value&&(e.value.toLowerCase()==this.const.ADD.toLowerCase()||e.value.toLowerCase()==this.const.EDIT.toLowerCase()))return!0});this.currentReadonly=!n;let a={name:"刷新",type:"info",icon:"el-icon-refresh",onClick(){this.currentAction!=this.const.ADD&&this.refreshRow()}},l=this.buttons.some(e=>{if(e.value==this.const.IMPORT)return!0});if(l&&(this.upload.url=this.getUrl(this.const.IMPORT),this.upload.template.fileName=this.table.cnName,this.upload.template.url=this.http.ipAddress+this.getUrl(this.const.DOWNLOADTEMPLATE,!0)),!n)return this.editFormOptions.forEach(e=>{e.forEach(e=>{e.disabled=!0})}),this.detail.columns.forEach(e=>{e.hasOwnProperty("edit")&&(e["edit"]=!1)}),this.extendBtn(i,this.extend.buttons.box),this.boxButtons.push(...i),this.detailOptions.buttons.push(a),this.extendBtn(this.detailOptions.buttons,this.extend.buttons.detail),i;this.detailOptions.edit=!0,i.push({name:"保 存",icon:"el-icon-check",type:"danger",value:"save",onClick(){this.save()}},{name:"重 置",icon:"el-icon-refresh-right",type:"primary",onClick(){this.resetEdit()}}),this.detailOptions.buttons.push({name:"添加行",icon:"el-icon-plus",type:"primary",plain:!0,onClick(){this.addRow()}},{type:"danger",plain:!0,name:"删除行",icon:"el-icon-delete",onClick(){this.delRow()}}),this.extendBtn(i,this.extend.buttons.box),this.detailOptions.buttons.push(a),this.extendBtn(this.detailOptions.buttons,this.extend.buttons.detail),this.boxButtons.push(...i)},onClick(e){e.apply(this)},changeDropdown(e,t){let i=this.buttons.filter(t=>t.name==e);i&&i.length>0&&i[0].onClick.apply(this)},emptyValue(e){return"string"==typeof e&&""===e.trim()||(e instanceof Array&&!e.length||(null===e||void 0===e||""===e))},getSearchParameters(){this.fiexdSearchForm||(this.searchBoxShow=!1);let e={wheres:[]};for(const t in this.searchFormFields){let i=this.searchFormFields[t];if(this.emptyValue(i))continue;"number"==typeof i&&(i+="");let n=this.getSearchItem(t);if("cascader"==n&&(i=i.length?i[i.length-1]+"":""),"string"!=typeof i&&-1!=["date","datetime","range"].indexOf(n))for(let a=0;a<i.length;a++)this.emptyValue(i[a])||e.wheres.push({name:t,value:(i[a]+"").trim(),displayType:(()=>-1!=["date","datetime","range"].indexOf(n)?a?"lessorequal":"thanorequal":n)()});else e.wheres.push({name:t,value:"string"==typeof i?(i+"").trim():i.join(","),displayType:n})}return e},search(){this.$refs.table.load(null,!0)},loadTableBefore(e,t){let i=this.getSearchParameters();i&&(e=Object.assign(e,i));let n=this.searchBefore(e);t(n)},loadTableAfter(e,t,i){let n=this.searchAfter(e,i);t(n)},loadDetailTableBefore(e,t){if(this.currentAction==this.const.ADD)return t(!1),!1;let i=this.searchDetailBefore(e);t(i)},loadDetailTableAfter(e,t){let i=this.searchDetailAfter(e);t(i)},getSearchItem(e){let t;for(let i=0;i<this.searchFormOptions.length;i++){if(t)return t.type;const n=this.searchFormOptions[i];t=n.find(t=>t.field==e)}return t.type},resetSearch(){this.resetSearchForm(),this.resetSearchFormAfter&&this.resetSearchFormAfter()},resetEdit(){let e=this.currentAction!=this.const.ADD;if(!this[e?"resetUpdateFormBefore":"resetAddFormBefore"]())return;let t={};e&&(t[this.table.key]=this.editFormFields[this.table.key]),this.resetEditForm(t),this[e?"resetUpdateFormAfter":"resetAddFormAfter"]()},resetSearchForm(e){this.resetForm("searchForm",e)},resetEditForm(e){this.hasDetail&&this.$refs.detail&&this.$refs.detail.reset(),this.resetForm("form",e)},getKeyValueType(e,t){try{let i=(t?"e":"s")+"_b_";e.forEach(e=>{e.forEach(e=>{if(this.keyValueType.hasOwnProperty(i+e.field))return!0;let t;"switch"==e.type?this.keyValueType[e.field]=1:e.bind&&e.bind.data?t=e.bind.data:e.data&&(e.data instanceof Array?t=e.data:e.data.data&&e.data.data instanceof Array&&(t=e.data.data)),t&&t.length>0&&!this.keyValueType.hasOwnProperty(e.field)&&(this.keyValueType[e.field]=t[0].key,this.keyValueType[i+e.field]=e.type)})})}catch(i){console.log(i.message)}},resetForm(e,t){if(this.$refs[e]&&this.$refs[e].reset(),!t)return;let i,n;var a;"searchForm"==e?(i=this.searchFormFields,n="s_b_"):(i=this.editFormFields,n="e_b_"),this.keyValueType._dinit||(this.getKeyValueType(this.editFormOptions,!0),this.getKeyValueType(this.searchFormOptions,!1),this.keyValueType._dinit=!0);for(const o in i)if(t.hasOwnProperty(o)){let e=t[o],r=this.keyValueType[n+o];if("selectList"==r||"checkbox"==r||"cascader"==r)if("cascader"==r){var l=this.dicKeys.find(e=>e.fileds&&-1!=e.fileds.indexOf(o));l&&l.orginData&&l.orginData.length?("number"==typeof l.orginData[0].id?e=~~e:e+="",a=this.base.getTreeAllParent(e,l.orginData),a&&(e=a.map(e=>e.id))):e=[e]}else""!=e&&void 0!=e&&"string"==typeof e?e=e.split(","):"checkbox"==r&&(e=[]);else this.keyValueType.hasOwnProperty(o)&&"number"==typeof this.keyValueType[o]&&1*e==e?e*=1:null==e||void 0==e?e="":e+="";e instanceof Array?(i[o]&&(i[o]=[]),i[o]=e):i[o]=e}else i[o]=i[o]instanceof Array?[]:""},onBtnClick(e){this[e.method](e.data)},refresh(){this.search()},saveBefore(e){return!0},saveAfter(e,t){return!0},save(){this.$refs.form.validate(e=>{e&&this.saveExecute()})},async saveExecute(){let e={};for(const l in this.editFormFields)if(this.uploadfiled&&this.uploadfiled.length>0&&-1!=this.uploadfiled.indexOf(l)&&this.editFormFields[l]instanceof Array){let t=this.editFormFields[l].map(e=>e.path);e[l]=t.join(",")}else void 0===this.editFormFields[l]&&this.dicKeys.some(e=>e.fileds&&-1!=e.fileds.indexOf(l))?e[l]=null:e[l]=this.editFormFields[l];for(const l in e)if(e[l]instanceof Array){var t=this.dicKeys.some(e=>"cascader"==e.type&&e.fileds&&-1!=e.fileds.indexOf(l));t&&e[l].length?e[l]=e[l][e[l].length-1]:e[l]=e[l].join(",")}let i={mainData:e,detailData:null,delKeys:null};this.hasDetail&&(i.detailData=this.$refs.detail.rowData),this.detailOptions.delKeys.length>0&&(i.delKeys=this.detailOptions.delKeys);let n=this.currentAction==this.const.ADD;if(n){if(!this.addBefore(i)||!await this.addBeforeAsync(i))return}else if(!this.updateBefore(i)||!await this.updateBeforeAsync(i))return;let a=this.getUrl(this.currentAction);this.http.post(a,i,!0).then(e=>{if(n){if(!this.addAfter(e))return;if(this.continueAdd&&e.status)return this.$success(e.message),this.currentAction=this.const.ADD,this.currentRow={},this.resetAdd(),void this.refresh()}else if(!this.updateAfter(e))return;if(!e.status)return this.$error(e.message);if(this.$success(e.message),this.boxOptions.saveClose)return this.boxModel=!1,void this.$refs.table.load(null,n);let t;t="string"==typeof e.data&&""!=e.data?JSON.parse(e.data):e.data,this.currentAction==this.const.ADD&&(this.editFormFields[this.table.key]="",this.currentAction=this.const.EDIT,this.currentRow=t.data),this.resetEditForm(t.data),this.hasDetail&&(this.detailOptions.delKeys=[],t.list&&this.$refs.detail.rowData.push(...t.list)),this.$refs.table.load(null,n)})},del(e){if(e?e instanceof Array||(e=[e]):e=this.$refs.table.getSelected(),!e||0==e.length)return this.$error("请选择要删除的行!");let t=e.map(e=>e[this.table.key]);if(!t||0==t.length)return this.$error("没有获取要删除的行数据!");if(!this.delBefore(t,e))return;let i=!1;this.$confirm("确认要删除选择的数据吗?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then(()=>{if(i)return;i=!0;let e=this.getUrl(this.const.DEL);this.http.post(e,t,"正在删除数据....").then(e=>{if(!e.status)return this.$error(e.message);this.$success(e.message),this.delAfter(e)&&this.refresh()})})},async modelOpenBeforeAsync(e){return!0},async initBox(){return!!await this.modelOpenBeforeAsync(this.currentRow)&&(this.modelOpenBefore(this.currentRow),this.boxInit||(this.boxInit=!0,this.boxModel=!0),!0)},setEditForm(e){let t=this.$refs.table.remoteColumns;t.forEach(e=>{this.editFormOptions.forEach(t=>{t.forEach(t=>{t.field==e.field&&(t.data.data=Object.assign([],t.data,e.bind.data))})})}),this.editFormFields,this.editFormFields[this.table.key]=e[this.table.key],this.resetEditForm(e),this.currentAction=this.const.EDIT,this.boxModel=!0},async linkData(e,t){this.currentAction=this.const.EDIT,this.currentRow=e,await this.initBox()&&(this.resetDetailTable(e),this.setEditForm(e),this.setContinueAdd(!1),this.getRemoteFormDefaultKeyValue(),this.modelOpenProcess(e))},setContinueAdd(e){if(this.continueAdd){var t=this.boxButtons.find(e=>"save"==e.value);t&&(t.name=e?this.continueAddName:"保 存")}},resetAdd(){this.hasDetail&&this.$refs.detail&&this.$refs.detail.reset();let e={};this.editFormOptions.forEach(t=>{t.forEach(t=>{"switch"==t.type&&(e[t.field]=1)})}),this.resetEditForm(e)},async add(){this.currentAction=this.const.ADD,this.currentRow={},await this.initBox()&&(this.resetAdd(),this.setContinueAdd(!0),this.boxModel=!0,this.modelOpenProcess())},async edit(e){if(this.currentAction=this.const.EDIT,e?e instanceof Array||(e=[e]):e=this.$refs.table.getSelected(),0==e.length)return this.$error("请选择要编辑的行!");this.currentRow=e[0],await this.initBox()&&(this.setContinueAdd(!1),this.resetDetailTable(),this.setEditForm(e[0]),this.getRemoteFormDefaultKeyValue(),this.modelOpenProcess(e[0]))},getRemoteFormDefaultKeyValue(){this.currentAction==this.const.EDIT&&0!=this.remoteKeys.length&&this.editFormOptions.forEach((e,t)=>{e.forEach((e,i)=>{if(e.remote){let n=this.columns.find(t=>t.bind&&t.bind.key==e.dataKey);if(!n)return;let a=this.currentRow[e.field],l=n.bind.data.find(e=>e.key==a);e.data=[{key:a,value:l?l.value:a}],this.editFormOptions[t].splice(i,1,e)}})})},modelOpenProcess(e){this.$nextTick(()=>{this.modelOpenAfter(e)})},import(){this.upload.excel=!0,this.$refs.upload_excel&&this.$refs.upload_excel.reset()},download(e,t){let i=new XMLHttpRequest;i.open("GET",e,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader("Authorization",this.$store.getters.getToken());let n=this.$refs.export;i.responseType="blob",i.onload=function(e){if(200!=i.status)return void this.$error("下载文件出错了..");let a=i.response;n.download=t;let l=new Blob([a]);n.href=URL.createObjectURL(l),n.click()},i.send()},export(){let e=this.getUrl(this.const.EXPORT),t=this.getSearchParameters(),i={order:this.pagination.order,wheres:t.wheres||[]};if(!this.exportBefore(i))return;i.wheres&&"object"==typeof i.wheres&&(i.wheres=JSON.stringify(i.wheres));let n=this.http;n.post(e,i,"正在导出数据....").then(e=>{if(!e.status)return this.$error(e.message);let t=this.getUrl(this.const.DOWNLOAD);t="/"==t[0]?t.substring(1):t,this.download(n.ipAddress+t+"?path="+e.data,this.table.cnName+".xlsx")})},getSelectRows(){return this.$refs.table.getSelected()},getDetailSelectRows(){return this.$refs.detail?this.$refs.detail.getSelected():[]},audit(){let e=this.$refs.table.getSelected();if(0==e.length)return this.$error("请选择要审核的行!");let t=e.every(e=>e.AuditStatus>0);if(t)return this.$error("只能选择审核中的数据!");this.auditParam.rows=e.length,this.auditParam.model=!0},saveAudit(){let e=this.$refs.table.getSelected();if(-1==this.auditParam.status)return this.$error("请选择审核结果!");if(e.length!=this.auditParam.rows)return this.$error("所选数据已发生变化,请重新选择审数据!");let t=e.map(e=>e[this.table.key]);if(!this.auditBefore(t,e))return;let i=this.getUrl(this.const.AUDIT)+"?auditReason="+this.auditParam.reason+"&auditStatus="+this.auditParam.status;this.http.post(i,t,"审核中....").then(t=>{if(this.auditAfter(t,e)){if(!t.status)return this.$error(t.message);this.auditParam.rows=0,this.auditParam.status=-1,this.auditParam.reason="",this.auditParam.model=!1,this.$success(t.message),this.refresh()}})},viewModelCancel(){this.viewModel=!1},initFormOptions(e,t,i,n){e.forEach(e=>{e.forEach(e=>{if("img"!=e.type&&"excel"!=e.type&&"file"!=e.type&&"img"!=e.columnType||(e.url=this.http.ipAddress+"api"+this.table.url+"Upload",this.uploadfiled.push(e.field)),!e.dataKey)return!0;if(e.remote)return this.remoteKeys.push(e.dataKey),e.data=[],!0;if("checkbox"!=e.type||i[e.field]instanceof Array||(i[e.field]=[]),-1==t.indexOf(e.dataKey)){t.push(e.dataKey);let i={dicNo:e.dataKey,data:[],fileds:[e.field],orginData:[]};"cascader"==e.type&&(i.type="cascader"),n&&(i["e_type"]=e.type),this.dicKeys.push(i)}else"cascader"==e.type&&(e.hasOwnProperty("changeOnSelect")||(e.changeOnSelect=!0),this.dicKeys.forEach(t=>{t.dicNo==e.dataKey&&(t.type="cascader",t.fileds.push(e.field))}));"cascader"!=e.type&&Object.assign(e,this.dicKeys.filter(t=>t.dicNo==e.dataKey)[0])})})},initColumns(e,t,i){e&&e instanceof Array&&e.forEach(e=>{if(!e.bind||e.bind.data&&e.bind.data.length>0)return!0;let n=e.bind.key||e.bind.dicNo;if(-1!=this.remoteKeys.indexOf(n))return e.bind.remote=!0,!0;-1==this.hasKeyField.indexOf(e.field)&&this.hasKeyField.push(e.field);var a=t.filter(e=>e.dicNo==n);a&&0!=a.length||(t.push({dicNo:n,data:[]}),a=[t[t.length-1]],i.push(n)),"cascader"==a[0].type?e.bind={data:a[0].orginData,tyep:"select"}:e.bind=a[0],e.bind.type=e.bind.e_type||"string"})},bindOptions(e){e.forEach(e=>{this.dicKeys.forEach(t=>{if(t.dicNo!=e.dicNo)return!0;if("cascader"==t.type){let i=JSON.parse(JSON.stringify(e.data)),n=this.base.convertTree(i,(e,t,i)=>{e.inited||(e.inited=!0,e.label=e.value,e.value=e.key)});t.data.push(...n),t.orginData.push(...e.data),this.searchFormOptions.forEach(i=>{i.forEach(i=>{"cascader"==i.type&&i.dataKey==t.dicNo&&(i.data=n,i.orginData=e.data)})}),this.editFormOptions.forEach(i=>{i.forEach(i=>{"cascader"==i.type&&i.dataKey==t.dicNo&&(i.data=n,i.orginData=e.data)})})}else if(e.data.length>0&&!e.data[0].hasOwnProperty("key")){let i=e.data,n=new Array(i.length);for(let e=0;e<i.length;e++)n[e]={key:i["key"]+"",value:i["value"]};t.data.push(...n)}else"selectList"==t.e_type&&e.data.length>0&&"number"==typeof e.data[0].key&&e.data.forEach(e=>{e.key=e.key+""}),t.data.push(...e.data);this.singleSearch&&this.singleSearch.dataKey&&this.singleSearch.dataKey==t.dicNo&&this.singleSearch.data.splice(0,1,...t.data)})})},getUrl(e,t){return(t?"":"/")+"api"+this.table.url+e},initDicKeys(){let e=[];if(this.dicKeys.splice(0),this.initFormOptions(this.editFormOptions,e,this.editFormFields,!0),this.initFormOptions(this.searchFormOptions,e,this.searchFormFields,!1),this.searchFormOptions.forEach(e=>{e.forEach(e=>{"date"!=e.type&&"datetime"!=e.type||(e.range=!0)})}),this.initColumns(this.columns,this.dicKeys,e),this.detailOptions&&this.detailOptions.columns&&this.initColumns(this.detailOptions.columns,this.dicKeys,e),this.searchFormOptions.length>0&&(this.singleSearch={dataKey:this.searchFormOptions[0][0].dataKey,dicNo:this.searchFormOptions[0][0].dicNo,field:this.searchFormOptions[0][0].field,title:this.searchFormOptions[0][0].title,type:this.searchFormOptions[0][0].type,data:[]}),0==e.length)return;let t=this;this.http.post("/api/Sys_Dictionary/GetVueDictionary",e).then(e=>{t.bindOptions(e)})},setFiexdColumn(e,t){},initBoxHeightWidth(){let e=document.documentElement.clientHeight;e=e<250?250:e;let t=document.documentElement.clientWidth;this.editFormOptions.some(e=>e.some(e=>"editor"==e.type))?(this.editor.uploadImgUrl=this.getUrl("upload"),this.boxOptions.height=.8*e,this.boxOptions.width=.8*t):(this.boxOptions.height&&this.boxOptions.height>.8*e&&(this.boxOptions.height=.8*e),this.boxOptions.width&&this.boxOptions.width>.8*t&&(this.boxOptions.width=.8*t));let i=t-270;if(this.setFiexdColumn(this.columns,i),this.height=this.tableHeight||e-206,this.url=this.getUrl(this.const.PAGE),this.detail.columns&&this.detail.columns.length>0)this.hasDetail=!0,t*=.8,e*=.85,this.detailOptions.height||(this.detailOptions.height=e-57*this.editFormOptions.length-205,this.detailOptions.height=this.detailOptions.height<240?240:this.detailOptions.height),this.detailOptions.columns=this.detail.columns,this.detailOptions.pagination.sortName=this.detail.sortName,this.detailOptions.cnName=this.detail.cnName,this.detailOptions.key=this.detail.key,this.detailOptions.url=this.getUrl("getDetailPage"),this.setFiexdColumn(this.detail.columns,t);else{let i=1;this.editFormOptions.forEach(e=>{e.length>i&&(i=e.length)});let n=.7,a=.5;a=i/10+.3,n=.1*(this.editFormOptions.length||1)+.03,n=n>.9?.9:n,t*=a,e*=n}this.boxOptions.height||(this.boxOptions.height=e+10),this.boxOptions.width||(this.boxOptions.width=t+30)},rowOnChange(e){this.rowChange(e)},rowChange(e){},rowOnClick({row:e,column:t,event:i}){this.rowClick({row:e,column:t,event:i})},rowClick({row:e,column:t,event:i}){},rowOnDbClick({row:e,column:t,event:i}){this.rowDbClick({row:e,column:t,event:i})},rowDbClick({row:e,column:t,event:i}){},$error(e){this.$message.error(e)},$success(e){this.$message.success(e)},setFiexdSearchForm(e){this.fiexdSearchForm=!0;let t=this.buttons.find(e=>"刷 新"==e.name);e&&(this.searchBoxShow=!0),t&&(t.name="重 置",t.onClick=function(){this.resetSearch()})},endEditBefore(e,t,i){return!0},filterPermission(e,t){const i=(this.$store.state.permission||[]).find(t=>t.url=="/"+e);return i&&i.permission.some(e=>e==t)},destroyed(){},loadTreeTableChildren(e,t,i){this.loadTreeChildren.call(this,e,t,i)},loadTreeChildren(e,t,i){return i([])},SetEquipmentStatus(){let e=this.$refs.table.getSelected();if(0==e.length)return this.$error("请选择要启用或禁用的调度任务!");e=JSON.parse(JSON.stringify(e[0]));let t={MainData:e,DetailData:null,DelKeys:null};this.http.post("/api/VV_Dispatch/SetEquipmentStatus",t,"状态设置中").then(e=>{e.status?(this.$message.success("状态设置成功"),this.refresh()):this.$message.error("状态设置失败:"+e.message)})}};xe=Object.assign(xe,ke,we);var ve=xe;const Ce={EDIT:"update",ADD:"Add",VIEW:"view",PAGE:"getPageData",AUDIT:"audit",DEL:"del",EXPORT:"Export",DOWNLOAD:"DownLoadFile",DOWNLOADTEMPLATE:"DownLoadTemplate",IMPORT:"Import",UPLOAD:"Upload"};var De={components:{"vol-form":be["a"],"vol-table":pe["a"],VolBox:Object(n["t"])(()=>i.e("chunk-2a54da13").then(i.bind(null,"0d63"))),QuickSearch:Object(n["t"])(()=>i.e("chunk-2d216388").then(i.bind(null,"c214"))),Audit:Object(n["t"])(()=>i.e("chunk-75a2a3f1").then(i.bind(null,"008c"))),UploadExcel:Object(n["t"])(()=>i.e("chunk-70f4cd0c").then(i.bind(null,"eec6")))},props:{},setup(e){const t={gridHeader:me,gridBody:me,gridFooter:me,modelHeader:me,modelBody:me,modelFooter:me};if(e.extend.components)for(const a in e.extend.components)e.extend.components[a]&&(t[a]=Object(n["db"])(e.extend.components[a]));const i=Object(n["ab"])(t);return{dynamicComponent:i}},data(){return{rowKey:void 0,fiexdSearchForm:!1,_inited:!1,doubleEdit:!1,single:!1,const:Ce,boxInit:!1,searchBoxShow:!1,singleSearch:{},exportHref:"",currentAction:Ce.ADD,currentRow:{},closable:!1,boxModel:!1,width:700,labelWidth:100,viewModel:!1,maxBtnLength:5,buttons:[],splitButtons:[],uploadfiled:[],boxButtons:[],dicKeys:[],hasKeyField:[],keyValueType:{_dinit:!1},url:"",hasDetail:!1,initActivated:!1,load:!0,activatedLoad:!1,summary:!1,remoteKeys:[],columnIndex:!1,ck:!0,continueAdd:!1,continueAddName:"保存后继续添加",detailOptions:{buttons:[],cnName:"",key:"",data:[],columns:[],edit:!0,single:!1,load:!0,delKeys:[],url:"",pagination:{total:0,size:100,sortName:""},height:0,doubleEdit:!0,clickEdit:!1,currentReadonly:!1,beginEdit:(e,t,i)=>!0,endEditBefore:(e,t,i)=>!0,endEditAfter:(e,t,i)=>!0,columnIndex:!1,ck:!0},auditParam:{rows:0,model:!1,status:-1,reason:"",data:[{text:"通过",status:1},{text:"拒绝",status:2}]},upload:{excel:!1,url:"",template:{url:"",fileName:""},init:!1},height:0,tableHeight:0,tableMaxHeight:0,textInline:!0,pagination:{total:0,size:30,sortName:""},boxOptions:{saveClose:!0,labelWidth:100,height:0,width:0,summary:!1},editor:{uploadImgUrl:"",upload:null}}},methods:{},activated(){this.onActivated&&this.onActivated(),this._inited?this.activatedLoad&&this.refresh():this._inited=!0},mounted(){this.mounted()},destroyed(){this.destroyed(),this.dynamicComponent=null},created:function(){Object.assign(this,this.extend.methods),this.pagination.sortName=this.table.sortName||this.table.key,this.initBoxButtons(),this.onInit(),this.initBoxHeightWidth(),this.initDicKeys(),this.onInited(),this.splitButtons=this.getButtons()},beforeUpdate:function(){},updated:function(){}};De.props=Object.assign(De.props,ge),De.methods=Object.assign(De.methods,ve,ge.extend.methods);var Fe=Object(n["u"])(De);i("6622"),i("9d4f"),i("7ca0");const Ee=h()(Fe,[["render",ce],["__scopeId","data-v-b3f39a56"]]);var Se=Ee;const Ae={install:function(e){e.component("ViewGrid",Se)}};var Ne=Ae;const _e=Object(n["k"])(f);_e.config.globalProperties.base=D,_e.config.globalProperties.http=E["a"],_e.config.globalProperties.$tabs={},_e.config.globalProperties.permission=I,_e.use(y["a"]).use(o["d"],{size:"medium"}).use(v).use(Ne).mount("#app"),_e.config.globalProperties.$Message=_e.config.globalProperties.$message},5943:function(e,t,i){e.exports=i.p+"img/error.7cbea5ed.png"},"5cee":function(e,t,i){},6622:function(e,t,i){"use strict";i("3893")},"6c80":function(e,t,i){"use strict";i("4d00")},"6e5b":function(e,t,i){"use strict";var n=i("7a23");const a=e=>(Object(n["Q"])("data-v-49ad6c9a"),e=e(),Object(n["O"])(),e),l={key:1},o={key:2},r={key:0,class:"form-imgs"},s=["src","onerror","onClick"],d=["onClick"],c={key:0,class:"readonly-input"},h={key:5,class:"v-date-range",style:{display:"flex"}},u=a(()=>Object(n["o"])("span",{style:{margin:"0px 5px","font-size":"13px",color:"#6f6b6b"}},"至",-1)),f={key:6,style:{width:"100%"}},m={key:11,style:{display:"flex"}},p=a(()=>Object(n["o"])("span",{style:{margin:"0 5px"}},"-",-1)),b={key:17,class:"form-extra"},y=["onClick"],g={style:{width:"100%"}};function O(e,t,i,a,O,k){const j=Object(n["W"])("form-expand"),w=Object(n["W"])("el-option"),x=Object(n["W"])("el-select"),v=Object(n["W"])("el-switch"),C=Object(n["W"])("el-radio"),D=Object(n["W"])("el-radio-group"),F=Object(n["W"])("el-checkbox"),E=Object(n["W"])("el-checkbox-group"),S=Object(n["W"])("el-date-picker"),A=Object(n["W"])("el-time-picker"),N=Object(n["W"])("vol-wang-editor"),_=Object(n["W"])("vol-upload"),I=Object(n["W"])("el-cascader"),B=Object(n["W"])("el-input"),P=Object(n["W"])("el-input-number"),R=Object(n["W"])("el-form-item"),V=Object(n["W"])("el-form");return Object(n["N"])(),Object(n["l"])(V,{style:{display:"inline-block",width:"100%"},inline:!0,ref:"volform",onSubmit:t[0]||(t[0]=Object(n["qb"])(()=>{},["prevent"])),model:e.formFields,"label-width":e.labelWidth,rules:e.rules},{default:Object(n["nb"])(()=>[(Object(n["N"])(!0),Object(n["n"])(n["b"],null,Object(n["U"])(e.formRules,(t,i)=>(Object(n["N"])(),Object(n["n"])("div",{key:i,style:{width:"100%"}},[(Object(n["N"])(!0),Object(n["n"])(n["b"],null,Object(n["U"])(t,(t,i)=>Object(n["ob"])((Object(n["N"])(),Object(n["l"])(R,{label:t.title?t.title+":":"",prop:t.field,key:t.field+i,style:Object(n["E"])({width:e.getColWidth(t)+"%"})},{default:Object(n["nb"])(()=>[t.render&&"function"==typeof t.render?(Object(n["N"])(),Object(n["l"])(j,{key:0,render:t.render,par:12},null,8,["render"])):t.readonly&&"function"==typeof e.formFields[t.field]?(Object(n["N"])(),Object(n["n"])("span",l,Object(n["bb"])(e.formFields[t.field]()),1)):e.isReadonlyImgFile(t,e.formFields)?(Object(n["N"])(),Object(n["n"])("div",o,["img"==t.type?(Object(n["N"])(),Object(n["n"])("div",r,[(Object(n["N"])(!0),Object(n["n"])(n["b"],null,Object(n["U"])(e.formFields[t.field],(t,i)=>(Object(n["N"])(),Object(n["n"])("div",{class:"img-item",key:i},[Object(n["o"])("img",{src:e.getSrc(t.path),onerror:e.errorImg,onClick:i=>e.previewImg(t.path)},null,8,s)]))),128))])):(Object(n["N"])(!0),Object(n["n"])(n["b"],{key:1},Object(n["U"])(e.formFields[t.field],(i,a)=>(Object(n["N"])(),Object(n["n"])("div",{class:"form-file-list",key:a},[Object(n["o"])("a",{onClick:i=>e.dowloadFile(e.formFields[t.field][a])},Object(n["bb"])(i.name),9,d)]))),128))])):(Object(n["N"])(),Object(n["n"])("div",{key:3,class:Object(n["D"])({"form-item-extra":t.extra})},["label"==t.type?(Object(n["N"])(),Object(n["n"])("label",c,Object(n["bb"])(e.getText(e.formFields,t)),1)):-1!=["select","selectList"].indexOf(t.type)?Object(n["ob"])((Object(n["N"])(),Object(n["l"])(x,{key:1,disabled:t.readonly||t.disabled,size:"medium",style:{width:"100%"},modelValue:e.formFields[t.field],"onUpdate:modelValue":i=>e.formFields[t.field]=i,filterable:"",multiple:"select"!=t.type,placeholder:t.placeholder?t.placeholder:"请选择"+t.title,"allow-create":t.autocomplete,onChange:t.onChange,remote:t.remote||t.url,clearable:"","remote-method":i=>{e.remoteSearch(t,e.formFields,i)}},{default:Object(n["nb"])(()=>[(Object(n["N"])(!0),Object(n["n"])(n["b"],null,Object(n["U"])(t.data,e=>(Object(n["N"])(),Object(n["l"])(w,{key:e.key,label:e.value,value:e.key},null,8,["label","value"]))),128))]),_:2},1032,["disabled","modelValue","onUpdate:modelValue","multiple","placeholder","allow-create","onChange","remote","remote-method"])),[[n["kb"],!t.hidden]]):"switch"==t.type?Object(n["ob"])((Object(n["N"])(),Object(n["l"])(v,{key:2,modelValue:e.formFields[t.field],"onUpdate:modelValue":i=>e.formFields[t.field]=i,disabled:t.readonly||t.disabled,"active-color":"#0f84ff",onChange:t.onChange,"inactive-color":"rgb(194 194 194)","active-value":"boolean"==typeof e.formFields[t.field]||1,"inactive-value":"boolean"!=typeof e.formFields[t.field]&&0},null,8,["modelValue","onUpdate:modelValue","disabled","onChange","active-value","inactive-value"])),[[n["kb"],!t.hidden]]):"radio"==t.type?Object(n["ob"])((Object(n["N"])(),Object(n["l"])(D,{key:3,disabled:t.readonly||t.disabled,modelValue:e.formFields[t.field],"onUpdate:modelValue":i=>e.formFields[t.field]=i,onChange:t.onChange},{default:Object(n["nb"])(()=>[(Object(n["N"])(!0),Object(n["n"])(n["b"],null,Object(n["U"])(t.data,e=>(Object(n["N"])(),Object(n["l"])(C,{key:e.key,label:e.key},{default:Object(n["nb"])(()=>[Object(n["r"])(Object(n["bb"])(e.value),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["disabled","modelValue","onUpdate:modelValue","onChange"])),[[n["kb"],!t.hidden]]):"checkbox"==t.type?Object(n["ob"])((Object(n["N"])(),Object(n["l"])(E,{key:4,disabled:t.readonly||t.disabled,modelValue:e.formFields[t.field],"onUpdate:modelValue":i=>e.formFields[t.field]=i,onChange:t.onChange},{default:Object(n["nb"])(()=>[(Object(n["N"])(!0),Object(n["n"])(n["b"],null,Object(n["U"])(t.data,e=>(Object(n["N"])(),Object(n["l"])(F,{key:e.key,label:e.key},{default:Object(n["nb"])(()=>[Object(n["r"])(Object(n["bb"])(e.value),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["disabled","modelValue","onUpdate:modelValue","onChange"])),[[n["kb"],!t.hidden]]):-1!=["date","datetime"].indexOf(t.type)&&t.range?(Object(n["N"])(),Object(n["n"])("div",h,[Object(n["s"])(S,{size:"medium",disabled:t.readonly||t.disabled,style:{flex:"1",width:"auto"},modelValue:e.formFields[t.field][0],"onUpdate:modelValue":i=>e.formFields[t.field][0]=i,type:"date"==t.type?"date":"datetime",disabledDate:i=>e.getDateOptions(i,t),placeholder:"开始时间","prefix-icon":" ",onChange:i=>{e.dateRangeChange(i,t)},"value-format":e.getDateFormat(t)},null,8,["disabled","modelValue","onUpdate:modelValue","type","disabledDate","onChange","value-format"]),u,Object(n["s"])(S,{size:"medium",disabled:t.readonly||t.disabled,style:{flex:"1",width:"auto"},modelValue:e.formFields[t.field][1],"onUpdate:modelValue":i=>e.formFields[t.field][1]=i,placeholder:"结束时间",type:"date"==t.type?"date":"datetime",disabledDate:i=>e.getDateOptions(i,t),onChange:i=>{e.dateRangeChange(i,t)},"value-format":e.getDateFormat(t)},null,8,["disabled","modelValue","onUpdate:modelValue","type","disabledDate","onChange","value-format"])])):-1!=["date","datetime"].indexOf(t.type)?Object(n["ob"])((Object(n["N"])(),Object(n["n"])("div",f,[Object(n["s"])(S,{clearable:"",disabled:t.readonly||t.disabled,style:{width:"100%"},size:"medium",modelValue:e.formFields[t.field],"onUpdate:modelValue":i=>e.formFields[t.field]=i,onChange:t.onChange,type:t.type,placeholder:t.placeholder?t.placeholder:"请选择"+t.title,disabledDate:i=>e.getDateOptions(i,t),"value-format":e.getDateFormat(t)},null,8,["disabled","modelValue","onUpdate:modelValue","onChange","type","placeholder","disabledDate","value-format"])],512)),[[n["kb"],!t.hidden]]):"time"==t.type?(Object(n["N"])(),Object(n["l"])(A,{key:7,modelValue:e.formFields[t.field],"onUpdate:modelValue":i=>e.formFields[t.field]=i,placeholder:"请选择时间",format:t.format,style:{width:"100%"},size:"medium"},null,8,["modelValue","onUpdate:modelValue","format"])):"editor"==t.type?(Object(n["N"])(),Object(n["l"])(N,{key:8,ref_for:!0,ref:"editor",url:t.url||e.editor.uploadImgUrl,upload:t.upload||e.editor.upload,modelValue:e.formFields[t.field],"onUpdate:modelValue":i=>e.formFields[t.field]=i,height:t.height||350},null,8,["url","upload","modelValue","onUpdate:modelValue","height"])):e.isFile(t,e.formFields)?Object(n["ob"])((Object(n["N"])(),Object(n["l"])(_,{key:9,desc:t.desc,multiple:t.multiple,"max-file":t.maxFile,"max-size":t.maxSize,autoUpload:t.autoUpload,fileInfo:e.formFields[t.field],url:t.url,img:"img"==t.type||"img"==t.columnType,excel:"excel"==t.type,fileTypes:t.fileTypes?t.fileTypes:[],"upload-before":t.uploadBefore,"upload-after":t.uploadAfter,append:t.multiple,"on-change":i=>e.fileOnChange(i,t),"file-click":t.fileClick,"remove-before":t.removeBefore,downLoad:!!t.downLoad},null,8,["desc","multiple","max-file","max-size","autoUpload","fileInfo","url","img","excel","fileTypes","upload-before","upload-after","append","on-change","file-click","remove-before","downLoad"])),[[n["kb"],!t.hidden]]):"cascader"==t.type?(Object(n["N"])(),Object(n["l"])(I,{key:10,clearable:"",size:"medium",style:{width:"100%"},modelValue:e.formFields[t.field],"onUpdate:modelValue":i=>e.formFields[t.field]=i,disabled:t.readonly||t.disabled,options:t.data,props:{checkStrictly:t.changeOnSelect||t.checkStrictly},onChange:t.onChange},null,8,["modelValue","onUpdate:modelValue","disabled","options","props","onChange"])):"range"==t.type||t.range?(Object(n["N"])(),Object(n["n"])("div",m,[Object(n["s"])(B,{disabled:t.readonly||t.disabled,style:{flex:"1"},size:"medium",modelValue:e.formFields[t.field][0],"onUpdate:modelValue":i=>e.formFields[t.field][0]=i,clearable:""},null,8,["disabled","modelValue","onUpdate:modelValue"]),p,Object(n["s"])(B,{size:"medium",disabled:t.readonly||t.disabled,style:{flex:"1"},modelValue:e.formFields[t.field][1],"onUpdate:modelValue":i=>e.formFields[t.field][1]=i,clearable:""},null,8,["disabled","modelValue","onUpdate:modelValue"])])):"textarea"==t.type?(Object(n["N"])(),Object(n["l"])(B,{key:12,clearable:"",disabled:t.readonly||t.disabled,modelValue:e.formFields[t.field],"onUpdate:modelValue":i=>e.formFields[t.field]=i,type:"textarea",autosize:{minRows:t.minRows||2,maxRows:t.maxRows||10},placeholder:t.placeholder?t.placeholder:"请输入"+t.title,ref_for:!0,ref:t.field},null,8,["disabled","modelValue","onUpdate:modelValue","autosize","placeholder"])):"number"==t.type?(Object(n["N"])(),Object(n["l"])(P,{key:13,style:{width:"100%"},modelValue:e.formFields[t.field],"onUpdate:modelValue":i=>e.formFields[t.field]=i,min:t.min,max:t.max,"controls-position":"right"},null,8,["modelValue","onUpdate:modelValue","min","max"])):"password"==t.type?Object(n["ob"])((Object(n["N"])(),Object(n["l"])(B,{key:14,clearable:"",type:"password",modelValue:e.formFields[t.field],"onUpdate:modelValue":i=>e.formFields[t.field]=i,modelModifiers:{number:!0},size:"medium",disabled:t.readonly||t.disabled,placeholder:t.placeholder?t.placeholder:"请输入"+t.title},null,8,["modelValue","onUpdate:modelValue","disabled","placeholder"])),[[n["kb"],!t.hidden]]):t.onKeyPress?Object(n["ob"])((Object(n["N"])(),Object(n["l"])(B,{key:15,clearable:"",size:"medium",placeholder:t.placeholder?t.placeholder:"请输入"+t.title,disabled:t.readonly||t.disabled,modelValue:e.formFields[t.field],"onUpdate:modelValue":i=>e.formFields[t.field]=i,onKeypress:i=>{e.onKeyPress(i,t)},onChange:t.onKeyPress,onKeyup:Object(n["pb"])(t.onKeyPress,["enter"])},null,8,["placeholder","disabled","modelValue","onUpdate:modelValue","onKeypress","onChange","onKeyup"])),[[n["kb"],!t.hidden]]):Object(n["ob"])((Object(n["N"])(),Object(n["l"])(B,{key:16,clearable:"",size:"medium",placeholder:t.placeholder?t.placeholder:"请输入"+t.title,disabled:t.readonly||t.disabled,modelValue:e.formFields[t.field],"onUpdate:modelValue":i=>e.formFields[t.field]=i},null,8,["placeholder","disabled","modelValue","onUpdate:modelValue"])),[[n["kb"],!t.hidden]]),t.extra?(Object(n["N"])(),Object(n["n"])("div",b,[t.extra.render?(Object(n["N"])(),Object(n["l"])(j,{key:0,render:t.extra.render},null,8,["render"])):t.extra.click?(Object(n["N"])(),Object(n["n"])("a",{key:1,style:Object(n["E"])(t.extra.style),onClick:i=>t.extra.click(t,e.formFields[t.field])},[t.extra.icon?(Object(n["N"])(),Object(n["n"])("i",{key:0,class:Object(n["D"])(t.extra.icon)},null,2)):Object(n["m"])("",!0),Object(n["r"])(" "+Object(n["bb"])(t.extra.text),1)],12,y)):(Object(n["N"])(),Object(n["n"])("a",{key:2,style:Object(n["E"])(t.extra.style)},[t.extra.icon?(Object(n["N"])(),Object(n["n"])("i",{key:0,class:Object(n["D"])(t.extra.icon)},null,2)):Object(n["m"])("",!0),Object(n["r"])(" "+Object(n["bb"])(t.extra.text),1)],4))])):Object(n["m"])("",!0)],2))]),_:2},1032,["label","prop","style"])),[[n["kb"],!t.hidden]])),128))]))),128)),Object(n["V"])(e.$slots,"default",{},void 0,!0),Object(n["o"])("div",g,[Object(n["V"])(e.$slots,"footer",{},void 0,!0)])]),_:3},8,["model","label-width","rules"])}i("14d9"),i("d9e2");var k={name:"FormExpand",functional:!0,props:{render:Function,par:{}},render:({render:e,par:t})=>e(n["x"],{par:t})};const j={change:["checkbox","select","date","datetime","drop","radio","cascader"],phone:/^[1][3,4,5,6,7,8,9][0-9]{9}$/,decimal:/(^[\-0-9][0-9]*(.[0-9]+)?)$/,number:/(^[\-0-9][0-9]*([0-9]+)?)$/},w=["text","string","mail","textarea","password"],x={int:"number",byte:"number",decimal:"number",string:"string",bool:"boolean",date:"datetime",date:"date",mail:"email"},v=Math.pow(10,3);var C=Object(n["u"])({components:{FormExpand:k,"vol-upload":Object(n["t"])(()=>i.e("chunk-4e08765a").then(i.bind(null,"14cf"))),"vol-wang-editor":Object(n["t"])(()=>i.e("chunk-0be6bc6c").then(i.bind(null,"0af4")))},props:{loadKey:{type:Boolean,default:!0},width:{type:Number,default:0},labelWidth:{type:Number,default:100},formRules:{type:Array,default:[]},formFields:{type:Object,default:()=>({})},editor:{type:Object,default:()=>({})}},computed:{rules(){let e={};return this.formRules.forEach((t,i)=>{t.forEach(t=>{e[t.field]=[this.getRule(t,this.formFields)]})}),e}},setup(e,t){const{appContext:i}=Object(n["w"])(),a=Object(n["S"])(!0),l=Object(n["S"])(1),o=Object(n["S"])([]),r=Object(n["S"])(null);Object(n["K"])(()=>{});const s=t=>{e.loadKey&&d(),e.formRules.forEach((i,n)=>{i.length>l.value&&(l.value=i.length);let a=0,r=0;if(i.forEach(e=>{e.colSize>0&&(r+=e.colSize,a++)}),a>0&&i.length-a>0){let e=(12-r)/(i.length-a);i.forEach(t=>{t.colSize||(t.colSize=e)})}i.forEach((i,a)=>{(i.remote||i.url)&&(i.loading=!1,i.point={x:n,y:a}),h(i,t),i.dataKey&&(i.columnType="string",i.data||(i.data=[])),(i.range||"range"==i.type)&&(e.formFields[i.field]instanceof Array&&2==e.formFields[i.field].length||(e.formFields[i.field]=["",""]),o.value.push(i.field))})})},d=()=>{let t=[],n=[];e.formRules.forEach(e=>{e.forEach(e=>{!e.dataKey||e.data&&0!=e.data.length||e.remote||(e.data=[],n.push({key:e.dataKey,data:e.data}),-1==t.indexOf(e.dataKey)&&t.push(e.dataKey))})}),0!=t.length&&i.config.globalProperties.http.post("/api/Sys_Dictionary/GetVueDictionary",t).then(e=>{c(e,n)})},c=(e,t)=>{e.forEach(e=>{t.forEach(t=>{if(t.key!=e.dicNo)return!0;if(t.data.length>0)return!0;if(e.data.length>0&&!e.data[0].hasOwnProperty("key")){let i=e.data,n=new Array(i.length);for(let e=0;e<i.length;e++)n[e]={key:i["key"]+"",value:i["value"]};t.data.push(...n)}else t.data.push(...e.data)})})},h=(e,t)=>{t&&(["img","excel","file"].indexOf(-1!=e.type)||"img"==e.columnType)&&(e.hasOwnProperty("autoUpload")||(e.autoUpload=!0),e.hasOwnProperty("fileList")||(e.fileList=!0),e.hasOwnProperty("downLoad")||(e.downLoad=!0),e.removeBefore||(e.removeBefore=(e,t,i)=>!0),e.fileClick||(e.fileClick=(e,t,i)=>!0),e.onChange||(e.onChange=e=>!0),e.uploadAfter||(e.uploadAfter=(e,t)=>!0),e.uploadBefore||(e.uploadBefore=e=>!0))},u=e=>{let t=!0;return r.value.validate(n=>{n?"function"===typeof e&&e(n):(i.config.globalProperties.$message.error("数据验证未通过!"),t=!1)}),t};return s(!0),{remoteCall:a,span:l,rangeFields:o,validate:u,volform:r}},created(){},data(){return{errorImg:'this.src="'+i("731d")+'"'}},methods:{getColWidth(e){let t=0;this.formRules.forEach((e,i)=>{e.length>t&&(t=e.length)});let i=Math.round((e.colSize||12/t)/.12*v,10)/v;return e.colSize,i.toFixed(3)},previewImg(e){this.base.previewImg(e,this.http.ipAddress)},getSrc(e){if(e)return this.base.isUrl(e)||-1==e.indexOf(".")?e:this.http.ipAddress+e},isFile(e,t){return("img"==e.type||"img"==e.columnType||"excel"==e.type||"file"==e.type)&&(this.convertFileToArray(e,t),!0)},isReadonlyImgFile(e,t){return!(!e.disabled&&!e.readonly||!this.isFile(e,t))},convertFileToArray(e,t){e.maxFile||(e.maxFile=1);let i=t[e.field];if(!(i instanceof Array))if(null!==i&&void 0!==i){if("string"===typeof i){if(""===i.trim())return void(t[e.field]=[]);i=i.replace(/\\/g,"/");let n=i.split(",");t[e.field]=[];for(let i=0;i<n.length;i++){let a=n[i],l=a.split("/");t[e.field].push({name:l.length>0?l[l.length-1]:a,path:a})}}}else t[e.field]=[]},dowloadFile(e){this.base.dowloadFile(e.path,e.name,{Authorization:this.$store.getters.getToken()},this.http.ipAddress)},validatorPhone(e,t,i){return e.required||t||"0"==t?j.phone.test((t||"").trim())?void i():i(new Error("请输入正确的手机号")):i()},validatorPwd(e,t,i){return e.required||t||"0"==t?(t+"").trim().length<6?i(new Error("密码长度不能小于6位")):void i():i()},convertArrayValue(e,t){let i=t instanceof Array?t:t.split(",");for(let a=0;a<i.length;a++){var n=e.find(e=>e.key&&"0"!=e.key&&e.key+""==i[a]+"");n&&(i[a]=n.value)}return i.join(",")},getText(e,t){let i=e[t.field];if("function"===typeof i)return i(e);if("null"===i||""===i||null===i||void 0===i)return"--";if("date"==t.type)return i.replace("T"," ").split(" ")[0];if("switch"==t.type)return i?"是":"否";if(!t.data)return i;if("selectList"==t.type||"checkbox"==t.type)return this.convertArrayValue(t.data,i);var n=t.data.find(e=>e.key==i);return n?n.value:i},onClear(e,t){e.data.splice(0)},onChange(e,t){e.onChange&&"function"===typeof e.onChange&&e.onChange(t,e)},onRemoteChange(e,t){void 0==t&&e.data.length>0&&(this.formFields[e.field]=e.data[0].key),this.remoteCall=!1,e.onChange&&"function"===typeof e.onChange&&e.onChange(t,e)},getData(e){return e.data},remoteSearch(e,t,i){if(""==i||1==e.data.length&&(i==e.data[0].key||i==e.data[0].value))return;let n;n="function"===typeof e.url?e.url(i,e.dataKey,e):(e.url||"/api/Sys_Dictionary/GetSearchDictionary")+"?dicNo="+e.dataKey+"&value="+i,this.http.post(n).then(t=>{e.loading=!1,e.data=t,this.formRules[e.point.x].splice(e.point.y,1,e)})},getObject(e){return"object"===typeof e?e:new Date(e)},reset(e){if(this.$refs["volform"].resetFields(),this.rangeFields.length&&this.rangeFields.forEach(e=>{this.formFields[e].splice(0),this.formFields[e]=[null,null]}),e)for(const t in this.formFields)e.hasOwnProperty(t)&&(this.formFields[t]=e[t])},fileOnChange(e,t){return this.$refs.volform.clearValidate(t.field),!t.onChange||t.onChange(e)},isReadonly(e){return e.readonly||e.disabled},getRule(e,t){if("switch"==e.type||"range"==e.type)return{required:!1};if(e.validator&&"function"===typeof e.validator)return{validator:(t,i,n)=>{let a=e.validator(t,i);return a?n(new Error(a+"")):n()},required:e.required,trigger:-1!=j.change.indexOf(e.type)?"change":"blur"};if(-1!=["img","excel","file"].indexOf(e.type))return{validator:(t,i,n)=>!e.required||this.isReadonly(e)||i&&i.length?n():n(new Error("img"==e.type?"请上传照片":"请上传文件")),required:e.required,trigger:"change"};if("number"==e.type||"number"==e.columnType||"int"==e.columnType||"decimal"==e.type)return e.required&&"number"!==typeof e.min&&(e.min=0),{required:e.required,message:e.title,title:e.title,trigger:"blur",min:e.min,max:e.max,type:e.columnType||e.type,validator:(i,n,a)=>{if(!i.min&&!i.max){if(i.required&&""==n)return t[j.field]=0,a();if(""===n||void 0===n)return a()}if(this.isReadonly(e))return a();if("number"==i.type){if(!j.number.test(n))return i.message=i.title+"只能是整数",a(new Error(i.message))}else if(!j.decimal.test(n))return i.message=i.title+"只能是数字",a(new Error(i.message));return void 0!==i.min&&"number"===typeof i.min&&n<i.min?(i.message=i.title+"不能小于"+i.min,a(new Error(i.message))):void 0!==i.max&&"number"===typeof i.max&&n>i.max?(i.message=i.title+"不能大于"+i.max,a(new Error(i.message))):a()}};if("password"==e.type||"phone"==e.type)return{validator:"phone"==e.type?this.validatorPhone:this.validatorPwd,required:e.required,trigger:"blur"};if(!e.required&&"mail"!=e.type)return{required:!1};if(e.hasOwnProperty("type")||(e.type="text"),-1!=w.indexOf(e.type)){let t=e.title+("mail"==e.type?"必须是一个邮箱地址":"不能为空"),i="mail"==e.type?"email":x[e.columnType],n={required:!0,message:t,trigger:"blur",type:i,validator:(t,i,n)=>this.isReadonly(e)||""!==i&&void 0!==i&&null!==i?n():n(new Error(t.message))};return"mail"==e.type?(n.required=e.required,[n,{type:i,message:t,trigger:"blur"}]):(e.min&&(n.min=e.min,n.message=e.title+"至少"+e.min+"个字符!"),e.max?[n,{max:e.max,required:!0,message:e.title+"最多"+e.max+"个字符!",trigger:"blur"}]:n)}if("radio"==e.type)return{required:e.required,message:"请选择"+e.title,trigger:"change",type:"string"};if("date"==e.type||"datetime"==e.type||"time"==e.type)return{required:!0,message:"请选择"+e.title,trigger:"change",type:e.range?"array":"string",validator:(t,i,n)=>this.isReadonly(e)?n():!i||e.range&&!i.length?n(new Error("请选择日期")):n()};if("cascader"==e.type)return{type:"array",required:!0,min:e.min||1,trigger:"change",validator:(t,i,n)=>{if(this.isReadonly(e))return n();let a=this.formFields[e.field];return a&&a.length?n():n(new Error("请选择"+e.title))}};if(-1!=["select","selectList","checkbox","cascader"].indexOf(e.type)){let t={type:"select"==e.type?"string":"array",required:!0,min:e.min||1,message:"请选择"+e.title,trigger:"change",validator:(t,i,n)=>this.isReadonly(e)?n():void 0==i||""===i?n(new Error(t.message)):"checkbox"!=e.type&&"selectList"!=e.type||i instanceof Array&&i.length?n():n(new Error(t.message))};return t.max&&(t.nax=e.max,t.message="最多只能选择"+e.max+"项"),t}return{}},compareDate(e,t){return!t||e.valueOf()<("number"==typeof t?t:new Date(t).valueOf())},getDateOptions(e,t){return!(!t.min&&!t.max||!e)&&(t.min&&-1==t.min.indexOf(" ")&&(t.min=t.min+" 00:00:000"),this.compareDate(e,t.min)||!this.compareDate(e,t.max))},getDateFormat(e){return"date"==e.type?"YYYY-MM-DD":"YYYY-MM-DD HH:mm:ss"},dateRangeChange(e,t){e?t.onChange&&t.onChange(e):this.$emit("update:formFields")},onKeyPress(e,t){13!=e.keyCode&&t.onKeyPress(e)}}}),D=(i("3cf0"),i("6b0d")),F=i.n(D);const E=F()(C,[["render",O],["__scopeId","data-v-49ad6c9a"]]);t["a"]=E},"731d":function(e,t,i){e.exports=i.p+"img/error-img.7cbea5ed.png"},"7ca0":function(e,t,i){"use strict";i("5cee")},"9d4f":function(e,t,i){"use strict";i("3d49")},aa75:function(e,t,i){},c1fb:function(e,t,i){"use strict";var n=i("bc3a"),a=i.n(n),l=i("4360"),o=i("6605"),r=i("7864");Object(o["c"])();let s;a.a.defaults.timeout=5e4,a.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8";let d=!1;a.a.defaults.baseURL="http://192.168.20.250:8098/";let c=a.a.defaults.baseURL;function h(){s&&s.close(),d&&(d=!1,s&&s.close())}function u(e){e.headers?"1"==e.headers.vol_exp&&j():"1"==e.getResponseHeader("vol_exp")&&j()}a.a.interceptors.request.use(e=>e,e=>Promise.reject(e)),a.a.interceptors.response.use(e=>(h(),u(e),Promise.resolve(e)),e=>{h();let t="";if(e.response){if("401"==e.response.status&&e.response.data&&401==e.response.data.code)return localStorage.getItem("user")||r["c"].error({showClose:!0,message:"登陆已过期",type:"error"}),void k();"404"==e.response.status?t="未找到请求地址":e.response.data&&e.response.data.message&&(t=e.response.data.message)}else t="服务器处理异常";return O(t),Promise.reject(e.response||{},t)});const f="Authorization";function m(e){e&&!d&&(s=r["b"].service({target:"#loading-container",customClass:"el-loading",text:"string"==typeof e?e:"正在处理.....",spinner:"el-icon-loading",background:"rgba(58, 61, 63, 0.32)"}))}function p(){return l["a"].getters.getToken()}function b(e,t,i,n){return m(i),a.a.defaults.headers[f]=p(),new Promise((i,l)=>{a.a.post(e,t,n).then(e=>{i(e.data)},e=>{l(e&&e.data&&e.data.message?e.data.message:"服务器处理异常")}).catch(e=>{l(e)})})}function y(e,t,i,n){return m(i),a.a.defaults.headers[f]=p(),new Promise((i,l)=>{a.a.get(e,{params:t},n).then(e=>{i(e.data)},e=>{l(e)}).catch(e=>{l(e)})})}function g(){if(XMLHttpRequest)return new XMLHttpRequest;if(ActiveXObject){if("string"!=typeof arguments.callee.activeXString)for(var e=["MSXML2.XMLHttp.6.0","MSXML2.XMLHttp","MSXML2.XMLHttp.3.0"],t=0;t<e.length;t++)try{new ActiveXObject(e[t]),arguments.callee.activeXString=e[t];break}catch(i){console.log(i)}return new ActiveXObject(arguments.callee.activeXString)}}function O(e,t){try{let i="string"==typeof e?JSON.parse(e):e;i.hasOwnProperty("code")&&401==i.code||i.data&&401==i.data.code?(h(),k()):t&&r["c"].error({showClose:!0,message:t,type:"error"})}catch(i){console.log(i),r["c"].error({showClose:!0,message:e,type:"error"})}}function k(){window.location.hash?window.location.href=window.location.origin+"/#/login":window.location.href=window.location.origin+"/login"}function j(){w({url:"/api/User/replaceToken",param:{},json:!0,success:function(e){if(e.status){let t=l["a"].getters.getUserInfo();t.token=e.data,l["a"].commit("setUserInfo",t)}else console.log(e.message),k()},errror:function(e){console.log(e),k()},type:"post",async:!1})}function w(e){let t=Object.assign({url:"",headers:{},param:{},json:!0,success:function(){},errror:function(){},type:"post",async:!0},e);t.url=a.a.defaults.baseURL+t.url.replace(/\/?/,""),t.headers[f]=p();var i=g();i.onreadystatechange=function(){403!=i.status&&401!=i.status?(u(i),4!=i.readyState||200!=i.status?0!=i.status&&1!=i.readyState&&t.errror(i):t.success(t.json?JSON.parse(i.responseText):i.responseText)):O(i.responseText)},i.open(t.type,t.url,t.async),i.setRequestHeader("Content-type","application/x-www-form-urlencoded");for(const a in t.headers)i.setRequestHeader(a,t.headers[a]);let n="";for(const a in t.param)n+=a+"="+t.param[a];try{i.send(n)}catch(l){k()}}w.post=function(e,t,i,n){w({url:e,param:t,success:i,error:n,type:"post"})},w.get=function(e,t,i,n){w({url:e,param:t,success:i,error:n,type:"get"})},t["a"]={post:b,get:y,ajax:w,ipAddress:c}},deed:function(e,t,i){},fb43:function(e,t,i){"use strict";i("deed")}});
|