chunk-911ef1ea.4a92cbd7.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-911ef1ea"],{"04d9":function(t,e,r){"use strict";r.d(e,"c",function(){return s}),r.d(e,"d",function(){return n}),r.d(e,"b",function(){return c}),r.d(e,"a",function(){return l});var a=r("8982"),o="/industryParkApi",i="/wx/economyReport";function s(t){return Object(a["a"])({url:o+i+"/getEconomyReportList",method:"post",data:t})}function n(t){return Object(a["a"])({url:o+i+"/operationEconomyReportInfo",method:"post",data:t})}function c(t){return Object(a["a"])({url:o+i+"/getEconomyReportDetail",method:"post",data:t})}function l(t){return Object(a["a"])({url:o+i+"/deleteInfo",method:"post",data:t})}},1278:function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"settleIn"},[r("van-tabs",{attrs:{"title-active-color":"#2A3980",color:"#2A3980","title-inactive-color":"#666666","line-width":"120px"},on:{click:t.tabsClick},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[r("van-tab",{attrs:{title:"新增填报"}},[r("div",{staticClass:"tabs-box"},[r("div",{staticClass:"form-part"},[r("van-form",[r("van-field",{staticClass:"input-item",attrs:{readonly:"",clickable:"","input-align":"right",name:"datetimePicker",label:"年份",placeholder:"请选择年份"},on:{click:function(e){t.showPicker_year=!0}},model:{value:t.reportFrom.year,callback:function(e){t.$set(t.reportFrom,"year",e)},expression:"reportFrom.year"}}),r("van-popup",{attrs:{position:"bottom"},model:{value:t.showPicker_year,callback:function(e){t.showPicker_year=e},expression:"showPicker_year"}},[r("van-picker",{attrs:{title:"年份","show-toolbar":"","default-index":"100",columns:t.year},on:{confirm:function(e){return t.onConfirm(e,"year")},cancel:function(e){t.showPicker_year=!1}}})],1),r("van-field",{staticClass:"input-item",attrs:{readonly:"",clickable:"","input-align":"right",name:"datetimePicker",label:"归属月份",placeholder:"请选择月份"},on:{click:function(e){t.showPicker_month=!0}},model:{value:t.reportFrom.month,callback:function(e){t.$set(t.reportFrom,"month",e)},expression:"reportFrom.month"}}),r("van-popup",{attrs:{position:"bottom"},model:{value:t.showPicker_month,callback:function(e){t.showPicker_month=e},expression:"showPicker_month"}},[r("van-picker",{attrs:{title:"归属月份","show-toolbar":"",columns:t.month},on:{confirm:function(e){return t.onConfirm(e,"month")},cancel:function(e){t.showPicker_month=!1}}})],1),r("van-field",{staticClass:"input-item",attrs:{label:"*营业收入(万元)",placeholder:"请填写","input-align":"right"},model:{value:t.reportFrom.businessIncome,callback:function(e){t.$set(t.reportFrom,"businessIncome",e)},expression:"reportFrom.businessIncome"}}),r("van-field",{staticClass:"input-item",attrs:{label:"*税收收入(万元):","input-align":"right",placeholder:"请填写"},model:{value:t.reportFrom.taxRevenue,callback:function(e){t.$set(t.reportFrom,"taxRevenue",e)},expression:"reportFrom.taxRevenue"}}),r("van-field",{staticClass:"input-item",attrs:{label:"*投融资金额(万元)","input-align":"right",placeholder:"请填写"},model:{value:t.reportFrom.investment,callback:function(e){t.$set(t.reportFrom,"investment",e)},expression:"reportFrom.investment"}}),r("van-field",{staticClass:"input-item",attrs:{label:"*员工总人数(人)","input-align":"right",placeholder:"请填写"},model:{value:t.reportFrom.staffNumber,callback:function(e){t.$set(t.reportFrom,"staffNumber",e)},expression:"reportFrom.staffNumber"}}),r("van-field",{staticClass:"input-item item-width",attrs:{"input-align":"right",label:"*本科以上(含本科)员工的人数",placeholder:"请填写"},model:{value:t.reportFrom.undergraduateNumber,callback:function(e){t.$set(t.reportFrom,"undergraduateNumber",e)},expression:"reportFrom.undergraduateNumber"}})],1)],1),r("div",{staticClass:"white-bottom"},[r("div",{staticClass:"two-button"},[r("div",{staticClass:"btn",on:{click:function(e){return t.operationModel(0)}}},[t._v("保存")]),r("div",{staticClass:"btn",on:{click:function(e){return t.operationModel(1)}}},[t._v("提交")])])])])]),r("van-tab",{attrs:{title:"填报历史"}},[r("div",{staticClass:"tabs-box"},[r("div",{staticClass:"part-2"},[r("van-pull-refresh",{staticStyle:{"min-height":"85vh"},on:{refresh:t.onRefresh},model:{value:t.refreshing,callback:function(e){t.refreshing=e},expression:"refreshing"}},[r("van-list",{attrs:{finished:t.finished,"finished-text":"没有更多了","immediate-check":!1},on:{load:t.onLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.reportList,function(e){return r("div",{key:e.year,staticClass:"card-item white-card"},[r("div",{staticClass:"card-top",on:{click:function(r){return t.goDetial(e.id)}}},[r("div",{staticClass:"card-left"},[r("p",{staticClass:"tit"},[t._v(t._s(e.year+"-"+e.month))]),r("p",{staticClass:"date"},[t._v("提交时间:"+t._s(e.createdAt))])]),r("div",{staticClass:"card-right"},["1"==e.isSave?r("span",{staticClass:"normal-tip yd z-bg"},[t._v("已提交")]):t._e()])]),r("div",{staticClass:"card-bottom"},["1"!=e.isSave?r("span",{staticClass:"normal-button-app z-bt",on:{click:function(r){return t.editInfo(e)}}},[t._v("编辑")]):t._e(),"1"!=e.isSave?r("span",{staticClass:"normal-button-app y-bt",on:{click:function(r){return t.deleteInfo(e.id)}}},[t._v("删除")]):t._e()])])}),0)],1)],1)])])],1)],1)},o=[],i=(r("ac6a"),r("3089")),s=r("5cab"),n=r("04d9"),c={data:function(){return{loading:!1,finished:!1,refreshing:!1,requestParam:{pageNum:1,pageSize:10},total:0,active:0,value1:"",showPicker_year:!1,currUser:{},groupId:"870261874875170816",createdId:"",reportFrom:[],reportList:[],value2:"",showPicker_month:!1,list1:[{title:"2021年 - 5月 ",time:"2021-10-1 13:40",type:"1"},{title:"2021年 - 5月",time:"2021-10-1 13:40",type:"2"},{title:"2021年 - 5月 ",time:"2021-10-1 13:40",type:"1"},{title:"2021年 - 5月 ",time:"2021-10-1 13:40",type:"1"},{title:"2021年 - 5月 ",time:"2021-10-1 13:40",type:"2"},{title:"2021年 - 5月 ",time:"2021-10-1 13:40",type:"1"},{title:"2021年 - 5月 ",time:"2021-10-1 13:40",type:"2"},{title:"2021年 - 5月 ",time:"2021-10-1 13:40",type:"1"}],month:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],year:[]}},mounted:function(){this.currUser=s["a"].currUser(),this.createdId=this.currUser.id,this.getYear(),this.reportFrom.year=(new Date).getFullYear();var t=(new Date).getMonth()+1+"月";this.reportFrom.month=t},methods:{onRefresh:function(){this.requestParam.pageNum=1,this.getList()},onLoad:function(){var t=this;if(this.refreshing&&(this.reportList=[],this.refreshing=!1),this.reportList.length>=this.total)this.finished=!0;else{var e={userId:this.createdId,groupId:this.groupId,pageNum:this.requestParam.pageNum++,pageSize:this.requestParam.pageSize};Object(n["c"])(e).then(function(e){e.rows.forEach(function(e){t.reportList.push(e)}),t.total=e.total})}this.loading=!1},getList:function(){var t=this,e={userId:this.createdId,groupId:this.groupId,pageNum:this.requestParam.pageNum++,pageSize:this.requestParam.pageSize};Object(n["c"])(e).then(function(e){t.reportList=e.rows,t.total=e.total,t.refreshing=!1})},requiredOk:function(){return this.reportFrom.businessIncome?this.reportFrom.taxRevenue?this.reportFrom.investment?this.reportFrom.staffNumber?!!this.reportFrom.undergraduateNumber||(Object(i["Toast"])("请填写本科以上人数"),!1):(Object(i["Toast"])("请填写员工总人数"),!1):(Object(i["Toast"])("请填写投融资金额"),!1):(Object(i["Toast"])("请填写税收收入"),!1):(Object(i["Toast"])("请填写营业收入"),!1)},operationModel:function(t){var e=this;return this.reportFrom.businessIncome?this.reportFrom.taxRevenue?this.reportFrom.investment?this.reportFrom.staffNumber?this.reportFrom.undergraduateNumber?(this.reportFrom.groupId=this.groupId,this.reportFrom.createdId=this.createdId,this.reportFrom.isSave=t,void Object(n["d"])(this.reportFrom).then(function(t){200==t.code&&(e.reportFrom={},e.active=1,e.tabsClick(),Object(i["Toast"])(t.msg))})):(Object(i["Toast"])("请填写本科以上人数"),!1):(Object(i["Toast"])("请填写员工总人数"),!1):(Object(i["Toast"])("请填写投融资金额"),!1):(Object(i["Toast"])("请填写税收收入"),!1):(Object(i["Toast"])("请填写营业收入"),!1)},editInfo:function(t){this.reportFrom=t,this.active=0},deleteInfo:function(t){var e=this;this.$dialog.alert({title:"确认操作",message:"是否删除该记录?",showCancelButton:!0}).then(function(){var r={id:t};Object(n["a"])(r).then(function(t){200==t.key&&(e.getList(),Object(i["Toast"])("删除成功"))})}).catch(function(){Object(i["Toast"])("已取消操作")})},tabsClick:function(){0!=this.active&&this.getList()},onConfirm:function(t,e){this.reportFrom[e]=t,this["showPicker_"+e]=!1},goDetial:function(t){this.$router.push("/economicData/detial?id="+t)},getYear:function(){for(var t=(new Date).getFullYear(),e=(new Date).getFullYear()+1,r=[],a=0;a<=100;a++)r.push(t--);this.year=r.reverse();for(var o=0;o<=100;o++)this.year.push(e++)}}},l=c,u=(r("8619"),r("2877")),d=Object(u["a"])(l,a,o,!1,null,"e6dd91ce",null);e["default"]=d.exports},8619:function(t,e,r){"use strict";var a=r("a096"),o=r.n(a);o.a},8982:function(t,e,r){"use strict";r.d(e,"a",function(){return m}),r.d(e,"b",function(){return p});var a=r("795b"),o=r.n(a),i=r("bc3a"),s=r.n(i),n=r("4328"),c=r.n(n),l=r("4360"),u=r("5cab"),d=r("a18c"),h=r("3089");function m(t,e){t.headers||(t.headers={}),t.headers&&u["a"].getToken()&&(t.headers["RC-Token"]=u["a"].getToken());var r={method:t.method,url:t.url,data:c.a.stringify(t.data)};return e&&(r.data=t.data),t.headers&&(r.headers=t.headers),new o.a(function(e,a){s()(r).then(function(t){if(t&&t.data&&200===t.status){var r=t.data;switch(r.errno){case 501:Object(h["Toast"])(r.errmsg),setTimeout(function(){l["a"].dispatch("user/logout").then(function(){d["a"].push("/login")})},1500),a(r.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(h["Toast"])(r.errmsg),a(r.errmsg);break}e(r)}else console.log(t),a(t)}).catch(function(e,r){console.log(t.url+" fail",e,r),Object(h["Toast"])(e),a(e,r)})})}function p(t){t.headers||(t.headers={}),t.headers&&u["a"].getToken()&&(t.headers["RC-Token"]=u["a"].getToken());var e={method:t.method,url:t.url};return e.data=t.data,t.headers&&(e.headers=t.headers,e.headers["MVVM-Key"]=String((new Date).getTime()),e.headers["xx"]="anything",e.headers["Content-Type"]="application/json;charset=UTF-8"),console.log("request: ",t),new o.a(function(r,a){s.a.defaults.withCredentials=!0,s()(e).then(function(t){if(console.log("response:",t),t&&t.data&&200===t.status){var e=t.data;switch(e.errno){case 501:Object(h["Toast"])(e.errmsg),setTimeout(function(){l["a"].dispatch("user/logout").then(function(){d["a"].push("/login")})},1500),a(e.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(h["Toast"])(e.errmsg),a(e.errmsg);break}r(e)}else console.log(t),a(t)}).catch(function(e,r){console.log(t.url+" fail",e,r),Object(h["Toast"])(e),a(e,r)})})}},a096:function(t,e,r){}}]);