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
9.1 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["priceAdjustment/page/index/index"],{"1c0d":function(e,t,n){},2250:function(e,t,n){},"271a":function(e,t,n){"use strict";n.r(t);var i=n("30f3"),a=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=a.a},"30f3":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;i(n("3415"));function i(e){return e&&e.__esModule?e:{default:e}}var a={props:{seleData:{type:Object,default:function(){return null}}},data:function(){return{params:{year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!1},newSeleData:null,show:!1,disabled:!0,butten:{leftButten:{bg:"",color:"",text:"撤回"},rightButten:{bg:"",color:"",text:"修改价格"}}}},created:function(){this.initFn()},filters:{applyStatus:function(e){switch(Number(e)){case 1:return"审核通过";case 2:return"等待执行";case 3:return"执行成功";case 0:return"等待审核";case-1:return"审核失败";case-2:return"已撤回";case-3:return"执行失败";case-4:return"已撤销"}}},methods:{inputFn:function(t){console.log(this.newSeleData[t]),-1!=this.newSeleData[t].indexOf(".")&&this.newSeleData[t].split(".")[1].length>2&&(e.showToast({title:"最多保留小数点后两位",icon:"none"}),this.$nextTick((function(){this.newSeleData[t]=Number(this.newSeleData[t]).toFixed(2)})))},lefnFn:function(){"恢复"==this.butten.leftButten.text?(this.disabled=!0,this.butten.rightButten.text="修改价格",this.butten.leftButten.text="撤回",this.newSeleData=JSON.parse(JSON.stringify(this.seleData))):(e.showToast({title:"撤回了",icon:"success"}),this.$emit("reject",{id:this.newSeleData.id}))},rightFn:function(){"修改价格"==this.butten.rightButten.text?(this.disabled=!1,this.butten.rightButten.text="重新提交",this.butten.leftButten.text="恢复"):(this.newSeleData.updateSource="OMS-MINIAPP",this.$emit("postFn",this.newSeleData),e.showToast({title:"提交了",icon:"success"}))},initFn:function(){this.newSeleData=JSON.parse(JSON.stringify(this.seleData))},dateConfirm:function(e){this.newSeleData.subEntryTime="".concat(e.year,"-").concat(e.day,"-").concat(e.month," ").concat(e.hour,":").concat(e.minute),console.log(e)}}};t.default=a}).call(this,n("543d")["default"])},"318e":function(e,t,n){"use strict";n.r(t);var i=n("b622"),a=n("271a");for(var r in a)"default"!==r&&function(e){n.d(t,e,(function(){return a[e]}))}(r);n("4d57");var o,u=n("f0c5"),s=Object(u["a"])(a["default"],i["b"],i["c"],!1,null,"36a621e3",null,!1,i["a"],o);t["default"]=s.exports},"4d57":function(e,t,n){"use strict";var i=n("1c0d"),a=n.n(i);a.a},"4e8c":function(e,t,n){"use strict";var i=n("2250"),a=n.n(i);a.a},6098:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var i={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"))}},a=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.list,(function(t,n){var i=e.__get_orig(t),a=Number(t.effectiveMode),r=Number(t.effectiveMode),o=Number(t.marketPrice).toFixed(2),u=Number(t.marketPrice),s=Number(t.oldMarketPrice),c=Number(t.marketPrice),l=Number(t.oldMarketPrice),f=Number(t.oldMarketPrice).toFixed(2),d=Number(t.sitePrice).toFixed(2),m=Number(t.sitePrice),h=Number(t.oldSitePrice),p=Number(t.sitePrice),g=Number(t.oldSitePrice),b=Number(t.oldSitePrice).toFixed(2),S=e.colorFn(t),v=e._f("applyStatus")(t.applyStatus);return{$orig:i,m0:a,m1:r,g0:o,m2:u,m3:s,m4:c,m5:l,g1:f,g2:d,m6:m,m7:h,m8:p,m9:g,g3:b,m10:S,f0:v}})));e._isMounted||(e.e0=function(t){e.getData.currentPage=1,e.getList()},e.e1=function(t,n,i){var a=arguments[arguments.length-1].currentTarget.dataset,r=a.eventParams||a["event-params"];n=r.item,i=r.index;e.seleFn(n),e.seleindex=i},e.e2=function(t){e.isShow.modify=!1}),e.$mp.data=Object.assign({},{$root:{l0:n}})},r=[]},"6dc9":function(e,t,n){"use strict";(function(e){n("84da");i(n("66fd"));var t=i(n("a5da"));function i(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},a5da:function(e,t,n){"use strict";n.r(t);var i=n("6098"),a=n("bdb8");for(var r in a)"default"!==r&&function(e){n.d(t,e,(function(){return a[e]}))}(r);n("4e8c");var o,u=n("f0c5"),s=Object(u["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],o);t["default"]=s.exports},b448:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n("318e")),a=o(n("4081")),r=o(n("3415"));function o(e){return e&&e.__esModule?e:{default:e}}var u=function(){n.e("components/scroll").then(function(){return resolve(n("987b"))}.bind(null,n)).catch(n.oe)},s={components:{scroll:u,modify:i.default},data:function(){return{seleData:null,list:[],animationData:null,seleindex:"0",isShow:{modify:!1,refresherTriggered:!1},modifyShow:{img:!1,footer:!1},butten:{colse:"撤回",confirm:"修改价格",coloseBg:"#EC4645",coloseColor:"#FFFFFF",confirmBg:"",confirmColor:""},getData:{pageSize:15,currentPage:1,params:{applyStatus:"",siteName:"",effectiveMode:""}},navigation:[{text:"全部",index:""},{text:"待审核",index:"0"},{text:"待执行",index:"1"}]}},onShow:function(){this.getList()},onLoad:function(){},filters:{applyStatus:function(e){switch(Number(e)){case 1:return"审核通过";case 2:return"等待执行";case 3:return"执行成功";case 0:return"等待审核";case-1:return"审核失败";case-2:return"已撤回";case-3:return"执行失败";case-4:return"已撤销"}}},methods:{refresherrefresh:function(e){this.isShow.refresherTriggered=!0,this.getList()},reject:function(t){var n=this;a.default.withdrawalOfPriceAdjustment(t).then((function(t){2e4===t.code&&(e.showToast({title:"撤回成功",icon:"success"}),setTimeout((function(){n.isShow.modify=!1,n.getList()}),500))}))},postFn:function(t){var n=this;a.default.update(t).then((function(t){2e4===t.code&&(e.showToast({title:"提交成功",icon:"success"}),setTimeout((function(){n.isShow.modify=!1,n.getList()}),500))}))},colorFn:function(e){switch(Number(e.applyStatus)){case 1:return"#17A00E";case 2:return"#17A00E";case 0:return"#EBC153";case-1:return"#EC4645";case-2:return"#EC4645"}},select:function(e){this.isShow.modify=!0,r.default.numberSetting(e,["marketPrice","oldMarketPrice","oldSitePrice","sitePrice"],2),this.seleData=e},seleFn:function(e){if(""==e.index){if(""!==this.getData.params.applyStatus)this.navigation[0].text="全部",this.getData.params.effectiveMode="",this.getData.params.applyStatus="";else switch(e.text){case"全部":this.navigation[0].text="立即",this.getData.params.effectiveMode=0;break;case"立即":this.navigation[0].text="预约",this.getData.params.effectiveMode=1;break;case"预约":this.navigation[0].text="全部",this.getData.params.effectiveMode="";break}this.getData.params.applyStatus=""}else this.navigation[0].text="全部",this.getData.params.effectiveMode="",this.getData.params.applyStatus=e.index;this.getData.currentPage=1,this.rotateFn(),this.getList()},getList:function(){var t=this,n=JSON.parse(JSON.stringify(this.getData));a.default.findByPage(n).then((function(i){t.isShow.refresherTriggered=!1,2e4===i.code&&(0==i.data.list.length&&e.showToast({title:"没有数据了哦",icon:"none"}),1===n.currentPage?(t.list=i.data.list,console.log(i)):t.list=t.list.concat(i.data.list))}))},animationFns:function(){console.log("恢复动画");var t=e.createAnimation({duration:0,timingFunction:"ease"});t.rotate(0).step(),this.animationData=t.export()},rotateFn:function(){var t=this,n=e.createAnimation({duration:1e3,timingFunction:"ease"});n.rotate(360).step(),this.animationData=n.export(),setTimeout((function(){t.animationFns()}),1e3)},scrolltolower:function(){this.getData.currentPage+=1,this.getList()},seachFn:function(){},onClick:function(){},jump:function(){e.navigateTo({url:"../addPrice/addPrice"})}}};t.default=s}).call(this,n("543d")["default"])},b622:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var i={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"))},uPicker:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-picker/u-picker")]).then(n.bind(null,"482e"))}},a=function(){var e=this,t=e.$createElement,n=(e._self._c,Number(e.newSeleData.marketPrice)),i=Number(e.newSeleData.oldMarketPrice),a=Number(e.newSeleData.marketPrice),r=Number(e.newSeleData.oldMarketPrice),o=Number(e.newSeleData.sitePrice),u=Number(e.newSeleData.oldSitePrice),s=Number(e.newSeleData.sitePrice),c=Number(e.newSeleData.oldSitePrice),l=Number(e.newSeleData.effectiveMode),f=e._f("applyStatus")(e.newSeleData.applyStatus);e.$mp.data=Object.assign({},{$root:{m0:n,m1:i,m2:a,m3:r,m4:o,m5:u,m6:s,m7:c,m8:l,f0:f}})},r=[]},bdb8:function(e,t,n){"use strict";n.r(t);var i=n("b448"),a=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=a.a}},[["6dc9","common/runtime","common/vendor"]]]);