启程易购后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
qicheng_shop_backend/public/system/js/chunk-614620aa.e0bb8469.js

1 lines
20 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-614620aa"],{"1f9f":function(t,e,n){},8492:function(t,e,n){"use strict";n.d(e,"M",(function(){return a})),n.d(e,"K",(function(){return i})),n.d(e,"N",(function(){return o})),n.d(e,"L",(function(){return c})),n.d(e,"I",(function(){return u})),n.d(e,"G",(function(){return s})),n.d(e,"E",(function(){return l})),n.d(e,"T",(function(){return d})),n.d(e,"F",(function(){return f})),n.d(e,"Q",(function(){return m})),n.d(e,"P",(function(){return g})),n.d(e,"g",(function(){return p})),n.d(e,"e",(function(){return y})),n.d(e,"h",(function(){return h})),n.d(e,"f",(function(){return _})),n.d(e,"C",(function(){return v})),n.d(e,"U",(function(){return b})),n.d(e,"X",(function(){return w})),n.d(e,"W",(function(){return k})),n.d(e,"V",(function(){return V})),n.d(e,"J",(function(){return C})),n.d(e,"q",(function(){return x})),n.d(e,"d",(function(){return L})),n.d(e,"p",(function(){return S})),n.d(e,"r",(function(){return $})),n.d(e,"i",(function(){return z})),n.d(e,"n",(function(){return O})),n.d(e,"o",(function(){return j})),n.d(e,"l",(function(){return U})),n.d(e,"fb",(function(){return D})),n.d(e,"H",(function(){return F})),n.d(e,"D",(function(){return T})),n.d(e,"bb",(function(){return P})),n.d(e,"db",(function(){return R})),n.d(e,"ab",(function(){return W})),n.d(e,"eb",(function(){return B})),n.d(e,"cb",(function(){return q})),n.d(e,"S",(function(){return I})),n.d(e,"R",(function(){return J})),n.d(e,"m",(function(){return M})),n.d(e,"k",(function(){return N})),n.d(e,"j",(function(){return E})),n.d(e,"c",(function(){return G})),n.d(e,"a",(function(){return H})),n.d(e,"b",(function(){return Q})),n.d(e,"Y",(function(){return A})),n.d(e,"Z",(function(){return K})),n.d(e,"s",(function(){return X})),n.d(e,"w",(function(){return Y})),n.d(e,"v",(function(){return Z})),n.d(e,"x",(function(){return tt})),n.d(e,"z",(function(){return et})),n.d(e,"B",(function(){return nt})),n.d(e,"A",(function(){return rt})),n.d(e,"y",(function(){return at})),n.d(e,"u",(function(){return it})),n.d(e,"t",(function(){return ot})),n.d(e,"O",(function(){return ct}));var r=n("0c6d");function a(t){return r["a"].get("merchant/menu/lst",t)}function i(){return r["a"].get("merchant/menu/create/form")}function o(t){return r["a"].get("merchant/menu/update/form/".concat(t))}function c(t){return r["a"].delete("merchant/menu/delete/".concat(t))}function u(t){return r["a"].get("system/merchant/lst",t)}function s(t){return r["a"].get("system/merchant/detail/".concat(t))}function l(t){return r["a"].post("system/merchant/create",t)}function d(t,e){return r["a"].post("system/merchant/update/".concat(t),e)}function f(t){return r["a"].get("system/merchant/delete/".concat(t,"/form"))}function m(t,e){return r["a"].post("system/merchant/status/".concat(t),{status:e})}function g(t){return r["a"].get("system/merchant/password/form/".concat(t))}function p(t){return r["a"].get("system/merchant/category/lst",t)}function y(){return r["a"].get("system/merchant/category/form")}function h(t){return r["a"].get("system/merchant/category/form/".concat(t))}function _(t){return r["a"].delete("system/merchant/category/".concat(t))}function v(t,e){return r["a"].get("merchant/order/lst/".concat(t),e)}function b(t){return r["a"].get("merchant/order/mark/".concat(t,"/form"))}function w(t,e){return r["a"].get("merchant/order/refund/lst/".concat(t),e)}function k(t){return r["a"].get("merchant/order/refund/mark/".concat(t,"/form"))}function V(t,e){return r["a"].post("merchant/order/reconciliation/create/".concat(t),e)}function C(t){return r["a"].post("system/merchant/login/".concat(t))}function x(t){return r["a"].get("merchant/intention/lst",t)}function L(t){return r["a"].get("merchant/intention/mark/".concat(t,"/form"))}function S(t){return r["a"].delete("merchant/intention/delete/".concat(t))}function $(t){return r["a"].get("merchant/intention/status/".concat(t,"/form"))}function z(t){return r["a"].get("system/merchant/changecopy/".concat(t,"/form"))}function O(){return r["a"].get("agreement/sys_intention_agree")}function j(t){return r["a"].post("agreement/sys_intention_agree",t)}function U(t){return r["a"].get("agreement/".concat(t))}function D(t,e){return r["a"].post("agreement/".concat(t),e)}function F(t,e){return r["a"].post("system/merchant/close/".concat(t),{status:e})}function T(){return r["a"].get("system/merchant/count")}function P(t){return r["a"].post("merchant/type/create",t)}function R(t){return r["a"].get("merchant/type/lst",t)}function W(){return r["a"].get("merchant/mer_auth")}function B(t,e){return r["a"].post("merchant/type/update/".concat(t),e)}function q(t){return r["a"].delete("merchant/type/delete/".concat(t))}function I(t){return r["a"].get("merchant/type/mark/".concat(t))}function J(t){return r["a"].get("/merchant/type/detail/".concat(t))}function M(){return r["a"].get("merchant/type/options")}function N(){return r["a"].get("system/merchant/category/options")}function E(t){return r["a"].get("system/applyments/lst",t)}function G(t,e){return r["a"].post("system/applyments/status/".concat(t),e)}function H(t){return r["a"].get("system/applyments/detail/".concat(t))}function Q(t){return r["a"].get("profitsharing/lst",t)}function A(t){return r["a"].post("profitsharing/again/".concat(t))}function K(t){return r["a"].get("system/applyments/mark/".concat(t,"/form"))}function X(t){return r["a"].get("profitsharing/export",t)}function Y(t){return r["a"].get("margin/lst",t)}function Z(t){return r["a"].get("margin/make_up",t)}function tt(t){return r["a"].get("margin/local/".concat(t,"/form"))}function et(t){return r["a"].get("margin/refund/lst",t)}function nt(t){return r["a"].get("margin/refund/status/".concat(t,"/form"))}function rt(t){return r["a"].get("margin/refund/mark/".concat(t,"/form"))}function at(t){return r["a"].get("margin/refund/show/".concat(t))}function it(t,e){return r["a"].get("margin/list/".concat(t),e)}function ot(t){return r["a"].get("margin/set/".concat(t,"/form"))}function ct(t,e){return r["a"].get("system/merchant/get_operate_list/".concat(t),e)}},"8bb5":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("div",{staticClass:"ivu-mt box-wrapper"},[n("div",{staticClass:"right-wrapper"},[n("el-card",[n("div",{staticClass:"acea-row"},[n("div",{staticStyle:{width:"310px",height:"550px","margin-right":"30px",position:"relative"}},[n("iframe",{ref:"iframe",staticClass:"iframe-box",attrs:{src:t.imgUrl,frameborder:"0"}})]),t._v(" "),n("div",{staticClass:"table"},[n("div",{staticClass:"acea-row row-between-wrapper"},[n("div",{attrs:{type:"flex"}},[n("div",[n("div",{staticClass:"acea-row row-between-wrapper"},[n("div",{staticClass:"button acea-row row-middle"},[n("el-button",{staticStyle:{"font-size":"12px"},attrs:{type:"primary",size:"small"},on:{click:t.add}},[n("i",{staticClass:"el-icon-plus",staticStyle:{"margin-right":"4px"}}),t._v("添加")])],1),t._v(" "),n("div",{staticStyle:{color:"#F56464","font-size":"13px"}},[t._v("  注:初次进入该页面,可点击[添加]创建店铺首页模板,点击[适用范围] 可将该模板指定给相应商家使用。")])])])])]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"tables",attrs:{data:t.list,"highlight-current-row":"",size:"small"}},[n("el-table-column",{attrs:{prop:"id",label:"页面ID","min-width":"60"}}),t._v(" "),n("el-table-column",{attrs:{prop:"name",label:"模板名称","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"add_time",label:"添加时间","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"update_time",label:"更新时间","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.edit(e.row)}}},[t._v("编辑")]),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.del(e.row.id,e.$index)}}},[t._v("删除")]),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.preview(e.row)}}},[t._v("预览")]),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.onDiyCopy(e.row)}}},[t._v("复制")]),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.setRange(e.row.id)}}},[t._v("适用范围")])]}}])})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{background:"","page-size":t.diyFrom.limit,"current-page":t.diyFrom.page,layout:"total, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)])])],1)]),t._v(" "),t.dialogVisible?n("el-dialog",{staticClass:"addDia",attrs:{visible:t.dialogVisible,width:"800px",title:"适用范围","custom-class":"dialog-scustom"},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.rangeLoading,expression:"rangeLoading"}],ref:"formValidate",staticClass:"formValidate mt20",attrs:{model:t.formValidate,rules:t.ruleValidate,"label-width":"100px",size:"small"},nativeOn:{submit:function(t){t.preventDefault()}}},[n("el-form-item",{attrs:{"label-width":"0"}},[n("el-radio-group",{on:{change:function(e){return t.getChange()}},model:{value:t.formValidate.scope_type,callback:function(e){t.$set(t.formValidate,"scope_type",e)},expression:"formValidate.scope_type"}},[n("el-radio",{attrs:{label:4}},[t._v("全部店铺使用")]),t._v(" "),n("el-radio",{attrs:{label:0}},[t._v("指定店铺使用")]),t._v(" "),n("el-radio",{attrs:{label:1}},[t._v("指定商户分类使用")]),t._v(" "),n("el-radio",{attrs:{label:2}},[t._v("指定店铺类型使用")]),t._v(" "),n("el-radio",{attrs:{label:3}},[t._v("指定商户类别使用")])],1)],1),t._v(" "),0==t.formValidate.scope_type?n("el-form-item",{attrs:{label:"店铺名称:",prop:"scope_value"}},[n("el-select",{staticClass:"selWidth",attrs:{clearable:"",filterable:"",multiple:"",placeholder:"请选择"},model:{value:t.formValidate.scope_value,callback:function(e){t.$set(t.formValidate,"scope_value",e)},expression:"formValidate.scope_value"}},t._l(t.merSelect,(function(t){return n("el-option",{key:t.mer_id,attrs:{label:t.mer_name,value:t.mer_id}})})),1)],1):t._e(),t._v(" "),1==t.formValidate.scope_type?n("el-form-item",{attrs:{label:"商户分类:",prop:"scope_value"}},[n("el-select",{staticClass:"filter-item selWidth mr20",attrs:{multiple:"",filterable:"",placeholder:"请选择",clearable:""},model:{value:t.formValidate.scope_value,callback:function(e){t.$set(t.formValidate,"scope_value",e)},expression:"formValidate.scope_value"}},t._l(t.merCateList,(function(t){return n("el-option",{key:t.merchant_category_id,attrs:{label:t.category_name,value:t.merchant_category_id}})})),1)],1):t._e(),t._v(" "),2==t.formValidate.scope_type?n("el-form-item",{attrs:{label:"店铺类型:",prop:"scope_value"}},[n("el-select",{staticClass:"selWidth",attrs:{clearable:"",filterable:"",multiple:"",placeholder:"请选择"},model:{value:t.formValidate.scope_value,callback:function(e){t.$set(t.formValidate,"scope_value",e)},expression:"formValidate.scope_value"}},t._l(t.storeType,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1):t._e(),t._v(" "),3==t.formValidate.scope_type?n("el-form-item",{attrs:{label:"商户类别:",prop:"scope_value"}},[n("el-select",{staticClass:"selWidth",attrs:{clearable:"",filterable:"",multiple:"",placeholder:"请选择"},model:{value:t.formValidate.scope_value,callback:function(e){t.$set(t.formValidate,"scope_value",e)},expression:"formValidate.scope_value"}},t._l(t.traderList,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1):t._e()],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.submitForm}},[t._v("提交")])],1)],1):t._e()],1)},a=[],i=n("db72"),o=n("bbcc"),c=n("83d6"),u=n("f478"),s=n("c4c8"),l=n("8492"),d=n("2f62"),f={name:"devise_list",computed:Object(i["a"])({},Object(d["d"])("layout",["menuCollapse"])),components:{},data:function(){return{loading:!1,dialogVisible:!1,roterPre:c["roterPre"],list:[],imgUrl:"",modal:!1,BaseURL:o["a"].httpUrl||"http://localhost:8080",rangeLoading:!1,diyFrom:{page:1,limit:10},total:0,mer_id:"",did:0,scope_id:"",isPreview:!1,merSelect:[],merCateList:[],storeType:[],traderList:[{label:"自营",value:1},{label:"非自营",value:0}],formValidate:{scope_type:4,scope_value:[]},ruleValidate:{scope_value:[{required:!0,message:"请选择",trigger:"change"}]}}},created:function(){this.getList(),this.getMerSelect(),this.getCategorySelect(),this.getStoreType()},mounted:function(){},methods:{preview:function(t){this.isPreview=!0;var e=1e3*(new Date).getTime(),n="".concat(this.BaseURL,"/pages/admin/storeDiy/index?id=0&diy_id=").concat(t.id,"&inner_frame=1&time=").concat(e);this.imgUrl=n},setRange:function(t){var e=this;this.dialogVisible=!0,Object(u["y"])(t).then((function(n){e.scope_id=t,e.formValidate=n.data})).catch((function(t){e.$message.error(t.message)}))},submitForm:function(){var t=this;this.$refs["formValidate"].validate((function(e){if(!e)return!1;Object(u["W"])(t.scope_id,t.formValidate).then((function(e){t.$message.success(e.message),setTimeout((function(){t.dialogVisible=!1}),300)})).catch((function(e){t.$message.error(e.message)}))}))},getChange:function(){this.formValidate.scope_value=[]},getMerSelect:function(){var t=this;Object(s["Q"])().then((function(e){t.merSelect=e.data})).catch((function(e){t.$message.error(e.message)}))},getCategorySelect:function(){var t=this;Object(s["O"])().then((function(e){t.merCateList=e.data.list})).catch((function(e){t.$message.error(e.message)}))},getStoreType:function(){var t=this;Object(l["m"])().then((function(e){t.storeType=e.data})).catch((function(e){t.$message.error(e.message)}))},getList:function(){var t=this;this.loading=!0,Object(u["J"])(this.diyFrom).then((function(e){t.loading=!1;var n=e.data;t.list=n.list,t.total=n.count,t.did=n.list[0]["id"];var r=window.localStorage;t.imgUrl=r.getItem("imgUrl");var a=1e3*(new Date).getTime(),i="".concat(t.BaseURL,"/pages/admin/storeDiy/index?id=0&diy_id=").concat(t.did,"&inner_frame=1&time=").concat(a);r.setItem("imgUrl",i),t.imgUrl=i}))},pageChange:function(t){this.diyFrom.page=t,this.getList()},handleSizeChange:function(t){this.diyFrom.limit=t,this.getList()},edit:function(t){this.$router.push({path:"".concat(c["roterPre"],"/setting/merchant/diy"),query:{id:t.id,name:t.template_name||"moren",types:2,store:1}})},add:function(){this.$router.push({path:"".concat(c["roterPre"],"/setting/merchant/diy"),query:{id:0,name:"首页",types:2,store:1}})},del:function(t,e){var n=this;this.$modalSure("删除模板吗").then((function(){Object(u["H"])(t).then((function(t){var e=t.message;n.$message.success(e),n.getList()})).catch((function(t){var e=t.message;n.$message.error(e)}))}))},onDiyCopy:function(t){var e=this;Object(u["G"])(t.id).then((function(){e.getList()})).catch((function(t){e.$message.error(t.message)}))}}},m=f,g=(n("fd22"),n("2877")),p=Object(g["a"])(m,r,a,!1,null,"0b23927e",null);e["default"]=p.exports},f478:function(t,e,n){"use strict";n.d(e,"t",(function(){return a})),n.d(e,"z",(function(){return i})),n.d(e,"o",(function(){return o})),n.d(e,"n",(function(){return c})),n.d(e,"m",(function(){return u})),n.d(e,"l",(function(){return s})),n.d(e,"X",(function(){return l})),n.d(e,"V",(function(){return d})),n.d(e,"e",(function(){return f})),n.d(e,"v",(function(){return m})),n.d(e,"A",(function(){return g})),n.d(e,"x",(function(){return p})),n.d(e,"B",(function(){return y})),n.d(e,"P",(function(){return h})),n.d(e,"Q",(function(){return _})),n.d(e,"c",(function(){return v})),n.d(e,"r",(function(){return b})),n.d(e,"R",(function(){return w})),n.d(e,"S",(function(){return k})),n.d(e,"i",(function(){return V})),n.d(e,"a",(function(){return C})),n.d(e,"p",(function(){return x})),n.d(e,"C",(function(){return L})),n.d(e,"D",(function(){return S})),n.d(e,"g",(function(){return $})),n.d(e,"d",(function(){return z})),n.d(e,"s",(function(){return O})),n.d(e,"j",(function(){return j})),n.d(e,"T",(function(){return U})),n.d(e,"U",(function(){return D})),n.d(e,"b",(function(){return F})),n.d(e,"q",(function(){return T})),n.d(e,"h",(function(){return P})),n.d(e,"E",(function(){return R})),n.d(e,"F",(function(){return W})),n.d(e,"u",(function(){return B})),n.d(e,"f",(function(){return q})),n.d(e,"k",(function(){return I})),n.d(e,"O",(function(){return J})),n.d(e,"N",(function(){return M})),n.d(e,"M",(function(){return N})),n.d(e,"L",(function(){return E})),n.d(e,"J",(function(){return G})),n.d(e,"H",(function(){return H})),n.d(e,"G",(function(){return Q})),n.d(e,"K",(function(){return A})),n.d(e,"I",(function(){return K})),n.d(e,"y",(function(){return X})),n.d(e,"W",(function(){return Y}));var r=n("0c6d");function a(t){return r["a"].get("store/category/list",t)}function i(t){return r["a"].get("diy/product/lst",t)}function o(t,e){return r["a"].post("diy/create/".concat(t),e)}function c(t){return r["a"].get("diy/lst",t)}function u(t){return r["a"].get("diy/detail/".concat(t))}function s(t,e){return r["a"].delete("diy/delete/".concat(t),e)}function l(t){return r["a"].post("diy/status/".concat(t))}function d(t){return r["a"].get("diy/recovery/".concat(t))}function f(){return r["a"].get("/cms/category_list")}function m(t){return r["a"].get("diy/link/list",t)}function g(t){return r["a"].get("diy/get_routine_code/".concat(t))}function p(){return r["a"].get("diy/user_index")}function y(t){return r["a"].post("diy/user_index",t)}function h(t){return r["a"].get("diy/categroy/options",t)}function _(t,e){return r["a"].get("diy/link/getLinks/".concat(t),e)}function v(){return r["a"].get("diy/categroy/form")}function b(t){return r["a"].get("diy/categroy/".concat(t,"/form"))}function w(t){return r["a"].get("diy/categroy/lst",t)}function k(t,e){return r["a"].post("diy/categroy/status/".concat(t),{status:e})}function V(t){return r["a"].delete("diy/categroy/delete/".concat(t))}function C(){return r["a"].get("diy/mer_categroy/form")}function x(t){return r["a"].get("diy/mer_categroy/".concat(t,"/form"))}function L(t){return r["a"].get("diy/mer_categroy/lst",t)}function S(t,e){return r["a"].post("diy/mer_categroy/status/".concat(t),{status:e})}function $(t){return r["a"].delete("diy/mer_categroy/delete/".concat(t))}function z(){return r["a"].get("diy/link/form")}function O(t){return r["a"].get("diy/link/".concat(t,"/form"))}function j(t){return r["a"].delete("diy/link/delete/".concat(t))}function U(t){return r["a"].get("diy/link/lst",t)}function D(t,e){return r["a"].post("diy/link/status/".concat(t),{status:e})}function F(){return r["a"].get("diy/mer_link/form")}function T(t){return r["a"].get("diy/mer_link/".concat(t,"/form"))}function P(t){return r["a"].delete("diy/mer_link/delete/".concat(t))}function R(t){return r["a"].get("diy/mer_link/lst",t)}function W(t,e){return r["a"].post("diy/mer_link/status/".concat(t),{status:e})}function B(){return r["a"].get("diy/store_street")}function q(t){return r["a"].post("diy/store_street",t)}function I(t){return r["a"].get("diy/copy/".concat(t))}function J(t,e){return r["a"].post("micro/create/".concat(t),e)}function M(t){return r["a"].get("micro/lst",t)}function N(t){return r["a"].get("micro/detail/".concat(t))}function E(t,e){return r["a"].delete("micro/delete/".concat(t),e)}function G(t){return r["a"].get("mer_diy/lst",t)}function H(t,e){return r["a"].delete("mer_diy/delete/".concat(t),e)}function Q(t){return r["a"].get("mer_diy/copy/".concat(t))}function A(t,e){return r["a"].post("mer_diy/create/".concat(t),e)}function K(t){return r["a"].get("mer_diy/detail/".concat(t))}function X(t){return r["a"].get("mer_diy/scope/".concat(t))}function Y(t,e){return r["a"].post("mer_diy/scope/".concat(t),e)}},fd22:function(t,e,n){"use strict";n("1f9f")}}]);