(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ea7e24a0","chunk-1ade70a2"],{"11f0":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{staticClass:"transport-dialog",attrs:{title:"调整"+t.title,"close-on-click-modal":!1,visible:t.visible,width:"700px"},on:{"update:visible":function(e){t.visible=e},close:t.handClose}},[a("el-form",{ref:"dataForm",attrs:{model:t.dataForm,"label-width":"0px"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"",prop:"transName"}},[a("span",[t._v("请输入正负调整值")]),a("el-input",{attrs:{type:"number",placeholder:"请输入正负调整值"},on:{change:function(e){return t.checkNumber()}},model:{value:t.dataForm.transName,callback:function(e){t.$set(t.dataForm,"transName",e)},expression:"dataForm.transName"}})],1),a("el-form-item",[t.isAuth("shop:transfee:update")?a("el-button",{staticClass:"el-icon-circle-plus-outline",attrs:{type:"primary",size:"middle"},on:{click:function(e){return t.addOrUpdateHandle()}}},[t._v(t._s(t.pips))]):t._e(),t.isAuth("shop:transfee:delete")?a("el-button",{staticClass:"el-icon-remove-outline",attrs:{type:"primary",size:"middle"},on:{click:function(e){return t.deleteHandle()}}},[t._v(t._s(t.pips))]):t._e()],1),a("el-form-item",{attrs:{label:"",prop:"second"}},[a("span",[t._v("生效趋势(秒,0秒为即时生效)")]),a("el-input",{attrs:{oninput:"value=value.replace('-','')",type:"number",placeholder:"0秒为即时生效"},model:{value:t.second,callback:function(e){t.second=e},expression:"second"}})],1),a("div",[t._v("调整值")]),a("el-table",{staticClass:"table-con",staticStyle:{width:"100%"},attrs:{data:t.dataForm.transfees,border:""}},[a("el-table-column",{attrs:{"header-align":"center",align:"center",width:"200",label:"原值"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t.newPrice))])]}}])}),a("el-table-column",{staticStyle:{color:"red"},attrs:{"header-align":"center",align:"center",width:"180",label:"调整后"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-form-item",{attrs:{"label-width":"0px"}},[a("div",{staticClass:"spainput"},[t._v(t._s(t.afterValue))])])]}}])}),a("el-table-column",{attrs:{"header-align":"center",align:"center",label:"累计修正值"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-form-item",{attrs:{"label-width":"0px"}},[a("div",[t._v(t._s(t.adjustValue))])])]}}])})],1),a("div",{staticStyle:{"margin-top":"30px"}},[t._v("生效趋势")]),a("el-table",{staticClass:"table-con",staticStyle:{width:"100%"},attrs:{data:t.dataForm.transfeeFrees,border:""}},[a("el-table-column",{attrs:{"header-align":"center",align:"center",width:"338",label:"待生效值"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t.delayValue))])]}}])}),a("el-table-column",{attrs:{"header-align":"center",align:"center",width:"320",label:"时间(秒)"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-form-item",{attrs:{"label-width":"0px"}},[a("div",[t._v(t._s(t.delaySecond))])])]}}])})],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.visible=!1}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.dataFormSubmit()}}},[t._v("确定")])],1)],1)},i=[],r=(a("14d9"),a("20ca")),n={data(){return{visible:!1,title:"",pips:"",adjustValue:"",afterValue:"",delaySecond:"",delayValue:"",newPrice:"",second:0,mafterValue:0,addOrUpdateVisible:!1,dataForm:{transName:0,transfees:[{cityList:[],status:1}],transfeeFrees:[{freeCityList:[],freeType:0}]},page:{total:0,currentPage:1,pageSize:10},editVisible:!1}},created(){},components:{},watch:{visible:function(t){t||(this.addOrUpdateVisible=!1)}},computed:{tableTitle(){var t=[["调整后","累计修正值","续件(个)","续费(元)"],["首重(kg)","运费(元)","续重(kg)","续费(元)"],["首体积(m³)","运费(元)","续体积(m³)","续费(元)"]];return this.dataForm.chargeType?t[this.dataForm.chargeType]:t[0]}},methods:{init(t){this.getDataList(t),this.title=t,this.visible=!0,this.dataForm.transportId=t||0,this.$nextTick(()=>{this.$refs.dataForm.resetFields(),this.dataForm={transName:0,createTime:"",chargeType:0,transportId:0,isFreeFee:0,transfees:[{cityList:[],status:1}],transfeeFrees:[{freeCityList:[],freeType:0}]}})},handClose(){this.$data.dataForm=JSON.parse(JSON.stringify(this.$options.data().dataForm)),this.second=0,this.$nextTick(()=>{this.$refs["dataForm"].clearValidate()})},getDataList(t){this.$http({url:this.$http.adornUrl("/normal/adminMarketQuotationsManageAction!/showModal.action"),method:"get",params:this.$http.adornParams({symbol:t})}).then(({data:t})=>{t&&(t.data.afterValue?this.afterValue=t.data.afterValue:this.afterValue=t.data.newPrice,1*t.data.pips==0?this.pips=.01:this.pips=t.data.pips,this.mafterValue=this.afterValue,this.adjustValue=t.data.adjustValue,this.delaySecond=t.data.delaySecond,this.delayValue=t.data.delayValue,this.newPrice=t.data.newPrice)})},addTransfee(){this.editVisible=!0,this.dataForm.transfees.push({cityList:[],status:1})},deleteTransfeeFree(t){this.dataForm.transfeeFrees.splice(t,1)},checkNumber(){let t=this.adjustValue,e=this.afterValue;this.afterValue=(1e9*e+1e9*this.dataForm.transName)/1e9,this.adjustValue=(1e9*t+1e9*this.dataForm.transName)/1e9},addOrUpdateHandle(t){let e=this.adjustValue,a=this.afterValue,s=this.dataForm.transName;this.dataForm.transName=(1e9*s+1e9*this.pips)/1e9,this.afterValue=(1e9*a+1e9*this.pips)/1e9,this.adjustValue=(1e9*e+1e9*this.pips)/1e9},deleteHandle(t){let e=this.adjustValue,a=this.afterValue,s=this.dataForm.transName;this.dataForm.transName=(1e9*s-1e9*this.pips)/1e9,this.afterValue=(1e9*a-1e9*this.pips)/1e9,this.adjustValue=(1e9*e-1e9*this.pips)/1e9},getNumber(t){return t=Math.round(t),t<0?0:t},dataFormSubmit:Object(r["a"])((function(){this.$refs["dataForm"].validate(t=>{t&&(this.dataForm.transfees[0].cityList=[],this.$http({url:this.$http.adornUrl("/normal/adminMarketQuotationsManageAction!/adjust.action"),method:"post",data:this.$http.adornData({second:this.second,symbol:this.title,value:this.dataForm.transName})}).then(({data:t})=>{0==t.code?this.$message({message:"操作成功",type:"success",duration:1e3,onClose:()=>{this.visible=!1,this.$emit("refreshDataList",this.page)}}):this.$message({message:t.msg,type:"error",duration:1e3,onClose:()=>{this.visible=!1}})}))})}))}},l=n,d=(a("d86e"),a("2877")),o=Object(d["a"])(l,s,i,!1,null,"4462561e",null);e["default"]=o.exports},"20ca":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));const s=(t,e)=>{let a,s=e||300;return function(){let e=arguments;a&&clearTimeout(a);let i=!a;a=setTimeout(()=>{a=null},s),i&&t.apply(this,e)}}},"24f2":function(t,e,a){},3566:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mod-etf-markets-config"},[a("avue-crud",{ref:"crud",attrs:{page:t.page,data:t.dataList,option:t.tableOption},on:{"update:page":function(e){t.page=e},"search-change":t.searchChange,"selection-change":t.selectionChange,"on-load":t.getDataList},scopedSlots:t._u([{key:"symname",fn:function(e){return[a("span",[t._v(t._s(e.row.symbol+"/USDT"))])]}},{key:"menu",fn:function(e){return[t.isAuth("sys:user:update")?a("el-button",{attrs:{type:"primary",icon:"el-icon-edit",size:"small"},on:{click:function(a){return a.stopPropagation(),t.addOrUpdateHandle(e.row.symbol)}}},[t._v("调整")]):t._e()]}}])}),t.addOrUpdateVisible?a("add-or-update",{ref:"addOrUpdate",on:{refreshDataList:t.getDataList}}):t._e()],1)},i=[],r=a("3e89"),n=a("11f0"),l={data(){return{dataList:[],dataListLoading:!1,dataListSelections:[],addOrUpdateVisible:!1,tableOption:r["a"],searchParams:{},page:{total:0,currentPage:1,pageSize:10}}},components:{AddOrUpdate:n["default"]},methods:{getDataList(t,e){const a={current:null==t?this.page.currentPage:t.currentPage,size:null==t?this.page.pageSize:t.pageSize,...this.searchParams};this.dataListLoading=!0,this.$http({url:this.$http.adornUrl("/normal/adminMarketQuotationsManageAction!/list.action"),method:"get",params:this.$http.adornParams(Object.assign({type:"indices",current:null==t?this.page.currentPage:t.currentPage,size:null==t?this.page.pageSize:t.pageSize},a))}).then(({data:t})=>{this.dataList=t.data.records,this.page.total=t.data.total,this.dataListLoading=!1,e&&e()})},searchChange(t,e){this.page.currentPage=1,this.searchParams=t,this.getDataList(this.page,e)},selectionChange(t){this.dataListSelections=t},addOrUpdateHandle(t){this.addOrUpdateVisible=!0,this.$nextTick(()=>{this.$refs.addOrUpdate.init(t)})},deleteHandle(t){var e=t?[t]:this.dataListSelections.map(t=>t.roleId);this.$confirm(`确定进行[${t?"删除":"批量删除"}]操作?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$http({url:this.$http.adornUrl("/sys/role"),method:"delete",data:this.$http.adornData(e,!1)}).then(({data:t})=>{this.$message({message:"操作成功",type:"success",duration:1500,onClose:()=>{this.getDataList()}})})}).catch(()=>{})}}},d=l,o=a("2877"),c=Object(o["a"])(d,s,i,!1,null,null,null);e["default"]=c.exports},"3e89":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));const s={searchMenuSpan:6,columnBtn:!1,border:!0,selection:!1,index:!1,indexLabel:"序号",stripe:!0,menuAlign:"center",menuWidth:350,align:"center",refreshBtn:!0,searchSize:"mini",addBtn:!1,editBtn:!1,delBtn:!1,viewBtn:!1,menu:!0,props:{label:"label",value:"value"},column:[{label:"产品名称",prop:"symbol",search:!0,hide:!0},{label:"产品名称",prop:"name"},{label:"原值",prop:"newPrice"},{label:"调整后",prop:"afterValue"}]}},d86e:function(t,e,a){"use strict";a("24f2")}}]);