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.1 KiB
1 lines
6.1 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["priceAdjustment/page/addPrice/addPrice"],{"13b7":function(t,e,i){"use strict";var o=i("1707"),n=i.n(o);n.a},1707:function(t,e,i){},"243d":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return o}));var o={uniList:function(){return i.e("uni_modules/uni-list/components/uni-list/uni-list").then(i.bind(null,"0500"))},uniListItem:function(){return i.e("uni_modules/uni-list/components/uni-list-item/uni-list-item").then(i.bind(null,"6d48"))},uRadioGroup:function(){return Promise.all([i.e("common/vendor"),i.e("uview-ui/components/u-radio-group/u-radio-group")]).then(i.bind(null,"b5d9"))},uRadio:function(){return i.e("uview-ui/components/u-radio/u-radio").then(i.bind(null,"9e1a"))},uniDatetimePicker:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker")]).then(i.bind(null,"b04c"))}},n=function(){var t=this,e=t.$createElement,i=(t._self._c,t.aboutEnterprise.oilProductCode?Number(t.aboutEnterprise.oilSiteOilsPrices[t.aboutEnterprise.oloIndex].marketPrice).toFixed(2):null),o=t.aboutEnterprise.oilProductCode?Number(t.aboutEnterprise.oilSiteOilsPrices[t.aboutEnterprise.oloIndex].sitePrice).toFixed(2):null;t._isMounted||(t.e0=function(e){t.show=!t.show}),t.$mp.data=Object.assign({},{$root:{g0:i,g1:o}})},r=[]},"6c65":function(t,e,i){"use strict";i.r(e);var o=i("c0c6"),n=i.n(o);for(var r in o)"default"!==r&&function(t){i.d(e,t,(function(){return o[t]}))}(r);e["default"]=n.a},"95d3":function(t,e,i){"use strict";(function(t){i("84da");o(i("66fd"));var e=o(i("d983"));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=i,t(e.default)}).call(this,i("543d")["createPage"])},c0c6:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(i("3415")),n=(r(i("87ef")),r(i("4081")));function r(t){return t&&t.__esModule?t:{default:t}}var s={data:function(){return{params:{year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!1},shows:{img:!1,footer:!1},show:!1,disabled:!1,start:"",aboutEnterprise:{siteName:"",siteId:"",oilProductCode:"",effectiveMode:0,oloIndex:"",subEntryTime:"",applyStatus:0,marketPrice:"",sitePrice:"",oldMarketPrice:"",oldSitePrice:"",siteOilsPriceId:"",createSource:"OMS-MINIAPP"},isShow:{oliType:!1},radiolist1:[{name:"立即",value:0},{name:"预约",value:1}]}},onLoad:function(){var e=this;t.$on("serviceStation",(function(t){console.log("%c 油站参数更新↓","font-size:50px;color:red"),e.aboutEnterprise=Object.assign(e.aboutEnterprise,t),e.aboutEnterprise.siteId=e.aboutEnterprise.id,e.clearFn(),console.log(t)}));var i=new Date;i.setMinutes(i.getMinutes()+35),this.start="".concat(i.getFullYear(),"-").concat(i.getMonth()+1,"-").concat(i.getDate()," ").concat(i.getHours(),":").concat(i.getMinutes()),console.log(this.start,"---")},methods:{clearFn:function(){this.aboutEnterprise.oldMarketPrice="",this.aboutEnterprise.oloIndex="",this.aboutEnterprise.oilProductCode="",this.aboutEnterprise.oldSitePrice="",this.aboutEnterprise.siteOilsPriceId="",this.aboutEnterprise.marketPrice="",this.aboutEnterprise.sitePrice=""},datetimeChange:function(t){console.log(t,"*-*-*")},olioss:function(t,e){this.aboutEnterprise.oilProductCode=t.oilProductCode,this.aboutEnterprise.oloIndex=e,this.aboutEnterprise.oldMarketPrice=JSON.parse(JSON.stringify(this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].marketPrice)),this.aboutEnterprise.oldSitePrice=JSON.parse(JSON.stringify(this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].sitePrice)),this.aboutEnterprise=Object.assign(this.aboutEnterprise,this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex]),this.aboutEnterprise.siteOilsPriceId=this.aboutEnterprise.id},closeFn:function(){this.aboutEnterprise.oilProductCode="",this.isShow.oliType=!1},confirmFn:function(){this.isShow.oliType=!1},seleoli:function(){this.aboutEnterprise.oilSiteOilsPrices&&0!=this.aboutEnterprise.oilSiteOilsPrices.length?this.isShow.oliType=!0:t.showToast({title:"请选择则正确油站",icon:"none"})},dateConfirm:function(t){this.aboutEnterprise.subEntryTime="".concat(t.year,"-").concat(t.month,"-").concat(t.day," ").concat(t.hour,":").concat(t.minute,":00"),console.log(t)},inputFn:function(e){console.log(this.aboutEnterprise[e]),-1!=this.aboutEnterprise[e].indexOf(".")&&this.aboutEnterprise[e].split(".")[1].length>2&&(t.showToast({title:"最多保留小数点后两位",icon:"none"}),this.$nextTick((function(){this.aboutEnterprise[e]=Number(this.aboutEnterprise[e]).toFixed(2)})))},postFn:function(){var e={siteName:{tacitly:"",WrongText:"请选择油站"},oilProductCode:{tacitly:"",WrongText:"请选择油号"},marketPrice:{tacitly:"",WrongText:"发改委价格不能为空"},sitePrice:{tacitly:"",WrongText:"油站价格不能为空"}},i=o.default.checkFn(this.aboutEnterprise,[],e);i.result?this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].marketPrice!=this.aboutEnterprise.marketPrice||this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].sitePrice!=this.aboutEnterprise.sitePrice?(this.aboutEnterprise.createSource="OMS-MINIAPP",n.default.save(this.aboutEnterprise).then((function(e){2e4===e.code&&(setTimeout((function(){t.navigateBack()}),500),console.log(e))}))):t.showToast({title:"请变动价格后提交",icon:"none"}):t.showToast({title:i.WrongText,icon:"none"})},jump:function(e){t.navigateTo({url:"/driverManagement/serviceStation/serviceStation"})},open:function(){this.show=!this.show},change:function(){this.aboutEnterprise.shareCompanyQuota=this.switchOpen?1:0,console.log(this.switchOpen)},radioChange:function(t){t||(this.aboutEnterprise.subEntryTime=""),console.log(t)},groupChange:function(){}}};e.default=s}).call(this,i("543d")["default"])},d983:function(t,e,i){"use strict";i.r(e);var o=i("243d"),n=i("6c65");for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);i("13b7");var s,u=i("f0c5"),a=Object(u["a"])(n["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],s);e["default"]=a.exports}},[["95d3","common/runtime","common/vendor"]]]); |