zixunfenpei.js
6.1 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/zixunfenpei/zixunfenpei"],{"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"),f={token:c||""};t.request({url:i.globalData.baseUrl+e,data:n,method:o,header:f,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},"2db3":function(t,e,n){"use strict";(function(t){n("a237"),n("921b");o(n("66fd"));var e=o(n("68e6"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"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,f,u=n("f0c5"),l=Object(u["a"])(o["default"],r,a,!1,null,null,null,!1,c,f);e["default"]=l.exports},"329c":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}))},"68e6":function(t,e,n){"use strict";n.r(e);var o=n("329c"),i=n("810c");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("e23c");var a,c=n("f0c5"),f=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],a);e["default"]=f.exports},"6e74":function(t,e,n){},"810c":function(t,e,n){"use strict";n.r(e);var o=n("bc89"),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},bc89: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 f(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)?f(t,e):void 0}}function f(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:"",fprojectid:""}},onLoad:function(t){if(void 0!=t.projectid)this.fprojectid=t.projectid,this.getdanweilist();else{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()},onShow:function(){this.showhide=t.getStorageSync("showhide")},methods:{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)}))},getdanweilist:function(){var e=this,n="project/Get_Distribution",i={fprojectid:e.fprojectid,fuserid:t.getStorageSync("userid")};o.default.post(n,i,"get").then((function(t){console.log("项目组分配kkkk",t),e.item=t.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(""==e.fname)return t.showToast({title:"请选择项目组",icon:"none"}),!1;var n="project/Submit_Disfteam",i={ftaskprocess:e.item.ftaskprocess,fuserid:t.getStorageSync("userid"),fteamid:e.finorgid,fdisid:e.item.disid,fprojectid:e.item.fprojectid};console.log("8877665544",i),o.default.post(n,i,"get").then((function(n){console.log(n),"成功"==n.data[0].message?t.showToast({title:"提交成功",icon:"none"}):t.showToast({title:n.data[0].message,icon:"none"}),e.changestate(),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"])},e23c:function(t,e,n){"use strict";var o=n("6e74"),i=n.n(o);i.a}},[["2db3","common/runtime","common/vendor"]]]);