projectziliao.js
10.4 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/projectziliao/projectziliao"],{"04ae":function(e,t,o){"use strict";o.r(t);var n=o("5f1d"),i=o("dd71");for(var s in i)"default"!==s&&function(e){o.d(t,e,(function(){return i[e]}))}(s);o("235c");var l,c=o("f0c5"),a=Object(c["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],l);t["default"]=a.exports},"0dec":function(e,t,o){"use strict";(function(e){o("bdbd"),o("921b");n(o("66fd"));var t=n(o("04ae"));function n(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,o("543d")["createPage"])},2166:function(e,t,o){"use strict";o.r(t);var n=o("593d"),i=o.n(n);for(var s in n)"default"!==s&&function(e){o.d(t,e,(function(){return n[e]}))}(s);t["default"]=i.a},"235c":function(e,t,o){"use strict";var n=o("5c33"),i=o.n(n);i.a},"310f":function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(o("59df"));i(o("b86c"));function i(e){return e&&e.__esModule?e:{default:e}}var s={data:function(){return{disid:"",item:{},fteamid:"",fprojectid:"",ftrialnumber:"",fconcludenumber:"",votelist:[],danweilist:[],index:0,keyword:"",showhide:"",fuzepeople:"",fuzephone:"",status:"",subdisid:"",daibanfprojectid:"",touvotelist:[],fintorgid:" ",danweiname:"请选择咨询单位",state:"",seeklist:[],replylist:[],downurl:"",singgleurl:"",type:"",typeprojectid:"",project:""}},onLoad:function(t){if(console.log("传的参数",t),void 0!=t.type){switch(this.type=t.type,this.typeprojectid=t.projectid,this.item=JSON.parse(t.item),this.type){case 1:console.log(this.type),this.project="prj_toaudit_budget";break;case 2:console.log(this.type),this.project="prj_toaudit_settlement";break;case 3:this.project="prj_toaudit_change";break;case 4:this.project="prj_toaudit_land";break}this.getbudgetlist()}else this.item=JSON.parse(t.item),console.log(this.item);this.getseeklist(),this.getreplay(),this.showhide=e.getStorageSync("showhide")},methods:{getbudgetlist:function(){var t=this,o="project/Get_ProjectInventory",i={fprojectcategory:t.project,fuserid:e.getStorageSync("userid"),fprojectid:t.typeprojectid,role:e.getStorageSync("role")};console.log("8877665544",i),n.default.post(o,i,"get").then((function(e){console.log(e,"kkkkk"),t.item=e.data[0]})).catch((function(e){console.log(e)}))},shenjie:function(t){var o="project/Save_ProjectConclude",i={userid:e.getStorageSync("userid"),role:e.getStorageSync("role"),fprojectid:t.fprojectid,fdisid:t.fdisid,fdirstatus:t.fdirstatus,ffinauditstatus:t.ffinauditstatus};console.log("8877665544",i),n.default.post(o,i,"get").then((function(t){console.log(t),e.showToast({title:t.data[0].message,icon:"none"})})).catch((function(e){console.log(e)}))},question:function(t){console.log(t);var o=t.fprojectid;e.setStorageSync("questionid",o),e.navigateTo({url:"/pages/question/question?quesprojectid="+o})},jingban:function(t){var o=JSON.stringify(t);e.navigateTo({url:"/pages/examinejingban/examinejingban?item="+o})},pingshen:function(t){var o=JSON.stringify(t);e.navigateTo({url:"/pages/reviewreport/reviewreport?item="+o})},concatsure:function(t){var o=JSON.stringify(t);e.navigateTo({url:"/pages/concat/concat?item="+o})},getseeklist:function(){var t=this,o="project/Select_Fseektity",i={userid:e.getStorageSync("userid"),role:e.getStorageSync("role"),fprojectid:t.item.fprojectid,fdisid:t.item.fdisid,type:"fseektity"};console.log("8877665544",i),n.default.post(o,i,"get").then((function(e){console.log("征求意见稿",e),t.seeklist=e.data})).catch((function(e){console.log(e)}))},getreplay:function(){var t=this,o="project/Select_Fseektity",i={userid:e.getStorageSync("userid"),role:e.getStorageSync("role"),fprojectid:t.item.fprojectid,fdisid:t.item.fdisid,type:"ffirstreplyfile"};console.log("8877665544",i),n.default.post(o,i,"get").then((function(e){console.log("审核回复文件",e),t.replylist=e.data,console.log(t.replylist.length),console.log(t.seeklist),console.log(JSON.stringify(t.seeklist))})).catch((function(e){console.log(e)}))},download:function(t){var o=this;console.log(t);var i=t.fseekfiles,s=t.fseekfiles_txt,l="project/Select_FileInfo",c={};n.default.post(l,c,"get").then((function(t){console.log("下载文件",t),o.singgleurl=t.data[0].file;var n=t.data[0].file+"?fileId="+i;console.log(wx.env.USER_DATA_PATH+"/"+s),e.downloadFile({url:n,header:{},success:function(e){},fail:function(e){},complete:function(t){console.log(t);var o=wx.getFileSystemManager();200===t.statusCode&&(o.saveFile({tempFilePath:t.tempFilePath,filePath:wx.env.USER_DATA_PATH+"/"+s,success:function(e){console.log(e)}}),e.openDocument({filePath:wx.env.USER_DATA_PATH+"/"+s,success:function(e){console.log("打开文档成功")},fail:function(){console.log("打开失败")}}))}})})).catch((function(e){console.log(e)}))},downshenhe:function(t){var o=this;console.log(t);var i=t.freplyfiles,s=t.freplyfiles_txt,l="project/Select_FileInfo",c={};n.default.post(l,c,"get").then((function(t){console.log("下载文件",t),o.singgleurl=t.data[0].file;var n=t.data[0].file+"?fileId="+i;console.log(wx.env.USER_DATA_PATH+"/"+s),e.downloadFile({url:n,header:{},success:function(e){},fail:function(e){},complete:function(t){console.log(t);var o=wx.getFileSystemManager();200===t.statusCode&&(o.saveFile({tempFilePath:t.tempFilePath,filePath:wx.env.USER_DATA_PATH+"/"+s,success:function(e){console.log(e)}}),e.openDocument({filePath:wx.env.USER_DATA_PATH+"/"+s,success:function(e){console.log("打开文档成功")},fail:function(){console.log("打开失败")}}))}})})).catch((function(e){console.log(e)}))},downsingle:function(t){console.log(t);var o=this,n=e.getStorageSync("token"),i={token:n||""},s={fileId:t};console.log("9999",s),e.request({url:o.singgleurl,data:s,method:"GET",header:i,success:function(e){console.log("888776554kkkk",e)},fail:function(e){console.log(e),reject("网络出错"),wx.hideNavigationBarLoading()},complete:function(e){}})},downloadall:function(){var e=this,t="project/Select_FileInfos",o={};n.default.post(t,o,"get").then((function(t){console.log("下载文件22",t),e.downurl=t.data[0].file,e.downmany()})).catch((function(e){console.log(e)}))},downmany:function(){var t=this,o=e.getStorageSync("token"),n={token:o||""},i=t.seeklist,s=[];i.forEach((function(e,t,o){console.log(e),null!=e.fseekfiles&&s.push(e.fseekfiles)}));var l={fileIds:s.join(",")};console.log("9999",l),e.request({url:t.downurl,data:l,method:"POST",header:n,success:function(e){console.log("888776554",e);var t=e.data+".zip";console.log(t),plus.runtime.openURL(t)},fail:function(e){console.log(e),reject("网络出错"),wx.hideNavigationBarLoading()},complete:function(e){}})},savefilecode:function(t){console.log(t),e.downloadFile({url:t,success:function(t){console.log("下载图片下载图片下载图片",t);var o=t.tempFilePath;console.log(o),e.openDocument({filePath:o,success:function(e){console.log("打开文档成功")}})},complete:function(e){}})},getvotelist:function(){var e=this,t="project/Get_intermediaryorg",o={disid:this.disid};console.log("8877665544",o),n.default.post(t,o,"get").then((function(t){console.log(t),e.votelist=t.data,e.touvotelist=t.data})).catch((function(e){console.log(e)}))},toupiao:function(t){var o=this;console.log(t);var i=t.target.dataset.voiteitem;console.log(i.finteroryname);var s="project/Get_vote",l={fname:i.finteroryname,fid:o.item.disid,fprojectid:o.item.fprojectid,userid:e.getStorageSync("userid"),fadvisoryid:i.fadvisoryid,role:e.getStorageSync("role")};console.log("8877665544",l),n.default.post(s,l,"get").then((function(t){console.log(t),console.log(JSON.stringify(t.data)),e.showToast({title:t.data[0].message,icon:"none"}),o.getvotelist(),o.voicesuccess()})).catch((function(e){console.log(e)}))},bindPickerChange:function(e){console.log("picker发送选择改变,携带值为",e.target.value),this.index=e.target.value,this.danweiname=this.danweilist[e.target.value].fname,this.fuzepeople=this.danweilist[e.target.value].fauthorizeman,this.fuzephone=this.danweilist[e.target.value].fauthphone,this.fintorgid=this.danweilist[e.target.value].fid,console.log(JSON.stringify(this.danweilist)),console.log(this.fintorgid)},surefenpei:function(){var t=this,o=this;if(console.log("咨询单位",o.fintorgid)," "==o.fintorgid)return e.showToast({title:"请选择咨询单位",icon:"none"}),!1;var i="project/Get_SubmitAdvisoryDisfteam",s={fadvisorystatus:o.item.fadvisorystatus,fuserid:e.getStorageSync("userid"),disid:o.item.disid,fprojectid:o.item.fprojectid,fintorgid:o.fintorgid};console.log("咨询单位分配参数",s),n.default.post(i,s,"get").then((function(o){console.log(o),"成功"==o.data[0].message?(e.showToast({title:"提交成功",icon:"none"}),t.changestate(),setTimeout((function(){e.navigateBack({checked:!0})}),1e3)):e.showToast({title:o.data[0].message,icon:"none"})})).catch((function(e){console.log(e)}))},changestate:function(){var t=this,o="project/Get_Fteam";e.getStorageSync("userid"),t.item.disid;n.default.post(o,"","get").then((function(e){console.log("修改状态",e)})).catch((function(e){console.log(e)}))}}};t.default=s}).call(this,o("543d")["default"])},"4e90":function(e,t,o){"use strict";var n=o("d869"),i=o.n(n);i.a},"593d":function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")},post:function(t,o,n){var i=this,s=new Promise((function(s,l){var c=e.getStorageSync("token"),a={token:c||""};e.request({url:i.globalData.baseUrl+t,data:o,method:n,header:a,success:function(e){200==e.statusCode?s(e):l(e.data)},fail:function(e){console.log(e),l("网络出错"),wx.hideNavigationBarLoading()},complete:function(e){}})}));return s},globalData:{userInfo:null,baseUrl:"https://www.bjzha.net/api/"}};t.default=o}).call(this,o("543d")["default"])},"59df":function(e,t,o){"use strict";o.r(t);var n=o("2166");for(var i in n)"default"!==i&&function(e){o.d(t,e,(function(){return n[e]}))}(i);o("4e90");var s,l,c,a,r=o("f0c5"),u=Object(r["a"])(n["default"],s,l,!1,null,null,null,!1,c,a);t["default"]=u.exports},"5c33":function(e,t,o){},"5f1d":function(e,t,o){"use strict";var n,i=function(){var e=this,t=e.$createElement;e._self._c},s=[];o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return s})),o.d(t,"a",(function(){return n}))},d869:function(e,t,o){},dd71:function(e,t,o){"use strict";o.r(t);var n=o("310f"),i=o.n(n);for(var s in n)"default"!==s&&function(e){o.d(t,e,(function(){return n[e]}))}(s);t["default"]=i.a}},[["0dec","common/runtime","common/vendor"]]]);