1 line
4.4 KiB
JavaScript
1 line
4.4 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2fa11346"],{7003:function(t,e,a){},"707d":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flowlayout incomeStatement"},[a("div",{staticClass:"incomeHeader"},[t._v("\n 全年收入报表 - 科目维度\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.captionText,placement:"top-start"}},[a("i",{staticClass:"el-icon-question itemcursor"})]),t._v(" "),a("span",{staticClass:"updataQuery itemcursor",on:{click:t.openDialog}},[t._v("配置统计科目")]),t._v(" "),a("span",{staticClass:"updataQuery itemcursor",on:{click:t.updataStatisics}},[t._v("修正统计")]),t._v(" "),a("span",{staticClass:"updataQuery"},[t._v(t._s(t.updataTime)+" (最近更新时间)")])],1),t._v(" "),a("incomeStatementTable",{ref:"incomeStatementTable",attrs:{subjectName:t.subjectName},on:{updataStatisicsTime:t.updataStatisicsTime}}),t._v(" "),a("el-dialog",{attrs:{title:t.title,width:"400px","append-to-body":!0,"lock-scroll":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"custom-class":"r2Dialog",visible:t.dialogTableVisible},on:{"update:visible":function(e){t.dialogTableVisible=e}}},[a("el-scrollbar",{staticClass:"subjectTreeScroll",attrs:{"wrap-style":"overflow-x:hidden;"}},[a("el-tree",{ref:"subjectTree",staticClass:"subjectTreeClass",attrs:{data:t.cascaderDataList,"node-key":"id","default-expand-all":!0,props:t.cascaderProps,"show-checkbox":"","check-strictly":!0},on:{"check-change":t.handleClick}})],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"commitDialogBtn",on:{click:t.chackChange}},[t._v("确 定")])],1)],1)],1)},c=[],n=(a("1bc7"),a("a450"),a("44e7")),i=a("886c"),o=a("b071"),l={name:"incomeStatement",components:{incomeStatementTable:n["default"]},data:function(){return{captionText:"按“支付时间”、“计费账期”统计实际收入,鼓励项目成员实现“应收未收款”归零。",title:"配置统计科目",dialogTableVisible:!1,cascaderProps:{label:"name",children:"subjectChildrens"},updataTime:"",cascaderDataList:[],subjectKey:"",subjectName:""}},mounted:function(){this.getSubjectList()},methods:{openDialog:function(){var t=this;this.cascaderDataList.length>0?(this.dialogTableVisible=!0,this.$nextTick((function(){var e=t.$refs.subjectTree.getCheckedNodes();0===e.length&&t.$refs.subjectTree.setCheckedKeys([t.subjectKey])})),this.$forceUpdate()):this.$message({message:"统计科目获取失败",type:"error"})},getSubjectList:function(){var t=this,e=JSON.parse(window.localStorage.getItem("companyInfo")).osId;Object(i["a"])({companyId:e}).then((function(e){0===e.code&&e.data.length>0&&(t.subjectKey=e.data[0].id,t.subjectName=e.data[0].name,t.cascaderDataList=e.data)}))},updataStatisics:function(){var t=this;Object(o["o"])({}).then((function(e){0==e.code&&(t.$message({message:"修正统计即将开始,数据更新将会耗费一定的时长,请稍后手动刷新数据",type:"warning"}),t.$nextTick((function(){t.$refs.incomeStatementTable.initPageData()})))}))},updataStatisicsTime:function(t){this.updataTime=t},handleClick:function(t,e,a){e&&this.$refs.subjectTree.setCheckedKeys([t.id])},chackChange:function(){var t=this,e=this.$refs.subjectTree.getCheckedNodes();if(console.log("res",e),e.length>0){var a=[];e.forEach((function(e){a.push(e.code),t.subjectName=e.name})),this.$nextTick((function(){t.$refs.incomeStatementTable.updataTableRender(a)}))}this.dialogTableVisible=!1}}},r=l,u=(a("85f7"),a("829d")),d=Object(u["a"])(r,s,c,!1,null,"20a39a4c",null);e["default"]=d.exports},"85f7":function(t,e,a){"use strict";a("7003")},"886c":function(t,e,a){"use strict";a.d(e,"b",(function(){return c})),a.d(e,"e",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"d",(function(){return o})),a.d(e,"a",(function(){return l}));var s=a("b775");function c(t){return Object(s["a"])({url:"/hakocompany/FsSubject/selectAll",method:"post",data:t})}function n(t){return Object(s["a"])({url:"/company/FsSubject/updateDetails",method:"post",data:t})}function i(t){return Object(s["a"])({url:"/hakocompany/FsSubject/syncSubject",method:"post",data:t})}function o(t){return Object(s["a"])({url:"/hakocompany/FsSubject/batchUpdateStatus",method:"post",data:t})}function l(t){return Object(s["a"])({url:"/hakocompany/FsSubject/listByCompanyId",method:"post",data:t})}}}]); |