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 line
3.8 KiB

2 years ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["priceAdjustment/modify/modify"],{"275d":function(e,t,n){"use strict";n.r(t);var i=n("4d52"),a=n.n(i);for(var u in i)"default"!==u&&function(e){n.d(t,e,(function(){return i[e]}))}(u);t["default"]=a.a},"4d52":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;i(n("69b8"));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"])},5392:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return u})),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,"3b32"))},uPicker:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-picker/u-picker")]).then(n.bind(null,"8256"))}},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),u=Number(e.newSeleData.oldMarketPrice),r=Number(e.newSeleData.sitePrice),c=Number(e.newSeleData.oldSitePrice),o=Number(e.newSeleData.sitePrice),s=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:u,m4:r,m5:c,m6:o,m7:s,m8:l,f0:f}})},u=[]},6196:function(e,t,n){},"91f9":function(e,t,n){"use strict";var i=n("6196"),a=n.n(i);a.a},c9de:function(e,t,n){"use strict";(function(e){n("6e43");i(n("66fd"));var t=i(n("ea43"));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"])},ea43:function(e,t,n){"use strict";n.r(t);var i=n("5392"),a=n("275d");for(var u in a)"default"!==u&&function(e){n.d(t,e,(function(){return a[e]}))}(u);n("91f9");var r,c=n("f0c5"),o=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"36a621e3",null,!1,i["a"],r);t["default"]=o.exports}},[["c9de","common/runtime","common/vendor"]]]);