shop-php/public/system/js/chunk-49918be8.cc97170c.js
2023-09-04 13:27:57 +08:00

1 line
19 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-49918be8"],{7226:function(t,e,a){"use strict";a("884d")},8492:function(t,e,a){"use strict";a.d(e,"J",(function(){return r})),a.d(e,"H",(function(){return i})),a.d(e,"K",(function(){return o})),a.d(e,"I",(function(){return l})),a.d(e,"F",(function(){return s})),a.d(e,"C",(function(){return c})),a.d(e,"Q",(function(){return u})),a.d(e,"P",(function(){return d})),a.d(e,"D",(function(){return m})),a.d(e,"M",(function(){return f})),a.d(e,"L",(function(){return p})),a.d(e,"g",(function(){return h})),a.d(e,"e",(function(){return _})),a.d(e,"h",(function(){return g})),a.d(e,"f",(function(){return b})),a.d(e,"A",(function(){return y})),a.d(e,"R",(function(){return v})),a.d(e,"U",(function(){return V})),a.d(e,"T",(function(){return x})),a.d(e,"S",(function(){return D})),a.d(e,"G",(function(){return w})),a.d(e,"q",(function(){return k})),a.d(e,"d",(function(){return $})),a.d(e,"p",(function(){return C})),a.d(e,"r",(function(){return j})),a.d(e,"i",(function(){return L})),a.d(e,"n",(function(){return O})),a.d(e,"o",(function(){return z})),a.d(e,"l",(function(){return S})),a.d(e,"cb",(function(){return F})),a.d(e,"E",(function(){return E})),a.d(e,"B",(function(){return I})),a.d(e,"Y",(function(){return T})),a.d(e,"ab",(function(){return q})),a.d(e,"X",(function(){return K})),a.d(e,"bb",(function(){return M})),a.d(e,"Z",(function(){return P})),a.d(e,"O",(function(){return A})),a.d(e,"N",(function(){return B})),a.d(e,"m",(function(){return J})),a.d(e,"k",(function(){return N})),a.d(e,"j",(function(){return U})),a.d(e,"c",(function(){return X})),a.d(e,"a",(function(){return Y})),a.d(e,"b",(function(){return Z})),a.d(e,"V",(function(){return G})),a.d(e,"W",(function(){return H})),a.d(e,"s",(function(){return Q})),a.d(e,"v",(function(){return R})),a.d(e,"x",(function(){return W})),a.d(e,"z",(function(){return tt})),a.d(e,"y",(function(){return et})),a.d(e,"w",(function(){return at})),a.d(e,"u",(function(){return nt})),a.d(e,"t",(function(){return rt}));var n=a("0c6d");function r(t){return n["a"].get("merchant/menu/lst",t)}function i(){return n["a"].get("merchant/menu/create/form")}function o(t){return n["a"].get("merchant/menu/update/form/".concat(t))}function l(t){return n["a"].delete("merchant/menu/delete/".concat(t))}function s(t){return n["a"].get("system/merchant/lst",t)}function c(t){return n["a"].post("system/merchant/create",t)}function u(t){return n["a"].get("system/merchant/update/form/".concat(t))}function d(t,e){return n["a"].post("system/merchant/update/".concat(t),e)}function m(t){return n["a"].delete("system/merchant/delete/".concat(t))}function f(t,e){return n["a"].post("system/merchant/status/".concat(t),{status:e})}function p(t){return n["a"].get("system/merchant/password/form/".concat(t))}function h(t){return n["a"].get("system/merchant/category/lst",t)}function _(){return n["a"].get("system/merchant/category/form")}function g(t){return n["a"].get("system/merchant/category/form/".concat(t))}function b(t){return n["a"].delete("system/merchant/category/".concat(t))}function y(t,e){return n["a"].get("merchant/order/lst/".concat(t),e)}function v(t){return n["a"].get("merchant/order/mark/".concat(t,"/form"))}function V(t,e){return n["a"].get("merchant/order/refund/lst/".concat(t),e)}function x(t){return n["a"].get("merchant/order/refund/mark/".concat(t,"/form"))}function D(t,e){return n["a"].post("merchant/order/reconciliation/create/".concat(t),e)}function w(t){return n["a"].post("system/merchant/login/".concat(t))}function k(t){return n["a"].get("merchant/intention/lst",t)}function $(t){return n["a"].get("merchant/intention/mark/".concat(t,"/form"))}function C(t){return n["a"].delete("merchant/intention/delete/".concat(t))}function j(t){return n["a"].get("merchant/intention/status/".concat(t,"/form"))}function L(t){return n["a"].get("system/merchant/changecopy/".concat(t,"/form"))}function O(){return n["a"].get("agreement/sys_intention_agree")}function z(t){return n["a"].post("agreement/sys_intention_agree",t)}function S(t){return n["a"].get("agreement/".concat(t))}function F(t,e){return n["a"].post("agreement/".concat(t),e)}function E(t,e){return n["a"].post("system/merchant/close/".concat(t),{status:e})}function I(){return n["a"].get("system/merchant/count")}function T(t){return n["a"].post("merchant/type/create",t)}function q(t){return n["a"].get("merchant/type/lst",t)}function K(){return n["a"].get("merchant/mer_auth")}function M(t,e){return n["a"].post("merchant/type/update/".concat(t),e)}function P(t){return n["a"].delete("merchant/type/delete/".concat(t))}function A(t){return n["a"].get("merchant/type/mark/".concat(t))}function B(t){return n["a"].get("/merchant/type/detail/".concat(t))}function J(){return n["a"].get("merchant/type/options")}function N(){return n["a"].get("system/merchant/category/options")}function U(t){return n["a"].get("system/applyments/lst",t)}function X(t,e){return n["a"].post("system/applyments/status/".concat(t),e)}function Y(t){return n["a"].get("system/applyments/detail/".concat(t))}function Z(t){return n["a"].get("profitsharing/lst",t)}function G(t){return n["a"].post("profitsharing/again/".concat(t))}function H(t){return n["a"].get("system/applyments/mark/".concat(t,"/form"))}function Q(t){return n["a"].get("profitsharing/export",t)}function R(t){return n["a"].get("margin/lst",t)}function W(t){return n["a"].get("margin/refund/lst",t)}function tt(t){return n["a"].get("margin/refund/status/".concat(t,"/form"))}function et(t){return n["a"].get("margin/refund/mark/".concat(t,"/form"))}function at(t){return n["a"].get("margin/refund/show/".concat(t))}function nt(t,e){return n["a"].get("margin/list/".concat(t),e)}function rt(t){return n["a"].get("margin/set/".concat(t,"/form"))}},"884d":function(t,e,a){},e572:function(t,e,a){"use strict";a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return r})),a.d(e,"b",(function(){return i}));var n=[{label:"开启",value:1},{label:"关闭",value:0}],r={title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},i={title:"状态",custom:!0,fromTxt:[{text:"全部",val:""},{text:"待审核",val:"0"},{text:"审核已通过",val:"1"},{text:"审核未通过",val:"2"}]}},eb65:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("div",[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加店铺类型\n ")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"switchTable",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"mer_type_id",label:"ID","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"type_name",label:"店铺类型名称","min-width":"200"}}),t._v(" "),a("el-table-column",{attrs:{prop:"type_name",label:"店铺保证金","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"spBlock"},[t._v(t._s(e.row.is_margin?e.row.margin+"元":"无"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"type_info",label:"店铺类型要求","min-width":"300"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"update_time",label:"最新修改时间","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"280",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDetail(e.row)}}},[t._v("详情\n ")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row)}}},[t._v("编辑\n ")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.mer_type_id,e.$index)}}},[t._v("删除\n ")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleMark(e.row.mer_type_id)}}},[t._v("备注\n ")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1),t._v(" "),a("el-dialog",{attrs:{title:t.isEdit?"编辑店铺类型":"添加店铺类型",visible:t.dialogVisible,width:"600px","before-close":t.handleClose,"append-to-body":t.append},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",{ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:t.ruleValidate,model:t.formValidate,"label-width":"120px"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"店铺类型名称:",prop:"type_name"}},[a("el-input",{attrs:{maxlength:"5",placeholder:"请输入店铺类型名称"},model:{value:t.formValidate.type_name,callback:function(e){t.$set(t.formValidate,"type_name",e)},expression:"formValidate.type_name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"商家申请类型:",prop:"is_allow_apply"}},[a("el-select",{attrs:{placeholder:"请选择商家申请类型"},model:{value:t.formValidate.is_allow_apply,callback:function(e){t.$set(t.formValidate,"is_allow_apply",e)},expression:"formValidate.is_allow_apply"}},[a("el-option",{attrs:{label:"是",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"搜索商家:",prop:"is_search_display"}},[a("el-select",{attrs:{placeholder:"请选择搜索商家是否展示"},model:{value:t.formValidate.is_search_display,callback:function(e){t.$set(t.formValidate,"is_search_display",e)},expression:"formValidate.is_search_display"}},[a("el-option",{attrs:{label:"是",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"类型code"}},[a("el-input",{attrs:{type:"text"},model:{value:t.formValidate.type_code,callback:function(e){t.$set(t.formValidate,"type_code",e)},expression:"formValidate.type_code"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"同步云商商品:",prop:"is_sync_prod"}},[a("el-select",{attrs:{placeholder:"请选择商家申请类型"},model:{value:t.formValidate.is_sync_prod,callback:function(e){t.$set(t.formValidate,"is_sync_prod",e)},expression:"formValidate.is_sync_prod"}},[a("el-option",{attrs:{label:"是",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"店铺保证金:"}},[a("el-radio-group",{model:{value:t.formValidate.is_margin,callback:function(e){t.$set(t.formValidate,"is_margin",e)},expression:"formValidate.is_margin"}},[a("el-radio",{attrs:{label:0}},[t._v("无")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("有")])],1),t._v(" "),1==t.formValidate.is_margin?a("div",{staticClass:"input_inline"},[a("el-input",{attrs:{placeholder:"请输入单位"},model:{value:t.formValidate.margin,callback:function(e){t.$set(t.formValidate,"margin",e)},expression:"formValidate.margin"}}),t._v("\n 单位:元\n ")],1):t._e()],1),t._v(" "),a("el-form-item",{attrs:{label:"店铺权限:",prop:"auth"}},[a("el-tree",{ref:"tree",attrs:{data:t.permissions,"show-checkbox":"","node-key":"value",":default-checked-keys":t.formValidate.auth||[]},on:{"hook:mounted":function(e){return t.$refs.tree.setCheckedKeys(t.formValidate.auth||[])},check:function(e){t.formValidate.auth=t.$refs.tree.getCheckedKeys(),t.$refs.formValidate.validateField("auth")}}})],1),t._v(" "),a("el-form-item",{attrs:{label:"其它说明:"}},[a("el-input",{attrs:{type:"textarea"},model:{value:t.formValidate.description,callback:function(e){t.$set(t.formValidate,"description",e)},expression:"formValidate.description"}})],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-top":"30px"}},[t.isEdit?a("el-button",{staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(e){return t.handleUpdate("formValidate")}}},[t._v("提交\n ")]):a("el-button",{staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("提交\n ")])],1)],1)],1),t._v(" "),a("el-dialog",{attrs:{title:"店铺详情",visible:t.dialogDetailVisible,width:"600px","before-close":t.handleDetailClose,"append-to-body":t.append},on:{"update:visible":function(e){t.dialogDetailVisible=e}}},[a("el-form",{ref:"formDetailValidate",staticClass:"formValidate mt20",attrs:{model:t.formDetailValidate,"label-width":"160px"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"店铺类型名称:",prop:"type_name"}},[a("span",[t._v("\n "+t._s(t.formDetailValidate.type_name?t.formDetailValidate.type_name:"暂无数据")+"\n ")])]),t._v(" "),a("el-form-item",{attrs:{label:"店铺类型要求:"}},[t._v("\n "+t._s(t.formDetailValidate.type_info?t.formDetailValidate.type_info:"暂无数据"))]),t._v(" "),a("el-form-item",{attrs:{label:"店铺保证金:"}},[t._v("\n "+t._s(t.formDetailValidate.margin?t.formDetailValidate.margin:"暂无数据"))]),t._v(" "),a("el-form-item",{attrs:{label:"店铺权限:"}},[a("el-tree",{ref:"treeDetail",attrs:{data:t.formDetailValidate.options,props:{label:"title"}}})],1),t._v(" "),a("el-form-item",{attrs:{label:"最新修改时间:"}},[t._v(t._s(t.formDetailValidate.update_time?t.formDetailValidate.update_time:"暂无数据")+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:" 类型code"}},[t._v(t._s(t.formDetailValidate.type_code?t.formDetailValidate.type_code:"暂无数据")+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:" 商家申请类型:"}},[t._v(t._s(1==t.formDetailValidate.is_allow_apply?"是":"否")+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"搜索商家是否展示:"}},[t._v(t._s(1==t.formDetailValidate.is_search_display?"是":"否")+"\n\n \n ")]),t._v(" "),a("el-form-item",{attrs:{label:"是否同步云商商品:"}},[t._v(t._s(1==t.formDetailValidate.is_sync_prod?"是":"否")+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"其它说明:"}},[t._v("\n "+t._s(t.formDetailValidate.description?t.formDetailValidate.description:"暂无数据"))]),t._v(" "),a("el-form-item",{attrs:{label:"创建时间:"}},[t._v("\n "+t._s(t.formDetailValidate.create_time?t.formDetailValidate.create_time:"暂无数据"))]),t._v(" "),a("el-form-item",{attrs:{label:"最新修改时间:"}},[t._v(t._s(t.formDetailValidate.update_time?t.formDetailValidate.update_time:"暂无数据")+"\n ")])],1)],1)],1)},r=[],i=(a("6b54"),a("c7eb")),o=(a("96cf"),a("1da1")),l=(a("7f7f"),a("ac6a"),a("8492")),s=a("e572"),c=a("83d6"),u=(a("bbcc"),a("a78e"),{name:"MerchantList",data:function(){return{dialogDetailVisible:!1,formDetailValidate:{},detailTypeId:"",fromList:s["a"],roterPre:c["roterPre"],listLoading:!0,append:!0,permissions:[],tableData:{data:[],total:0},tableFrom:{page:1,limit:20},formValidate:{type_name:"",type_info:"",is_margin:1,margin:0,auth:[],description:"",is_allow_apply:"",is_search_display:"",type_code:"",is_sync_prod:""},ruleValidate:{type_name:[{required:!0,message:"请输入店铺类型名称",trigger:"blur"}],auth:[{required:!0,message:"请选择店铺权限",trigger:"change"}],is_allow_apply:[{required:!0,message:"请选择搜索商家是否展示",trigger:"change"}],is_search_display:[{required:!0,message:"请选择搜索商家",trigger:"change"}],is_sync_prod:[{required:!0,message:"请选择是否同步云商商品",trigger:"change"}]},dialogVisible:!1,isEdit:!1,typeId:"",cccc:"",props:{multiple:!0,expandTrigger:"hover",emitPath:!1}}},mounted:function(){this.getList("")},methods:{getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(l["ab"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1,e.jurisdiction()})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList(1)},handleClose:function(){this.dialogVisible=!1},onAdd:function(){this.dialogVisible=!0,this.isEdit=!1,this.formValidate={type_name:"",type_info:"",is_margin:1,margin:0,description:"",auth:[]},this.$refs.tree&&this.$refs.tree.setCheckedKeys([])},jurisdiction:function(){var t=this;Object(l["X"])().then((function(e){function a(t){return t.forEach((function(t){t.value=t.id,t.label=t.title,delete t.id,delete t.title,t.children&&(t.children.length?a(t.children):delete t.children)})),t}t.permissions=a(e.data)}))},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;Object(l["Y"])(e.formValidate).then(function(){var t=Object(o["a"])(Object(i["a"])().mark((function t(a){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$message.success(a.message),e.dialogVisible=!1,e.getList("");case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))}))},onEdit:function(t){this.isEdit=!0,this.dialogVisible=!0,this.typeId=t.mer_type_id,this.formValidate={type_name:t.type_name,type_info:t.type_info,is_margin:t.is_margin||0,margin:t.margin||0,auth:t.auth_ids,description:t.description,is_allow_apply:t.is_allow_apply.toString(),is_search_display:t.is_search_display.toString(),type_code:t.type_code,is_sync_prod:t.is_sync_prod.toString()},this.$refs.tree&&this.$refs.tree.setCheckedKeys(t.auth_ids)},handleDetailClose:function(){this.dialogDetailVisible=!1,this.getList()},handleDetail:function(t){this.dialogDetailVisible=!0,this.detailTypeId=t.mer_type_id,this.getDetail()},getDetail:function(){var t=this;Object(l["N"])(this.detailTypeId).then((function(e){t.formDetailValidate=e.data}))},handleUpdate:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;Object(l["bb"])(e.typeId,e.formValidate).then(function(){var t=Object(o["a"])(Object(i["a"])().mark((function t(a){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$message.success(a.message),e.dialogVisible=!1,e.getList("");case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))}))},handleDelete:function(t){var e=this;this.$modalSure("确定删除该店铺类型吗").then((function(){Object(l["Z"])(t).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))}))},handleMark:function(t){var e=this;this.$modalForm(Object(l["O"])(t)).then((function(){return e.getList()}))}}}),d=u,m=(a("7226"),a("2877")),f=Object(m["a"])(d,n,r,!1,null,"74003b0b",null);e["default"]=f.exports}}]);