yusuantaizhang.js 8.4 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/yusuantaizhang/yusuantaizhang"],{2073:function(t,e,n){"use strict";var a=n("acd8"),i=n.n(a);i.a},2166:function(t,e,n){"use strict";n.r(e);var a=n("593d"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"4e90":function(t,e,n){"use strict";var a=n("d869"),i=n.n(a);i.a},"4fb1":function(t,e,n){"use strict";(function(t){n("bdbd"),n("921b");a(n("66fd"));var e=a(n("730f"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"593d":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")},post:function(e,n,a){var i=this,o=new Promise((function(o,r){var u=t.getStorageSync("token"),s={token:u||""};t.request({url:i.globalData.baseUrl+e,data:n,method:a,header:s,success:function(t){200==t.statusCode?o(t):r(t.data)},fail:function(t){console.log(t),r("网络出错"),wx.hideNavigationBarLoading()},complete:function(t){}})}));return o},globalData:{userInfo:null,baseUrl:"https://www.bjzha.net/api/"}};e.default=n}).call(this,n("543d")["default"])},"59df":function(t,e,n){"use strict";n.r(e);var a=n("2166");for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("4e90");var o,r,u,s,c=n("f0c5"),l=Object(c["a"])(a["default"],o,r,!1,null,null,null,!1,u,s);e["default"]=l.exports},"730f":function(t,e,n){"use strict";n.r(e);var a=n("fd45"),i=n("eb7f");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("2073");var r,u=n("f0c5"),s=Object(u["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],r);e["default"]=s.exports},acd8:function(t,e,n){},c538:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(n("4795")),i=o(n("59df"));function o(t){return t&&t.__esModule?t:{default:t}}function r(t){if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=u(t))){var e=0,n=function(){};return{s:n,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}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 a,i,o=!0,r=!1;return{s:function(){a=t[Symbol.iterator]()},n:function(){var t=a.next();return o=t.done,t},e:function(t){r=!0,i=t},f:function(){try{o||null==a.return||a.return()}finally{if(r)throw i}}}}function u(t,e){if(t){if("string"===typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e,n,a,i,o,r){try{var u=t[o](r),s=u.value}catch(c){return void n(c)}u.done?e(s):Promise.resolve(s).then(a,i)}function d(t){return function(){var e=this,n=arguments;return new Promise((function(a,i){var o=t.apply(e,n);function r(t){l(o,a,i,r,u,"next",t)}function u(t){l(o,a,i,r,u,"throw",t)}r(void 0)}))}}var f={data:function(){return{tizhangshow:!1,fprojectcategory:"",fintorg:"",sendyear:"",submitdateone:"",submitdatetwo:"",xiangmulist:[],projectlist:[],index:0,danweilist:[],danweiindex:0,end:"",yeararr:[],yearindex:-1,startdate:"开始时间",endate:"结束时间",projectname:"项目类型",danweiname:"咨询单位",toaudit:"",type:"",stationname:"请选择主管部门",stationindex:0,document:"",stationlist:[],yearname:"请选择年度"}},computed:{startDate:function(){return this.getDate("start")},endDate:function(){return this.getDate("end")}},onLoad:function(e){this.type=e.type,1==e.type?(t.setNavigationBarTitle({title:"预算项目台账"}),this.toaudit="prj_toaudit_budget"):2==e.type?(t.setNavigationBarTitle({title:"结算项目台账"}),this.toaudit="prj_toaudit_settlement"):3==e.type?(t.setNavigationBarTitle({title:"决算项目台账"}),this.toaudit="prj_toaudit_change"):4==e.type&&(t.setNavigationBarTitle({title:"土地成本项目台帐"}),this.toaudit="prj_toaudit_land");var n=new Date,a=n.getFullYear();console.log(a);for(var i=a-19,o=i;o<=a;o++)this.yeararr.push(o);this.getprojectkind(),this.getzixundanwei(),this.gettiazhanglist(),this.getzhugaunlist()},methods:{hide:function(){this.tizhangshow=!1},hidek:function(){},getzhugaunlist:function(){var t=this;console.log(9988776655);var e="project/Get_ComDepartment";i.default.post(e,"","get").then((function(e){console.log(e),t.stationlist=e.data})).catch((function(t){console.log(t)}))},bindstationrChange:function(t){console.log("picker发送选择改变,携带值为",t.target.value),this.stationindex=t.target.value,this.stationname=this.stationlist[t.target.value].fname,this.document=this.stationlist[t.target.value].fid,console.log(this.document)},getDate:function(t){var e=new Date,n=e.getFullYear(),a=e.getMonth()+1,i=e.getDate();return"start"===t?n-=60:"end"===t&&(n+=2),a=a>9?a:"0"+a,i=i>9?i:"0"+i,"".concat(n,"-").concat(a,"-").concat(i)},reset:function(){this.yearindex=-1,this.startdate="开始时间",this.endate="结束时间",this.projectname="项目类型",this.danweiname="咨询单位",this.fprojectcategory="",this.fintorg="",this.sendyear="",this.submitdateone="",this.submitdatetwo=""},shai:function(){this.tizhangshow=!this.tizhangshow},getprojectkind:function(){var t=this,e="project/Get_ProjectType";i.default.post(e,"","get").then((function(e){console.log(e),t.projectlist=e.data,console.log(t.projectlist)})).catch((function(t){console.log(t)}))},bindPickerChange:function(t){console.log("picker发送选择改变,携带值为",t.target.value),this.index=t.target.value,this.fprojectcategory=this.projectlist[t.target.value].fname,this.projectname=this.projectlist[t.target.value].fname},bindDateChange:function(t){this.startdate=t.target.value,this.submitdateone=t.target.value},endDateChange:function(t){this.endate=t.target.value,this.submitdatetwo=t.target.value},getzixundanwei:function(){var t=this;console.log(9988776655);var e="project/Get_IntermediaryOrg";i.default.post(e,"","get").then((function(e){t.danweilist=e.data,console.log(JSON.stringify(t.danweilist))})).catch((function(t){console.log(t)}))},danweichange:function(t){console.log("picker发送选择改变,携带值为",t.target.value),this.danweiindex=t.target.value,this.fintorg=this.danweilist[t.target.value].fname,this.danweiname=this.danweilist[t.target.value].fname},yearchange:function(t){this.yearindex=t.target.value,this.sendyear=this.yeararr[t.target.value],this.yearname=this.yeararr[t.target.value]},gettiazhanglist:function(){var t=this;return d(a.default.mark((function e(){var n,o,u,s,l,d,f,h,g,p;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t,console.log(9988776543),o="project/Get_GetRptaudit",u=c({toaudit:n.toaudit,fprojectcategory:n.fprojectcategory,fintorg:n.fintorg,sendyear:n.sendyear,submitdateone:n.submitdateone,submitdatetwo:n.submitdatetwo,document:"",fteam:""},"document",n.document),console.log("8877665544",u),e.next=7,i.default.post(o,u,"get");case 7:s=e.sent,t.xiangmulist=s.data,l=t.xiangmulist,d=[],f=r(l);try{for(f.s();!(h=f.n()).done;)g=h.value,d.push(g)}catch(a){f.e(a)}finally{f.f()}p=d.splice(-1),n.end=p,console.log("34787348349389438我是end",n.ende),t.xiangmulist=d;case 17:case"end":return e.stop()}}),e)})))()},search:function(){console.log(7766554),this.gettiazhanglist(),this.tizhangshow=!1},taizhangdetail:function(e){console.log(e);var n=e.target.dataset.item;console.log(n),n=JSON.stringify(n),t.navigateTo({url:"../yusuantaidetail/yusuantaidetail?item="+n+"&type="+this.type})}},onReachBottom:function(){console.log(999)}};e.default=f}).call(this,n("543d")["default"])},d869:function(t,e,n){},eb7f:function(t,e,n){"use strict";n.r(e);var a=n("c538"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},fd45:function(t,e,n){"use strict";var a,i=function(){var t=this,e=t.$createElement;t._self._c},o=[];n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}))}},[["4fb1","common/runtime","common/vendor"]]]);