(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a5535934"],{3664:function(t,e,a){"use strict";var i=a("bfe5"),n=a.n(i);n.a},"48b4":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"brand_indentlist"},[a("BizTable",{ref:"bt",attrs:{formatCol:t.formatCol,modelName:"trademark",metaName:"originmanage_info",packageName:"trademark",tblheight:t.adjustHeight-120,isMulti:"",refvalidatemethod:t.validmethod,savebefore:t.beforesave,editbefore:t.beforedit,addbefore:t.beforeadd},on:{onexec:t.onexec,oninitbtn:t.oninitbtn}})],1)},n=[],r=(a("28a5"),a("c24f")),o=a("06d3"),s=a("c1df"),d=a.n(s),c=a("7e1e"),f={components:{BizTable:o["a"]},data:function(){return{}},mounted:function(){},methods:{tableListInit:function(){var t=this,e={actionType:"getOrderDeliveryInfo",actionBody:{uappId:this.$store.state.user.userobj.channel.code,orderNo:this.from.orderNo||"",tmName:this.from.tmName||"",contactName:this.from.contactName||"",startTime:this.from.startTime||"",entTime:this.from.entTime||"",pageIndex:this.from.pageIndex||1,pageSize:this.from.pageSize||10}};Object(r["ykApiPost"])(e).then((function(e){if(0==e.data.status){t.spinShow=!1,t.datalist=e.data.data;for(var a=0;a<t.datalist.length;a++)t.datalist[a].updateAt=d()(t.datalist[a].updateAt).format("YYYY-MM-DD");t.dataCount=e.data.dataCount,console.log("tablelist--",e.data)}})).catch((function(t){console.log(t)}))},dateChange:function(t,e){var a=String(this.from.val).split(",");this.from.startTime=d()(a[0]).format("YYYY-MM-DD"),this.from.entTime=d()(a[1]).format("YYYY-MM-DD")},query:function(){this.tableListInit()},reset:function(){this.from={val:"",orderNo:"",tmName:"",contactName:"",startTime:"",entTime:"",pageIndex:1,pageSize:10},this.tableListInit()},showDetail:function(t,e){this.$router.push({path:"/ykmanage/indentdetail",query:{orderNo:t.orderNo}})},pageCurrentHandler:function(t){this.from.pageIndex=t,this.tableListInit()},pageSizeHandler:function(t){this.from.pageSize=t,this.tableListInit()},onexec:function(t,e){var a=this;"detail"===t?this.$router.push({name:"originmanage_detail",query:{id:e.id}}):"down"===t?Object(c["f"])("/web/trademark/trademarkCtl/update",{id:e.id,publish_status:"lowershelf"}).then((function(t){a.$Message.success("发布成功"),a.$refs.bt.fetchData()})).catch((function(t){a.$Message.error("发布出错")})):"excel"===t?this.$router.push("/originmanage/originmanage_excelupload"):"search"===t&&this.$router.push("/originmanage/originmanage_brandsearch")},formatCol:function(t,e,a){var i=t[e];if("created_at"===e)i=d()(i).format("YYYY-MM-DD");else{if("pic_url"===e)return'<img style="width: 50px;height: 50px" src="'.concat(t[e],'"/>');"deadline"===e&&(i=d()(t["tm_start_day"]||0).format("YYYY-MM-DD")+"至"+d()(t["tm_end_day"]||0).format("YYYY-MM-DD"))}return i}}},m=f,u=(a("3664"),a("2877")),l=Object(u["a"])(m,i,n,!1,null,"061c279c",null);e["default"]=l.exports},bfe5:function(t,e,a){}}]);