zhugauntaizhang.js 7.5 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/zhuguantaizhang/zhugauntaizhang"],{2166:function(t,e,n){"use strict";n.r(e);var a=n("593d"),o=n.n(a);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},"2f46":function(t,e,n){"use strict";n.r(e);var a=n("b994"),o=n("e7ae");for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("3a46");var r,u=n("f0c5"),c=Object(u["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],r);e["default"]=c.exports},"3a46":function(t,e,n){"use strict";var a=n("ddb6"),o=n.n(a);o.a},"4e90":function(t,e,n){"use strict";var a=n("d869"),o=n.n(a);o.a},"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 o=this,i=new Promise((function(i,r){var u=t.getStorageSync("token"),c={token:u||""};t.request({url:o.globalData.baseUrl+e,data:n,method:a,header:c,success:function(t){200==t.statusCode?i(t):r(t.data)},fail:function(t){console.log(t),r("网络出错"),wx.hideNavigationBarLoading()},complete:function(t){}})}));return i},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 o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("4e90");var i,r,u,c,l=n("f0c5"),s=Object(l["a"])(a["default"],i,r,!1,null,null,null,!1,u,c);e["default"]=s.exports},b994:function(t,e,n){"use strict";var a,o=function(){var t=this,e=t.$createElement;t._self._c},i=[];n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}))},d869:function(t,e,n){},d96f:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(n("59df"));function o(t){return t&&t.__esModule?t:{default:t}}function i(t){if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=r(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,o,i=!0,u=!1;return{s:function(){a=t[Symbol.iterator]()},n:function(){var t=a.next();return i=t.done,t},e:function(t){u=!0,o=t},f:function(){try{i||null==a.return||a.return()}finally{if(u)throw o}}}}function r(t,e){if(t){if("string"===typeof t)return u(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)?u(t,e):void 0}}function u(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}var l={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:"主管部门",stationname:"请选择主管部门",stationindex:0,document:"",stationlist:[],yearname:"请选择年度"}},onLoad:function(){var t=new Date,e=t.getFullYear();console.log(e);for(var n=e-19,a=n;a<=e;a++)this.yeararr.push(a);this.getprojectkind(),this.getzixundanwei(),this.getzhugaunlist()},computed:{startDate:function(){return this.getDate("start")},endDate:function(){return this.getDate("end")}},methods:{hide:function(){this.tizhangshow=!1},hidek:function(){},getzhugaunlist:function(){var t=this;console.log(9988776655);var e="project/Get_ComDepartment";a.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,o=e.getDate();return"start"===t?n-=60:"end"===t&&(n+=2),a=a>9?a:"0"+a,o=o>9?o:"0"+o,"".concat(n,"-").concat(a,"-").concat(o)},shai:function(){this.tizhangshow=!this.tizhangshow},reset:function(){this.startdate="开始时间",this.endate="结束时间",this.projectname="项目类型",this.danweiname="主管部门",this.yearindex=-1},getprojectkind:function(){var t=this,e="project/Get_ProjectType";a.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_Document";a.default.post(e,"","get").then((function(e){console.log(e),t.danweilist=e.data,console.log(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,e=this;console.log(9988776543);var n="project/Get_GetRptaudit",o=c({toaudit:"document",fprojectcategory:e.fprojectcategory,document:e.fintorg,sendyear:e.sendyear,submitdateone:e.submitdateone,submitdatetwo:e.submitdatetwo,fteam:"",fintorg:""},"document",e.document);console.log("8877665544",o),a.default.post(n,o,"get").then((function(n){console.log(n),t.xiangmulist=n.data;var a,o=t.xiangmulist,r=[],u=i(o);try{for(u.s();!(a=u.n()).done;){var c=a.value;r.push(c)}}catch(f){u.e(f)}finally{u.f()}var l=r.splice(-1);e.end=l,console.log("3783747494389",t.end);var s=r.length;s-=1,console.log(s),r.splice(s,1),console.log(r),t.xiangmulist=r,console.log(typeof r)})).catch((function(t){console.log(t)}))},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:"../zhugauntaidetail/zhugauntaidetail?item="+n+"&type=5"})}},onShow:function(){this.gettiazhanglist()},onReachBottom:function(){console.log(999)}};e.default=l}).call(this,n("543d")["default"])},ddb6:function(t,e,n){},e7ae:function(t,e,n){"use strict";n.r(e);var a=n("d96f"),o=n.n(a);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},f6f9:function(t,e,n){"use strict";(function(t){n("bdbd"),n("921b");a(n("66fd"));var e=a(n("2f46"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])}},[["f6f9","common/runtime","common/vendor"]]]);