You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
6.0 KiB
1 lines
6.0 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["oilDistribution/index/index"],{"2e9d":function(t,e,a){},"4ea8":function(t,e,a){"use strict";a.r(e);var n=a("c78f"),i=a.n(n);for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"795d":function(t,e,a){"use strict";(function(t){a("84da");n(a("66fd"));var e=n(a("dafd"));function n(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=a,t(e.default)}).call(this,a("543d")["createPage"])},"970e":function(t,e,a){"use strict";var n=a("2e9d"),i=a.n(n);i.a},c78f:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("2d56"));function i(t){return t&&t.__esModule?t:{default:t}}var o=function(){a.e("components/topbar").then(function(){return resolve(a("6fd4"))}.bind(null,a)).catch(a.oe)},s=function(){a.e("components/customPopup").then(function(){return resolve(a("34d2"))}.bind(null,a)).catch(a.oe)},u={components:{topBar:o,popup:s},data:function(){return{animationData:null,seledata:{},seachValue:"",butten:{colse:"不通过",confirm:"通过",coloseBg:"#EC4645",coloseColor:"#FFFFFF",confirmBg:"",confirmColor:""},iShow:{examine:!1},companyName:"",ejectOpen:!1,letfText:"企业",candidate:["企业","个人"],getData:{pageSize:15,currentPage:1,params:{disType:"",companyName:"",nickName:"",auditMark:2},sorted:{createTime:"desc"},columns:[],totalCount:1,totalPage:1},styles:{},seleindex:0,navigation:[{text:"全部",index:""},{text:"分油",index:1},{text:"圈回",index:-1}],listData:[]}},onPullDownRefresh:function(){this.getData.currentPage=1,this.getList(),console.log("下拉的生命周期")},onLoad:function(){this.styles=t.getMenuButtonBoundingClientRect(),t.$on("company",(function(t){var e=getCurrentPages(),a=-1!=e[e.length-2].$page.fullPath.indexOf("?")?e[e.length-2].$page.fullPath.split("?")[0].split("/")[e[e.length-2].$page.fullPath.split("?")[0].split("/").length-1]:e[e.length-2].$page.fullPath.split("/")[e[e.length-2].$page.fullPath.split("/").length-1];console.log(e,a,"获取当前打开过的页面路由数组")}))},onShow:function(){this.getList()},methods:{animationFns:function(){console.log("恢复动画");var e=t.createAnimation({duration:0,timingFunction:"ease"});this.animation=e,this.animation.rotate(0).step(),this.animationData=this.animation.export()},rotateFn:function(){var e=this,a=t.createAnimation({duration:1e3,timingFunction:"ease"});this.animation=a,this.animation.rotate(360).step(),this.animationData=this.animation.export(),setTimeout((function(){e.animationFns()}),1e3)},confirmFn:function(){var e=this,a={id:this.seledata.id,auditMark:1,auditSource:"OMS-MINIAPP"};n.default.auditOms(a).then((function(a){2e4===a.code&&(t.showToast({title:"审核成功",icon:"none"}),e.iShow.examine=!1,e.seledata.auditMark=1)})),console.log("确定回掉")},closeFn:function(){var e=this,a={id:this.seledata.id,auditMark:-1,auditSource:"OMS-MINIAPP"};n.default.auditOms(a).then((function(a){2e4===a.code&&(t.showToast({title:"审核成功",icon:"none"}),e.iShow.examine=!1,e.seledata.auditMark=-1)})),console.log("失败回调")},ejectFn:function(t){this.letfText=t,console.log(t)},scrolltolower:function(){this.getData.currentPage+=1,console.log("触底了"),this.getList()},seachFn:function(){"企业"==this.letfText?(this.getData.params.nickName="",this.getData.params.companyName=this.seachValue):(this.getData.params.nickName=this.seachValue,this.getData.params.companyName=""),this.getData.currentPage=1,this.getList()},getList:function(){var e=this;n.default.getByPageOms(this.getData).then((function(a){2e4===a.code&&(0==a.data.list.length&&t.showToast({title:"没有数据了哦",icon:"none"}),1===e.getData.currentPage?e.listData=a.data.list:e.listData=e.listData.concat(a.data.list))}))},jump:function(e,a){switch(e){case-1:t.navigateBack();break;case 0:t.navigateTo({url:"../company/company?jsData="+JSON.stringify(this.companyName)});break;case 1:0==a.auditMark&&(this.seledata=a,this.iShow.examine=!0);break;case 2:t.getStorageSync("user").authList.includes("distributeReverse:info:add")?t.redirectTo({url:"../distribute/distribute",fail:function(t){console.log(e)}}):t.showToast({title:"暂无权限请联系管理员",icon:"none"});break}},seleFn:function(t){if(this.getData.currentPage=1,""==t.index){switch(this.getData.params.auditMark){case 2:this.getData.params.auditMark=0,this.navigation[0].text="等待";break;case 0:this.getData.params.auditMark=1,this.navigation[0].text="成功";break;case 1:this.getData.params.auditMark=-1,this.navigation[0].text="失败";break;case-1:this.getData.params.auditMark=2,this.navigation[0].text="全部";break}""!==this.getData.params.disType&&(this.getData.params.disType="",this.getData.params.auditMark=2,this.navigation[0].text="全部"),this.rotateFn()}else this.getData.params.auditMark=2,this.navigation[0].text="全部",this.getData.params.disType=t.index;this.getList()},onClick:function(){this.ejectOpen=!this.ejectOpen,console.log("点击图标事件")}}};e.default=u}).call(this,a("543d")["default"])},dafd:function(t,e,a){"use strict";a.r(e);var n=a("f7be"),i=a("4ea8");for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("970e");var s,u=a("f0c5"),c=Object(u["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],s);e["default"]=c.exports},f7be:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n}));var n={uniEasyinput:function(){return a.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(a.bind(null,"fb2e"))},uniIcons:function(){return Promise.all([a.e("common/vendor"),a.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(a.bind(null,"65b9"))}},i=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.ejectOpen=!1},t.e1=function(e,a,n){var i=arguments[arguments.length-1].currentTarget.dataset,o=i.eventParams||i["event-params"];a=o.item,n=o.index;t.seleFn(a),t.seleindex=n})},o=[]}},[["795d","common/runtime","common/vendor"]]]); |