shop-php/public/system/js/chunk-5e5300d7.ae42c0f7.js
2024-03-04 19:01:04 +08:00

1 line
20 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e5300d7"],{"50eb":function(t,e,a){},8492:function(t,e,a){"use strict";a.d(e,"I",(function(){return r})),a.d(e,"G",(function(){return s})),a.d(e,"J",(function(){return i})),a.d(e,"H",(function(){return o})),a.d(e,"E",(function(){return u})),a.d(e,"B",(function(){return l})),a.d(e,"P",(function(){return c})),a.d(e,"O",(function(){return m})),a.d(e,"C",(function(){return d})),a.d(e,"L",(function(){return f})),a.d(e,"K",(function(){return p})),a.d(e,"g",(function(){return h})),a.d(e,"e",(function(){return g})),a.d(e,"h",(function(){return b})),a.d(e,"f",(function(){return v})),a.d(e,"z",(function(){return _})),a.d(e,"Q",(function(){return y})),a.d(e,"T",(function(){return F})),a.d(e,"S",(function(){return w})),a.d(e,"R",(function(){return k})),a.d(e,"F",(function(){return A})),a.d(e,"q",(function(){return x})),a.d(e,"d",(function(){return C})),a.d(e,"p",(function(){return L})),a.d(e,"bb",(function(){return $})),a.d(e,"i",(function(){return O})),a.d(e,"n",(function(){return S})),a.d(e,"o",(function(){return j})),a.d(e,"l",(function(){return z})),a.d(e,"cb",(function(){return V})),a.d(e,"D",(function(){return T})),a.d(e,"A",(function(){return D})),a.d(e,"X",(function(){return M})),a.d(e,"Z",(function(){return q})),a.d(e,"W",(function(){return E})),a.d(e,"ab",(function(){return I})),a.d(e,"Y",(function(){return P})),a.d(e,"N",(function(){return W})),a.d(e,"M",(function(){return J})),a.d(e,"m",(function(){return B})),a.d(e,"k",(function(){return N})),a.d(e,"j",(function(){return U})),a.d(e,"c",(function(){return G})),a.d(e,"a",(function(){return H})),a.d(e,"b",(function(){return K})),a.d(e,"U",(function(){return Q})),a.d(e,"V",(function(){return R})),a.d(e,"r",(function(){return X})),a.d(e,"u",(function(){return Y})),a.d(e,"w",(function(){return Z})),a.d(e,"y",(function(){return tt})),a.d(e,"x",(function(){return et})),a.d(e,"v",(function(){return at})),a.d(e,"t",(function(){return nt})),a.d(e,"s",(function(){return rt}));var n=a("0c6d");function r(t){return n["a"].get("merchant/menu/lst",t)}function s(){return n["a"].get("merchant/menu/create/form")}function i(t){return n["a"].get("merchant/menu/update/form/".concat(t))}function o(t){return n["a"].delete("merchant/menu/delete/".concat(t))}function u(t){return n["a"].get("system/merchant/lst",t)}function l(t){return n["a"].post("system/merchant/create",t)}function c(t){return n["a"].get("system/merchant/update/form/".concat(t))}function m(t,e){return n["a"].post("system/merchant/update/".concat(t),e)}function d(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 g(){return n["a"].get("system/merchant/category/form")}function b(t){return n["a"].get("system/merchant/category/form/".concat(t))}function v(t){return n["a"].delete("system/merchant/category/".concat(t))}function _(t,e){return n["a"].get("merchant/order/lst/".concat(t),e)}function y(t){return n["a"].get("merchant/order/mark/".concat(t,"/form"))}function F(t,e){return n["a"].get("merchant/order/refund/lst/".concat(t),e)}function w(t){return n["a"].get("merchant/order/refund/mark/".concat(t,"/form"))}function k(t,e){return n["a"].post("merchant/order/reconciliation/create/".concat(t),e)}function A(t){return n["a"].post("system/merchant/login/".concat(t))}function x(t){return n["a"].get("merchant/intention/lst",t)}function C(t){return n["a"].get("merchant/intention/mark/".concat(t,"/form"))}function L(t){return n["a"].delete("merchant/intention/delete/".concat(t))}function $(t,e){return n["a"].post("merchant/intention/status/".concat(t),e)}function O(t){return n["a"].get("system/merchant/changecopy/".concat(t,"/form"))}function S(){return n["a"].get("agreement/sys_intention_agree")}function j(t){return n["a"].post("agreement/sys_intention_agree",t)}function z(t){return n["a"].get("agreement/".concat(t))}function V(t,e){return n["a"].post("agreement/".concat(t),e)}function T(t,e){return n["a"].post("system/merchant/close/".concat(t),{status:e})}function D(){return n["a"].get("system/merchant/count")}function M(t){return n["a"].post("merchant/type/create",t)}function q(t){return n["a"].get("merchant/type/lst",t)}function E(){return n["a"].get("merchant/mer_auth")}function I(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 W(t){return n["a"].get("merchant/type/mark/".concat(t))}function J(t){return n["a"].get("/merchant/type/detail/".concat(t))}function B(){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 G(t,e){return n["a"].post("system/applyments/status/".concat(t),e)}function H(t){return n["a"].get("system/applyments/detail/".concat(t))}function K(t){return n["a"].get("profitsharing/lst",t)}function Q(t){return n["a"].post("profitsharing/again/".concat(t))}function R(t){return n["a"].get("system/applyments/mark/".concat(t,"/form"))}function X(t){return n["a"].get("profitsharing/export",t)}function Y(t){return n["a"].get("margin/lst",t)}function Z(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"))}},8770: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("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small","label-width":"100px",inline:!0}},[a("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"选择时间:"}},[a("el-radio-group",{attrs:{size:"small"},on:{change:function(e){return t.selectChange(t.tableFrom.date)}},model:{value:t.tableFrom.date,callback:function(e){t.$set(t.tableFrom,"date",e)},expression:"tableFrom.date"}},t._l(t.fromList.fromTxt,(function(e,n){return a("el-radio-button",{key:n,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),a("el-date-picker",{attrs:{type:"daterange",placeholder:"选择日期",format:"yyyy/MM/dd","value-format":"yyyy/MM/dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"状态:"}},[a("el-radio-group",{attrs:{size:"small"},on:{change:function(e){return t.statusChange(t.tableFrom.status)}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},t._l(t.statusList.fromTxt,(function(e,n){return a("el-radio-button",{key:n,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"商户分类:"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.category_id,callback:function(e){t.$set(t.tableFrom,"category_id",e)},expression:"tableFrom.category_id"}},t._l(t.merCateList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"店铺类型:"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.type_id,callback:function(e){t.$set(t.tableFrom,"type_id",e)},expression:"tableFrom.type_id"}},t._l(t.storeType,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"关键字:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商户名称关键字/联系电话"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],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_intention_id",label:"ID","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"mer_name",label:"商户名称","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"category_name",label:"商户分类","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"type_name",label:"店铺类型","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"商户姓名","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"phone",label:"联系方式","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"申请时间","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"资质图片","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"demo-image__preview"},t._l(e.row.images,(function(t,e){return a("el-image",{key:e,staticClass:"mr5",attrs:{src:t,"preview-src-list":[t]}})})),1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"状态","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.status?a("el-tag",{attrs:{type:"success"}},[t._v("通过")]):t._e(),t._v(" "),0==e.row.status?a("el-tag",{attrs:{type:"info"}},[t._v("未处理")]):t._e(),t._v(" "),2==e.row.status?a("el-tag",{attrs:{type:"warning"}},[t._v("未通过")]):t._e(),t._v(" "),2==e.row.status?a("div",[t._v("原因:"+t._s(e.row.fail_msg))]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"mark",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[0==e.row.status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onchangeIsShow(e.row)}}},[t._v("审核")]):t._e(),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row.mer_intention_id)}}},[t._v("备注")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.mer_intention_id)}}},[t._v("删除")])]}}])})],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),t._v(" "),a("el-dialog",{attrs:{title:"修改审核状态",visible:t.statusAuditVisible,width:"60%"},on:{"update:visible":function(e){t.statusAuditVisible=e}}},[a("el-form",{ref:"statusAuditForm",attrs:{model:t.statusAuditForm,"label-width":"120px"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"审核状态:"}},[a("el-select",{attrs:{placeholder:"请选择审核状态"},on:{change:t.statusChange},model:{value:t.statusAuditForm.state,callback:function(e){t.$set(t.statusAuditForm,"state",e)},expression:"statusAuditForm.state"}},[a("el-option",{attrs:{label:"同意",value:1}}),t._v(" "),a("el-option",{attrs:{label:"拒绝",value:2}})],1)],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"自动创建商户:"}},[a("el-radio-group",{on:{change:t.createMerChange},model:{value:t.statusAuditForm.create_mer,callback:function(e){t.$set(t.statusAuditForm,"create_mer",e)},expression:"statusAuditForm.create_mer"}},[a("el-radio",{attrs:{label:1}},[t._v("创建")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("不创建")])],1)],1)],1),t._v(" "),2==t.statusAuditForm.state?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"拒绝原因:",prop:"fail_msg"}},[a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入拒绝原因"},model:{value:t.statusAuditForm.fail_msg,callback:function(e){t.$set(t.statusAuditForm,"fail_msg",e)},expression:"statusAuditForm.fail_msg"}})],1)],1):t._e()],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"申请类型:"}},[a("el-input",{attrs:{readony:"",value:1==t.statusAuditForm.type?"商户入驻申请":"商户开通交易申请"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"商户名称:"}},[a("el-input",{attrs:{readony:"",value:t.statusAuditForm.mer_name}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"商户分类:"}},[a("el-input",{attrs:{readony:"",value:t.statusAuditForm.category_name}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"店铺类型:"}},[a("el-input",{attrs:{readony:"",value:t.statusAuditForm.type_name}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"商户姓名:"}},[a("el-input",{attrs:{readony:"",value:t.statusAuditForm.name}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"联系方式:"}},[a("el-input",{attrs:{readony:"",value:t.statusAuditForm.phone}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"申请时间:"}},[a("el-input",{attrs:{readony:"",value:t.statusAuditForm.create_time}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"法人姓名:"}},[a("el-input",{attrs:{readony:"",value:t.statusAuditForm.name}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"社会代码:"}},[a("el-input",{attrs:{readony:"",value:t.statusAuditForm.social_credit_code}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"公司名称:"}},[a("el-input",{attrs:{readony:"",value:t.statusAuditForm.company_name}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"公司性质:"}},[a("el-input",{attrs:{readony:"",value:1==t.statusAuditForm.is_company?"对公户":"个体户"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"对公账号:"}},[a("el-input",{attrs:{readony:"",value:t.statusAuditForm.bank_code}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"开户银行:"}},[a("el-input",{attrs:{readony:"",value:t.statusAuditForm.bank_username}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"开户网点:"}},[a("el-input",{attrs:{readony:"",value:t.statusAuditForm.bank_opening}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"开户凭证:"}},[a("div",{staticClass:"demo-image__preview"},t._l(t.statusAuditForm.images,(function(t,e){return a("el-image",{key:e,staticClass:"preview",staticStyle:{width:"80px",height:"60px","margin-right":"10px"},attrs:{src:t,"preview-src-list":[t]}})})),1)])],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"备注:"}},[a("el-input",{attrs:{readony:"",value:t.statusAuditForm.mark}})],1)],1)],1)],1),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(e){return t.handleSubmit()}}},[t._v("提交")])],1)],1)],1)},r=[],s=a("ade3"),i=a("8492"),o=(a("c4c8"),a("e572")),u=a("83d6"),l={name:"MerchantApplication",data:function(){return{statusAuditVisible:!1,statusAuditForm:{},props:{emitPath:!1},fromList:o["a"],statusList:o["b"],roterPre:u["roterPre"],isChecked:!1,listLoading:!0,merCateList:[],storeType:[],tableData:{data:[],total:0},tableFrom:{page:1,limit:20,date:"",status:this.$route.query.status?this.$route.query.status:"",keyword:"",mer_intention_id:this.$route.query.id?this.$route.query.id:"",category_id:"",type_id:""},mer_id:this.$route.query.id?this.$route.query.id:"",autoUpdate:!0,timeVal:[]}},watch:{mer_id:function(t,e){this.getList("")}},mounted:function(){this.getMerCategory(),this.getStoreType(),this.getList("")},methods:Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])({selectChange:function(t){this.tableFrom.date=t,this.timeVal=[],this.tableFrom.page=1,this.getList("")},statusChange:function(t){this.tableFrom.status=t,this.tableFrom.page=1,this.getList("")},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=this.timeVal?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList("")},getMerCategory:function(){var t=this;Object(i["k"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},getStoreType:function(){var t=this;Object(i["m"])().then((function(e){t.storeType=e.data})).catch((function(e){t.$message.error(e.message)}))},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(i["q"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).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)},onchangeIsShow:function(t){this.statusAuditVisible=!0,this.statusAuditForm=t,this.$set(this.statusAuditForm,"state",1),this.$set(this.statusAuditForm,"create_mer",1)}},"statusChange",(function(){2==this.statusAuditForm.state?this.statusAuditForm.create_mer=2:this.statusAuditForm.create_mer=1})),"createMerChange",(function(){2==this.statusAuditForm.create_mer?this.statusAuditForm.state=2:this.statusAuditForm.state=1})),"handleSubmit",(function(){var t=this;if(2==this.statusAuditForm.state&&!this.statusAuditForm.fail_msg)return this.$message.warning("请输入拒绝原因");Object(i["bb"])(this.statusAuditForm.mer_intention_id,{status:this.statusAuditForm.state,create_mer:this.statusAuditForm.create_mer,fail_msg:this.statusAuditForm.fail_msg}).then((function(e){t.statusAuditVisible=!1,t.$message.success(e.message),t.getList("")})).catch((function(e){var a=e.message;t.$message.error(a)}))})),"onEdit",(function(t){var e=this;this.$modalForm(Object(i["d"])(t)).then((function(){return e.getList("")}))})),"handleDelete",(function(t){var e=this;this.$deleteSure().then((function(){Object(i["p"])(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)}))}))}))},c=l,m=(a("edda"),a("2877")),d=Object(m["a"])(c,n,r,!1,null,"13059790",null);e["default"]=d.exports},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 s}));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"}]},s={title:"状态",custom:!0,fromTxt:[{text:"全部",val:""},{text:"待审核",val:"0"},{text:"审核已通过",val:"1"},{text:"审核未通过",val:"2"}]}},edda:function(t,e,a){"use strict";a("50eb")}}]);