seequestion.js 7.5 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/seequestion/seequestion"],{"019a":function(t,e,n){"use strict";n.r(e);var o=n("4cc4"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},"20dd":function(t,e,n){"use strict";n.r(e);var o=n("64d5"),i=n("019a");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("3e1f"),n("7bc4");var r,c=n("f0c5"),u=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],r);e["default"]=u.exports},2166:function(t,e,n){"use strict";n.r(e);var o=n("593d"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},3661:function(t,e,n){},"3e1f":function(t,e,n){"use strict";var o=n("3661"),i=n.n(o);i.a},"4cc4":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n("59df")),i=a(n("b86c"));function a(t){return t&&t.__esModule?t:{default:t}}function r(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,a=!0,r=!1;return{s:function(){o=t[Symbol.iterator]()},n:function(){var t=o.next();return a=t.done,t},e:function(t){r=!0,i=t},f:function(){try{a||null==o.return||o.return()}finally{if(r)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 s={data:function(){return{finorgid:"",finid:"",item:"",detaildata:"",projectarr:[],index:0,projectid:"",fprjleader:"",fprjleadertwo:"",fname:"",showhide:"",qid:""}},onLoad:function(t){if(void 0!=t.projectid)this.qid=t.projectid,this.getquestionlist();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:{getquestionlist:function(){var e=this,n="project/Select_Question",i={qid:e.qid,userid:t.getStorageSync("userid"),role:t.getStorageSync("role"),fprojectid:""};console.log("8877665544",i),o.default.post(n,i,"get").then((function(t){console.log("问题列表",t),e.item=t.data[0]})).catch((function(t){console.log(t)}))},subquestion:function(){var e=this,n="project/Save_Replysubmit",i={userid:t.getStorageSync("userid"),qid:e.item.qid,role:t.getStorageSync("role"),fprojectid:e.item.fprojectid,fproblemstatus:e.item.fproblemstatus};console.log("8877665544",i),o.default.post(n,i,"get").then((function(e){console.log("提交回复",e),t.showToast({title:e.data[0].message,icon:"none"}),"提交成功"==e.data[0].message&&setTimeout((function(){t.navigateBack({checked:!0})}),1500)})).catch((function(t){console.log(t)}))},endquestion:function(){var e=this,n="project/Save_Replyclosejs",i={qid:e.item.qid,role:t.getStorageSync("role"),fprojectid:e.item.fprojectid,fproblemstatus:e.item.fproblemstatus,userid:t.getStorageSync("userid")};o.default.post(n,i,"get").then((function(e){console.log("终止回复回复",e),t.showToast({title:e.data[0].message,icon:"none"}),"提交成功"==e.data[0].message&&setTimeout((function(){t.navigateBack({checked:!0})}),1500)})).catch((function(t){console.log(t)}))},downloadfile:function(e){var n=this,i="project/Select_FileInfo",a={};o.default.post(i,a,"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),console.log(i),plus.runtime.openURL(i)})).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=r(t.projectarr);try{for(i.s();!(o=i.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){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=s}).call(this,n("543d")["default"])},"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,a=new Promise((function(a,r){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?a(t):r(t.data)},fail:function(t){console.log(t),r("网络出错"),wx.hideNavigationBarLoading()},complete:function(t){}})}));return a},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 a,r,c,u,s=n("f0c5"),l=Object(s["a"])(o["default"],a,r,!1,null,null,null,!1,c,u);e["default"]=l.exports},"5ec6":function(t,e,n){},"64d5":function(t,e,n){"use strict";var o,i=function(){var t=this,e=t.$createElement;t._self._c},a=[];n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}))},"7bc4":function(t,e,n){"use strict";var o=n("5ec6"),i=n.n(o);i.a},d72c:function(t,e,n){"use strict";(function(t){n("bdbd"),n("921b");o(n("66fd"));var e=o(n("20dd"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},d869:function(t,e,n){}},[["d72c","common/runtime","common/vendor"]]]);