reviewreport.js 7.1 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/reviewreport/reviewreport"],{"0cb9":function(t,e,n){"use strict";var o,i=function(){var t=this,e=t.$createElement;t._self._c},r=[];n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}))},"10d1":function(t,e,n){"use strict";n.r(e);var o=n("0cb9"),i=n("eacb");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("45da"),n("2480");var a,c=n("f0c5"),l=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],a);e["default"]=l.exports},2166:function(t,e,n){"use strict";n.r(e);var o=n("593d"),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},"23b2":function(t,e,n){},2480:function(t,e,n){"use strict";var o=n("6d33"),i=n.n(o);i.a},"33a0":function(t,e,n){"use strict";(function(t){n("bdbd"),n("921b");o(n("66fd"));var e=o(n("10d1"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"45da":function(t,e,n){"use strict";var o=n("23b2"),i=n.n(o);i.a},"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,r=new Promise((function(r,a){var c=t.getStorageSync("token"),l={token:c||""};t.request({url:i.globalData.baseUrl+e,data:n,method:o,header:l,success:function(t){200==t.statusCode?r(t):a(t.data)},fail:function(t){console.log(t),a("网络出错"),wx.hideNavigationBarLoading()},complete:function(t){}})}));return r},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 r,a,c,l,u=n("f0c5"),f=Object(u["a"])(o["default"],r,a,!1,null,null,null,!1,c,l);e["default"]=f.exports},"6d33":function(t,e,n){},"8b82":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n("59df")),i=r(n("b86c"));function r(t){return t&&t.__esModule?t:{default:t}}function a(t){if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=c(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,r=!0,a=!1;return{s:function(){o=t[Symbol.iterator]()},n:function(){var t=o.next();return r=t.done,t},e:function(t){a=!0,i=t},f:function(){try{r||null==o.return||o.return()}finally{if(a)throw i}}}}function c(t,e){if(t){if("string"===typeof t)return l(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)?l(t,e):void 0}}function l(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{finorgid:"",finid:"",item:"",detaildata:"",projectarr:[],index:0,projectid:"",fprjleader:"",fprjleadertwo:"",fname:"",showhide:"",receive:-1}},onLoad:function(t){console.log(t.item),this.item=JSON.parse(t.item),console.log("评审报告",this.item);var e=this.item;e.ftoauditamt=i.default.change(e.ftoauditamt),this.item=e,"已确认"==this.item.freporttatus?this.receive=0:this.receive=1,this.getprojectkind(),console.log(i.default.unction(45622111))},onShow:function(){this.showhide=t.getStorageSync("showhide")},methods:{isreceive:function(t){console.log(t),console.log(t.currentTarget.dataset.id),this.receive=t.currentTarget.dataset.id,console.log(this.receive)},downloadfile:function(e){var n=this;console.log(e);e.fauditrptfile;var i=e.fauditrptfile_txt,r="project/Select_FileInfo",a={};o.default.post(r,a,"get").then((function(e){console.log("下载文件",e),n.singgleurl=e.data[0].file;e.data[0].file;var o="https://39.105.61.115:8111/FileInfo/GetFile?fileId=4759b12f38ba6bdb71586065c64c42c5";console.log(wx.env.USER_DATA_PATH+"/"+i),t.downloadFile({url:o,header:{},success:function(t){},fail:function(t){},complete:function(e){console.log(e);var n=wx.getFileSystemManager();200===e.statusCode&&(n.saveFile({tempFilePath:e.tempFilePath,filePath:wx.env.USER_DATA_PATH+"/wenjian.doc",success:function(t){console.log(t)}}),t.openDocument({filePath:wx.env.USER_DATA_PATH+"/wenjian.doc",success:function(t){console.log("打开文档成功")},fail:function(){console.log("打开失败")}}))}})})).catch((function(t){console.log(t)}))},detail:function(){var t=this,e="project/Get_Disfteam",n={finid:this.finorgid,fprojectid:this.item.projectid};o.default.post(e,n,"get").then((function(e){console.log("分配信息",e),t.detaildata=e.data[0]})).catch((function(t){console.log(t)}))},getprojectkind:function(){var t=this,e=this,n="project/Get_Fteam";o.default.post(n,"","get").then((function(n){if(console.log("获取项目组",n),t.projectarr=n.data,"未分配"==e.item.ftaskprocess)t.fprjleader="",t.fprjleadertwo="",t.fname="";else{var o,i=a(t.projectarr);try{for(i.s();!(o=i.n()).done;){var r=o.value;r.fid==e.item.finorgid&&(t.fprjleader=r.fprjleader,t.fprjleadertwo=r.fprjleadertwo,t.fname=r.fname,t.finorgid=r.fid)}}catch(c){i.e(c)}finally{i.f()}t.detail()}})).catch((function(t){console.log(t)}))},bindPickerChange:function(t){console.log("picker发送选择改变,携带值为",t.target.value),this.index=t.target.value,this.fname=this.projectarr[t.target.value].fname,this.finorgid=this.projectarr[t.target.value].fid,this.fprjleader=this.projectarr[t.target.value].fprjleader,this.fprjleadertwo=this.projectarr[t.target.value].fprjleadertwo,this.detail()},submit:function(){var e=this;if(-1==e.receive)return t.showToast({title:"请选择邮寄情况",icon:"none"}),!1;var n="project/Save_Rptconfirm",i={userid:t.getStorageSync("userid"),role:t.getStorageSync("role"),fprojectid:e.item.fprojectid,fdisid:e.item.fdisid,fservicestatus:e.item.fservicestatus,mailstatus:e.receive};console.log("8877665544",i),o.default.post(n,i,"get").then((function(e){console.log(e),"提交成功"==e.data[0].message?(t.showToast({title:"提交成功",icon:"none"}),setTimeout((function(){t.navigateBack({checked:!0})}),1e3)):(t.showToast({title:e.data[0].message,icon:"none"}),setTimeout((function(){t.navigateBack({checked:!0})}),1e3))})).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){},eacb:function(t,e,n){"use strict";n.r(e);var o=n("8b82"),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a}},[["33a0","common/runtime","common/vendor"]]]);