(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-053a4347"],{"0139":function(e,t,a){e.exports=a.p+"img/placeholder.756a7125.svg"},"0368":function(e,t,a){},"23a5":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"brand_indentlist"},[a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var n=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,modelName:"operation",metaName:"operation_info",packageName:"trademark",tblheight:n-200,isMulti:""},on:{onexec:e.onexec}})]}}])}),a("Modal",{attrs:{title:"设置商标类型"},on:{"on-ok":e.ok,"on-cancel":e.cancel},model:{value:e.modal1,callback:function(t){e.modal1=t},expression:"modal1"}},[a("p",[e._v('只能修改状态为"在售"的商标')]),a("br"),a("Select",{model:{value:e.marktype,callback:function(t){e.marktype=t},expression:"marktype"}},e._l(e.dic.mark_type,(function(t,n){return a("Option",{key:n,attrs:{value:n}},[e._v(e._s(t))])})),1)],1)],1)},s=[],r=(a("7f7f"),a("6762"),a("2fdb"),a("ac6a"),a("06d3")),i=a("391e"),o=a("8770"),c=a("c1df"),u=a.n(c),l=a("db7f"),f=a("7e1e"),d=a("0139"),h=a.n(d),m={components:{BizTable:r["a"],DateTime:o["a"],PageSpace:i["a"]},data:function(){return{dic:l["a"],placeholder:h.a,marktype:"",modal1:!1,formItem:{type:""},ruleValidate:{type:[{required:!1,message:"",trigger:"blur"}]}}},mounted:function(){this.$route.query.ids?this.$refs.bt.fetchData({ids:this.$route.query.ids}):this.$refs.bt.fetchData()},methods:{ok:function(){var e=this;this.$refs.bt.currentSels.forEach((function(t){t.trademark_type=e.marktype}));var t=this.$refs.bt.currentSels.filter((function(e){return"在售"==e.publish_status_name}));Object(f["f"])("/web/trademark/trademarkctl/updatestrademarktype",{data:t}).then((function(t){1==t.data.status?(e.$refs.bt.fetchData(e.$refs.bt.searchModel),e.$Message.success("设置成功"),e.marktype=""):e.$Message.error("设置失败"),e.marktype=""}))},cancel:function(){},onexec:function(e,t){var a=this;if("detail"===e)this.$router.push({name:"originmanage_detail",params:{id:t.id}});else if("down"===e||"lowershelf"===e||"uppershelf"===e){if("down"===e&&!["停售","待审"].includes(t.publish_status_name))return this.$Message.warning('只能更改状态为"停售"和"待审"的商标');if("down"!==e&&0===this.$refs.bt.currentSels.length)return this.$Message.warning("请选择商标");var n=[];if(("lowershelf"===e||"uppershelf"===e)&&(n=this.$refs.bt.currentSels.filter((function(e){return["停售","待审"].includes(e.publish_status_name)})),0==n.length))return this.$Message.warning('只能更改状态为"停售"和"待审"的商标');var s="down"===e?[t]:n;e="down"===e?"lowershelf":e,Object(f["j"])(s,e).then((function(t){1==t.data.status&&(a.$Message.success("".concat("lowershelf"===e?"下架":"上架","成功")),a.$refs.bt.fetchData(a.$refs.bt.searchModel))})).catch((function(t){a.$Message.error("".concat("lowershelf"===e?"下架":"上架","出错"))}))}else"uppershelf"===e||"settype"===e&&(0===this.$refs.bt.currentSels.length?this.$Message.warning("请选择商标"):this.modal1=!0)},formatCol:function(e,t,a){var n=e[t];if("created_at"===t)n=u()(n).format("YYYY-MM-DD");else{if("pic_url"===t)return'<img style="width: 50px;height: 50px" src="'.concat(e[t]||h.a,'"/>');"deadline"===t?n=u()(e["tm_start_day"]||0).format("YYYY-MM-DD")+"至"+u()(e["tm_end_day"]||0).format("YYYY-MM-DD"):"publishinfo"===t?n=(e["contacts"]||"")+"<br/>"+(e["mobile"]||""):"name"===t?n=e["name"]||e["excelName"]:"publish_status"===t&&(n="fail"===e["publish_status"]?e["publish_status_name"]+"(".concat(e["fail_reason"],")"):e["publish_status_name"])}return n}}},p=m,b=(a("fdd3"),a("680e"),a("2877")),g=Object(b["a"])(p,n,s,!1,null,"f5a48042",null);t["default"]=g.exports},"391e":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},s=[],r=a("6db5"),i=r["a"],o=a("2877"),c=Object(o["a"])(i,n,s,!1,null,null,null);t["a"]=c.exports},"680e":function(e,t,a){"use strict";var n=a("0368"),s=a.n(n);s.a},"6db5":function(e,t,a){"use strict";(function(e){a("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 a=e("#framediv"),n=a.get()[0],s=window.innerHeight-n.offsetTop-t.advalue;t.frameHeight=s,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("1157"))},e38f:function(e,t,a){},fdd3:function(e,t,a){"use strict";var n=a("e38f"),s=a.n(n);s.a}}]);