daiban.js
6.2 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/daiban/daiban"],{"19bd":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("59df"));function i(t){return t&&t.__esModule?t:{default:t}}function a(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,i,a=!0,u=!1;return{s:function(){o=t[Symbol.iterator]()},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw i}}}}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(){this.getdaibanlist(),this.isshowrenwu(),this.gettopdata(),this.getbudget()},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",i=t.getStorageSync("userid"),a={Userid:i,role:t.getStorageSync("role"),type:"assessment"};o.default.post(n,a,"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",i=t.getStorageSync("userid"),a={Userid:i,role:t.getStorageSync("role"),type:"project"};o.default.post(n,a,"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,i="project/Get_Agencymatters",r=t.getStorageSync("userid"),u={Userid:r,status:n.status,role:t.getStorageSync("role")};console.log("9999",u),o.default.post(i,u,"get").then((function(t){console.log(t),e.daibanlist=t.data;var n,o=e.daibanlist,i=a(o);try{for(i.s();!(n=i.n()).done;){var r=n.value;r.fcreatedate=r.fcreatedate.split("T"),r.fcreatedate=r.fcreatedate[0]}}catch(u){i.e(u)}finally{i.f()}e.daibanlist=o})).catch((function(t){console.log(t)}))},govoice:function(e){console.log("daddaa",e);var n=e.fprojectid,o=e.fdisid;if(console.log("37474334887",e.fbizformid),"bd_advisory"==e.fbizformid)t.navigateTo({url:"../zixundanweifen/zixundanweifen?dfprojectid="+n+"&disid="+o});else if("bd_distribution"==e.fbizformid)t.navigateTo({url:"/pages/zixunfenpei/zixunfenpei?projectid="+n});else if("int_projectInventory"==e.fbizformid){var i=JSON.stringify(e);"预算"==e.freviewtype&&t.navigateTo({url:"/pages/projectziliao/projectziliao?projectid="+n+"&type=1&item="+i})}else"int_problemquestion"==e.fbizformid&&(console.log(e),t.navigateTo({url:"/pages/seequestion/seequestion?projectid="+n}))},gocenter:function(){t.navigateTo({url:"../taizhang/taizhang"})},isshowrenwu:function(){var e=this,n=this,i="project/Get_Menuhiding",a={fuserid:t.getStorageSync("userid"),role:t.getStorageSync("role")};o.default.post(i,a,"get").then((function(o){console.log(o),e.showhide=o.data,t.setStorageSync("showhide",o.data),0!=n.showhide[3].status&&(console.log(9090),t.redirectTo({url:"../taizhang/taizhang"}))})).catch((function(t){console.log(t)}))}},onLoad:function(e){console.log(988766),console.log("转数字",this.unction(452369874)),t.setNavigationBarTitle({title:"投资项目管理平台("+t.getStorageSync("name")+")"})}};e.default=c}).call(this,n("543d")["default"])},2166:function(t,e,n){"use strict";n.r(e);var o=n("593d"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},2313:function(t,e,n){"use strict";var o,i=function(){var t=this,e=t.$createElement;t._self._c},a=[];n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}))},"31f0":function(t,e,n){"use strict";(function(t){n("bdbd"),n("921b");o(n("66fd"));var e=o(n("a038"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"4e90":function(t,e,n){"use strict";var o=n("d869"),i=n.n(o);i.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,o){var i=this,a=new Promise((function(a,r){var u=t.getStorageSync("token"),c={token:u||""};t.request({url:i.globalData.baseUrl+e,data:n,method:o,header:c,success:function(t){200==t.statusCode?a(t):r(t.data)},fail:function(t){console.log(t),r("网络出错"),wx.hideNavigationBarLoading()},complete:function(t){}})}));return a},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 o=n("2166");for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("4e90");var a,r,u,c,s=n("f0c5"),l=Object(s["a"])(o["default"],a,r,!1,null,null,null,!1,u,c);e["default"]=l.exports},a038:function(t,e,n){"use strict";n.r(e);var o=n("2313"),i=n("b72d");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("c106");var r,u=n("f0c5"),c=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],r);e["default"]=c.exports},b72d:function(t,e,n){"use strict";n.r(e);var o=n("19bd"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},bb44:function(t,e,n){},c106:function(t,e,n){"use strict";var o=n("bb44"),i=n.n(o);i.a},d869:function(t,e,n){}},[["31f0","common/runtime","common/vendor"]]]);