(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-327ffeaf","chunk-ae7cb8dc","chunk-ae7cb8dc"],{"0a92":function(e,t,a){"use strict";a("ad44")},1816:function(e,t,a){"use strict";a("5d05")},"1d3e":function(e,t,a){},"1dc3":function(e,t,a){e.exports=a.p+"img/img-proLimited-1.d99e524f.png"},"22c1":function(e,t,a){"use strict";a("8d8d")},"28bc":function(e,t,a){"use strict";a("d3e8")},"2e68":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("a-modal",{staticClass:"custom-modal",attrs:{title:"编辑省市区",width:"880px"},on:{ok:e.handleOk,cancel:e.handleCancel},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[a("a-layout",{},[a("a-layout-content",{style:{background:"#fff"}},[a("div",{staticClass:"btn-address"},[a("a-button",{attrs:{type:"primary"},on:{click:e.addProvince}},[e._v("添加省市区")]),a("a-button",{attrs:{disabled:!e.selectedRowKeys.length},on:{click:function(){e.deleteAction()}}},[e._v("删除")])],1)]),a("a-layout-content",{staticClass:"addressContent",style:{background:"#fff"}},[a("a-table",{key:e.tableKey,ref:"table",attrs:{dataSource:e.dataSource,columns:e.columns,pagination:!1,rowKey:"key",loading:e.loading,rowSelection:e.rowSelection},scopedSlots:e._u([{key:"province",fn:function(t){return[a("a-tooltip",{attrs:{title:t}},[e._v("\n "+e._s(t)+"\n ")])]}},{key:"operation",fn:function(t,i){return[a("a-popconfirm",{attrs:{title:"确定删除吗?",placement:"top"},on:{confirm:function(t){return e.deleteRow(i.key)}}},[a("a",{attrs:{href:"javascript:;"}},[e._v("删除")])])]}}])})],1)],1),a("select-address",{ref:"province",on:{selectAddress:e.eventAddress}}),a("template",{slot:"footer"},[a("div",{staticClass:"selected-number"},[e._v("共"+e._s(e.dataSource.length)+"条记录")]),a("a-button",{key:"back",on:{click:e.handleCancel}},[e._v("\n 取消\n ")]),a("a-button",{key:"submit",attrs:{type:"primary"},on:{click:e.handleOk}},[e._v("\n 确定\n ")])],1)],2)],1)},r=[],s=a("2909"),n=(a("4f7f"),a("5df3"),a("1c4c"),a("6762"),a("2fdb"),a("ac6a"),a("de6a")),l=a("2af9"),o=[{title:"省市区名称",dataIndex:"district",align:"left",ellipsis:!0,width:"30%"},{title:"省市区层级",dataIndex:"province",width:"40%",align:"left",ellipsis:!0,scopedSlots:{customRender:"province"}},{title:"操作",dataIndex:"operation",width:"20%",scopedSlots:{customRender:"operation"}}],d={props:{checkboxType:{type:Boolean,default:function(){return!0}},disabledSuccessMsg:{type:Boolean,default:function(){return!1}}},components:{selectAddress:l["d"]},computed:{rowSelection:function(){var e=this.selectedRowKeys;return this.checkboxType?{selectedRowKeys:e,onChange:this.onSelectChange,hideDefaultSelections:!0,selections:!1,onSelection:this.onSelection,columnTitle:"",type:"checkbox"}:{selectedRowKeys:e,onChange:this.onSelectChange,hideDefaultSelections:!0,selections:!0,onSelection:this.onSelection,columnTitle:"选择",type:"radio"}}},data:function(){return{visible:!1,loading:!1,dataSource:[],selectedRowKeys:[],parentVal:0,columns:o,stopInitGetTableList:!0,targetAttr:"",tableKey:1}},methods:{changeTableKey:function(){this.tableKey=Math.random()},showModal:function(e,t){this.visible=!0,this.parentVal=t;var a=[];e.dataSource.forEach((function(e){a.push({district:e.title,province:e.path_name,key:e.key,path:e.path,title:e.title,path_name:e.path_name})})),this.dataSource=a,this.$nextTick((function(){setTimeout((function(){document.querySelector(".addressContent").scrollTop=0}))}))},onSelectChange:function(e){this.selectedRowKeys=e},deleteRow:function(e){var t=this;this.dataSource.forEach((function(a,i){a.key===e&&t.dataSource.splice(i,1)}))},deleteAction:function(e){e=e||this.selectedRowKeys;var t=this;this.$confirm({icon:function(e){return e(n["a"])},title:"确定删除吗?",onOk:function(){t.deleteProcess(e),t.$message.success("操作成功")},cancelText:"取消",okText:"确定"})},deleteProcess:function(e){e.length===this.dataSource.length?(this.dataSource=[],this.selectedRowKeys=[]):(this.dataSource=this.dataSource.filter((function(t){return!e.includes(t.key)})),this.selectedRowKeys=this.selectedRowKeys.filter((function(t){return!e.includes(t)})))},addProvince:function(){var e=[];this.dataSource.map((function(t){e.push(t.key)})),this.$refs.province.showModal(),this.$refs.province.expandedKeys=[1,2],this.$refs.province.checkedKeys=e},eventAddress:function(e,t){var a=e.ids||[],i=this.dataSource.map((function(e){return e.key})),r=a.concat(i).filter((function(e){return!a.includes(e)||!i.includes(e)})),n=r.filter((function(e){return!a.includes(e)}));i=i.filter((function(e){return!n.includes(e)}));var l=Array.from(new Set([].concat(Object(s["a"])(a),Object(s["a"])(i)))),o=l.concat(i).filter((function(e){return!l.includes(e)||!i.includes(e)})),d=o.concat(i),c=Object(s["a"])(new Set(d)),u=[];c.forEach((function(t){e.dataSource.map((function(e){e.key===t&&u.push({district:e.title,province:e.path_name,key:e.key,path:e.path,title:e.title,path_name:e.path_name})}))})),this.dataSource=u,this.changeTableKey()},handleOk:function(){this.$emit("updateAddress",{ids:this.dataSource.map((function(e){return e.key})),dataSource:this.dataSource},this.parentVal),this.visible=!1},handleCancel:function(){this.visible=!1,this.selectedRowKeys=[]}},mounted:function(){}},c=d,u=(a("fa52"),a("2877")),p=Object(u["a"])(c,i,r,!1,null,"08c01682",null);t["a"]=p.exports},"3ac0":function(e,t,a){"use strict";a("8547")},"428e":function(e,t,a){e.exports=a.p+"img/img-proScope-1.0954af33.png"},5049:function(e,t,a){e.exports=a.p+"img/logo-banner.8c16bb65.png"},5633:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"customBread"},[a("div",{staticClass:"page-header clearfix"},[a("div",{staticClass:"page-header-index-wide",staticStyle:{float:"left"}},[a("a-breadcrumb",{staticClass:"breadcrumb"},e._l(e.breadList.loopBread,(function(t){return a("a-breadcrumb-item",{key:t.name},[t.href?a("router-link",{attrs:{to:{path:t.href}}},[e._v("\n "+e._s(t.title)+"\n ")]):a("span",[e._v(e._s(t.title))])],1)})),1),a("div",{staticClass:"detail"},[a("div",{staticClass:"customBreadcrumb-current"},[a("h1",{staticClass:"title"},[e._v(e._s(e.breadList.current))]),e.breadList.showNote&&e.breadList.isText?a("a-tooltip",{attrs:{placement:"bottomLeft"}},[a("template",{slot:"title"},[a("div",{domProps:{innerHTML:e._s(e.noteRender())}})]),a("a-icon",{staticClass:"customBreadcrumb-icon",attrs:{type:"exclamation-circle"}})],2):e.breadList.showNote?a("a-popover",{attrs:{placement:"bottomLeft",overlayClassName:"custom-crumbcrumb-tips"}},[a("template",{slot:"content"},[a("div",{domProps:{innerHTML:e._s(e.noteRender())}})]),a("a-icon",{staticClass:"customBreadcrumb-icon",attrs:{type:"exclamation-circle"}})],2):e._e()],1)])],1),a("div",{staticClass:"customBreadRight"},[e._t("default")],2)])])},r=[],s={props:{breadList:{type:Object,required:!0}},methods:{noteRender:function(){var e=this.breadList.current;switch(e){case"热搜词":return'\n
\n
\n
\n \n
\n
\n
\n ';case"搜索暗文":return'\n
\n
\n
\n \n
\n
\n
\n ';case"搜索跳转":return'\n
\n
\n
\n 设置搜索词跳转到指定的落地页\n
\n
\n
\n ';case"搜索联想词":return'\n
\n
\n
\n \n
\n
\n
\n ';case"热推商品":return'\n
\n
\n
\n 搜索商品列表页、运营分类商品列表页、品牌商品列表页、店铺商品列表页的商品,优先展示热推商品,同为热推商品,按排序值由小到大展示。\n
\n
\n
\n ';case"搜索无结果关联词":return'\n
\n
\n
\n \n
\n
\n
\n ';case"商品排序得分":return'\n
\n
\n

商品综合排序规则说明:

\n
    \n
  1. 无库存商品,排在有库存商品之后
  2. \n
  3. 热推商品展示在前,非热推商品展示在后;热推商品按热推商品排序值由小到大排序
  4. \n
  5. 运营分类商品列表:按运营分类人工排值由小到大排序(不适用搜索商品列表页、品牌商品列表页、店铺商品列表页)
  6. \n
  7. \n 排序值相同,按系统自动计算的商品排序得分由大到小排序。
    \n 商品排序得分="0.7*支付件数+0.03*下单件数+0.02*加购件数+0.05*访问uv+0.2*新品得分(新品=1,否则=0)
    \n 支付件数:最近一年已支付状态订单的sku件数合计
    \n 下单件数:最近一年所有状态订单的sku件数合计
    \n 加购件数:最近一年加入购物车的sku件数合计
    \n 访问uv:最近一年商品浏览访问uv合计
    \n 新品得分:新品=1,否则=0。设置新品规则 >>\n
  8. \n
  9. 若人工排序值和系统排序值都相同,则按照搜索引擎返回的顺序排序
  10. \n
\n
\n
\n ';case"异款SPU规则":return'\n
\n
\n
\n 将属于规则设置范围内,且属于同一店铺、同一品牌、同一品类,且符合价格最大极差的不同款商品,聚合成一个SPU商品\n
\n
\n
\n ';case"主图视频":return'\n
\n
\n
\n 按SPU编码维度,通过第三方视频生成服务,使用商品主图生成主图视频\n
\n
\n
\n ';default:return""}}}},n=s,l=(a("22c1"),a("2877")),o=Object(l["a"])(n,i,r,!1,null,"ceaaba20",null);t["a"]=o.exports},"5b81":function(e,t,a){},"5d05":function(e,t,a){},"60be":function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"C",(function(){return l})),a.d(t,"A",(function(){return o})),a.d(t,"H",(function(){return d})),a.d(t,"b",(function(){return c})),a.d(t,"I",(function(){return u})),a.d(t,"z",(function(){return p})),a.d(t,"G",(function(){return m})),a.d(t,"F",(function(){return _})),a.d(t,"y",(function(){return h})),a.d(t,"a",(function(){return f})),a.d(t,"o",(function(){return g})),a.d(t,"e",(function(){return b})),a.d(t,"f",(function(){return v})),a.d(t,"g",(function(){return y})),a.d(t,"B",(function(){return C})),a.d(t,"j",(function(){return w})),a.d(t,"m",(function(){return x})),a.d(t,"k",(function(){return S})),a.d(t,"l",(function(){return I})),a.d(t,"u",(function(){return V})),a.d(t,"i",(function(){return k})),a.d(t,"q",(function(){return O})),a.d(t,"h",(function(){return L})),a.d(t,"v",(function(){return F})),a.d(t,"r",(function(){return j})),a.d(t,"x",(function(){return T})),a.d(t,"t",(function(){return q})),a.d(t,"w",(function(){return N})),a.d(t,"s",(function(){return P})),a.d(t,"E",(function(){return D})),a.d(t,"D",(function(){return $})),a.d(t,"d",(function(){return B})),a.d(t,"n",(function(){return R})),a.d(t,"p",(function(){return A}));var i=a("b775"),r="/api-config",s={configList:r+"/backend/website/config/list",configUpdate:r+"/backend/website/config/update",getSiteInfo:r+"/backend/website/detail",updateSiteInfo:r+"/backend/website/update",businessAll:r+"/backend/merchant/all",warehousesAll:r+"/backend/stock/all",getShopList:r+"/backend/store/tree",getShopInfo:r+"/backend/store/detail",getMainShopInfo:r+"/backend/main_store/detail",updateShopInfo:r+"/backend/store/base_update",updateOrderSendInfo:r+"/backend/store/other_update",addShop:r+"/backend/store/add",getOpCategoryList:r+"/backend/op_category/first",getExchangeRateList:r+"/backend/store/exchange_rate/list",getLineLogDetail:r+"/backend/line/logistics_option_detail",getLineLogUpdate:r+"/backend/line/logistics_option_update",getStoreLogUpdate:r+"/backend/store/logistics_option_update",getLogisticsBuyLimit:r+"/backend/logistics_buy_limit/store_detail",getLogisticsBuyLimitUpdate:r+"/backend/logistics_buy_limit/store_update",getLogisticsBuyLimitLine:r+"/backend/logistics_buy_limit/line_detail",getLogisticsBuyLimitLineUpdate:r+"/backend/logistics_buy_limit/line_update",getProLimitedList:r+"/backend/product_limit/store_list",getLineProLimitedList:r+"/backend/product_limit/line_list",getProLimitedAdd:r+"/backend/product_limit/store_add",getLineProLimitedAdd:r+"/backend/product_limit/line_add",getProLimitedStoreDetail:r+"/backend/product_limit/store_detail",getProLimitedLineDetail:r+"/backend/product_limit/line_detail",getProLimitedStoreUpdate:r+"/backend/product_limit/store_update",getProLimitedLineUpdate:r+"/backend/product_limit/line_update",getProLimitedStoreDetailDel:r+"/backend/product_limit/store_delete",getProLimitedLineDetailDel:r+"/backend/product_limit/line_delete",scopeRuleUpdate:r+"/backend/product_limit/store_product_update",scopeRuleLineUpdate:r+"/backend/product_limit/line_product_update",deliveryAreaList:r+"/backend/delivery_area/list",operateLogList:r+"/backend/operate_log/list"};function n(e){return Object(i["b"])({url:s.configList,method:"get",params:e,timeout:6e4})}function l(e){return Object(i["b"])({url:s.configUpdate,method:"post",data:e})}function o(e){return Object(i["b"])({url:s.getSiteInfo,method:"get",params:e})}function d(e){return Object(i["b"])({url:s.updateSiteInfo,method:"post",data:e})}function c(e){return Object(i["b"])({url:s.businessAll,method:"get",params:e})}function u(e){return Object(i["b"])({url:s.warehousesAll,method:"get",params:e})}function p(e){return Object(i["b"])({url:s.getShopList,method:"get",params:e,timeout:6e5})}function m(e){return Object(i["b"])({url:s.updateShopInfo,method:"post",data:e})}function _(e){return Object(i["b"])({url:s.updateOrderSendInfo,method:"post",data:e})}function h(e){return Object(i["b"])({url:s.getShopInfo,method:"get",params:e,timeout:6e5})}function f(e){return Object(i["b"])({url:s.addShop,method:"post",data:e})}function g(e){return Object(i["b"])({url:s.getOpCategoryList,method:"get",params:e})}function b(e){return Object(i["b"])({url:s.getExchangeRateList,method:"get",params:e})}function v(e){return Object(i["b"])({url:s.getLineLogDetail,method:"get",params:e})}function y(e){return Object(i["b"])({url:s.getLineLogUpdate,method:"post",data:e})}function C(e){return Object(i["b"])({url:s.getStoreLogUpdate,method:"post",data:e})}function w(e){return Object(i["b"])({url:s.getLogisticsBuyLimit,method:"get",params:e})}function x(e){return Object(i["b"])({url:s.getLogisticsBuyLimitUpdate,method:"post",data:e})}function S(e){return Object(i["b"])({url:s.getLogisticsBuyLimitLine,method:"get",params:e})}function I(e){return Object(i["b"])({url:s.getLogisticsBuyLimitLineUpdate,method:"post",data:e})}function V(e){return Object(i["b"])({url:s.getProLimitedList,method:"get",params:e})}function k(e){return Object(i["b"])({url:s.getLineProLimitedList,method:"get",params:e})}function O(e){return Object(i["b"])({url:s.getProLimitedAdd,method:"post",data:e})}function L(e){return Object(i["b"])({url:s.getLineProLimitedAdd,method:"post",data:e})}function F(e){return Object(i["b"])({url:s.getProLimitedStoreDetail,method:"get",params:e})}function j(e){return Object(i["b"])({url:s.getProLimitedLineDetail,method:"get",params:e})}function T(e){return Object(i["b"])({url:s.getProLimitedStoreUpdate,method:"post",data:e})}function q(e){return Object(i["b"])({url:s.getProLimitedLineUpdate,method:"post",data:e})}function N(e){return Object(i["b"])({url:s.getProLimitedStoreDetailDel,method:"post",data:e})}function P(e){return Object(i["b"])({url:s.getProLimitedLineDetailDel,method:"post",data:e})}function D(e){return Object(i["b"])({url:s.scopeRuleUpdate,method:"post",data:e,timeout:6e4})}function $(e){return Object(i["b"])({url:s.scopeRuleLineUpdate,method:"post",data:e,timeout:6e4})}function B(e){return Object(i["b"])({url:s.deliveryAreaList,method:"get",params:e})}function R(e){return Object(i["b"])({url:s.getMainShopInfo,method:"get",params:e})}function A(e){return Object(i["b"])({url:s.operateLogList,method:"get",params:e})}},"627e":function(e,t,a){e.exports=a.p+"img/order-promo.6d670382.png"},"64ac":function(e,t,a){"use strict";a("5b81")},"6a6c":function(e,t,a){},7097:function(e,t,a){e.exports=a.p+"img/img-log-line.5378f334.jpg"},"7abf":function(e,t,a){"use strict";a("1d3e")},"7ec5":function(e,t,a){},8547:function(e,t,a){},"87ff":function(e,t,a){},"8d8d":function(e,t,a){},"9aa6":function(e,t,a){"use strict";a("7ec5")},"9bfe":function(e,t,a){"use strict";a("cc98")},a38a:function(e,t,a){e.exports=a.p+"img/order-cart.d7af9486.png"},a911:function(e,t,a){"use strict";a("87ff")},ab87:function(e,t,a){e.exports=a.p+"img/order-logistics.6a2952b5.png"},ad44:function(e,t,a){},cc98:function(e,t,a){},cd92:function(e,t,a){"use strict";a("e3b7")},d3e8:function(e,t,a){},d4f53:function(e,t,a){"use strict";a("feab")},d8a9:function(e,t,a){},daa0:function(e,t,a){"use strict";a("6a6c")},dcf3:function(e,t,a){"use strict";a("de76")},de1a:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("custom-bread",{attrs:{breadList:e.breadList}}),a("a-layout",{staticClass:"category-custom-layout customContent"},[a("a-layout-sider",{staticStyle:{background:"#fff"},attrs:{width:"350"}},[a("a-card",{attrs:{bordered:!1}},[a("a-row",{attrs:{gutter:0}},[a("menu-group",{ref:"menuGroup",on:{click:e.importPage,updateStatus:e.getTreeData}}),a("menu-Tree",{ref:"tree",on:{initTreeKey:e.initTreeKey,changeLogistics:e.changeLogistics,changeShop:e.changeShop}})],1)],1)],1),a("a-layout",{staticStyle:{"margin-left":"16px",background:"#fff"}},[a("a-card",{attrs:{bordered:!1,bodyStyle:{padding:0}}},[a("a-tabs",{attrs:{tabBarStyle:{paddingLeft:"24px",marginBottom:"0px"},tabBarGutter:0},on:{change:e.tablePaneChange},model:{value:e.activeKey,callback:function(t){e.activeKey=t},expression:"activeKey"}},[e.isShowLogTab?[a("a-tab-pane",{key:"3",attrs:{tab:"运费模板"}},[a("freight-page",{attrs:{detailInfo:e.freightDetail,storeId:e.shopId,lineId:e.lineId,templateType:e.templateType},on:{updateTree:e.updateStatus}})],1),a("a-tab-pane",{key:"9",attrs:{tab:"物流设置"}},[a("logistics-setup",{attrs:{detailInfo:e.logSetDetail}})],1),a("a-tab-pane",{key:"10",attrs:{tab:"物流限购"}},[a("limited-logistics",{attrs:{detailInfo:e.logLimitedDetail,storeId:e.shopId,lineId:e.lineId}})],1),a("a-tab-pane",{key:"limited",attrs:{tab:"商品数量限购"}},[a("pro-num-limited",{key:e.tableCommodityPaneKey,attrs:{lineId:e.lineId,storeId:e.shopId}})],1),a("a-tab-pane",{key:"11",attrs:{tab:"物流线路商品范围"}},[a("line-product-scope",{attrs:{storeId:e.shopId,lineId:e.lineId,ruleId:e.ruleId}})],1),a("a-tab-pane",{key:"8",attrs:{tab:"操作日志"}},[a("operate-Table",{key:e.tableOperationLog,attrs:{moduleId:e.moduleId,storeId:e.shopId,lineId:e.lineId}})],1)]:[a("a-tab-pane",{key:"1",attrs:{tab:"基础信息"}},[a("basis-page",{attrs:{detailInfo:e.shopDetailInfo},on:{updateStatus:e.updateStatus}})],1),a("a-tab-pane",{key:"2",attrs:{tab:"订单/发货"}},[a("order-shipment-page",{attrs:{detailInfo:e.shopDetailInfo},on:{updateStatus:e.updateStatus}})],1),1!==e.shopDetailInfo.is_show_line_options?a("a-tab-pane",{key:"3",attrs:{tab:"运费模板"}},[a("freight-page",{attrs:{detailInfo:e.freightDetail,storeId:e.shopId,templateType:e.templateType},on:{updateTree:e.updateStatus}})],1):e._e(),1!==e.shopDetailInfo.is_show_line_options?a("a-tab-pane",{key:"4",attrs:{tab:"物流设置"}},[a("store-logistics",{attrs:{detailInfo:e.shopDetailInfo}})],1):e._e(),1!==e.shopDetailInfo.is_show_line_options?a("a-tab-pane",{key:"5",attrs:{tab:"物流限购"}},[a("limited-logistics",{attrs:{detailInfo:e.logLimitedDetail,storeId:e.shopId}})],1):e._e(),1!==e.shopDetailInfo.is_show_line_options?a("a-tab-pane",{key:"limited",attrs:{tab:"商品数量限购"}},[a("pro-num-limited",{key:e.tableCommodityPaneKey,attrs:{storeId:e.shopId}})],1):e._e(),a("a-tab-pane",{key:"6",attrs:{tab:"汇率变更记录"}},[a("exchange-rate-page",{key:e.tableSalePaneKey,attrs:{storeId:e.shopId}})],1),a("a-tab-pane",{key:"8",attrs:{tab:"操作日志"}},[a("operate-Table",{key:e.tableOperationLog,attrs:{moduleId:e.moduleId,storeId:e.shopId,lineId:e.lineId}})],1)]],2)],1)],1)],1)],1)},r=[],s=(a("8e6e"),a("ac6a"),a("456d"),a("a481"),a("ade3")),n=a("5633"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("a-button",{attrs:{type:"primary"},on:{click:e.showAddShop}},[e._v("新建店铺")]),a("paren-categoryt-modal",{ref:"parenCategoryt",on:{successOperate:e.successOperate}}),a("add-shop-modal",{ref:"addShop",on:{successOperate:e.successOperate,updateStatus:e.updateStatus}})],1)},o=[],d=(a("6762"),a("7f7f"),a("aab4")),c=a("6b5c"),u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-modal",{attrs:{title:"新建","ok-text":"确定","cancel-text":"取消",width:"950px",height:"850px",bodyStyle:{padding:"24px 24px 0"}},on:{ok:e.handleSubmit,cancel:e.operateDone},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[a("a-form",{staticClass:"createPage",attrs:{form:e.form}},[a("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 站点名称\n "),a("a-tooltip",{attrs:{title:"当前站点名称+站点ID"}},[a("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),e._v("\n "+e._s(e.selectName()+"(ID: "+e.websiteId+")")+"\n ")]),a("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 所属商户\n "),a("a-tooltip",{attrs:{title:"店铺所属的商户,若无可选择商户,请联系平台客服添加"}},[a("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["merchant_id",{rules:[{required:!0,message:"请选择所属商户"}]}],expression:"[\n 'merchant_id',\n {\n rules: [{ required: true, message: '请选择所属商户' }]\n }\n ]"}],staticStyle:{width:"540px"},attrs:{placeholder:e.$t("message.PleaSeselect"),getPopupContainer:function(e){return e.parentNode},showSearch:"",filterOption:e.filterOption},on:{change:e.changeBusiness}},e._l(e.businessAllList,(function(t){return a("a-select-option",{key:t.merchant_id,attrs:{value:t.merchant_id}},[e._v(e._s(t.name))])})),1)],1),a("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 发货仓库\n "),a("a-tooltip",{attrs:{title:"店铺的商品发货的仓库,若无可选择仓,请联系平台客服添加"}},[a("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["stock_id",{rules:[{required:!0,message:"请选择发货仓库"}]}],expression:"[\n 'stock_id',\n {\n rules: [{ required: true, message: '请选择发货仓库' }]\n }\n ]"}],staticStyle:{width:"540px"},attrs:{placeholder:e.$t("message.PleaSeselect"),getPopupContainer:function(e){return e.parentNode},showSearch:"",filterOption:e.filterOption}},e._l(e.warehousesAllList,(function(t){return a("a-select-option",{key:t.entity_id,attrs:{value:t.entity_id}},[e._v(e._s(t.name))])})),1)],1),a("a-form-item",{staticClass:"input-style",attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 店铺名称\n ")]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"请输入店铺名称"},{max:50,message:"店铺名称不超过50个字符"}],validateTrigger:"blur"}],expression:"[\n 'name',\n {\n rules: [\n { required: true, message: '请输入店铺名称' },\n { max:50, message: '店铺名称不超过50个字符' }\n ],\n validateTrigger: 'blur'\n }\n ]"}],staticStyle:{width:"540px"},attrs:{placeholder:"请输入"},on:{change:e.shopNameCountChange}},[a("span",{attrs:{slot:"suffix"},slot:"suffix"},[e._v("\n "+e._s(e.shopNameValueCount.length)+"/50\n ")])])],1),a("a-form-item",{staticClass:"input-style",attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 商户币种兑换站点币种汇率\n "),a("a-tooltip",{attrs:{title:"商户币种与站点币种不一致时,若商品开启自动计算售价,使用设置汇率计算销售价格。"}},[a("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),e._v("\n "+e._s("1"+e.businessCurrentCode+"=")+"\n "),a("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["exchange_rate",{rules:[{required:!0,message:"请输入币种汇率"}],validateTrigger:"blur"}],expression:"[\n 'exchange_rate',\n {\n rules: [\n { required: true, message: '请输入币种汇率' }\n ],\n validateTrigger: 'blur'\n }\n ]"}],staticStyle:{"min-width":"60px",width:"90px"},attrs:{min:0,disabled:e.businessCurrentCode===e.siteDetailInfo.currency_name,placeholder:"请输入"}}),e._v("\n "+e._s(e.siteDetailInfo.currency_name)+"\n ")],1),a("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{label:"状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:1}],expression:"['status', {initialValue: 1}]"}]},[a("a-radio",{attrs:{value:1}},[e._v("\n 启用\n ")]),a("a-radio",{attrs:{value:0}},[e._v("\n 禁用\n ")])],1)],1)],1)],1)},p=[],m=(a("c5f6"),a("60be")),_={data:function(){return{visible:!1,form:this.$form.createForm(this),labelCol:{span:6},wrapperCol:{span:16},modalTitle:"新建",instanceDetail:Object,shopNameValueCount:"",canEditValue:!1,warehousesAllList:[],businessAllList:[],siteDetailInfo:"",businessCurrentCode:"美元"}},computed:{websiteId:{get:function(){return this.$store.getters.websiteId}},siteInfo:function(){return this.$store.getters.siteMenu}},methods:{addRemote:function(e){var t=this;e.exchange_rate=Number(e.exchange_rate),Object(m["a"])(e).then((function(e){e&&(t.visible=!1,t.$emit("updateStatus"),t.$message.success("店铺新建成功,请通知店铺运营在店铺详情页继续完善店铺设置"),t.operateDone())}))},showModal:function(){this.visible=!0},handleSubmit:function(){var e=this,t=this.form.validateFields;t((function(t,a){t||e.addRemote(a)}))},operateDone:function(){var e=this.form.resetFields;e()},filterOption:function(e,t){return t.componentOptions.children[0].text.toLowerCase().indexOf(e.toLowerCase())>=0},shopNameCountChange:function(e){if(!e)return 0;this.shopNameValueCount=e.target.value},selectName:function(){var e=this,t=this.siteInfo.filter((function(t){return t.id===Number(e.websiteId)}));if(t.length)return t[0].name},changeBusiness:function(e){var t=this;if(this.businessAllList.forEach((function(a){a.merchant_id===e&&(t.businessCurrentCode=a.currency_name)})),this.businessCurrentCode===this.siteDetailInfo.currency_name){var a=this.form.setFieldsValue;a({exchange_rate:1})}}},mounted:function(){var e=this;Object(m["b"])().then((function(t){var a=t.data;a&&(e.businessAllList=a.rows)})),Object(m["I"])().then((function(t){var a=t.data;a&&(e.warehousesAllList=a.rows)})),Object(m["A"])().then((function(t){0===t.status&&(e.siteDetailInfo=t.data)}))}},h=_,f=a("2877"),g=Object(f["a"])(h,u,p,!1,null,"f7ebfa60",null),b=g.exports,v=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-modal",{attrs:{title:"新建一级分类",okText:"确定",cancelText:"取消",width:"700px"},on:{ok:e.handleOk,cancel:e.handleCancel},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[a("a-form",{staticClass:"custom-form",attrs:{"label-col":e.labelCol,"wrapper-col":e.wrapperCol,form:e.form}},[a("a-form-item",{attrs:{label:"一级分类名称"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"请输入一级分类名称"},{max:100,message:"最多支持100个字符"}]}],expression:"['name', { rules:\n [\n { required: true, message: '请输入一级分类名称' },\n { max:100, message: '最多支持100个字符' }\n ]}\n ]"}],attrs:{placeholder:"请输入"},on:{change:e.nameEnter}},[a("span",{attrs:{slot:"suffix"},slot:"suffix"},[e._v("\n "+e._s(e.nameEnterValue.length)+"/100\n ")])])],1),a("a-form-item",[a("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 类型\n "),a("a-tooltip",{attrs:{title:"非末级分类不能添加商品,末级分类可以添加商品。"}},[a("a-icon",{attrs:{type:"info-circle-o"}})],1)],1),a("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_leaf",{initialValue:"0",rules:[{required:!0}]}],expression:"['is_leaf', { initialValue:'0', rules: [{ required: true}] }]"}],attrs:{name:"radioGroup"}},[a("a-radio",{attrs:{value:"0"}},[e._v("\n 非末级分类\n ")]),a("a-radio",{attrs:{value:"1"}},[e._v("\n 末级分类\n ")])],1)],1)],1)],1)},y=[],C={data:function(){return{visible:!1,labelCol:{sm:{span:4}},wrapperCol:{sm:{span:20}},form:this.$form.createForm(this),nameEnterValue:"",throttle:!1}},methods:{handleOk:function(){var e=this;this.form.validateFields((function(t,a){if(!t){if(e.throttle)return;a.is_leaf=Number(a.is_leaf),a.name=a.name.trim(),e.throttle=!0,Object(d["o"])(a).then((function(t){t&&(e.handleCancel(),e.$emit("successOperate"))})).finally((function(){e.throttle=!1}))}}))},handleCancel:function(){this.visible=!1;var e=this.form.setFieldsValue;e({name:"",is_leaf:"0"}),this.nameEnterValue=""},show:function(){this.visible=!0},nameEnter:function(e){if(!e)return 0;this.nameEnterValue=e.target.value}}},w=C,x=(a("d4f53"),Object(f["a"])(w,v,y,!1,null,"75b83681",null)),S=x.exports,I=a("2f62");function V(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function k(e){for(var t=1;t0&&void 0!==arguments[0])||arguments[0];this.$store.commit("SET_category_needUpdate",!0),e&&this.$message.success("操作成功")},deleteInitSelectKey:function(){this.targetParentId?(this.$store.commit("SET_category_cacheId",this.targetParentId),this.$store.dispatch("getCategoryBaseInfo",this.targetParentId)):this.$store.commit("SET_category_targetParentId",0),this.$store.commit("SET_category_needResetSelectKey",!0)},updateStatus:function(){this.$emit("updateStatus")}}},L=O,F=Object(f["a"])(L,l,o,!1,null,null,null),j=F.exports,T=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"category-tree-main"},[a("div",{staticStyle:{width:"100%"}},[a("custom-single-select",{key:e.customKey,attrs:{requestObj:e.asyncObj,requestDataFilter:e.requestDataFilter,needTooltip:""},on:{asyncSelectCallback:e.asyncSelectCallback}})],1),e.treeLoading?a("div",{staticStyle:{"margin-top":"16px","text-align":"center"}},[a("a-spin")],1):e._e(),a("div",{staticClass:"menu-tree-main"},[a("a-tree",{key:e.customKey,attrs:{"show-line":!0,"expanded-keys":e.expandedKeys,"selected-keys":e.selectedKeys,"auto-expand-parent":e.autoExpandParent,"tree-data":e.gData,replaceFields:e.replaceFields},on:{expand:e.onExpand,select:e.treeSelect},scopedSlots:e._u([{key:"title",fn:function(t){return[a("span",[e._v(e._s(t.name)+" "),1===t.is_show_line_options?a("span",{staticClass:"node",staticStyle:{"background-color":"rgba(255, 240, 246, 1)",color:"#FF3399",padding:"2px",border:"1px solid #E4E4E4","font-size":"12px","border-radius":"7px","margin-left":"10px"}},[e._v("用户选择物流")]):e._e()])]}}])})],1)])},q=[],N=(a("96cf"),a("1da1")),P=(a("7514"),a("cb5b"));function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function $(e){for(var t=1;t-1?B(a.key,t.gData):null})).filter((function(e,t,a){return e&&a.indexOf(e)===t})),i=[e];Object.assign(this,{expandedKeys:a,selectedKeys:i,searchValue:e,autoExpandParent:!0})},treeSelect:function(e,t){if(e.length){var a=t.selectedNodes[0].data.props.is_leaf,i=t.selectedNodes[0].data.props.store_id,r=t.selectedNodes[0].data.props.product_rule_id,s=t.selectedNodes[0].data.props.ship_fee_template_id;a?this.$emit("changeLogistics",e[0],i,s,r):this.$emit("changeShop",e[0],s),this.selectedKeys=[e[0]]}},initTreeSelect:function(e){this.selectedKeys=[e]},init:function(){var e=Object(N["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(m["z"])().then((function(e){var a=e.data;return a.rows?(t.gData=a.rows,t.gData.forEach((function(e,t){e.key=e.entity_id,e.is_leaf=!1,e.title=e.name,e.child&&(e.scopedSlots={title:"title"},0===e.status&&(e.class="custom-disable-class"),e.child.forEach((function(e,t){e.key=e.line_id,e.is_leaf=!0,e.title=e.name})))})),t.treeLoading=!1,a):(t.treeLoading=!1,null)})));case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),asyncSelectCallback:function(e){if(e){var t=e.id;this.selectedKeys=[t],this.expandedKeys=[t],this.$emit("initTreeKey",e.entity_id,e.ship_fee_template_id)}},selectParentKey:function(){var e=this;"number"===typeof this.targetParentId&&this.targetParentId?(this.expandedKeys=[this.targetParentId],this.reSelectOperate(this.dataList.find((function(t){return t.key===e.cacheId})))):(this.expandedKeys=[],this.reSelectOperate(this.initCacheObj)),this.$store.commit("SET_category_needResetSelectKey",!1)},reSelectOperate:function(e){this.vuexSetting(e),this.customKey=Math.random(),this.initTreeSelect(e.category_id||e.key)},resetTreeData:function(){this.gData=[],this.dataList=[]},requestDataFilter:function(e){var t=e.data.rows;return t.map((function(e){e.id=e.entity_id})),t},getTreeKeys:function(e){var t=this,a=[];return e.forEach((function(e){a.push(e.key),e.children&&(a=a.concat(t.getTreeKeys(e.children)))})),a}},mounted:function(){var e=this,t=1*this.$route.query.storeId||"",a=1*this.$route.query.lineId||"";this.init().then((function(t){if(t){var a=e.gData;return e.initCacheObj=a,a}e.resetTreeData()})).then((function(i){i&&e.$nextTick((function(){if(t||a)if(a){e.initTreeSelect(a),e.expandedKeys=[a];var r=0,s=0;e.gData.forEach((function(e,i){e.entity_id===t&&e.child.forEach((function(e,t){e.line_id===a&&(r=e.ship_fee_template_id,s=e.product_rule_id)}))})),e.$emit("changeLogistics",a,t,r,s)}else e.initTreeSelect(t),e.expandedKeys=[t],e.$emit("initTreeKey",t);else e.initTreeSelect(i[0].entity_id),e.expandedKeys=e.getTreeKeys(i),e.$emit("initTreeKey",i[0].entity_id,i[0].ship_fee_template_id)}))}))}},A=R,E=(a("dcf3"),Object(f["a"])(A,T,q,!1,null,"5f7b2290",null)),M=E.exports,K=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"basicPage"},[i("a-card",{attrs:{bordered:!1}},[i("a-form",{attrs:{form:e.form},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.submit(t)}}},[i("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{required:"",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 所属商户\n "),i("a-tooltip",{attrs:{title:"店铺所属的商户"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),e.detailInfo.merchant_name?i("span",[e._v("\n "+e._s(e.detailInfo.merchant_name+"(ID: "+e.detailInfo.merchant_id+")")+"\n ")]):e._e()]),i("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{required:"",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 发货仓库\n "),i("a-tooltip",{attrs:{title:"店铺的商品发货的仓库"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),e.detailInfo.stock_name?i("span",[e._v("\n "+e._s(e.detailInfo.stock_name+"(ID: "+e.detailInfo.stock_id+")")+"\n ")]):e._e()]),i("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{required:"",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 店铺类型\n "),i("a-tooltip",{attrs:{title:"同一 商户+仓库 有且只有一个主店铺;主店铺支持新建商品;分销店铺不支持新建商品,只能从属于相同 商户+仓库的 主店铺进行同步"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),e._v("\n "+e._s(1===e.detailInfo.store_type?"主店铺":2===e.detailInfo.store_type?"分销店铺":"未分配")+"\n "),2===e.detailInfo.store_type?i("a-button",{attrs:{type:"link"},on:{click:e.eventCheckStore}},[e._v("查看主店铺")]):e._e()],1),i("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{required:"",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 店铺ID\n ")]),e._v("\n "+e._s(e.detailInfo.entity_id)+"\n ")]),i("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{labelCol:e.labelCol,wrapperCol:e.customWrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 店铺名称\n ")]),i("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"请输入店铺名称"},{max:50,message:"最多支持50个字符"}]}],expression:"['name',{ rules:\n [\n { required: true, message: '请输入店铺名称' },\n { max:50, message: '最多支持50个字符' }\n ]\n }]"}],staticClass:"import",staticStyle:{"padding-right":"55px"},attrs:{placeholder:"请输入"},on:{change:e.nameChange}}),i("span",{staticClass:"characterLimit"},[e._v(e._s(e.nameChangeValue.length)+"/50")])],1),i("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{labelCol:e.labelCol,wrapperCol:e.customWrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 店铺logo\n ")]),i("rebateUpload",{key:"storeLogo",ref:"logoImages",attrs:{uploadAttr:"images",editImg:e.logoImages,addUploadAddress:"/api-cms/media/picture_upload",isShowSelected:"",customSizeErrorTip:"大小不超过1M",limitSize:1048576,multiClass:"storeLogoLocalUpload",uploadTips:"图片尺寸建议140*140,图片大小不超过1M,仅支持jpg、jpeg、png、gif格式",disabled:""},on:{noticeAddress:e.noticeLogoAddress}}),i("a-button",{staticStyle:{position:"absolute",top:"85px",left:"110px"},attrs:{type:"link"},on:{click:e.showTemplate}},[i("a-icon",{attrs:{type:"eye"}}),i("span",{staticStyle:{"margin-left":"4px"}},[e._v("效果展示")])],1)],1),i("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{labelCol:e.labelCol,wrapperCol:e.customWrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 店铺banner\n ")]),i("rebateUpload",{key:"storeBanner",ref:"bannerImages",attrs:{uploadAttr:"images",editImg:e.bannerImages,addUploadAddress:"/api-cms/media/picture_upload",isShowSelected:"",customSizeErrorTip:"大小不超过1M",limitSize:1048576,uploadTips:"图片尺寸建议590*280,图片大小不超过1M,仅支持jpg、jpeg、png、gif格式",multiClass:"storeBannerLocalUpload",disabled:""},on:{noticeAddress:e.noticeBannerAddress}}),i("a-button",{staticStyle:{position:"absolute",top:"85px",left:"110px"},attrs:{type:"link"},on:{click:e.showTemplate}},[i("a-icon",{attrs:{type:"eye"}}),i("span",{staticStyle:{"margin-left":"4px"}},[e._v("效果展示")])],1)],1),i("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{labelCol:e.labelCol,wrapperCol:e.customWrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 店铺简介\n "),i("a-tooltip",{attrs:{title:"店铺一句话描述,显示在店铺列表"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["short_description",{rules:[{max:100,message:"最多支持100个字符"}]}],expression:"['short_description', { rules: [{ max: 100, message: '最多支持100个字符' }] }]"}],attrs:{placeholder:"请输入","auto-size":{minRows:5}},on:{change:e.introductChange}}),i("span",{staticClass:"textarea-limit"},[e._v(e._s(e.introductValue.length)+"/100")])],1),i("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{labelCol:e.labelCol,wrapperCol:e.customWrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 店铺描述\n "),i("a-tooltip",{attrs:{title:"店铺详细介绍,显示在店铺详情页"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["description",{rules:[{max:400,message:"最多支持400个字符"}]}],expression:"['description', { rules: [{ max: 400, message: '最多支持400个字符' }] }]"}],attrs:{placeholder:"请输入","auto-size":{minRows:5}},on:{change:e.descriptionChange}}),i("span",{staticClass:"textarea-limit"},[e._v(e._s(e.descriptionValue.length)+"/400")])],1),i("a-form-item",{staticClass:"input-style",attrs:{labelCol:e.labelCol,wrapperCol:e.customWrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 商户币种兑换站点币种汇率\n "),i("a-tooltip",{attrs:{title:"商户币种与站点币种不一致时,若商品开启自动计算售价,使用设置汇率计算销售价格。"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),e._v("\n "+e._s("1"+e.detailInfo.merchant_currency_name+"=")+"\n "),i("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["exchange_rate",{rules:[{required:!0,message:"请输入"}],validateTrigger:"blur"}],expression:"[\n 'exchange_rate',\n {\n rules: [\n { required: true, message: '请输入' }\n ],\n validateTrigger: 'blur'\n }\n ]"}],staticStyle:{"min-width":"60px",width:"90px"},attrs:{min:0,disabled:e.detailInfo.merchant_currency_name===e.detailInfo.website_currency_name}}),e._v("\n "+e._s(e.detailInfo.website_currency_name)+"\n ")],1),i("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.customWrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 主营品类\n "),i("a-tooltip",{attrs:{title:"设置店铺主营的品类,客户端展示在店里列表顶部。选项值为站点设置的启用状态的一级运营分类"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["category_id",{rules:[{required:!1,message:"请选择主营品类"}]}],expression:"[\n 'category_id',\n {\n rules: [{ required: false, message: '请选择主营品类' }]\n }\n ]"}],attrs:{placeholder:e.$t("message.PleaSeselect"),getPopupContainer:function(e){return e.parentNode},showSearch:"",mode:"multiple",filterOption:e.filterOption}},e._l(e.opCategoryList,(function(t){return i("a-select-option",{key:t.category_id,attrs:{value:Number(t.category_id)}},[e._v(e._s(t.name))])})),1),i("a-button",{staticStyle:{"padding-left":"0"},attrs:{type:"link"},on:{click:e.showCategory}},[i("a-icon",{attrs:{type:"eye"}}),i("span",{staticStyle:{"margin-left":"4px"}},[e._v("效果展示")])],1)],1),i("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{labelCol:e.labelCol,wrapperCol:e.customWrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 店铺排序值\n "),i("a-tooltip",{attrs:{title:"客户端店铺列表,按店铺排序降序展示店铺"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{rules:[{required:!0,message:"请输入"}],validateTrigger:"blur"}],expression:"[\n 'sort',\n {\n rules: [\n { required: true, message: '请输入' }\n ],\n validateTrigger: 'blur'\n }\n ]"}],staticStyle:{"min-width":"90px",width:"90px"},attrs:{min:0,placeholder:"请输入"}})],1),i("a-form-item",{staticClass:"form-item-radio-margin-top",attrs:{label:"状态",required:"",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:1}],expression:"['status', {initialValue: 1}]"}],attrs:{name:"radioGroup"}},[i("a-radio",{attrs:{value:1}},[e._v("\n 启用\n ")]),i("a-radio",{attrs:{value:0}},[e._v("\n 禁用\n ")])],1)],1),i("a-form-item",{attrs:{wrapperCol:{span:17,offset:8}}},[i("div",{staticClass:"save"},[i("a-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("保存")])],1)])],1)],1),i("a-modal",{attrs:{title:"效果展示",centered:!0,width:"400px",footer:null},model:{value:e.bannerModalVisible,callback:function(t){e.bannerModalVisible=t},expression:"bannerModalVisible"}},[i("span",{staticStyle:{color:"#4190ff","margin-left":"2px"}},[e._v("店铺logo、店铺banner效果展示如下:")]),i("img",{staticStyle:{display:"block",margin:"24px auto",width:"100%"},attrs:{src:a("5049")}})]),i("a-modal",{attrs:{title:"效果展示",centered:!0,width:"400px",footer:null},model:{value:e.categoryModalVisible1,callback:function(t){e.categoryModalVisible1=t},expression:"categoryModalVisible1"}},[i("span",{staticStyle:{color:"#4190ff","margin-left":"2px"}},[e._v("店铺主营品类展示如下:")]),i("img",{staticStyle:{display:"block",margin:"24px auto",width:"100%"},attrs:{src:a("deba")}})]),i("a-modal",{attrs:{title:"查看主店铺信息"},model:{value:e.storeVisible,callback:function(t){e.storeVisible=t},expression:"storeVisible"}},[i("p",{staticStyle:{"margin-bottom":"24px"}},[i("span",{staticStyle:{display:"inline-block",width:"170px","text-align":"right"}},[e._v("主店铺:")]),e._v(e._s(e.mainStoreData.name)+" (ID: "+e._s(e.mainStoreData.entity_id)+")")]),i("p",{staticStyle:{"margin-bottom":"8px"}},[i("span",{staticStyle:{display:"inline-block",width:"170px","text-align":"right"}},[e._v("主店铺所属站点:")]),e._v(e._s(e.mainStoreData.website_name)+" (ID: "+e._s(e.mainStoreData.website_id)+")")]),i("template",{slot:"footer"},[i("a-button",{attrs:{type:"primary"},on:{click:e.handleOkStore}},[e._v("关闭")])],1)],2)],1)},z=[],U=(a("55dd"),a("9424")),W=a("de6a");function G(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function X(e){for(var t=1;t=0},nameChange:function(e){if(!e)return 0;this.nameChangeValue=e.target.value},introductChange:function(e){if(!e)return 0;this.introductValue=e.target.value},descriptionChange:function(e){if(!e)return 0;this.descriptionValue=e.target.value},changeSort:function(e){if(!e)return 0;this.changeSortValue=e.target.value},eventCheckStore:function(){var e=this,t={entity_id:this.detailInfo.entity_id};Object(m["n"])(t).then((function(t){t&&(e.mainStoreData=t.data)})),this.storeVisible=!0},handleOkStore:function(){this.storeVisible=!1},showTemplate:function(){this.bannerModalVisible=!0},showCategory:function(){this.categoryModalVisible1=!0},submit:function(e){var t=this;e.preventDefault(),this.form.validateFields((function(e,a){if(!e)if(t.detailInfo.exchange_rate!==a.exchange_rate){var i=t,r={entity_id:t.detailInfo.entity_id,name:t.form.getFieldValue("name"),logo:t.logoImages,poster:t.bannerImages,short_description:a.short_description,description:a.description,exchange_rate:Number(a.exchange_rate),category_id:a.category_id,sort:Number(a.sort),status:a.status};t.$confirm({icon:function(e){return e(W["a"])},title:"修改商户币种兑换站点币种汇率,店铺下所有开启自动计算售价的商品,将自动重新计算销售价格,确定修改?",okText:"确认",cancelText:"取消",onOk:function(){Object(m["G"])(r).then((function(e){e&&(i.$emit("updateStatus",i.detailInfo.entity_id),i.$message.success("更新成功"))}))},onCancel:function(){return""}})}else{var s={entity_id:t.detailInfo.entity_id,name:t.form.getFieldValue("name"),logo:t.logoImages,poster:t.bannerImages,short_description:a.short_description,description:a.description,exchange_rate:a.exchange_rate,category_id:a.category_id,sort:Number(a.sort),status:a.status};Object(m["G"])(s).then((function(e){e&&(t.$emit("updateStatus",t.detailInfo.entity_id),t.$message.success("更新成功"))}))}}))},noticeLogoAddress:function(e){this.logoImages=e.address,this.$refs.logoImages.errorTips=""},noticeBannerAddress:function(e){this.bannerImages=e.address,this.$refs.bannerImages.errorTips=""}},mounted:function(){var e=this;Object(m["o"])().then((function(t){var a=t.data;a&&(e.opCategoryList=a.rows)}))}},H=Y,J=(a("cd92"),Object(f["a"])(H,K,z,!1,null,"69f176f6",null)),Q=J.exports,Z=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"contenMangement"},[i("a-card",{attrs:{bordered:!1}},[i("a-form",{attrs:{form:e.form}},[i("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{label:"商品详情",labelCol:e.firstLabelCol,wrapperCol:e.firstWrapperCol}},[i("div",{staticClass:"select-part "},[i("a-row",[i("a-col",{attrs:{span:24}},[i("a-form-item",{attrs:{"label-col":e.labelCol,"wrapper-col":e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 发货说明\n "),i("a-tooltip",{attrs:{title:"店铺商品发货说明,显示在商品详情页"}},[i("a-icon",{attrs:{type:"info-circle-o"}})],1)],1),i("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["delivery_desc",{rules:[{max:400,message:"发货说明限制400个字符"}]}],expression:"['delivery_desc', { rules: [{ max: 400, message: '发货说明限制400个字符' }] }]"}],attrs:{placeholder:"请输入","auto-size":{minRows:5}},on:{change:e.shippingChange}}),i("span",{staticClass:"textarea-limit"},[e._v(e._s(e.shippingValue.length)+"/400")])],1)],1),i("a-col",{attrs:{span:24}},[i("a-form-item",{attrs:{"label-col":e.labelCol,"wrapper-col":e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 税费说明\n "),i("a-tooltip",{attrs:{title:"店铺商品税费说明,显示在商品详情页"}},[i("a-icon",{attrs:{type:"info-circle-o"}})],1)],1),i("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["tax_desc",{rules:[{max:400,message:"税费说明限制400个字符"}]}],expression:"['tax_desc', { rules: [{ max: 400, message: '税费说明限制400个字符' }] }]"}],attrs:{placeholder:"请输入","auto-size":{minRows:5}},on:{change:e.taxChange}}),i("span",{staticClass:"textarea-limit"},[e._v(e._s(e.taxValue.length)+"/400")])],1)],1),i("a-col",{attrs:{span:24}},[i("a-form-item",{attrs:{"label-col":e.labelCol,"wrapper-col":e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 运费说明\n "),i("a-tooltip",{attrs:{title:"店铺商品运费说明,显示在商品详情页"}},[i("a-icon",{attrs:{type:"info-circle-o"}})],1)],1),i("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["freight_desc",{rules:[{max:400,message:"运费说明限制400个字符"}]}],expression:"['freight_desc', { rules: [{ max: 400, message: '运费说明限制400个字符' }] }]"}],attrs:{placeholder:"请输入","auto-size":{minRows:5}},on:{change:e.shippingFeeChange}}),i("span",{staticClass:"textarea-limit"},[e._v(e._s(e.shippingFeeValue.length)+"/400")])],1)],1),i("a-col",{attrs:{span:24}},[i("a-form-item",{attrs:{"label-col":e.labelCol,"wrapper-col":e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 运费规则\n "),i("a-tooltip",{attrs:{title:"店铺商品运费详细描述,对运费说明进行补充,显示在商品详情页"}},[i("a-icon",{attrs:{type:"info-circle-o"}})],1)],1),i("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["ship_cost_rule",{rules:[{max:400,message:"运费规则限制400个字符"}]}],expression:"['ship_cost_rule', { rules: [{ max: 400, message: '运费规则限制400个字符' }] }]"}],attrs:{placeholder:"请输入","auto-size":{minRows:5}},on:{change:e.shippingRulerChange}}),i("span",{staticClass:"textarea-limit"},[e._v(e._s(e.shippingRulerValue.length)+"/400")])],1)],1)],1)],1),i("a-icon",{staticStyle:{color:"#1890ff"},attrs:{type:"eye"}}),i("a-button",{staticStyle:{"margin-left":"9px",padding:"0"},attrs:{type:"link"},on:{click:e.showTemplate}},[e._v("效果展示")])],1),i("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{label:"购物车",labelCol:e.firstLabelCol,wrapperCol:e.firstWrapperCol}},[i("div",{staticClass:"select-part "},[i("a-row",[i("a-col",{attrs:{span:24}},[i("a-form-item",{staticClass:"form-item-radio-margin-top",attrs:{required:"",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 物流分配方式\n "),i("a-tooltip",{attrs:{title:"“系统分配物流”表示用户下单后,由系统按照物流分配设置自动分配物流;“用户选择物流”表示用户在购物车需要选择订单使用的物流"}},[i("a-icon",{attrs:{type:"info-circle-o"}})],1)],1),i("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_show_line_options",{initialValue:0}],expression:"['is_show_line_options', {initialValue: 0}]"}],attrs:{name:"radioGroup"}},[i("a-radio",{attrs:{value:0}},[e._v("\n 系统分配物流\n ")]),i("a-radio",{attrs:{value:1}},[e._v("\n 用户选择物流\n ")])],1)],1)],1),i("a-col",{attrs:{span:24}},[i("a-form-item",{attrs:{"label-col":e.labelCol,"wrapper-col":e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 店铺顶部说明\n "),i("a-tooltip",{attrs:{title:"店铺商品下单相关的说明,显示在购物车店铺顶部"}},[i("a-icon",{attrs:{type:"info-circle-o"}})],1)],1),i("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["top_tips",{rules:[{max:400,message:"店铺顶部说明限制400个字符"}]}],expression:"['top_tips', { rules: [{ max: 400, message: '店铺顶部说明限制400个字符' }] }]"}],attrs:{placeholder:"请输入","auto-size":{minRows:5}},on:{change:e.shopTopChange}}),i("span",{staticClass:"textarea-limit"},[e._v(e._s(e.shopTopValue.length)+"/400")])],1)],1),i("a-col",{attrs:{span:24}},[i("a-form-item",{attrs:{"label-col":e.labelCol,"wrapper-col":e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 店铺底部说明\n "),i("a-tooltip",{attrs:{title:"店铺商品下单相关的说明,显示在购物车店铺底部"}},[i("a-icon",{attrs:{type:"info-circle-o"}})],1)],1),i("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["bottom_tips",{rules:[{max:400,message:"店铺底部说明限制400个字符"}]}],expression:"['bottom_tips', { rules: [{ max: 400, message: '店铺底部说明限制400个字符' }] }]"}],attrs:{placeholder:"请输入","auto-size":{minRows:5}},on:{change:e.shopBottomChange}}),i("span",{staticClass:"textarea-limit"},[e._v(e._s(e.shopBottomValue.length)+"/400")])],1)],1)],1)],1),i("a-icon",{staticStyle:{color:"#1890ff"},attrs:{type:"eye"}}),i("a-button",{staticStyle:{"margin-left":"9px",padding:"0"},attrs:{type:"link"},on:{click:e.showTemplate2}},[e._v("效果展示")])],1),i("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{label:"配送设置",labelCol:e.firstLabelCol,wrapperCol:e.firstWrapperCol}},[i("div",{staticClass:"select-part "},[i("a-row",[i("a-col",{attrs:{span:24}},[i("a-form-item",{staticClass:"form-item-radio-margin-top",attrs:{required:"",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("配送方式\n ")]),i("a-checkbox-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["delivery_method",{rules:[{required:!0,message:"请选择配送方式"}],initialValue:[1]}],expression:"['delivery_method', { rules: [{ required: true, message: '请选择配送方式' }],initialValue: [1]}]"}],on:{change:e.eventLogistics}},[i("a-checkbox",{attrs:{value:1}},[e._v("\n 物流配送\n ")]),i("a-checkbox",{attrs:{value:2}},[e._v("\n 门店自提\n ")])],1)],1)],1),e.isShowArea?i("a-col",{attrs:{span:24}},[i("a-form-item",{staticClass:"form-item-radio-margin-top",attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("配送区域\n ")]),i("a-checkbox-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["delivery_area",{initialValue:[1]}],expression:"['delivery_area', {initialValue: [1]}]"}]},[e._l(e.areaData,(function(t){return i("a-checkbox",{key:t.id,attrs:{value:t.id}},[e._v("\n "+e._s(t.name)+"\n ")])})),i("a-checkbox",{attrs:{value:4}},[e._v("\n 中国台湾\n ")])],2)],1)],1):e._e(),i("a-col",{attrs:{span:24}},[i("a-form-item",{attrs:{"label-col":e.labelCol,"wrapper-col":e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 收货地址屏蔽词\n "),i("a-tooltip",{attrs:{title:"该店铺的商品,使用包含设置屏蔽词的收货地址,无法下单"}},[i("a-icon",{attrs:{type:"info-circle-o"}})],1)],1),i("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["disable_word",{rules:[{max:400,message:"最多支持400个字符"}]}],expression:"['disable_word', { rules: [{ max: 400, message: '最多支持400个字符' }] }]"}],attrs:{placeholder:"多个屏蔽词,用英文逗号隔开。示例:快递柜,丰巢","auto-size":{minRows:3}},on:{change:e.shieldAddressChange}}),i("span",{staticClass:"textarea-limit"},[e._v(e._s(e.shieldAddressValue.length)+"/400")])],1)],1)],1)],1)]),i("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{label:"线下门店",labelCol:e.firstLabelCol,wrapperCol:e.firstWrapperCol}},[i("div",{staticClass:"select-part "},[i("a-row",[i("a-col",{attrs:{span:24}},[i("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 所在商圈\n "),i("a-tooltip",{attrs:{title:"线下门店所在城市商圈"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["mall_name",{rules:[{max:100,message:"不超过100个字符"}]}],expression:"['mall_name',{ rules:\n [\n { max:100, message: '不超过100个字符' }\n ]\n }]"}],staticClass:"import",staticStyle:{"padding-right":"55px"},attrs:{placeholder:"请输入"},on:{change:e.shoppingChange}}),i("span",{staticClass:"characterLimit"},[e._v(e._s(e.shoppingValue.length)+"/100")])],1)],1),i("a-col",{attrs:{span:24}},[i("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 详细地址\n "),i("a-tooltip",{attrs:{title:"线下门店详细地址"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["full_address",{rules:[{max:200,message:"不超过200个字符"}]}],expression:"['full_address',{ rules:\n [\n { max:200, message: '不超过200个字符' }\n ]\n }]"}],staticClass:"import",staticStyle:{"padding-right":"55px"},attrs:{placeholder:"请输入"},on:{change:e.addressChange}}),i("span",{staticClass:"characterLimit"},[e._v(e._s(e.addressValue.length)+"/200")])],1)],1),i("a-col",{attrs:{span:24}},[i("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 联系电话\n "),i("a-tooltip",{attrs:{title:"线下门店联系电话"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["telephone",{rules:[{max:100,message:"不超过100个字符"}]}],expression:"['telephone',{ rules:\n [\n { max:100, message: '不超过100个字符' }\n ]\n }]"}],staticClass:"import",staticStyle:{"padding-right":"55px"},attrs:{placeholder:"请输入"},on:{change:e.telephoneChange}}),i("span",{staticClass:"characterLimit"},[e._v(e._s(e.telephoneValue.length)+"/100")])],1)],1),i("a-col",{attrs:{span:24}},[i("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 邮箱地址\n "),i("a-tooltip",{attrs:{title:"线下门店邮箱地址"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["email",{rules:[{max:100,message:"不超过100个字符"}]}],expression:"['email',{ rules:\n [\n { max:100, message: '不超过100个字符' }\n ]\n }]"}],staticClass:"import",staticStyle:{"padding-right":"55px"},attrs:{placeholder:"请输入"},on:{change:e.emailChange}}),i("span",{staticClass:"characterLimit"},[e._v(e._s(e.emailValue.length)+"/100")])],1)],1),i("a-col",{attrs:{span:24}},[i("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 服务时间\n "),i("a-tooltip",{attrs:{title:"线下门店营业时间"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["service_time",{rules:[{max:100,message:"不超过100个字符"}]}],expression:"['service_time',{ rules:\n [\n { max:100, message: '不超过100个字符' }\n ]\n }]"}],staticClass:"import",staticStyle:{"padding-right":"55px"},attrs:{placeholder:"请输入"},on:{change:e.timeChange}}),i("span",{staticClass:"characterLimit"},[e._v(e._s(e.timeValue.length)+"/100")])],1)],1)],1)],1)]),i("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{labelCol:e.firstLabelCol,wrapperCol:e.firstWrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 订单号规则\n "),i("a-tooltip",{attrs:{title:"设置店铺订单独有的订单号规则。若未设置,则按站点订单号规则进行生成"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("div",{staticClass:"select-part "},[i("a-row",[i("a-col",{attrs:{span:24}},[i("a-form-item",{staticClass:"form-item-radio-margin-top",attrs:{required:"",labelCol:{span:7},wrapperCol:{span:17}}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 按店铺生成订单号\n ")]),i("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["generate_order_no_by_store",{initialValue:2}],expression:"['generate_order_no_by_store', {initialValue: 2}]"}],attrs:{name:"radioGroup"}},[i("a-radio",{attrs:{value:1}},[e._v("\n 开启\n ")]),i("a-radio",{attrs:{value:2}},[e._v("\n 关闭\n ")])],1)],1)],1),i("a-col",{attrs:{span:24}},[i("a-form-item",{staticClass:"form-item-radio-margin-top",attrs:{required:"",labelCol:{span:7},wrapperCol:{span:17}}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 订单号生成模式\n "),i("a-tooltip",{attrs:{title:"控制订单号生成使用时间戳或自增流水号生成"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["order_no_type",{initialValue:1}],expression:"['order_no_type', {initialValue: 1}]"}],attrs:{name:"radioGroup"}},[i("a-radio",{attrs:{value:1}},[e._v("\n 时间戳\n ")]),i("a-radio",{attrs:{value:2}},[e._v("\n 自增流水号\n ")])],1)],1)],1),i("a-col",{directives:[{name:"show",rawName:"v-show",value:2===e.form.getFieldValue("order_no_type"),expression:"form.getFieldValue('order_no_type') === 2"}],attrs:{span:24}},[i("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{labelCol:{span:7},wrapperCol:{span:17}}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 日期精确到\n "),i("a-tooltip",{attrs:{title:"控制自增流水号生成订单号时,读取的时间单位,勾选的越多则订单号越长"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("span",{staticStyle:{"margin-right":"8px"}},[e._v("年")]),i("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["order_no_year",{initialValue:1}],expression:"['order_no_year', {initialValue: 1}]"}],staticStyle:{width:"112px","margin-right":"24px"}},[i("a-select-option",{attrs:{value:1}},[e._v("2位")]),i("a-select-option",{attrs:{value:2}},[e._v("4位")])],1),i("a-checkbox",{staticStyle:{"margin-top":"0","margin-right":"24px"},attrs:{disabled:"",checked:""}},[e._v("\n 月\n ")]),i("a-checkbox",{staticStyle:{"margin-top":"0","margin-right":"24px"},attrs:{disabled:"",checked:""}},[e._v("\n 日\n ")]),i("a-checkbox",{staticStyle:{"margin-top":"0","margin-right":"24px"},model:{value:e.hour,callback:function(t){e.hour=t},expression:"hour"}},[e._v("\n 时\n ")]),i("a-checkbox",{staticStyle:{"margin-top":"0"},model:{value:e.minute,callback:function(t){e.minute=t},expression:"minute"}},[e._v("\n 分\n ")])],1)],1),i("a-col",{directives:[{name:"show",rawName:"v-show",value:2===e.form.getFieldValue("order_no_type"),expression:"form.getFieldValue('order_no_type') === 2"}],attrs:{span:24}},[i("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{labelCol:{span:7},wrapperCol:{span:17}}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 流水号最小长度\n "),i("a-tooltip",{attrs:{title:"控制流水号生成最小长度"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["serial_number_min_len",{initialValue:3}],expression:"['serial_number_min_len', {initialValue: 3}]"}],staticStyle:{width:"192px","margin-right":"24px"}},[i("a-select-option",{attrs:{value:3}},[e._v("3位")]),i("a-select-option",{attrs:{value:4}},[e._v("4位")]),i("a-select-option",{attrs:{value:5}},[e._v("5位")]),i("a-select-option",{attrs:{value:6}},[e._v("6位")]),i("a-select-option",{attrs:{value:7}},[e._v("7位")])],1)],1)],1),i("a-col",{attrs:{span:24}},[i("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{labelCol:{span:7},wrapperCol:{span:17}}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 订单号前缀\n "),i("a-tooltip",{attrs:{title:"建议使用站点简称,作为订单号的标识"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["order_no_prefix"],expression:"['order_no_prefix']"}],staticClass:"import",staticStyle:{"padding-right":"55px"},attrs:{placeholder:"请输入"},on:{change:e.timeChange}})],1)],1)],1)],1)]),i("a-form-item",{staticClass:"form-item-radio-margin-top",attrs:{required:"",labelCol:e.firstLabelCol,wrapperCol:e.firstWrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 库存扣减设置\n ")]),i("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_change_qty_after_sync",{initialValue:0}],expression:"['is_change_qty_after_sync', {initialValue: 0}]"}],attrs:{name:"radioGroup"}},[i("a-radio",{attrs:{value:0}},[e._v("\n 订单状态更新为已发货扣减库存\n ")]),i("a-radio",{attrs:{value:1}},[e._v("\n 商户同步订单扣减库存\n ")])],1)],1),i("a-form-item",{staticClass:"form-item-radio-margin-top",attrs:{required:"",labelCol:e.firstLabelCol,wrapperCol:e.firstWrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 支付单报关\n "),i("a-tooltip",{attrs:{title:"开启支付单报关,表示店铺订单需要推送支付单到海关,收银台仅显示支持支付单报关的支付方式"}},[i("a-icon",{attrs:{type:"info-circle-o"}})],1)],1),i("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_bonded",{initialValue:1}],expression:"['is_bonded', {initialValue: 1}]"}],attrs:{name:"radioGroup"}},[i("a-radio",{attrs:{value:1}},[e._v("\n 开启\n ")]),i("a-radio",{attrs:{value:0}},[e._v("\n 关闭\n ")])],1)],1),i("a-modal",{attrs:{title:"效果展示",centered:!0,width:e.exampleModalWidth,footer:null},model:{value:e.exampleModalVisible,callback:function(t){e.exampleModalVisible=t},expression:"exampleModalVisible"}},[i("span",{staticStyle:{color:"#4190ff","margin-left":"2px"}},[e._v("商品详情页发货说明、税费说明、运费说明、运费规则效果展示:")]),i("img",{staticStyle:{display:"block",margin:"24px auto",width:"100%"},attrs:{src:a("627e")}})]),i("a-modal",{attrs:{title:"效果展示",centered:!0,width:e.exampleModalWidth,footer:null},model:{value:e.exampleModalVisible1,callback:function(t){e.exampleModalVisible1=t},expression:"exampleModalVisible1"}},[i("span",{staticStyle:{color:"#4190ff","margin-left":"2px"}},[e._v("购物车店铺顶部说明、底部说明效果展示:")]),i("img",{staticStyle:{display:"block",margin:"24px auto",width:"100%"},attrs:{src:a("a38a")}}),i("span",{staticStyle:{color:"#4190ff","margin-left":"2px"}},[e._v("购物车“用户选择物流”展示:")]),i("img",{staticStyle:{display:"block",margin:"24px auto",width:"100%"},attrs:{src:a("ab87")}})])],1),i("a-form-item",{attrs:{wrapperCol:{span:17,offset:7}}},[i("div",{staticClass:"save"},[i("a-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("保存")])],1)])],1)],1)},ee=[],te={components:{},props:{detailInfo:{type:Object,required:!0}},watch:{detailInfo:{handler:function(e){var t=this;e&&this.$nextTick((function(){var a=t.form.setFieldsValue;a({delivery_desc:e.delivery_desc,tax_desc:e.tax_desc,freight_desc:e.freight_desc,ship_cost_rule:e.ship_cost_rule,top_tips:e.top_tips,bottom_tips:e.bottom_tips,is_show_line_options:e.is_show_line_options,delivery_method:e.delivery_method,delivery_area:e.delivery_area,disable_word:e.disable_word,mall_name:e.mall_name,full_address:e.full_address,telephone:e.telephone,email:e.email,service_time:e.service_time,is_change_qty_after_sync:e.is_change_qty_after_sync,is_bonded:e.is_bonded,generate_order_no_by_store:e.generate_order_no_by_store,order_no_type:e.order_no_type,serial_number_min_len:e.serial_number_min_len,order_no_prefix:e.order_no_prefix}),2===e.order_no_type&&(a({order_no_year:e.order_no_year}),t.hour=1===e.order_no_hour,t.minute=1===e.order_no_minute),t.shippingValue=e.delivery_desc,t.taxValue=e.tax_desc,t.shippingFeeValue=e.freight_desc,t.shippingRulerValue=e.ship_cost_rule,t.shopTopValue=e.top_tips,t.shopBottomValue=e.bottom_tips,t.shieldAddressValue=e.disable_word,t.shoppingValue=e.mall_name,t.addressValue=e.full_address,t.telephoneValue=e.telephone,t.emailValue=e.email,t.timeValue=e.service_time,e.delivery_method.indexOf(1)<=-1?t.isShowArea=!1:t.isShowArea=!0}))},deep:!0,immediate:!0}},data:function(){return{showSize:!1,showImg:!1,showSizeH:!1,showImgH:!1,form:this.$form.createForm(this),navStaticBlockValue:"",descTitleValue:"",subtitleValue:"",metaTitleValue:"",metaKeywordValue:"",metaDescriptionValue:"",exampleModalVisible:!1,exampleModalVisible1:!1,exampleImgUrl:"",exampleModalTop:80,exampleModalWidth:520,file:"",labelCol:{span:7},wrapperCol:{span:17},loading:!1,query:{wap_image:"",banner_image:"",desc_banner_1:"",desc_banner_2:"",desc_banner_frontend:""},headers:{"Access-Token":this.$ls.get("token"),"Website-ID":this.$ls.get("website-id")},firstLabelCol:{span:5},firstWrapperCol:{span:19},shippingValue:"",taxValue:"",shippingFeeValue:"",shippingRulerValue:"",shopTopValue:"",shopBottomValue:"",shieldAddressValue:"",shoppingValue:"",addressValue:"",telephoneValue:"",emailValue:"",timeValue:"",areaData:[],isShowArea:!0,hour:!1,minute:!1}},methods:{submit:function(e){var t=this;e.preventDefault(),this.form.validateFields((function(e,a){if(!e){var i={entity_id:t.detailInfo.entity_id,delivery_desc:a.delivery_desc,tax_desc:a.tax_desc,freight_desc:a.freight_desc,ship_cost_rule:a.ship_cost_rule,top_tips:a.top_tips,bottom_tips:a.bottom_tips,is_show_line_options:a.is_show_line_options,delivery_method:a.delivery_method,delivery_area:a.delivery_area,disable_word:a.disable_word,mall_name:a.mall_name,full_address:a.full_address,telephone:a.telephone,email:a.email,service_time:a.service_time,is_change_qty_after_sync:a.is_change_qty_after_sync,is_bonded:a.is_bonded,generate_order_no_by_store:a.generate_order_no_by_store,order_no_type:a.order_no_type,serial_number_min_len:a.serial_number_min_len,order_no_prefix:a.order_no_prefix,order_no_minute:t.minute?1:2,order_no_hour:t.hour?1:2};2===a.order_no_type&&(i.order_no_year=a.order_no_year),Object(m["F"])(i).then((function(e){e&&(t.$emit("updateStatus",t.detailInfo.entity_id),t.$message.success("更新成功"))}))}}))},shippingChange:function(e){if(!e)return 0;this.shippingValue=e.target.value},taxChange:function(e){if(!e)return 0;this.taxValue=e.target.value},shippingFeeChange:function(e){if(!e)return 0;this.shippingFeeValue=e.target.value},shippingRulerChange:function(e){if(!e)return 0;this.shippingRulerValue=e.target.value},shopTopChange:function(e){if(!e)return 0;this.shopTopValue=e.target.value},shopBottomChange:function(e){if(!e)return 0;this.shopBottomValue=e.target.value},shieldAddressChange:function(e){if(!e)return 0;this.shieldAddressValue=e.target.value},shoppingChange:function(e){if(!e)return 0;this.shoppingValue=e.target.value},addressChange:function(e){if(!e)return 0;this.addressValue=e.target.value},telephoneChange:function(e){if(!e)return 0;this.telephoneValue=e.target.value},emailChange:function(e){if(!e)return 0;this.emailValue=e.target.value},timeChange:function(e){if(!e)return 0;this.timeValue=e.target.value},showTemplate:function(){this.exampleModalVisible=!0},showTemplate2:function(){this.exampleModalVisible1=!0},eventLogistics:function(e){e.indexOf(1)>-1?this.isShowArea=!0:this.isShowArea=!1}},mounted:function(){var e=this;Object(m["d"])().then((function(t){var a=t.data;a&&(e.areaData=a.rows)}))}},ae=te,ie=(a("64ac"),Object(f["a"])(ae,Z,ee,!1,null,"1b60874c",null)),re=ie.exports,se=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("a-card",{attrs:{bordered:!1}},[i("div",{staticClass:"instructions"},[i("h3",[e._v("说明:")]),i("a-icon",{staticClass:"icon-exclamation",staticStyle:{color:"#FAAD14"},attrs:{type:"exclamation-circle",theme:"filled"}}),i("p",[e._v("1.此功能适用场景:特定范围的商品需要限制下单商品数量。如一个订单只能包含2罐奶粉、一个订单只能包含2瓶香水等。可创建一条奶粉限购规则,设置主商品数量限购=“主商品数量≤2”,然后将限购的奶粉加入商品范围中即可。同理,再创建香水限购规则。"),i("br"),e._v("\n 2.此功能和物流限购中“订单商品总数量下单限制”的区别是:订单商品总数量下单限制的商品范围默认是整个店铺的所有商品。商品数量限购中的商品范围是特定范围商品。订单商品总数量下单限制目前不支持子商品数量限购。"),i("br"),e._v("\n 3.主商品数量=订单明细中商品行每一行的数量之和。举例:订单有3个商品行A、B、C,A(套装商品)购买数量=3,B(简单商品)购买数量=2,C(简单商品)购买数量=1,则主商品数量=3+2+1=6。"),i("br"),e._v("\n 4.子商品数量=订单明细中简单商品数量之和+套装商品子商品数量之和。举例:订单有3个商品行A、B、C,A(套装商品)购买数量=3,B(简单商品)购买数量=2,C(简单商品)购买数量=1,A(套装商品)包含1个子商品A1、2个子商品A2,则子商品数量=(1+2)*3+2+1=12。"),i("br")]),i("a-icon",{staticStyle:{color:"#1890ff","margin-top":"8px","margin-left":"-18px"},attrs:{type:"eye"}}),i("a",{staticStyle:{"margin-top":"8px","margin-left":"4px"},attrs:{href:"javascript:;"},on:{click:e.showEffect}},[e._v("效果展示")])],1),i("a-button",{style:{margin:"0 0 24px"},attrs:{type:"primary"},on:{click:e.clickAdd}},[e._v("新建")]),i("div",{staticClass:"ant-table-wrapper"},[i("a-table",{attrs:{columns:e.columns,loading:e.loading,pagination:e.paginationSet,dataSource:e.dataSource,rowKey:e.rowKeyMethod},scopedSlots:e._u([{key:"name",fn:function(t){return[i("a-tooltip",{attrs:{placement:"topLeft",title:t}},[e._v("\n "+e._s(t)+"\n ")])]}},{key:"main_limit_desc",fn:function(t){return[i("a-tooltip",{attrs:{placement:"topLeft",title:t}},[e._v("\n "+e._s(t)+"\n ")])]}},{key:"all_limit_desc",fn:function(t){return[i("a-tooltip",{attrs:{placement:"topLeft",title:t}},[e._v("\n "+e._s(t)+"\n ")])]}},{key:"status",fn:function(t){return[e._v("\n "+e._s(1===t?"启用":"禁用")+"\n ")]}},{key:"operation",fn:function(t,a){return[a.line_id&&a.line_id>0?i("router-link",{attrs:{target:"_blank",to:{path:"/setting/shopManage/proLimited/limitedDetail/"+a.store_id+"/"+a.entity_id+"/"+a.line_id+"/websiteId/"+e.websiteId}}},[e._v("\n 查看\n ")]):i("router-link",{attrs:{target:"_blank",to:{path:"/setting/shopManage/proLimited/limitedDetail/"+a.store_id+"/"+a.entity_id+"/websiteId/"+e.websiteId}}},[e._v("\n 查看\n ")])]}}])})],1),i("p-agination",{attrs:{total:e.pageTotal,currentPage:e.query.page,computedPageNumber:e.computedPageNumber,pageSize:e.query.size},on:{jumpTableChange:e.jumpTableChange,selectPageSizeChange:e.selectPageSizeChange}})],1),i("a-modal",{attrs:{title:"效果展示",centered:!0,width:"824px",footer:null},model:{value:e.effectModalVisible,callback:function(t){e.effectModalVisible=t},expression:"effectModalVisible"}},[i("div",{staticStyle:{color:"#4190ff","margin-left":"2px"}},[e._v("商品数量限购效果展示如下:")]),i("img",{staticStyle:{display:"inline-block",margin:"0 24px 0 0",width:"376px"},attrs:{src:a("1dc3")}}),i("img",{staticStyle:{display:"inline-block",margin:"24px auto",width:"376px"},attrs:{src:a("ed6d")}})])],1)},ne=[],le=a("bf43"),oe=a("ac0d"),de=[{title:"限购规则ID",dataIndex:"entity_id",width:"12%",align:"center",scopedSlots:{customRender:"entity_id"}},{title:"限购规则名称",dataIndex:"name",width:"28%",align:"left",ellipsis:!0,scopedSlots:{customRender:"name"}},{title:"主商品数量限购",dataIndex:"main_limit_desc",width:"20%",align:"center",ellipsis:!0,scopedSlots:{customRender:"main_limit_desc"}},{title:"子商品数量限购",dataIndex:"all_limit_desc",width:"20%",align:"center",ellipsis:!0,scopedSlots:{customRender:"all_limit_desc"}},{title:"状态",dataIndex:"status",width:"10%",align:"center",scopedSlots:{customRender:"status"}},{title:"操作",dataIndex:"operation",width:"10%",scopedSlots:{customRender:"operation"}}],ce={name:"ProductLimitedPage",components:{PAgination:le["a"]},mixins:[oe["n"]],props:{storeId:{type:Number,default:0,required:!1},lineId:{type:Number,default:0,required:!1}},data:function(){return{loading:!1,columns:de,effectModalVisible:!1,labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:18}}}},watch:{storeId:function(e){this.getTableList()},lineId:function(e){this.getTableList()}},methods:{rowKeyMethod:function(e,t){return t},clickAdd:function(){this.$router.push({path:"/setting/shopManage/proLimited/addLimited/storeId/".concat(this.storeId,"/lineId/").concat(this.lineId,"/websiteId/").concat(this.websiteId)})},showEffect:function(){this.effectModalVisible=!0},getTableList:function(){var e=this;this.loading=!0;var t={};0!==this.storeId&&(t.store_id=this.storeId),0!==this.lineId&&(t.line_id=this.lineId),t=Object.assign(t,this.query);var a=this.lineId>0?m["i"]:m["u"];a(t).then((function(t){t&&t.data?(e.dataSource=t.data.rows,e.pageTotal=t.data.total):e.resultNull(),e.loading=!1}))}}},ue=ce,pe=(a("9aa6"),Object(f["a"])(ue,se,ne,!1,null,"63b7ac1f",null)),me=pe.exports,_e=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("a-card",{attrs:{bordered:!1}},[a("div",{staticClass:"ant-table-wrapper"},[a("a-table",{attrs:{columns:e.columns,loading:e.loading,pagination:e.paginationSet,dataSource:e.dataSource,rowKey:e.rowKeyMethod}})],1),a("p-agination",{attrs:{total:e.pageTotal,currentPage:e.query.page,computedPageNumber:e.computedPageNumber,pageSize:e.query.limit},on:{jumpTableChange:e.jumpTableChange,selectPageSizeChange:e.selectPageSizeChange}})],1)],1)},he=[],fe=[{title:"商户币种",dataIndex:"merchant_currency",width:"15%",scopedSlots:{customRender:"merchant_currency"}},{title:"站点币种",dataIndex:"website_currency",width:"20%",scopedSlots:{customRender:"website_currency"}},{title:"商户币种兑换站点币种汇率",dataIndex:"exchange_rate",width:"30%",scopedSlots:{customRender:"exchange_rate"}},{title:"操作人",dataIndex:"operater",width:"15%",scopedSlots:{customRender:"operater"}},{title:"操作时间",dataIndex:"created_at",width:"20%",scopedSlots:{customRender:"created_at"}}],ge={name:"RatePage",components:{PAgination:le["a"]},mixins:[oe["h"]],props:{storeId:{type:Number,default:0,required:!1}},data:function(){return{loading:!1,columns:fe,labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:18}},queryParam:{attribute_id:"",attribute_name:"",attribute_status:1e3,sort_fields:"",sort_type:"ASC"},waitChangeArr:[]}},watch:{storeId:function(e){this.getTableList()}},methods:{rowKeyMethod:function(e,t){return t},getTableList:function(){var e=this;if(""!==this.storeId){this.loading=!0;var t={store_id:this.storeId};t=Object.assign(t,this.query),Object(m["e"])(t).then((function(t){t&&t.data?(e.dataSource=t.data.rows,e.pageTotal=t.data.total):e.resultNull(),e.loading=!1,e.waitChangeArr=[]}))}}}},be=ge,ve=(a("1816"),Object(f["a"])(be,_e,he,!1,null,"ac747d96",null)),ye=ve.exports,Ce=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"logisticsSetup"},[i("a-card",{attrs:{bordered:!1}},[i("a-form",{staticClass:"custom-form",attrs:{form:e.form},on:{submit:e.handleSubmit}},[i("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 物流线路名称\n "),i("a-tooltip",{attrs:{title:"仅供在后台系统展示和查询使用"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("div",{staticStyle:{"line-height":"24px","margin-top":"8px"}},[e._v(e._s(e.detailInfo.line_name))])]),i("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 物流服务\n "),i("a-tooltip",{attrs:{title:"物流公司的一种物流服务,同一个物流公司按照不同维度可以分为多种物流服务。如菜鸟物流按照清关方式可分为菜鸟BC服务、菜鸟CC服务、菜鸟BBC服务等。"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("div",[e._v(e._s(e.detailInfo.logistics_name))])]),i("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 清关方式\n ")]),i("div",[e._v(e._s(e.detailInfo.declaration_type))])]),i("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 身份验证类型\n "),i("a-tooltip",{attrs:{title:"提交订单页的身份验证类型。收货人验证是指验证收货人的身份证姓名、身份证号码。付款人验证是指验证付款人的身份证姓名、身份证号码。对于需要付款人验证的订单,跨境订单申报时,会将用户输入的付款人姓名、付款人身份证号码和支付平台的支付人信息做对比,如果不一致则申报失败。多店铺合并付款时,如果A店铺是收货人验证,B店铺是付款人验证,A店铺和B店铺合并付款下单,会要求收货人和付款人保持一致。"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["authentication_type"],expression:"['authentication_type']"}]},[i("a-radio",{attrs:{value:1}},[e._v("\n 收货人验证\n ")]),i("a-radio",{attrs:{value:2}},[e._v("\n 付款人验证\n ")]),i("a-radio",{attrs:{value:0}},[e._v("\n 不验证\n ")])],1)],1),i("a-form-item",{directives:[{name:"show",rawName:"v-show",value:0!==e.form.getFieldValue("authentication_type"),expression:"form.getFieldValue('authentication_type') !== 0"}],staticStyle:{"margin-bottom":"0"},attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 身份证年龄下单限制\n "),i("a-tooltip",{attrs:{title:"提交订单页身份证号码验证的年龄限制。多店铺合并付款时,如果A店铺的身份证年龄限制是18岁-80岁,B店铺的身份证年龄限制是1岁-60岁,A店铺和B店铺合并付款下单,会取身份证年龄限制的交集,要求身份证年龄限制18岁-60岁。"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_identity_age_limit",{initialValue:2}],expression:"['is_identity_age_limit',{initialValue: 2}]"}],on:{change:e.eventIdentityChange}},[i("a-radio",{attrs:{value:2}},[e._v("\n 不限制\n ")]),i("a-radio",{attrs:{value:1}},[e._v("\n 限制\n ")])],1),i("a-form-item",{staticClass:"widget-freight",style:{display:"inline-block",paddingRight:"8px"}},[i("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["identity_age_min",{rules:[{required:1===e.form.getFieldValue("is_identity_age_limit")&&0!==e.form.getFieldValue("authentication_type"),message:"请输入身份证年龄"}]}],expression:"[\n 'identity_age_min',\n { rules: [{ required: (form.getFieldValue('is_identity_age_limit') === 1 && form.getFieldValue('authentication_type') !== 0), message: '请输入身份证年龄' }] }\n ]"}],staticStyle:{width:"75px"},attrs:{placeholder:"请输入",disabled:1!=e.form.getFieldValue("is_identity_age_limit"),min:1,precision:0,max:100}}),i("span",{staticClass:"perferentianRule-customRadio-value-style"},[e._v("岁")])],1),i("span",[e._v("≤身份证年龄≤")]),i("a-form-item",{staticClass:"widget-freight",style:{display:"inline-block",paddingRight:"8px",paddingLeft:"8px"}},[i("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["identity_age_max",{rules:[{required:1===e.form.getFieldValue("is_identity_age_limit")&&0!==e.form.getFieldValue("authentication_type"),message:"请输入身份证年龄"},{validator:e.idCardValueChecker}]}],expression:"[\n 'identity_age_max',\n { rules: [{ required: (form.getFieldValue('is_identity_age_limit') === 1 && form.getFieldValue('authentication_type') !== 0), message: '请输入身份证年龄' }, { validator: idCardValueChecker}] }\n ]"}],staticStyle:{width:"75px"},attrs:{placeholder:"请输入",disabled:1!=e.form.getFieldValue("is_identity_age_limit"),min:1,precision:0,max:100}}),i("span",{staticClass:"perferentianRule-customRadio-value-style"},[e._v("岁")])],1)],1),i("a-form-item",{directives:[{name:"show",rawName:"v-show",value:1===e.form.getFieldValue("authentication_type"),expression:"form.getFieldValue('authentication_type') === 1"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 收货人身份证照片\n "),i("a-tooltip",{attrs:{title:"提交订单页和订单详情是否展示身份证照片上传模块。部分物流线路跨境订单申报时,需要用户提供收货人身份证照片。"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_upload_id_card"],expression:"['is_upload_id_card']"}]},[i("a-radio",{attrs:{value:1}},[e._v("\n 验证\n ")]),i("a-radio",{attrs:{value:0}},[e._v("\n 不验证\n ")])],1)],1),i("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 税费承担类型\n "),i("a-tooltip",{attrs:{title:"购物车是否收取用户税费。税费承担类型=商家时,应收税费=X,税费优惠=X,实收税费=0,保存的应收税费、税费优惠、实收税费用于跨境订单申报。税费承担类型=用户时,应收税费=X,税费优惠=Y,实收税费=X-Y,没有税费活动的情况下,Y=0。税费承担类型=不收税时,应收税费=0,税费优惠=0,实收税费=0。"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["tax_type"],expression:"['tax_type']"}]},[i("a-radio",{attrs:{value:0}},[e._v("\n 商家\n ")]),i("a-radio",{attrs:{value:1}},[e._v("\n 用户\n ")]),i("a-radio",{attrs:{value:2}},[e._v("\n 不收税\n ")])],1)],1),i("a-form-item",{directives:[{name:"show",rawName:"v-show",value:0===e.form.getFieldValue("tax_type")||1===e.form.getFieldValue("tax_type"),expression:"form.getFieldValue('tax_type') === 0 || form.getFieldValue('tax_type') === 1"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 税费类型\n "),i("a-tooltip",{attrs:{title:"购物车计算税费的税费类型。税费类型=综合税,购物车从商品系统获取指定商品的综合税税率计算税费。税费类型=行邮税,购物车从商品系统获取商品的行邮税税率计算税费。"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["tax_fee_type"],expression:"['tax_fee_type']"}]},[i("a-radio",{attrs:{value:1}},[e._v("\n 综合税\n ")]),i("a-radio",{attrs:{value:2}},[e._v("\n 行邮税\n ")])],1)],1),"BC"===e.detailInfo.declaration_type||"BBC"===e.detailInfo.declaration_type||"BC1"===e.detailInfo.declaration_type?[i("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n BC/BBC额度提醒\n "),i("a-tooltip",{attrs:{title:"根据跨境电子商务零售进口政策,个人年度交易限额为人民币26000元。每年第四季度都会有部分订单因为用户超出个人年度交易限额而清关失败。因为海关不支持通过API对接查询个人年度限额,所以只能引导用户自己去“掌上海关”小程序查询年底交易剩余额度。运营可以根据情况开启BC/BBC额度提醒。"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["bc_limit_switch"],expression:"['bc_limit_switch']"}],on:{change:e.bcLimitChange}},[i("a-radio",{attrs:{value:1}},[e._v("\n 开启\n ")]),i("a-radio",{attrs:{value:2}},[e._v("\n 关闭\n ")])],1),i("a-button",{staticStyle:{"padding-left":"0"},attrs:{type:"link"},on:{click:e.showBcModal}},[i("a-icon",{attrs:{type:"eye"}}),i("span",{staticStyle:{"margin-left":"4px"}},[e._v("效果展示")])],1)],1),i("a-form-item",{directives:[{name:"show",rawName:"v-show",value:2!==e.form.getFieldValue("bc_limit_switch"),expression:"form.getFieldValue('bc_limit_switch') !== 2"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n BC/BBC额度提醒文案\n "),i("a-tooltip",{attrs:{title:"展示在BC/BBC额度弹窗中的文案。"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["bc_limit_switch_desc",{rules:[{required:2!==e.form.getFieldValue("bc_limit_switch"),message:"请输入BC/BBC额度提醒文案",pattern:/^(?!(\s+$))/},{min:1,max:200,message:"最多支持200个字符"}],validateTrigger:"blur",getValueFromEvent:function(e){return e.target.value.trim()}}],expression:"['bc_limit_switch_desc',\n {rules: [\n { required:form.getFieldValue('bc_limit_switch') !== 2, message: '请输入BC/BBC额度提醒文案',pattern: /^(?!(\\s+$))/},\n {min: 1, max: 200, message: '最多支持200个字符'}],validateTrigger: 'blur',\n getValueFromEvent: event => {\n return event.target.value.trim()}\n }]"}],attrs:{autoSize:{minRows:5,maxRows:10},placeholder:"请输入BC/BBC额度提醒文案,该文案会在提交订单页展示"},on:{change:e.changeText}}),i("span",{staticClass:"textarea-limit"},[e._v(e._s(e.limitTipsValue.length)+"/200")])],1)]:e._e(),i("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 物流线路简称\n "),i("a-tooltip",{attrs:{title:"物流分配方式=用户选择物流时,展示在购物车的物流线路简称。"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["short_title",{rules:[{required:!0,message:"请输入物流线路简称"},{max:100,message:"最多支持100个字符"}]}],expression:"['short_title',{ rules:\n [\n { required: true, message: '请输入物流线路简称' },\n { max:100, message: '最多支持100个字符' }\n ]\n }]"}],staticClass:"import",staticStyle:{"padding-right":"55px"},attrs:{placeholder:"用户选择物流线路时,购物车会展示物流线路简称,请控制字数"},on:{change:e.shortChange}}),i("span",{staticClass:"characterLimit"},[e._v(e._s(e.shortChangeValue.length)+"/100")]),i("a-button",{staticStyle:{position:"absolute",top:"-5px",right:"-105px"},attrs:{type:"link"},on:{click:e.showLogModal}},[i("a-icon",{attrs:{type:"eye"}}),i("span",{staticStyle:{"margin-left":"4px"}},[e._v("效果展示")])],1)],1),i("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 物流线路描述\n "),i("a-tooltip",{attrs:{title:"物流分配方式=用户选择物流时,展示在购物车的物流线路描述。"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["delivery_desc",{rules:[{max:100,message:"最多支持100个字符"}]}],expression:"['delivery_desc',{ rules:\n [\n { max:100, message: '最多支持100个字符' }\n ]\n }]"}],staticClass:"import",staticStyle:{"padding-right":"55px"},attrs:{placeholder:"用户选择物流线路时,购物车会展示物流线路描述,不填则不展示"},on:{change:e.deliveryChange}}),i("span",{staticClass:"characterLimit"},[e._v(e._s(e.deliveryChangeValue.length)+"/100")]),i("a-button",{staticStyle:{position:"absolute",top:"-5px",right:"-105px"},attrs:{type:"link"},on:{click:e.showLogModal}},[i("a-icon",{attrs:{type:"eye"}}),i("span",{staticStyle:{"margin-left":"4px"}},[e._v("效果展示")])],1)],1),i("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 物流线路排序值\n "),i("a-tooltip",{attrs:{title:"物流分配方式=用户选择物流时,展示在购物车的物流线路顺序,排序值越大越靠前。"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort"],expression:"['sort']"}],staticStyle:{"min-width":"60px",width:"90px"},attrs:{min:1,max:99,precision:0,placeholder:"请输入"}})],1),i("a-form-item",{attrs:{wrapperCol:{span:17,offset:7}}},[i("div",{staticClass:"save"},[i("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.loading}},[e._v("保存")])],1)])],2)],1),i("a-modal",{attrs:{title:"效果展示",centered:!0,width:"400px",footer:null},model:{value:e.bcModalVisible,callback:function(t){e.bcModalVisible=t},expression:"bcModalVisible"}},[i("span",{staticStyle:{color:"#4190ff","margin-left":"2px"}},[e._v("BC/BBC额度提醒效果展示如下:")]),i("img",{staticStyle:{display:"block",margin:"24px auto",width:"100%"},attrs:{src:a("deff")}})]),i("a-modal",{attrs:{title:"效果展示",centered:!0,width:"400px",footer:null},model:{value:e.logModalVisible,callback:function(t){e.logModalVisible=t},expression:"logModalVisible"}},[i("span",{staticStyle:{color:"#4190ff","margin-left":"2px"}},[e._v("物流线路简称、描述效果展示如下:")]),i("img",{staticStyle:{display:"block",margin:"24px auto",width:"100%"},attrs:{src:a("7097")}})])],1)},we=[],xe={name:"BasisPage",props:{detailInfo:{type:Object,required:!0}},data:function(){return{labelCol:{span:7},wrapperCol:{span:13},form:this.$form.createForm(this),bcModalVisible:!1,logModalVisible:!1,limitTipsValue:"",shortChangeValue:"",deliveryChangeValue:"",effectText:"",loading:!1}},watch:{detailInfo:{handler:function(e){var t=this;e&&this.$nextTick((function(){var a=t.form.setFieldsValue;setTimeout((function(){a({authentication_type:e.authentication_type,tax_type:e.tax_type,short_title:e.short_title||"",delivery_desc:e.delivery_desc||"",tax_fee_type:0===e.tax_fee_type?1:e.tax_fee_type,is_upload_id_card:e.is_upload_id_card,sort:e.sort})})),0!==e.authentication_type&&(setTimeout((function(){a({is_identity_age_limit:0===e.is_identity_age_limit?2:e.is_identity_age_limit,identity_age_min:null,identity_age_max:null})})),1===e.is_identity_age_limit&&setTimeout((function(){a({identity_age_min:e.identity_age_min,identity_age_max:e.identity_age_max})}))),"BC"!==e.declaration_type&&"BBC"!==e.declaration_type&&"BC1"!==e.declaration_type||(setTimeout((function(){a({bc_limit_switch:e.bc_limit_switch})})),1===e.bc_limit_switch&&setTimeout((function(){a({bc_limit_switch_desc:e.bc_limit_switch_desc}),t.limitTipsValue=e.bc_limit_switch_desc||""}))),t.shortChangeValue=e.short_title||"",t.deliveryChangeValue=e.delivery_desc||""}))},deep:!0,immediate:!0}},methods:{changeText:function(e){if(!e)return 0;this.limitTipsValue=e.target.value.trim()},shortChange:function(e){if(!e)return 0;this.shortChangeValue=e.target.value.trim()},deliveryChange:function(e){if(!e)return 0;this.deliveryChangeValue=e.target.value.trim()},eventIdentityChange:function(e){if(2===e.target.value){var t=this.form.setFieldsValue;t({identity_age_min:1,identity_age_max:1}),t({identity_age_min:null,identity_age_max:null})}},idCardValueChecker:function(e,t,a){var i=this.form.getFieldValue("identity_age_min");""!==Number(i)&&Number(t) {\n return event.target.value.trim()}\n }]"}],staticStyle:{width:"600px"},attrs:{autoSize:{minRows:3,maxRows:10},placeholder:"请输入详细地址,多个详细地址使用英文逗号隔开"},on:{change:e.addressEnter}}),a("div",{staticClass:"textarea-len"},[e._v(e._s(e.addressEnterValue.length)+"/1000")])],1),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"订单实付金额下单限制",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_buy_amount_limit"],expression:"['is_buy_amount_limit']"}],on:{change:e.eventAmountChange}},[a("a-radio",{attrs:{value:2}},[e._v("\n 不限制\n ")]),a("a-radio",{attrs:{value:1}},[e._v("\n 限制订单实付金额≤\n ")])],1),a("a-form-item",{staticClass:"widget-freight",style:{display:"inline-block",paddingRight:"8px"}},[a("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["buy_amount_limit",{rules:[{required:1===e.form.getFieldValue("is_buy_amount_limit"),message:"请输入订单实付金额"}]}],expression:"[\n 'buy_amount_limit',\n { rules: [{ required: form.getFieldValue('is_buy_amount_limit') === 1, message: '请输入订单实付金额' }] }\n ]"}],staticStyle:{width:"75px"},attrs:{placeholder:"请输入",disabled:1!=e.form.getFieldValue("is_buy_amount_limit"),min:1,precision:0,max:99999999}}),a("span",{staticClass:"perferentianRule-customRadio-value-style"},[e._v(e._s(e.detailInfo.website_currency_name))])],1)],1),a("a-form-item",{directives:[{name:"show",rawName:"v-show",value:1===e.form.getFieldValue("is_buy_amount_limit"),expression:"form.getFieldValue('is_buy_amount_limit') === 1"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 单件商品订单不限制订单实付金额\n "),a("a-tooltip",{attrs:{title:"开启时,订单商品数量=1,则不限制订单实付金额。"}},[a("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),a("a-checkbox-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_amount_unlimit_one"],expression:"['is_amount_unlimit_one']"}]},[a("a-checkbox",{attrs:{value:1}},[e._v("开启")])],1)],1),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"订单重量下单限制",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_buy_weight_limit"],expression:"['is_buy_weight_limit']"}],on:{change:e.eventWeightChange}},[a("a-radio",{attrs:{value:2}},[e._v("\n 不限制\n ")]),a("a-radio",{attrs:{value:1}},[e._v("\n 限制订单重量≤\n ")])],1),a("a-form-item",{staticClass:"widget-freight",style:{display:"inline-block",paddingRight:"8px"}},[a("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["buy_weight_limit",{rules:[{required:1===e.form.getFieldValue("is_buy_weight_limit"),message:"请输入订单重量"}]}],expression:"[\n 'buy_weight_limit',\n { rules: [{ required: form.getFieldValue('is_buy_weight_limit') === 1, message: '请输入订单重量' }] }\n ]"}],staticStyle:{width:"75px"},attrs:{placeholder:"请输入",disabled:1!==e.form.getFieldValue("is_buy_weight_limit"),min:1,precision:0,max:99999999}}),a("span",{staticClass:"perferentianRule-customRadio-value-style"},[e._v("g")])],1)],1),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 订单商品总数量下单限制\n "),a("a-tooltip",{attrs:{title:"订单的商品总数量,套装商品按子商品数量统计。"}},[a("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),a("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_buy_qty_limit"],expression:"['is_buy_qty_limit']"}],on:{change:e.eventQtyChange}},[a("a-radio",{attrs:{value:2}},[e._v("\n 不限制\n ")]),a("a-radio",{attrs:{value:1}},[e._v("\n 限制订单商品总数量≤\n ")])],1),a("a-form-item",{staticClass:"widget-freight",style:{display:"inline-block",paddingRight:"8px"}},[a("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["buy_qty_limit",{rules:[{required:1===e.form.getFieldValue("is_buy_qty_limit"),message:"请输入订单商品总数量"}]}],expression:"[\n 'buy_qty_limit',\n { rules: [{ required: form.getFieldValue('is_buy_qty_limit') === 1, message: '请输入订单商品总数量' }] }\n ]"}],staticStyle:{width:"75px"},attrs:{placeholder:"请输入",disabled:1!==e.form.getFieldValue("is_buy_qty_limit"),min:1,precision:0,max:99999999}}),a("span",{staticClass:"perferentianRule-customRadio-value-style"},[e._v("个")])],1)],1),a("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 赠品/小样不参与限购\n "),a("a-tooltip",{attrs:{title:"开启时,赠品、小样不参与订单商品总数量计算"}},[a("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),a("a-checkbox-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_gift_buy_limit"],expression:"['is_gift_buy_limit']"}]},[a("a-checkbox",{attrs:{value:1}},[e._v("开启")])],1)],1),a("a-form-item",{attrs:{wrapperCol:{span:17,offset:7}}},[a("div",{staticClass:"save"},[a("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.loading}},[e._v("保存")])],1)])],1)],1),a("select-address",{ref:"province",on:{selectAddress:e.eventAddress}}),a("edit-address",{ref:"updateProvince",on:{updateAddress:e.updateAddress}})],1)},Oe=[],Le=(a("e804"),a("2af9")),Fe=a("2e68"),je={name:"LimitedPage",props:{detailInfo:{type:Object,required:!0},storeId:{type:Number,default:null,required:!1},lineId:{type:Number,default:null,required:!1}},data:function(){return{labelCol:{span:7},wrapperCol:{span:13},form:this.$form.createForm(this),bcModalVisible:!1,addressEnterValue:"",limitTipsValue:null,nationData:[],nationIds:[],loading:!1,isShowError:!1}},watch:{detailInfo:{handler:function(e){var t=this;e&&this.$nextTick((function(){var a=t.form.setFieldsValue;a({is_id_limit:e.is_id_limit,id_limit_expire_day:1===e.is_id_limit?e.id_limit_expire_day:null,id_limit_time:1===e.is_id_limit?e.id_limit_time:null,is_phone_order_limit:e.is_phone_order_limit,phone_order_limit_expire_day:1===e.is_phone_order_limit?e.phone_order_limit_expire_day:null,phone_order_limit_time:1===e.is_phone_order_limit?e.phone_order_limit_time:null,is_area_limit:e.is_area_limit,is_address_limit:e.is_address_limit,address_limit_expire_day:1===e.is_address_limit?e.address_limit_expire_day:null,address_limit_time:1===e.is_address_limit?e.address_limit_time:null,is_buy_amount_limit:e.is_buy_amount_limit,buy_amount_limit:1===e.is_buy_amount_limit?e.buy_amount_limit:null,is_buy_weight_limit:e.is_buy_weight_limit,buy_weight_limit:1===e.is_buy_weight_limit?e.buy_weight_limit:null,is_buy_qty_limit:e.is_buy_qty_limit,address_limit:e.address_limit,is_gift_buy_limit:Array.of(e.is_gift_buy_limit),is_amount_unlimit_one:Array.of(e.is_amount_unlimit_one),buy_qty_limit:1===e.is_buy_qty_limit?e.buy_qty_limit:null,is_full_address_limit:e.is_full_address_limit,full_address_limit_expire_day:1===e.is_full_address_limit?e.full_address_limit_expire_day:null,full_address_limit_time:1===e.is_full_address_limit?e.full_address_limit_time:null}),t.nationIds=[],t.nationData=[],t.addressEnterValue=e.address_limit,1===e.is_area_limit&&e.area_limit.forEach((function(e){t.nationIds.push(e.area_id),t.nationData.push({key:e.area_id,path:e.area_path,path_name:e.area_path_name,title:e.area_name})}))}))},deep:!0,immediate:!0}},components:{selectAddress:Le["d"],editAddress:Fe["a"]},methods:{addressEnter:function(e){if(!e)return 0;this.addressEnterValue=e.target.value},eventLimitChange:function(e){if(2===e.target.value){var t=this.form.setFieldsValue;t({id_limit_expire_day:1,id_limit_time:1}),t({id_limit_expire_day:null,id_limit_time:null})}},eventPhoneChange:function(e){if(2===e.target.value){var t=this.form.setFieldsValue;t({phone_order_limit_expire_day:1,phone_order_limit_time:1}),t({phone_order_limit_expire_day:null,phone_order_limit_time:null})}},eventFullAddressChange:function(e){if(2===e.target.value){var t=this.form.setFieldsValue;t({full_address_limit_expire_day:1,full_address_limit_time:1}),t({full_address_limit_expire_day:null,full_address_limit_time:null})}},eventAddressChange:function(e){if(2===e.target.value){var t=this.form.setFieldsValue;t({address_limit_expire_day:1,address_limit_time:1}),t({address_limit_expire_day:null,address_limit_time:null})}},eventAmountChange:function(e){if(2===e.target.value){var t=this.form.setFieldsValue;t({buy_amount_limit:1}),t({buy_amount_limit:null})}},eventWeightChange:function(e){if(2===e.target.value){var t=this.form.setFieldsValue;t({buy_weight_limit:1}),t({buy_weight_limit:null})}},eventQtyChange:function(e){if(2===e.target.value){var t=this.form.setFieldsValue;t({buy_qty_limit:1}),t({buy_qty_limit:null})}},eventNation:function(){var e=!0;this.$refs.province.showModal(0,e)},eventUpdateNation:function(){var e={ids:this.nationIds,dataSource:this.nationData};this.$refs.updateProvince.showModal(e,0)},eventAddress:function(e,t){this.$refs.updateProvince.showModal(e,t)},updateAddress:function(e,t){this.nationIds=e.ids,this.nationData=e.dataSource||[],e.dataSource.length&&(this.isShowError=!1)},handleSubmit:function(e){var t=this;e.preventDefault(),this.form.validateFields((function(e,a){if(!e){if(Object.keys(a).forEach((function(e){null===a[e]&&(a[e]=0)})),a.store_id=t.storeId,a.is_amount_unlimit_one&&1===a.is_buy_amount_limit?a.is_amount_unlimit_one=a.is_amount_unlimit_one.length&&1===a.is_amount_unlimit_one[0]?1:2:a.is_amount_unlimit_one=2,a.is_gift_buy_limit&&(a.is_gift_buy_limit=a.is_gift_buy_limit.length&&1===a.is_gift_buy_limit[0]?1:2),1===a.is_area_limit){if(!t.nationData.length)return void(t.isShowError=!0);t.isShowError=!1,a.area_limit=[],t.nationData.forEach((function(e){a.area_limit.push({area_id:e.key,area_path:e.path})}))}2===a.is_address_limit&&(a.address_limit=""),t.loading=!0;var i=null!==t.lineId?m["l"]:m["m"];null!==t.lineId&&(a.line_id=t.lineId),i(a).then((function(e){0===e.status&&(t.loading=!1,t.$message.success("操作成功"))})).catch((function(){t.loading=!1}))}}))}},created:function(){this.$store.dispatch("GetSiteCurrency",{website_id:this.$store.getters.websiteId})}},Te=je,qe=(a("a911"),Object(f["a"])(Te,ke,Oe,!1,null,"6a997cee",null)),Ne=qe.exports,Pe=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("a-card",{attrs:{bordered:!1}},[i("div",{staticClass:"instructions"},[i("h3",[e._v("说明:不在物流线路商品范围中的商品不能选择该物流线路。")]),i("a-icon",{staticClass:"icon-exclamation",staticStyle:{color:"#FAAD14"},attrs:{type:"exclamation-circle",theme:"filled"}}),i("p",[e._v("举例:店铺“美国仓”开启用户物流线路功能。店铺“美国仓”包含2条启用状态的物流线路X、Y。其中物流线路X的商品范围包含商品A,排除商品B;物流线路Y的商品范围包含商品B。"),i("br"),e._v("\n 如果用户在购物车选择商品B,然后选择物流线路X,则购物车“去结算”按钮会置灰,同时提示“物流线路不支持所选商品”。"),i("br"),e._v("\n 如果用户刷新购物车,系统会自动帮用户选择可走的物流线路Y,购物车“去结算”按钮可点击。"),i("br")]),i("a-icon",{staticStyle:{color:"#1890ff","margin-top":"8px","margin-left":"-18px"},attrs:{type:"eye"}}),i("a",{staticStyle:{"margin-top":"8px","margin-left":"4px"},attrs:{href:"javascript:;"},on:{click:e.showEffect}},[e._v("效果展示")])],1),i("a-row",[i("a-col",{staticStyle:{width:"200px","text-align":"right"},attrs:{span:4}},[e._v("物流线路商品范围:")]),i("a-col",{attrs:{span:15}},[i("a",{attrs:{href:0!==this.ruleId?"/logistics/route/lineDetail/seeProduct/id/"+this.lineId+"/ruleId/"+this.ruleId+"/websiteId/"+this.$store.getters.websiteId:"javascript:void(0)",target:0!==this.ruleId?"_blank":"_self"}},[e._v("查看商品")]),i("a",{staticStyle:{"margin-left":"16px"},attrs:{href:0!==this.ruleId?"/logistics/route/lineDetail/commodityEdit/id/"+this.lineId+"/ruleId/"+this.ruleId+"/storeId/"+this.storeId+"/websiteId/"+this.$store.getters.websiteId:"javascript:void(0)",target:0!==this.ruleId?"_blank":"_self"}},[e._v("商品管理")])])],1)],1),i("a-modal",{attrs:{title:"效果展示",centered:!0,width:"824px",footer:null},model:{value:e.effectModalVisible,callback:function(t){e.effectModalVisible=t},expression:"effectModalVisible"}},[i("div",{staticStyle:{color:"#4190ff","margin-left":"2px"}},[e._v("物流线路商品范围效果展示如下:")]),i("img",{staticStyle:{display:"inline-block",margin:"0 24px 0 0",width:"376px"},attrs:{src:a("428e")}}),i("img",{staticStyle:{display:"inline-block",margin:"24px auto",width:"376px"},attrs:{src:a("e025")}})])],1)},De=[],$e={props:{ruleId:{type:Number,default:0,required:!1},lineId:{type:Number,default:0,required:!1},storeId:{type:Number,default:0,required:!1}},data:function(){return{loading:!1,effectModalVisible:!1}},methods:{showEffect:function(){this.effectModalVisible=!0}}},Be=$e,Re=(a("9bfe"),Object(f["a"])(Be,Pe,De,!1,null,"461e4da8",null)),Ae=Re.exports,Ee=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"logisticsSetup"},[i("a-card",{attrs:{bordered:!1}},[i("a-form",{staticClass:"custom-form",attrs:{form:e.form},on:{submit:e.handleSubmit}},[i("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 身份验证类型\n "),i("a-tooltip",{attrs:{title:"提交订单页的身份验证类型。收货人验证是指验证收货人的身份证姓名、身份证号码。付款人验证是指验证付款人的身份证姓名、身份证号码。对于需要付款人验证的订单,跨境订单申报时,会将用户输入的付款人姓名、付款人身份证号码和支付平台的支付人信息做对比,如果不一致则申报失败。多店铺合并付款时,如果A店铺是收货人验证,B店铺是付款人验证,A店铺和B店铺合并付款下单,会要求收货人和付款人保持一致。"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["authentication_type"],expression:"['authentication_type']"}]},[i("a-radio",{attrs:{value:1}},[e._v("\n 收货人验证\n ")]),i("a-radio",{attrs:{value:2}},[e._v("\n 付款人验证\n ")]),i("a-radio",{attrs:{value:0}},[e._v("\n 不验证\n ")])],1)],1),i("a-form-item",{directives:[{name:"show",rawName:"v-show",value:0!==e.form.getFieldValue("authentication_type"),expression:"form.getFieldValue('authentication_type') !== 0"}],staticStyle:{"margin-bottom":"0"},attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 身份证年龄下单限制\n "),i("a-tooltip",{attrs:{title:"提交订单页身份证号码验证的年龄限制。多店铺合并付款时,如果A店铺的身份证年龄限制是18岁-80岁,B店铺的身份证年龄限制是1岁-60岁,A店铺和B店铺合并付款下单,会取身份证年龄限制的交集,要求身份证年龄限制18岁-60岁。"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_identity_age_limit",{initialValue:2}],expression:"['is_identity_age_limit',{initialValue: 2}]"}],on:{change:e.eventIdentityChange}},[i("a-radio",{attrs:{value:2}},[e._v("\n 不限制\n ")]),i("a-radio",{attrs:{value:1}},[e._v("\n 限制\n ")])],1),i("a-form-item",{staticClass:"widget-freight",style:{display:"inline-block",paddingRight:"8px"}},[i("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["identity_age_min",{rules:[{required:1===e.form.getFieldValue("is_identity_age_limit")&&0!==e.form.getFieldValue("authentication_type"),message:"请输入身份证年龄"}]}],expression:"[\n 'identity_age_min',\n { rules: [{ required: (form.getFieldValue('is_identity_age_limit') === 1 && form.getFieldValue('authentication_type') !== 0), message: '请输入身份证年龄' }] }\n ]"}],staticStyle:{width:"75px"},attrs:{placeholder:"请输入",disabled:1!=e.form.getFieldValue("is_identity_age_limit"),min:1,precision:0,max:100}}),i("span",{staticClass:"perferentianRule-customRadio-value-style"},[e._v("岁")])],1),i("span",[e._v("≤身份证年龄≤")]),i("a-form-item",{staticClass:"widget-freight",style:{display:"inline-block",paddingRight:"8px",paddingLeft:"8px"}},[i("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["identity_age_max",{rules:[{required:1===e.form.getFieldValue("is_identity_age_limit")&&0!==e.form.getFieldValue("authentication_type"),message:"请输入身份证年龄"},{validator:e.idCardValueChecker}]}],expression:"[\n 'identity_age_max',\n { rules: [{ required: (form.getFieldValue('is_identity_age_limit') === 1 && form.getFieldValue('authentication_type') !== 0), message: '请输入身份证年龄' }, { validator: idCardValueChecker}] }\n ]"}],staticStyle:{width:"75px"},attrs:{placeholder:"请输入",disabled:1!=e.form.getFieldValue("is_identity_age_limit"),min:1,precision:0,max:100}}),i("span",{staticClass:"perferentianRule-customRadio-value-style"},[e._v("岁")])],1)],1),i("a-form-item",{directives:[{name:"show",rawName:"v-show",value:1===e.form.getFieldValue("authentication_type"),expression:"form.getFieldValue('authentication_type') === 1"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 收货人身份证照片\n "),i("a-tooltip",{attrs:{title:"提交订单页和订单详情是否展示身份证照片上传模块。部分物流线路跨境订单申报时,需要用户提供收货人身份证照片。"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_upload_id_card"],expression:"['is_upload_id_card']"}]},[i("a-radio",{attrs:{value:1}},[e._v("\n 验证\n ")]),i("a-radio",{attrs:{value:0}},[e._v("\n 不验证\n ")])],1)],1),i("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 税费承担类型\n "),i("a-tooltip",{attrs:{title:"购物车是否收取用户税费。税费承担类型=商家时,应收税费=X,税费优惠=X,实收税费=0,保存的应收税费、税费优惠、实收税费用于跨境订单申报。税费承担类型=用户时,应收税费=X,税费优惠=Y,实收税费=X-Y,没有税费活动的情况下,Y=0。税费承担类型=不收税时,应收税费=0,税费优惠=0,实收税费=0。"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["tax_type"],expression:"['tax_type']"}]},[i("a-radio",{attrs:{value:0}},[e._v("\n 商家\n ")]),i("a-radio",{attrs:{value:1}},[e._v("\n 用户\n ")]),i("a-radio",{attrs:{value:2}},[e._v("\n 不收税\n ")])],1)],1),i("a-form-item",{directives:[{name:"show",rawName:"v-show",value:0===e.form.getFieldValue("tax_type")||1===e.form.getFieldValue("tax_type"),expression:"form.getFieldValue('tax_type') === 0 || form.getFieldValue('tax_type') === 1"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 税费类型\n "),i("a-tooltip",{attrs:{title:"购物车计算税费的税费类型。税费类型=综合税,购物车从商品系统获取指定商品的综合税税率计算税费。税费类型=行邮税,购物车从商品系统获取商品的行邮税税率计算税费。"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["tax_fee_type"],expression:"['tax_fee_type']"}]},[i("a-radio",{attrs:{value:1}},[e._v("\n 综合税\n ")]),i("a-radio",{attrs:{value:2}},[e._v("\n 行邮税\n ")])],1)],1),i("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n BC/BBC额度提醒\n "),i("a-tooltip",{attrs:{title:"根据跨境电子商务零售进口政策,个人年度交易限额为人民币26000元。每年临近年底,都会有大量的订单因为用户超出个人年度交易限额而清关失败。因为海关不支持通过API对接查询个人年度限额,所以只能引导用户自己去“掌上海关”小程序查询年底交易剩余额度。此提醒功能一般用于第四季度。"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["bc_limit_switch"],expression:"['bc_limit_switch']"}],on:{change:e.bcLimitChange}},[i("a-radio",{attrs:{value:1}},[e._v("\n 开启\n ")]),i("a-radio",{attrs:{value:2}},[e._v("\n 关闭\n ")])],1),i("a-button",{staticStyle:{"padding-left":"0"},attrs:{type:"link"},on:{click:e.showBcModal}},[i("a-icon",{attrs:{type:"eye"}}),i("span",{staticStyle:{"margin-left":"4px"}},[e._v("效果展示")])],1)],1),i("a-form-item",{directives:[{name:"show",rawName:"v-show",value:2!==e.form.getFieldValue("bc_limit_switch"),expression:"form.getFieldValue('bc_limit_switch') !== 2"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n BC/BBC额度提醒文案\n "),i("a-tooltip",{attrs:{title:"展示在BC/BBC额度弹窗中的文案。"}},[i("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),i("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["bc_limit_switch_desc",{rules:[{required:2!==e.form.getFieldValue("bc_limit_switch"),message:"请输入BC/BBC额度提醒文案",pattern:/^(?!(\s+$))/},{min:1,max:200,message:"最多支持200个字符"}],validateTrigger:"blur",getValueFromEvent:function(e){return e.target.value.trim()}}],expression:"['bc_limit_switch_desc',\n {rules: [\n { required:form.getFieldValue('bc_limit_switch') !== 2, message: '请输入BC/BBC额度提醒文案',pattern: /^(?!(\\s+$))/},\n {min: 1, max: 200, message: '最多支持200个字符'}],validateTrigger: 'blur',\n getValueFromEvent: event => {\n return event.target.value.trim()}\n }]"}],attrs:{autoSize:{minRows:6,maxRows:10},placeholder:"请输入BC/BBC额度提醒文案,该文案会在提交订单页展示"},on:{change:e.changeText}}),i("span",{staticClass:"textarea-limit"},[e._v(e._s(e.limitTipsValue.length)+"/200")])],1),i("a-form-item",{attrs:{wrapperCol:{span:17,offset:7}}},[i("div",{staticClass:"save"},[i("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.loading}},[e._v("保存")])],1)])],1)],1),i("a-modal",{attrs:{title:"效果展示",centered:!0,width:"400px",footer:null},model:{value:e.bcModalVisible,callback:function(t){e.bcModalVisible=t},expression:"bcModalVisible"}},[i("span",{staticStyle:{color:"#4190ff","margin-left":"2px"}},[e._v("BC/BBC额度提醒效果展示如下:")]),i("img",{staticStyle:{display:"block",margin:"24px auto",width:"100%"},attrs:{src:a("deff")}})])],1)},Me=[],Ke={name:"BasisPage",props:{detailInfo:{type:Object,required:!0}},data:function(){return{labelCol:{span:7},wrapperCol:{span:13},form:this.$form.createForm(this),bcModalVisible:!1,limitTipsValue:"",validateStatus:"error",loading:!1}},watch:{detailInfo:{handler:function(e){var t=this;e&&this.$nextTick((function(){var a=t.form.setFieldsValue;setTimeout((function(){a({authentication_type:e.authentication_type,tax_type:e.tax_type,tax_fee_type:0===e.tax_fee_type?1:e.tax_fee_type,bc_limit_switch:e.bc_limit_switch,is_upload_id_card:e.is_upload_id_card})})),0!==e.authentication_type&&(setTimeout((function(){a({is_identity_age_limit:0===e.is_identity_age_limit?2:e.is_identity_age_limit,identity_age_min:null,identity_age_max:null})})),1===e.is_identity_age_limit&&setTimeout((function(){a({identity_age_min:e.identity_age_min,identity_age_max:e.identity_age_max})}))),1===e.bc_limit_switch&&setTimeout((function(){a({bc_limit_switch_desc:e.bc_limit_switch_desc}),t.limitTipsValue=e.bc_limit_switch_desc||""}))}))},deep:!0,immediate:!0}},methods:{changeText:function(e){if(!e)return 0;this.limitTipsValue=e.target.value.trim()},showBcModal:function(){this.bcModalVisible=!0},eventIdentityChange:function(e){if(2===e.target.value){var t=this.form.setFieldsValue;t({identity_age_min:1,identity_age_max:1}),t({identity_age_min:null,identity_age_max:null})}},bcLimitChange:function(e){var t=this.form.getFieldsValue(["bc_limit_switch_desc"]);if(1===e.target.value){var a=this.form.setFieldsValue;void 0!==t.bc_limit_switch_desc&&""!==t.bc_limit_switch_desc||(a({bc_limit_switch_desc:"亲爱的用户,您好!根据海关要求:消费者购买跨境电商商品的年度交易额度为2.6万元,超额包裹将无法清关。对于经常购买跨境商品的消费者,为确保您的订单能正常清关,请登录“掌上海关微信小程序”来查询您的个人可用额度。"}),this.limitTipsValue="亲爱的用户,您好!根据海关要求:消费者购买跨境电商商品的年度交易额度为2.6万元,超额包裹将无法清关。对于经常购买跨境商品的消费者,为确保您的订单能正常清关,请登录“掌上海关微信小程序”来查询您的个人可用额度。")}},idCardValueChecker:function(e,t,a){var i=this.form.getFieldValue("identity_age_min");""!==Number(i)&&Number(t)0?"编辑运费模板":"请选择"))]),a("span",{staticStyle:{"margin-left":"24px","font-size":"12px",color:"#999"}},[e._v("没有找到合适的运费模板,")]),a("a",{staticStyle:{"font-size":"12px"},attrs:{href:"/setting/freight/list",target:"_blank"}},[e._v("  去新建运费模板")]),e.isShowError?a("div",{staticClass:"error-tips"},[e._v("请选择运费模板")]):e._e()],1),Object.keys(e.dataSource).length>0?a("a-card",{staticClass:"template-card",staticStyle:{"margin-top":"8px"},attrs:{title:"运费模板",size:"small",headStyle:{background:"#FAFAFA",fontWeight:"bold"}}},[a("a",{attrs:{slot:"extra",href:"#"},on:{click:e.delTemplate},slot:"extra"},[e._v("删除")]),a("p",[e._v("运费模板ID:"+e._s(e.dataSource.entity_id))]),a("div",{staticClass:"template-name"},[a("div",{staticClass:"title"},[e._v("运费模板名称\n "),a("a-tooltip",{attrs:{title:"运费模板名称不会在商城展示,仅供在后台系统展示和查询使用"}},[a("a-icon",{attrs:{type:"exclamation-circle"}})],1),e._v(":\n ")],1),a("div",{staticClass:"name"},[e._v(e._s(e.dataSource.name))])]),a("p",[e._v("运费模板类型:"+e._s(1===e.dataSource.template_type?"站点":2===e.dataSource.template_type?"店铺":"物流线路")+"运费模板 "),1===e.dataSource.is_default?a("a-tag",{staticStyle:{width:"40px","margin-left":"5px"},attrs:{color:"blue"}},[e._v("默认")]):e._e()],1),a("p",[e._v("计费方式:"+e._s(1===e.dataSource.fee_type?"固定运费":"按重量计算运费"))]),1===e.dataSource.fee_type?a("p",[e._v("固定运费:"+e._s(e.dataSource.fixed_fee+e.dataSource.website_currency_name))]):e._e(),2===e.dataSource.fee_type?a("div",{staticClass:"template-name"},[a("div",{staticClass:"title"},[e._v("默认运费\n "),a("a-tooltip",{attrs:{title:"除指定地区外,其余地区的运费采用“默认运费”"}},[a("a-icon",{attrs:{type:"exclamation-circle"}})],1),e._v(":\n ")],1),a("div",{staticClass:"name"},[e._v(e._s(e.defaultFreight))])]):e._e(),e._l(e.appointData,(function(t,i){return[a("div",{key:i},[a("div",{staticClass:"designated"},[a("div",{staticClass:"title"},[e._v("指定地区:")]),a("div",{staticClass:"content"},[e._l(t.areas,(function(t){return[a("a-tag",{key:t.area_id,staticStyle:{"margin-bottom":"8px"}},[e._v(e._s(t.area_path_name))])]}))],2)]),a("div",{staticClass:"template-name"},[a("div",{staticClass:"title"},[e._v("指定运费:\n ")]),a("div",{staticClass:"name"},[e._v(e._s(t.desc))])])])]}))],2):e._e()],1),a("a-form-item",{attrs:{wrapperCol:{span:17,offset:4}}},[a("div",{staticClass:"save"},[a("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.loading}},[e._v("保存")])],1)])],1)],1),a("select-freight",{ref:"selectFreight",attrs:{templateType:e.templateType},on:{triggerSelectFreight:e.eventSelectFreight}})],1)},Xe=[],Ye=a("8a9d"),He={name:"FreightPage",props:{detailInfo:{type:Object,required:!0},templateType:{type:Number,default:1,required:!1},storeId:{type:Number,default:null,required:!1},lineId:{type:Number,default:null,required:!1}},data:function(){return{labelCol:{span:4},wrapperCol:{span:20},form:this.$form.createForm(this),loading:!1,templateContent:{ship_fee_template_id:20},isShowError:!1,dataSource:{},defaultFreight:"",appointData:[]}},components:{selectFreight:Le["h"]},watch:{detailInfo:{handler:function(e){var t=this;e&&(this.isShowError=!1,this.dataSource=e,this.appointData=[],e.rules&&e.rules.length>0&&e.rules.forEach((function(e,a){1===e.is_default?t.defaultFreight=e.rule_desc:t.appointData.push({desc:e.rule_desc,areas:e.areas})})))},deep:!0,immediate:!0}},methods:{eventSelect:function(){var e=0;Object.keys(this.dataSource).length>0&&(e=this.dataSource.entity_id),this.$refs.selectFreight.readyShow(e)},delTemplate:function(){var e=this;this.$confirm({icon:function(e){return e(W["a"])},title:"确定要删除吗?",okText:"确定",cancelText:"取消",onOk:function(){e.dataSource={}},onCancel:function(){}})},eventSelectFreight:function(e){var t=this;this.dataSource=e,this.isShowError=!1,this.appointData=[],e.rules.length>0&&e.rules.forEach((function(e,a){1===e.is_default?t.defaultFreight=e.rule_desc:t.appointData.push({desc:e.rule_desc,areas:e.areas})}))},handleSubmit:function(e){var t=this;e.preventDefault(),this.form.validateFields((function(e,a){if(!e&&Object.keys(t.dataSource).length>0){t.loading=!0,t.lineId>0?(a.line_id=t.lineId,a.store_id=t.storeId,a.ship_fee_template_id=t.dataSource.entity_id):(a.entity_id=t.storeId,a.ship_fee_template_id=t.dataSource.entity_id);var i=t.lineId>0?Ye["e"]:Ye["g"];i(a).then((function(e){0===e.status&&(t.loading=!1,t.$message.success("操作成功"),t.$emit("updateTree",t.storeId))})).catch((function(){t.loading=!1}))}else t.isShowError=!0}))}}},Je=He,Qe=(a("28bc"),Object(f["a"])(Je,Ge,Xe,!1,null,"1a18638e",null)),Ze=Qe.exports,et=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("a-layout-content",{staticClass:"multipleLayout-margin-bottom"},[a("a-card",{staticStyle:{padding:"0"},attrs:{bordered:!1}},[a("a-table",{ref:"table",attrs:{dataSource:e.dataSource,columns:e.columns,pagination:e.paginationSet,rowKey:e.rowKeyMethod,loading:e.loading},scopedSlots:e._u([{key:"comment",fn:function(t){return[a("div",{staticClass:"container",on:{click:e.handleClick}},[a("div",{domProps:{innerHTML:e._s(t)}})])]}}])}),a("p-agination",{attrs:{total:e.pageTotal,currentPage:e.query.page,computedPageNumber:e.computedPageNumber,pageSize:e.query.size},on:{jumpTableChange:e.jumpTableChange,selectPageSizeChange:e.selectPageSizeChange}}),a("a-modal",{attrs:{visible:e.previewVisible,footer:null,width:800},on:{cancel:e.handleCancel}},[a("img",{staticStyle:{width:"100%"},attrs:{alt:"example",src:e.previewImg}})])],1)],1)],1)},tt=[],at=[{title:"操作类型",dataIndex:"operate_type",width:"15%",ellipsis:!0},{title:"操作内容",dataIndex:"desc",width:"40%",scopedSlots:{customRender:"comment"}},{title:"操作人",dataIndex:"operator_name",width:"15%"},{title:"操作时间",dataIndex:"created_at",width:"25%"}],it={components:{PAgination:le["a"]},mixins:[oe["n"]],data:function(){return{columns:at,loading:!1,previewVisible:!1,previewImg:""}},props:{moduleId:{type:Number,default:4,required:!0},storeId:{type:Number,default:0,required:!0},lineId:{type:Number,default:0,required:!1}},methods:{rowKeyMethod:function(e,t){return t},getTableList:function(e){var t=this;this.loading=!0;var a=1*this.moduleId===5?1*this.lineId:1*this.storeId,i=Object.assign({module_id:this.moduleId,relation_id:a},this.query);e&&(i=Object.assign(i,e)),this.loading=!1,this.dataSource=[],Object(m["p"])(i).then((function(e){var a=e.data;a&&(t.loading=!1,t.dataSource=a.rows,t.pageTotal=a.total)}))},handleClick:function(e){e.target.classList.contains("img_proof")&&this.getPreview(e.target.src)},getPreview:function(e){this.previewImg="",this.previewVisible=!0,this.previewImg=e},handleCancel:function(){this.previewVisible=!1}}},rt=it,st=(a("0a92"),Object(f["a"])(rt,et,tt,!1,null,"79ec5df8",null)),nt=st.exports;function lt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function ot(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",a=""===t?m["j"]:m["k"],i=""===t?{store_id:this.shopId}:{line_id:this.lineId,store_id:this.shopId};a(i).then((function(t){0===t.status&&(e.logLimitedDetail=t.data)}))},getFreightDetail:function(){var e=this,t={entity_id:this.ship_fee_template_id};this.ship_fee_template_id>0?Object(Ye["d"])(t).then((function(t){var a=t.data;a&&(e.freightDetail=a)})):this.freightDetail={}},updateStatus:function(e){this.shopId=e,this.getShopInfo(),this.$refs.tree.init()},getTreeData:function(){this.$refs.tree.init()}},mounted:function(){this.$route.query.site_id&&this.$store.commit("SET_Comsumer_Website_Base",this.$route.query.site_id),this.$store.commit("SET_Controller_HddenLanguages",!0),this.$route.query.tab&&(this.activeKey=this.$route.query.tab)},beforeRouteLeave:function(e,t,a){this.$store.commit("SET_Controller_HddenLanguages",!1),a()}},ct=dt,ut=(a("3ac0"),Object(f["a"])(ct,i,r,!1,null,null,null));t["default"]=ut.exports},de76:function(e,t,a){},deba:function(e,t,a){e.exports=a.p+"img/store-category.990a089b.png"},deff:function(e,t,a){e.exports=a.p+"img/img-bbc.1668f1ec.jpg"},e025:function(e,t,a){e.exports=a.p+"img/img-proScope-2.e2bbf9d6.png"},e3b7:function(e,t,a){},ed6d:function(e,t,a){e.exports=a.p+"img/img-proLimited-2.1beae9e3.png"},fa52:function(e,t,a){"use strict";a("d8a9")},feab:function(e,t,a){}}]);