@zhijiancloud/bpm 0.0.76 → 0.0.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@antv/g6")):"function"==typeof define&&define.amd?define(["@antv/g6"],t):"object"==typeof exports?exports.bpm2=t(require("@antv/g6")):e.bpm2=t(e["@antv/g6"])}(self,(function(e){return function(){"use strict";var t={7520:function(e,t,a){a.d(t,{Q:function(){return o}});let i=[{key:"lt",name:"早于"},{key:"gt",name:"晚于"},{key:"gte",name:"不早于"},{key:"lte",name:"不晚于"}],l=[{key:"in",name:"在列表中"}],n=[{key:"in",name:"在列表中"},{key:"all",name:"包含所有"}];const o={Text:{name:"单行文本",hasBpmField:!0,tableColWidth:240,actions:[{key:"contains",name:"包含"},{key:"eq",name:"等于"}],attrs:["type","value_type","id","name","linkage"]},TextArea:{name:"多行文本",hasBpmField:!0,tableColWidth:300,actions:[{key:"contains",name:"包含"},{key:"eq",name:"等于"}],attrs:["type","value_type","id","name","linkage"]},SerialNumber:{name:"流水号",hasBpmField:!0,actions:[{key:"contains",name:"包含"}],options:{type:"Text"},attrs:["type","id","name","linkage"]},Number:{name:"数字",hasBpmField:!0,tableColWidth:200,actions:[{key:"eq",name:"等于"},{key:"gt",name:"大于"},{key:"gte",name:"大于等于"},{key:"lt",name:"小于"},{key:"lte",name:"小于等于"},{key:"ne",name:"不等于"}],attrs:["type","id","name","value_type","is_int","view.precision","linkage"]},DateTime:{name:"日期时间选择器",tableColWidth:240,hasBpmField:!0,actions:i,attrs:["type","id","name","check.format","view.format","linkage"]},Date:{name:"日期选择器",tableColWidth:240,hasBpmField:!0,actions:i,attrs:["type","id","name","check.format","view.format","linkage"]},Time:{name:"时间选择器",hasBpmField:!0,tableColWidth:240,actions:i,attrs:["type","id","name","check.format","view.format","linkage"]},Timestamp:{name:"※时间戳",tableColWidth:240,actions:i,attrs:["type","id","name","check.format","view.format","linkage"]},Select:{name:"单选",hasBpmField:!0,tableColWidth:220,actions:l,options:{type:"MulSelect"},attrs:["type","id","name","value_type","style","range_enum","linkage"]},Status:{name:"状态",hasBpmField:!0,tableColWidth:150,actions:l,options:{type:"MulSelect"},attrs:["type","id","name","value_type","style","range_enum","linkage"]},MulSelect:{name:"多选",hasBpmField:!0,tableColWidth:220,actions:n,attrs:["type","id","name","value_type","result_type","style","range_enum","linkage"]},SelectFromForm:{name:"远程单项选择",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectFromForm"},attrs:["type","id","name","range_remote","value_type","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.form","range_remote.depends","linkage"]},MulSelectFromForm:{name:"远程多项选择",hasBpmField:!0,tableColWidth:200,actions:n,attrs:["type","id","name","range_remote","value_type","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.form","range_remote.depends","linkage"]},SelectFromMulForm:{name:"关联组件",hasBpmField:!0,tableColWidth:200,actions:n,attrs:["type","id","name","range_remote","value_type"]},SelectProject:{name:"项目单项选择",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectProject"},attrs:["type","id","name","range_remote","value_type","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.depends","linkage"]},MulSelectProject:{name:"项目多项选择",hasBpmField:!0,tableColWidth:200,actions:n,attrs:["type","id","name","range_remote","value_type","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.depends","linkage"]},SelectUser:{name:"用户单项选择",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectUser"},attrs:["type","id","name","range_remote","value_type","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.depends","linkage"]},MulSelectUser:{name:"用户多项选择",hasBpmField:!0,tableColWidth:200,actions:n,options:{type:"MulSelectUser"},attrs:["type","id","name","range_remote","value_type","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.depends","linkage"]},SelectURUser:{name:"用户单项选择(新)",hasBpmField:!0,tableColWidth:400,actions:l,options:{type:"MulSelectURUser"},attrs:["type","id","name","range_remote","value_type","filters","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.depends","linkage"]},MulSelectURUser:{name:"用户多项选择(新)",hasBpmField:!0,tableColWidth:400,actions:n,options:{type:"MulSelectURUser"},attrs:["type","id","name","range_remote","value_type","filters","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.depends","linkage"]},SelectRootCategory:{name:"根任务类型选择",hasBpmField:!0,tableColWidth:200,actions:[{key:"eq",name:"等于"}],attrs:["type","id","name","category_cls","value_type","linkage"]},SelectCheckItem:{name:"检查项单项选择",hasBpmField:!0,actions:l,tableColWidth:200,options:{type:"MulSelectCheckItem"},attrs:["type","id","name","category_cls","value_type","range_remote","root_category","tree_select","can_select","can_select.filter_expression","range_remote.filter_expression","range_remote.depends","linkage"]},MulSelectCheckItem:{name:"检查项多项选择",hasBpmField:!0,tableColWidth:200,actions:n,attrs:["type","id","name","category_cls","value_type","range_remote","root_category","tree_select","can_select","can_select.filter_expression","range_remote.filter_expression","range_remote.depends","linkage"]},SelectSort:{name:"分类单项选择",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectSort"},attrs:["type","id","name","value_type","range_remote","tree_select","can_select","can_select.filter_expression","range_remote.filter_expression","range_remote.depends","linkage"]},MulSelectSort:{name:"分类多项选择",hasBpmField:!0,tableColWidth:200,actions:n,attrs:["type","id","name","value_type","range_remote","tree_select","can_select","can_select.filter_expression","range_remote.filter_expression","range_remote.depends","linkage"]},SelectPartner:{name:"合作伙伴单项选择",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectPartner"},attrs:["type","id","name","value_type","range_remote","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.depends","linkage"]},MulSelectPartner:{name:"合作伙伴多项选择",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectPartner"},attrs:["type","id","name","value_type","range_remote","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.depends","linkage"]},SelectOrg:{name:"单位单项选择",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectOrg"},attrs:["type","id","name","value_type","range_remote","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.depends","linkage"]},MulSelectOrg:{name:"单位多项选择",hasBpmField:!0,tableColWidth:200,actions:n,attrs:["type","id","name","value_type","range_remote","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.depends","linkage"]},Audit:{name:"审批",hasBpmField:!0,actions:[{key:"ar_eq",name:"审批结果等于"},{key:"ar_in",name:"审批结果在列表中"}],actionOptions:[{value:0,label:"未审批"},{value:1,label:"审批通过"},{value:2,label:"审批未通过"}],attrs:["type","id","name","linkage"],options:{result_type:"Array",value_type:"int",type:"MulSelect",style:"default",range_enum:[[0,"未审批"],[1,"通过"],[2,"未通过"]]}},MulArea:{name:"区域多项选择",actions:n,attrs:["type","id","name","value_type","can","linkage"]},Area:{name:"区域单项选择",actions:l,options:{type:"MulArea"},attrs:["type","id","name","value_type","can","linkage"]},SelectFormId:{name:"表单单项选择",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectFormId"},attrs:["type","id","name","value_type","form_select_type","linkage"]},MulSelectFormId:{name:"表单多项选择",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectFormId"},attrs:["type","id","name","value_type","form_select_type","linkage"]},SelectFromField:{name:"远程单选(从字段)",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectFromField"},attrs:["type","id","name","range_remote","style","value_type","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.form","range_remote.depends","linkage"]},MulSelectFromField:{name:"远程多选(从字段)",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectFromField"},attrs:["type","id","name","range_remote","style","value_type","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.form","range_remote.depends","linkage"]},MulSelectEntranceForm:{name:"远程多项选择(从入口)",hasBpmField:!0},SelectHouseOwner:{name:"业主选择"},MulSelectIssue:{name:"问题选择"},MulFile:{name:"附件",hasBpmField:!0,tableColWidth:150},MulImage:{name:"图片",hasBpmField:!0,tableColWidth:150},Signature:{name:"签名",hasBpmField:!0},OnlineEditor:{name:"在线文档编辑器"},Spliter:{name:"分割线",hasBpmField:!1},Stepper:{name:"步进器",hasBpmField:!1},Quote:{name:"跨表单数据引用",hasBpmField:!1},Order:{name:"排序控件",hasBpmField:!1},SubForm:{name:"子表单",hasBpmField:!0},XSubForm:{name:"子表单(增强版)",hasBpmField:!0},OrderSubForm:{name:"排序子表单",hasBpmField:!0},AreaElevation:{name:"区域快速选择器",hasBpmField:!0,tableColWidth:200},RichText:{name:"富文本编辑框",hasBpmField:!0,tableColWidth:100}}},4486:function(e,t,a){function i(e,t,a,i,l,n,o,r){var s,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=a,d._compiled=!0),i&&(d.functional=!0),n&&(d._scopeId="data-v-"+n),o?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),l&&l.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=s):l&&(s=r?function(){l.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:l),s)if(d.functional){d._injectStyles=s;var m=d.render;d.render=function(e,t){return s.call(t),m(e,t)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,s):[s]}return{exports:e,options:d}}a.d(t,{A:function(){return i}})},4419:function(t){t.exports=e}},a={};function i(e){var l=a[e];if(void 0!==l)return l.exports;var n=a[e]={exports:{}};return t[e](n,n.exports,i),n.exports}i.d=function(e,t){for(var a in t)i.o(t,a)&&!i.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};i.r(l),i.d(l,{default:function(){return C}});var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",["table"===e.uiType?a("el-button",{attrs:{type:"text"},on:{click:function(t){e.showSubForm=!0}}},[e._v(e._s(e.$z("查看子表单","b2.common.view_subform")))]):"table"===e.showStyle?a("SubFormStyleTable",e._b({attrs:{value:e.subformData,columns:e.columns,subformPerm:e.subformPerm,fieldConf:e.fieldConf,mode:e.mode,dm:e.dm,"max-height":e.maxHeight,"show-header":e.showHeader,resizable:e.resizable,"top-container":e.container,container:e.fieldSelf,linkageItem:e.linkageItem},on:{change:e.handleChange}},"SubFormStyleTable",e.$attrs,!1)):a("SubFormStyleCard",e._b({attrs:{value:e.subformData,columns:e.columns,subformPerm:e.subformPerm,fieldConf:e.fieldConf,mode:e.mode,dm:e.dm,"max-height":e.maxHeight,"top-container":e.container,container:e.fieldSelf,linkageItem:e.linkageItem},on:{change:e.handleChange}},"SubFormStyleCard",e.$attrs,!1)),e._v(" "),"table"===e.uiType?a("el-dialog",{attrs:{title:e.subFormDialogTitle,visible:e.showSubForm,width:"50%"},on:{"update:visible":function(t){e.showSubForm=t},close:function(t){e.showSubForm=!1}}},[a("div",{staticStyle:{"max-height":"70vh",overflow:"auto"}},["table"===e.showStyle?a("SubFormStyleTable",e._b({attrs:{value:e.subformData,columns:e.columns,subformPerm:e.subformPerm,fieldConf:e.fieldConf,mode:e.mode,dm:e.dm,"max-height":e.dialogTableMaxHeight,"show-header":!0,resizable:!0,"top-container":e.container,container:e.fieldSelf,linkageItem:e.linkageItem},on:{change:e.handleChange}},"SubFormStyleTable",e.$attrs,!1)):a("SubFormStyleCard",e._b({attrs:{value:e.subformData,columns:e.columns,subformPerm:e.subformPerm,fieldConf:e.fieldConf,"top-container":e.container,container:e.fieldSelf,linkageItem:e.linkageItem,mode:e.mode,dm:e.dm},on:{change:e.handleChange}},"SubFormStyleCard",e.$attrs,!1))],1)]):e._e()],1)};n._withStripped=!0;var o=i(7520),r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$z("单击可进行编辑","c.click_to_edit"),placement:"top",disabled:!("edit"==e.mode&&e.showSubformData.length>10&&!e.hadClickRow)}},[a("el-table",{staticClass:"bpm-subform-table",staticStyle:{width:"100%"},attrs:{data:e.showSubformData,"max-height":e.maxHeight,"show-header":e.showHeader,resizable:e.resizable,border:"",stripe:""},on:{"row-click":e.rowClick}},[e.showIndex?a("el-table-column",{attrs:{type:"index",label:e.indexLabel,width:100},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n\n "),e._l(e.hiddenColumns,(function(i){return[a("bpm-sub-form-field",e._b({directives:[{name:"show",rawName:"v-show",value:i.data.visible,expression:"col.data.visible"}],key:i.key,attrs:{type:i.data.type,fieldConf:i.data,mode:e.dm?e.mode:e.getFieldMode(i.data.perm,t.row),dm:e.dm,uiType:"table",rowIndex:t.row.rowIndex,container:e.container},on:{input:e.handleInput,change:e.handleChange},model:{value:t.row[i.id],callback:function(a){e.$set(t.row,i.id,a)},expression:"scope.row[col.id]"}},"bpm-sub-form-field",e.$attrs,!1))]}))]}}],null,!1,2409594641)}):e._e(),e._v(" "),e._l(e.showColumns,(function(t){return a("el-table-column",{key:t.key,attrs:{prop:t.id,label:(t.data.check&&t.data.check.required?"* ":"")+t.label,"min-width":t.minWidth,sortable:t.sortable,"sort-by":t.sortBy},scopedSlots:e._u([{key:"default",fn:function(i){return[a("bpm-sub-form-field",e._b({directives:[{name:"show",rawName:"v-show",value:t.data.visible,expression:"col.data.visible"}],attrs:{type:t.data.type,fieldConf:t.data,mode:e.dm?e.mode:e.getFieldMode(t.data.perm,i.row),dm:e.dm,uiType:"table",rowIndex:i.row.rowIndex,container:e.container},on:{input:e.handleInput,change:e.handleChange},model:{value:i.row[t.id],callback:function(a){e.$set(i.row,t.id,a)},expression:"scope.row[col.id]"}},"bpm-sub-form-field",e.$attrs,!1))]}}],null,!0)},[a("template",{slot:"header"},[t.data.check&&t.data.check.required?a("span",{staticStyle:{color:"#D84141"}},[e._v("* ")]):e._e(),e._v(" "),a("span",[e._v(e._s(t.label))])])],2)})),e._v(" "),e.canRemove&&e.countLimit.canRemove&&"edit"==e.mode?a("el-table-column",{attrs:{prop:"delete",label:e.$z("操作","c.operation"),width:100},scopedSlots:e._u([{key:"default",fn:function(t){return[e.canRemove&&e.countLimit.canRemove?a("el-button",{staticClass:"btn-delete",attrs:{type:"danger",icon:"el-icon-delete",circle:""},on:{click:function(a){return a.stopPropagation(),e.handleRemoveItem(t.row.rowIndex)}}}):e._e()]}}],null,!1,538655453)}):e._e()],2)],1),e._v(" "),e.canAdd&&e.countLimit.canAdd?a("el-button",{staticStyle:{"margin-top":"10px"},attrs:{type:"default",icon:"el-icon-plus"},on:{click:e.handleAddItem}},[e._v(e._s(e.$z("添加项","c.add_item")))]):e._e()],1)};r._withStripped=!0;var s={props:{value:{type:Array,default(){return[]}},columns:{type:Array,default(){return[]}},subformPerm:{type:Object,default(){return{}}},fieldConf:{type:Object,default(){return{}}},mode:{type:String,default:"view"},maxHeight:{type:[Number,String],default:500},container:{type:Object,default(){return{}}},topContainer:{type:Object,default(){return{}}}},data(){return{subformData:[],showSubformData:[],_oldVal:null,hasInit:!1,isEditingMap:{}}},computed:{form(){return this.topContainer},userId(){return _.get(this.$bpm.userInfo,"user_id",0)},maxId(){let e=_.map(this.subformData,"_meta.id");return _.max(e)||0},originItem(){let e={};const t={int:0,text:"",array:[],struct:[]};return this.columns.forEach((a=>{e[a.id]=t[a.data.value_type]||""})),e},canAdd(){return"edit"===this.mode&&(this.subformPerm.creatable||this.dm)},canRemove(){return"edit"===this.mode&&(this.subformPerm.deletable||this.dm)},min(){const e=_.get(this.fieldConf,"check.min_count",0),t=_.get(this.fieldConf,"check.xmin_count");return t?this.form.formData[t]||0:e},max(){const e=_.get(this.fieldConf,"check.max_count"),t=_.get(this.fieldConf,"check.xmax_count");return t?this.form.formData[t]||0:e},countLimit(){const e=this.min,t=this.max;let a=this.showSubformData.length;return{canAdd:!(t&&a>=t),canRemove:!(a<=e)}},showIndex(){return!!this.fieldConf.show_index},indexLabel(){return this.fieldConf.index_label||zj.z("序号","b2.common.subform_index")},groupField(){return _.get(this.fieldConf,"group_by.by","")},showField(){return _.get(this.fieldConf,"is_show_field")},readonly(){return!_.get(this.fieldConf,"perm.editable",!1)}},watch:{value:{handler(e){e&&_.isArray(e)?this.subformData=e:this.subformData=[]},immediate:!0},subformData:{handler(e){this.showSubformData=this.setData(e),console.log("this.showSubformData",this.showSubformData)},deep:!0,immediate:!0},min(e,t){this.addItemByMin(e)},max(e,t){let a=this.showSubformData.length;if(e&&a>e){let t=a-e,i=0;for(let e=this.subformData.length;e>0;e--){let a=this.subformData[e-1];a.visible&&i<t&&(this.handleRemoveItem(a.rowIndex,a),i++)}}}},mounted(){this.form.$once("dataLoaded",(e=>{this.addItemByMin(this.min)}))},methods:{getFieldMode(e,t){let a=this.mode;return!e||"edit"!==a||e.editable||e.writable?!this.isEditingMap[t._meta.id]&&this.showSubformData.length>10&&(a="view"):a="view",a},throttleEmit:_.throttle((function(){"edit"===this.mode&&(console.log("subForm change emit"),this.$emit("change",this.subformData))}),1e3),handleChange(e){console.log("field change: ",e),this.throttleEmit()},handleInput(e){console.log("field input: ",e)},async addItemByMin(e){if(_.get(this.fieldConf,"linkage"))return;let t=this.showSubformData.length;if(e&&t<e){let a=e-t;for(let e=0;e<a;e++)await this.handleAddItem()}},async handleAddItem(){let e=this.maxId+1,t=this.subformData.length,a=t>=1?this.subformData[t-1]:_.cloneDeep(this.originItem),i=_.get(this.fieldConf,"fill_in_last_fields",[]);a=_.pick(a,i),_.isEmpty(a)||delete a._meta,console.log("lastItem: ",a);let l={isNew:!0,_meta:{id:e,creator:this.userId,is_deleted:!1}};this.$set(this.isEditingMap,e,!0),l=_.merge(l,a),await this.linkageItem.fillDefault(l,[],this.mode),!this.subformData||_.isEmpty(this.subformData)?this.subformData=[l]:this.subformData.push(l),this.handleChange(),console.log("this.subformData",this.subformData);let{relyHandleList:n,firstId:o}=this.linkageItem.getRelyHandleList("sure000");_.set(this.relyHandleListMap,this.subformData.length-1,n),_.isEmpty(n)&&this.$bpm.$emit("initRelyComplete",this),o&&setTimeout((async()=>{let e=await this.linkageItem.loadLinkage(n,this.subformData,this.container.formData,this.fieldConf.id,this.subformData.length-1);_.map(e,((e,t)=>{this.$set(this.subformData[this.subformData.length-1],`${t}`,e)})),this.handleChange(),this.$bpm.$emit("handeInitRely",{id:o,rowIndex:this.subformData.length-1})}),500)},setData(e){let t=this.showField,a=_.filter(e,((e,a)=>{e.rowIndex=a;let i=!e._meta.is_deleted&&(!t||t&&(2==e[t]||!e[t]));return e.visible=i,i}));if(this.groupField&&this.$q.platform.is.desktop&&this.readonly){let e=_.groupBy(a,this.groupField);_.map(e,((e,t)=>{_.each(e,((e,a)=>{0==a&&(e._groupField=t)}))}))}return console.log("tableData",a),this._oldVal=JSON.stringify(e),a},handleRemoveItem(e,t){console.log("deleteRowIndex",e),console.log("deleteRowIndex.isEditingMap",this.isEditingMap),this.subformData[e].isNew?(console.log("删除子表单项"),this.subformData.splice(e,1)):(console.log("标记删除子表单项"),this.subformData[e]._meta.is_deleted=!0),this.handleChange()},handleEditItem(e){console.log("editRowIndex",e),this.subformData[e]&&this.$set(this.isEditingMap,this.subformData[e]._meta.id,!0)}}},d={name:"SubFormStyleTable",mixins:[s],props:{showHeader:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},linkageItem:{type:Object,default:function(){return{}}},mode:{type:String,default:"view"},dm:{type:Boolean,default(){return!1}}},data(){return{hadClickRow:!1}},methods:{rowClick(e,t,a){console.log("row",e),"edit"==this.mode&&this.showSubformData.length>10&&(this.hadClickRow=!0),this.handleEditItem(e.rowIndex,e)}},computed:{showColumns(){return _.filter(this.columns,(e=>{if(e.visible)return e}))},hiddenColumns(){return _.filter(this.columns,(e=>{if(!e.visible)return e}))}}},m=i(4486),p=(0,m.A)(d,r,[],!1,null,null,null);p.options.__file="components/lib/bpmSubForm/src/table.vue";var h=p.exports,u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:{overflow:"auto"}},[e._l(e.showSubformData,(function(t,i){return a("el-card",{key:i,staticClass:"bpm-subform-card",class:e.mode,attrs:{shadow:"hover","body-style":{padding:"10px 20px",overflow:"auto",position:"relative",paddingRight:e.canRemove?"70px":"20px"}}},[a("el-form",{attrs:{"label-width":"180px",inline:!1}},[e.showIndex?a("el-form-item",{attrs:{label:e.indexLabel}},[e._v("\n "+e._s(i+1)+"\n ")]):e._e(),e._v(" "),e._l(e.columns,(function(l){return a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:l.visible&&l.data.visible,expression:"col.visible && col.data.visible"}],key:l.key,class:l.data.display&&(l.data.display.hide_name||"top"===l.data.display.label_position)?"no-label":"",attrs:{label:l.data.display&&(l.data.display.hide_name||"top"===l.data.display.label_position)?"":l.label,required:l.data.check&&l.data.check.required}},[l.data.display&&!l.data.display.hide_name&&"top"===l.data.display.label_position?a("div",{staticClass:"form-label-top"},[e._v(e._s(l.label))]):e._e(),e._v(" "),a("bpm-sub-form-field",e._b({ref:"bpmSubFormField",refInFor:!0,attrs:{type:l.data.type,fieldConf:l.data,mode:e.getFieldMode(l.data.perm,t),uiType:"form",rowIndex:i,container:e.container},on:{change:e.handleChange},model:{value:t[l.id],callback:function(a){e.$set(t,l.id,a)},expression:"item[col.id]"}},"bpm-sub-form-field",e.$attrs,!1))],1)}))],2),e._v(" "),e.canRemove&&e.countLimit.canRemove?a("el-button",{staticClass:"btn-delete",attrs:{type:"danger",icon:"el-icon-delete",circle:""},on:{click:function(a){return e.handleRemoveItem(t.rowIndex)}}}):e._e()],1)})),e._v(" "),e.canAdd&&e.countLimit.canAdd?a("el-button",{attrs:{type:"default",icon:"el-icon-plus"},on:{click:e.handleAddItem}},[e._v(e._s(e.$z("添加项","c.add_item")))]):e._e()],2)};u._withStripped=!0;var c={name:"SubFormStyleCard",mixins:[s],props:{linkageItem:{type:Object,default:function(){return{}}}}},f=(0,m.A)(c,u,[],!1,null,null,null);f.options.__file="components/lib/bpmSubForm/src/card.vue";var g=f.exports,y=i(4419);class b{constructor(e,t){this.penetrationZList=[],this.elementIdList=[],this.eleMap={},this.relyGraphData={nodes:[],edges:[]},this.elements=[],this.bpm=e,this.value=t}addStackArr(e,t,a){this.eleMap=t,this.elements=_.concat(this.elements,e),this.elementIdList=_.map(t,"id"),_.each(e,(e=>{a&&_.set(e,"parentId",a);let i=_.get(e,"linkage.depends",[]),l=_.get(e,"scope.depends",[]),n=_.get(e,"range_remote.depends",[]),o=_.concat(i,l);o=_.concat(o,n),a||(this.penetrationZList=_.concat(this.penetrationZList,o)),e.elements&&this.addStackArr(e.elements,t,e.id)})),this.createTopoGraph(e),this.penetrationZList=_.uniq(this.penetrationZList),this.penetrationZList=_.intersection(this.elementIdList,this.penetrationZList),this.relyGraphData.nodes.push({id:"sure000",name:"顶点"}),_.each(this.penetrationZList,(e=>{this.relyGraphData.edges.push({source:"sure000",target:e})}))}createTopoGraph(e){_.each(e,(e=>{let t=_.get(e,"mappings",[]),a=_.map(t,"local_field_id");_.each(a,(t=>{if(_.includes(this.elementIdList,t)){let a=_.get(this.eleMap,t);this.relyGraphData.nodes.push(a),this.relyGraphData.nodes.push(e),this.relyGraphData.edges.push({source:e.id,target:t})}}));let i=_.get(e,"linkage.depends",[]),l=_.get(e,"scope.depends",[]),n=_.get(e,"range_remote.depends",[]),o=_.concat(i,l);o=_.concat(o,n);let r=_.get(this.eleMap,e.id);if(_.each(o,(e=>{_.get(this.eleMap,e)||(_.pullAll(o,[e]),o=_.cloneDeep(o))})),o.length){let t=_.pullAll(this.penetrationZList,[e.id]);this.penetrationZList=_.cloneDeep(t)}_.each(o,(t=>{if(t&&e.id&&_.includes(this.elementIdList,t)){let a=_.get(this.eleMap,t);if(!a||!r)return;let i=r.id,l=_.get(this.eleMap,t);a&&!l&&(this.penetrationZList=_.replace(this.penetrationZList,t,i),this.penetrationZList=_.split(this.penetrationZList,",")),this.relyGraphData.nodes.push(e),this.relyGraphData.nodes.push(a),this.relyGraphData.edges.push({source:t,target:i})}e.elements&&this.createTopoGraph(e.elements)}))}))}getRelyHandleList(e,t){let a=[];const{breadthFirstSearch:i}=y.Algorithm;let l=null;return i(this.relyGraphData,e,{enter:({current:e,previous:t})=>{},leave:({current:i,previous:n})=>{l||i==e||t&&!_.includes(t,i)||(l=i),i!=e&&a.push(i)}}),{relyHandleList:a,firstId:l}}async loadLinkage(e,t,a,i,l){let n=[],o={};_.each(e,(e=>{let t=_.get(this.eleMap,e),i=_.get(t,"linkage.depends");if("Quote"==t.type&&(i=_.concat(i,_.get(t,"scope.depends"))),i=_.intersection(i,this.elementIdList),!_.isEmpty(i)){let t={calculate_type:"linkage",field_def_id:e},r=_.pick(a,i);o=_.merge(o,r),_.isNil(l)||_.set(t,"idx",l),n.push(t)}})),t&&_.set(o,i,t);let r=await this.bpm.loadResult({params:{cal_fields:n,fields:o}});return _.map(r.data,((e,t)=>{let a=_.get(this.eleMap,`${t}.type`);_.includes(["SelectFromForm","Quote"],a)&&(e=_.get(e,"data.form_id")),r.data[t]=e})),r.data}async fillDefault(e,t=[],a){let i=[];if(_.each(this.elements,(l=>{if(_.includes(t,l.id))return _.set(e,l.id,null),void this.setLocalCache(l.id,null,a);let n=_.get(e,l.id);if(!_.isNil(n))return;let o=_.get(l,"default.value.type");if("EVCConfig"==o){let t=_.get(l,"default.value.value",null);_.set(e,l.id,t),this.setLocalCache(l.id,t,a)}"EVCExpression"!=o&&"EVCFirstElem"!=o||i.push({calculate_type:"default",field_def_id:l.id})})),_.isEmpty(i))return;let l=await this.bpm.loadResult({params:{cal_fields:i}});_.map(l.data,((t,i)=>{let l=_.get(this.eleMap,`${i}.type`);_.includes(["SelectFromForm","Quote"],l)&&(t=_.get(t,"data.form_id")),_.includes(["MulSelectFromForm"],l)&&(t=_.map(t,"data.form_id")),_.set(e,i,t),this.setLocalCache(i,t,a)}))}setLocalCache(e,t,a){let i=_.get(this.eleMap,`${e}.value_type`);this.bpm.setLocalCache(a,`${e}.${i}`,t)}}var v={name:"BpmSubForm",components:{SubFormStyleTable:h,SubFormStyleCard:g},props:{value:{type:Array,default(){return[]}},type:{type:String,default:"XSubForm"},fieldConf:{type:Object,default(){return{}}},mode:{type:String,default:"view"},uiType:{type:String,default:"default"},maxHeight:{type:[Number,String],default:500},showHeader:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},container:{type:Object,default:function(){return{}}},dm:{type:Boolean,default(){return!1}}},data(){return{subformData:[],dialogTableMaxHeight:500,showSubForm:!1,linkageItem:null,initLinkageFlag:!1,relyHandleList:[],relyHandleListMap:{}}},computed:{fieldSelf(){return this},columns(){const e=this.fieldConf.elements||[],t=[];return e.forEach((e=>{const a=o.Q[e.type]||{},i=e.perm||{visible:!0,editable:!0,writable:!0};if(this.dm||i.visible||i.editable||i.writable){e.visible=i.visible||this.dm;let l=this.mode;"edit"!==l||i.editable||i.writable||(l="view"),t.push({key:e.id,id:e.id,label:e.name||e.id,minWidth:a.tableColWidth||100,sortable:!0,sortBy:e.id,fieldMode:l,visible:i.visible,data:e})}})),t},subFormDialogTitle(){return this.fieldConf.name||this.fieldConf.id},showStyle(){return this.fieldConf.style||"table"},subformPerm(){return this.fieldConf.perm||{creatable:!1,deletable:!1,editable:!1,memorable:!1,modifiable:!1,visible:!0,writable:!1}},isSubForm(){return!0},elementIdList(){return _.map(this.fieldConf.elements,"id")},eleMap(){let e=this.fieldConf.elements,t=_.get(this.container,"formSchema.elements");return e=_.concat(e,t),_.keyBy(e,"id")}},watch:{value:{handler(e,t){e&&_.isArray(e)?(this.subformData=e,e!=t&&this.$nextTick((()=>{this.initLinkage()}))):this.subformData=[]},immediate:!0}},created(){this.linkageItem=new b(this.$bpm),this.dialogTableMaxHeight=Math.floor(window.innerHeight/100*70-114)},mounted(){this.linkageItem.addStackArr(this.fieldConf.elements,this.eleMap),console.log("重新渲染")},methods:{handleChange(e){this.$emit("input",e),this.$emit("change",e)},initLinkage(){if(this.initLinkageFlag||0==this.subformData.length)return!1;console.log("初始化联动");let{relyHandleList:e}=this.linkageItem.getRelyHandleList("sure000");_.set(this.relyHandleListMap,this.value.length-1,e),console.log("relyHandleList",e),console.log("this.relyHandleListMap",this.relyHandleListMap),this.initLinkageFlag=!0,setTimeout((()=>{console.log("initRelyComplete_subFormInitLinkage",this),this.$bpm.$emit("initRelyComplete",this)}),1e3)},handleNextRely(e){console.log("sub-form-handleNextRely");let t=_.get(this.relyHandleListMap,e);console.log("sub-form-handleNextRely_relyHandleList",t),t&&t.shift(),_.isEmpty(t)&&this.$bpm.$emit("initRelyComplete",this);let a=_.head(t,e);a&&this.$bpm.$emit("handeInitRely",{id:a,rowIndex:e})},async handleRelyById(e,t){console.log("XSubForm handleRelyById"),console.log("sub-form-handleRelyById",e),console.log("sub-form-handleRelyById-rowIndex",t),console.log("sub-form-handleRelyById-this.elementIdList",this.elementIdList);let{relyHandleList:a,firstId:i}=this.linkageItem.getRelyHandleList(e);if(console.log("sub-form-handleRelyById-relyHandleList",a),console.log("sub-form-handleRelyById-firstId",i),_.set(this.relyHandleListMap,t,a),i){let e=await this.linkageItem.loadLinkage(a,this.value,this.container.formData,this.fieldConf.id,t);console.log("sub-form-handleRelyById-result",e),_.map(e,((e,a)=>{this.$set(this.value[t],`${a}`,e)})),this.$bpm.$emit("handeRelyById",{id:i,rowIndex:t})}},handleNextRelyById(e){console.log("sub-form-handleNextRelyById");let t=_.get(this.relyHandleListMap,e);console.log("sub-form-handleNextRelyById-relyHandleList",t),t.shift(),_.isEmpty(t)&&this.$bpm.$emit("initRelyComplete",this);let a=_.head(t);a&&this.$bpm.$emit("handeRelyById",{id:a,rowIndex:e})},setData(){}}},S=(0,m.A)(v,n,[],!1,null,"e0a458ce",null);S.options.__file="components/lib/bpmSubForm/src/main.vue";var k=S.exports;k.install=function(e){e.component(k.name,k)};var C=k;return l}()}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@antv/g6")):"function"==typeof define&&define.amd?define(["@antv/g6"],t):"object"==typeof exports?exports.bpm2=t(require("@antv/g6")):e.bpm2=t(e["@antv/g6"])}(self,(function(e){return function(){"use strict";var t={7520:function(e,t,a){a.d(t,{Q:function(){return o}});let i=[{key:"lt",name:"早于"},{key:"gt",name:"晚于"},{key:"gte",name:"不早于"},{key:"lte",name:"不晚于"}],l=[{key:"in",name:"在列表中"}],n=[{key:"in",name:"在列表中"},{key:"all",name:"包含所有"}];const o={Text:{name:"单行文本",hasBpmField:!0,tableColWidth:240,actions:[{key:"contains",name:"包含"},{key:"eq",name:"等于"}],attrs:["type","value_type","id","name","linkage"]},TextArea:{name:"多行文本",hasBpmField:!0,tableColWidth:300,actions:[{key:"contains",name:"包含"},{key:"eq",name:"等于"}],attrs:["type","value_type","id","name","linkage"]},SerialNumber:{name:"流水号",hasBpmField:!0,actions:[{key:"contains",name:"包含"}],options:{type:"Text"},attrs:["type","id","name","linkage"]},Number:{name:"数字",hasBpmField:!0,tableColWidth:200,actions:[{key:"eq",name:"等于"},{key:"gt",name:"大于"},{key:"gte",name:"大于等于"},{key:"lt",name:"小于"},{key:"lte",name:"小于等于"},{key:"ne",name:"不等于"}],attrs:["type","id","name","value_type","is_int","view.precision","linkage"]},DateTime:{name:"日期时间选择器",tableColWidth:240,hasBpmField:!0,actions:i,attrs:["type","id","name","check.format","view.format","linkage"]},Date:{name:"日期选择器",tableColWidth:240,hasBpmField:!0,actions:i,attrs:["type","id","name","check.format","view.format","linkage"]},Time:{name:"时间选择器",hasBpmField:!0,tableColWidth:240,actions:i,attrs:["type","id","name","check.format","view.format","linkage"]},Timestamp:{name:"※时间戳",tableColWidth:240,actions:i,attrs:["type","id","name","check.format","view.format","linkage"]},Select:{name:"单选",hasBpmField:!0,tableColWidth:220,actions:l,options:{type:"MulSelect"},attrs:["type","id","name","value_type","style","range_enum","linkage"]},Status:{name:"状态",hasBpmField:!0,tableColWidth:150,actions:l,options:{type:"MulSelect"},attrs:["type","id","name","value_type","style","range_enum","linkage"]},MulSelect:{name:"多选",hasBpmField:!0,tableColWidth:220,actions:n,attrs:["type","id","name","value_type","result_type","style","range_enum","linkage"]},SelectFromForm:{name:"远程单项选择",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectFromForm"},attrs:["type","id","name","range_remote","value_type","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.form","range_remote.depends","linkage"]},MulSelectFromForm:{name:"远程多项选择",hasBpmField:!0,tableColWidth:200,actions:n,attrs:["type","id","name","range_remote","value_type","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.form","range_remote.depends","linkage"]},SelectFromMulForm:{name:"关联组件",hasBpmField:!0,tableColWidth:200,actions:n,attrs:["type","id","name","range_remote","value_type"]},SelectProject:{name:"项目单项选择",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectProject"},attrs:["type","id","name","range_remote","value_type","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.depends","linkage"]},MulSelectProject:{name:"项目多项选择",hasBpmField:!0,tableColWidth:200,actions:n,attrs:["type","id","name","range_remote","value_type","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.depends","linkage"]},SelectUser:{name:"用户单项选择",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectUser"},attrs:["type","id","name","range_remote","value_type","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.depends","linkage"]},MulSelectUser:{name:"用户多项选择",hasBpmField:!0,tableColWidth:200,actions:n,options:{type:"MulSelectUser"},attrs:["type","id","name","range_remote","value_type","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.depends","linkage"]},SelectURUser:{name:"用户单项选择(新)",hasBpmField:!0,tableColWidth:400,actions:l,options:{type:"MulSelectURUser"},attrs:["type","id","name","range_remote","value_type","filters","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.depends","linkage"]},MulSelectURUser:{name:"用户多项选择(新)",hasBpmField:!0,tableColWidth:400,actions:n,options:{type:"MulSelectURUser"},attrs:["type","id","name","range_remote","value_type","filters","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.depends","linkage"]},SelectRootCategory:{name:"根任务类型选择",hasBpmField:!0,tableColWidth:200,actions:[{key:"eq",name:"等于"}],attrs:["type","id","name","category_cls","value_type","linkage"]},SelectCheckItem:{name:"检查项单项选择",hasBpmField:!0,actions:l,tableColWidth:200,options:{type:"MulSelectCheckItem"},attrs:["type","id","name","category_cls","value_type","range_remote","root_category","tree_select","can_select","can_select.filter_expression","range_remote.filter_expression","range_remote.depends","linkage"]},MulSelectCheckItem:{name:"检查项多项选择",hasBpmField:!0,tableColWidth:200,actions:n,attrs:["type","id","name","category_cls","value_type","range_remote","root_category","tree_select","can_select","can_select.filter_expression","range_remote.filter_expression","range_remote.depends","linkage"]},SelectSort:{name:"分类单项选择",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectSort"},attrs:["type","id","name","value_type","range_remote","tree_select","can_select","can_select.filter_expression","range_remote.filter_expression","range_remote.depends","linkage"]},MulSelectSort:{name:"分类多项选择",hasBpmField:!0,tableColWidth:200,actions:n,attrs:["type","id","name","value_type","range_remote","tree_select","can_select","can_select.filter_expression","range_remote.filter_expression","range_remote.depends","linkage"]},SelectPartner:{name:"合作伙伴单项选择",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectPartner"},attrs:["type","id","name","value_type","range_remote","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.depends","linkage"]},MulSelectPartner:{name:"合作伙伴多项选择",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectPartner"},attrs:["type","id","name","value_type","range_remote","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.depends","linkage"]},SelectOrg:{name:"单位单项选择",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectOrg"},attrs:["type","id","name","value_type","range_remote","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.depends","linkage"]},MulSelectOrg:{name:"单位多项选择",hasBpmField:!0,tableColWidth:200,actions:n,attrs:["type","id","name","value_type","range_remote","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.depends","linkage"]},Audit:{name:"审批",hasBpmField:!0,actions:[{key:"ar_eq",name:"审批结果等于"},{key:"ar_in",name:"审批结果在列表中"}],actionOptions:[{value:0,label:"未审批"},{value:1,label:"审批通过"},{value:2,label:"审批未通过"}],attrs:["type","id","name","linkage"],options:{result_type:"Array",value_type:"int",type:"MulSelect",style:"default",range_enum:[[0,"未审批"],[1,"通过"],[2,"未通过"]]}},MulArea:{name:"区域多项选择",hasBpmField:!0,tableColWidth:260,actions:n,attrs:["type","id","name","value_type","can","linkage"]},Area:{name:"区域单项选择",hasBpmField:!0,tableColWidth:260,actions:l,options:{type:"MulArea"},attrs:["type","id","name","value_type","can","linkage"]},SelectFormId:{name:"表单单项选择",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectFormId"},attrs:["type","id","name","value_type","form_select_type","linkage"]},MulSelectFormId:{name:"表单多项选择",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectFormId"},attrs:["type","id","name","value_type","form_select_type","linkage"]},SelectFromField:{name:"远程单选(从字段)",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectFromField"},attrs:["type","id","name","range_remote","style","value_type","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.form","range_remote.depends","linkage"]},MulSelectFromField:{name:"远程多选(从字段)",hasBpmField:!0,tableColWidth:200,actions:l,options:{type:"MulSelectFromField"},attrs:["type","id","name","range_remote","style","value_type","range_remote.filter_expression","range_remote.store_field","range_remote.display_field","range_remote.form","range_remote.depends","linkage"]},MulSelectEntranceForm:{name:"远程多项选择(从入口)",hasBpmField:!0},SelectHouseOwner:{name:"业主选择"},MulSelectIssue:{name:"问题选择"},MulFile:{name:"附件",hasBpmField:!0,tableColWidth:150},MulImage:{name:"图片",hasBpmField:!0,tableColWidth:150},Signature:{name:"签名",hasBpmField:!0},OnlineEditor:{name:"在线文档编辑器"},Spliter:{name:"分割线",hasBpmField:!1},Stepper:{name:"步进器",hasBpmField:!1},Quote:{name:"跨表单数据引用",hasBpmField:!1},Order:{name:"排序控件",hasBpmField:!1},SubForm:{name:"子表单",hasBpmField:!0},XSubForm:{name:"子表单(增强版)",hasBpmField:!0},OrderSubForm:{name:"排序子表单",hasBpmField:!0},AreaElevation:{name:"区域快速选择器",hasBpmField:!0,tableColWidth:200},RichText:{name:"富文本编辑框",hasBpmField:!0,tableColWidth:100}}},4486:function(e,t,a){function i(e,t,a,i,l,n,o,r){var s,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=a,d._compiled=!0),i&&(d.functional=!0),n&&(d._scopeId="data-v-"+n),o?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),l&&l.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=s):l&&(s=r?function(){l.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:l),s)if(d.functional){d._injectStyles=s;var m=d.render;d.render=function(e,t){return s.call(t),m(e,t)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,s):[s]}return{exports:e,options:d}}a.d(t,{A:function(){return i}})},4419:function(t){t.exports=e}},a={};function i(e){var l=a[e];if(void 0!==l)return l.exports;var n=a[e]={exports:{}};return t[e](n,n.exports,i),n.exports}i.d=function(e,t){for(var a in t)i.o(t,a)&&!i.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};i.r(l),i.d(l,{default:function(){return C}});var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",["table"===e.uiType?a("el-button",{attrs:{type:"text"},on:{click:function(t){e.showSubForm=!0}}},[e._v(e._s(e.$z("查看子表单","b2.common.view_subform")))]):"table"===e.showStyle?a("SubFormStyleTable",e._b({attrs:{value:e.subformData,columns:e.columns,subformPerm:e.subformPerm,fieldConf:e.fieldConf,mode:e.mode,dm:e.dm,"max-height":e.maxHeight,"show-header":e.showHeader,resizable:e.resizable,"top-container":e.container,container:e.fieldSelf,linkageItem:e.linkageItem},on:{change:e.handleChange}},"SubFormStyleTable",e.$attrs,!1)):a("SubFormStyleCard",e._b({attrs:{value:e.subformData,columns:e.columns,subformPerm:e.subformPerm,fieldConf:e.fieldConf,mode:e.mode,dm:e.dm,"max-height":e.maxHeight,"top-container":e.container,container:e.fieldSelf,linkageItem:e.linkageItem},on:{change:e.handleChange}},"SubFormStyleCard",e.$attrs,!1)),e._v(" "),"table"===e.uiType?a("el-dialog",{attrs:{title:e.subFormDialogTitle,visible:e.showSubForm,width:"50%"},on:{"update:visible":function(t){e.showSubForm=t},close:function(t){e.showSubForm=!1}}},[a("div",{staticStyle:{"max-height":"70vh",overflow:"auto"}},["table"===e.showStyle?a("SubFormStyleTable",e._b({attrs:{value:e.subformData,columns:e.columns,subformPerm:e.subformPerm,fieldConf:e.fieldConf,mode:e.mode,dm:e.dm,"max-height":e.dialogTableMaxHeight,"show-header":!0,resizable:!0,"top-container":e.container,container:e.fieldSelf,linkageItem:e.linkageItem},on:{change:e.handleChange}},"SubFormStyleTable",e.$attrs,!1)):a("SubFormStyleCard",e._b({attrs:{value:e.subformData,columns:e.columns,subformPerm:e.subformPerm,fieldConf:e.fieldConf,"top-container":e.container,container:e.fieldSelf,linkageItem:e.linkageItem,mode:e.mode,dm:e.dm},on:{change:e.handleChange}},"SubFormStyleCard",e.$attrs,!1))],1)]):e._e()],1)};n._withStripped=!0;var o=i(7520),r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$z("单击可进行编辑","c.click_to_edit"),placement:"top",disabled:!("edit"==e.mode&&e.showSubformData.length>10&&!e.hadClickRow)}},[a("el-table",{key:"rowIndex",staticClass:"bpm-subform-table",staticStyle:{width:"100%"},attrs:{data:e.showSubformData,"max-height":e.maxHeight,"show-header":e.showHeader,resizable:e.resizable,border:"",stripe:""},on:{"row-click":e.rowClick}},[e.showIndex?a("el-table-column",{attrs:{type:"index",label:e.indexLabel,width:100},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n\n "),e._l(e.hiddenColumns,(function(i){return[a("bpm-sub-form-field",e._b({directives:[{name:"show",rawName:"v-show",value:i.data.visible,expression:"col.data.visible"}],key:i.key,attrs:{type:i.data.type,fieldConf:i.data,mode:e.dm?e.mode:e.getFieldMode(i.data.perm,t.row),dm:e.dm,uiType:"table",rowIndex:t.row.rowIndex,container:e.container},on:{input:e.handleInput,change:e.handleChange},model:{value:t.row[i.id],callback:function(a){e.$set(t.row,i.id,a)},expression:"scope.row[col.id]"}},"bpm-sub-form-field",e.$attrs,!1))]}))]}}],null,!1,2409594641)}):e._e(),e._v(" "),e._l(e.showColumns,(function(t){return a("el-table-column",{key:t.key,attrs:{prop:t.id,label:(t.data.check&&t.data.check.required?"* ":"")+t.label,"min-width":t.minWidth,sortable:t.sortable,"sort-by":t.sortBy},scopedSlots:e._u([{key:"default",fn:function(i){return[a("bpm-sub-form-field",e._b({directives:[{name:"show",rawName:"v-show",value:t.data.visible,expression:"col.data.visible"}],attrs:{type:t.data.type,fieldConf:t.data,mode:e.dm?e.mode:e.getFieldMode(t.data.perm,i.row),dm:e.dm,uiType:"table",rowIndex:i.row.rowIndex,container:e.container},on:{input:e.handleInput,change:e.handleChange},model:{value:i.row[t.id],callback:function(a){e.$set(i.row,t.id,a)},expression:"scope.row[col.id]"}},"bpm-sub-form-field",e.$attrs,!1))]}}],null,!0)},[a("template",{slot:"header"},[t.data.check&&t.data.check.required?a("span",{staticStyle:{color:"#D84141"}},[e._v("* ")]):e._e(),e._v(" "),a("span",[e._v(e._s(t.label))])])],2)})),e._v(" "),e.canRemove&&e.countLimit.canRemove&&"edit"==e.mode?a("el-table-column",{attrs:{prop:"delete",label:e.$z("操作","c.operation"),width:100},scopedSlots:e._u([{key:"default",fn:function(t){return[e.canRemove&&e.countLimit.canRemove?a("el-button",{staticClass:"btn-delete",attrs:{type:"danger",icon:"el-icon-delete",circle:""},on:{click:function(a){return a.stopPropagation(),e.handleRemoveItem(t.row.rowIndex)}}}):e._e()]}}],null,!1,538655453)}):e._e()],2)],1),e._v(" "),e.canAdd&&e.countLimit.canAdd?a("el-button",{staticStyle:{"margin-top":"10px"},attrs:{type:"default",icon:"el-icon-plus"},on:{click:e.handleAddItem}},[e._v(e._s(e.$z("添加项","c.add_item")))]):e._e()],1)};r._withStripped=!0;var s={props:{value:{type:Array,default(){return[]}},columns:{type:Array,default(){return[]}},subformPerm:{type:Object,default(){return{}}},fieldConf:{type:Object,default(){return{}}},mode:{type:String,default:"view"},maxHeight:{type:[Number,String],default:500},container:{type:Object,default(){return{}}},topContainer:{type:Object,default(){return{}}}},data(){return{subformData:[],showSubformData:[],_oldVal:null,hasInit:!1,isEditingMap:{}}},computed:{form(){return this.topContainer},userId(){return _.get(this.$bpm.userInfo,"user_id",0)},maxId(){let e=_.map(this.subformData,"_meta.id");return _.max(e)||0},originItem(){let e={};const t={int:0,text:"",array:[],struct:[]};return this.columns.forEach((a=>{e[a.id]=t[a.data.value_type]||""})),e},canAdd(){return"edit"===this.mode&&(this.subformPerm.creatable||this.dm)},canRemove(){return"edit"===this.mode&&(this.subformPerm.deletable||this.dm)},min(){const e=_.get(this.fieldConf,"check.min_count",0),t=_.get(this.fieldConf,"check.xmin_count");return t?this.form.formData[t]||0:e},max(){const e=_.get(this.fieldConf,"check.max_count"),t=_.get(this.fieldConf,"check.xmax_count");return t?this.form.formData[t]||0:e},countLimit(){const e=this.min,t=this.max;let a=this.showSubformData.length;return{canAdd:!(t&&a>=t),canRemove:!(a<=e)}},showIndex(){return!!this.fieldConf.show_index},indexLabel(){return this.fieldConf.index_label||zj.z("序号","b2.common.subform_index")},groupField(){return _.get(this.fieldConf,"group_by.by","")},showField(){return _.get(this.fieldConf,"is_show_field")},readonly(){return!_.get(this.fieldConf,"perm.editable",!1)}},watch:{value:{handler(e){e&&_.isArray(e)?this.subformData=e:this.subformData=[]},immediate:!0},subformData:{handler(e){this.showSubformData=this.setData(e),console.log("this.showSubformData",this.showSubformData)},deep:!0,immediate:!0},min(e,t){this.addItemByMin(e)},max(e,t){let a=this.showSubformData.length;if(e&&a>e){let t=a-e,i=0;for(let e=this.subformData.length;e>0;e--){let a=this.subformData[e-1];a.visible&&i<t&&(this.handleRemoveItem(a.rowIndex,a),i++)}}}},mounted(){this.form.$once("dataLoaded",(e=>{this.addItemByMin(this.min)}))},methods:{getFieldMode(e,t){let a=this.mode;return!e||"edit"!==a||e.editable||e.writable?!this.isEditingMap[t._meta.id]&&this.showSubformData.length>10&&(a="view"):a="view",a},throttleEmit:_.throttle((function(){"edit"===this.mode&&(console.log("subForm change emit"),this.$emit("change",this.subformData))}),1e3),handleChange(e){console.log("field change: ",e),this.throttleEmit()},handleInput(e){console.log("field input: ",e)},async addItemByMin(e){if(_.get(this.fieldConf,"linkage"))return;let t=this.showSubformData.length;if(e&&t<e){let a=e-t;for(let e=0;e<a;e++)await this.handleAddItem()}},async handleAddItem(){let e=this.maxId+1,t=this.subformData.length,a=t>=1?this.subformData[t-1]:_.cloneDeep(this.originItem),i=_.get(this.fieldConf,"fill_in_last_fields",[]);a=_.pick(a,i),_.isEmpty(a)||delete a._meta,console.log("lastItem: ",a);let l={isNew:!0,_meta:{id:e,creator:this.userId,is_deleted:!1}};this.$set(this.isEditingMap,e,!0),l=_.merge(l,a),await this.linkageItem.fillDefault(l,[],this.mode),!this.subformData||_.isEmpty(this.subformData)?this.subformData=[l]:this.subformData.push(l),this.handleChange(),console.log("this.subformData",this.subformData);let{relyHandleList:n,firstId:o}=this.linkageItem.getRelyHandleList("sure000");_.set(this.relyHandleListMap,this.subformData.length-1,n),_.isEmpty(n)&&this.$bpm.$emit("initRelyComplete",this),o&&setTimeout((async()=>{let e=await this.linkageItem.loadLinkage(n,this.subformData,this.container.formData,this.fieldConf.id,this.subformData.length-1);_.map(e,((e,t)=>{this.$set(this.subformData[this.subformData.length-1],`${t}`,e)})),this.handleChange(),this.$bpm.$emit("handeInitRely",{id:o,rowIndex:this.subformData.length-1})}),500)},setData(e){let t=this.showField,a=_.filter(e,((e,a)=>{e.rowIndex=a;let i=!e._meta.is_deleted&&(!t||t&&(2==e[t]||!e[t]));return e.visible=i,i}));if(this.groupField&&this.$q.platform.is.desktop&&this.readonly){let e=_.groupBy(a,this.groupField);_.map(e,((e,t)=>{_.each(e,((e,a)=>{0==a&&(e._groupField=t)}))}))}return console.log("tableData",a),this._oldVal=JSON.stringify(e),a},handleRemoveItem(e,t){console.log("deleteRowIndex",e),console.log("deleteRowIndex.isEditingMap",this.isEditingMap),this.subformData[e].isNew?(console.log("删除子表单项"),this.subformData.splice(e,1)):(console.log("标记删除子表单项"),this.subformData[e]._meta.is_deleted=!0),this.handleChange()},handleEditItem(e){console.log("editRowIndex",e),this.subformData[e]&&this.$set(this.isEditingMap,this.subformData[e]._meta.id,!0)}}},d={name:"SubFormStyleTable",mixins:[s],props:{showHeader:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},linkageItem:{type:Object,default:function(){return{}}},mode:{type:String,default:"view"},dm:{type:Boolean,default(){return!1}}},data(){return{hadClickRow:!1}},methods:{rowClick(e,t,a){console.log("row",e),"edit"==this.mode&&this.showSubformData.length>10&&(this.hadClickRow=!0),this.handleEditItem(e.rowIndex,e)}},computed:{showColumns(){return _.filter(this.columns,(e=>{if(e.visible)return e}))},hiddenColumns(){return _.filter(this.columns,(e=>{if(!e.visible)return e}))}}},m=i(4486),p=(0,m.A)(d,r,[],!1,null,null,null);p.options.__file="components/lib/bpmSubForm/src/table.vue";var h=p.exports,u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:{overflow:"auto"}},[e._l(e.showSubformData,(function(t,i){return a("el-card",{key:i,staticClass:"bpm-subform-card",class:e.mode,attrs:{shadow:"hover","body-style":{padding:"10px 20px",overflow:"auto",position:"relative",paddingRight:e.canRemove?"70px":"20px"}}},[a("el-form",{attrs:{"label-width":"180px",inline:!1}},[e.showIndex?a("el-form-item",{attrs:{label:e.indexLabel}},[e._v("\n "+e._s(i+1)+"\n ")]):e._e(),e._v(" "),e._l(e.columns,(function(l){return a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:l.visible&&l.data.visible,expression:"col.visible && col.data.visible"}],key:l.key,class:l.data.display&&(l.data.display.hide_name||"top"===l.data.display.label_position)?"no-label":"",attrs:{label:l.data.display&&(l.data.display.hide_name||"top"===l.data.display.label_position)?"":l.label,required:l.data.check&&l.data.check.required}},[l.data.display&&!l.data.display.hide_name&&"top"===l.data.display.label_position?a("div",{staticClass:"form-label-top"},[e._v(e._s(l.label))]):e._e(),e._v(" "),a("bpm-sub-form-field",e._b({ref:"bpmSubFormField",refInFor:!0,attrs:{type:l.data.type,fieldConf:l.data,mode:e.getFieldMode(l.data.perm,t),uiType:"form",rowIndex:i,container:e.container},on:{change:e.handleChange},model:{value:t[l.id],callback:function(a){e.$set(t,l.id,a)},expression:"item[col.id]"}},"bpm-sub-form-field",e.$attrs,!1))],1)}))],2),e._v(" "),e.canRemove&&e.countLimit.canRemove?a("el-button",{staticClass:"btn-delete",attrs:{type:"danger",icon:"el-icon-delete",circle:""},on:{click:function(a){return e.handleRemoveItem(t.rowIndex)}}}):e._e()],1)})),e._v(" "),e.canAdd&&e.countLimit.canAdd?a("el-button",{attrs:{type:"default",icon:"el-icon-plus"},on:{click:e.handleAddItem}},[e._v(e._s(e.$z("添加项","c.add_item")))]):e._e()],2)};u._withStripped=!0;var c={name:"SubFormStyleCard",mixins:[s],props:{linkageItem:{type:Object,default:function(){return{}}}}},f=(0,m.A)(c,u,[],!1,null,null,null);f.options.__file="components/lib/bpmSubForm/src/card.vue";var g=f.exports,y=i(4419);class b{constructor(e,t){this.penetrationZList=[],this.elementIdList=[],this.eleMap={},this.relyGraphData={nodes:[],edges:[]},this.elements=[],this.bpm=e,this.value=t}addStackArr(e,t,a){this.eleMap=t,this.elements=_.concat(this.elements,e),this.elementIdList=_.map(t,"id"),_.each(e,(e=>{a&&_.set(e,"parentId",a);let i=_.get(e,"linkage.depends",[]),l=_.get(e,"scope.depends",[]),n=_.get(e,"range_remote.depends",[]),o=_.concat(i,l);o=_.concat(o,n),a||(this.penetrationZList=_.concat(this.penetrationZList,o)),e.elements&&this.addStackArr(e.elements,t,e.id)})),this.createTopoGraph(e),this.penetrationZList=_.uniq(this.penetrationZList),this.penetrationZList=_.intersection(this.elementIdList,this.penetrationZList),this.relyGraphData.nodes.push({id:"sure000",name:"顶点"}),_.each(this.penetrationZList,(e=>{this.relyGraphData.edges.push({source:"sure000",target:e})}))}createTopoGraph(e){_.each(e,(e=>{let t=_.get(e,"mappings",[]),a=_.map(t,"local_field_id");_.each(a,(t=>{if(_.includes(this.elementIdList,t)){let a=_.get(this.eleMap,t);this.relyGraphData.nodes.push(a),this.relyGraphData.nodes.push(e),this.relyGraphData.edges.push({source:e.id,target:t})}}));let i=_.get(e,"linkage.depends",[]),l=_.get(e,"scope.depends",[]),n=_.get(e,"range_remote.depends",[]),o=_.concat(i,l);o=_.concat(o,n);let r=_.get(this.eleMap,e.id);if(_.each(o,(e=>{_.get(this.eleMap,e)||(_.pullAll(o,[e]),o=_.cloneDeep(o))})),o.length){let t=_.pullAll(this.penetrationZList,[e.id]);this.penetrationZList=_.cloneDeep(t)}_.each(o,(t=>{if(t&&e.id&&_.includes(this.elementIdList,t)){let a=_.get(this.eleMap,t);if(!a||!r)return;let i=r.id,l=_.get(this.eleMap,t);a&&!l&&(this.penetrationZList=_.replace(this.penetrationZList,t,i),this.penetrationZList=_.split(this.penetrationZList,",")),this.relyGraphData.nodes.push(e),this.relyGraphData.nodes.push(a),this.relyGraphData.edges.push({source:t,target:i})}e.elements&&this.createTopoGraph(e.elements)}))}))}getRelyHandleList(e,t){let a=[];const{breadthFirstSearch:i}=y.Algorithm;let l=null;return i(this.relyGraphData,e,{enter:({current:e,previous:t})=>{},leave:({current:i,previous:n})=>{l||i==e||t&&!_.includes(t,i)||(l=i),i!=e&&a.push(i)}}),{relyHandleList:a,firstId:l}}async loadLinkage(e,t,a,i,l){let n=[],o={};_.each(e,(e=>{let t=_.get(this.eleMap,e),i=_.get(t,"linkage.depends");if("Quote"==t.type&&(i=_.concat(i,_.get(t,"scope.depends"))),i=_.intersection(i,this.elementIdList),!_.isEmpty(i)){let t={calculate_type:"linkage",field_def_id:e},r=_.pick(a,i);o=_.merge(o,r),_.isNil(l)||_.set(t,"idx",l),n.push(t)}})),t&&_.set(o,i,t);let r=await this.bpm.loadResult({params:{cal_fields:n,fields:o}});return _.map(r.data,((e,t)=>{let a=_.get(this.eleMap,`${t}.type`);_.includes(["SelectFromForm","Quote"],a)&&(e=_.get(e,"data.form_id")),r.data[t]=e})),r.data}async fillDefault(e,t=[],a){let i=[];if(_.each(this.elements,(l=>{if(_.includes(t,l.id))return _.set(e,l.id,null),void this.setLocalCache(l.id,null,a);let n=_.get(e,l.id);if(!_.isNil(n))return;let o=_.get(l,"default.value.type");if("EVCConfig"==o){let t=_.get(l,"default.value.value",null);_.set(e,l.id,t),this.setLocalCache(l.id,t,a)}"EVCExpression"!=o&&"EVCFirstElem"!=o||i.push({calculate_type:"default",field_def_id:l.id})})),_.isEmpty(i))return;let l=await this.bpm.loadResult({params:{cal_fields:i}});_.map(l.data,((t,i)=>{let l=_.get(this.eleMap,`${i}.type`);_.includes(["SelectFromForm","Quote"],l)&&(t=_.get(t,"data.form_id")),_.includes(["MulSelectFromForm"],l)&&(t=_.map(t,"data.form_id")),_.set(e,i,t),this.setLocalCache(i,t,a)}))}setLocalCache(e,t,a){let i=_.get(this.eleMap,`${e}.value_type`);this.bpm.setLocalCache(a,`${e}.${i}`,t)}}var v={name:"BpmSubForm",components:{SubFormStyleTable:h,SubFormStyleCard:g},props:{value:{type:Array,default(){return[]}},type:{type:String,default:"XSubForm"},fieldConf:{type:Object,default(){return{}}},mode:{type:String,default:"view"},uiType:{type:String,default:"default"},maxHeight:{type:[Number,String],default:500},showHeader:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},container:{type:Object,default:function(){return{}}},dm:{type:Boolean,default(){return!1}}},data(){return{subformData:[],dialogTableMaxHeight:500,showSubForm:!1,linkageItem:null,initLinkageFlag:!1,relyHandleList:[],relyHandleListMap:{}}},computed:{fieldSelf(){return this},columns(){const e=this.fieldConf.elements||[],t=[];return e.forEach((e=>{const a=o.Q[e.type]||{},i=e.perm||{visible:!0,editable:!0,writable:!0};if(this.dm||i.visible||i.editable||i.writable){e.visible=i.visible||this.dm;let l=this.mode;"edit"!==l||i.editable||i.writable||(l="view"),t.push({key:e.id,id:e.id,label:e.name||e.id,minWidth:a.tableColWidth||100,sortable:!0,sortBy:e.id,fieldMode:l,visible:i.visible,data:e})}})),t},subFormDialogTitle(){return this.fieldConf.name||this.fieldConf.id},showStyle(){return this.fieldConf.style||"table"},subformPerm(){return this.fieldConf.perm||{creatable:!1,deletable:!1,editable:!1,memorable:!1,modifiable:!1,visible:!0,writable:!1}},isSubForm(){return!0},elementIdList(){return _.map(this.fieldConf.elements,"id")},eleMap(){let e=this.fieldConf.elements,t=_.get(this.container,"formSchema.elements");return e=_.concat(e,t),_.keyBy(e,"id")}},watch:{value:{handler(e,t){e&&_.isArray(e)?(this.subformData=e,e!=t&&this.$nextTick((()=>{this.initLinkage()}))):this.subformData=[]},immediate:!0}},created(){this.linkageItem=new b(this.$bpm),this.dialogTableMaxHeight=Math.floor(window.innerHeight/100*70-114)},mounted(){this.linkageItem.addStackArr(this.fieldConf.elements,this.eleMap),console.log("重新渲染")},methods:{handleChange(e){this.$emit("input",e),this.$emit("change",e)},initLinkage(){if(this.initLinkageFlag||0==this.subformData.length)return!1;console.log("初始化联动");let{relyHandleList:e}=this.linkageItem.getRelyHandleList("sure000");_.set(this.relyHandleListMap,this.value.length-1,e),console.log("relyHandleList",e),console.log("this.relyHandleListMap",this.relyHandleListMap),this.initLinkageFlag=!0,setTimeout((()=>{console.log("initRelyComplete_subFormInitLinkage",this),this.$bpm.$emit("initRelyComplete",this)}),1e3)},handleNextRely(e){console.log("sub-form-handleNextRely");let t=_.get(this.relyHandleListMap,e);console.log("sub-form-handleNextRely_relyHandleList",t),t&&t.shift(),_.isEmpty(t)&&this.$bpm.$emit("initRelyComplete",this);let a=_.head(t,e);a&&this.$bpm.$emit("handeInitRely",{id:a,rowIndex:e})},async handleRelyById(e,t){console.log("XSubForm handleRelyById"),console.log("sub-form-handleRelyById",e),console.log("sub-form-handleRelyById-rowIndex",t),console.log("sub-form-handleRelyById-this.elementIdList",this.elementIdList);let{relyHandleList:a,firstId:i}=this.linkageItem.getRelyHandleList(e);if(console.log("sub-form-handleRelyById-relyHandleList",a),console.log("sub-form-handleRelyById-firstId",i),_.set(this.relyHandleListMap,t,a),i){let e=await this.linkageItem.loadLinkage(a,this.value,this.container.formData,this.fieldConf.id,t);console.log("sub-form-handleRelyById-result",e),_.map(e,((e,a)=>{this.$set(this.value[t],`${a}`,e)})),this.$bpm.$emit("handeRelyById",{id:i,rowIndex:t})}},handleNextRelyById(e){console.log("sub-form-handleNextRelyById");let t=_.get(this.relyHandleListMap,e);console.log("sub-form-handleNextRelyById-relyHandleList",t),t.shift(),_.isEmpty(t)&&this.$bpm.$emit("initRelyComplete",this);let a=_.head(t);a&&this.$bpm.$emit("handeRelyById",{id:a,rowIndex:e})},setData(){}}},S=(0,m.A)(v,n,[],!1,null,"e0a458ce",null);S.options.__file="components/lib/bpmSubForm/src/main.vue";var k=S.exports;k.install=function(e){e.component(k.name,k)};var C=k;return l}()}));