concat.js
7.8 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/concat/concat"],{"024d":function(e,t,n){"use strict";n.r(t);var o=n("f7a7"),i=n.n(o);for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=i.a},"20b4":function(e,t,n){"use strict";var o,i=function(){var e=this,t=e.$createElement;e._self._c},a=[];n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}))},2166:function(e,t,n){"use strict";n.r(t);var o=n("593d"),i=n.n(o);for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=i.a},"4e90":function(e,t,n){"use strict";var o=n("d869"),i=n.n(o);i.a},5772:function(e,t,n){},"593d":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.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(t,n,o){var i=this,a=new Promise((function(a,r){var c=e.getStorageSync("token"),l={token:c||""};e.request({url:i.globalData.baseUrl+t,data:n,method:o,header:l,success:function(e){200==e.statusCode?a(e):r(e.data)},fail:function(e){console.log(e),r("网络出错"),wx.hideNavigationBarLoading()},complete:function(e){}})}));return a},globalData:{userInfo:null,baseUrl:"https://www.bjzha.net/api/"}};t.default=n}).call(this,n("543d")["default"])},"59df":function(e,t,n){"use strict";n.r(t);var o=n("2166");for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n("4e90");var a,r,c,l,f=n("f0c5"),u=Object(f["a"])(o["default"],a,r,!1,null,null,null,!1,c,l);t["default"]=u.exports},"5ad5":function(e,t,n){"use strict";var o=n("94cb"),i=n.n(o);i.a},"94cb":function(e,t,n){},"9c9b":function(e,t,n){"use strict";(function(e){n("bdbd"),n("921b");o(n("66fd"));var t=o(n("eb4c"));function o(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},d531:function(e,t,n){"use strict";var o=n("5772"),i=n.n(o);i.a},d869:function(e,t,n){},eb4c:function(e,t,n){"use strict";n.r(t);var o=n("20b4"),i=n("024d");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("d531"),n("5ad5");var r,c=n("f0c5"),l=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],r);t["default"]=l.exports},f7a7:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("59df")),i=a(n("b86c"));function a(e){return e&&e.__esModule?e:{default:e}}function r(e){if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=c(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},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=e[Symbol.iterator]()},n:function(){var e=o.next();return a=e.done,e},e:function(e){r=!0,i=e},f:function(){try{a||null==o.return||o.return()}finally{if(r)throw i}}}}function c(e,t){if(e){if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var f={data:function(){return{finorgid:"",finid:"",item:"",detaildata:"",projectarr:[],index:0,projectid:"",fprjleader:"",fprjleadertwo:"",fname:"",showhide:"",receive:-1}},onLoad:function(e){console.log(e.item),console.log(i.default.change(12345)),this.item=JSON.parse(e.item),console.log(this.item);var t=this.item;t.ftoauditamt=i.default.change(t.ftoauditamt),this.item=t,"已确认"==this.item.fservicestatus?this.receive=0:this.receive=1,this.getprojectkind(),console.log(i.default.unction(45622111))},onShow:function(){this.showhide=e.getStorageSync("showhide")},methods:{isreceive:function(e){console.log(e),console.log(e.currentTarget.dataset.id),this.receive=e.currentTarget.dataset.id,console.log(this.receive)},downloadconcat:function(t){var n=this;console.log(item);var i=item.fauditfile,a=item.fauditfile_txt,r="project/Select_FileInfo",c={};o.default.post(r,c,"get").then((function(t){console.log("下载文件",t),n.singgleurl=t.data[0].file;var o=t.data[0].file+"?fileId="+i;console.log(wx.env.USER_DATA_PATH+"/"+a),e.downloadFile({url:o,header:{},success:function(e){},fail:function(e){},complete:function(t){console.log(t);var n=wx.getFileSystemManager();200===t.statusCode&&(n.saveFile({tempFilePath:t.tempFilePath,filePath:wx.env.USER_DATA_PATH+"/"+a,success:function(e){console.log(e)}}),e.openDocument({filePath:wx.env.USER_DATA_PATH+"/"+a,success:function(e){console.log("打开文档成功")},fail:function(){console.log("打开失败")}}))}})})).catch((function(e){console.log(e)}))},downloadfa:function(t){var n=this;console.log(item);var i=item.ffapiaofile,a=item.ffapiaofile_txt,r="project/Select_FileInfo",c={};o.default.post(r,c,"get").then((function(t){console.log("下载文件",t),n.singgleurl=t.data[0].file;var o=t.data[0].file+"?fileId="+i;console.log(wx.env.USER_DATA_PATH+"/"+a),e.downloadFile({url:o,header:{},success:function(e){},fail:function(e){},complete:function(t){console.log(t);var n=wx.getFileSystemManager();200===t.statusCode&&(n.saveFile({tempFilePath:t.tempFilePath,filePath:wx.env.USER_DATA_PATH+"/"+a,success:function(e){console.log(e)}}),e.openDocument({filePath:wx.env.USER_DATA_PATH+"/"+a,success:function(e){console.log("打开文档成功")},fail:function(){console.log("打开失败")}}))}})})).catch((function(e){console.log(e)}))},detail:function(){var e=this,t="project/Get_Disfteam",n={finid:this.finorgid,fprojectid:this.item.projectid};o.default.post(t,n,"get").then((function(t){console.log("分配信息",t),e.detaildata=t.data[0]})).catch((function(e){console.log(e)}))},getprojectkind:function(){var e=this,t=this,n="project/Get_Fteam";o.default.post(n,"","get").then((function(n){if(console.log("获取项目组",n),e.projectarr=n.data,"未分配"==t.item.ftaskprocess)e.fprjleader="",e.fprjleadertwo="",e.fname="";else{var o,i=r(e.projectarr);try{for(i.s();!(o=i.n()).done;){var a=o.value;a.fid==t.item.finorgid&&(e.fprjleader=a.fprjleader,e.fprjleadertwo=a.fprjleadertwo,e.fname=a.fname,e.finorgid=a.fid)}}catch(c){i.e(c)}finally{i.f()}e.detail()}})).catch((function(e){console.log(e)}))},bindPickerChange:function(e){console.log("picker发送选择改变,携带值为",e.target.value),this.index=e.target.value,this.fname=this.projectarr[e.target.value].fname,this.finorgid=this.projectarr[e.target.value].fid,this.fprjleader=this.projectarr[e.target.value].fprjleader,this.fprjleadertwo=this.projectarr[e.target.value].fprjleadertwo,this.detail()},submit:function(){var t=this;if(-1==t.receive)return e.showToast({title:"选择邮寄情况",icon:"none"}),!1;var n="project/Save_Surveyconfirm",i={userid:e.getStorageSync("userid"),role:e.getStorageSync("role"),fprojectid:t.item.fprojectid,fdisid:t.item.fdisid,freporttatus:t.item.freporttatus,mailstatus:t.receive};console.log("8877665544",i),o.default.post(n,i,"get").then((function(t){console.log(t),"提交成功"==t.data[0].message?(e.showToast({title:"提交成功",icon:"none"}),setTimeout((function(){e.navigateBack({checked:!0})}),1e3)):(e.showToast({title:t.data[0].message,icon:"none"}),setTimeout((function(){e.navigateBack({checked:!0})}),1e3))})).catch((function(e){console.log(e)}))},changestate:function(){var t=this,n="project/Get_Fteam";e.getStorageSync("userid"),t.item.disid;o.default.post(n,"","get").then((function(e){console.log("修改状态",e)})).catch((function(e){console.log(e)}))}}};t.default=f}).call(this,n("543d")["default"])}},[["9c9b","common/runtime","common/vendor"]]]);