(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c11ca"],{"453f":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[t("a-anchor",{staticStyle:{width:"100%"},attrs:{getContainer:e.getModuleContainer}},[t("FGBreadHead")],1),t("div",{staticClass:"fun-panel"},[t("a-spin",{attrs:{spinning:e.tableDataLoading}},[t("vxe-toolbar",{attrs:{size:"mini",custom:"",refresh:{query:()=>{this.loadData()}}}}),t("vxe-table",{ref:"table",attrs:{size:"mini",resizable:"","auto-resize":"","row-id":"id",align:"left","max-height":e.$FG_util.getTableHeightDirect(0),"header-align":"center","highlight-hover-row":"","highlight-current-row":"","show-overflow":"tooltip",data:e.tableData,"sort-config":{trigger:"cell",defaultSort:{field:e.sort.field,order:e.sort.order},remote:!0,orders:["asc","desc"]}},on:{"sort-change":e.handleSortChange,"cell-dblclick":e.doubleClick}},[t("vxe-table-column",{attrs:{type:"seq",title:"序号",width:"80",sortable:"",align:"center"}}),t("vxe-table-column",{attrs:{field:"dwmc",title:"单位名称",width:"400",sortable:"",align:"center"}}),t("vxe-table-column",{attrs:{field:"dwlx",title:"单位类型",width:"100",align:"center"}}),t("vxe-table-column",{attrs:{field:"dwlb",title:"单位类别",width:"100",align:"center"}}),t("vxe-table-column",{attrs:{field:"rhsj",title:"入会时间",width:"140",sortable:"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.$FG_util.formatDate(t.row.rhsj,"YYYY-MM-DD HH:mm"))+" ")]}}])}),t("vxe-table-column",{attrs:{title:"操作",width:"160",align:"center"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("span",{staticClass:"btn_edit",on:{click:function(t){return e.print(a.row)}}},[e._v("打印")])]}}])})],1),t("vxe-pager",{staticStyle:{"margin-top":"5px"},attrs:{background:"",size:"mini","current-page":e.pageinfo.pageNo,"page-size":e.pageinfo.pageSize,total:e.pageinfo.total,layouts:["PrevJump","PrevPage","Number","NextPage","NextJump","Sizes","FullJump","Total"]},on:{"update:currentPage":function(t){return e.$set(e.pageinfo,"pageNo",t)},"update:current-page":function(t){return e.$set(e.pageinfo,"pageNo",t)},"update:pageSize":function(t){return e.$set(e.pageinfo,"pageSize",t)},"update:page-size":function(t){return e.$set(e.pageinfo,"pageSize",t)},"page-change":e.handlePageChange}})],1)],1)],1)},r=[],s=(a("14d9"),a("88a7"),a("271a"),a("5494"),a("2f62"));const{mapGetters:o}=Object(s["a"])("user");var n={name:"Dwzsdy",components:{},data(){return{tableData:[],tableDataLoading:!1,pageinfo:{pageNo:1,pageSize:20,total:0},sort:{field:"dwmc",order:"asc"},queryParams:{}}},computed:{...o(["getUserInfo","getToken"])},mounted(){this.loadData()},methods:{doubleClick({row:e}){this.edit(e)},handleSortChange({property:e,order:t}){this.sort.field=e,this.sort.order=t,this.loadData()},handlePageChange({currentPage:e,pageSize:t}){this.pageinfo.pageNo=e,this.pageinfo.pageSize=t,this.loadData()},loadData(e){if(!e){let t=this.$refs.table.getCurrentRecord();t&&(e=t.id)}this.tableDataLoading=!0,this.queryParams={yhid:this.getUserInfo.id},this.$FG_http.post("./api/main/zsdy/dwzsdy/list",{pageNo:this.pageinfo.pageNo,pageSize:this.pageinfo.pageSize,queryParams:this.queryParams,sort:this.sort},{showSuccess:!1}).then(({success:e,data:t,errMsg:a})=>{this.tableDataLoading=!1,e?(this.tableData=t.data,this.pageinfo.pageNo=t.pageinfo.pagenum,this.pageinfo.total=t.pageinfo.maxrow):this.tableData=[]}).then(()=>{this.$nextTick(()=>{let t=null;e&&(t=this.$refs.table.getRowById(e)),!t&&this.tableData.length>0&&(t=this.$refs.table.getRowById(this.tableData[0].id)),t?this.$refs.table.setCurrentRow(t):this.$refs.table.clearCurrentRow()})})},print(e){0!==e.sfjf?(this.tableDataLoading=!0,this.$FG_http.post("./api/main/zsdy/dwzsdy/reportDWZS",{dataId:e.id},{responseType:"blob",showSuccess:!1}).then(({success:e,data:t,errMsg:a})=>{if(this.tableDataLoading=!1,e){let e=[];e.push(t);let a=window.URL.createObjectURL(new Blob(e,{type:"application/pdf"}));window.open(a)}else this.$FG_message.error("P0002")})):this.$FG_message.error("操作失败！该单位还未缴纳本年度会费，不可打印证书，请检查！")}}},l=n,d=a("2877"),g=Object(d["a"])(l,i,r,!1,null,null,null);t["default"]=g.exports}}]);
//# sourceMappingURL=chunk-2d0c11ca.5ccd0e15.js.map