reviewreport.js
6.5 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/reviewreport/reviewreport"],{"0aa0":function(t,e,n){"use strict";var o=n("1604"),r=n.n(o);r.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 r=this,a=new Promise((function(a,i){var c=t.getStorageSync("token"),u={token:c||""};t.request({url:r.globalData.baseUrl+e,data:n,method:o,header:u,success:function(t){200==t.statusCode?a(t):i(t.data)},fail:function(t){console.log(t),i("网络出错"),wx.hideNavigationBarLoading()},complete:function(t){}})}));return a},globalData:{userInfo:null,baseUrl:"https://www.bjzha.net/api/"}};e.default=n}).call(this,n("543d")["default"])},1604:function(t,e,n){},"187a":function(t,e,n){"use strict";var o,r=function(){var t=this,e=t.$createElement;t._self._c},a=[];n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}))},"1f18":function(t,e,n){"use strict";n.r(e);var o=n("0c9c"),r=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=r.a},2972:function(t,e,n){"use strict";var o=n("b7a5"),r=n.n(o);r.a},"30b9":function(t,e,n){"use strict";n.r(e);var o=n("1f18");for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("0aa0");var a,i,c,u,l=n("f0c5"),f=Object(l["a"])(o["default"],a,i,!1,null,null,null,!1,c,u);e["default"]=f.exports},"39e0":function(t,e,n){},"5b77":function(t,e,n){"use strict";var o=n("39e0"),r=n.n(o);r.a},"80bc":function(t,e,n){"use strict";n.r(e);var o=n("8c91"),r=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=r.a},"8c91":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n("30b9")),r=a(n("079c"));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=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,r,a=!0,i=!1;return{s:function(){o=t[Symbol.iterator]()},n:function(){var t=o.next();return a=t.done,t},e:function(t){i=!0,r=t},f:function(){try{a||null==o.return||o.return()}finally{if(i)throw r}}}}function c(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 l={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=r.default.change(e.ftoauditamt),this.item=e,this.getprojectkind(),console.log(r.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;if(null==e)return t.showToast({title:"文件不存在",icon:"none"}),!1;var r="project/Select_FileInfo",a={};o.default.post(r,a,"get").then((function(o){console.log("下载文件",o),n.singgleurl=o.data[0].file;var r=o.data[0].file+"?fileId="+e;t.setStorageSync("url",r),plus.runtime.openURL(r)})).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,r=i(t.projectarr);try{for(r.s();!(o=r.n()).done;){var a=o.value;a.fid==e.item.finorgid&&(t.fprjleader=a.fprjleader,t.fprjleadertwo=a.fprjleadertwo,t.fname=a.fname,t.finorgid=a.fid)}}catch(c){r.e(c)}finally{r.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",r={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",r),o.default.post(n,r,"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"})})).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=l}).call(this,n("543d")["default"])},b7a5:function(t,e,n){},e1ba:function(t,e,n){"use strict";n.r(e);var o=n("187a"),r=n("80bc");for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("2972"),n("5b77");var i,c=n("f0c5"),u=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],i);e["default"]=u.exports},e4bd:function(t,e,n){"use strict";(function(t){n("a237"),n("921b");o(n("66fd"));var e=o(n("e1ba"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])}},[["e4bd","common/runtime","common/vendor"]]]);