zixundanweifen.js 8.6 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/zixundanweifen/zixundanweifen"],{"055d":function(t,e,n){},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},"4e90":function(t,e,n){"use strict";var o=n("d869"),i=n.n(o);i.a},"571c":function(t,e,n){"use strict";n.r(e);var o=n("ce5e"),i=n("9daf");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("73d5");var s,r=n("f0c5"),c=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],s);e["default"]=c.exports},"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,s){var r=t.getStorageSync("token"),c={token:r||""};t.request({url:i.globalData.baseUrl+e,data:n,method:o,header:c,success:function(t){200==t.statusCode?a(t):s(t.data)},fail:function(t){console.log(t),s("网络出错"),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,s,r,c,u=n("f0c5"),d=Object(u["a"])(o["default"],a,s,!1,null,null,null,!1,r,c);e["default"]=d.exports},"73d5":function(t,e,n){"use strict";var o=n("055d"),i=n.n(o);i.a},"9daf":function(t,e,n){"use strict";n.r(e);var o=n("d69e"),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},ce5e: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}))},d69e:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n("59df")),i=a(n("b86c"));function a(t){return t&&t.__esModule?t:{default:t}}function s(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,s=!1;return{s:function(){o=t[Symbol.iterator]()},n:function(){var t=o.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==o.return||o.return()}finally{if(s)throw i}}}}function r(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,o=new Array(e);n<e;n++)o[n]=t[n];return o}var u={data:function(){return{disid:"",item:"",fteamid:"",fprojectid:"",ftrialnumber:"",fconcludenumber:"",votelist:[],danweilist:[],index:0,keyword:"",showhide:"",fuzepeople:"",fuzephone:"",status:"",subdisid:"",daibanfprojectid:"",touvotelist:[],fintorgid:" ",danweiname:"请选择咨询单位",state:""}},onLoad:function(e){if(this.showhide=t.getStorageSync("showhide"),console.log("传的参数",e.dfprojectid,e),void 0!=e.dfprojectid)this.daibanfprojectid=e.dfprojectid,this.disid=e.disid,this.status=this.showhide[4].status,this.getdaibandetail();else{this.item=JSON.parse(e.item),console.log("8888",this.item);var n=this.item;n.ftoauditamt=i.default.change(n.ftoauditamt),this.item=n,this.status=this.showhide[4].status,this.disid=e.disid,this.fteamid=e.fteamid,this.fprojectid=e.fprojectid,this.fintorgid=this.item.fintorgid,this.danweiname=this.item.fintorgname}this.getvotelist(),this.shenjienum(),this.getzixundanwei()},methods:{getdaibandetail:function(){var e=this;console.log(999);var n=this,a="project/Get_advisory",s={fuserid:t.getStorageSync("userid"),role:t.getStorageSync("role"),fprojectid:this.daibanfprojectid};console.log("canshu",s),o.default.post(a,s,"get").then((function(t){console.log("代办事宜",t),n.item=t.data[0];var o=e.item;o.ftoauditamt=i.default.change(o.ftoauditamt),e.item=o})).catch((function(t){console.log(t)}))},getvotelist:function(){var t=this,e="project/Get_intermediaryorg",n={disid:this.disid};console.log("8877665544",n),o.default.post(e,n,"get").then((function(e){console.log("投票列表",e),t.votelist=e.data,t.touvotelist=e.data})).catch((function(t){console.log(t)}))},toupiao:function(e){var n=this;console.log(e);var i=e.target.dataset.voiteitem;console.log(i.finteroryname);var a="project/Get_vote",s={fname:i.finteroryname,fid:n.item.disid,fprojectid:n.item.fprojectid,userid:t.getStorageSync("userid"),fadvisoryid:i.fadvisoryid,role:t.getStorageSync("role")};console.log("8877665544",s),o.default.post(a,s,"get").then((function(e){console.log(e),console.log(JSON.stringify(e.data)),t.showToast({title:e.data[0].message,icon:"none"}),n.voicesuccess(),setTimeout((function(){t.navigateBack({checked:!0})}),1500)})).catch((function(t){console.log(t)}))},voicesuccess:function(){var e=this,n="project/Upadte_Agencymatters",i={userid:t.getStorageSync("userid"),fdisid:e.item.disid};console.log("8877665544",i),o.default.post(n,i,"get").then((function(t){console.log("投票成功之后",t)})).catch((function(t){console.log(t)}))},shenjienum:function(){var t=this;console.log(9988776655);var e="project/Get_disnumber",n={fteamid:this.fteamid,fprojectid:this.fprojectid};o.default.post(e,n,"get").then((function(e){console.log(e),t.ftrialnumber=e.data[0].ftrialnumber,t.fconcludenumber=e.data[0].fconcludenumber})).catch((function(t){console.log(t)}))},getzixundanwei:function(){var t=this;console.log(9988776655);var e="project/Get_IntermediaryOrg";o.default.post(e,"","get").then((function(e){console.log("咨询单位",e),t.danweilist=e.data,console.log(t.item.ftaskprocess),"投票中"==t.item.ftaskprocess?(t.danweiname="",t.fuzepeople="",t.fuzephone="",t.fintorgid=" "):(console.log(43848934),t.danweilist.forEach((function(e,n,o){e.fid==t.item.fintorgid&&(t.danweiname=e.fname,t.fuzepeople=e.fauthorizeman,t.fuzephone=e.fauthphone,t.fintorgid=e.fid,t.index=n,console.log("index",t.index))}))),console.log(t.danweilist)})).catch((function(t){console.log(t)}))},enterxiangmu:function(t){this.keyword=t.target.value,console.log("776655443322",this.keyword)},chaxun:function(){if(""==this.keyword)this.getvotelist();else{var t,e=[],n=this.votelist,o=[],i=s(n);try{for(i.s();!(t=i.n()).done;){var a=t.value;o.push(a.finteroryname)}}catch(u){i.e(u)}finally{i.f()}console.log("项目",o);for(var r=0;r<n.length;r++)for(var c=0;c<o.length;c++)o[c].indexOf(this.keyword)>=0&&c==r&&e.push(n[r]);console.log("9999000777",e),this.votelist=e}},bindPickerChange:function(t){console.log("picker发送选择改变,携带值为",t.target.value),this.index=t.target.value,this.danweiname=this.danweilist[t.target.value].fname,this.fuzepeople=this.danweilist[t.target.value].fauthorizeman,this.fuzephone=this.danweilist[t.target.value].fauthphone,this.fintorgid=this.danweilist[t.target.value].fid,console.log(JSON.stringify(this.danweilist)),console.log(this.fintorgid)},surefenpei:function(){var e=this,n=this;if(console.log("咨询单位",n.fintorgid)," "==n.fintorgid)return t.showToast({title:"请选择咨询单位",icon:"none"}),!1;var i="project/Get_SubmitAdvisoryDisfteam",a={fadvisorystatus:n.item.fadvisorystatus,fuserid:t.getStorageSync("userid"),disid:n.item.disid,fprojectid:n.item.fprojectid,fintorgid:n.fintorgid};console.log("咨询单位分配参数",a),o.default.post(i,a,"get").then((function(n){console.log(n),"成功"==n.data[0].message?(t.showToast({title:"提交成功",icon:"none"}),e.changestate(),setTimeout((function(){t.navigateBack({checked:!0})}),1e3)):t.showToast({title:n.data[0].message,icon:"none"})})).catch((function(t){console.log(t)}))},changestate:function(){var e=this,n="project/Get_Fteam";t.getStorageSync("userid"),e.item.disid;o.default.post(n,"","get").then((function(t){console.log("修改状态",t)})).catch((function(t){console.log(t)}))}}};e.default=u}).call(this,n("543d")["default"])},d869:function(t,e,n){},fa9f:function(t,e,n){"use strict";(function(t){n("bdbd"),n("921b");o(n("66fd"));var e=o(n("571c"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])}},[["fa9f","common/runtime","common/vendor"]]]);