1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-006c25e0"],{"0b00":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"contentStys"},[a("div",{staticClass:"page-container"},[a("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"审批配置",name:"approveInfo"}},[a("approveInfo",{directives:[{name:"show",rawName:"v-show",value:"approveInfo"===e.activeName,expression:"activeName==='approveInfo'"}]})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"审批记录",name:"approveList"}},[a("approveList",{directives:[{name:"show",rawName:"v-show",value:"approveList"===e.activeName,expression:"activeName==='approveList'"}]})],1)],1)],1)])},r=[],n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"workPointsManage"},[a("div",{staticClass:"workPointsRuleList"},[a("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"15px"}},[a("div",{staticClass:"planLst"},[a("span",{staticStyle:{color:"#2f2c2c","font-size":"16px"}},[e._v("审批配置列表")]),e._v(" "),a("span",{staticClass:"add"},[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:e.getAsync}},[e._v("云下载")])],1)]),e._v(" "),a("el-table",{staticStyle:{width:"100%","margin-top":"15px"},attrs:{border:"",data:e.tableData,"header-cell-style":e.headClass}},[a("el-table-column",{attrs:{label:"#",align:"center","min-width":"50",fixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.query.pageNumber-1)*e.query.pageSize+1)+" ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"审批类型",prop:"type","min-width":"130"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"审批类型编码",prop:"typeCode","min-width":"130"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"第三方审批模板ID","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"tableRowTextBox"},[t.row.outTemplateId?a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.row.outTemplateId,placement:"top"}},[a("label",{staticClass:"tableRowText"},[e._v(e._s(t.row.outTemplateId))])]):a("label",{staticClass:"tableRowText"},[e._v("-")]),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"点击可复制该段内容",placement:"top"}},[t.row.outTemplateId?a("i",{staticClass:"el-icon-document-copy",on:{click:function(a){return e.copyText(t.row,"outTemplateId")}}}):e._e()])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作","min-width":"120",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.detailView(t.row,0)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.detailView(t.row,1)}}},[e._v("编辑")])]}}])})],1),e._v(" "),a("div",{staticStyle:{"margin-top":"15px","text-align":"right"}},[a("el-pagination",{attrs:{background:"","current-page":e.query.pageNumber,"page-sizes":[10,20,30,100],"page-size":e.query.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.pageTotal},on:{"update:currentPage":function(t){return e.$set(e.query,"pageNumber",t)},"update:current-page":function(t){return e.$set(e.query,"pageNumber",t)},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)],1),e._v(" "),e.dialogVisible?a("el-dialog",{attrs:{title:e.title,visible:e.dialogVisible,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"30%","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"140px",rules:e.rules}},[a("el-form-item",{attrs:{label:"审批类型"}},[a("el-input",{attrs:{disabled:"",readonly:""},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"类型编码"}},[a("el-input",{attrs:{disabled:"",readonly:""},model:{value:e.form.typeCode,callback:function(t){e.$set(e.form,"typeCode",t)},expression:"form.typeCode"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"第三方审批模板ID",prop:"outTemplateId"}},[a("el-input",{attrs:{placeholder:"请输入第三方审批模板ID",disabled:0===e.type},model:{value:e.form.outTemplateId,callback:function(t){e.$set(e.form,"outTemplateId","string"===typeof t?t.trim():t)},expression:"form.outTemplateId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"说明",prop:"description"}},[a("el-input",{attrs:{type:"textarea",placeholder:"",disabled:0===e.type},model:{value:e.form.description,callback:function(t){e.$set(e.form,"description","string"===typeof t?t.trim():t)},expression:"form.description"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"内容示例:"}},[a("el-input",{attrs:{disabled:"",autosize:{minRows:3},type:"textarea"},model:{value:e.form.remarks,callback:function(t){e.$set(e.form,"remarks",t)},expression:"form.remarks"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),1===e.type?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.save("form")}}},[e._v("确 定")]):e._e()],1)],1):e._e()],1)},l=[],i=a("5821"),s=a("b775");function c(e){return Object(s["a"])({url:"/hakocompany/ApproveTemplate/pageList",method:"post",data:e})}function u(e){return Object(s["a"])({url:"/hakocompany/ApproveTemplate/findById",method:"post",data:e})}function p(e){return Object(s["a"])({url:"/hakocompany/ApproveTemplate/syncPublic",method:"post",data:e})}function d(e){return Object(s["a"])({url:"/company/ApproveTemplate/update",method:"post",data:e})}function m(e){return Object(s["a"])({url:"/hakocompany/FinanceApprove/pageList",method:"post",data:e})}var f={data:function(){return Object(i["a"])(Object(i["a"])({type:"",pageTotal:0,viewInfo:!1,infoList:!0,query:{pageNumber:1,pageSize:10,companyId:""},tableData:[],dialogVisible:!1,form:{type:"",typeCode:"",mode:"",source:"",outTemplateId:"",description:""},title:"查看审批模板详情"},"type",0),"rules",{outTemplateId:[{required:!0,message:"请输入第三方审批模板ID",trigger:"blur"}]})},mounted:function(){this.headClass(),this.getlistData()},beforeRouteLeave:function(e,t,a){a()},methods:{getlistData:function(){var e=this,t=JSON.parse(window.localStorage.getItem("companyInfo")).osId,a=Object.assign(this.query,{companyId:t});c(a).then((function(t){e.tableData=t.data.records,e.pageTotal=t.data.rowsCount,e.tableLoading=!1})).catch((function(t){e.tableLoading=!1}))},handleSizeChange:function(e){this.query.pageSize=e,this.query.pageNumber=1,this.getlistData()},handleCurrentChange:function(e){this.query.pageNumber=e,this.getlistData()},detailView:function(e,t){var a=this;this.type=t,this.title=0===t?"查看审批模板详情":"第三方审批模板ID配置",u({id:e.id}).then((function(e){a.form=e.data,a.dialogVisible=!0})).catch((function(e){}))},getAsync:function(){var e=this,t=JSON.parse(window.localStorage.getItem("companyInfo")).osId;p({id:t}).then((function(t){0===t.code?(e.$message({message:"同步成功",type:"success"}),e.getlistData()):e.$message({message:"同步失败",type:"success"})})).catch((function(e){}))},save:function(e){var t=this;this.$refs[e].validate((function(e){e&&d(t.form).then((function(e){0===e.code?(t.$message({message:"更新成功",type:"success"}),t.dialogVisible=!1,t.getlistData()):t.$message({message:"更新失败",type:"success"})})).catch((function(e){}))}))},handleClose:function(){this.dialogVisible=!1},copyText:function(e,t){var a=this;navigator.clipboard.writeText(e[t]).then((function(){a.$message({message:"复制成功",type:"success"})})).catch((function(){}))},headClass:function(){return"text-align:center;background:#FAFAFA;"}}},b=f,g=(a("d9ac"),a("829d")),h=Object(g["a"])(b,n,l,!1,null,"48f84cc0",null),y=h.exports,v=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"query",staticClass:"demo-form-inline",attrs:{inline:!0,model:e.query,"label-width":"100px"}},[a("el-form-item",{attrs:{prop:"projectName",label:""}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入项目名称",maxlength:"64"},model:{value:e.query.projectName,callback:function(t){e.$set(e.query,"projectName",t)},expression:"query.projectName"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"createUser",label:""}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入发起人",maxlength:"64"},model:{value:e.query.createUser,callback:function(t){e.$set(e.query,"createUser",t)},expression:"query.createUser"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"typeCode",label:""}},[a("el-select",{attrs:{clearable:"",placeholder:"审批类型"},model:{value:e.query.typeCode,callback:function(t){e.$set(e.query,"typeCode",t)},expression:"query.typeCode"}},e._l(e.typeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.type,value:e.typeCode}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss","start-placeholder":"发起开始时间","end-placeholder":"发起结束时间","default-time":["00:00:00","23:59:59"]},model:{value:e.queryTime,callback:function(t){e.queryTime=t},expression:"queryTime"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"status",label:""}},[a("el-select",{attrs:{clearable:"",placeholder:"审批状态"},model:{value:e.query.status,callback:function(t){e.$set(e.query,"status",t)},expression:"query.status"}},e._l(e.approveStatusList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.searchForm("query")}}},[e._v("查询")]),e._v(" "),a("el-button",{on:{click:function(t){return e.resetForm("query")}}},[e._v("重置")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableLoading,expression:"tableLoading"}],staticStyle:{width:"100%","margin-top":"15px"},attrs:{border:"",data:e.tableData,"header-cell-style":e.headClass}},[a("el-table-column",{attrs:{label:"#",align:"center","min-width":"50",fixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.query.pageNumber-1)*e.query.pageSize+1)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"审批编号",prop:"approveNo","min-width":"130","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"所属项目",prop:"projectName","min-width":"130","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"审批类型",prop:"type","min-width":"130","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"审批详情",prop:"content","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"tableRowTextBox"},[t.row.content?a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[a("label",{staticClass:"tableRowText"},[e._v(e._s(t.row.content))]),e._v(" "),a("div",{staticStyle:{"white-space":"pre-line"},attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(t.row.content)+"\n ")])]):a("label",[e._v("-")])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"所属平台","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1===t.row.mode?"企业微信":"自定义"))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"发起人",prop:"createUser","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"发起用户","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.proposer?t.row.proposer:"-"))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"发起时间",prop:"createDate","min-width":"130","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"审批状态","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("getItemType")(t.row.status,e.approveStatusList)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"备注","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.remark||"-"))]}}])})],1),e._v(" "),a("div",{staticStyle:{"margin-top":"15px","text-align":"right"}},[a("el-pagination",{attrs:{background:"","current-page":e.query.pageNumber,"page-sizes":[10,20,30,100],"page-size":e.query.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.pageTotal},on:{"update:currentPage":function(t){return e.$set(e.query,"pageNumber",t)},"update:current-page":function(t){return e.$set(e.query,"pageNumber",t)},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)},w=[],_=(a("8975"),a("dce5")),k={data:function(){return{approveStatusList:_["h"],typeList:[],tableData:[],tableLoading:!1,pageTotal:0,queryTime:"",query:{projectName:"",createUser:"",typeCode:"",status:"",startTime:"",endTime:"",pageNumber:1,pageSize:10}}},mounted:function(){this.headClass(),this.getTypeList(),this.getList()},methods:{getTypeList:function(){var e=this,t={pageSize:-1,pageNumber:-1,companyId:JSON.parse(window.localStorage.getItem("companyInfo")).osId};c(t).then((function(t){e.typeList=t.data.records}))},getList:function(){var e=this;this.tableLoading=!0,this.query.startTime=this.queryTime?this.queryTime[0]:"",this.query.endTime=this.queryTime?this.queryTime[1]:"",this.query.companyId=JSON.parse(window.localStorage.getItem("companyInfo")).osId,m(this.query).then((function(t){e.tableData=t.data.records,e.pageTotal=t.data.rowsCount,e.tableLoading=!1})).catch((function(t){e.tableLoading=!1}))},handleSizeChange:function(e){this.query.pageSize=e,this.query.pageNumber=1,this.getList()},handleCurrentChange:function(e){this.query.pageNumber=e,this.getList()},searchForm:function(){this.query.pageNumber=1,this.getList()},resetForm:function(e){this.$refs[e].resetFields(),this.queryTime="",this.query.pageNumber=1,this.query.pageSize=10,this.getList()},headClass:function(){return"text-align:center;background:#FAFAFA;"}}},q=k,x=(a("b331"),Object(g["a"])(q,v,w,!1,null,"6ac6e51c",null)),C=x.exports,T={components:{approveInfo:y,approveList:C},data:function(){return{activeName:"approveInfo"}},mounted:function(){},methods:{handleClick:function(e,t){console.log(e,t)}}},S=T,I=(a("8381"),Object(g["a"])(S,o,r,!1,null,"0f338b00",null));t["default"]=I.exports},"37cc":function(e,t,a){},8124:function(e,t,a){},8381:function(e,t,a){"use strict";a("37cc")},b331:function(e,t,a){"use strict";a("e0d5")},d9ac:function(e,t,a){"use strict";a("8124")},e0d5:function(e,t,a){}}]); |