1 line
32 KiB
JavaScript
1 line
32 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0256ca15"],{"3ae5":function(a,e,t){"use strict";t.r(e);var i=function(){var a=this,e=a.$createElement,i=a._self._c||e;return i("div",{staticClass:"information"},[a.tabList.length>0?i("el-tabs",{model:{value:a.infoType,callback:function(e){a.infoType=e},expression:"infoType"}},a._l(a.tabList,(function(a,e){return i("el-tab-pane",{key:e,attrs:{name:a.value,label:a.title}})})),1):a._e(),a._v(" "),a.merModel?i("div",{staticClass:"business-msg",staticStyle:{"min-height":"600px"}},["1"==a.infoType?i("div",{staticClass:"user-msg"},[i("div",{staticClass:"basic-information"},[i("span",{staticClass:"basic-label"},[a._v("商户名称:")]),a._v("\n "+a._s(a.merData.mer_name)+"\n ")]),a._v(" "),i("div",{staticClass:"basic-information"},[i("span",{staticClass:"basic-label"},[a._v("商户负责人手机号:")]),a._v("\n "+a._s(a.merData.mer_phone)+"\n ")]),a._v(" "),a.merData.merchantCategory.category_name?i("div",{staticClass:"basic-information"},[i("span",{staticClass:"basic-label"},[a._v("商户分类:")]),a._v("\n "+a._s(a.merData.merchantCategory.category_name||"")+"\n ")]):a._e(),a._v(" "),a.merData.merchantType?i("div",{staticClass:"basic-information"},[i("span",{staticClass:"basic-label"},[a._v(" 商户类型:")]),a._v("\n "+a._s(a.merData.merchantType.type_name)+"\n ")]):a._e(),a._v(" "),a.merData.merchantCategory.category_name?i("div",{staticClass:"basic-information"},[i("span",{staticClass:"basic-label"},[a._v(" 商户类别:")]),a._v("\n "+a._s(a.merData.is_trader?"自营":"非自营")+"\n ")]):a._e(),a._v(" "),i("div",{staticClass:"basic-information"},[i("span",{staticClass:"basic-label"},[a._v(" 商户负责人姓名:")]),a._v("\n "+a._s(a.merData.real_name)+"\n ")]),a._v(" "),i("div",{staticClass:"basic-information"},[i("span",{staticClass:"basic-label"},[a._v(" 商户入驻时间:")]),a._v("\n "+a._s(a.merData.create_time)+"\n ")]),a._v(" "),a.merData.sub_mchid?i("div",{staticClass:"basic-information"},[i("span",{staticClass:"basic-label"},[a._v(" 商户入驻时间:")]),a._v("\n "+a._s(a.merData.create_time)+"\n ")]):a._e(),a._v(" "),a.merData.sub_mchid&&a.merData.merchantType?i("div",{staticClass:"basic-information"},[i("span",{staticClass:"basic-label"},[a._v(" 店铺类型:")]),a._v("\n "+a._s(a.merData.merchantType.type_name)+"\n ")]):a._e(),a._v(" "),i("div",{staticClass:"basic-information"},[i("div",[i("span",{staticClass:"basic-label"},[a._v("是否开启商户:")]),a._v(" "),1==a.merData.is_margin&&0==a.merData.mer_state?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"请先支付店铺保证金!",placement:"top-start"}},[i("el-switch",{attrs:{disabled:"",width:55,"active-text":"开启","inactive-text":"关闭","active-value":1,"inactive-value":0},model:{value:a.merData.mer_state,callback:function(e){a.$set(a.merData,"mer_state",e)},expression:"merData.mer_state"}})],1):i("el-switch",{attrs:{"active-text":"开启","inactive-text":"关闭","active-value":1,"inactive-value":0,width:55},model:{value:a.merData.mer_state,callback:function(e){a.$set(a.merData,"mer_state",e)},expression:"merData.mer_state"}}),a._v(" "),i("span",{staticClass:"trip"},[a._v("开启,店铺即可展示在移动端")])],1)]),a._v(" "),i("div",{staticClass:"basic-information"},[0!=a.merData.is_margin?i("div",[1==a.merData.is_margin?i("div",[i("span",{staticClass:"basic-label"},[a._v("店铺保证金:")]),a._v(" "),i("span",{staticClass:"font_red"},[a._v(a._s(a.merData.margin)+"元")]),a._v(" "),i("div",{staticClass:"margin_count",on:{mouseenter:function(e){return a.getCode()}}},[i("el-button",{staticClass:"mr10 pay_btn",attrs:{type:"text",size:"small"}},[a._v("去支付保证金")]),a._v(" "),i("div",{staticClass:"erweima"},[i("div",{staticClass:"pay_title"},[a._v("支付保证金")]),a._v(" "),i("div",[i("vue-qr",{staticClass:"bicode",attrs:{text:a.qrCode,size:310}}),a._v(" "),i("div",{staticClass:"pay_type"},[a._v("请使用微信扫码支付")]),a._v(" "),i("div",{staticClass:"pay_price"},[a._v("¥"+a._s(a.marginPrice)+"元")]),a._v(" "),i("div",{staticClass:"pay_time"},[a._v("支付码过期时间: "+a._s(a.qrEndTime))])],1)])],1)]):a._e(),a._v(" "),10==a.merData.is_margin?i("div",{staticClass:"margin_main"},[i("span",{staticClass:"basic-label"},[a._v("店铺保证金:")]),a._v(" "),i("span",{staticClass:"margin_price"},[a._v(a._s(a.merData.margin)+"元")]),a._v(" "),i("div",{staticClass:"margin_count"},[i("span",{staticClass:"mr10 spanBtn",on:{click:a.viewRecords}},[a._v("查看保证金记录")]),a._v(" "),i("div",{staticClass:"margin_modal",on:{mouseleave:function(e){a.supplyPay=!1}}},[i("div",[i("img",{attrs:{src:t("4751")}}),a._v(" "),i("div",{staticClass:"alic"},[i("span",{staticClass:"text_g"},[a._v("剩余保证金¥"+a._s(a.merData.margin)+"元")]),a._v(" "),a.merData.margin>0?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:a.applyReturn}},[a._v("申请退回保证金")]):a._e()],1)])])]),a._v(" "),a.merData.marginStatus?i("div",{staticStyle:{display:"inline-block"}},[i("div",{staticClass:"margin_count",on:{mouseenter:function(e){return a.getCode()}}},[i("el-button",{staticClass:"mr10 pay_btn",attrs:{type:"text",size:"small"}},[a._v("去补缴保证金")]),a._v(" "),i("div",{staticClass:"erweima"},[i("div",{staticClass:"pay_title"},[a._v("支付保证金")]),a._v(" "),i("div",[i("vue-qr",{staticClass:"bicode",attrs:{text:a.qrCode,size:310}}),a._v(" "),i("div",{staticClass:"pay_type"},[a._v("请使用微信扫码支付")]),a._v(" "),i("div",{staticClass:"pay_price"},[a._v("¥"+a._s(a.marginPrice)+"元")]),a._v(" "),i("div",{staticClass:"pay_time"},[a._v("支付码过期时间: "+a._s(a.qrEndTime))])],1)])],1)]):a._e()]):a._e(),a._v(" "),-10==a.merData.is_margin||-1==a.merData.is_margin?i("div",{staticClass:"margin_main"},[i("span",{staticClass:"basic-label"},[a._v("店铺保证金:")]),a._v(" "),i("span",{staticClass:"margin_price"},[a._v(a._s(a.merData.margin)+"元")]),a._v(" "),i("div",{staticClass:"margin_count"},[i("span",{staticClass:"mr10 spanBtn",on:{click:a.viewRecords}},[a._v("查看保证金记录")]),a._v(" "),i("div",{staticClass:"margin_modal",on:{mouseleave:function(e){a.goPay=!1}}},[i("div",[-10==a.merData.is_margin?i("img",{attrs:{src:t("e4ef")}}):a._e(),a._v(" "),-1==a.merData.is_margin?i("img",{attrs:{src:t("7a01")}}):a._e(),a._v(" "),10==a.merData.is_margin?i("img",{attrs:{src:t("4751")}}):a._e(),a._v(" "),10==a.merData.is_margin?i("div",{staticClass:"alic"},[i("span",{staticClass:"text_g"},[a._v("剩余保证金¥"+a._s(a.merData.margin)+"元")]),a._v(" "),a.merData.margin>0?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:a.applyReturn}},[a._v("申请退回保证金")]):a._e()],1):a._e(),a._v(" "),-1==a.merData.is_margin?i("div",{staticClass:"alic"},[i("span",{staticClass:"text_b b01"},[a._v(" 审核中")]),a._v(" "),i("div",{staticClass:"margin_refused"},[a._v("您申请退回保证金,正在审核中…")])]):a._e(),a._v(" "),-10==a.merData.is_margin?i("div",{staticClass:"alic"},[i("span",{staticClass:"text_b b02"},[a._v("审核未通过")]),a._v(" "),i("div",{staticClass:"margin_refused"},[a._v("未通过原因:"),i("span",[a._v(a._s(a.merData.refundMarginOrder.refusal))])]),a._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:a.applyReturn}},[a._v("再次申请")])],1):a._e()])])])]):a._e()]):a._e()])]):a._e(),a._v(" "),a.modalBank?i("el-dialog",{attrs:{visible:a.modalBank,title:"申请退回保证金",width:"600px","close-on-click-modal":"","custom-class":"dialog-scustom"},on:{"update:visible":function(e){a.modalBank=e}},model:{value:a.modalBank,callback:function(e){a.modalBank=e},expression:"modalBank"}},[i("div",{staticClass:"bank-container"},[i("div",{staticClass:"item"},[a._v("说明: "),i("span",{staticClass:"red"},[a._v("申请退回保证金则视为关闭店铺,请谨慎操作!")])]),a._v(" "),i("div",{staticClass:"item"},[a.online>0?i("div",[a._v("线上支付的保证金 "),i("span",{staticClass:"red"},[a._v(a._s(a.online)+"元")]),a._v("会原路返回")]):a._e(),a._v(" "),a.offline>0?i("div",[a._v("\n 线下支付的保证金"),i("span",{staticClass:"red"},[a._v(a._s(a.offline)+"元,")]),a._v("会通过下方账号信息返回,请务必确认下方您的收款信息真实有效,以确保资金可顺利退回,感谢配合!\n ")]):a._e()]),a._v(" "),i("div",{staticClass:"title"},[a._v("账号信息:")]),a._v(" "),i("el-form",{ref:"bankValidate",attrs:{model:a.bankValidate,rules:a.bankRules,"label-width":"100px"},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"真实姓名:",prop:"name"}},[i("el-input",{attrs:{type:"text",placeholder:"请输入真实姓名"},model:{value:a.bankValidate.name,callback:function(e){a.$set(a.bankValidate,"name",e)},expression:"bankValidate.name"}})],1),a._v(" "),i("el-form-item",{attrs:{label:"开户银行:",prop:"code"}},[i("el-input",{attrs:{type:"text",placeholder:"请输入开户银行"},model:{value:a.bankValidate.code,callback:function(e){a.$set(a.bankValidate,"code",e)},expression:"bankValidate.code"}})],1),a._v(" "),1==a.bankValidate.type?i("el-form-item",{attrs:{label:"银行卡号:",prop:"pic"}},[i("el-input",{attrs:{type:"number",placeholder:"请输入银行卡号"},model:{value:a.bankValidate.pic,callback:function(e){a.$set(a.bankValidate,"pic",e)},expression:"bankValidate.pic"}})],1):a._e(),a._v(" "),2==a.bankValidate.type?i("el-form-item",{attrs:{label:"收款二维码:"}},[a.bankValidate.pic?i("img",{staticStyle:{width:"120px",height:"120px"},attrs:{src:a.bankValidate.pic}}):i("div",{staticClass:"red"},[a._v("\n 请前往财务-收款方式页面填写收款信息\n ")])]):a._e()],1)],1),a._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return a.bankConfirm("bankValidate")}}},[a._v("确定")])],1)]):a._e(),a._v(" "),"2"==a.infoType?i("div",{staticClass:"business-msg"},[i("div",{staticClass:"form-data"},[i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:a.merData,rules:a.rules,"label-width":"150px"}},[i("el-form-item",{staticClass:"form-item",attrs:{label:"店铺背景图:",prop:"mer_banner"}},[i("div",{staticClass:"upLoadPicBox",on:{click:function(e){return a.modalPicTap("1")}}},[a.merData.mer_banner?i("div",{staticClass:"pictrue"},[i("img",{attrs:{src:a.merData.mer_banner}})]):i("div",{staticClass:"upLoad"},[i("i",{staticClass:"el-icon-camera cameraIconfont"})]),a._v(" "),i("div",{staticClass:"trip"},[a._v("建议尺寸:710*200px")])])]),a._v(" "),i("el-form-item",{staticClass:"form-item",attrs:{label:"店铺头像:",prop:"mer_avatar"}},[i("div",{staticClass:"upLoadPicBox",on:{click:function(e){return a.modalPicTap("2")}}},[a.merData.mer_avatar?i("div",{staticClass:"pictrue"},[i("img",{attrs:{src:a.merData.mer_avatar}})]):i("div",{staticClass:"upLoad"},[i("i",{staticClass:"el-icon-camera cameraIconfont"})]),a._v(" "),i("div",{staticClass:"trip"},[a._v("建议尺寸:120*120px")])])]),a._v(" "),i("el-form-item",{staticClass:"form-item",attrs:{label:"店铺街背景图:"}},[i("div",{staticClass:"upLoadPicBox",on:{click:function(e){return a.modalPicTap("3")}}},[a.merData.mini_banner?i("div",{staticClass:"pictrue"},[i("img",{attrs:{src:a.merData.mini_banner}})]):i("div",{staticClass:"upLoad"},[i("i",{staticClass:"el-icon-camera cameraIconfont"})]),a._v(" "),i("div",{staticClass:"trip"},[a._v("建议尺寸:710*134px或710*460px(请根据平台要求选择尺寸,此图如未上传默认展示店铺背景图)")])])]),a._v(" "),i("el-form-item",{staticClass:"form-item",attrs:{label:"店铺资质:",prop:1==a.merData.sys_bases_status?"uploadedqualifications":""}},[i("div",{staticClass:"upLoadPicBox_qualification"},[a._l(a.uploadedQualifications,(function(e,t){return i("div",{key:t,staticClass:"uploadpicBox_list"},[i("div",{staticClass:"uploadpicBox_list_image"},[i("el-image",{ref:"elImage",refInFor:!0,attrs:{src:e.url,"preview-src-list":[e.url]}})],1),a._v(" "),i("div",{staticClass:"uploadpicBox_list_method"},[i("i",{staticClass:"el-icon-delete",on:{click:function(e){return a.deldetQualificationsList(t)}}}),a._v(" "),i("i",{staticClass:"el-icon-view",on:{click:function(i){return a.viewImage(e,t)}}})])])})),a._v(" "),i("el-upload",{attrs:{action:a.fileUrl,"show-file-list":!1,"list-type":"picture-card",multiple:"",headers:a.myHeaders,"on-success":a.setQualificationsList,"before-upload":a.beforeUploadQualification}},[i("i",{staticClass:"el-icon-plus"})])],2)]),a._v(" "),i("el-form-item",{attrs:{label:"配送方式:",prop:"delivery_way"}},[i("el-checkbox-group",{model:{value:a.merData.delivery_way,callback:function(e){a.$set(a.merData,"delivery_way",e)},expression:"merData.delivery_way"}},a._l(a.deliveryList,(function(e){return i("el-checkbox",{key:e.value,attrs:{label:e.value}},[a._v("\n "+a._s(e.name)+"\n ")])})),1),a._v(" "),i("span",{staticClass:"trip"},[a._v("只选择一种配送方式时,会自动修改店铺所有商品的配送方式")])],1),a._v(" "),1==a.merData.delivery_way.length&&"1"==a.merData.delivery_way[0]||2==a.merData.delivery_way.length?i("el-row",{attrs:{gutter:24}},[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"提货点名称:",prop:"mer_take_name"}},[i("el-input",{attrs:{maxlength:"30",placeholder:"请输入提货点名称"},model:{value:a.merData.mer_take_name,callback:function(e){a.$set(a.merData,"mer_take_name",e)},expression:"merData.mer_take_name"}})],1)],1),a._v(" "),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"提货点电话:",prop:"mer_take_phone"}},[i("el-input",{attrs:{placeholder:"请输入提货点电话"},model:{value:a.merData.mer_take_phone,callback:function(e){a.$set(a.merData,"mer_take_phone",e)},expression:"merData.mer_take_phone"}})],1)],1)],1):a._e(),a._v(" "),1==a.merData.delivery_way.length&&"1"==a.merData.delivery_way[0]||2==a.merData.delivery_way.length?i("el-row",[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"详细地址:",prop:"mer_take_address"}},[i("el-input",{attrs:{placeholder:"请输入详细地址"},model:{value:a.merData.mer_take_address,callback:function(e){a.$set(a.merData,"mer_take_address",e)},expression:"merData.mer_take_address"}},[i("el-button",{attrs:{slot:"append"},on:{click:a.onSearchs},slot:"append"},[a._v("查找位置")])],1)],1)],1),a._v(" "),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"经纬度:",prop:"mer_take_location"}},[i("el-input",{attrs:{"enter-button":"查找位置",placeholder:"请查找位置",readonly:""},model:{value:a.merData.mer_take_location,callback:function(e){a.$set(a.merData,"mer_take_location",e)},expression:"merData.mer_take_location"}}),a._v(" "),i("div",{attrs:{slot:"content"},slot:"content"},[a._v("请点击查找位置选择位置")])],1)],1)],1):a._e(),a._v(" "),1==a.merData.delivery_way.length&&"1"==a.merData.delivery_way[0]||2==a.merData.delivery_way.length?i("el-row",[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"提货点营业日期:",prop:"mer_take_day"}},[i("el-select",{attrs:{filterable:"",multiple:"",placeholder:"请选择营业时间"},model:{value:a.merData.mer_take_day,callback:function(e){a.$set(a.merData,"mer_take_day",e)},expression:"merData.mer_take_day"}},a._l(a.date,(function(a){return i("el-option",{key:a.date_id,attrs:{label:a.date_name,value:a.date_id}})})),1)],1)],1),a._v(" "),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"提货点营业时间:",required:""}},[i("el-time-picker",{attrs:{placeholder:"开始时间","value-format":"HH:mm"},on:{change:a.onchangeTime1},model:{value:a.value1,callback:function(e){a.value1=e},expression:"value1"}}),a._v(" "),i("el-time-picker",{attrs:{placeholder:"结束时间","value-format":"HH:mm"},on:{change:a.onchangeTime2},model:{value:a.value2,callback:function(e){a.value2=e},expression:"value2"}})],1)],1)],1):a._e(),a._v(" "),i("el-row",[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"商户简介:",prop:"mer_info"}},[i("el-input",{attrs:{type:"textarea",placeholder:"文字简介,200字以内"},model:{value:a.merData.mer_info,callback:function(e){a.$set(a.merData,"mer_info",e)},expression:"merData.mer_info"}})],1)],1),a._v(" "),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"商户关键字:",prop:"mer_keyword"}},[i("div",{staticClass:"tip-form"},[i("el-input",{staticClass:"pageWidth",attrs:{placeholder:"用户在搜索该关键字时,可搜索到本店铺"},model:{value:a.merData.mer_keyword,callback:function(e){a.$set(a.merData,"mer_keyword",e)},expression:"merData.mer_keyword"}})],1)]),a._v(" "),i("el-form-item",{attrs:{label:"联系客服方式:"}},[i("el-radio-group",{model:{value:a.merData.services_type,callback:function(e){a.$set(a.merData,"services_type",e)},expression:"merData.services_type"}},[i("el-radio",{staticClass:"radio",attrs:{label:0}},[a._v("线上客服")]),a._v(" "),i("el-radio",{attrs:{label:1}},[a._v("拨打电话")])],1)],1),a._v(" "),i("el-form-item",{attrs:{label:"客服电话:"}},[i("el-input",{attrs:{type:"number"},model:{value:a.merData.service_phone,callback:function(e){a.$set(a.merData,"service_phone",e)},expression:"merData.service_phone"}})],1)],1)],1),a._v(" "),i("el-row",[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"商户地址:",prop:"mer_address"}},[i("el-input",{attrs:{"enter-button":"查找位置",placeholder:"请输入商户地址(地址中请包含城市名称,否则会影响搜索精度)"},model:{value:a.merData.mer_address,callback:function(e){a.$set(a.merData,"mer_address",e)},expression:"merData.mer_address"}},[i("el-button",{attrs:{slot:"append",type:"primary"},on:{click:a.onSearch},slot:"append"},[a._v("查找位置")])],1)],1)],1)],1),a._v(" "),i("div",{staticStyle:{width:"460px","margin-left":"150px"}},[a.mapKey?i("Maps",{ref:"mapChild",staticClass:"map-sty",attrs:{"map-key":a.mapKey,lat:Number(a.merData.lat||34.34127),lon:Number(a.merData.long||108.93984),address:a.merData.mer_address},on:{getCoordinates:a.getCoordinates}}):a._e()],1),a._v(" "),i("el-form-item")],1)],1)]):a._e(),a._v(" "),"3"==a.infoType?i("div",{staticClass:"user-msg"},[i("div",{staticClass:"basic-information"},[i("span",{staticClass:"basic-label"},[a._v(" 商户手续费:")]),a._v("\n "+a._s(Number(a.merData.commission_rate)>0?parseFloat(a.merData.commission_rate).toFixed(2):parseFloat(100*a.merData.merchantCategory.commission_rate).toFixed(2))+"%\n ")]),a._v(" "),i("div",{staticClass:"basic-information"},[i("span",{staticClass:"basic-label"},[a._v(" 添加商品:")]),a._v("\n "+a._s(a.merData.is_audit?"需平台审核":"平台免审核")+"\n ")]),a._v(" "),i("div",{staticClass:"basic-information"},[i("span",{staticClass:"basic-label"},[a._v(" 开启直播间:")]),a._v("\n "+a._s(a.merData.is_bro_room?"需平台审核":"平台免审核")+"\n ")]),a._v(" "),i("div",{staticClass:"basic-information"},[i("span",{staticClass:"basic-label"},[a._v(" 添加直播商品:")]),a._v("\n "+a._s(a.merData.is_bro_goods?"需平台审核":"平台免审核")+"\n ")]),a._v(" "),i("div",{staticClass:"basic-information"},[i("span",{staticClass:"basic-label"},[a._v(" 平台首页推荐商户:")]),a._v("\n "+a._s(a.merData.is_best?"是":"否")+"\n ")])]):a._e(),a._v(" "),3!=a.infoType?i("div",{staticClass:"submit-button"},[i("el-button",{attrs:{type:"primary",loading:a.submitLoading},on:{click:function(e){return a.submitForm("ruleForm")}}},[a._v("提交")])],1):a._e()],1):a._e(),a._v(" "),a.modalMap?i("el-dialog",{staticClass:"mapBox",attrs:{visible:a.modalMap,title:"选择位置","close-on-click-modal":"","custom-class":"dialog-scustom"},on:{"update:visible":function(e){a.modalMap=e}},model:{value:a.modalMap,callback:function(e){a.modalMap=e},expression:"modalMap"}},[i("iframe",{attrs:{id:"mapPage",width:"100%",height:"500px",frameborder:"0",src:a.keyUrl}})]):a._e(),a._v(" "),a.modalRecord?i("el-dialog",{staticClass:"mapBox",attrs:{visible:a.modalRecord,title:"操作记录",width:"800px","close-on-click-modal":"","custom-class":"dialog-scustom"},on:{"update:visible":function(e){a.modalRecord=e}}},[i("el-table",{attrs:{data:a.tableData.data,loading:a.loading,size:"small"}},[i("el-table-column",{attrs:{label:"序号","min-width":"50"},scopedSlots:a._u([{key:"default",fn:function(e){return[i("span",[a._v(a._s(e.$index+(a.tableFrom.page-1)*a.tableFrom.limit+1))])]}}],null,!1,2611860760)}),a._v(" "),i("el-table-column",{attrs:{label:"标题","min-width":"90",prop:"title"}}),a._v(" "),i("el-table-column",{attrs:{prop:"number",label:"金额","min-width":"60"},scopedSlots:a._u([{key:"default",fn:function(e){return[1==e.row.pm?i("span",{staticStyle:{color:"#13ce66"}},[a._v("+"+a._s(e.row.number))]):i("span",{staticStyle:{color:"rgb(237, 64, 20)"}},[a._v("-"+a._s(e.row.number))])]}}],null,!1,1897074545)}),a._v(" "),i("el-table-column",{attrs:{prop:"balance",label:"保证金结余","min-width":"100"}}),a._v(" "),i("el-table-column",{attrs:{label:"备注","min-width":"150",prop:"mark"}}),a._v(" "),i("el-table-column",{attrs:{prop:"create_time",label:"操作时间","min-width":"120"}})],1),a._v(" "),i("div",{staticClass:"acea-row row-right page"},[i("el-pagination",{attrs:{"page-size":a.tableFrom.limit,"current-page":a.tableFrom.page,layout:"prev, pager, next, jumper",total:a.tableData.total},on:{"size-change":a.handleSizeChange,"current-change":a.pageChange}})],1)],1):a._e()],1)},s=[],r=(t("c5f6"),t("c80c")),n=(t("96cf"),t("3b8d")),l=(t("28a5"),t("456d"),t("7f7f"),t("ac6a"),t("90e7")),o=t("c24f"),c=function(){var a=this,e=a.$createElement;a._self._c;return a._m(0)},m=[function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",[t("div",{staticStyle:{width:"100%",height:"450px"},attrs:{id:"container"}})])}];function d(a){return new Promise((function(e,t){window.init=function(){e(window.qq)};var i=document.createElement("script");i.type="text/javascript",i.src="https://map.qq.com/api/js?v=2.exp&callback=init&key=".concat(a),i.onerror=t,document.head.appendChild(i)}))}var _={props:{lat:{type:Number,default:34.34127},lon:{type:Number,default:108.93984},mapKey:{tyep:String},address:{tyep:String}},data:function(){return{geocoder:void 0,marker:null,resultDatail:{}}},created:function(){this.initMap()},methods:{initMap:function(){var a=this;d(this.mapKey).then((function(e){var t,i=new e.maps.LatLng(a.lat,a.lon);t=new e.maps.Map(document.getElementById("container"),{zoom:15}),a.geocoder=new e.maps.Geocoder({complete:function(i){t.setCenter(i.detail.location),a.marker=new e.maps.Marker({map:t,position:i.detail.location}),a.resultDatail=i.detail,a.$emit("getCoordinates",i.detail)},error:function(e){a.$message.error("请重新输入地址,地址中请包括省市区信息")}}),console.log(a.address),a.geocoder.getAddress(i),e.maps.event.addListener(t,"click",(function(t){a.marker.setMap(null),a.marker.position={lat:t.latLng.getLat(),lng:t.latLng.getLng()};var i=new e.maps.LatLng(t.latLng.getLat(),t.latLng.getLng());a.geocoder.getAddress(i)}))}))},searchKeyword:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"西安";this.marker.setMap(null),this.geocoder.getLocation(a)}}},u=_,p=t("2877"),v=Object(p["a"])(u,c,m,!1,null,"0c93b87a",null),g=v.exports,f=(t("2f62"),t("5f87")),b=t("bbcc"),h=t("83d6"),y=t("658f"),k=t.n(y),C={name:"Information",components:{Maps:g,VueQr:k.a},data:function(){var a=function(a,e,t){if(!e)return t(new Error("请填写手机号"));/^1[3456789]\d{9}$/.test(e)?t():t(new Error("手机号格式不正确!"))};return{merModel:!1,modalMap:!1,modalBank:!1,modalRecord:!1,loading:!1,roterPre:h["roterPre"],qrCode:"",qrEndTime:"",supplyPay:!1,goPay:!1,tableFrom:{page:1,limit:20},tableData:{total:0,data:[]},value1:"",value2:"",marginPrice:0,merData:{delivery_way:[],mer_take_name:"",mer_take_phone:"",mer_take_address:"",mer_take_time:["",""],mer_take_day:[],mer_take_location:"",id:0,mer_take_status:0},myHeaders:{"X-Token":Object(f["a"])()},uploadedQualifications:[],mapKey:"",address:"",key:"",date:[{date_name:"周一",date_id:1},{date_name:"周二",date_id:2},{date_name:"周三",date_id:3},{date_name:"周四",date_id:4},{date_name:"周五",date_id:5},{date_name:"周六",date_id:6},{date_name:"周日",date_id:7}],submitLoading:!1,deliveryList:[{value:"1",name:"到店自提"},{value:"2",name:"快递配送"}],rules:{mer_banner:[{required:!0,message:"请上传店铺banner"}],mer_avatar:[{required:!0,message:"请上传店铺头像"}],mer_info:[{required:!0,message:"请输入商户简介",trigger:"blur"},{min:3,max:200,message:"长度在 3 到 200 个字符",trigger:"blur"}],mer_keyword:[{required:!1,message:"请输入商户关键字",trigger:"blur"}],mer_address:[{required:!0,message:"请输入商户地址",trigger:"blur"}],uploadedqualifications:[{required:!0,message:"请上传商户资质",trigger:"blur"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}],mer_take_name:[{required:!0,message:"请输入提货点名称",trigger:"blur"}],mer_take_day:[{required:!0,type:"array",message:"请选择提货点营业日期",trigger:"change"}],mer_take_time:[{required:!0,message:"请选择提货点营业时间",trigger:"change"}],mer_take_phone:[{required:!0,validator:a,trigger:"blur"}],mer_take_address:[{required:!0,message:"请输入详细地址",trigger:"blur"}],mer_take_location:[{required:!0,message:"请选择经纬度",trigger:"blur"}]},bankValidate:{code:"",name:"",type:1,pic:""},bankRules:{code:[{required:!0,message:"请输入开户银行",trigger:"blur"}],pic:[{required:!0,message:"请输入银行卡号",trigger:"blur"},{pattern:/\d{10,19}/,message:"请输入正确的银行账号",trigger:"blur"}],name:[{required:!0,message:"请输入真实姓名",trigger:"blur"}]},offline:"",online:"",keyUrl:"",infoType:"1",tabList:[{value:"1",title:"基本信息"},{value:"2",title:"店铺信息"},{value:"3",title:"功能信息"}]}},computed:{fileUrl:function(){return b["a"].https+"/upload/certificate"}},watch:{uploadedQualifications:function(a){a.length?this.merData.uploadedqualifications=1:this.merData.uploadedqualifications=""}},created:function(){this.getMapInfo()},mounted:function(){window.addEventListener("message",(function(a){var e=a.data;e&&"locationPicker"===e.module&&window.parent.selectAdderss(e)}),!1),window.selectAdderss=this.selectAdderss,this.getInfo()},methods:{onchangeTime1:function(a){this.value1=a,this.merData.mer_take_time[0]=a},onchangeTime2:function(a){this.value2=a,this.merData.mer_take_time[1]=a},selectAdderss:function(a){this.merData.mer_take_location=a.latlng.lat+","+a.latlng.lng,this.modalMap=!1},onSearchs:function(){this.key&&""!=this.key?this.modalMap=!0:this.$message.error("平台未配置腾讯地图KEY")},getCoordinates:function(a){this.merData.lat=a.location.lat||34.34127,this.merData.long=a.location.lng||108.93984,console.log(a)},getInfo:function(){var a=this,e=this;e.merModel=!1,Object(o["i"])().then((function(t){e.merData=t.data,e.$set(e.merData,"uploadedqualifications",""),e.$set(e.merData,"delivery_way",t.data.delivery_way&&t.data.delivery_way.length?t.data.delivery_way.map(String):[]),e.key=t.data.tx_map_key;var i=t.data.tx_map_key;e.keyUrl="https://apis.map.qq.com/tools/locpicker?type=1&key=".concat(i,"&referer=myapp");var s=t.data||null;e.value1=s.mer_take_time[0]||"",e.value2=s.mer_take_time[1]||"",e.merData.mer_take_time=s.mer_take_time||["",""],e.merData.mer_take_day=s.mer_take_day||[],e.merData.mer_take_phone=s.mer_take_phone,e.merData.mer_take_name=s.mer_take_name,e.merData.mer_take_address=s.mer_take_address,e.marginPrice=s.is_margin,e.merData.margin=s.margin,e.merData.mer_take_location=s.mer_take_location&&s.mer_take_location.length?s.mer_take_location[0]+","+s.mer_take_location[1]:"",e.merData.mer_take_status=s.mer_take_status||0,e.merData.refundMarginOrder=s.refundMarginOrder,e.merData.marginStatus=s.ot_margin>s.margin,a.merModel=!0,t.data.mer_certificate instanceof Array?t.data.mer_certificate.forEach((function(a){e.uploadedQualifications.push({url:a})})):e.uploadedQualifications=[],1==e.merData.is_margin&&a.getCode()}))},bankConfirm:function(a){var e=this;this.$refs[a].validate((function(a){if(!a)return e.$message.error("请完善信息后再进行提交"),!1;Object(l["s"])(e.bankValidate).then((function(a){e.$message.success(a.message),e.modalBank=!1,e.getInfo()})).catch((function(a){e.$message.error(a.message)}))}))},submitForm:function(a){var e=this;if(2==this.infoType)this.$refs[a].validate((function(a){if(!a)return e.$message.error("请完善信息后再进行提交"),e.submitLoading=!1,!1;var t=Object.keys(e.rules),i={};[].concat(t,["mer_state","long","lat","mini_banner","services_type","service_phone"]).map((function(a){i[a]=e.merData[a]})),i.type=e.infoType,i.mer_certificate=e.uploadedQualifications.map((function(a){return a.response?a.response.data.src:a.url}));var s=e.merData.mer_take_location?[e.merData.mer_take_location.split(",")[0],e.merData.mer_take_location.split(",")[1]]:[];i.mer_take_location=s,e.submitLoading=!0,Object(o["u"])(i).then((function(a){console.log(a),e.submitLoading=!1,e.$message.success("提交成功")})).catch((function(a){e.submitLoading=!1,e.$message.error(a.data.message)}))}));else{var t={mer_state:this.merData.mer_state,type:this.infoType};Object(o["u"])(t).then((function(a){console.log(a),e.submitLoading=!1,e.$message.success("提交成功")})).catch((function(a){e.submitLoading=!1,e.$message.error(a.data.message)}))}},getCode:function(){var a=this;this.merData.marginStatus?Object(l["p"])().then((function(e){a.qrCode=e.data.config,a.qrEndTime=e.data.endtime,a.marginPrice=e.data.price})).catch((function(e){a.$message.error(e.message)})):Object(l["o"])().then((function(e){a.qrCode=e.data.config,a.qrEndTime=e.data.endtime,a.marginPrice=e.data.price})).catch((function(e){a.$message.error(e.message)}))},viewRecords:function(){this.tableFrom.page=1,this.modalRecord=!0,this.getRecordList()},getRecordList:function(){var a=this;a.loading=!0,Object(l["q"])(a.tableFrom).then(function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(t){return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a.tableData.data=t.data.list,a.tableData.total=t.data.count,a.loading=!1;case 3:case"end":return e.stop()}}),e)})));return function(a){return e.apply(this,arguments)}}()).catch((function(e){a.loading=!1,a.$message.error(e.message)}))},pageChange:function(a){this.tableFrom.page=a,this.getRecordList()},handleSizeChange:function(a){this.tableFrom.limit=a,this.getRecordList()},applyReturn:function(){var a=this,e=this;e.$confirm("申请退回保证金则视为关闭店铺,请谨慎操作!您是否确定继续操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["r"])().then((function(t){e.bankValidate=t.data.info,e.offline=t.data.offline,e.online=t.data.online,Number(t.data.offline)<=0?Object(l["s"])(a.bankValidate).then((function(e){a.$message.success(e.message),a.getInfo()})).catch((function(e){a.$message.error(e.message)})):e.modalBank=!0})).catch((function(a){e.$message.error(a.message)}))}))},onSearch:function(){console.log(this.$refs),this.$refs.mapChild.searchKeyword(this.merData.mer_address)},getMapInfo:function(){var a=this,e=this;Object(l["P"])().then((function(e){console.log(e),a.mapKey=e.data.tx_map_key})).catch((function(a){e.$message.error(a.message)}))},modalPicTap:function(a,e,t){var i=this;this.$modalUpload((function(t){"1"!==a||e||(i.merData.mer_banner=t[0]),"2"!==a||e||(i.merData.mer_avatar=t[0]),"3"!==a||e||(i.merData.mini_banner=t[0])}),a)},deldetQualificationsList:function(a){this.uploadedQualifications.splice(a,1)},beforeUploadQualification:function(){return!(this.uploadedQualifications.length>=5)||(this.$message.error("上传文件最大数量为5张, 上传失败!"),!1)},setQualificationsList:function(a){200===a.status?this.uploadedQualifications.push({url:a.data.src}):this.$message.error(a.message)},viewImage:function(a,e){this.$refs.elImage[e].clickHandler()}}},D=C,w=(t("f406"),Object(p["a"])(D,i,s,!1,null,"7d8e7c3d",null));e["default"]=w.exports},4751:function(a,e,t){a.exports=t.p+"mer/img/margin03.d9148792.png"},"7a01":function(a,e,t){a.exports=t.p+"mer/img/margin02.3431ab5b.png"},e2ac:function(a,e,t){},e4ef:function(a,e,t){a.exports=t.p+"mer/img/margin01.1defbb63.png"},f406:function(a,e,t){"use strict";t("e2ac")}}]); |