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
62 KiB
1 line
62 KiB
4 months ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-8c2e42f2"],{"084c":function(t,e,r){},"0f0e":function(t,e,r){"use strict";var n=r("c4c8"),o={name:"userLabel",props:{},data:function(){return{labelList:[],dataLabel:[],isUser:!1}},mounted:function(){},methods:{inArray:function(t,e){for(var r in e)if(e[r].id===t)return!0;return!1},userLabel:function(t){var e=this;this.dataLabel=t,Object(n.ob)().then((function(t){t.data.map((function(t){t.children&&t.children.length&&(e.isUser=!0,t.children.map((function(t){e.inArray(t.id,e.dataLabel)?t.disabled=!0:t.disabled=!1})))})),e.labelList=t.data})).catch((function(t){e.$Message.error(t.msg)}))},selectLabel:function(t){if(t.disabled){var e=this.dataLabel.indexOf(this.dataLabel.filter((function(e){return e.id===t.id}))[0]);this.dataLabel.splice(e,1),t.disabled=!1}else this.dataLabel.push({label_name:t.label_name,id:t.id,tag_id:t.tag_id}),t.disabled=!0},subBtn:function(){this.$emit("activeData",JSON.parse(JSON.stringify(this.dataLabel)))},cancel:function(){this.$emit("close")}}},i=(r("a405"),r("2877")),a=Object(i.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"label-wrapper"},[e("div",{staticClass:"list-box"},[t._l(t.labelList,(function(r,n){return t.isUser?e("div",{key:n,staticClass:"label-box"},[r.children&&r.children.length?e("div",{staticClass:"title"},[t._v("\n "+t._s(r.label_name)+"\n ")]):t._e(),r.children&&r.children.length?e("div",{staticClass:"list"},t._l(r.children,(function(r,n){return e("div",{key:n,staticClass:"label-item",class:{on:r.disabled},on:{click:function(e){return t.selectLabel(r)}}},[t._v("\n "+t._s(r.label_name)+"\n ")])})),0):t._e()]):t._e()})),t.isUser?t._e():e("div",[t._v("暂无标签")])],2),e("div",{staticClass:"footer"},[e("Button",{staticClass:"btns",attrs:{type:"primary"},on:{click:t.subBtn}},[t._v("确定")]),e("Button",{staticClass:"btns",attrs:{type:"primary",ghost:""},on:{click:t.cancel}},[t._v("取消")])],1)])}),[],!1,null,"ea2c8f16",null);e.a=a.exports},"0fc4":function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"c",(function(){return i})),r.d(e,"b",(function(){return a}));var n=r("b6bd");function o(){return Object(n.a)({url:"erp/config",method:"get"})}function i(t){return Object(n.a)({url:"store/erp/shop",method:"get",params:t})}function a(t){return Object(n.a)({url:"product/import_erp_product",method:"post",data:t})}},1607:function(t,e,r){},"1b92":function(t,e,r){},3715:function(t,e,r){},"4fd3":function(t,e,r){"use strict";var n=r("c4c8"),o=r("d708"),i={name:"taoBao",data:function(){return{roterPre:o.a.roterPre,soure_link:"",spinShow:!1,grid:{xl:8,lg:8,md:12,sm:24,xs:24},grid2:{xl:12,lg:12,md:12,sm:24,xs:24},copyConfig:{copy_type:"",copy_num:0},artFrom:{type:"taobao",url:""}}},computed:{},created:function(){},mounted:function(){this.getCopyConfig()},methods:{mealPay:function(t){this.$router.push({path:this.roterPre+"/setting/sms/sms_pay/index",query:{type:t}})},getCopyConfig:function(){var t=this;Object(n.k)().then((function(e){t.copyConfig.copy_type=e.data.copy_type,t.copyConfig.copy_num=e.data.copy_num}))},add:function(){var t=this;if(this.soure_link){if(!/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?/.test(this.soure_link))return this.$Message.warning("请输入以http开头的地址!");this.spinShow=!0,this.artFrom.url=this.soure_link,Object(n.l)(this.artFrom).then((function(e){var r=e.data.productInfo;t.$emit("on-close",r),t.spinShow=!1})).catch((function(e){t.spinShow=!1,t.$Message.error(e.msg)}))}else this.$Message.warning("请输入链接地址!")}}},a=(r("bbcc"),r("2877")),s=Object(a.a)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"Box"},[e("Card",[e("div",[t._v("生成的商品默认是没有上架的,请手动上架商品!\n "),2==t.copyConfig.copy_type?e("a",{attrs:{href:"http://help.RENZHOU.net/RENZHOU-v4/1863579",target:"_blank"}},[t._v("如何配置密钥")]):e("span",[t._v("您当前剩余"+t._s(t.copyConfig.copy_num)+"条采集次数,"),e("a",{attrs:{href:"#"},on:{click:
|