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.
 
 
 
 
 
crmeb_php/public/system/js/chunk-649a1128.0ab64ddd.js

1 lines
16 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-649a1128"],{8492:function(t,e,n){"use strict";n.d(e,"J",(function(){return r})),n.d(e,"H",(function(){return i})),n.d(e,"K",(function(){return o})),n.d(e,"I",(function(){return c})),n.d(e,"F",(function(){return l})),n.d(e,"C",(function(){return s})),n.d(e,"P",(function(){return u})),n.d(e,"D",(function(){return d})),n.d(e,"M",(function(){return f})),n.d(e,"L",(function(){return m})),n.d(e,"g",(function(){return p})),n.d(e,"e",(function(){return h})),n.d(e,"h",(function(){return g})),n.d(e,"f",(function(){return b})),n.d(e,"A",(function(){return _})),n.d(e,"Q",(function(){return y})),n.d(e,"T",(function(){return v})),n.d(e,"S",(function(){return V})),n.d(e,"R",(function(){return x})),n.d(e,"G",(function(){return k})),n.d(e,"q",(function(){return D})),n.d(e,"d",(function(){return w})),n.d(e,"p",(function(){return $})),n.d(e,"r",(function(){return C})),n.d(e,"i",(function(){return j})),n.d(e,"n",(function(){return L})),n.d(e,"o",(function(){return O})),n.d(e,"l",(function(){return z})),n.d(e,"bb",(function(){return F})),n.d(e,"E",(function(){return E})),n.d(e,"B",(function(){return S})),n.d(e,"X",(function(){return I})),n.d(e,"Z",(function(){return T})),n.d(e,"W",(function(){return K})),n.d(e,"ab",(function(){return M})),n.d(e,"Y",(function(){return P})),n.d(e,"O",(function(){return q})),n.d(e,"N",(function(){return A})),n.d(e,"m",(function(){return B})),n.d(e,"k",(function(){return J})),n.d(e,"j",(function(){return N})),n.d(e,"c",(function(){return U})),n.d(e,"a",(function(){return W})),n.d(e,"b",(function(){return X})),n.d(e,"U",(function(){return Y})),n.d(e,"V",(function(){return Z})),n.d(e,"s",(function(){return G})),n.d(e,"v",(function(){return H})),n.d(e,"x",(function(){return Q})),n.d(e,"z",(function(){return R})),n.d(e,"y",(function(){return tt})),n.d(e,"w",(function(){return et})),n.d(e,"u",(function(){return nt})),n.d(e,"t",(function(){return at}));var a=n("0c6d");function r(t){return a["a"].get("merchant/menu/lst",t)}function i(){return a["a"].get("merchant/menu/create/form")}function o(t){return a["a"].get("merchant/menu/update/form/".concat(t))}function c(t){return a["a"].delete("merchant/menu/delete/".concat(t))}function l(t){return a["a"].get("system/merchant/lst",t)}function s(){return a["a"].get("system/merchant/create/form")}function u(t){return a["a"].get("system/merchant/update/form/".concat(t))}function d(t){return a["a"].delete("system/merchant/delete/".concat(t))}function f(t,e){return a["a"].post("system/merchant/status/".concat(t),{status:e})}function m(t){return a["a"].get("system/merchant/password/form/".concat(t))}function p(t){return a["a"].get("system/merchant/category/lst",t)}function h(){return a["a"].get("system/merchant/category/form")}function g(t){return a["a"].get("system/merchant/category/form/".concat(t))}function b(t){return a["a"].delete("system/merchant/category/".concat(t))}function _(t,e){return a["a"].get("merchant/order/lst/".concat(t),e)}function y(t){return a["a"].get("merchant/order/mark/".concat(t,"/form"))}function v(t,e){return a["a"].get("merchant/order/refund/lst/".concat(t),e)}function V(t){return a["a"].get("merchant/order/refund/mark/".concat(t,"/form"))}function x(t,e){return a["a"].post("merchant/order/reconciliation/create/".concat(t),e)}function k(t){return a["a"].post("system/merchant/login/".concat(t))}function D(t){return a["a"].get("merchant/intention/lst",t)}function w(t){return a["a"].get("merchant/intention/mark/".concat(t,"/form"))}function $(t){return a["a"].delete("merchant/intention/delete/".concat(t))}function C(t){return a["a"].get("merchant/intention/status/".concat(t,"/form"))}function j(t){return a["a"].get("system/merchant/changecopy/".concat(t,"/form"))}function L(){return a["a"].get("agreement/sys_intention_agree")}function O(t){return a["a"].post("agreement/sys_intention_agree",t)}function z(t){return a["a"].get("agreement/".concat(t))}function F(t,e){return a["a"].post("agreement/".concat(t),e)}function E(t,e){return a["a"].post("system/merchant/close/".concat(t),{status:e})}function S(){return a["a"].get("system/merchant/count")}function I(t){return a["a"].post("merchant/type/create",t)}function T(t){return a["a"].get("merchant/type/lst",t)}function K(){return a["a"].get("merchant/mer_auth")}function M(t,e){return a["a"].post("merchant/type/update/".concat(t),e)}function P(t){return a["a"].delete("merchant/type/delete/".concat(t))}function q(t){return a["a"].get("merchant/type/mark/".concat(t))}function A(t){return a["a"].get("/merchant/type/detail/".concat(t))}function B(){return a["a"].get("merchant/type/options")}function J(){return a["a"].get("system/merchant/category/options")}function N(t){return a["a"].get("system/applyments/lst",t)}function U(t,e){return a["a"].post("system/applyments/status/".concat(t),e)}function W(t){return a["a"].get("system/applyments/detail/".concat(t))}function X(t){return a["a"].get("profitsharing/lst",t)}function Y(t){return a["a"].post("profitsharing/again/".concat(t))}function Z(t){return a["a"].get("system/applyments/mark/".concat(t,"/form"))}function G(t){return a["a"].get("profitsharing/export",t)}function H(t){return a["a"].get("margin/lst",t)}function Q(t){return a["a"].get("margin/refund/lst",t)}function R(t){return a["a"].get("margin/refund/status/".concat(t,"/form"))}function tt(t){return a["a"].get("margin/refund/mark/".concat(t,"/form"))}function et(t){return a["a"].get("margin/refund/show/".concat(t))}function nt(t,e){return a["a"].get("margin/list/".concat(t),e)}function at(t){return a["a"].get("margin/set/".concat(t,"/form"))}},e281:function(t,e,n){"use strict";n("facc")},e572:function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var a=[{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,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("div",[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加店铺类型\n ")])],1),t._v(" "),n("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":""}},[n("el-table-column",{attrs:{prop:"mer_type_id",label:"ID","min-width":"60"}}),t._v(" "),n("el-table-column",{attrs:{prop:"type_name",label:"店铺类型名称","min-width":"200"}}),t._v(" "),n("el-table-column",{attrs:{prop:"type_name",label:"店铺保证金","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{staticClass:"spBlock"},[t._v(t._s(e.row.is_margin?e.row.margin+"元":"无"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"type_info",label:"店铺类型要求","min-width":"300"}}),t._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{prop:"update_time",label:"最新修改时间","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"280",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.handleDetail(e.row)}}},[t._v("详情\n ")]),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.onEdit(e.row)}}},[t._v("编辑\n ")]),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.handleDelete(e.row.mer_type_id,e.$index)}}},[t._v("删除\n ")]),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.handleMark(e.row.mer_type_id)}}},[t._v("备注\n ")])]}}])})],1),t._v(" "),n("div",{staticClass:"block"},[n("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(" "),n("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}}},[n("el-form",{ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:t.ruleValidate,model:t.formValidate,"label-width":"120px"},nativeOn:{submit:function(t){t.preventDefault()}}},[n("el-form-item",{attrs:{label:"店铺类型名称:",prop:"type_name"}},[n("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(" "),n("el-form-item",{attrs:{label:"店铺类型要求:"}},[n("el-input",{attrs:{type:"textarea"},model:{value:t.formValidate.type_info,callback:function(e){t.$set(t.formValidate,"type_info",e)},expression:"formValidate.type_info"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"店铺保证金:"}},[n("el-radio-group",{model:{value:t.formValidate.is_margin,callback:function(e){t.$set(t.formValidate,"is_margin",e)},expression:"formValidate.is_margin"}},[n("el-radio",{attrs:{label:0}},[t._v("无")]),t._v(" "),n("el-radio",{attrs:{label:1}},[t._v("有")])],1),t._v(" "),1==t.formValidate.is_margin?n("div",{staticClass:"input_inline"},[n("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(" "),n("el-form-item",{attrs:{label:"店铺权限:",prop:"auth"}},[n("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(" "),n("el-form-item",{attrs:{label:"其它说明:"}},[n("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(" "),n("el-form-item",{staticStyle:{"margin-top":"30px"}},[t.isEdit?n("el-button",{staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(e){return t.handleUpdate("formValidate")}}},[t._v("提交\n ")]):n("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(" "),n("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}}},[n("el-form",{ref:"formDetailValidate",staticClass:"formValidate mt20",attrs:{model:t.formDetailValidate,"label-width":"120px"},nativeOn:{submit:function(t){t.preventDefault()}}},[n("el-form-item",{attrs:{label:"店铺类型名称:",prop:"type_name"}},[n("span",[t._v("\n "+t._s(t.formDetailValidate.type_name?t.formDetailValidate.type_name:"暂无数据")+"\n ")])]),t._v(" "),n("el-form-item",{attrs:{label:"店铺类型要求:"}},[t._v("\n "+t._s(t.formDetailValidate.type_info?t.formDetailValidate.type_info:"暂无数据"))]),t._v(" "),n("el-form-item",{attrs:{label:"店铺保证金:"}},[t._v("\n "+t._s(t.formDetailValidate.margin?t.formDetailValidate.margin:"暂无数据"))]),t._v(" "),n("el-form-item",{attrs:{label:"店铺权限:"}},[n("el-tree",{ref:"treeDetail",attrs:{data:t.formDetailValidate.options,props:{label:"title"}}})],1),t._v(" "),n("el-form-item",{attrs:{label:"其它说明:"}},[t._v("\n "+t._s(t.formDetailValidate.description?t.formDetailValidate.description:"暂无数据"))]),t._v(" "),n("el-form-item",{attrs:{label:"创建时间:"}},[t._v("\n "+t._s(t.formDetailValidate.create_time?t.formDetailValidate.create_time:"暂无数据"))]),t._v(" "),n("el-form-item",{attrs:{label:"最新修改时间:"}},[t._v(t._s(t.formDetailValidate.update_time?t.formDetailValidate.update_time:"暂无数据")+"\n ")])],1)],1)],1)},r=[],i=n("c80c"),o=(n("96cf"),n("3b8d")),c=(n("7f7f"),n("ac6a"),n("8492")),l=n("e572"),s=n("83d6"),u=(n("bbcc"),n("a78e"),{name:"MerchantList",data:function(){return{dialogDetailVisible:!1,formDetailValidate:{},detailTypeId:"",fromList:l["a"],roterPre:s["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:""},ruleValidate:{type_name:[{required:!0,message:"请输入店铺类型名称",trigger:"blur"}],auth:[{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(c["Z"])(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(c["W"])().then((function(e){function n(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?n(t.children):delete t.children)})),t}t.permissions=n(e.data)}))},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;Object(c["X"])(e.formValidate).then(function(){var t=Object(o["a"])(Object(i["a"])().mark((function t(n){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$message.success(n.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},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(c["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(c["ab"])(e.typeId,e.formValidate).then(function(){var t=Object(o["a"])(Object(i["a"])().mark((function t(n){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$message.success(n.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(c["Y"])(t).then((function(t){var n=t.message;e.$message.success(n),e.getList("")})).catch((function(t){var n=t.message;e.$message.error(n)}))}))},handleMark:function(t){var e=this;this.$modalForm(Object(c["O"])(t)).then((function(){return e.getList()}))}}}),d=u,f=(n("e281"),n("2877")),m=Object(f["a"])(d,a,r,!1,null,"43ade48f",null);e["default"]=m.exports},facc:function(t,e,n){}}]);