daiban.js
6.2 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/daiban/daiban"],{"0aa0":function(t,e,n){"use strict";var o=n("1604"),a=n.n(o);a.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,o){var a=this,i=new Promise((function(i,r){var u=t.getStorageSync("token"),c={token:u||""};t.request({url:a.globalData.baseUrl+e,data:n,method:o,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"])},1604:function(t,e,n){},"1f18":function(t,e,n){"use strict";n.r(e);var o=n("0c9c"),a=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},"1f84":function(t,e,n){},"2d6d":function(t,e,n){"use strict";var o=n("1f84"),a=n.n(o);a.a},"30b9":function(t,e,n){"use strict";n.r(e);var o=n("1f18");for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("0aa0");var i,r,u,c,s=n("f0c5"),l=Object(s["a"])(o["default"],i,r,!1,null,null,null,!1,u,c);e["default"]=l.exports},5551:function(t,e,n){"use strict";n.r(e);var o=n("da08"),a=n("7115");for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("2d6d");var r,u=n("f0c5"),c=Object(u["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],r);e["default"]=c.exports},7115:function(t,e,n){"use strict";n.r(e);var o=n("f246"),a=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},da08:function(t,e,n){"use strict";var o,a=function(){var t=this,e=t.$createElement;t._self._c},i=[];n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}))},deb0:function(t,e,n){"use strict";(function(t){n("a237"),n("921b");o(n("66fd"));var e=o(n("5551"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},f246:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n("30b9"));function a(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 o,a,i=!0,u=!1;return{s:function(){o=t[Symbol.iterator]()},n:function(){var t=o.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==o.return||o.return()}finally{if(u)throw a}}}}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,o=new Array(e);n<e;n++)o[n]=t[n];return o}var c={data:function(){return{sel:0,status:0,daibanlist:[],showhide:[],review:"",budget:""}},onshow:function(){},onNavigationBarButtonTap:function(){},onResize:function(){},methods:{xuanze:function(t){var e=t.currentTarget.dataset.index;console.log(e),this.sel=e,0==e?this.status=0:1==e?this.status=1:2==e&&(this.status=2),this.getdaibanlist()},unction:function(t){var e="",n=0;t=(t||0).toString();for(var o=t.length-1;o>=0;o--)n++,e=t.charAt(o)+e,n%3||0==o||(e=","+e);return e},gettopdata:function(){var e=this,n="project/Select_ProjectNumber",a=t.getStorageSync("userid"),i={Userid:a,role:t.getStorageSync("role"),type:"assessment"};o.default.post(n,i,"get").then((function(t){console.log("顶部数据",t),e.review=t.data[0]})).catch((function(t){console.log(t)}))},getbudget:function(){var e=this,n="project/Select_ProjectNumber",a=t.getStorageSync("userid"),i={Userid:a,role:t.getStorageSync("role"),type:"project"};o.default.post(n,i,"get").then((function(t){console.log("顶部数据",t),e.budget=t.data[0]})).catch((function(t){console.log(t)}))},getdaibanlist:function(){var e=this,n=this,a="project/Get_Agencymatters",r=t.getStorageSync("userid"),u={Userid:r,status:n.status,role:t.getStorageSync("role")};console.log("9999",u),o.default.post(a,u,"get").then((function(t){console.log(t),e.daibanlist=t.data;var n,o=e.daibanlist,a=i(o);try{for(a.s();!(n=a.n()).done;){var r=n.value;r.fcreatedate=r.fcreatedate.split("T"),r.fcreatedate=r.fcreatedate[0]}}catch(u){a.e(u)}finally{a.f()}e.daibanlist=o})).catch((function(t){console.log(t)}))},govoice:function(e){console.log("daddaa",e);var n=e.fprojectid,o=e.fdisid;console.log("37474334887",e.fbizformid),"bd_advisory"==e.fbizformid?t.navigateTo({url:"../zixundanweifen/zixundanweifen?dfprojectid="+n+"&disid="+o}):"bd_distribution"==e.fbizformid?t.navigateTo({url:"/pages/zixunfenpei/zixunfenpei?projectid="+n}):"int_projectInventory"==e.fbizformid?"预算"==e.freviewtype&&t.navigateTo({url:"/pages/projectziliao/projectziliao?projectid="+n+"&type=1"}):"int_problemquestion"==e.fbizformid&&t.navigateTo({url:"/pages/seequestion/seequestion?projectid="+n})},gocenter:function(){t.navigateTo({url:"../taizhang/taizhang"})},isshowrenwu:function(){var e=this,n=this,a="project/Get_Menuhiding",i={fuserid:t.getStorageSync("userid"),role:t.getStorageSync("role")};o.default.post(a,i,"get").then((function(o){console.log(o),e.showhide=o.data,t.setStorageSync("showhide",o.data),1==n.showhide[3].status&&(console.log(9090),t.navigateTo({url:"../taizhang/taizhang"}))})).catch((function(t){console.log(t)}))}},onLoad:function(e){this.getdaibanlist(),console.log(988766),console.log("转数字",this.unction(452369874)),t.setNavigationBarTitle({title:"投资项目管理平台("+t.getStorageSync("name")+")"}),this.isshowrenwu(),this.gettopdata(),this.getbudget()}};e.default=c}).call(this,n("543d")["default"])}},[["deb0","common/runtime","common/vendor"]]]);