(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e7a3166"],{"391e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},r=[],o=n("6db5"),i=o["a"],c=n("2877"),s=Object(c["a"])(i,a,r,!1,null,null,null);t["a"]=s.exports},"6db5":function(e,t,n){"use strict";(function(e){n("c5f6");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var n=e("#framediv"),a=n.get()[0],r=window.innerHeight-a.offsetTop-t.advalue;t.frameHeight=r,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,n("1157"))},eb8f:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var a=t.adjustHeight;return[n("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"productprice_info",modelName:"productprice",packageName:"product",tblheight:a-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},r=[],o=(n("c5f6"),n("06d3")),i=n("391e"),c=n("7e1e"),s=n("db7f"),u=n("923a"),l=n("a026"),f={name:"appinfo_page",data:function(){return{productpricetmp:null,smf:[{field:"lowpriceref",label:"最低参考合计"}],currentRow:null,sptags:"",channeltags:""}},components:{PageSpace:i["a"],BizTable:o["a"]},methods:{oninitbtn:function(e,t){if(e&&"upline"==e.key){var n=t["isEnabled"]?"下架":"上架";e.title=n}},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t,n){return this.productpricetmp=e,t({value:!0,message:null})},beforesave:function(e,t,n){return n(t)},onexec:function(e,t){var n=this;"upline"==e&&Object(c["K"])("/web/product/productpriceCtl/updownProduct",{curid:t.id}).then((function(e){var t=e.data;0==t.status?(n.$refs.bt.fetchData(),n.$Message.success("当前操作已经成功完成.")):n.$Message.error("当前操作未完成.")}))},validmethod:function(e,t,n,a){if(console.log(t,"mmmmmmmmmmmmmmmmmmmmm",a),"costamount"==e.field){var r=this.productpricetmp.lowpriceref,o=(t/r).toFixed(2);a.costratio=Number(o)}return n()},formatCol:function(e,t,n){if("isEnabled"==t){var a=e["isEnabled"]?"已上架":"待上架";return e["isEnabled"]?'<span style="color:green">'.concat(a,"</span>"):'<span style="color:orange">'.concat(a,"</span>")}if("lowpriceref"==t)return e["lowpriceref"]=Number(e["lowpriceref"]),"".concat(e["lowpriceref"]);if("hignpriceref"==t)return e["hignpriceref"]=Number(e["hignpriceref"]),"".concat(e["hignpriceref"]);if("deliverfile"==t){var r=e["deliverfile"];return"<img src='".concat(r,"' style='height:40px'>")}if("extrafile"==t){var o=e["extrafile"];return"<img src='".concat(o,"' style='height:40px'>")}if("costratio"==t){e["costratio"]=Number(e["costratio"]);var i="%"+100*e["costratio"];return"".concat(i)}if("costamount"==t){e["costamount"]=Number(e["costamount"]);var c=e["costamount"];return"".concat(c)}if("expensetype"==t){e["costamount"]=Number(e["costamount"]);var f=e["expensetype"],d=s["a"]["expense_type"][f];return"".concat(d)}if("sptags"==t){this.currentRow=e,this.sptags=e["sptags"];var m='<Tags   :currow=\'currentRow\'  v-model="sptags"  :ishideadd="true" @change="ch"></Tags>',p=Object.assign({},this.$data),h=l["default"].extend({components:{Tags:u["a"]},template:"<div>".concat(m,"</div>"),data:function(){return p},methods:{testok:function(){console.log("test.....................................")},ch:function(e,t){console.log(e,t)}}}),g=(new h).$mount().$el;return g}if("channeltags"==t){this.currentRow=e,this.channeltags=e["channeltags"];var b='<Tags   :currow=\'currentRow\'  v-model="channeltags"  :ishideadd="true" @change="ch"></Tags>',v=Object.assign({},this.$data),w=l["default"].extend({components:{Tags:u["a"]},template:"<div>".concat(b,"</div>"),data:function(){return v},methods:{testok:function(){console.log("test.....................................")},ch:function(e,t){console.log(e,t)}}}),x=(new w).$mount().$el;return x}}}},d=f,m=n("2877"),p=Object(m["a"])(d,a,r,!1,null,null,null);t["default"]=p.exports}}]);