(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-workbench-task-FlowCopyList"],{"0dc7":function(e,t,a){"use strict";a.d(t,"b",(function(){return o})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){return n}));var n={uSearch:a("ce50").default,uSwipeAction:a("857e").default,uSwipeActionItem:a("ca53").default,uCellGroup:a("9995").default,uCell:a("9ddd").default,uLoadmore:a("dced").default,uGap:a("d621").default},o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",[a("u-search",{attrs:{"show-action":!1,margin:"20rpx 50rpx"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.inputWord.apply(void 0,arguments)}},model:{value:e.searchForm.procInsName,callback:function(t){e.$set(e.searchForm,"procInsName",t)},expression:"searchForm.procInsName"}}),a("v-uni-view",[a("u-swipe-action",e._l(e.dataList,(function(t){return a("u-swipe-action-item",{key:t.id,attrs:{threshold:60,duration:"500",options:[{text:"删除",style:{backgroundColor:"#f56c6c"}},{text:"查阅",style:{backgroundColor:"#3c9cff"}}]},on:{click:function(a){arguments[0]=a=e.$handleEvent(a),function(a){var n=a.index;return e.commit(n,t)}.apply(void 0,arguments)}}},[a("u-cell-group",[a("u-cell",{on:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.toDetail(t)}}},[a("v-uni-view",{staticClass:"content",attrs:{slot:"title"},slot:"title"},[a("v-uni-view",{staticClass:"text-bold text-grey"},[a("v-uni-view",{staticClass:"ellipsis-description"},[e._v("流程标题： "+e._s(t.procInsName))])],1),a("v-uni-view",{staticClass:"text-grey text-sm"},[e._v("抄送时间："+e._s(e._f("formatDate")(t.createTime)))])],1)],1)],1)],1)})),1)],1),a("u-loadmore",{attrs:{status:e.status,line:!0},on:{loadmore:function(t){arguments[0]=t=e.$handleEvent(t),e.loadmore.apply(void 0,arguments)}}}),a("u-gap",{attrs:{height:"20",bgColor:"#fff"}})],1)},i=[]},5572:function(e,t,a){"use strict";a.r(t);var n=a("7edc"),o=a.n(n);for(var i in n)"default"!==i&&function(e){a.d(t,e,(function(){return n[e]}))}(i);t["default"]=o.a},"5fdc":function(e,t,a){"use strict";var n=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(a("e812")),i=a("e6a5"),r={save:function(e){return(0,o.default)({url:i.FLOW_PATH+"/extension/flowCopy/save",method:"post",header:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},data:e})},delete:function(e){return(0,o.default)({url:i.FLOW_PATH+"/extension/flowCopy/delete",method:"delete",params:{ids:e}})},list:function(e){return(0,o.default)({url:i.FLOW_PATH+"/extension/flowCopy/list",method:"get",params:e})}};t.default=r},"7edc":function(e,t,a){"use strict";var n=a("4ea4");a("99af"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(a("5530")),i=n(a("5fdc")),r=n(a("a9af")),s=n(a("2686")),u={data:function(){return{status:"loadmore",searchForm:{procInsName:""},dataList:[],tablePage:{pages:0,currentPage:0,pageSize:10,orders:[{column:"a.create_time",asc:!1}]},loading:!1}},onLoad:function(){this.loadmore()},methods:{inputWord:function(e){var t=this;this.searchTimer&&clearTimeout(this.searchTimer),this.searchTimer=setTimeout((function(){t.doSearch()}),300)},doSearch:function(){this.dataList=[],this.tablePage.currentPage=0,this.tablePage.pageSize=10,this.tablePage.pages=0,this.loadmore()},onReachBottom:function(){this.loadmore()},loadmore:function(){var e=this;0!==this.tablePage.currentPage&&this.tablePage.pages<=this.tablePage.currentPage?this.status="nomore":(this.tablePage.currentPage=++this.tablePage.currentPage,this.status="loading",i.default.list((0,o.default)({current:this.tablePage.currentPage,size:this.tablePage.pageSize,orders:this.tablePage.orders},this.searchForm)).then((function(t){e.dataList=e.dataList.concat(t.records),e.tablePage.pages=t.pages,e.tablePage.pages<=e.tablePage.currentPage?e.status="nomore":e.status="loadmore"})))},commit:function(e,t){0===e?this.del(t):1===e&&this.toDetail(t)},del:function(e){var t=this;uni.showModal({title:"提示",content:"确定要删除该抄送吗？",success:function(a){a.confirm?i.default.delete(e.id).then((function(e){uni.showToast({title:e}),t.doSearch(t.curWord)})):a.cancel&&uni.hideLoading()},fail:function(){}})},toDetail:function(e){r.default.getTaskDef({procInsId:e.procInsId,procDefId:e.procDefId}).then((function(t){var a=(0,o.default)({readOnly:!0,title:e.procInsName,formTitle:e.procInsName},(0,s.default)(t,"formType","formUrl","procDefKey","taskDefKey","procInsId","procDefId","taskId","status","title","businessId"));uni.navigateTo({url:"/pages/workbench/task/TaskFormDetail?flow="+JSON.stringify(a)})}))}}};t.default=u},cb62:function(e,t,a){"use strict";a.r(t);var n=a("0dc7"),o=a("5572");for(var i in o)"default"!==i&&function(e){a.d(t,e,(function(){return o[e]}))}(i);var r,s=a("f0c5"),u=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],r);t["default"]=u.exports}}]);