examinejingban.js
6.7 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/examinejingban/examinejingban"],{"011b":function(t,e,n){"use strict";(function(t){n("a237"),n("921b");o(n("66fd"));var e=o(n("d546"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"072c":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}))},"0aa0":function(t,e,n){"use strict";var o=n("1604"),i=n.n(o);i.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 i=this,r=new Promise((function(r,a){var c=t.getStorageSync("token"),u={token:c||""};t.request({url:i.globalData.baseUrl+e,data:n,method:o,header:u,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"])},1604:function(t,e,n){},"1f18":function(t,e,n){"use strict";n.r(e);var o=n("0c9c"),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},2004:function(t,e,n){"use strict";var o=n("f8e2"),i=n.n(o);i.a},"2b29":function(t,e,n){"use strict";n.r(e);var o=n("4545"),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},"30b9":function(t,e,n){"use strict";n.r(e);var o=n("1f18");for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("0aa0");var r,a,c,u,f=n("f0c5"),l=Object(f["a"])(o["default"],r,a,!1,null,null,null,!1,c,u);e["default"]=l.exports},4545:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n("30b9")),i=r(n("079c"));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 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 f={data:function(){return{finorgid:"",finid:"",item:"",detaildata:"",projectarr:[],index:0,projectid:"",fprjleader:"",fprjleadertwo:"",fname:"",showhide:"",receive:-1,shenhe:"审核通过"}},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.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;if(null==e)return t.showToast({title:"文件不存在",icon:"none"}),!1;var i="project/Select_FileInfo",r={};o.default.post(i,r,"get").then((function(o){console.log("下载文件",o),n.singgleurl=o.data[0].file;var i=o.data[0].file+"?fileId="+e;t.setStorageSync("url",i),plus.runtime.openURL(i)})).catch((function(t){console.log(t)}))},entershenhe:function(t){this.shenhe=t.detail.value},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/Submit_Personincharge",i={fprjleaderoneid:e.item.fprjleaderoneid,fprjphonetwoid:e.item.fprjleadertwoid,userid:t.getStorageSync("userid"),role:t.getStorageSync("role"),fprojectid:e.item.fprojectid,fdisid:e.item.fdisid,fdirstatus:e.item.fdirstatus,ffinauditstatus:e.item.ffinauditstatus,fagree:e.receive,fmemo:e.shenhe,fintorgid:e.item.fintorgid};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"})})).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=f}).call(this,n("543d")["default"])},"7ded":function(t,e,n){"use strict";var o=n("8043"),i=n.n(o);i.a},8043:function(t,e,n){},d546:function(t,e,n){"use strict";n.r(e);var o=n("072c"),i=n("2b29");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("2004"),n("7ded");var a,c=n("f0c5"),u=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],a);e["default"]=u.exports},f8e2:function(t,e,n){}},[["011b","common/runtime","common/vendor"]]]);