chunk-27e54183.8cab34dd.js 13 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-27e54183"],{"14c6":function(t,e,s){"use strict";s.d(e,"p",(function(){return a})),s.d(e,"z",(function(){return n})),s.d(e,"A",(function(){return r})),s.d(e,"w",(function(){return i})),s.d(e,"E",(function(){return d})),s.d(e,"x",(function(){return l})),s.d(e,"F",(function(){return u})),s.d(e,"D",(function(){return c})),s.d(e,"y",(function(){return g})),s.d(e,"B",(function(){return p})),s.d(e,"C",(function(){return f})),s.d(e,"c",(function(){return h})),s.d(e,"g",(function(){return m})),s.d(e,"h",(function(){return _})),s.d(e,"d",(function(){return b})),s.d(e,"e",(function(){return v})),s.d(e,"f",(function(){return y})),s.d(e,"H",(function(){return w})),s.d(e,"K",(function(){return x})),s.d(e,"I",(function(){return S})),s.d(e,"J",(function(){return k})),s.d(e,"G",(function(){return C})),s.d(e,"O",(function(){return j})),s.d(e,"L",(function(){return O})),s.d(e,"M",(function(){return D})),s.d(e,"N",(function(){return L})),s.d(e,"i",(function(){return $})),s.d(e,"n",(function(){return B})),s.d(e,"j",(function(){return G})),s.d(e,"o",(function(){return z})),s.d(e,"k",(function(){return I})),s.d(e,"m",(function(){return N})),s.d(e,"l",(function(){return T})),s.d(e,"P",(function(){return P})),s.d(e,"S",(function(){return q})),s.d(e,"Q",(function(){return R})),s.d(e,"R",(function(){return A})),s.d(e,"t",(function(){return E})),s.d(e,"s",(function(){return F})),s.d(e,"u",(function(){return J})),s.d(e,"v",(function(){return K})),s.d(e,"r",(function(){return H})),s.d(e,"q",(function(){return M})),s.d(e,"T",(function(){return Q})),s.d(e,"U",(function(){return U})),s.d(e,"V",(function(){return V})),s.d(e,"W",(function(){return W})),s.d(e,"a",(function(){return X})),s.d(e,"b",(function(){return Y})),s.d(e,"Y",(function(){return Z})),s.d(e,"X",(function(){return tt}));var o=s("f175");const a=t=>o.a.post("/goods.goods/add",t),n=t=>o.a.post("/goods.goods/edit",t),r=t=>o.a.get("/goods.goods/lists",{params:t}),i=t=>o.a.get("/goods.goods/commonLists",{params:t}),d=t=>o.a.post("/goods.goods/status",t),l=t=>o.a.post("/goods.goods/del",t),u=t=>o.a.post("/goods.goods/changeCategory",t),c=t=>o.a.post("/goods.goods/sort",t),g=t=>o.a.get("/goods.goods/detail",{params:{id:t}}),p=t=>o.a.get("/goods.goods/otherList",{params:t}),f=t=>o.a.post("goods.goods/rename ",t),h=t=>o.a.post("/goods.goods_brand/add",t),m=t=>o.a.get("/goods.goods_brand/lists",{params:t}),_=t=>o.a.post("/goods.goods_brand/status",t),b=t=>o.a.post("/goods.goods_brand/del",t),v=t=>o.a.get("/goods.goods_brand/detail",{params:{id:t}}),y=t=>o.a.post("/goods.goods_brand/edit",t),w=t=>o.a.post("/goods.goods_supplier_category/add",t),x=t=>o.a.get("goods.goods_supplier_category/lists",{params:t}),S=t=>o.a.post("goods.goods_supplier_category/del",{id:t}),k=t=>o.a.post("goods.goods_supplier_category/edit",t),C=t=>o.a.post("/goods.goods_supplier/add",t),j=t=>o.a.get("/goods.goods_supplier/lists",{params:t}),O=t=>o.a.post("goods.goods_supplier/del",{id:t}),D=t=>o.a.get("/goods.goods_supplier/detail",{params:{id:t}}),L=t=>o.a.post("/goods.goods_supplier/edit",t),$=t=>o.a.post("/goods.goods_category/add",t),B=t=>o.a.get("/goods.goods_category/lists",{params:t}),G=t=>o.a.get("/goods.goods_category/commonLists",{params:t}),z=t=>o.a.post("/goods.goods_category/status",t),I=t=>o.a.post("goods.goods_category/del",{id:t}),N=t=>o.a.post("/goods.goods_category/edit",t),T=t=>o.a.get("/goods.goods_category/detail",{params:{id:t}}),P=t=>o.a.post("/goods.goods_unit/add",t),q=t=>o.a.get("/goods.goods_unit/lists",{params:t}),R=t=>o.a.post("goods.goods_unit/del",{id:t}),A=t=>o.a.post("/goods.goods_unit/edit",t),E=t=>o.a.get("goods.goods_comment/lists",{params:t}),F=t=>o.a.post("goods.goods_comment/del",t),J=t=>o.a.post("goods.goods_comment/reply",t),K=t=>o.a.post("/goods.goods_comment/status",t),H=t=>o.a.get("goods.goods_comment_assistant/lists",{params:t}),M=t=>o.a.post("goods.goods_comment_assistant/add",t),Q=t=>o.a.get("goods.goodsServiceGuarantee/lists",t),U=t=>o.a.post("goods.goodsServiceGuarantee/add",t),V=t=>o.a.post("goods.goodsServiceGuarantee/delete",t),W=t=>o.a.post("goods.goodsServiceGuarantee/edit",t),X=()=>o.a.get("goods.GoodsDeliveryTemplate/lists"),Y=t=>o.a.post("goods.GoodsDeliveryTemplate/add",t),Z=t=>o.a.post("goods.GoodsDeliveryTemplate/edit",t),tt=t=>o.a.post("goods.GoodsDeliveryTemplate/delete",t)},ab43:function(t,e,s){"use strict";var o=s("23e7"),a=s("c65b"),n=s("59ed"),r=s("825a"),i=s("46c4"),d=s("c5cc"),l=s("9bdd"),u=s("2a62"),c=s("2baa"),g=s("f99f"),p=s("c430"),f=!p&&!c("map",(function(){})),h=!p&&!f&&g("map",TypeError),m=p||f||h,_=d((function(){var t=this.iterator,e=r(a(this.next,t));if(!(this.done=!!e.done))return l(t,this.mapper,[e.value,this.counter++],!0)}));o({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(t){r(this);try{n(t)}catch(t){u(this,"throw",t)}return h?a(h,this,t):new _(i(this),{mapper:t})}})},b31b:function(t,e,s){"use strict";var o=s("9ab4"),a=s("1b40"),n=s("0a6d");let r=class extends a.e{constructor(){super(...arguments),this.checking=!0}closeDialog(){this.checking=!1,this.$refs.lsDialog.close()}openDialog(){this.checking=!0,this.$refs.lsDialog.open()}};Object(o.a)([Object(a.c)()],r.prototype,"title",void 0),r=Object(o.a)([Object(a.a)({components:{LsDialog:n.a}})],r);var i=r,d=s("2877"),l=Object(d.a)(i,(function(){var t=this._self._c;this._self._setupProxy;return t("div",[t("ls-dialog",{ref:"lsDialog",attrs:{width:"510px",top:"30vh",confirmButtonText:!1,cancelButtonText:!1,title:this.title}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:this.checking,expression:"checking"}],staticStyle:{height:"200px"},attrs:{"element-loading-text":"正在处理中,请稍等..."}})])],1)}),[],!1,null,null,null);e.a=l.exports},d09e:function(t,e,s){"use strict";s.d(e,"h",(function(){return a})),s.d(e,"e",(function(){return n})),s.d(e,"i",(function(){return r})),s.d(e,"f",(function(){return i})),s.d(e,"b",(function(){return d})),s.d(e,"g",(function(){return l})),s.d(e,"a",(function(){return u})),s.d(e,"c",(function(){return c})),s.d(e,"d",(function(){return g}));var o=s("f175");const a=t=>o.a.get("/goods.goods_gather/logLists",{params:t}),n=t=>o.a.get("/settings.goods.goods_settings/getGatherKey",{params:t}),r=t=>o.a.post("/settings.goods.goods_settings/setGatherKey",t),i=t=>o.a.post("/goods.goods_gather/gather",t),d=t=>o.a.post("/goods.goods_gather/del",t),l=t=>o.a.get("/goods.goods_gather/lists",{params:t}),u=t=>o.a.post("/goods.goods_gather/createGoods",t),c=t=>o.a.get("/goods.goods_gather/gatherGoodsDetail",{params:{id:t}}),g=t=>o.a.post("/goods.goods_gather/gatherGoodsEdit",t)},f15a:function(t,e,s){"use strict";s.r(e);var o=s("9ab4"),a=s("1b40"),n=s("d09e"),r=s("6ddb"),i=s("4201"),d=(s("14d9"),s("e9f5"),s("ab43"),s("0a6d")),l=s("3c50"),u=s("d455"),c=s("14c6"),g=s("b31b");let p=class extends a.e{constructor(){super(...arguments),this.status=!0,this.selectIds=[]}get disabledBtn(){return!this.selectIds.length&&1===this.tabStatus}handleBatchStatus({type:t,status:e,ids:s}){if("multiple"===t&&!this.selectIds.length)return this.$message.error("请先选择商品");this.$refs.isLoadingRef.openDialog(),Object(n.a)({ids:s||this.selectIds,status:e}).then(()=>{this.$emit("refresh"),this.$message.success("操作成功")}).finally(()=>{this.$refs.isLoadingRef.closeDialog()})}selectableFn(t){return!(this.disabledBtn||!t.gather_status)}handleSelect(t){this.selectIds=t.map(t=>t.id)}handleselectAll(){this.$refs.paneTable.toggleAllSelection()}handleSort(t,e){Object(c.D)({id:e,sort:t}).then(()=>{this.$emit("refresh")})}};Object(o.a)([Object(a.c)()],p.prototype,"value",void 0),Object(o.a)([Object(a.c)()],p.prototype,"pager",void 0),Object(o.a)([Object(a.c)()],p.prototype,"tabStatus",void 0),p=Object(o.a)([Object(a.a)({components:{LsDialog:d.a,LsPagination:l.a,PopoverInput:u.a,IsLoading:g.a}})],p);var f=p,h=s("2877"),m=Object(h.a)(f,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"after-sales-pane"},[e("ls-dialog",{staticClass:"inline",attrs:{content:"确定批量上架销售?请谨慎操作。",disabled:t.disabledBtn},on:{confirm:function(e){return t.handleBatchStatus({type:"multiple",status:1})}}},[e("el-button",{attrs:{slot:"trigger",size:"small",disabled:t.disabledBtn},slot:"trigger"},[t._v("批量上架")])],1),e("ls-dialog",{staticClass:"m-l-10 inline",attrs:{content:"确定批量放入仓库?请谨慎操作。",disabled:t.disabledBtn},on:{confirm:function(e){return t.handleBatchStatus({type:"multiple",status:0})}}},[e("el-button",{attrs:{slot:"trigger",size:"small",disabled:t.disabledBtn},slot:"trigger"},[t._v("放入仓库")])],1),e("div",{staticClass:"pane-table m-t-15"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.pager.loading,expression:"pager.loading"}],ref:"paneTable",staticStyle:{width:"100%"},attrs:{data:t.value,size:"mini"},on:{"selection-change":t.handleSelect}},[e("el-table-column",{attrs:{fixed:"left",type:"selection",width:"55",selectable:t.selectableFn}}),e("el-table-column",{attrs:{prop:"gather_url",label:"采集链接","min-width":"280"},scopedSlots:t._u([{key:"default",fn:function(s){return[s.row.gather_status?e("div",[t._v(t._s(s.row.gather_url))]):e("div",{style:{color:"#ff3333"}},[t._v(t._s(s.row.gather_url))])]}}])}),e("el-table-column",{attrs:{label:"商品信息","min-width":"290"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("div",{staticClass:"flex"},[s.row.goods_info.goods_image?e("div",[e("el-image",{staticClass:"flex-none",staticStyle:{width:"58px",height:"58px"},attrs:{fit:"cover",src:s.row.goods_info.goods_image}})],1):t._e(),e("div",{staticClass:"m-l-8"},[e("div",{staticClass:"ls-edit-wrap flex"},[e("div",[t._v(t._s(s.row.goods_info.goods_name))])]),e("div",[1===s.row.goods_info.is_more_sku?e("el-tag",{staticClass:"m-r-6",attrs:{size:"mini"}},[t._v("多规格")]):t._e()],1)])])]}}])}),e("el-table-column",{attrs:{prop:"channel_desc",label:"渠道","min-width":"120"}}),e("el-table-column",{attrs:{prop:"gather_status_desc",label:"状态","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(s){return[1===s.row.gather_status?e("el-tag",{attrs:{size:"medium",type:"success"}},[t._v("成功")]):e("el-tag",{attrs:{size:"medium",type:"danger"}},[t._v("失败")])]}}])}),e("el-table-column",{attrs:{prop:"create_time",label:"成功时间","min-width":"160"},scopedSlots:t._u([{key:"default",fn:function(s){return[s.row.gather_status?e("div",[t._v(t._s(s.row.create_time))]):e("div",[t._v("-")])]}}])}),e("el-table-column",{attrs:{fixed:"right",label:"操作","min-width":"180"},scopedSlots:t._u([{key:"default",fn:function(s){return[!t.disabledBtn&&s.row.gather_status?e("div",[e("div",{staticClass:"inline m-r-10"},[e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.$router.push({path:"/goods/release",query:{id:s.row.id,type:"goods_collection"}})}}},[t._v("编辑")])],1),e("ls-dialog",{staticClass:"inline m-r-10",attrs:{content:"确定放入仓库?请谨慎操作。"},on:{confirm:function(e){return t.handleBatchStatus({type:"single",ids:[s.row.id],status:0})}}},[e("el-button",{attrs:{slot:"trigger",type:"text",size:"small"},slot:"trigger"},[t._v("放入仓库")])],1),e("ls-dialog",{staticClass:"inline m-r-10",attrs:{content:"确定上架销售?请谨慎操作。"},on:{confirm:function(e){return t.handleBatchStatus({type:"single",ids:[s.row.id],status:1})}}},[e("el-button",{attrs:{slot:"trigger",type:"text",size:"small"},slot:"trigger"},[t._v("上架销售")])],1)],1):t._e()]}}])})],1)],1),e("div",{staticClass:"pane-footer m-t-16 flex row-right"},[e("ls-pagination",{on:{change:function(e){return t.$emit("refresh")}},model:{value:t.pager,callback:function(e){t.pager=e},expression:"pager"}})],1),e("IsLoading",{ref:"isLoadingRef",attrs:{title:" "}})],1)}),[],!1,null,null,null).exports;let _=class extends a.e{constructor(){super(...arguments),this.activeName="wait",this.tabs=[{label:"待处理",status:i.d[0]},{label:"已处理",status:i.d[1]}],this.tabCount={wait:0,already:0},this.pager=new r.a}getLists(t){t&&(this.pager.page=t);const e="wait"==this.activeName?0:i.d[this.activeName];this.pager.request({callback:n.g,params:{log_id:this.id,status:e}}).then(t=>{this.tabCount=null==t?void 0:t.extend})}created(){this.id=this.$route.query.id,this.getLists()}};_=Object(o.a)([Object(a.a)({components:{DetailsPane:m}})],_);var b=_,v=Object(h.a)(b,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"ls-details"},[e("div",{staticClass:"ls-card ls-detail__header"},[e("el-page-header",{attrs:{content:"查看采集详情"},on:{back:function(e){return t.$router.go(-1)}}})],1),e("div",{staticClass:"ls-details__table ls-card m-t-16"},[e("el-tabs",{directives:[{name:"loading",rawName:"v-loading",value:t.pager.loading,expression:"pager.loading"}],on:{"tab-click":function(e){return t.getLists(1)}},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},t._l(t.tabs,(function(s,o){return e("el-tab-pane",{key:o,attrs:{label:`${s.label}(${t.tabCount[s.status]})`,name:s.status}},[e("details-pane",{attrs:{pager:t.pager,tabStatus:o},on:{refresh:function(e){return t.getLists()}},model:{value:t.pager.lists,callback:function(e){t.$set(t.pager,"lists",e)},expression:"pager.lists"}})],1)})),1)],1)])}),[],!1,null,null,null);e.default=v.exports}}]);