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

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["priceAdjustmentTask/addTask/addTask"],{"0554":function(e,t,i){},a272:function(e,t,i){"use strict";i.r(t);var r=i("fc75"),o=i.n(r);for(var n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);t["default"]=o.a},b860:function(e,t,i){"use strict";i.r(t);var r=i("da2a"),o=i("a272");for(var n in o)"default"!==n&&function(e){i.d(t,e,(function(){return o[e]}))}(n);i("d5d4");var s,a=i("f0c5"),u=Object(a["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],s);t["default"]=u.exports},be0b:function(e,t,i){"use strict";(function(e){i("84da");r(i("66fd"));var t=r(i("b860"));function r(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=i,e(t.default)}).call(this,i("543d")["createPage"])},d5d4:function(e,t,i){"use strict";var r=i("0554"),o=i.n(r);o.a},da2a:function(e,t,i){"use strict";i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){return r}));var r={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"))},uniIcons:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(i.bind(null,"65b9"))}},o=function(){var e=this,t=e.$createElement,i=(e._self._c,e.aboutEnterprise.oilProductCode?Number(e.aboutEnterprise.oilSiteOilsPrices[e.aboutEnterprise.oloIndex].marketPrice).toFixed(2):null),r=e.aboutEnterprise.oilProductCode?Number(e.aboutEnterprise.oilSiteOilsPrices[e.aboutEnterprise.oloIndex].sitePrice).toFixed(2):null,o=e.aboutEnterprise.oilProductCode?Number(e.aboutEnterprise.oilSiteOilsPrices[e.aboutEnterprise.oloIndex].enterprisePrice).toFixed(2):null,n=e.aboutEnterprise.oilProductCode?Number(e.aboutEnterprise.oilSiteOilsPrices[e.aboutEnterprise.oloIndex].floorPrice||0).toFixed(4):null,s=e.aboutEnterprise.oilProductCode?Number(e.aboutEnterprise.oilSiteOilsPrices[e.aboutEnterprise.oloIndex].settlementPrice).toFixed(2):null,a=e._f("state")(e.aboutEnterprise.effectiveMode),u=e.__map(e.priceData,(function(t,i){var r=e.__get_orig(t),o=Number(e.aboutEnterprise[t.price]).toFixed("底价"==t.lable?4:2),n=e.iconFn(t),s=e.icontype(t),a=Number(e.aboutEnterprise[t.oldePrice]||0).toFixed("底价"==t.lable?4:2);return{$orig:r,g5:o,m0:n,m1:s,g6:a}}));e._isMounted||(e.e0=function(t){e.show=!e.show},e.e1=function(t){e.isShow.collapse=!e.isShow.collapse}),e.$mp.data=Object.assign({},{$root:{g0:i,g1:r,g2:o,g3:n,g4:s,f0:a,l0:u}})},n=[]},fc75:function(e,t,i){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(i("3415")),o=(n(i("87ef")),n(i("4081")),n(i("3f36")));function n(e){return e&&e.__esModule?e:{default:e}}var s={data:function(){return{immediate:null,time:null,timing:0,priceData:[{lable:"发改委价格",price:"marketPrice",oldePrice:"oldMarketPrice"},{lable:"油站价格",price:"sitePrice",oldePrice:"oldSitePrice"},{lable:"个人价",price:"newPersonalPrice",oldePrice:"personalPrice"},{lable:"企业价",price:"newEnterprisePrice",oldePrice:"enterprisePrice"},{lable:"底价",price:"newFloorPrice",oldePrice:"floorPrice"},{lable:"结算价",price:"newSettlementPrice",oldePrice:"settlementPrice"}],details:null,modifyShow:{img:!1,footer:!0},butten:{colse:"返回",confirm:"确定",coloseBg:"#bbbbbb",coloseColor:"#FFFFFF",confirmBg:"#bbbbbb",confirmColor:""},params:{year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!1},selector:[1,2,3],shows:{img:!1,footer:!1},show:!1,disabled:!1,start:"",spareAboutEnterprise:["siteName","siteId","oilProductCode","effectiveMode","oloIndex","subEntryTime","applyStatus","marketPrice","sitePrice","oldMarketPrice","oldSitePrice","siteOilsPriceId","createSource","newEnterprisePrice","newPersonalPrice","newSettlementPrice","newFloorPrice"],aboutEnterprise:{siteName:"",siteId:"",oilProductCode:"",effectiveMode:0,oloIndex:"",subEntryTime:"",applyStatus:0,marketPrice:"",sitePrice:"",oldMarketPrice:"",oldSitePrice:"",siteOilsPriceId:"",createSource:"OMS-MINIAPP",newEnterprisePrice:"",newPersonalPrice:"",newSettlementPrice:"",newFloorPrice:"",floorRemark:"",oldfloorRemark:""},isShow:{oliType:!1,examine:!1,collapse:!1},radiolist1:[{name:"立即",value:0},{name:"预约",value:1}]}},onLoad:function(){var t=this;e.$on("serviceStation",(function(i){console.log("%c 油站参数更新↓","font-size:50px;color:red"),t.aboutEnterprise=Object.assign(t.aboutEnterprise,i),t.aboutEnterprise.siteId=t.aboutEnterprise.id,t.clearFn(),e.removeStorage({key:"bufferData",success:function(){}}),t.immediate=null}));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(),":00"),console.log(this.start,"---")},created:function(){},watch:{"isShow.oliType":{handler:function(e,t){this.disabled=!!e}}},filters:{state:function(e){switch(Number(e)){case 0:return"即时";case 1:return"预约";default:return"---"}},typeText:function(e){switch(Number(e)){case 0:return"等待执行";case 1:return"执行成功";case-1:return"执行失败";default:return"---"}},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"已撤销"}}},onShow:function(){},onUnload:function(){e.removeStorage({key:"bufferData",success:function(){}})},methods:{icontype:function(e){return Number(this.aboutEnterprise[e.price])>Number(this.aboutEnterprise[e.oldePrice])?"icona-shangzhang1":Number(this.aboutEnterprise[e.price])<Number(this.aboutEnterprise[e.oldePrice])?"icona-xiadie2":"iconchiping"},iconFn:function(e){return Number(this.aboutEnterprise[e.price])>Number(this.aboutEnterprise[e.oldePrice])?"#ff5555":Number(this.aboutEnterprise[e.price])<Number(this.aboutEnterprise[e.oldePrice])?"#2CE308":"#f9d06f"},detailseCloseFn:function(){this.isShow.examine=!1},detailseConfirmFn:function(){var t=this;0===this.timing&&(this.aboutEnterprise.createSource="OMS-MINIAPP",o.default.newOilPriceAdjustApply(this.aboutEnterprise).then((function(i){2e4===i.code&&(t.isShow.examine=!1,setTimeout((function(){e.navigateBack()}),500),console.log(i))})),console.log("确定"))},clearFn:function(){var e=this,t=Object.keys(this.aboutEnterprise),i=["oldMarketPrice","oloIndex","oilProductCode","oldSitePrice","siteOilsPriceId","marketPrice","sitePrice","newEnterprisePrice","newPersonalPrice","newSettlementPrice","newFloorPrice"];t.forEach((function(t,r){i.includes(t)&&(e.aboutEnterprise[t]="")}))},datetimeChange:function(e){var t=this;console.log(e);var i=String(e).replace(/-/g,"/"),r=String(this.start).replace(/-/g,"/");Date.parse(new Date(i))<Date.parse(new Date(r))&&setTimeout((function(){t.aboutEnterprise.subEntryTime=t.start}),0)},olioss:function(t,i){this.immediate=i,e.setStorageSync("bufferData",{oloIndex:i})},closeFn:function(){this.isShow.oliType=!1,this.aboutEnterprise.oilProductCode||this.aboutEnterprise.oloIndex?this.immediate=this.aboutEnterprise.oloIndex:(this.aboutEnterprise.oilProductCode="",this.aboutEnterprise.oloIndex="",this.immediate=null,e.removeStorage({key:"bufferData",success:function(){}}))},confirmFn:function(){var t=this,i=e.getStorageSync("bufferData");t.aboutEnterprise.oloIndex=i.oloIndex,t.aboutEnterprise.oloIndex||0===t.aboutEnterprise.oloIndex?(this.aboutEnterprise.oilProductCode=this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].oilProductCode,this.immediate=t.aboutEnterprise.oloIndex,this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].floorPrice||0===this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].floorPrice||(this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].floorPrice=0),this.aboutEnterprise.oldMarketPrice=JSON.parse(JSON.stringify(Number(this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].marketPrice))).toFixed(2),this.aboutEnterprise.oldSitePrice=JSON.parse(JSON.stringify(Number(this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].sitePrice))).toFixed(2),this.aboutEnterprise.newPersonalPrice=JSON.parse(JSON.stringify(Number(this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].personalPrice))).toFixed(2),this.aboutEnterprise.newEnterprisePrice=JSON.parse(JSON.stringify(Number(this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].enterprisePrice))).toFixed(2),this.aboutEnterprise.newFloorPrice=JSON.parse(JSON.stringify(Number(this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].floorPrice||0))).toFixed(4),this.aboutEnterprise.newSettlementPrice=JSON.parse(JSON.stringify(Number(this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].settlementPrice))).toFixed(2),this.aboutEnterprise.oldfloorRemark=this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].floorRemark||"暂无说明",this.aboutEnterprise=Object.assign(this.aboutEnterprise,this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex]),this.aboutEnterprise.siteOilsPriceId=this.aboutEnterprise.id,this.isShow.oliType=!1):e.showToast({title:"请选择油品",icon:"none"})},seleoli:function(){this.aboutEnterprise.oilSiteOilsPrices&&0!=this.aboutEnterprise.oilSiteOilsPrices.length?(console.log(this.immediate,"*9***"),this.isShow.oliType=!0):e.showToast({title:"请选择则正确油站",icon:"none"})},dateConfirm:function(e){this.aboutEnterprise.subEntryTime="".concat(e.year,"-").concat(e.month,"-").concat(e.day," ").concat(e.hour,":").concat(e.minute,":00"),console.log(e)},inputFn:function(t){console.log(this.aboutEnterprise[t]),-1!=this.aboutEnterprise[t].indexOf(".")&&("newFloorPrice"==t?this.aboutEnterprise[t].split(".")[1].length>4&&(e.showToast({title:"最多保留小数点后4位",icon:"none"}),this.$nextTick((function(){this.aboutEnterprise[t]=Number(this.aboutEnterprise[t]).toFixed(4)}))):this.aboutEnterprise[t].split(".")[1].length>2&&(e.showToast({title:"最多保留小数点后两位",icon:"none"}),this.$nextTick((function(){this.aboutEnterprise[t]=Number(this.aboutEnterprise[t]).toFixed(2)}))))},postFn:function(){var t=this,i={newPersonalPrice:{tacitly:"",custom:/^([1-9]\d*)(\.\d{1,6})?$|^0\.\d{1,6}?$/,WrongText:"个人价不能为空或零"},newEnterprisePrice:{tacitly:"",custom:/^([1-9]\d*)(\.\d{1,6})?$|^0\.\d{1,6}?$/,WrongText:"企业价不能为空或零"},newFloorPrice:{tacitly:"",custom:/^([1-9]\d*)(\.\d{1,6})?$|^0\.\d{1,6}?$/,WrongText:"底价不能为空或零"},newSettlementPrice:{tacitly:"",custom:/^([1-9]\d*)(\.\d{1,6})?$|^0\.\d{1,6}?$/,WrongText:"结算价不能为空或零"},siteName:{tacitly:"",WrongText:"请选择油站"},oilProductCode:{tacitly:"",WrongText:"请选择油号"},marketPrice:{tacitly:"",custom:/^([1-9]\d*)(\.\d{1,6})?$|^0\.\d{1,6}?$/,WrongText:"发改委价格不能为空或零"},sitePrice:{tacitly:"",custom:/^([1-9]\d*)(\.\d{1,6})?$|^0\.\d{1,6}?$/,WrongText:"油站价格不能为空或零"}};1==this.aboutEnterprise.effectiveMode&&(i["subEntryTime"]={tacitly:"",WrongText:"请选择时间"});var o=r.default.checkFn(this.aboutEnterprise,[],i);o.result?this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].marketPrice!=this.aboutEnterprise.marketPrice||this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].sitePrice!=this.aboutEnterprise.sitePrice||this.aboutEnterprise.newPersonalPrice!=this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].personalPrice||this.aboutEnterprise.newEnterprisePrice!=this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].enterprisePrice||this.aboutEnterprise.newFloorPrice!=this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].floorPrice||this.aboutEnterprise.newSettlementPrice!=this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].settlementPrice?(this.time&&clearInterval(this.time),this.timing=5,this.isShow.examine=!0,this.butten.confirm="确定\n"+this.timing+"s",this.butten.confirmBg="#bbbbbb",this.time=setInterval((function(){t.timing-=1,t.butten.confirm="确定\n"+t.timing+"s",0==t.timing&&(t.butten.confirm="确定",t.butten.confirmBg="",clearInterval(t.time))}),1e3)):e.showToast({title:"请变动价格后提交",icon:"none"}):e.showToast({title:o.WrongText,icon:"none"})},jump:function(t){e.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(e){this.aboutEnterprise.subEntryTime=e?this.start:"",console.log(e)},groupChange:function(){}}};t.default=s}).call(this,i("543d")["default"])}},[["be0b","common/runtime","common/vendor"]]]);