(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d8a6ba96","chunk-e021d7b4","chunk-e021d7b4"],{"242f":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("a-modal",{attrs:{title:"文件上传",width:e.width,visible:e.visible,cancelText:"取消"},on:{ok:e.ok,cancel:e.close}},[a("j-upload",{attrs:{"file-type":e.fileType,value:e.filePath,disabled:e.disabled},on:{change:e.handleChange}})],1)],1)},i=[],s=a("cf74"),l=a("0fea"),o=function(e){if(e.lastIndexOf("\\")>=0){var t=new RegExp("\\\\","g");e=e.replace(t,"/")}return e.substring(e.lastIndexOf("/")+1)},r={name:"JFilePop",components:{JUpload:s["default"]},props:{title:{type:String,default:"",required:!1},position:{type:String,default:"right",required:!1},height:{type:Number,default:200,required:!1},width:{type:Number,default:520,required:!1},popContainer:{type:String,default:"",required:!1},disabled:{type:Boolean,default:!1,required:!1}},data:function(){return{visible:!1,filePath:"",id:"",fileType:"file"}},methods:{handleChange:function(e){this.filePath=e},show:function(e,t,a){this.id=e,this.filePath=t,this.visible=!0,this.fileType="img"===a?"image":"file"},ok:function(){if(!this.filePath)return this.$message.error("未上传任何文件"),!1;var e=this.filePath.split(","),t={name:o(e[0]),url:Object(l["d"])(e[0]),path:this.filePath,status:"done",id:this.id};this.$emit("ok",t),this.visible=!1},close:function(){this.visible=!1}}},u=r,d=a("2877"),c=Object(d["a"])(u,n,i,!1,null,"a794c652",null);t["default"]=c.exports},"2dab":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-date-picker",{attrs:{dropdownClassName:"j-date-picker",disabled:e.disabled||e.readOnly,placeholder:e.placeholder,value:e.momVal,showTime:e.showTime,format:e.dateFormat,getCalendarContainer:e.getCalendarContainer},on:{change:e.handleDateChange}})},i=[],s=a("c1df"),l=a.n(s),o={name:"JDate",props:{placeholder:{type:String,default:"",required:!1},value:{type:String,required:!1},dateFormat:{type:String,default:"YYYY-MM-DD",required:!1},triggerChange:{type:Boolean,required:!1,default:!1},readOnly:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},showTime:{type:Boolean,required:!1,default:!1},getCalendarContainer:{type:Function,default:function(e){return e.parentNode}}},data:function(){var e=this.value;return{decorator:"",momVal:e?l()(e,this.dateFormat):null}},watch:{value:function(e){this.momVal=e?l()(e,this.dateFormat):null}},methods:{moment:l.a,handleDateChange:function(e,t){this.$emit("change",t)}},model:{prop:"value",event:"change"}},r=o,u=a("2877"),d=Object(u["a"])(r,n,i,!1,null,null,null);t["default"]=d.exports},5813:function(e,t,a){"use strict";var n=a("f32b0"),i=a.n(n);i.a},"5f64":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-popover",{attrs:{trigger:"contextmenu",placement:e.position,overlayClassName:"j-input-pop"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("span",[e._v(e._s(e.title))]),a("span",{staticStyle:{float:"right"},attrs:{title:"关闭"}},[a("a-icon",{attrs:{type:"close"},on:{click:function(t){e.visible=!1}}})],1)]),a("a-input",{attrs:{value:e.inputContent,disabled:e.disabled},on:{change:e.handleInputChange}},[a("a-icon",{attrs:{slot:"suffix",type:"fullscreen"},on:{click:function(t){return t.stopPropagation(),e.pop(t)}},slot:"suffix"})],1),a("div",{attrs:{slot:"content"},slot:"content"},[a("textarea",{style:{height:e.height+"px",width:e.width+"px"},attrs:{disabled:e.disabled},domProps:{value:e.inputContent},on:{input:e.handleInputChange}})])],1)},i=[],s={name:"JInputPop",props:{title:{type:String,default:"",required:!1},position:{type:String,default:"right",required:!1},height:{type:Number,default:200,required:!1},width:{type:Number,default:150,required:!1},value:{type:String,required:!1},popContainer:{type:String,default:"",required:!1},disabled:{type:Boolean,default:!1}},data:function(){return{visible:!1,inputContent:""}},watch:{value:{immediate:!0,handler:function(){this.value&&this.value.length>0&&(this.inputContent=this.value)}}},model:{prop:"value",event:"change"},methods:{handleInputChange:function(e){this.inputContent=e.target.value,this.$emit("change",this.inputContent)},pop:function(){this.visible=!0},getPopupContainer:function(e){return this.popContainer?document.getElementById(this.popContainer):e.parentNode}}},l=s,o=a("2877"),r=Object(o["a"])(l,n,i,!1,null,"53961d6a",null);t["default"]=r.exports},7550:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-spin",{attrs:{spinning:e.loading}},[a("a-row",{attrs:{type:"flex"}},[a("a-col",[e._t("buttonBefore",null,{target:e.getVM()})],2),a("a-col",[e.actionButton?a("div",{staticClass:"action-button"},[a("a-button",{attrs:{type:"primary",icon:"plus",disabled:e.disabled},on:{click:e.handleClickAdd}},[e._v("新增")]),a("span",{staticClass:"gap"}),e.selectedRowIds.length>0?[a("a-popconfirm",{attrs:{title:"确定要删除这 "+e.selectedRowIds.length+" 项吗?"},on:{confirm:e.handleConfirmDelete}},[a("a-button",{attrs:{type:"primary",icon:"minus",disabled:e.disabled}},[e._v("删除")]),a("span",{staticClass:"gap"})],1),e.showClearSelectButton?[a("a-button",{attrs:{icon:"delete"},on:{click:e.handleClickClearSelection}},[e._v("清空选择")]),a("span",{staticClass:"gap"})]:e._e()]:e._e()],2):e._e()]),a("a-col",[e._t("buttonAfter",null,{target:e.getVM()})],2)],1),e._t("actionButtonAfter",null,{target:e.getVM()}),a("div",{staticClass:"input-table",attrs:{id:e.caseId+"inputTable"}},[a("div",{ref:"thead",staticClass:"thead"},[a("div",{staticClass:"tr",style:{width:this.realTrWidth}},[e.dragSort?a("div",{staticClass:"td td-ds",style:e.style.tdLeftDs},[a("span")]):e._e(),e.rowSelection?a("div",{staticClass:"td td-cb",style:e.style.tdLeft},[a("a-checkbox",{attrs:{checked:e.getSelectAll,indeterminate:e.getSelectIndeterminate},on:{change:e.handleChangeCheckedAll}})],1):e._e(),e.rowNumber?a("div",{staticClass:"td td-num",style:e.style.tdLeft},[a("span",[e._v("#")])]):e._e(),e._l(e.columns,(function(t){return[a("div",{directives:[{name:"show",rawName:"v-show",value:t.type!==e.formTypes.hidden,expression:"col.type !== formTypes.hidden"}],key:t.key,staticClass:"td",style:e.buildTdStyle(t)},[a("span",[e._v(e._s(t.title))])])]}))],2)]),a("div",{ref:"scrollView",staticClass:"scroll-view",style:{"max-height":e.maxHeight+"px"}},[a("div",{staticClass:"tbody",style:e.tbodyStyle,attrs:{id:e.caseId+"tbody"}},[a("div",{staticClass:"tr-expand",style:"height:"+e.getExpandHeight+"px; z-index:"+(e.loading?"11":"9")+";"}),0===e.rows.length?a("div",{staticClass:"tr-nodata"},[a("span",[e._v("暂无数据")])]):e._e(),a("draggable",{attrs:{value:e.rows,handle:".td-ds-icons"},on:{start:e.handleDragMoveStart,end:e.handleDragMoveEnd}},[e._l(e.rows,(function(t,n){return[n>=parseInt(""+(e.scrollTop-e.rowHeight)/e.rowHeight)&&parseInt(""+e.scrollTop/e.rowHeight)+9>n?a("div",{key:t.id,staticClass:"tr",class:-1!==e.selectedRowIds.indexOf(t.id)?"tr-checked":"",style:e.buildTrStyle(n),attrs:{id:e.caseId+"tbody-tr-"+n,"data-idx":n},on:{click:e.handleClickTableRow}},[e.dragSort?a("div",{staticClass:"td td-ds",style:e.style.tdLeftDs,on:{dblclick:function(t){return e._handleRowInsertDown(n)}}},[a("a-dropdown",{attrs:{trigger:["click"],getPopupContainer:e.getParentContainer}},[a("div",{staticClass:"td-ds-icons"},[a("a-icon",{attrs:{type:"align-left"}}),a("a-icon",{attrs:{type:"align-right"}})],1),a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",{key:"0",attrs:{disabled:0===n},on:{click:function(t){return e._handleRowMoveUp(n)}}},[e._v("向上移")]),a("a-menu-item",{key:"1",attrs:{disabled:n===e.rows.length-1},on:{click:function(t){return e._handleRowMoveDown(n)}}},[e._v("向下移")]),a("a-menu-divider"),a("a-menu-item",{key:"3",on:{click:function(t){return e._handleRowInsertDown(n)}}},[e._v("插入一行")])],1)],1)],1):e._e(),e.rowSelection?a("div",{staticClass:"td td-cb",style:e.style.tdLeft},[e._l([""+t.id],(function(t,n){return[a("a-checkbox",{key:n,attrs:{id:t,checked:-1!==e.selectedRowIds.indexOf(t)},on:{change:e.handleChangeLeftCheckbox}})]}))],2):e._e(),e.rowNumber?a("div",{staticClass:"td td-num",style:e.style.tdLeft},[a("span",[e._v(e._s(n+1))])]):e._e(),e._l(e.columns,(function(i){return a("div",{directives:[{name:"show",rawName:"v-show",value:i.type!==e.formTypes.hidden,expression:"col.type !== formTypes.hidden"}],key:i.key,staticClass:"td",style:e.buildTdStyle(i)},[e._l([""+i.key+t.id],(function(s,l){return[i.type===e.formTypes.input||i.type===e.formTypes.inputNumber?a("label",{key:l},[a("a-tooltip",e._b({},"a-tooltip",e.buildTooltipProps(t,i,s),!1),[e.isEditRow(t,i)?a("input",e._b({attrs:{id:s,"data-input-number":i.type===e.formTypes.inputNumber,placeholder:e.replaceProps(i,i.placeholder)},on:{blur:function(a){e.handleBlurCommono(a.target,n,t,i)},input:function(a){e.handleInputCommono(a.target,n,t,i)}}},"input",e.buildProps(t,i),!1)):a("span",{staticClass:"j-td-span no-edit",class:{disabled:e.buildProps(t,i).disabled},on:{click:function(a){return e.handleEditRow(t,i)}}},[e._v(e._s(e.inputValues[n][i.key]))])])],1):i.type===e.formTypes.checkbox?[a("a-checkbox",e._b({key:l,attrs:{id:s,checked:e.checkboxValues[s]},on:{change:function(a){return e.handleChangeCheckboxCommon(a,t,i)}}},"a-checkbox",e.buildProps(t,i),!1))]:i.type===e.formTypes.select?[a("a-tooltip",e._b({},"a-tooltip",e.buildTooltipProps(t,i,s),!1),[e.isEditRow(t,i)?a("a-select",e._b({key:l,staticStyle:{width:"100%"},attrs:{id:s,value:e.selectValues[s],options:i.options,getPopupContainer:e.getParentContainer,placeholder:e.replaceProps(i,i.placeholder),filterOption:function(t,a){return e.handleSelectFilterOption(t,a,i)},allowClear:""},on:{change:function(a){return e.handleChangeSelectCommon(a,s,t,i)},search:function(a){return e.handleSearchSelect(a,s,t,i)},blur:function(a){return e.handleBlurSearch(a,s,t,i)}}},"a-select",e.buildProps(t,i),!1)):a("span",{staticClass:"j-td-span no-edit",class:{disabled:e.buildProps(t,i).disabled},on:{click:function(a){return a.stopPropagation(),e.handleEditRow(t,i)}}},[e._v(e._s(e.getSelectTranslateText(e.selectValues[s],t,i)))])],1)]:i.type===e.formTypes.date||i.type===e.formTypes.datetime?[a("a-tooltip",e._b({},"a-tooltip",e.buildTooltipProps(t,i,s),!1),[e.isEditRow(t,i)?a("j-date",e._b({key:l,staticStyle:{width:"100%"},attrs:{id:s,value:e.jdateValues[s],getCalendarContainer:e.getParentContainer,placeholder:e.replaceProps(i,i.placeholder),"trigger-change":!0,showTime:i.type===e.formTypes.datetime,dateFormat:i.type===e.formTypes.date?"YYYY-MM-DD":"YYYY-MM-DD HH:mm:ss",allowClear:""},on:{change:function(a){return e.handleChangeJDateCommon(a,s,t,i,i.type===e.formTypes.datetime)}}},"j-date",e.buildProps(t,i),!1)):a("span",{staticClass:"j-td-span no-edit",class:{disabled:e.buildProps(t,i).disabled},on:{click:function(a){return e.handleEditRow(t,i)}}},[e._v(e._s(e.jdateValues[s]))])],1)]:i.type===e.formTypes.input_pop?[a("a-tooltip",e._b({},"a-tooltip",e.buildTooltipProps(t,i,s),!1),[e.isEditRow(t,i)?a("j-input-pop",e._b({key:l,staticStyle:{width:"100%"},attrs:{id:s,width:300,height:210,"pop-container":e.caseId+"tbody",value:e.jInputPopValues[s],getCalendarContainer:e.getParentContainer,placeholder:e.replaceProps(i,i.placeholder)},on:{change:function(a){return e.handleChangeJInputPopCommon(a,s,t,i)}}},"j-input-pop",e.buildProps(t,i),!1)):a("span",{staticClass:"j-td-span no-edit",class:{disabled:e.buildProps(t,i).disabled},on:{click:function(a){return e.handleEditRow(t,i)}}},[e._v(e._s(e.jInputPopValues[s]))])],1)]:i.type===e.formTypes.upload?a("div",{key:l},[e._l([e.uploadValues[s]||{}],(function(t,n){return null!=e.uploadValues[s]?[a("a-input",{key:n,attrs:{readOnly:!0,value:t.name}},[a("template",{staticStyle:{width:"30px"},slot:"addonBefore"},["uploading"===t.status?a("a-tooltip",{attrs:{title:"上传中("+Math.floor(t.percent)+"%)"}},[a("a-icon",{attrs:{type:"loading"}})],1):"done"===t.status?a("a-tooltip",{attrs:{title:"上传完成"}},[a("a-icon",{staticStyle:{color:"#00DB00"},attrs:{type:"check-circle"}})],1):a("a-tooltip",{attrs:{title:"上传失败"}},[a("a-icon",{staticStyle:{color:"red"},attrs:{type:"exclamation-circle"}})],1)],1),!1!==i.allowDownload||!1!==i.allowRemove?a("template",{staticStyle:{width:"30px"},slot:"addonAfter"},[a("a-dropdown",{attrs:{trigger:["click"],placement:"bottomRight",getPopupContainer:e.getParentContainer}},[a("a-tooltip",{attrs:{title:"操作",getPopupContainer:e.getParentContainer}},["uploading"!==t.status?a("a-icon",{staticStyle:{cursor:"pointer"},attrs:{type:"setting"}}):e._e()],1),a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[!1!==i.allowDownload?a("a-menu-item",{on:{click:function(t){return e.handleClickDownloadFile(s)}}},[a("span",[a("a-icon",{attrs:{type:"download"}}),e._v(" 下载")],1)]):e._e(),!1!==i.allowRemove?a("a-menu-item",{on:{click:function(t){return e.handleClickDelFile(s)}}},[a("span",[a("a-icon",{attrs:{type:"delete"}}),e._v(" 删除")],1)]):e._e()],1)],1)],1):e._e()],2)]:e._e()})),a("div",{attrs:{hidden:null!=e.uploadValues[s]}},[a("a-tooltip",e._b({},"a-tooltip",e.buildTooltipProps(t,i,s),!1),[a("a-upload",e._b({attrs:{name:"file",data:{isup:1},multiple:!1,action:i.action,headers:e.uploadGetHeaders(t,i),showUploadList:!1},on:{change:function(a){return e.handleChangeUpload(a,s,t,i)}}},"a-upload",e.buildProps(t,i),!1),[a("a-button",{attrs:{icon:"upload"}},[e._v(e._s(i.placeholder))])],1)],1)],1)],2):i.type===e.formTypes.popup?[a("a-tooltip",e._b({},"a-tooltip",e.buildTooltipProps(t,i,s),!1),[e.isEditRow(t,i)?a("j-popup",e._b({key:l,staticStyle:{width:"100%"},attrs:{id:s,placeholder:e.replaceProps(i,i.placeholder),value:e.getPopupValue(s),field:i.field||i.key,"org-fields":i.orgFields,"dest-fields":i.destFields,code:i.popupCode,groupId:e.caseId},on:{input:function(a,l){return e.popupCallback(a,l,s,t,i,n)}}},"j-popup",e.buildProps(t,i),!1)):a("span",{staticClass:"j-td-span no-edit",class:{disabled:e.buildProps(t,i).disabled},on:{click:function(a){return e.handleEditRow(t,i)}}},[e._v(e._s(e.getPopupValue(s)))])],1)]:i.type===e.formTypes.file?a("div",{key:l},[e._l([e.uploadValues[s]||{}],(function(t,n){return null!=e.uploadValues[s]?[a("div",{key:n,staticStyle:{position:"relative"}},["uploading"===t.status?a("a-tooltip",{attrs:{title:"上传中("+Math.floor(t.percent)+"%)"}},[a("a-icon",{staticStyle:{color:"red"},attrs:{type:"loading"}}),a("span",{staticStyle:{color:"red","margin-left":"5px"}},[e._v(e._s(t.status))])],1):"done"===t.status?a("a-tooltip",{attrs:{title:t.name}},[a("a-icon",{attrs:{type:"paper-clip"}}),a("span",{staticStyle:{"margin-left":"5px"}},[e._v(e._s(e.getEllipsisWord(t.name,5)))])],1):a("a-tooltip",{attrs:{title:t.name}},[a("a-icon",{staticStyle:{color:"red"},attrs:{type:"paper-clip"}}),a("span",{staticStyle:{color:"red","margin-left":"5px"}},[e._v(e._s(e.getEllipsisWord(t.name,5)))])],1),[a("a-dropdown",{staticStyle:{"margin-left":"10px"},attrs:{trigger:["click"],placement:"bottomRight",getPopupContainer:e.getParentContainer}},[a("a-tooltip",{attrs:{title:"操作",getPopupContainer:e.getParentContainer}},["uploading"!==t.status?a("a-icon",{staticStyle:{cursor:"pointer"},attrs:{type:"setting"}}):e._e()],1),a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[!1!==i.allowDownload?a("a-menu-item",{on:{click:function(t){return e.handleClickDownFileByUrl(s)}}},[a("span",[a("a-icon",{attrs:{type:"download"}}),e._v(" 下载")],1)]):e._e(),a("a-menu-item",{on:{click:function(t){return e.handleClickDelFile(s)}}},[a("span",[a("a-icon",{attrs:{type:"delete"}}),e._v(" 删除")],1)]),a("a-menu-item",{on:{click:function(t){return e.handleMoreOperation(s)}}},[a("span",[a("a-icon",{attrs:{type:"bars"}}),e._v(" 更多")],1)])],1)],1)]],2)]:e._e()})),a("div",{attrs:{hidden:null!=e.uploadValues[s]}},[a("a-tooltip",e._b({},"a-tooltip",e.buildTooltipProps(t,i,s),!1),[a("a-upload",e._b({attrs:{name:"file",data:{isup:1},multiple:!1,action:e.getUploadAction(i.action),headers:e.uploadGetHeaders(t,i),showUploadList:!1},on:{change:function(a){return e.handleChangeUpload(a,s,t,i)}}},"a-upload",e.buildProps(t,i),!1),[a("a-button",{attrs:{icon:"upload"}},[e._v("上传文件")])],1)],1)],1)],2):i.type===e.formTypes.image?a("div",{key:l},[e._l([e.uploadValues[s]||{}],(function(t,n){return null!=e.uploadValues[s]?[a("div",{key:n,staticStyle:{position:"relative"}},[e.uploadValues[s]&&(e.uploadValues[s]["url"]||e.uploadValues[s]["path"]||e.uploadValues[s]["message"])?e.uploadValues[s]["path"]?[a("img",{staticClass:"j-editable-image",attrs:{src:e.getCellImageView(s),alt:"无图片"},on:{click:function(t){return e.handleMoreOperation(s,"img")}}})]:[a("a-icon",{staticStyle:{color:"red"},attrs:{type:"exclamation-circle"},on:{click:function(t){return e.handleClickShowImageError(s)}}})]:[a("a-icon",{attrs:{type:"loading"}})],a("template",{staticStyle:{width:"30px"},slot:"addonBefore"},["uploading"===t.status?a("a-tooltip",{attrs:{title:"上传中("+Math.floor(t.percent)+"%)"}},[a("a-icon",{attrs:{type:"loading"}})],1):"done"===t.status?a("a-tooltip",{attrs:{title:"上传完成"}},[a("a-icon",{staticStyle:{color:"#00DB00"},attrs:{type:"check-circle"}})],1):a("a-tooltip",{attrs:{title:"上传失败"}},[a("a-icon",{staticStyle:{color:"red"},attrs:{type:"exclamation-circle"}})],1)],1),[a("a-dropdown",{staticStyle:{"margin-left":"10px"},attrs:{trigger:["click"],placement:"bottomRight",getPopupContainer:e.getParentContainer}},[a("a-tooltip",{attrs:{title:"操作",getPopupContainer:e.getParentContainer}},["uploading"!==t.status?a("a-icon",{staticStyle:{cursor:"pointer"},attrs:{type:"setting"}}):e._e()],1),a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[!1!==i.allowDownload?a("a-menu-item",{on:{click:function(t){return e.handleClickDownFileByUrl(s)}}},[a("span",[a("a-icon",{attrs:{type:"download"}}),e._v(" 下载")],1)]):e._e(),a("a-menu-item",{on:{click:function(t){return e.handleClickDelFile(s)}}},[a("span",[a("a-icon",{attrs:{type:"delete"}}),e._v(" 删除")],1)]),a("a-menu-item",{on:{click:function(t){return e.handleMoreOperation(s,"img")}}},[a("span",[a("a-icon",{attrs:{type:"bars"}}),e._v(" 更多")],1)])],1)],1)]],2)]:e._e()})),a("div",{attrs:{hidden:null!=e.uploadValues[s]}},[a("a-tooltip",e._b({},"a-tooltip",e.buildTooltipProps(t,i,s),!1),[a("a-upload",e._b({attrs:{name:"file",data:{isup:1},multiple:!1,action:e.getUploadAction(i.action),headers:e.uploadGetHeaders(t,i),showUploadList:!1},on:{change:function(a){return e.handleChangeUpload(a,s,t,i)}}},"a-upload",e.buildProps(t,i),!1),[a("a-button",{attrs:{icon:"upload"}},[e._v("上传图片")])],1)],1)],1)],2):i.type===e.formTypes.radio?[a("a-tooltip",e._b({},"a-tooltip",e.buildTooltipProps(t,i,s),!1),[a("a-radio-group",e._b({key:l,attrs:{id:s,value:e.radioValues[s]},on:{change:function(a){return e.handleRadioChange(a.target.value,s,t,i)}}},"a-radio-group",e.buildProps(t,i),!1),e._l(i.options,(function(t,n){return a("a-radio",{key:n,attrs:{value:t.value}},[e._v(e._s(t.text))])})),1)],1)]:i.type===e.formTypes.list_multi?[a("a-tooltip",e._b({},"a-tooltip",e.buildTooltipProps(t,i,s),!1),[e.isEditRow(t,i)?a("a-select",e._b({key:l,staticStyle:{width:"100%"},attrs:{id:s,mode:"multiple",maxTagCount:1,value:e.multiSelectValues[s],options:i.options,getPopupContainer:e.getParentContainer,placeholder:e.replaceProps(i,i.placeholder),allowClear:""},on:{change:function(a){return e.handleMultiSelectChange(a,s,t,i)}}},"a-select",e.buildProps(t,i),!1)):a("span",{staticClass:"j-td-span no-edit",class:{disabled:e.buildProps(t,i).disabled},on:{click:function(a){return e.handleEditRow(t,i)}}},[e._v(e._s(e.getSelectTranslateText(e.multiSelectValues[s],t,i))+" ")])],1)]:i.type===e.formTypes.sel_search?[a("a-tooltip",e._b({},"a-tooltip",e.buildTooltipProps(t,i,s),!1),[e.isEditRow(t,i)?a("a-select",e._b({key:l,staticStyle:{width:"100%"},attrs:{id:s,showSearch:"",optionFilterProp:"children",filterOption:e.filterOption,value:e.searchSelectValues[s],options:i.options,getPopupContainer:e.getParentContainer,placeholder:e.replaceProps(i,i.placeholder),allowClear:""},on:{change:function(a){return e.handleSearchSelectChange(a,s,t,i)}}},"a-select",e.buildProps(t,i),!1)):a("span",{staticClass:"j-td-span no-edit",class:{disabled:e.buildProps(t,i).disabled},on:{click:function(a){return e.handleEditRow(t,i)}}},[e._v(e._s(e.getSelectTranslateText(e.searchSelectValues[s],t,i)))])],1)]:i.type===e.formTypes.slot?a("div",{key:l},[a("a-tooltip",e._b({},"a-tooltip",e.buildTooltipProps(t,i,s),!1),[e._t(i.slot||i.slotName||i.key,null,{index:n,text:e.slotValues[s],value:e.slotValues[s],column:i,rowId:e.getCleanId(t.id),getValue:function(){return e._getValueForSlot(t.id)},caseId:e.caseId,allValues:e._getAllValuesForSlot(),target:e.getVM(),handleChange:function(a){return e.handleChangeSlotCommon(a,s,t,i)},isNotPass:e.notPassedIds.includes(i.key+t.id)})],2)],1):a("span",e._b({key:l},"span",e.buildProps(t,i),!1),[e._v(e._s(e.inputValues[n][i.key]))])]}))],2)}))],2):e._e()]}))],2),e.showStatisticsRow?a("div",{staticClass:"tr",style:Object.assign({},e.buildTrStyle(e.rows.length),{height:"32px"})},[e.dragSort?a("div",{staticClass:"td td-ds",style:e.style.tdLeftDs}):e._e(),e.rowSelection?a("div",{staticClass:"td td-cb",style:e.style.tdLeft},[e._v("\n 统计\n ")]):e._e(),e.rowNumber?a("div",{staticClass:"td td-num",style:e.style.tdLeft},[e.rowSelection?e._e():a("span",[e._v("统计")])]):e._e(),e._l(e.columns,(function(t){return[a("div",{directives:[{name:"show",rawName:"v-show",value:t.type!==e.formTypes.hidden,expression:"col.type !== formTypes.hidden"}],key:t.key,staticClass:"td",style:e.buildTdStyle(t)},[a("span",{directives:[{name:"show",rawName:"v-show",value:t.type===e.formTypes.inputNumber,expression:"col.type === formTypes.inputNumber"}],staticStyle:{padding:"0 5px"}},[e._v(e._s(e.statisticsColumns[t.key]))])])]}))],2):e._e()],1)]),a("j-file-pop",{ref:"filePop",on:{ok:e.handleFileSuccess}})],1)],2)},i=[],s=a("2b0e"),l=a("310e"),o=a.n(l),r=a("9fb0"),u=a("e2e0"),d=a("ca00"),c=a("2dab"),p=a("89f2"),h=a("0fea"),f=a("5f64"),m=a("242f");function y(e,t){return b(e)||v(e,t)||S(e,t)||g()}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var a=[],n=!0,i=!1,s=void 0;try{for(var l,o=e[Symbol.iterator]();!(n=(l=o.next()).done);n=!0)if(a.push(l.value),t&&a.length===t)break}catch(r){i=!0,s=r}finally{try{n||null==o["return"]||o["return"]()}finally{if(i)throw s}}return a}}function b(e){if(Array.isArray(e))return e}function w(e,t){var a;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(a=S(e))||t&&e&&"number"===typeof e.length){a&&(e=a);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,l=!0,o=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return l=e.done,e},e:function(e){o=!0,s=e},f:function(){try{l||null==a.return||a.return()}finally{if(o)throw s}}}}function C(e){return C="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function V(e){return _(e)||k(e)||S(e)||I()}function I(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(e,t){if(e){if("string"===typeof e)return P(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?P(e,t):void 0}}function k(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _(e){if(Array.isArray(e))return P(e)}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a0},getSelectIndeterminate:function(){return this.selectedRowIds.length>0&&this.selectedRowIds.length0},tbodyStyle:function(){var e=Object.assign({},this.style.tbody);return e["width"]=this.realTrWidth,e},showClearSelectButton:function(){var e=0;for(var t in this.disabledRows)this.disabledRows.hasOwnProperty(t)&&e++;return e>0},accessToken:function(){return s["default"].ls.get(r["a"])},realTrWidth:function(){var e=" + ",t="calc(";return this.columns.forEach((function(a,n){var i=a.type,s=a.width;i!==u["a"].hidden&&(t+="number"===typeof s?s+"px":"string"===typeof s?s:"120px",t+=e)})),t.endsWith(e)&&(t=t.substring(0,t.length-e.length)),t+=")",t}},watch:{rows:{immediate:!0,handler:function(e,t){}},dataSource:{immediate:!0,handler:function(e){var t=this;this.getElementPromise("tbody").then((function(){t.initialize(),t._pushByDataSource(e)}))}},columns:{immediate:!0,handler:function(e){var t=this;this.getElementPromise("tbody").then((function(){e.forEach((function(e){e.type!==u["a"].select&&e.type!==u["a"].list_multi&&e.type!==u["a"].sel_search||(e.options instanceof Array&&(e.options=e.options.map((function(e){return e?T(T({},e),{},{text:e.text||e.title,title:e.text||e.title}):{}}))),e.dictCode&&t._loadDictConcatToOptions(e))}))}))}},selectedRowIds:function(e){var t=this;this.$emit("selectRowChange",Object(d["b"])(e).map((function(e){return t.getCleanId(e)})))}},mounted:function(){var e=this;this.getElement("inputTable").onscroll=function(t){e.syncScrollBar(t.target.scrollLeft)},this.getElement("tbody").onscroll=function(e){};var t=this.$refs,a=t.thead,n=t.scrollView;n.onscroll=function(t){a.scrollLeft=t.target.scrollLeft,e.recalcTrHiddenItem(t.target.scrollTop)},this.addEventListener()},methods:{getElement:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.el[e]||(this.el[e]=document.getElementById((t?"":this.caseId)+e)),this.el[e]},getElementPromise:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(n){var i=setInterval((function(){var s=t.getElement(e,a);s&&(clearInterval(i),n(s))}),10)}))},initialize:function(){var e=this;this.visibleTrEls=[],this.isFirst?this.isFirst=!1:(this.inputValues=[],this.rows=[],this.deleteIds=[],this.selectValues={},this.checkboxValues={},this.jdateValues={},this.jInputPopValues={},this.slotValues={},this.selectedRowIds=[],this.tooltips={},this.notPassedIds=[],this.uploadValues=[],this.popupValues=[],this.radioValues=[],this.multiSelectValues=[],this.searchSelectValues=[],this.scrollTop=0,this.$nextTick((function(){e.getElement("tbody").scrollTop=0})))},syncScrollBar:function(e){},resetScrollTop:function(e){var t=this.$refs.scrollView;t.scrollTop=null!=e&&"number"===typeof e?e:this.scrollTop},recalcTrHiddenItem:function(e){var t=this,a=e-this.scrollTop;a<0&&(a=this.scrollTop-e),a>=.3*this.rowHeight&&(this.scrollTop=e,this.$nextTick((function(){t.updateFormValues()})))},generateId:function(e){e instanceof Array||(e=this.rows||[]);var t=(new Date).getTime();return"".concat(this.caseId).concat(t).concat(e.length).concat(Object(d["i"])(6)).concat(this.tempId)},push:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return this._pushByDataSource([e],[n],t,a,i)},_pushByDataSource:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];i instanceof Array||(i=V(this.rows)||[]);var l=T({},this.checkboxValues),o=T({},this.selectValues),r=T({},this.jdateValues),d=T({},this.jInputPopValues),c=T({},this.slotValues),p=T({},this.uploadValues),h=T({},this.popupValues),f=T({},this.radioValues),m=T({},this.multiSelectValues),y=T({},this.searchSelectValues),g=this.disabledRowIds||[];return e.forEach((function(e,n){var v=e.id;null==v||""===v?v=t.generateId(i):t.hasCaseId(v)||(v=t.caseId+v);var b={id:v},w={id:v},C=!1;t.columns.forEach((function(a){var n=a.key+w.id,i=(null==e[a.key]?"":e[a.key]).toString(),v=null;s&&(v=a.defaultValue||(0===a.defaultValue?0:""),v instanceof Array&&(v=v.join(",")),i="number"===typeof i||i?i:v);var V=null==i||""===i;if(a.type===u["a"].inputNumber)!0===a.isOrder?w[a.key]=t.getInputNumberMaxValue(a)+1:w[a.key]=i,a.statistics&&(t.hasStatisticsColumn=!0,t.statisticsColumns[a.key]||t.$set(t.statisticsColumns,a.key,0));else if(a.type===u["a"].checkbox)if(a.customValue instanceof Array){var I=(a.customValue[0]||"").toString();V&&s&&(i=a.defaultChecked?I:i),l[n]=i===I}else l[n]=V&&s?!!a.defaultChecked:i;else if(a.type===u["a"].select)V?o[n]=void 0:("string"===typeof i&&"multiple"===(a.props||{})["mode"]&&(i=""===i?[]:i.split(",")),o[n]=i);else if(a.type===u["a"].date||a.type===u["a"].datetime)r[n]=i;else if(a.type===u["a"].slot)c[n]=i;else if(a.type===u["a"].popup)h[n]=i;else if(a.type===u["a"].input_pop)d[n]=i;else if(a.type===u["a"].radio)f[n]=i;else if(a.type===u["a"].sel_search)y[n]=i;else if(a.type===u["a"].list_multi)"string"===typeof i&&i.length>0?m[n]=i.split(","):m[n]=[];else if(a.type===u["a"].upload||a.type===u["a"].file||a.type===u["a"].image){if(i){var S="";if(i.indexOf(",")>0){var k=i.split(",")[0];S=k.substring(k.lastIndexOf("/")+1)}else S=i.substring(i.lastIndexOf("/")+1);p[n]={name:S,status:"done",path:i}}}else w[a.key]=i;for(var _ in t.disabledRows)if(t.disabledRows.hasOwnProperty(_)&&e.hasOwnProperty(_)&&!0!==C){var P=t.disabledRows[_];C=P instanceof Array?P.includes(e[_]):P===e[_],C&&g.push(b.id)}}));var V=!1;if(a instanceof Array){var I=a[n];"number"===typeof I&&(V=!0,i.splice(I,0,b),t.inputValues.splice(I,0,w))}V||(i.push(b),t.inputValues.push(w))})),this.dragSort&&this.inputValues.forEach((function(e,a){e[t.dragSortKey]=a+1})),this.disabledRowIds=g,this.checkboxValues=l,this.selectValues=o,this.jdateValues=r,this.jInputPopValues=d,this.slotValues=c,this.uploadValues=p,this.popupValues=h,this.radioValues=f,this.multiSelectValues=m,this.searchSelectValues=y,this.recalcAllStatisticsColumns(),n&&(this.rows=i,this.$nextTick((function(){t.forceUpdateFormValues()}))),i},getInputNumberMaxValue:function(e){var t=0;return this.inputValues.forEach((function(a,n){var i,s=a[e.key];try{i=parseInt(s)}catch(l){i=0}t=0===n||i>t?i:t})),t},add:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(t<1)){for(var n,i=this.rows,s=0;s1&&void 0!==arguments[1]?arguments[1]:1;if(!this.checkTooFastClick("insert",1500)&&(e||!(a<1))){for(var n=this.rows,i=[],s=0;s0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0,n=t.validate,i=t.rowIds,s=t.deleteTempId;"boolean"!==typeof n&&(n=!0),i instanceof Array||(i=null),"boolean"!==typeof s&&(s=!1);var l,o=0,r=0,c=Object(d["b"])(this.inputValues),p=Object.assign({},this.tooltips),h=Object(d["b"])(this.notPassedIds),f=[],m=w(c);try{var y=function(){var t=l.value,a=!1;if(null==i)a=!0;else{var c,m=w(i);try{for(m.s();!(c=m.n()).done;){var y=c.value;if(e.getCleanId(y)===e.getCleanId(t.id)){a=!0;break}}}catch(g){m.e(g)}finally{m.f()}}if(!a)return"continue";e.columns.forEach((function(a){var i=a.key+t.id;if(a.type===u["a"].checkbox){var s=e.checkboxValues[i];a.customValue instanceof Array?t[a.key]=s?a.customValue[0]:a.customValue[1]:t[a.key]=s}else if(a.type===u["a"].select){var l=e.selectValues[i];t[a.key]=l instanceof Array?Object(d["b"])(l):l}else if(a.type===u["a"].date||a.type===u["a"].datetime)t[a.key]=e.jdateValues[i];else if(a.type===u["a"].input_pop)t[a.key]=e.jInputPopValues[i];else if(a.type===u["a"].upload)t[a.key]=Object(d["b"])(e.uploadValues[i]||null);else if(a.type===u["a"].image||a.type===u["a"].file){var c=Object(d["b"])(e.uploadValues[i]||null);c&&(t[a.key]=c["path"]||null)}else a.type===u["a"].popup?t[a.key]||(t[a.key]=e.popupValues[i]||null):a.type===u["a"].radio?t[a.key]=e.radioValues[i]:a.type===u["a"].sel_search?t[a.key]=e.searchSelectValues[i]:a.type===u["a"].list_multi?e.multiSelectValues[i]&&0!==e.multiSelectValues[i].length?t[a.key]=e.multiSelectValues[i].join(","):t[a.key]="":a.type===u["a"].slot&&(t[a.key]=e.slotValues[i]);if(!0===n){var f=function(e){p[i]=e[0],!1===p[i].passed&&r++,p[i].visible=!1,h=e[1]};o++;var m=e.validateOneInputAsync(t[a.key],t,a,h,!1,"getValues",(function(e){f(e),o--}));f(m)}})),s&&e.isTempId(t.id)?delete t.id:t.id=e.getCleanId(t.id),f.push(t)};for(m.s();!(l=m.n()).done;)y()}catch(v){m.e(v)}finally{m.f()}!0===n&&(this.tooltips=p,this.notPassedIds=h);var g=setInterval((function(){0===o&&(clearInterval(g),"function"===typeof a&&a({error:r,values:f}))}),10);return{error:r,values:f}},getValuesSync:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getValuesAsync(e)},getValues:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0;this.getValuesAsync({validate:t,rowIds:a},(function(t){var a=t.error,n=t.values;"function"===typeof e&&e(a,n)}))},getValuesPromise:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],a=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return new Promise((function(i,s){e.getValuesAsync({validate:t,rowIds:a,deleteTempId:n},(function(e){var t=e.error,a=e.values;0===t?i(a):s(u["b"])}))}))},getDeleteIds:function(){return Object(d["b"])(this.deleteIds)},getAll:function(e,t){var a=this;return new Promise((function(n,i){var s=a.getDeleteIds();a.getValuesPromise(e,null,t).then((function(e){n({values:e,deleteIds:s})})).catch((function(e){i(e)}))}))},getAllSync:function(e,t,a){var n=this.getValuesSync({validate:e,rowIds:t,deleteTempId:a});return n.deleteIds=this.getDeleteIds(),n},_getValueForSlot:function(e){return this.getValuesSync({rowIds:[e]}).values[0]},_getAllValuesForSlot:function(){return Object(d["b"])({inputValues:this.inputValues,selectValues:this.selectValues,checkboxValues:this.checkboxValues,jdateValues:this.jdateValues,jInputPopValues:this.jInputPopValues,slotValues:this.slotValues,uploadValues:this.uploadValues,popupValues:this.popupValues,radioValues:this.radioValues,multiSelectValues:this.multiSelectValues,searchSelectValues:this.searchSelectValues})},setValues:function(e){var t=this;e.forEach((function(e){var a=e.rowKey,n=e.values;a=t.getCleanId(a);var i=function(e){if(n.hasOwnProperty(e)){var i=n[e],s=!1;t.inputValues.forEach((function(n){a===t.getCleanId(n.id)&&n.hasOwnProperty(e)&&(s=!0,n[e]=i)}));var l="".concat(e).concat(t.caseId).concat(a);if(s||(s=0===i||i?t.setOneValue(t.selectValues,l,i):t.setOneValue(t.selectValues,l,void 0)),!s){var o,r,u=t.valuesHasOwnProperty(t.checkboxValues,l),d=w(t.columns);try{for(d.s();!(r=d.n()).done;){var c=r.value;if(c.key===e){if(s=!0,c.customValue instanceof Array){var p=(c.customValue[0]||"").toString();o=i===p}else o=!!i;t.$set(t.checkboxValues,u,o);break}}}catch(h){d.e(h)}finally{d.f()}}s||(s=t.setOneValue(t.jdateValues,l,i)),s||(s=t.setOneValue(t.jInputPopValues,l,i)),s||(s=t.setOneValue(t.slotValues,l,i)),s||(s=t.setOneValue(t.uploadValues,l,i)),s||(s=t.setOneValue(t.popupValues,l,i)),s||(s=t.setOneValue(t.radioValues,l,i)),s||(s=t.setOneValue(t.multiSelectValues,l,i,!0)),s||(s=t.setOneValue(t.searchSelectValues,l,i))}};for(var s in n)i(s)})),this.forceUpdateFormValues()},setOneValue:function(e,t,a){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.valuesHasOwnProperty(e,t);return!!i&&(n&&!Array.isArray(a)&&(a=(a||"").toString().trim(),a=""===a?[]:a.split(",")),this.$set(e,i,a),!0)},valuesHasOwnProperty:function(e,t){var a=t;return e.hasOwnProperty(a)?a:e.hasOwnProperty(a+this.tempId)?a+this.tempId:null},validateOneInputAsync:function(e,t,a,n){var i=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"input",o=arguments.length>6?arguments[6]:void 0,r=Object.assign({},this.tooltips),u=a.key+t.id;r[u]=r[u]?r[u]:{};var d=this.validateValue(a,e),c=y(d,2),p=c[0],h=c[1],f=function(e){var t=y(e,2),l=t[0],d=t[1];if(null!=l){r[u].visible=!l,r[u].passed=l;var c=n.indexOf(u);l?-1!==c&&n.splice(c,1):(r[u].title=i.replaceProps(a,d),-1===c&&n.push(u))}s&&(i.tooltips=r,i.notPassedIds=n),"function"===typeof o&&o([r[u],n])};if("function"===typeof p){var m=!1;p(l,e,{id:this.getCleanId(t.id)},T({},a),(function(e,t){m||(m=!0,"string"===typeof t&&(h=t),f(null==e?[!0,h]:[!!e,h]))}),this)}else f([p,h]);return[r[u],n]},validateOneInput:function(e,t,a,n){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"input";return this.validateOneInputAsync(e,t,a,n,i,s)},validateValue:function(e,t){var a=e.validateRules,n=!0,i="";if(a instanceof Array){var s,l=w(a);try{for(l.s();!(s=l.n()).done;){var o=s.value,r=null==t||""===t;if(!0===o.required&&r)n=!1;else if(!0===o.unique||"only"===o.pattern){var u,d=this.getValuesSync({validate:!1}),c=d.values,p=0,h=w(c);try{for(h.s();!(u=h.n()).done;){var f=u.value;if(f[e.key]===t&&++p>=2){n=!1;break}}}catch(C){h.e(C)}finally{h.f()}}else if(o.pattern&&!r){for(var m=[{title:"6到16位数字",value:"n6-16",pattern:/^\d{6,18}$/},{title:"6到16位任意字符",value:"*6-16",pattern:/^.{6,16}$/},{title:"6到18位字母",value:"s6-18",pattern:/^[a-z|A-Z]{6,18}$/},{title:"网址",value:"url",pattern:/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/},{title:"电子邮件",value:"e",pattern:/^([\w]+\.*)([\w]+)@[\w]+\.\w{3}(\.\w{2}|)$/},{title:"手机号码",value:"m",pattern:/^1[3456789]\d{9}$/},{title:"邮政编码",value:"p",pattern:/^[1-9]\d{5}$/},{title:"字母",value:"s",pattern:/^[A-Z|a-z]+$/},{title:"数字",value:"n",pattern:/^-?\d+(\.?\d+|\d?)$/},{title:"整数",value:"z",pattern:/^-?\d+$/},{title:"非空",value:"*",pattern:/^.+$/},{title:"金额",value:"money",pattern:/^(([1-9][0-9]*)|([0]\.\d{0,2}|[1-9][0-9]*\.\d{0,2}))$/}],y=!1,g=0,v=m;g0){l=[];var o,r=w(n);try{for(r.s();!(o=r.n()).done;){var u,d=o.value,c=!0,p=w(this.visibleTrEls);try{for(p.s();!(u=p.n()).done;){var h=u.value;if(h.id===d.id){c=!1;break}}}catch(f){p.e(f)}finally{p.f()}c&&l.push(d)}}catch(f){r.e(f)}finally{r.f()}}this.visibleTrEls=n,l.forEach((function(e){var a=e.dataset.idx,n=t.inputValues[a];for(var i in n)if(n.hasOwnProperty(i)){var s="".concat(i).concat(n.id),l=document.getElementById(s);l&&(l.value=n[i])}}))},forceUpdateFormValues:function(){var e=this;this.visibleTrEls=[],this.$forceUpdate(),this.$nextTick((function(){return e.updateFormValues()}))},recalcAllStatisticsColumns:function(){var e=this;this.hasStatisticsColumn&&Object.keys(this.statisticsColumns).forEach((function(t){return e.recalcOneStatisticsColumn(t)}))},recalcOneStatisticsColumn:function(e){if(this.hasStatisticsColumn&&this.statisticsColumns.hasOwnProperty(e)){var t=0;this.inputValues.forEach((function(a){var n=a[e];if(n&&"-"!==t)try{t+=Number.parseInt(n)}catch(i){t="-"}})),this.statisticsColumns[e]=t}},getStatisticsValue:function(e){return this.hasStatisticsColumn&&this.statisticsColumns.hasOwnProperty(e)?this.statisticsColumns[e]:null},handleChangeCheckedAll:function(){var e=this,t=[];this.getSelectAll||this.rows.forEach((function(a){-1===(e.disabledRowIds||[]).indexOf(a.id)&&t.push(a.id)})),this.selectedRowIds=t},handleChangeLeftCheckbox:function(e){var t=e.target.id;if(-1===(this.disabledRowIds||[]).indexOf(t)){var a=this.selectedRowIds.indexOf(t);-1!==a?this.selectedRowIds.splice(a,1):this.selectedRowIds.push(t)}},handleClickAdd:function(){this.add()},handleConfirmDelete:function(){this.removeSelectedRows()},handleClickClearSelection:function(){this.clearSelection()},clearSelection:function(){this.selectedRowIds=[]},handleSelectFilterOption:function(e,t,a){return!0!==a.allowSearch&&!0!==a.allowInput||t.componentOptions.children[0].text.toLowerCase().indexOf(e.toLowerCase())>=0},handleSearchSelect:function(e,t,a,n){if(!0!==n.allowSearch&&!0===n.allowInput){var i,s=!1,l=w(n.options);try{for(l.s();!(i=l.n()).done;){var o=i.value;if(o.value.toLocaleString()===e.toLocaleString()){s=!0;break}}}catch(r){l.e(r)}finally{l.f()}!s&&e&&n.options.push({title:e,value:e,searchAdd:!0})}},handleBlurSearch:function(e,t,a,n){if(!0===n.allowInput&&"string"===typeof e){var i=[];n.options.forEach((function(t,a){t.value.toLocaleString()===e.toLocaleString()?delete t.searchAdd:!0===t.searchAdd&&i.push(a)}));var s,l=w(i.reverse());try{for(l.s();!(s=l.n()).done;){var o=s.value;n.options.splice(o,1)}}catch(r){l.e(r)}finally{l.f()}}this.validateOneInput(e,a,n,this.notPassedIds,!0,"blur")},emitDragged:function(e,t){this.$emit("dragged",{oldIndex:e,newIndex:t,target:this})},handleDragMoveStart:function(e){this.dragging=!0,this.$refs.scrollView.style.overflow="hidden"},handleDragMoveEnd:function(e){this.dragging=!1,this.$refs.scrollView.style.overflow="auto";var t=e.oldIndex,a=e.newIndex,n=e.item.dataset.idx,i=Number.parseInt(n)-t;t+=i,a+=i,this.rowResort(t,a),this.emitDragged(t,a)},rowResort:function(e,t){var a=function(a){var n=a[e];a.splice(e,1),a.splice(t,0,n)};a(this.rows),a(this.inputValues),this.recalcSortNumber(),this.forceUpdateFormValues()},recalcSortNumber:function(){var e=this;this.dragSort&&this.inputValues.forEach((function(t,a){return t[e.dragSortKey]=a+1}))},_handleRowMoveUp:function(e){if(e>0){var t=e-1;this.rowResort(e,t),this.emitDragged(e,t)}},_handleRowMoveDown:function(e){if(e0&&Object.assign(s,o[0]),this.$emit("valueChange",{type:e,row:s,column:i,value:n,target:this})},getCleanId:function(e){return e=this.removeCaseId(e),e=this.removeTempId(e),e},hasCaseId:function(e){return e&&e.startsWith(this.caseId)},removeCaseId:function(e){return this.hasCaseId(e)?e.substring(this.caseId.length,e.length):e},isTempId:function(e){return(e||"").endsWith(this.tempId)},removeTempId:function(e){return this.isTempId(e)?e.substring(0,e.length-this.tempId.length):e},handleClickDelFile:function(e){this.uploadValues[e]=null},handleClickDownloadFile:function(e){var t=this.uploadValues[e]||{},a=t.path;if(a){var n=Object(h["d"])(a);window.open(n)}},handleClickDownFileByUrl:function(e){var t=this.uploadValues[e]||{},a=t.url,n=t.path;a&&0!==a.length||n&&n.length>0&&(a=Object(h["d"])(n.split(",")[0])),a&&window.open(a)},handleClickShowImageError:function(e){var t=this.uploadValues[e]||null;t&&t["message"]&&this.$error({title:"上传出错",content:"错误信息:"+t["message"],maskClosable:!0})},_loadDictConcatToOptions:function(e){var t=this;Object(p["d"])(e.dictCode).then((function(a){if(a.success){var n=e.options||[];a.result.forEach((function(e){var t,a=w(n);try{for(a.s();!(t=a.n()).done;){var i=t.value;if(i.value===e.value)return}}catch(s){a.e(s)}finally{a.f()}n.push(e)})),t.$set(e,"options",n)}}))},log:function(){this.$attrs.logger},getVM:function(){return this},buildTooltipProps:function(e,t,a){var n=this.notPassedIds,i=this.tooltips,s={title:(i[a]||{}).title,placement:"top",autoAdjustOverflow:!0,getPopupContainer:this.getParentContainer,class:{"j-check-failed":!1}},l=n.includes(a);return l?s.class["j-check-failed"]=!0:s["visible"]=!1,s},getParentContainer:function(e){var t=this,a=function(){if(t.$el&&8!==t.$el.nodeType)return t.$el;var a=document.getElementById(t.caseId+"inputTable");return null!=a?a:e.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode}(),n=function e(t){var a=null;if(t["currentStyle"]?a=t["currentStyle"]["overflow"]:window.getComputedStyle&&(a=window.getComputedStyle(t)["overflow"]),null!=a){if("hidden"===a){var n=e(t.parentNode);return null!=n?n:t.parentNode}return t.parentNode&&"body"!==t.parentNode.tagName.toLocaleLowerCase()?e(t.parentNode):null}return t},i=n(a);return null!=i?i:a},replaceProps:function(e,t){return t&&"string"===typeof t&&(t=t.replace(/\${title}/g,e.title),t=t.replace(/\${key}/g,e.key),t=t.replace(/\${defaultValue}/g,e.defaultValue)),t},buildTrStyle:function(e){return{top:"".concat(j*e,"px")}},buildTdStyle:function(e){var t=function(e){return e.type===u["a"].hidden||"0px"===e.width||"0"===e.width||0===e.width},a={};e.width?a["width"]=e.width:this.columns?a["width"]="".concat(92/this.columns.filter((function(e){return!t(e)})).length,"%"):a["width"]="120px";var n=e.type===u["a"].checkbox;return n&&(a["align-items"]="center",a["text-align"]="center",a["padding-left"]="0",a["padding-right"]="0"),t(e)&&(a["padding-left"]="0",a["padding-right"]="0"),a},buildProps:function(e,t){var a={};if("object"===C(t.props))for(var n in t.props)t.props.hasOwnProperty(n)&&(a[n]=this.replaceProps(t,t.props[n]));return t.type!==u["a"].select||!0!==t.allowInput&&!0!==t.allowSearch||(a["showSearch"]=!0),a["disabled"]="boolean"===typeof t["disabled"]?t["disabled"]:a["disabled"],!0!==a["disabled"]&&(a["disabled"]=-1!==(this.disabledRowIds||[]).indexOf(e.id)),!0===this.disabled&&(a["disabled"]=!0),a},checkTooFastClick:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,a=Date.now(),n=this.lastPushTimeMap.get(e);if(!n)return n=a,this.lastPushTimeMap.set(e,a),!1;var i=a-n;return i<=t?(this.$message.warn("你点击的太快了,请慢点点击!"),!0):(this.lastPushTimeMap.set(e,a),!1)},uploadGetHeaders:function(e,t){var a={};return!0===t.token&&(a["X-Access-Token"]=this.accessToken),a},getUploadAction:function(e){return e||window._CONFIG["domianURL"]+"/sys/common/upload"},getCellImageView:function(e){var t=this.uploadValues[e]||null;if(t){if(t["url"])return t["url"];if(t["path"]){var a=t["path"].split(",")[0];return Object(h["d"])(a)}}return""},popupCallback:function(e,t,a,n,i,s){var l=e;if(t){var o=this.getCleanId(n.id),r={rowKey:o,values:{}};Object.keys(t).forEach((function(e){e===i.key?l=t[e]:r.values[e]=t[e]})),Object.keys(r).length>0&&this.setValues([r])}this.setOneValue(this.popupValues,a,l),this.validateOneInput(e,n,i,this.notPassedIds,!0,"change"),this.elemValueChange("input",n,i,e)},getPopupValue:function(e){return this.popupValues[e]},handleRadioChange:function(e,t,a,n){this.radioValues=this.bindValuesChange(e,t,"radioValues"),this.validateOneInput(e,a,n,this.notPassedIds,!0,"change"),this.elemValueChange(u["a"].radio,a,n,e)},handleMultiSelectChange:function(e,t,a,n){this.multiSelectValues=this.bindValuesChange(e,t,"multiSelectValues"),this.validateOneInput(e,a,n,this.notPassedIds,!0,"change"),this.elemValueChange(u["a"].list_multi,a,n,e)},handleSearchSelectChange:function(e,t,a,n){this.searchSelectValues=this.bindValuesChange(e,t,"searchSelectValues"),this.validateOneInput(e,a,n,this.notPassedIds,!0,"change"),this.elemValueChange(u["a"].sel_search,a,n,e)},filterOption:function(e,t){return t.componentOptions.children[0].text.toLowerCase().indexOf(e.toLowerCase())>=0},getEllipsisWord:function(e,t){return e&&0!==e.length?e.length>t?e.substr(0,t):e:""},getSelectTranslateText:function(e,t,a){return Object(p["a"])(a.options,e)},isEditRow:function(e,t){if(this.alwaysEdit)return!0;var a=this.currentEditRows[e.id];return!(!a||!0!==a[t.key])},handleMouseup:function(e){if(!this.alwaysEdit&&0!==Object.keys(this.currentEditRows).length){var t=e.target;if(t){var a=t.className||"";if("string"===typeof a){if(a.includes("j-td-span")&&a.includes("no-edit"))return;if(a.includes("ant-select-dropdown-menu-item"))return}var n,i=Object(d["f"])(e),s=w(i);try{for(s.s();!(n=s.n()).done;){var l=n.value;if((l.id||"").startsWith("".concat(this.caseId,"tbody-tr")))return;var o=l.className||"";if(o="string"===typeof o?o:o.toString(),o.includes("j-input-pop"))return;if(o.includes("j-popup-modal"))return;if(o.includes("j-date-picker")||o.includes("ant-calendar-picker-container"))return}}catch(r){s.e(r)}finally{s.f()}this.currentEditRows={}}}},addEventListener:function(){window.addEventListener("mouseup",this.handleMouseup)},removeEventListener:function(){window.removeEventListener("mouseup",this.handleMouseup)}},beforeDestroy:function(){this.removeEventListener(),this.destroyCleanGroupRequest=!0}},R=E,L=(a("5813"),a("2877")),A=Object(L["a"])(R,n,i,!1,null,"4f5972b6",null);t["default"]=A.exports},"7ab5":function(e,t,a){},cf74:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{position:"relative"},attrs:{id:e.containerId}},[a("div",{staticClass:"movety-container",staticStyle:{padding:"0 8px",position:"absolute","z-index":"91",height:"32px",width:"104px","text-align":"center"},style:{top:e.top+"px",left:e.left+"px",display:e.moveDisplay}},[a("div",{class:e.showMoverTask?"uploadty-mover-mask":"movety-opt",staticStyle:{"margin-top":"12px"},attrs:{id:e.containerId+"-mover"}},[a("a",{staticStyle:{margin:"0 5px"},on:{click:e.moveLast}},[a("a-icon",{staticStyle:{color:"#fff","font-size":"16px"},attrs:{type:"arrow-left"}})],1),a("a",{staticStyle:{margin:"0 5px"},on:{click:e.moveNext}},[a("a-icon",{staticStyle:{color:"#fff","font-size":"16px"},attrs:{type:"arrow-right"}})],1)])]),a("a-upload",{class:{"uploadty-disabled":e.disabled},attrs:{name:"file",multiple:!0,action:e.uploadAction,headers:e.headers,data:{biz:e.bizPath},fileList:e.fileList,beforeUpload:e.beforeUpload,disabled:e.disabled,returnUrl:e.returnUrl,listType:e.complistType},on:{change:e.handleChange,preview:e.handlePreview}},[[e.isImageComp?a("div",[a("a-icon",{attrs:{type:"plus"}}),a("div",{staticClass:"ant-upload-text"},[e._v(e._s(e.text))])],1):e.buttonVisible?a("a-button",[a("a-icon",{attrs:{type:"upload"}}),e._v(e._s(e.text)+"\n ")],1):e._e()]],2),a("a-modal",{attrs:{visible:e.previewVisible,footer:null},on:{cancel:e.handleCancel}},[a("img",{staticStyle:{width:"100%"},attrs:{alt:"example",src:e.previewImage}})])],1)},i=[],s=a("2b0e"),l=a("9fb0"),o=a("0fea"),r="all",u="image",d=function(){return"-"+parseInt(1e4*Math.random()+1,10)},c=function(e){if(e.lastIndexOf("\\")>=0){var t=new RegExp("\\\\","g");e=e.replace(t,"/")}return e.substring(e.lastIndexOf("/")+1)},p={name:"JUpload",data:function(){return{uploadAction:window._CONFIG["domianURL"]+"/sys/common/upload",headers:{},fileList:[],newFileList:[],uploadGoOn:!0,previewVisible:!1,previewImage:"",containerId:"",top:"",left:"",moveDisplay:"none",showMoverTask:!1,moverHold:!1,currentImg:""}},props:{text:{type:String,required:!1,default:"点击上传"},fileType:{type:String,required:!1,default:r},bizPath:{type:String,required:!1,default:"temp"},value:{type:[String,Array],required:!1},disabled:{type:Boolean,required:!1,default:!1},triggerChange:{type:Boolean,required:!1,default:!1},returnUrl:{type:Boolean,required:!1,default:!0},number:{type:Number,required:!1,default:0},buttonVisible:{type:Boolean,required:!1,default:!0}},watch:{value:{immediate:!0,handler:function(){var e=this.value;e instanceof Array?this.returnUrl?this.initFileList(e.join(",")):this.initFileListArr(e):this.initFileList(e)}}},computed:{isImageComp:function(){return this.fileType===u},complistType:function(){return this.fileType===u?"picture-card":"text"}},created:function(){var e=s["default"].ls.get(l["a"]);this.headers={"X-Access-Token":e},this.containerId="container-ty-"+(new Date).getTime()},methods:{initFileListArr:function(e){if(e&&0!=e.length){for(var t=[],a=0;a0&&(t=a.join(",")),this.$emit("change",t)},beforeUpload:function(e){this.uploadGoOn=!0;var t=e.type;return!(this.fileType===u&&t.indexOf("image")<0)||(this.$message.warning("请上传图片"),this.uploadGoOn=!1,!1)},handleChange:function(e){e.file.status||!1!==this.uploadGoOn||e.fileList.pop();var t=e.fileList;if("done"===e.file.status?(this.number>0&&(t=t.slice(-this.number)),e.file.response.success&&(t=t.map((function(e){if(e.response){var t=e.response.message;e.url=Object(o["d"])(t)}return e})))):"error"===e.file.status?this.$message.error("".concat(e.file.name," 上传失败.")):"removed"===e.file.status&&this.handleDelete(e.file),this.fileList=t,"done"===e.file.status||"removed"===e.file.status)if(this.returnUrl)this.handlePathChange();else{this.newFileList=[];for(var a=0;a0&&(a[0].addEventListener("mouseover",(function(t){t=t||window.event;var a=t.target||t.srcElement;if("ant-upload-list-item-info"==a.className){e.showMoverTask=!1;var n=a.parentElement;e.left=n.offsetLeft,e.top=n.offsetTop+n.offsetHeight-50,e.moveDisplay="block",e.currentImg=a.getElementsByTagName("img")[0].src}})),a[0].addEventListener("mouseout",(function(t){t=t||window.event;var a=t.target||t.srcElement;"ant-upload-list-item-info"==a.className&&(e.showMoverTask=!0,setTimeout((function(){!1===e.moverHold&&(e.moveDisplay="none")}),100)),"ant-upload-list-item ant-upload-list-item-done"!=a.className&&"ant-upload-list ant-upload-list-picture-card"!=a.className||(e.moveDisplay="none")})))},model:{prop:"value",event:"change"}},h=p,f=(a("de21"),a("2877")),m=Object(f["a"])(h,n,i,!1,null,null,null);t["default"]=m.exports},de21:function(e,t,a){"use strict";var n=a("7ab5"),i=a.n(n);i.a},e2e0:function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"b",(function(){return l})),a.d(t,"c",(function(){return o})),a.d(t,"d",(function(){return r}));var n=a("ca00");function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var s={normal:"normal",input:"input",inputNumber:"inputNumber",checkbox:"checkbox",select:"select",date:"date",datetime:"datetime",upload:"upload",file:"file",image:"image",popup:"popup",list_multi:"list_multi",sel_search:"sel_search",radio:"radio",checkbox_meta:"checkbox_meta",input_pop:"input_pop",slot:"slot",hidden:"hidden"},l=Symbol();function o(e,t){return new Promise((function(a){(function n(){var i=e.$refs[t];i?a(i):setTimeout((function(){n()}),10)})()}))}function r(e,t){if(!e||"function"!==typeof e.validateFields)throw"form 参数需要的是一个form对象,而传入的却是".concat(i(e));var a={};return new Promise((function(t,a){e.validateFields((function(e,n){e?a({error:l}):t(n)}))})).then((function(e){return Object.assign(a,{formValue:e}),u(t)})).then((function(e){return Object.assign(a,{tablesValue:e}),Promise.resolve(a)})).catch((function(e){return Promise.reject(e)}))}function u(e,t){if(!(e instanceof Array))throw"'validateTables'函数的'cases'参数需要的是一个数组,而传入的却是".concat(i(e));return new Promise((function(a,i){var s=[],o=0;e&&0!==e.length||a(),function r(){var u=e[o];u.getAll(!0,t).then((function(t){s[o]=t,++o===e.length?a(s):r()}),(function(e){if(e===l){var t,a=Object(n["g"])(u,"ATabPane");a&&(t=a.$vnode.key),i({error:l,index:o,paneKey:t})}i(e)}))}()}))}},f32b0:function(e,t,a){}}]);