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-ce826054.85926a54.js

1 lines
20 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ce826054"],{"235c":function(t,e,a){"use strict";a("6f0e")},"396c":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:{display:"inline-block"},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",{staticStyle:{display:"inline-block"},attrs:{label:"关键字:","label-width":"80px"}},[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),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.is_trader,callback:function(e){t.$set(t.tableFrom,"is_trader",e)},expression:"tableFrom.is_trader"}},[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-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(" "),1==t.type?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.is_margin,callback:function(e){t.$set(t.tableFrom,"is_margin",e)},expression:"tableFrom.is_margin"}},[a("el-option",{attrs:{label:"已付",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"未付",value:"0"}})],1)],1):t._e(),t._v(" "),0==t.type?a("el-form-item",{attrs:{label:"审核状态:"}},[a("el-radio-group",{attrs:{type:"button"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},[a("el-radio-button",{attrs:{label:""}},[t._v("全部")]),t._v(" "),a("el-radio-button",{attrs:{label:"0"}},[t._v("待审核")]),t._v(" "),a("el-radio-button",{attrs:{label:"1"}},[t._v("已审核")]),t._v(" "),a("el-radio-button",{attrs:{label:"-1"}},[t._v("审核失败")])],1)],1):t._e(),t._v(" "),0==t.type?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.is_margin,callback:function(e){t.$set(t.tableFrom,"is_margin",e)},expression:"tableFrom.is_margin"}},[a("el-option",{attrs:{label:"未退回",value:"0"}}),t._v(" "),a("el-option",{attrs:{label:"已退回",value:"1"}})],1)],1):t._e(),t._v(" "),t.headeNum.length>0?a("el-tabs",{on:{"tab-click":function(e){return t.getList(1)}},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},t._l(t.headeNum,(function(t,e){return a("el-tab-pane",{key:e,attrs:{name:t.type.toString(),label:t.title}})})),1):t._e()],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:1==t.type?"order_id":"financial_id",label:"ID","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"merchant.mer_name",label:"商户名称","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"店铺类型","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"spBlock"},[t._v(t._s(e.row.merchant&&e.row.merchant.merchantType&&e.row.merchant.merchantType.type_name?e.row.merchant.merchantType.type_name:""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"merchant.real_name",label:"商户姓名","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:0==t.type?"merchant.margin":"pay_price",label:"保证金额度","min-width":"200"}}),t._v(" "),1==t.type?a("el-table-column",{key:"4",attrs:{label:"状态","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(1==e.row.status?"支付成功":-1==e.row.status?"支付失败":"已退款"))])]}}],null,!1,918241564)}):t._e(),t._v(" "),0==t.type?a("el-table-column",{key:"3",attrs:{label:"保证金申请状态","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(0==e.row.status?"待审核":1==e.row.status?"审核通过":"审核未通过"))]),t._v(" "),-1==e.row.status?a("span",{staticStyle:{display:"block","font-size":"12px",color:"red"}},[t._v("原因: "+t._s(e.row.refusal))]):t._e()]}}],null,!1,2898510314)}):t._e(),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:0==t.type?"申请时间":"支付时间","min-width":"150"}}),t._v(" "),0==t.type?a("el-table-column",{key:"1",attrs:{prop:"merchant.margin",label:"结余保证金","min-width":"150"}}):t._e(),t._v(" "),0==t.type?a("el-table-column",{key:"2",attrs:{prop:"mer_name",label:"退回状态","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(0==e.row.financial_status?"未退":"已退"))])]}}],null,!1,1759500841)}):t._e(),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==t.type?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleRemark(e.row.financial_id)}}},[t._v("备注")]):t._e(),t._v(" "),0==e.row.status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleAudit(e.row.financial_id)}}},[t._v("审核")]):t._e(),t._v(" "),1==t.type?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDeduction(e.row.mer_id)}}},[t._v("保证金扣费")]):t._e(),t._v(" "),1==e.row.status&&1==e.row.financial_status&&0==t.type?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleInfo(e.row.financial_id)}}},[t._v("退回信息")]):t._e(),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleRecord(e.row.mer_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:t.isReturn?"退回保证金":"退回信息",visible:t.dialogVisible,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"container"},[a("div",{staticClass:"label_item"},[a("span",{staticClass:"label_title"},[t._v("商户名称: "+t._s(t.marginData.merchant.mer_name))])]),t._v(" "),a("div",{staticClass:"label_item"},[a("span",{staticClass:"label_title"},[t._v("商户ID: "+t._s(t.marginData.merchant.mer_id))])]),t._v(" "),a("div",{staticClass:"label_item"},[a("span",{staticClass:"label_title"},[t._v("店铺类型:\n "+t._s(t.marginData.merchant.merchantType&&t.marginData.merchant.merchantType.type_name))])]),t._v(" "),a("div",{staticClass:"label_item"},[a("span",{staticClass:"label_title"},[t._v("保证金缴纳额度:\n "+t._s(t.marginData.financial_account.pay_price)+"元")])]),t._v(" "),a("div",{staticClass:"label_item"},[a("span",{staticClass:"label_title"},[t._v("扣费金额:\n "+t._s(t.marginData.financial_account.pay_price-t.marginData.merchant.margin)+"元")])]),t._v(" "),a("div",{staticClass:"label_item"},[a("span",{staticClass:"label_title"},[t._v("应退回保证金: "+t._s(t.marginData.merchant.margin)+"元")])]),t._v(" "),a("div",{staticClass:"label_item"},[a("span",{staticClass:"label_title"},[t._v("审核状态:\n "+t._s(1==t.marginData.financial_status?"已审核":"待审核"))])]),t._v(" "),a("div",{staticClass:"label_item"},[a("span",{staticClass:"label_title"},[t._v("审核时间: "+t._s(t.marginData.status_time))])])])]),t._v(" "),t.modalRecord?a("el-dialog",{staticClass:"mapBox",attrs:{visible:t.modalRecord,title:"扣费记录",width:"700px","close-on-click-modal":"","custom-class":"dialog-scustom"},on:{"update:visible":function(e){t.modalRecord=e}}},[a("el-table",{attrs:{data:t.recordData.data,loading:t.recordLoading}},[a("el-table-column",{attrs:{label:"序号","min-width":"60"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.recordFrom.page-1)*t.recordFrom.limit+1))])]}}],null,!1,4108076568)}),t._v(" "),a("el-table-column",{attrs:{label:"扣费原因","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.mark))])]}}],null,!1,3714193555)}),t._v(" "),a("el-table-column",{attrs:{prop:"number",label:"扣费金额","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"操作时间","min-width":"200"}})],1),t._v(" "),a("div",{staticClass:"acea-row row-right page"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.recordFrom.limit,"current-page":t.recordFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.recordData.total},on:{"size-change":t.handleSizeChanges,"current-change":t.pageChanges}})],1)],1):t._e()],1)},r=[],i=a("8492"),o=a("e572"),l=a("83d6"),c=(a("bbcc"),a("a78e"),{name:"MerchantList",data:function(){return{fromList:o["a"],roterPre:l["roterPre"],isChecked:!1,listLoading:!0,recordLoading:!0,merCateList:[],storeType:[],dialogVisible:!1,modalRecord:!1,formValidate:{},isReturn:!1,type:"1",headeNum:[{count:"",type:"1",title:"缴存保证金"},{count:"",type:"0",title:"退回保证金"}],tableData:{data:[],total:0},recordData:{data:[],total:0},tableFrom:{page:1,limit:20,date:"",status:"",keyword:"",is_trader:"",category_id:"",type_id:""},recordFrom:{page:1,limit:20},autoUpdate:!0,timeVal:[],marginData:{merchant:{},financial_account:{}}}},mounted:function(){this.getMerCategory(),this.getStoreType(),this.getList("")},methods:{selectChange:function(t){this.tableFrom.date=t,this.timeVal=[],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,1==this.type?Object(i["v"])(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)})):Object(i["x"])(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)},pageChanges:function(t){this.recordFrom.page=t,this.getRecordList()},handleSizeChanges:function(t){this.recordFrom.limit=t,this.getRecordList()},getRecordList:function(t){var e=this;this.recordLoading=!0,Object(i["u"])(t,this.recordFrom).then((function(t){e.recordData.data=t.data.list,e.recordData.total=t.data.count,e.recordLoading=!1})).catch((function(t){e.recordLoading=!1,e.$message.error(t.message)}))},handleAudit:function(t){var e=this;this.$modalForm(Object(i["z"])(t)).then((function(){return e.getList("")}))},handleRemark:function(t){var e=this;this.$modalForm(Object(i["y"])(t)).then((function(){return e.getList("")}))},handleDeduction:function(t){var e=this;this.$modalForm(Object(i["t"])(t)).then((function(){return e.getList("")}))},handleInfo:function(t){var e=this;this.dialogVisible=!0,Object(i["w"])(t).then((function(t){e.marginData=t.data,e.marginData.merchant=t.data.merchant})).catch((function(t){e.$message.error(t.message)}))},handleRecord:function(t){this.modalRecord=!0,this.recordFrom.page=1,this.getRecordList(t)},handleClose:function(){this.dialogVisible=!1}}}),s=c,u=(a("235c"),a("2877")),m=Object(u["a"])(s,n,r,!1,null,"3ac6e04b",null);e["default"]=m.exports},"6f0e":function(t,e,a){},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 c})),a.d(e,"C",(function(){return s})),a.d(e,"P",(function(){return u})),a.d(e,"D",(function(){return m})),a.d(e,"M",(function(){return d})),a.d(e,"L",(function(){return f})),a.d(e,"g",(function(){return h})),a.d(e,"e",(function(){return p})),a.d(e,"h",(function(){return g})),a.d(e,"f",(function(){return b})),a.d(e,"A",(function(){return _})),a.d(e,"Q",(function(){return v})),a.d(e,"T",(function(){return y})),a.d(e,"S",(function(){return k})),a.d(e,"R",(function(){return w})),a.d(e,"G",(function(){return C})),a.d(e,"q",(function(){return F})),a.d(e,"d",(function(){return x})),a.d(e,"p",(function(){return L})),a.d(e,"r",(function(){return D})),a.d(e,"i",(function(){return z})),a.d(e,"n",(function(){return S})),a.d(e,"o",(function(){return $})),a.d(e,"l",(function(){return T})),a.d(e,"bb",(function(){return R})),a.d(e,"E",(function(){return V})),a.d(e,"B",(function(){return j})),a.d(e,"X",(function(){return O})),a.d(e,"Z",(function(){return M})),a.d(e,"W",(function(){return W})),a.d(e,"ab",(function(){return I})),a.d(e,"Y",(function(){return N})),a.d(e,"O",(function(){return B})),a.d(e,"N",(function(){return A})),a.d(e,"m",(function(){return E})),a.d(e,"k",(function(){return J})),a.d(e,"j",(function(){return P})),a.d(e,"c",(function(){return U})),a.d(e,"a",(function(){return q})),a.d(e,"b",(function(){return G})),a.d(e,"U",(function(){return H})),a.d(e,"V",(function(){return K})),a.d(e,"s",(function(){return Q})),a.d(e,"v",(function(){return X})),a.d(e,"x",(function(){return Y})),a.d(e,"z",(function(){return Z})),a.d(e,"y",(function(){return tt})),a.d(e,"w",(function(){return et})),a.d(e,"u",(function(){return at})),a.d(e,"t",(function(){return nt}));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 c(t){return n["a"].get("system/merchant/lst",t)}function s(){return n["a"].get("system/merchant/create/form")}function u(t){return n["a"].get("system/merchant/update/form/".concat(t))}function m(t){return n["a"].delete("system/merchant/delete/".concat(t))}function d(t,e){return n["a"].post("system/merchant/status/".concat(t),{status:e})}function f(t){return n["a"].get("system/merchant/password/form/".concat(t))}function h(t){return n["a"].get("system/merchant/category/lst",t)}function p(){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 _(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 y(t,e){return n["a"].get("merchant/order/refund/lst/".concat(t),e)}function k(t){return n["a"].get("merchant/order/refund/mark/".concat(t,"/form"))}function w(t,e){return n["a"].post("merchant/order/reconciliation/create/".concat(t),e)}function C(t){return n["a"].post("system/merchant/login/".concat(t))}function F(t){return n["a"].get("merchant/intention/lst",t)}function x(t){return n["a"].get("merchant/intention/mark/".concat(t,"/form"))}function L(t){return n["a"].delete("merchant/intention/delete/".concat(t))}function D(t){return n["a"].get("merchant/intention/status/".concat(t,"/form"))}function z(t){return n["a"].get("system/merchant/changecopy/".concat(t,"/form"))}function S(){return n["a"].get("agreement/sys_intention_agree")}function $(t){return n["a"].post("agreement/sys_intention_agree",t)}function T(t){return n["a"].get("agreement/".concat(t))}function R(t,e){return n["a"].post("agreement/".concat(t),e)}function V(t,e){return n["a"].post("system/merchant/close/".concat(t),{status:e})}function j(){return n["a"].get("system/merchant/count")}function O(t){return n["a"].post("merchant/type/create",t)}function M(t){return n["a"].get("merchant/type/lst",t)}function W(){return n["a"].get("merchant/mer_auth")}function I(t,e){return n["a"].post("merchant/type/update/".concat(t),e)}function N(t){return n["a"].delete("merchant/type/delete/".concat(t))}function B(t){return n["a"].get("merchant/type/mark/".concat(t))}function A(t){return n["a"].get("/merchant/type/detail/".concat(t))}function E(){return n["a"].get("merchant/type/options")}function J(){return n["a"].get("system/merchant/category/options")}function P(t){return n["a"].get("system/applyments/lst",t)}function U(t,e){return n["a"].post("system/applyments/status/".concat(t),e)}function q(t){return n["a"].get("system/applyments/detail/".concat(t))}function G(t){return n["a"].get("profitsharing/lst",t)}function H(t){return n["a"].post("profitsharing/again/".concat(t))}function K(t){return n["a"].get("system/applyments/mark/".concat(t,"/form"))}function Q(t){return n["a"].get("profitsharing/export",t)}function X(t){return n["a"].get("margin/lst",t)}function Y(t){return n["a"].get("margin/refund/lst",t)}function Z(t){return n["a"].get("margin/refund/status/".concat(t,"/form"))}function tt(t){return n["a"].get("margin/refund/mark/".concat(t,"/form"))}function et(t){return n["a"].get("margin/refund/show/".concat(t))}function at(t,e){return n["a"].get("margin/list/".concat(t),e)}function nt(t){return n["a"].get("margin/set/".concat(t,"/form"))}},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"}]}}}]);