(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fd8c1156"],{"2f2c":function(t,e,a){"use strict";a.d(e,"b",(function(){return u})),a.d(e,"c",(function(){return d})),a.d(e,"p",(function(){return m})),a.d(e,"d",(function(){return f})),a.d(e,"a",(function(){return h})),a.d(e,"g",(function(){return p})),a.d(e,"h",(function(){return g})),a.d(e,"j",(function(){return b})),a.d(e,"i",(function(){return v})),a.d(e,"e",(function(){return y})),a.d(e,"m",(function(){return w})),a.d(e,"o",(function(){return _})),a.d(e,"l",(function(){return k})),a.d(e,"n",(function(){return x})),a.d(e,"k",(function(){return C})),a.d(e,"f",(function(){return O}));var r=a("b775");function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function n(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function o(t){for(var e=1;e2,"active-value":!0,"inactive-value":!1,"active-text":"上架","inactive-text":"下架"},on:{change:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.isShow,callback:function(a){t.$set(e.row,"isShow",a)},expression:"scope.row.isShow"}}):a("span",[t._v(t._s(e.row.isShow?"上架":"下架"))])]}}],null,!1,2130604273)}):t._e(),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right",align:"center","render-header":t.renderHeader},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{attrs:{to:{path:"/store/list/creatProduct/"+e.row.id+"/1"}}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["admin:product:info"],expression:"['admin:product:info']"}],staticClass:"mr10",attrs:{type:"text",size:"small"}},[t._v("详情")])],1),t._v(" "),a("router-link",{attrs:{to:{path:"/store/list/creatProduct/"+e.row.id}}},["5"!==t.tableFrom.type&&"1"!==t.tableFrom.type?a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["admin:product:update"],expression:"['admin:product:update']"}],staticClass:"mr10",attrs:{type:"text",size:"small"}},[t._v("编辑")]):t._e()],1),t._v(" "),"5"===t.tableFrom.type?a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["admin:product:restore"],expression:"['admin:product:restore']"}],attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleRestore(e.row.id,e.$index)}}},[t._v("恢复商品")]):t._e(),t._v(" "),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["admin:product:delete"],expression:"['admin:product:delete']"}],attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.id,t.tableFrom.type)}}},[t._v(t._s("5"===t.tableFrom.type?"删除":"加入回收站"))])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.card_select_show,expression:"card_select_show"}],staticClass:"card_abs"},[[a("div",{staticClass:"cell_ht"},[a("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("全选")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(e){return t.checkSave()}}},[t._v("保存")])],1),t._v(" "),a("el-checkbox-group",{on:{change:t.handleCheckedCitiesChange},model:{value:t.checkedCities,callback:function(e){t.checkedCities=e},expression:"checkedCities"}},t._l(t.columnData,(function(e){return a("el-checkbox",{key:e,staticClass:"check_cell",attrs:{label:e}},[t._v(t._s(e))])})),1)]],2),t._v(" "),a("el-dialog",{staticClass:"taoBaoModal",attrs:{title:"复制淘宝、天猫、京东、苏宁",visible:t.dialogVisible,"close-on-click-modal":!1,width:"1200px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[t.dialogVisible?a("tao-bao",{on:{handleCloseMod:t.handleCloseMod}}):t._e()],1)],1)},i=[],n=a("73f5"),o=(a("5f87"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"Box"},[a("el-card",[a("div",{staticClass:"line-ht"},[t._v("\n 生成的商品默认是没有上架的,请手动上架商品!\n "),t.copyConfig.copyType&&1==t.copyConfig.copyType?a("span",[t._v("您当前剩余"+t._s(t.copyConfig.copyNum)+"条采集次数,\n "),a("router-link",{attrs:{to:{path:"/operation/systemSms/pay?type=copy"}}},[a("span",{staticStyle:{color:"#1890ff"}},[t._v("增加采集次数")])])],1):t._e(),t._v(" "),t.copyConfig.copyType&&1!=t.copyConfig.copyType?a("el-link",{attrs:{type:"primary",underline:!1,href:"https://help.crmeb.net/crmeb_java/2103903",target:"_blank"}},[t._v("如何配置密钥\n ")]):t._e(),t._v(" "),a("br"),t._v("\n 商品采集设置:设置 > 系统设置 > 第三方接口设置 >\n 采集商品配置(如配置一号通采集,请先登录一号通账号,无一号通,请选择99Api设置)\n ")],1)]),t._v(" "),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"formValidate",staticClass:"formValidate mt20",attrs:{model:t.formValidate,rules:t.ruleInline,"label-width":"120px"},nativeOn:{submit:function(t){t.preventDefault()}}},[t.copyConfig.copyType&&1!=t.copyConfig.copyType?a("el-form-item",[a("el-radio-group",{model:{value:t.form,callback:function(e){t.form=e},expression:"form"}},[a("el-radio",{attrs:{label:1}},[t._v("淘宝")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("京东")]),t._v(" "),a("el-radio",{attrs:{label:5}},[t._v("天猫")])],1)],1):t._e(),t._v(" "),a("el-row",{attrs:{gutter:24}},[t.copyConfig.copyType?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"链接地址:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入链接地址",size:"small"},model:{value:t.url,callback:function(e){t.url=e},expression:"url"}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["admin:product:copy:product","admin:product:import:product"],expression:"['admin:product:copy:product', 'admin:product:import:product']"}],attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:t.add},slot:"append"})],1)],1)],1):t._e(),t._v(" "),t.formValidate?a("el-col",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品名称:",prop:"storeName"}},[a("el-input",{attrs:{maxlength:"249",placeholder:"请输入商品名称"},model:{value:t.formValidate.storeName,callback:function(e){t.$set(t.formValidate,"storeName",e)},expression:"formValidate.storeName"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品分类:",prop:"cateIds"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:t.merCateList,props:t.props2,clearable:"","show-all-levels":!1},model:{value:t.formValidate.cateIds,callback:function(e){t.$set(t.formValidate,"cateIds",e)},expression:"formValidate.cateIds"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品关键字:",prop:"keyword"}},[a("el-input",{attrs:{placeholder:"请输入商品关键字"},model:{value:t.formValidate.keyword,callback:function(e){t.$set(t.formValidate,"keyword",e)},expression:"formValidate.keyword"}})],1)],1),t._v(" "),a("el-col",t._b({},"el-col",t.grid,!1),[a("el-form-item",{attrs:{label:"单位:",prop:"unitName"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入单位"},model:{value:t.formValidate.unitName,callback:function(e){t.$set(t.formValidate,"unitName",e)},expression:"formValidate.unitName"}})],1)],1),t._v(" "),a("el-col",t._b({},"el-col",t.grid,!1),[a("el-form-item",{attrs:{label:"运费模板:",prop:"tempId"}},[a("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择"},model:{value:t.formValidate.tempId,callback:function(e){t.$set(t.formValidate,"tempId",e)},expression:"formValidate.tempId"}},t._l(t.shippingList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品封面图:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(e){return t.modalPicTap("1")}}},[t.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:t.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品轮播图:"}},[a("div",{staticClass:"acea-row"},t._l(t.formValidate.sliderImages,(function(e,r){return a("div",{key:r,staticClass:"lunBox mr5",attrs:{draggable:"false"},on:{dragstart:function(a){return t.handleDragStart(a,e)},dragover:function(a){return a.preventDefault(),t.handleDragOver(a,e)},dragenter:function(a){return t.handleDragEnter(a,e)},dragend:function(a){return t.handleDragEnd(a,e)}}},[a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:e}})]),t._v(" "),a("el-button-group",[a("el-button",{attrs:{size:"mini"},nativeOn:{click:function(a){return t.checked(e,r)}}},[t._v("主图")]),t._v(" "),a("el-button",{attrs:{size:"mini"},nativeOn:{click:function(e){return t.handleRemove(r)}}},[t._v("移除")])],1)],1)})),0)])],1),t._v(" "),t.formValidate.specType||t.formValidate.attr.length?a("el-col",{staticClass:"noForm",attrs:{span:24}},[a("el-form-item",{staticClass:"labeltop",attrs:{label:"批量设置:"}},[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.oneFormBatch,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(e){return t.modalPicTap("1","pi")}}},[e.row.image?a("div",{staticClass:"pictrue pictrueTab"},[a("img",{attrs:{src:e.row.image}})]):a("div",{staticClass:"upLoad pictrueTab"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,1553658878)}),t._v(" "),t._l(t.attrValue,(function(e,r){return a("el-table-column",{key:r,attrs:{label:t.formThead[r].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"priceBox",attrs:{type:"商品编号"===t.formThead[r].title?"text":"number",min:0},model:{value:e.row[r],callback:function(a){t.$set(e.row,r,a)},expression:"scope.row[iii]"}})]}}],null,!0)})})),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作","min-width":"80"}},[[a("el-button",{staticClass:"submission",attrs:{type:"text"},on:{click:t.batchAdd}},[t._v("批量添加")])]],2)],2)],1)],1):t._e(),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品规格:",props:"spec_type","label-for":"spec_type"}},[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.formValidate.attrValue,border:"",size:"mini"}},[t.manyTabDate?t._l(t.manyTabDate,(function(e,r){return a("el-table-column",{key:r,attrs:{align:"center",label:t.manyTabTit[r].title,"min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[r])}})]}}],null,!0)})})):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-form-item",{attrs:{rules:[{required:!0,message:"请上传图片",trigger:"change"}],prop:"attrValue."+e.$index+".image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(a){return t.modalPicTap("1","duo",e.$index)}}},[e.row.image?a("div",{staticClass:"pictrue pictrueTab"},[a("img",{attrs:{src:e.row.image}})]):a("div",{staticClass:"upLoad pictrueTab"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])]}}],null,!1,3597918585)}),t._v(" "),t._l(t.attrValue,(function(e,r){return a("el-table-column",{key:r,attrs:{label:t.formThead[r].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-form-item",{attrs:{rules:[{required:!0,message:"请输入"+t.formThead[r].title,trigger:"blur"}],prop:"商品编号"!==t.formThead[r].title?"attrValue."+e.$index+"."+r:""}},[a("el-input",{staticClass:"priceBox",attrs:{type:"商品编号"===t.formThead[r].title?"text":"number"},model:{value:e.row[r],callback:function(a){t.$set(e.row,r,a)},expression:"scope.row[iii]"}})],1)]}}],null,!0)})})),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"submission",attrs:{type:"text"},on:{click:function(a){return t.delAttrTable(e.$index)}}},[t._v("删除")])]}}],null,!1,2803824461)})],2)],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品详情:"}},[a("Tinymce",{model:{value:t.formValidate.content,callback:function(e){t.$set(t.formValidate,"content",e)},expression:"formValidate.content"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"排序:"}},[a("el-input-number",{attrs:{max:9999,placeholder:"请输入排序",disabled:t.isDisabled},model:{value:t.formValidate.sort,callback:function(e){t.$set(t.formValidate,"sort",e)},expression:"formValidate.sort"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"积分:"}},[a("el-input-number",{attrs:{placeholder:"请输入排序",disabled:t.isDisabled},model:{value:t.formValidate.giveIntegral,callback:function(e){t.$set(t.formValidate,"giveIntegral",e)},expression:"formValidate.giveIntegral"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"虚拟销量:"}},[a("el-input-number",{attrs:{placeholder:"请输入排序",disabled:t.isDisabled},model:{value:t.formValidate.ficti,callback:function(e){t.$set(t.formValidate,"ficti",e)},expression:"formValidate.ficti"}})],1)],1)],1)]],2),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品推荐:"}},[a("el-checkbox-group",{attrs:{size:"small",disabled:t.isDisabled},on:{change:t.onChangeGroup},model:{value:t.checkboxGroup,callback:function(e){t.checkboxGroup=e},expression:"checkboxGroup"}},t._l(t.recommend,(function(e,r){return a("el-checkbox",{key:r,attrs:{label:e.value}},[t._v(t._s(e.name))])})),1)],1)],1)],1)]],2),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",[a("el-button",{staticClass:"submission",attrs:{type:"primary",loading:t.modal_loading},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("提交\n ")])],1)],1)],1):t._e()],1)],1)],1)}),s=[],l=a("e7ac"),c=a("8256"),u=a("2f2c"),d=a("61f7");function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function f(t){return g(t)||p(t)||V(t)||h()}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function g(t){if(Array.isArray(t))return j(t)}function b(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */b=function(){return e};var t,e={},a=Object.prototype,r=a.hasOwnProperty,i=Object.defineProperty||function(t,e,a){t[e]=a.value},n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",s=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function c(t,e,a){return Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,a){return t[e]=a}}function u(t,e,a,r){var n=e&&e.prototype instanceof y?e:y,o=Object.create(n.prototype),s=new T(r||[]);return i(o,"_invoke",{value:S(t,a,s)}),o}function d(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",g="completed",v={};function y(){}function w(){}function _(){}var k={};c(k,o,(function(){return this}));var x=Object.getPrototypeOf,C=x&&x(x(L([])));C&&C!==a&&r.call(C,o)&&(k=C);var O=_.prototype=y.prototype=Object.create(k);function V(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function a(i,n,o,s){var l=d(t[i],t,n);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==m(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){a("next",t,o,s)}),(function(t){a("throw",t,o,s)})):e.resolve(u).then((function(t){c.value=t,o(c)}),(function(t){return a("throw",t,o,s)}))}s(l.arg)}var n;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){a(t,r,e,i)}))}return n=n?n.then(i,i):i()}})}function S(e,a,r){var i=f;return function(n,o){if(i===p)throw new Error("Generator is already running");if(i===g){if("throw"===n)throw o;return{value:t,done:!0}}for(r.method=n,r.arg=o;;){var s=r.delegate;if(s){var l=I(s,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var c=d(e,a,r);if("normal"===c.type){if(i=r.done?g:h,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=g,r.method="throw",r.arg=c.arg)}}}function I(e,a){var r=a.method,i=e.iterator[r];if(i===t)return a.delegate=null,"throw"===r&&e.iterator.return&&(a.method="return",a.arg=t,I(e,a),"throw"===a.method)||"return"!==r&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var n=d(i,e.iterator,a.arg);if("throw"===n.type)return a.method="throw",a.arg=n.arg,a.delegate=null,v;var o=n.arg;return o?o.done?(a[e.resultName]=o.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,v):o:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,v)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function L(e){if(e||""===e){var a=e[o];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,n=function a(){for(;++i=0;--n){var o=this.tryEntries[n],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--a){var i=this.tryEntries[a];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var a=this.tryEntries[e];if(a.finallyLoc===t)return this.complete(a.completion,a.afterLoc),P(a),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.tryLoc===t){var r=a.completion;if("throw"===r.type){var i=r.arg;P(a)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,a,r){return this.delegate={iterator:L(e),resultName:a,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function v(t,e,a,r,i,n,o){try{var s=t[n](o),l=s.value}catch(c){return void a(c)}s.done?e(l):Promise.resolve(l).then(r,i)}function y(t){return function(){var e=this,a=arguments;return new Promise((function(r,i){var n=t.apply(e,a);function o(t){v(n,r,i,o,s,"next",t)}function s(t){v(n,r,i,o,s,"throw",t)}o(void 0)}))}}function w(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function _(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o=!0,s=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return o=t.done,t},e:function(t){s=!0,n=t},f:function(){try{o||null==a.return||a.return()}finally{if(s)throw n}}}}function V(t,e){if(t){if("string"===typeof t)return j(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?j(t,e):void 0}}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,r=new Array(e);a1)t.forEach((function(r,i){0===i&&(e=t[i]["attrValue"]);var n=[];e.forEach((function(e){t[i+1]&&t[i+1]["attrValue"]&&t[i+1]["attrValue"].forEach((function(r){var o=(0!==i?"":t[i]["attrName"]+"_")+e+"$&"+t[i+1]["attrName"]+"_"+r;if(n.push(o),i===t.length-2){var s={image:"",price:0,cost:0,otPrice:0,stock:0,barCode:"",weight:0,volume:0,brokerage:0,brokerage_two:0};for(var l in o.split("$&").forEach((function(t,e){var a=t.split("_");s["attrValue"]||(s["attrValue"]={}),s["attrValue"][a[0]]=a.length>1?a[1]:""})),s.attrValue)s[l]=s.attrValue[l];a.push(s)}}))})),e=n.length?n:[]}));else{var r=[];t.forEach((function(t,e){t["attrValue"].forEach((function(e,i){for(var n in r[i]=t["attrName"]+"_"+e,a[i]={image:"",price:0,cost:0,otPrice:0,stock:0,barCode:"",weight:0,volume:0,brokerage:0,brokerage_two:0,attrValue:k({},t["attrName"],e)},a[i].attrValue)a[i][n]=a[i].attrValue[n]}))})),e.push(r.join("$&"))}return a}},productGetTemplate:function(){var t=this;Object(u["m"])(this.tempData).then((function(e){t.shippingList=e.list}))},handleRemove:function(t){this.formValidate.sliderImages.splice(t,1),this.$forceUpdate()},checked:function(t,e){this.formValidate.image=t},goodsCategory:function(){var t=this;Object(n["d"])({status:-1,type:1}).then((function(e){t.merCateList=t.addDisabled(e)}))},addDisabled:function(t){var e=this,a=[];try{t.forEach((function(t,r){var i={id:t.id,name:t.name,level:t.level,pid:t.pid,sort:t.sort,status:t.status};if(t.status||(i=_(_({},i),{},{disabled:!0})),t.child){var n=e.addDisabled(t.child);i=_(_({},i),{},{child:n})}a.push(i)}))}catch(r){return console.log(r),[]}return a},add:function(){var t=this;this.url?(this.loading=!0,1==this.copyConfig.copyType?Object(n["f"])({url:this.url}).then((function(e){var a=e.info;t.formValidate={image:t.$selfUtil.setDomain(a.image),sliderImage:a.sliderImage,storeName:a.storeName,keyword:a.keyword,cateIds:a.cateId?a.cateId.split(","):[],cateId:a.cateId,unitName:a.unitName,sort:0,isShow:0,isBenefit:!1,isNew:!1,isGood:!1,isHot:!1,isBest:!1,tempId:a.tempId,attrValue:a.attrValue,attr:a.attr||[],selectRule:a.selectRule,isSub:!1,content:t.$selfUtil.replaceImgSrcHttps(a.content),specType:!!a.attr.length,id:a.id,giveIntegral:a.giveIntegral,ficti:a.ficti},a.isHot&&t.checkboxGroup.push("isHot"),a.isGood&&t.checkboxGroup.push("isGood"),a.isBenefit&&t.checkboxGroup.push("isBenefit"),a.isBest&&t.checkboxGroup.push("isBest"),a.isNew&&t.checkboxGroup.push("isNew");var r=JSON.parse(a.sliderImage),i=[];if(Object.keys(r).map((function(e){i.push(t.$selfUtil.setDomain(r[e]))})),t.formValidate.sliderImages=i,t.formValidate.attr.length){t.oneFormBatch[0].image=t.$selfUtil.setDomain(a.image);for(var n=0;n10)return this.$message.warning("最多选择10张图片!");if(i.length+r.formValidate.sliderImages.length>10)return this.$message.warning("最多选择10张图片!");i.map((function(t){r.formValidate.sliderImages.push(t.sattDir)}))}"1"===t&&"dan"===e&&(r.OneattrValue[0].image=i[0].sattDir),"1"===t&&"duo"===e&&(r.formValidate.attrValue[a].image=i[0].sattDir),"1"===t&&"pi"===e&&(r.oneFormBatch[0].image=i[0].sattDir)}),t,"store")},handleDragStart:function(t,e){this.dragging=e},handleDragEnd:function(t,e){this.dragging=null},handleDragOver:function(t){t.dataTransfer.dropEffect="move"},handleDragEnter:function(t,e){if(t.dataTransfer.effectAllowed="move",e!==this.dragging){var a=f(this.formValidate.slider_image),r=a.indexOf(this.dragging),i=a.indexOf(e);a.splice.apply(a,[i,0].concat(f(a.splice(r,1)))),this.formValidate.slider_image=a}},getGoodsType:function(){var t=this;Object(l["d"])({gid:70}).then((function(e){var a=e.list,r=[],i=[],n=[{name:"是否热卖",value:"isGood",type:"5"}],o=[{name:"",value:"isHot",type:"2"},{name:"",value:"isBenefit",type:"4"},{name:"",value:"isBest",type:"1"},{name:"",value:"isNew",type:"3"}];a.forEach((function(t){var e={};e.value=JSON.parse(t.value),e.id=t.id,e.gid=t.gid,e.status=t.status,r.push(e)})),r.forEach((function(t){var e={};e.name=t.value.fields[1].value,e.status=t.status,e.type=t.value.fields[3].value,i.push(e)})),o.forEach((function(t){i.forEach((function(e){t.type==e.type&&n.push({name:e.name,value:t.value,type:t.type})}))})),t.recommend=n}))}}},P=N,T=(a("f9d0"),a("2877")),L=Object(T["a"])(P,o,s,!1,null,"64dfc88b",null),$=L.exports,D=a("e350"),E={name:"ProductList",components:{taoBao:$},data:function(){return{props:{children:"child",label:"name",value:"id",emitPath:!1},headeNum:[],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20,cateId:"",keywords:"",type:"1"},categoryList:[],merCateList:[],objectUrl:"http://117.50.163.143:20400",dialogVisible:!1,card_select_show:!1,checkAll:!1,checkedCities:["ID","商品图","商品名称","商品售价","销量","库存","排序","状态","操作时间"],columnData:["ID","商品图","商品名称","商品售价","销量","库存","排序","状态","操作时间"],isIndeterminate:!0}},mounted:function(){this.goodHeade(),this.getList(),this.getCategorySelect(),this.checkedCities=this.$cache.local.has("goods_stroge")?this.$cache.local.getJSON("goods_stroge"):this.checkedCities},methods:{checkPermi:D["a"],handleRestore:Object(d["a"])((function(t){var e=this;this.$modalSure("恢复商品").then((function(){Object(n["w"])(t).then((function(t){e.$message.success("操作成功"),e.goodHeade(),e.getList()}))}))})),seachList:function(){this.tableFrom.page=1,this.getList()},handleClose:function(){this.dialogVisible=!1},handleCloseMod:function(t){this.dialogVisible=t,this.goodHeade(),this.getList()},onCopy:function(){this.dialogVisible=!0},exports:function(){Object(n["m"])({cateId:this.tableFrom.cateId,keywords:this.tableFrom.keywords,type:this.tableFrom.type}).then((function(t){window.location.href=t.fileName}))},goodHeade:function(){var t=this;Object(n["n"])().then((function(e){t.headeNum=e})).catch((function(e){t.$message.error(e.message)}))},getCategorySelect:function(){var t=this;Object(n["d"])({status:-1,type:1}).then((function(e){t.merCateList=e})).catch((function(e){t.$message.error(e.message)}))},getList:function(){var t=this;this.listLoading=!0,Object(n["o"])(this.tableFrom).then((function(e){t.tableData.data=e.list,t.tableData.total=e.total,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()},handleDelete:function(t,e){var a=this;this.$modalSure("5"===this.tableFrom.type?"删除 id 为 ".concat(t," 的商品吗?"):"将 id 为 ".concat(t," 的商品加入回收站吗?")).then((function(){var r=5==e?"delete":"recycle";Object(n["k"])(t,r).then((function(){a.$message.success("删除成功"),1===a.tableData.data.length&&a.tableFrom.page>1&&(a.tableFrom.page=a.tableFrom.page-1),a.getList(),a.goodHeade()}))}))},onchangeIsShow:function(t){var e=this;t.isShow?Object(n["q"])(t.id).then((function(){e.$message.success("上架成功"),e.getList(),e.goodHeade()})).catch((function(){t.isShow=!t.isShow})):Object(n["h"])(t.id).then((function(){e.$message.success("下架成功"),e.getList(),e.goodHeade()})).catch((function(){t.isShow=!t.isShow}))},renderHeader:function(t){var e=this;return t("p",[t("span",{style:"padding-right:5px;"},["操作"]),t("i",{class:"el-icon-setting",on:{click:function(){return e.handleAddItem()}}})])},handleAddItem:function(){this.card_select_show?this.$set(this,"card_select_show",!1):this.card_select_show||this.$set(this,"card_select_show",!0)},handleCheckAllChange:function(t){this.checkedCities=t?this.columnData:[],this.isIndeterminate=!1},handleCheckedCitiesChange:function(t){var e=t.length;this.checkAll=e===this.columnData.length,this.isIndeterminate=e>0&&e