xiangmuleixinghui.js 7.5 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/xiangmuleixinghui/xiangmuleixinghui"],{"0aa0":function(t,e,n){"use strict";var a=n("1604"),i=n.n(a);i.a},"0c9c":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"),c={token:u||""};t.request({url:i.globalData.baseUrl+e,data:n,method:a,header:c,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"])},"15ca":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(n("30b9")),i=o(n("079c"));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 c(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)?c(t,e):void 0}}function c(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}var s={data:function(){return{selact:1,tizhangshow:!1,danweiindex:0,danweilist:[],projectlist:[],projectname:"项目类型",danweiname:"评审类型",yearindex:-1,startdate:"开始时间",endate:"结束时间",index:0,yeararr:[],danweilistz:[],danweiindexz:0,danweinamez:"咨询单位",toaudit:"",fintorg:"",fprojectcategory:"",submitdateone:"",submitdatetwo:"",sendyear:"",huizonglist:[],type:"",huizong:!0,fid:""}},onLoad:function(t){this.type=t.type;var e=new Date,n=e.getFullYear();console.log(n);for(var a=n-19,i=a;i<=n;i++)this.yeararr.push(i);this.getpingtype(),this.getprojectkind(),this.getzixundanwei(),this.getfenhuilist()},methods:{reset:function(){this.projectname="项目类型",this.danweiname="评审类型",this.yearindex=-1,this.startdate="开始时间",this.endate="结束时间",this.toaudit="",this.fprojectcategory="",this.sendyear="",this.submitdateone="",this.submitdatetwo=""},onNavigationBarButtonTap:function(){this.tizhangshow=!this.tizhangshow},yearchange:function(t){this.yearindex=t.target.value,this.sendyear=this.yeararr[t.target.value]},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},fenhui:function(t){console.log(t);var e=t.currentTarget.dataset.id;console.log(e),this.selact=e},screenheng:function(){console.log(999)},getzixundanwei:function(){var t=this;console.log(9988776655);var e="project/Get_IntermediaryOrg";a.default.post(e,"","get").then((function(e){console.log(e),t.danweilistz=e.data})).catch((function(t){console.log(t)}))},danweichangez:function(t){console.log("picker发送选择改变,携带值为",t),console.log("998877654",this.danweilistz),console.log("09988776545",this.danweilistz[t.target.value].fname),this.danweiindexz=t.target.value,this.fintorg=this.danweilistz[t.target.value].fname,this.danweinamez=this.danweilistz[t.target.value].fname},getpingtype:function(){var t=this;console.log(9988776655);var e="project/Get_ToAuditType";a.default.post(e,"","get").then((function(e){console.log(e),t.danweilist=e.data})).catch((function(t){console.log(t)}))},danweichange:function(t){console.log("picker发送选择改变,携带值为",t.target.value),this.danweiindex=t.target.value,this.toaudit=this.danweilist[t.target.value].fname,this.danweiname=this.danweilist[t.target.value].fname},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},getfenhuilist:function(){var t=this,e=this;console.log(9988776655);var n="project/Get_PrjtypecategorySum",o={toaudit:e.toaudit,fprojectcategory:e.fprojectcategory,sendyear:e.sendyear,submitdateone:e.submitdateone,submitdatetwo:e.submitdatetwo};console.log(o),a.default.post(n,o,"get").then((function(n){console.log(n),e.huizonglist=n.data;var a,o=e.huizonglist,u=r(o);try{for(u.s();!(a=u.n()).done;){var c=a.value;c.auduitsum=i.default.change(c.auduitsum),c.amountsum=i.default.change(c.amountsum),c.freesum=i.default.change(c.freesum)}}catch(s){u.e(s)}finally{u.f()}t.huizonglist=o})).catch((function(t){console.log(t)}))},detail:function(e){console.log(e),this.fid=e.target.dataset.id,t.navigateTo({url:"../xiangmuleixinghuidetail/xiangmuleixinghuidetail?fid="+this.fid})},getdetail:function(){var t=this;console.log(9988776655);var e="project/Get_Prjtypecategory",n={fid:t.fid,toaudit:t.toaudit,fprojectcategory:t.fprojectcategory,sendyear:t.sendyear,submitdateone:t.submitdateone,submitdatetwo:t.submitdatetwo};console.log(n),a.default.post(e,n,"get").then((function(e){console.log(e),t.huizonglist=e.data})).catch((function(t){console.log(t)}))},search:function(){this.getfenhuilist(),this.tizhangshow=!1},searchdetail:function(){this.getdetail(),this.tizhangshow=!1}}};e.default=s}).call(this,n("543d")["default"])},1604:function(t,e,n){},"1ce2":function(t,e,n){},"1f18":function(t,e,n){"use strict";n.r(e);var a=n("0c9c"),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},3061:function(t,e,n){"use strict";var a=n("1ce2"),i=n.n(a);i.a},"30b9":function(t,e,n){"use strict";n.r(e);var a=n("1f18");for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("0aa0");var o,r,u,c,s=n("f0c5"),l=Object(s["a"])(a["default"],o,r,!1,null,null,null,!1,u,c);e["default"]=l.exports},"59f0":function(t,e,n){"use strict";n.r(e);var a=n("abfa"),i=n("62f5");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("3061");var r,u=n("f0c5"),c=Object(u["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],r);e["default"]=c.exports},"62f5":function(t,e,n){"use strict";n.r(e);var a=n("15ca"),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},"89e6":function(t,e,n){"use strict";(function(t){n("a237"),n("921b");a(n("66fd"));var e=a(n("59f0"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},abfa: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}))}},[["89e6","common/runtime","common/vendor"]]]);