|
|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["priceAdjustmentTask/page/index"],{"52f2":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("3f36"));i(n("2d56"));function i(t){return t&&t.__esModule?t:{default:t}}var s=function(){n.e("components/topbar").then(function(){return resolve(n("6fd4"))}.bind(null,n)).catch(n.oe)},o=function(){n.e("components/customPopup").then(function(){return resolve(n("34d2"))}.bind(null,n)).catch(n.oe)},c=function(){n.e("priceAdjustmentTask/components/listItem").then(function(){return resolve(n("8b8d"))}.bind(null,n)).catch(n.oe)},u=function(){n.e("priceAdjustmentTask/components/details").then(function(){return resolve(n("92ae"))}.bind(null,n)).catch(n.oe)},r={components:{topBar:s,popup:o,listItem:c,detailse:u},data:function(){return{butten:{colse:"撤回",confirm:"返回",coloseBg:"#EC4645",coloseColor:"#FFFFFF",confirmBg:"",confirmColor:""},details:{},modifyShow:{img:!1,footer:!0},animationData:null,seledata:{},seachValue:"",isShow:{examine:!1,refresherTriggered:!1},companyName:"",ejectOpen:!1,letfText:"油站",candidate:["油站","创建人"],getData:{pageSize:15,currentPage:1,params:{siteParam:"",taskExecutStatus:"",createParam:"",effectiveMode:""}},styles:{},seleindex:0,navigation:[{text:"全部",index:""},{text:"待执行",index:0},{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(),n=-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,n,"获取当前打开过的页面路由数组")}))},onShow:function(){this.getList()},methods:{refresherrefresh:function(t){this.getData.currentPage=1,this.isShow.refresherTriggered=!0,this.getList()},isfn:function(t){this.details=t,this.butten.coloseBg=0!==Number(this.details.taskExecutStatus)?"#bbbbbb":"#EC4645",this.$nextTick((function(){this.isShow.examine=!0}))},closeFn:function(){var e=this;0===Number(this.details.taskExecutStatus)&&(t.showModal({title:"撤回",content:"是否撤销该调价任务?",success:function(t){t.confirm?a.default.thePriceAdjustmentTaskIsWithdrawn(e.details.adjustTaskId).then((function(t){2e4===t.code&&(e.isShow.examine=!1,e.listData.forEach((function(t,n){t.adjustTaskId==e.details.adjustTaskId&&(t.taskExecutStatus=-2)})))})):t.cancel&&console.log("用户点击取消")}}),console.log("关闭"))},confirmFn:function(){this.isShow.examine=!1,console.log("确定")},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,n=t.createAnimation({duration:1e3,timingFunction:"ease"});this.animation=n,this.animation.rotate(360).step(),this.animationData=this.animation.export(),setTimeout((function(){e.animationFns()}),1e3)},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.createParam="",this.getData.params.siteParam=this.seachValue):(this.getData.params.createParam=this.seachValue,this.getData.params.siteParam=""),this.getData.currentPage=1,this.getList()},getList:function(){var e=this;a.default.queryThePriceAdjustmentTaskList(this.getData).then((function(n){e.isShow.refresherTriggered=!1,2e4===n.code&&(0==n.data.list.length&&t.showToast({title:"没有数据了哦",icon:"none"}),1===e.getData.currentPage?e.listData=n.data.list:e.listData=e.listData.concat(n.data.list))}))},jump:function(e,n){switch(e){case-1:t.navigateBack();break;case 0:t.navigateTo({url:"../company/company?jsData="+JSON.
|