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.3 KiB

(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.stringify(this.companyName)});break;case 1:0==n.auditMark&&(this.seledata=n,this.iShow.examine=!0);break;case 2:t.navigateTo({url:"../addTask/addTask"});break}},seleFn:function(t){this.getData.currentPage=1,""===t.index?(this.getData.params.effectiveMode=""===this.getData.params.taskExecutStatus?""===this.getData.params.effectiveMode?0:1===this.getData.params.effectiveMode?"":1:"",this.getData.params.taskExecutStatus=""):(this.getData.params.taskExecutStatus=t.index,this.getData.params.effectiveMode=""),this.navigation[0].text=""===this.getData.params.effectiveMode?"全部":0===this.getData.params.effectiveMode?"即时":"预约",this.rotateFn(),this.getList()},onClick:function(){this.ejectOpen=!this.ejectOpen,console.log("点击图标事件")}}};e.default=r}).call(this,n("543d")["default"])},"621f":function(t,e,n){"use strict";n.r(e);var a=n("52f2"),i=n.n(a);for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);e["default"]=i.a},"7b80":function(t,e,n){},a4d1:function(t,e,n){"use strict";n.r(e);var a=n("cc6c"),i=n("621f");for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);n("e526");var o,c=n("f0c5"),u=Object(c["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],o);e["default"]=u.exports},cc6c:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return a}));var a={uniEasyinput:function(){return n.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(n.bind(null,"fb2e"))},uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.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,n,a){var i=arguments[arguments.length-1].currentTarget.dataset,s=i.eventParams||i["event-params"];n=s.item,a=s.index;t.seleFn(n),t.seleindex=a})},s=[]},e428:function(t,e,n){"use strict";(function(t){n("84da");a(n("66fd"));var e=a(n("a4d1"));function a(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},e526:function(t,e,n){"use strict";var a=n("7b80"),i=n.n(a);i.a}},[["e428","common/runtime","common/vendor"]]]);