提交 690b5561 authored 作者: 王天霸's avatar 王天霸

2323

上级 3de88f00
...@@ -181,4 +181,4 @@ ...@@ -181,4 +181,4 @@
font-size: 13px; font-size: 13px;
color: #FFF; color: #FFF;
opacity: 0.5; opacity: 0.5;
}</style><link href=/static/css/chunk-libs.61976a7c.css rel=stylesheet><link href=/static/css/app.c833094f.css rel=stylesheet></head><body><div id=app><div id=loader-wrapper><div id=loader></div><div class="loader-section section-left"></div><div class="loader-section section-right"></div><div class=load_title>正在加载系统资源,请耐心等待</div></div></div><script src=/static/js/chunk-elementUI.d8412c44.js></script><script src=/static/js/chunk-libs.01d9bc5c.js></script><script>(function(e){function c(c){for(var t,u,f=c[0],d=c[1],h=c[2],o=0,i=[];o<f.length;o++)u=f[o],a[u]&&i.push(a[u][0]),a[u]=0;for(t in d)Object.prototype.hasOwnProperty.call(d,t)&&(e[t]=d[t]);k&&k(c);while(i.length)i.shift()();return r.push.apply(r,h||[]),n()}function n(){for(var e,c=0;c<r.length;c++){for(var n=r[c],t=!0,u=1;u<n.length;u++){var f=n[u];0!==a[f]&&(t=!1)}t&&(r.splice(c--,1),e=d(d.s=n[0]))}return e}var t={},u={runtime:0},a={runtime:0},r=[];function f(e){return d.p+"static/js/"+({}[e]||e)+"."+{"chunk-11ac8046":"c76edaea","chunk-44440ec6":"0a14d874","chunk-14fbd231":"2c8c1b7d","chunk-2b2bc302":"137f9ac3","chunk-2d0c741e":"9a348a52","chunk-4d0bca29":"82000d76","chunk-2d0c7ece":"98876292","chunk-2d0cbf05":"598ccefa","chunk-08486bce":"fa430f74","chunk-2d0d67a2":"17869082","chunk-2d0f012d":"f7191be3","chunk-2d226555":"e093ec60","chunk-0b4a9e9a":"ab2815fd","chunk-7f1a9b2e":"543db6f7","chunk-2d0e28b6":"1f3ed8b4","chunk-2feeef12":"476bc9a3","chunk-332f952e":"c5739785","chunk-36c1aa66":"401201d0","chunk-526079f2":"84c7a815","chunk-59a3d3d5":"60fd5c78","chunk-655d6900":"ba1af145","chunk-7bd11a84":"5848cfeb","chunk-7c2f4fe6":"6a7b2ae6","chunk-ae4bdaac":"a2428233","chunk-c83e3cc4":"122036fa","chunk-d88cb782":"86aae2ea"}[e]+".js"}function d(c){if(t[c])return t[c].exports;var n=t[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,d),n.l=!0,n.exports}d.e=function(e){var c=[],n={"chunk-44440ec6":1,"chunk-14fbd231":1,"chunk-2b2bc302":1,"chunk-4d0bca29":1,"chunk-7f1a9b2e":1,"chunk-2feeef12":1,"chunk-332f952e":1,"chunk-36c1aa66":1,"chunk-526079f2":1,"chunk-59a3d3d5":1,"chunk-655d6900":1,"chunk-7bd11a84":1,"chunk-ae4bdaac":1,"chunk-c83e3cc4":1,"chunk-d88cb782":1};u[e]?c.push(u[e]):0!==u[e]&&n[e]&&c.push(u[e]=new Promise((function(c,n){for(var t="static/css/"+({}[e]||e)+"."+{"chunk-11ac8046":"31d6cfe0","chunk-44440ec6":"80e50a99","chunk-14fbd231":"2c17e1a3","chunk-2b2bc302":"9ccc1a67","chunk-2d0c741e":"31d6cfe0","chunk-4d0bca29":"3c72d4e5","chunk-2d0c7ece":"31d6cfe0","chunk-2d0cbf05":"31d6cfe0","chunk-08486bce":"31d6cfe0","chunk-2d0d67a2":"31d6cfe0","chunk-2d0f012d":"31d6cfe0","chunk-2d226555":"31d6cfe0","chunk-0b4a9e9a":"31d6cfe0","chunk-7f1a9b2e":"c40fb19a","chunk-2d0e28b6":"31d6cfe0","chunk-2feeef12":"fe6be668","chunk-332f952e":"4f92804f","chunk-36c1aa66":"2f3e51dd","chunk-526079f2":"0f99a037","chunk-59a3d3d5":"49f429c7","chunk-655d6900":"a939a6d1","chunk-7bd11a84":"5f57e9a4","chunk-7c2f4fe6":"31d6cfe0","chunk-ae4bdaac":"3f857bd8","chunk-c83e3cc4":"9183fc08","chunk-d88cb782":"6af4e0b3"}[e]+".css",a=d.p+t,r=document.getElementsByTagName("link"),f=0;f<r.length;f++){var h=r[f],o=h.getAttribute("data-href")||h.getAttribute("href");if("stylesheet"===h.rel&&(o===t||o===a))return c()}var i=document.getElementsByTagName("style");for(f=0;f<i.length;f++){h=i[f],o=h.getAttribute("data-href");if(o===t||o===a)return c()}var k=document.createElement("link");k.rel="stylesheet",k.type="text/css",k.onload=c,k.onerror=function(c){var t=c&&c.target&&c.target.src||a,r=new Error("Loading CSS chunk "+e+" failed.\n("+t+")");r.request=t,delete u[e],k.parentNode.removeChild(k),n(r)},k.href=a;var b=document.getElementsByTagName("head")[0];b.appendChild(k)})).then((function(){u[e]=0})));var t=a[e];if(0!==t)if(t)c.push(t[2]);else{var r=new Promise((function(c,n){t=a[e]=[c,n]}));c.push(t[2]=r);var h,o=document.createElement("script");o.charset="utf-8",o.timeout=120,d.nc&&o.setAttribute("nonce",d.nc),o.src=f(e),h=function(c){o.onerror=o.onload=null,clearTimeout(i);var n=a[e];if(0!==n){if(n){var t=c&&("load"===c.type?"missing":c.type),u=c&&c.target&&c.target.src,r=new Error("Loading chunk "+e+" failed.\n("+t+": "+u+")");r.type=t,r.request=u,n[1](r)}a[e]=void 0}};var i=setTimeout((function(){h({type:"timeout",target:o})}),12e4);o.onerror=o.onload=h,document.head.appendChild(o)}return Promise.all(c)},d.m=e,d.c=t,d.d=function(e,c,n){d.o(e,c)||Object.defineProperty(e,c,{enumerable:!0,get:n})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,c){if(1&c&&(e=d(e)),8&c)return e;if(4&c&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(d.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&c&&"string"!=typeof e)for(var t in e)d.d(n,t,function(c){return e[c]}.bind(null,t));return n},d.n=function(e){var c=e&&e.__esModule?function(){return e["default"]}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="/",d.oe=function(e){throw console.error(e),e};var h=window["webpackJsonp"]=window["webpackJsonp"]||[],o=h.push.bind(h);h.push=c,h=h.slice();for(var i=0;i<h.length;i++)c(h[i]);var k=o;n()})([]);</script><script src=/static/js/app.b0e69dd5.js></script></body></html> }</style><link href=/static/css/chunk-libs.61976a7c.css rel=stylesheet><link href=/static/css/app.c833094f.css rel=stylesheet></head><body><div id=app><div id=loader-wrapper><div id=loader></div><div class="loader-section section-left"></div><div class="loader-section section-right"></div><div class=load_title>正在加载系统资源,请耐心等待</div></div></div><script src=/static/js/chunk-elementUI.d8412c44.js></script><script src=/static/js/chunk-libs.01d9bc5c.js></script><script>(function(e){function c(c){for(var t,u,f=c[0],d=c[1],h=c[2],o=0,i=[];o<f.length;o++)u=f[o],r[u]&&i.push(r[u][0]),r[u]=0;for(t in d)Object.prototype.hasOwnProperty.call(d,t)&&(e[t]=d[t]);k&&k(c);while(i.length)i.shift()();return a.push.apply(a,h||[]),n()}function n(){for(var e,c=0;c<a.length;c++){for(var n=a[c],t=!0,u=1;u<n.length;u++){var f=n[u];0!==r[f]&&(t=!1)}t&&(a.splice(c--,1),e=d(d.s=n[0]))}return e}var t={},u={runtime:0},r={runtime:0},a=[];function f(e){return d.p+"static/js/"+({}[e]||e)+"."+{"chunk-08bfcfc0":"742fcd29","chunk-11ac8046":"c76edaea","chunk-44440ec6":"0a14d874","chunk-14fbd231":"2c8c1b7d","chunk-2b2bc302":"137f9ac3","chunk-2d0c741e":"9a348a52","chunk-4d0bca29":"82000d76","chunk-2d0c7ece":"98876292","chunk-2d0cbf05":"598ccefa","chunk-08486bce":"fa430f74","chunk-2d0d67a2":"17869082","chunk-2d0f012d":"f7191be3","chunk-2d226555":"e093ec60","chunk-0b4a9e9a":"ab2815fd","chunk-1340ff7f":"948b127b","chunk-2d0e28b6":"1f3ed8b4","chunk-2feeef12":"476bc9a3","chunk-332f952e":"c5739785","chunk-36c1aa66":"401201d0","chunk-526079f2":"84c7a815","chunk-59a3d3d5":"60fd5c78","chunk-655d6900":"ba1af145","chunk-7c2f4fe6":"6a7b2ae6","chunk-ae4bdaac":"a2428233","chunk-c83e3cc4":"122036fa","chunk-d88cb782":"86aae2ea"}[e]+".js"}function d(c){if(t[c])return t[c].exports;var n=t[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,d),n.l=!0,n.exports}d.e=function(e){var c=[],n={"chunk-08bfcfc0":1,"chunk-44440ec6":1,"chunk-14fbd231":1,"chunk-2b2bc302":1,"chunk-4d0bca29":1,"chunk-1340ff7f":1,"chunk-2feeef12":1,"chunk-332f952e":1,"chunk-36c1aa66":1,"chunk-526079f2":1,"chunk-59a3d3d5":1,"chunk-655d6900":1,"chunk-ae4bdaac":1,"chunk-c83e3cc4":1,"chunk-d88cb782":1};u[e]?c.push(u[e]):0!==u[e]&&n[e]&&c.push(u[e]=new Promise((function(c,n){for(var t="static/css/"+({}[e]||e)+"."+{"chunk-08bfcfc0":"4bb8ee0c","chunk-11ac8046":"31d6cfe0","chunk-44440ec6":"80e50a99","chunk-14fbd231":"2c17e1a3","chunk-2b2bc302":"9ccc1a67","chunk-2d0c741e":"31d6cfe0","chunk-4d0bca29":"3c72d4e5","chunk-2d0c7ece":"31d6cfe0","chunk-2d0cbf05":"31d6cfe0","chunk-08486bce":"31d6cfe0","chunk-2d0d67a2":"31d6cfe0","chunk-2d0f012d":"31d6cfe0","chunk-2d226555":"31d6cfe0","chunk-0b4a9e9a":"31d6cfe0","chunk-1340ff7f":"383a835e","chunk-2d0e28b6":"31d6cfe0","chunk-2feeef12":"fe6be668","chunk-332f952e":"4f92804f","chunk-36c1aa66":"2f3e51dd","chunk-526079f2":"0f99a037","chunk-59a3d3d5":"49f429c7","chunk-655d6900":"a939a6d1","chunk-7c2f4fe6":"31d6cfe0","chunk-ae4bdaac":"3f857bd8","chunk-c83e3cc4":"9183fc08","chunk-d88cb782":"6af4e0b3"}[e]+".css",r=d.p+t,a=document.getElementsByTagName("link"),f=0;f<a.length;f++){var h=a[f],o=h.getAttribute("data-href")||h.getAttribute("href");if("stylesheet"===h.rel&&(o===t||o===r))return c()}var i=document.getElementsByTagName("style");for(f=0;f<i.length;f++){h=i[f],o=h.getAttribute("data-href");if(o===t||o===r)return c()}var k=document.createElement("link");k.rel="stylesheet",k.type="text/css",k.onload=c,k.onerror=function(c){var t=c&&c.target&&c.target.src||r,a=new Error("Loading CSS chunk "+e+" failed.\n("+t+")");a.request=t,delete u[e],k.parentNode.removeChild(k),n(a)},k.href=r;var l=document.getElementsByTagName("head")[0];l.appendChild(k)})).then((function(){u[e]=0})));var t=r[e];if(0!==t)if(t)c.push(t[2]);else{var a=new Promise((function(c,n){t=r[e]=[c,n]}));c.push(t[2]=a);var h,o=document.createElement("script");o.charset="utf-8",o.timeout=120,d.nc&&o.setAttribute("nonce",d.nc),o.src=f(e),h=function(c){o.onerror=o.onload=null,clearTimeout(i);var n=r[e];if(0!==n){if(n){var t=c&&("load"===c.type?"missing":c.type),u=c&&c.target&&c.target.src,a=new Error("Loading chunk "+e+" failed.\n("+t+": "+u+")");a.type=t,a.request=u,n[1](a)}r[e]=void 0}};var i=setTimeout((function(){h({type:"timeout",target:o})}),12e4);o.onerror=o.onload=h,document.head.appendChild(o)}return Promise.all(c)},d.m=e,d.c=t,d.d=function(e,c,n){d.o(e,c)||Object.defineProperty(e,c,{enumerable:!0,get:n})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,c){if(1&c&&(e=d(e)),8&c)return e;if(4&c&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(d.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&c&&"string"!=typeof e)for(var t in e)d.d(n,t,function(c){return e[c]}.bind(null,t));return n},d.n=function(e){var c=e&&e.__esModule?function(){return e["default"]}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="/",d.oe=function(e){throw console.error(e),e};var h=window["webpackJsonp"]=window["webpackJsonp"]||[],o=h.push.bind(h);h.push=c,h=h.slice();for(var i=0;i<h.length;i++)c(h[i]);var k=o;n()})([]);</script><script src=/static/js/app.9cfb4415.js></script></body></html>
\ No newline at end of file \ No newline at end of file
.freightTemplate-add[data-v-33723dcd] .el-dialog{height:80%;overflow:hidden}.freightTemplate-add[data-v-33723dcd] .el-dialog__body{height:calc(100% - 60px);overflow-x:hidden;overflow-y:scroll}.radiomodels .el-radio-button[data-v-33723dcd]{margin:0 10px}[data-v-33723dcd] .radiomodels .el-radio-button .el-radio-button__inner{border:1px solid #dcdfe6!important;border-radius:4px!important}[data-v-33723dcd] .radiomodels .el-radio-button .el-radio-button__orig-radio:checked+.el-radio-button__inner{box-shadow:none}.queryFormInline[data-v-33723dcd]{padding-bottom:20px}.cton_h3[data-v-33723dcd]{margin-left:170px;color:#1890ff}.cton_text[data-v-33723dcd]{width:80%;margin:0 0 30px 170px}.cton_text p[data-v-33723dcd]{font-size:14px;padding:0;margin:5px 0}[data-v-33723dcd] .el-card__body{height:calc(100% - 40px);overflow-y:auto}
\ No newline at end of file
.freightTemplate-add[data-v-d25850a4] .el-dialog{height:80%;overflow:hidden}.freightTemplate-add[data-v-d25850a4] .el-dialog__body{height:calc(100% - 60px);overflow-x:hidden;overflow-y:scroll}.radiomodels .el-radio-button[data-v-d25850a4]{margin:0 10px}[data-v-d25850a4] .radiomodels .el-radio-button .el-radio-button__inner{border:1px solid #dcdfe6!important;border-radius:4px!important}[data-v-d25850a4] .radiomodels .el-radio-button .el-radio-button__orig-radio:checked+.el-radio-button__inner{box-shadow:none}.queryFormInline[data-v-d25850a4]{padding-bottom:20px}.cton_h3[data-v-d25850a4]{margin-left:170px;color:#1890ff}.cton_text[data-v-d25850a4]{width:80%;margin:0 0 30px 170px}.cton_text p[data-v-d25850a4]{font-size:14px;padding:0;margin:5px 0}[data-v-d25850a4] .el-card__body{height:calc(100% - 40px);overflow-y:auto}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08bfcfc0"],{"31fd":function(t,e,n){},"5a97":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"f",(function(){return a})),n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return s})),n.d(e,"e",(function(){return u})),n.d(e,"d",(function(){return l}));var o=n("b775");function r(t){return Object(o["a"])({url:"/system/goodsNew/list",method:"get",params:t})}function a(t){return Object(o["a"])({url:"/system/goodsNew/shelvesStatus",method:"post",data:t})}function c(t){return Object(o["a"])({url:"/system/goodsNew/goodsStatus",method:"post",data:t})}function s(t){return Object(o["a"])({url:"/system/goodsNew/info",method:"get",params:t})}function u(t){return Object(o["a"])({url:"/system/goodsNew/businessList",method:"get",params:t})}function l(t){return Object(o["a"])({url:"/system/goodsNew/collect",method:"post",data:t})}},"6b1f":function(t,e,n){"use strict";n.d(e,"f",(function(){return r})),n.d(e,"b",(function(){return a})),n.d(e,"d",(function(){return c})),n.d(e,"a",(function(){return s})),n.d(e,"h",(function(){return u})),n.d(e,"g",(function(){return l})),n.d(e,"c",(function(){return i})),n.d(e,"i",(function(){return d})),n.d(e,"e",(function(){return f}));var o=n("b775");function r(t){return Object(o["a"])({url:"/local/getOrganization",method:"get",params:t})}function a(t){return Object(o["a"])({url:"/local/organization",method:"post",data:t})}function c(t){return Object(o["a"])({url:"/local/shopbrand",method:"get",params:t})}function s(t){return Object(o["a"])({url:"/local/brands",method:"post",data:t})}function u(t){return Object(o["a"])({url:"/local/upbrands",method:"post",data:t})}function l(t){return Object(o["a"])({url:"/local/getShopInfo",method:"get",params:t})}function i(t){return Object(o["a"])({url:"/local/addShopInfo",method:"post",data:t})}function d(t){return Object(o["a"])({url:"/system/goods/uploadImg",method:"post",data:t})}function f(t){return Object(o["a"])({url:"/local/cate",method:"get",params:t})}},8875:function(t,e,n){"use strict";n("31fd")},e3b2:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t._v("商品导入")]),t._v(" "),n("h3",{staticClass:"cton_h3"},[t._v("已使用次数:"+t._s(t.collect_num)+" / 1000次")]),t._v(" "),n("div",{staticClass:"cton_text"},[n("p",[t._v("功能介绍:")]),t._v(" "),n("p",[t._v("\n 商品导入是为了商家快速、方便地将其它平台上已有的商品,一键导入到您的云仓平台,不再用手动输入编写商品信息\n ")]),t._v(" "),n("p",[t._v("使用方法:")]),t._v(" "),n("p",[t._v("\n 复制其它电商平台的商品链接,粘贴至商品链接输入框内,为该商品选择对应的商品分类,选择完成后点击立即获取按钮即可\n ")]),t._v(" "),n("p",[t._v("示例:")]),t._v(" "),n("p",[t._v("京东商品链接如:https://item.jd.com/10684560542.html")]),t._v(" "),n("p",[t._v("温馨提示:")]),t._v(" "),n("p",[t._v("商品在获取过程中,请不要进行其它操作")]),t._v(" "),n("p",[t._v("\n 商品抓取后,默认放入到下架商品中,请手动修改商品相关信息,再提交申请上架\n ")]),t._v(" "),n("p",[t._v("请确保不要将多个平台的商品链接混合输入")]),t._v(" "),n("p",[t._v("每个用户默认拥有1000次商品导入的机会,请慎重使用")])]),t._v(" "),n("el-form",{ref:"form",attrs:{model:t.form,"label-width":"180px"}},[n("el-form-item",{attrs:{label:"商品链接:"}},[n("el-input",{staticStyle:{width:"700px"},attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"请输入其它平台商品的链接,单次最多允许输入10条链接,以英文逗号隔开"},model:{value:t.form.desc,callback:function(e){t.$set(t.form,"desc",e)},expression:"form.desc"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"商品分类:"}},[t.el_valuestatus?n("el-cascader",{staticStyle:{width:"350px"},attrs:{props:t.props,options:t.options,placeholder:"请选择"},on:{change:t.elvalueclick},model:{value:t.el_value,callback:function(e){t.el_value=e},expression:"el_value"}}):t._e()],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("立即导入")])],1)],1)],1)],1)},r=[],a=(n("fc02"),n("6b1f")),c=n("5a97"),s=(n("ed08"),{name:"freight",data:function(){return{collect_num:0,form:{desc:""},el_valuestatus:!0,el_value:[],options:[],props:{checkStrictly:!1,expandTrigger:"click",emitPath:!0,value:"id",label:"label"}}},components:{},created:function(){this.getData(),this.info()},watch:{},methods:{info:function(){var t=this;Object(a["g"])().then((function(e){1==e.code&&(t.collect_num=e.data.collect_num)}))},onSubmit:function(){var t,e=this;if(!this.form.desc)return this.$message.error("请填写需要导入的商品链接!"),!1;if(t=this.form.desc.split(","),!(t.length>0))return this.$message.error("请填写需要导入的商品链接!"),!1;if(3!=this.el_value.length)return this.$message.error("请选择商品分类!"),!1;console.log(this.el_value);var n={category_id:this.el_value[2],third_url:t};Object(c["d"])(n).then((function(t){1==t.code&&(e.$message({message:t.message,type:"success"}),e.el_value=[],his.form.desc="")}))},elvalueclick:function(){},getData:function(){var t=this;Object(c["e"])().then((function(e){1==e.code&&(t.options=e.data)}))}}}),u=s,l=(n("8875"),n("5d22")),i=Object(l["a"])(u,o,r,!1,null,"33723dcd",null);e["default"]=i.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7bd11a84"],{"5a97":function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"f",(function(){return r})),n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return s})),n.d(e,"e",(function(){return u})),n.d(e,"d",(function(){return l}));var o=n("b775");function a(t){return Object(o["a"])({url:"/system/goodsNew/list",method:"get",params:t})}function r(t){return Object(o["a"])({url:"/system/goodsNew/shelvesStatus",method:"post",data:t})}function c(t){return Object(o["a"])({url:"/system/goodsNew/goodsStatus",method:"post",data:t})}function s(t){return Object(o["a"])({url:"/system/goodsNew/info",method:"get",params:t})}function u(t){return Object(o["a"])({url:"/system/goodsNew/businessList",method:"get",params:t})}function l(t){return Object(o["a"])({url:"/system/goodsNew/collect",method:"post",data:t})}},"6b1f":function(t,e,n){"use strict";n.d(e,"f",(function(){return a})),n.d(e,"b",(function(){return r})),n.d(e,"d",(function(){return c})),n.d(e,"a",(function(){return s})),n.d(e,"h",(function(){return u})),n.d(e,"g",(function(){return l})),n.d(e,"c",(function(){return i})),n.d(e,"i",(function(){return d})),n.d(e,"e",(function(){return f}));var o=n("b775");function a(t){return Object(o["a"])({url:"/local/getOrganization",method:"get",params:t})}function r(t){return Object(o["a"])({url:"/local/organization",method:"post",data:t})}function c(t){return Object(o["a"])({url:"/local/shopbrand",method:"get",params:t})}function s(t){return Object(o["a"])({url:"/local/brands",method:"post",data:t})}function u(t){return Object(o["a"])({url:"/local/upbrands",method:"post",data:t})}function l(t){return Object(o["a"])({url:"/local/getShopInfo",method:"get",params:t})}function i(t){return Object(o["a"])({url:"/local/addShopInfo",method:"post",data:t})}function d(t){return Object(o["a"])({url:"/system/goods/uploadImg",method:"post",data:t})}function f(t){return Object(o["a"])({url:"/local/cate",method:"get",params:t})}},bf04:function(t,e,n){},c1ec:function(t,e,n){"use strict";n("bf04")},e3b2:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t._v("商品导入")]),t._v(" "),n("h3",{staticClass:"cton_h3"},[t._v("已使用次数:"+t._s(t.collect_num)+" / 1000次")]),t._v(" "),n("div",{staticClass:"cton_text"},[n("p",[t._v("功能介绍:")]),t._v(" "),n("p",[t._v("\n 商品导入是为了商家快速、方便地将其它平台上已有的商品,一键导入到您的云仓平台,不再用手动输入编写商品信息\n ")]),t._v(" "),n("p",[t._v("使用方法:")]),t._v(" "),n("p",[t._v("\n 复制其它电商平台的商品链接,粘贴至商品链接输入框内,为该商品选择对应的商品分类,选择完成后点击立即获取按钮即可\n ")]),t._v(" "),n("p",[t._v("示例:")]),t._v(" "),n("p",[t._v("京东商品链接如:https://item.jd.com/10684560542.html")]),t._v(" "),n("p",[t._v("温馨提示:")]),t._v(" "),n("p",[t._v("商品在获取过程中,请不要进行其它操作")]),t._v(" "),n("p",[t._v("\n 商品抓取后,默认放入到下架商品中,请手动修改商品相关信息,再提交申请上架\n ")]),t._v(" "),n("p",[t._v("请确保不要将多个平台的商品链接混合输入")]),t._v(" "),n("p",[t._v("每个用户默认拥有1000次商品导入的机会,请慎重使用")])]),t._v(" "),n("el-form",{ref:"form",attrs:{model:t.form,"label-width":"180px"}},[n("el-form-item",{attrs:{label:"商品链接:"}},[n("el-input",{staticStyle:{width:"700px"},attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"请输入其它平台商品的链接,单次最多允许输入10条链接,以英文逗号隔开"},model:{value:t.form.desc,callback:function(e){t.$set(t.form,"desc",e)},expression:"form.desc"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"商品分类:"}},[t.el_valuestatus?n("el-cascader",{staticStyle:{width:"350px"},attrs:{props:t.props,options:t.options,placeholder:"请选择"},on:{change:t.elvalueclick},model:{value:t.el_value,callback:function(e){t.el_value=e},expression:"el_value"}}):t._e()],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("立即导入")])],1)],1)],1)],1)},a=[],r=(n("fc02"),n("6b1f")),c=n("5a97"),s=(n("ed08"),{name:"freight",data:function(){return{collect_num:0,form:{desc:""},el_valuestatus:!0,el_value:[],options:[],props:{checkStrictly:!1,expandTrigger:"click",emitPath:!0,value:"id",label:"label"}}},components:{},created:function(){this.getData(),this.info()},watch:{},methods:{info:function(){var t=this;Object(r["g"])().then((function(e){1==e.code&&(t.collect_num=e.data.collect_num)}))},onSubmit:function(){var t,e=this;if(!this.form.desc)return this.$message.error("请填写需要导入的商品链接!"),!1;if(t=this.form.desc.split(","),!(t.length>0))return this.$message.error("请填写需要导入的商品链接!"),!1;if(2!=this.el_value.length)return this.$message.error("请选择商品分类!"),!1;console.log(this.el_value);var n={category_id:this.el_value[2],third_url:t};Object(c["d"])(n).then((function(t){1==t.code&&(e.$message({message:t.message,type:"success"}),e.el_value=[],his.form.desc="")}))},elvalueclick:function(){},getData:function(){var t=this;Object(c["e"])().then((function(e){1==e.code&&(t.options=e.data)}))}}}),u=s,l=(n("c1ec"),n("5d22")),i=Object(l["a"])(u,o,a,!1,null,"d25850a4",null);e["default"]=i.exports}}]);
\ No newline at end of file
...@@ -103,7 +103,7 @@ export default { ...@@ -103,7 +103,7 @@ export default {
this.$message.error('请填写需要导入的商品链接!'); this.$message.error('请填写需要导入的商品链接!');
return false return false
} }
if(this.el_value.length==2){ if(this.el_value.length==3){
}else{ }else{
this.$message.error('请选择商品分类!'); this.$message.error('请选择商品分类!');
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论