Files
wysite/hc-etms.sqygj.cn/static/js/chunk-5e4de30a.60a74ed4.js

1 line
18 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e4de30a"],{"12bd":function(t,e,a){},"436c":function(t,e,a){"use strict";a("ba77")},"568f":function(t,e,a){"use strict";a("f3d2")},"692f":function(t,e,a){"use strict";a("12bd")},"9ae1":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"contentStys"},[a("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"利润表",name:"profit"}},[a("profitData")],1),t._v(" "),a("el-tab-pane",{attrs:{label:"现金流量表",name:"cash"}},[a("cashData")],1),t._v(" "),a("el-tab-pane",{attrs:{label:"资产及负债表",name:"debt"}},[a("debtData")],1)],1)],1)},r=[],i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",[a("el-form",{ref:"query",attrs:{model:t.query}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{prop:"year"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"year",format:"yyyy","value-format":"yyyy",placeholder:"选择年",clearable:!1,editable:!1,"picker-options":t.pickerOptions},on:{change:t.onSearch},model:{value:t.query.year,callback:function(e){t.$set(t.query,"year",e)},expression:"query.year"}})],1)],1)],1)],1)],1),t._v(" "),a("div",[a("div",{staticClass:"headerTop"},[a("span",{staticClass:"title"},[t._v("利润表列表【"),a("b",[t._v(t._s(t.query.year))]),t._v("】")])]),t._v(" "),a("div",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{"header-cell-style":{background:"#FAFAFA"},data:t.listTable,align:"center",border:""}},[a("el-table-column",{attrs:{align:"center",label:"科目","min-width":"160","show-overflow-tooltip":"",fixed:""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.name||"-"))]}}])}),t._v(" "),t._l(12,(function(e){return a("el-table-column",{key:e,attrs:{align:"center",label:e+"月",width:"160","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(n){return[n.row.isEdit?a("div",[a("el-input-number",{staticStyle:{width:"100%"},attrs:{size:"small","controls-position":"right",precision:2},model:{value:n.row.monthData[e-1].amount,callback:function(a){t.$set(n.row.monthData[e-1],"amount",a)},expression:"scope.row.monthData[item - 1].amount"}})],1):a("div",{staticStyle:{"text-align":"right"}},[t._v(t._s(t._f("formatMoney")(n.row.monthData[e-1].amount)))])]}}],null,!0)})})),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作",width:"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.isEdit?t._e():a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text",size:"mini"},on:{click:function(a){return t.editClick(e.row)}}},[t._v("修改")]),t._v(" "),e.row.isEdit?a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text",size:"mini"},on:{click:function(a){return t.saveClick(e.row)}}},[t._v("保存")]):t._e(),t._v(" "),e.row.isEdit?a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text",size:"mini"},on:{click:function(a){return t.escClick(e.row)}}},[t._v("取消")]):t._e()]}}])})],2)],1)])])},o=[],s=(a("9f60"),a("94f0"),a("0c84"),a("2843"),a("a450"),a("4057"),a("cd05"));function l(t,e){var a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=c(t))||e&&t&&"number"==typeof t.length){a&&(t=a);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==a.return||a.return()}finally{if(s)throw i}}}}function c(t,e){if(t){if("string"==typeof t)return u(t,e);var a={}.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=Array(e);a<e;a++)n[a]=t[a];return n}var d={data:function(){return{listLoading:!1,listTable:[],setList:[],query:{year:""},pickerOptions:{disabledDate:function(t){return t.getFullYear()<2e3||t.getFullYear()>(new Date).getFullYear()}},saveData:{}}},created:function(){this.query.year=(new Date).getFullYear().toString()},mounted:function(){this.getlistData()},methods:{getlistData:function(){var t=this;this.listLoading=!0,this.query.companyId=JSON.parse(localStorage.getItem("companyInfo")).osId,Object(s["a"])(this.query).then((function(e){if(t.listTable=[{name:"主营业务收入",value:"subject100",isEdit:!1,monthData:[]},{name:"营业利润",value:"subject101",isEdit:!1,monthData:[]},{name:"净利润",value:"subject102",isEdit:!1,monthData:[]}],0==e.code){for(var a=0;a<3;a++)if(e.data&&e.data["subject10".concat(a)])t.listTable[a].monthData=JSON.parse(e.data["subject10".concat(a)]);else for(var n=0;n<12;n++)t.listTable[a].monthData.push({amount:0,month:n+1});t.listLoading=!1}else t.listLoading=!1})).catch((function(e){t.listLoading=!1}))},editClick:function(t){this.saveData=JSON.parse(JSON.stringify(t)),t.isEdit=!0},escClick:function(t){t.monthData=this.saveData.monthData,t.isEdit=!1},saveClick:function(t){var e,a=this,n=!0,r=l(t.monthData);try{for(r.s();!(e=r.n()).done;){var i=e.value;void 0!=i.amount&&null!=i.amount||(this.$message("金额不能为空,请检查!"),n=!1)}}catch(u){r.e(u)}finally{r.f()}if(n){var o=JSON.parse(window.localStorage.getItem("memberInfor")),c={companyId:JSON.parse(window.localStorage.getItem("companyInfo")).osId,updaterId:o.id,updaterName:o.name,year:this.query.year};c["".concat(t.value)]=JSON.stringify(t.monthData),Object(s["d"])(c).then((function(t){a.$message({type:"success",message:"设置成功!"}),a.getlistData()}))}},onSearch:function(t){t&&this.getlistData()}}},f=d,m=(a("b4e5"),a("829d")),v=Object(m["a"])(f,i,o,!1,null,null,null),y=v.exports,p=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",[a("el-form",{ref:"query",attrs:{model:t.query}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{prop:"year"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"year",format:"yyyy","value-format":"yyyy",placeholder:"选择年",clearable:!1,editable:!1,"picker-options":t.pickerOptions},on:{change:t.onSearch},model:{value:t.query.year,callback:function(e){t.$set(t.query,"year",e)},expression:"query.year"}})],1)],1)],1)],1)],1),t._v(" "),a("div",[a("div",{staticClass:"headerTop"},[a("span",{staticClass:"title"},[t._v("现金流量表列表【"),a("b",[t._v(t._s(t.query.year))]),t._v("】")])]),t._v(" "),a("div",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{"header-cell-style":{background:"#FAFAFA"},data:t.listTable,align:"center",border:""}},[a("el-table-column",{attrs:{align:"center",label:"科目","min-width":"230","show-overflow-tooltip":"",fixed:""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.name||"-"))]}}])}),t._v(" "),t._l(12,(function(e){return a("el-table-column",{key:e,attrs:{align:"center",label:e+"月",width:"160","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(n){return[n.row.isEdit?a("div",[a("el-input-number",{staticStyle:{width:"100%"},attrs:{size:"small","controls-position":"right",precision:2},model:{value:n.row.monthData[e-1].amount,callback:function(a){t.$set(n.row.monthData[e-1],"amount",a)},expression:"scope.row.monthData[item - 1].amount"}})],1):a("div",{staticStyle:{"text-align":"right"}},[t._v(t._s(t._f("formatMoney")(n.row.monthData[e-1].amount)))])]}}],null,!0)})})),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作",width:"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.isEdit?t._e():a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text",size:"mini"},on:{click:function(a){return t.editClick(e.row)}}},[t._v("修改")]),t._v(" "),e.row.isEdit?a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text",size:"mini"},on:{click:function(a){return t.saveClick(e.row)}}},[t._v("保存")]):t._e(),t._v(" "),e.row.isEdit?a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text",size:"mini"},on:{click:function(a){return t.escClick(e.row)}}},[t._v("取消")]):t._e()]}}])})],2)],1)])])},h=[];function b(t,e){var a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=g(t))||e&&t&&"number"==typeof t.length){a&&(t=a);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==a.return||a.return()}finally{if(s)throw i}}}}function g(t,e){if(t){if("string"==typeof t)return w(t,e);var a={}.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?w(t,e):void 0}}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=Array(e);a<e;a++)n[a]=t[a];return n}var _={data:function(){return{listLoading:!1,listTable:[],setList:[],query:{year:""},pickerOptions:{disabledDate:function(t){return t.getFullYear()<2e3||t.getFullYear()>(new Date).getFullYear()}},saveData:{}}},created:function(){this.query.year=(new Date).getFullYear().toString()},mounted:function(){this.getlistData()},methods:{getlistData:function(){var t=this;this.listLoading=!0,this.query.companyId=JSON.parse(localStorage.getItem("companyInfo")).osId,Object(s["a"])(this.query).then((function(e){if(t.listTable=[{name:"经营活动产生的现金流入详情",value:"subject200",isEdit:!1,monthData:[]},{name:"经营活动产生的现金流出详情",value:"subject201",isEdit:!1,monthData:[]},{name:"投资活动产生的现金流入详情",value:"subject202",isEdit:!1,monthData:[]},{name:"投资活动产生的现金流出详情",value:"subject203",isEdit:!1,monthData:[]},{name:"筹措活动产生的现金流入详情",value:"subject204",isEdit:!1,monthData:[]},{name:"筹措活动产生的现金流出详情",value:"subject205",isEdit:!1,monthData:[]}],0==e.code){for(var a=0;a<6;a++)if(e.data&&e.data["subject20".concat(a)])t.listTable[a].monthData=JSON.parse(e.data["subject20".concat(a)]);else for(var n=0;n<12;n++)t.listTable[a].monthData.push({amount:0,month:n+1});t.listLoading=!1}else t.listLoading=!1})).catch((function(e){t.listLoading=!1}))},editClick:function(t){this.saveData=JSON.parse(JSON.stringify(t)),t.isEdit=!0},escClick:function(t){t.monthData=this.saveData.monthData,t.isEdit=!1},saveClick:function(t){var e,a=this,n=!0,r=b(t.monthData);try{for(r.s();!(e=r.n()).done;){var i=e.value;void 0!=i.amount&&null!=i.amount||(this.$message("金额不能为空,请检查!"),n=!1)}}catch(c){r.e(c)}finally{r.f()}if(n){var o=JSON.parse(window.localStorage.getItem("memberInfor")),l={companyId:JSON.parse(window.localStorage.getItem("companyInfo")).osId,updaterId:o.id,updaterName:o.name,year:this.query.year};l["".concat(t.value)]=JSON.stringify(t.monthData),Object(s["d"])(l).then((function(t){a.$message({type:"success",message:"设置成功!"}),a.getlistData()}))}},onSearch:function(t){t&&this.getlistData()}}},D=_,S=(a("692f"),Object(m["a"])(D,p,h,!1,null,null,null)),k=S.exports,x=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",[a("el-form",{ref:"query",attrs:{model:t.query}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{prop:"year"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"year",format:"yyyy","value-format":"yyyy",placeholder:"选择年",clearable:!1,editable:!1,"picker-options":t.pickerOptions},on:{change:t.onSearch},model:{value:t.query.year,callback:function(e){t.$set(t.query,"year",e)},expression:"query.year"}})],1)],1)],1)],1)],1),t._v(" "),a("div",[a("div",{staticClass:"headerTop"},[a("span",{staticClass:"title"},[t._v("资产及负债表列表【"),a("b",[t._v(t._s(t.query.year))]),t._v("】")])]),t._v(" "),a("div",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{"header-cell-style":{background:"#FAFAFA"},data:t.listTable,align:"center",border:""}},[a("el-table-column",{attrs:{align:"center",label:"科目","min-width":"160","show-overflow-tooltip":"",fixed:""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.name||"-"))]}}])}),t._v(" "),t._l(12,(function(e){return a("el-table-column",{key:e,attrs:{align:"center",label:e+"月",width:"160","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(n){return[n.row.isEdit?a("div",[a("el-input-number",{staticStyle:{width:"100%"},attrs:{size:"small","controls-position":"right",precision:2},model:{value:n.row.monthData[e-1].amount,callback:function(a){t.$set(n.row.monthData[e-1],"amount",a)},expression:"scope.row.monthData[item - 1].amount"}})],1):a("div",{staticStyle:{"text-align":"right"}},[t._v(t._s(t._f("formatMoney")(n.row.monthData[e-1].amount)))])]}}],null,!0)})})),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作",width:"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.isEdit?t._e():a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text",size:"mini"},on:{click:function(a){return t.editClick(e.row)}}},[t._v("修改")]),t._v(" "),e.row.isEdit?a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text",size:"mini"},on:{click:function(a){return t.saveClick(e.row)}}},[t._v("保存")]):t._e(),t._v(" "),e.row.isEdit?a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text",size:"mini"},on:{click:function(a){return t.escClick(e.row)}}},[t._v("取消")]):t._e()]}}])})],2)],1)])])},O=[];function I(t,e){var a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=N(t))||e&&t&&"number"==typeof t.length){a&&(t=a);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==a.return||a.return()}finally{if(s)throw i}}}}function N(t,e){if(t){if("string"==typeof t)return j(t,e);var a={}.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?j(t,e):void 0}}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=Array(e);a<e;a++)n[a]=t[a];return n}var E={data:function(){return{listLoading:!1,listTable:[],setList:[],query:{year:""},pickerOptions:{disabledDate:function(t){return t.getFullYear()<2e3||t.getFullYear()>(new Date).getFullYear()}},saveData:{}}},created:function(){this.query.year=(new Date).getFullYear().toString()},mounted:function(){this.getlistData()},methods:{getlistData:function(){var t=this;this.listLoading=!0,this.query.companyId=JSON.parse(localStorage.getItem("companyInfo")).osId,Object(s["a"])(this.query).then((function(e){if(t.listTable=[{name:"负债合计",value:"subject300",isEdit:!1,monthData:[]},{name:"资产总计",value:"subject301",isEdit:!1,monthData:[]}],0==e.code){for(var a=0;a<6;a++)if(e.data&&e.data["subject30".concat(a)])t.listTable[a].monthData=JSON.parse(e.data["subject30".concat(a)]);else for(var n=0;n<12;n++)t.listTable[a].monthData.push({amount:0,month:n+1});t.listLoading=!1}else t.listLoading=!1})).catch((function(e){t.listLoading=!1}))},editClick:function(t){this.saveData=JSON.parse(JSON.stringify(t)),t.isEdit=!0},escClick:function(t){t.monthData=this.saveData.monthData,t.isEdit=!1},saveClick:function(t){var e,a=this,n=!0,r=I(t.monthData);try{for(r.s();!(e=r.n()).done;){var i=e.value;void 0!=i.amount&&null!=i.amount||(this.$message("金额不能为空,请检查!"),n=!1)}}catch(c){r.e(c)}finally{r.f()}if(n){var o=JSON.parse(window.localStorage.getItem("memberInfor")),l={companyId:JSON.parse(window.localStorage.getItem("companyInfo")).osId,updaterId:o.id,updaterName:o.name,year:this.query.year};l["".concat(t.value)]=JSON.stringify(t.monthData),Object(s["d"])(l).then((function(t){a.$message({type:"success",message:"设置成功!"}),a.getlistData()}))}},onSearch:function(t){t&&this.getlistData()}}},C=E,q=(a("568f"),Object(m["a"])(C,x,O,!1,null,null,null)),A=q.exports,L={components:{profitData:y,cashData:k,debtData:A},data:function(){return{activeName:"profit"}},mounted:function(){},methods:{handleClick:function(t,e){}}},F=L,J=(a("436c"),Object(m["a"])(F,n,r,!1,null,"e85ca540",null));e["default"]=J.exports},b4e5:function(t,e,a){"use strict";a("e06d")},ba77:function(t,e,a){},cd05:function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return o})),a.d(e,"d",(function(){return s}));var n=a("b775");function r(t){return Object(n["a"])({url:"/hakocompany/ChargeReport/company/last/year/overdue/budget",method:"post",data:t})}function i(t){return Object(n["a"])({url:"/hakocompany/ChargeReport/company/previous/year/arrears/budget",method:"post",data:t})}function o(t){return Object(n["a"])({url:"/hakocompany/CompanyFinance/findByCompanyIdAndYear",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/hakocompany/CompanyFinance/update",method:"post",data:t})}},e06d:function(t,e,a){},f3d2:function(t,e,a){}}]);