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.
 
 
 
 

1 lines
16 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3b138976"],{"27ae":function(e,t,a){(function(a){var n,r;(function(t,a){e.exports=a(t)})("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof a?a:this,(function(a){"use strict";a=a||{};var i,o=a.Base64,s="2.6.4",c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=function(e){for(var t={},a=0,n=e.length;a<n;a++)t[e.charAt(a)]=a;return t}(c),f=String.fromCharCode,u=function(e){if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?f(192|t>>>6)+f(128|63&t):f(224|t>>>12&15)+f(128|t>>>6&63)+f(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return f(240|t>>>18&7)+f(128|t>>>12&63)+f(128|t>>>6&63)+f(128|63&t)},d=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,p=function(e){return e.replace(d,u)},m=function(e){var t=[0,2,1][e.length%3],a=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),n=[c.charAt(a>>>18),c.charAt(a>>>12&63),t>=2?"=":c.charAt(a>>>6&63),t>=1?"=":c.charAt(63&a)];return n.join("")},v=a.btoa&&"function"==typeof a.btoa?function(e){return a.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,m)},h=function(e){return v(p(String(e)))},g=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},b=function(e,t){return t?g(h(e)):h(e)},y=function(e){return b(e,!0)};a.Uint8Array&&(i=function(e,t){for(var a="",n=0,r=e.length;n<r;n+=3){var i=e[n],o=e[n+1],s=e[n+2],l=i<<16|o<<8|s;a+=c.charAt(l>>>18)+c.charAt(l>>>12&63)+("undefined"!=typeof o?c.charAt(l>>>6&63):"=")+("undefined"!=typeof s?c.charAt(63&l):"=")}return t?g(a):a});var _,C=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,T=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),a=t-65536;return f(55296+(a>>>10))+f(56320+(1023&a));case 3:return f((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return f((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},A=function(e){return e.replace(C,T)},x=function(e){var t=e.length,a=t%4,n=(t>0?l[e.charAt(0)]<<18:0)|(t>1?l[e.charAt(1)]<<12:0)|(t>2?l[e.charAt(2)]<<6:0)|(t>3?l[e.charAt(3)]:0),r=[f(n>>>16),f(n>>>8&255),f(255&n)];return r.length-=[0,0,2,1][a],r.join("")},D=a.atob&&"function"==typeof a.atob?function(e){return a.atob(e)}:function(e){return e.replace(/\S{1,4}/g,x)},j=function(e){return D(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},P=function(e){return A(D(e))},w=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},O=function(e){return P(w(e))};a.Uint8Array&&(_=function(e){return Uint8Array.from(j(w(e)),(function(e){return e.charCodeAt(0)}))});var S=function(){var e=a.Base64;return a.Base64=o,e};if(a.Base64={VERSION:s,atob:j,btoa:v,fromBase64:O,toBase64:b,utob:p,encode:b,encodeURI:y,btou:A,decode:O,noConflict:S,fromUint8Array:i,toUint8Array:_},"function"===typeof Object.defineProperty){var k=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};a.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",k((function(){return O(this)}))),Object.defineProperty(String.prototype,"toBase64",k((function(e){return b(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",k((function(){return b(this,!0)})))}}return a["Meteor"]&&(Base64=a.Base64),e.exports?e.exports.Base64=a.Base64:(n=[],r=function(){return a.Base64}.apply(t,n),void 0===r||(e.exports=r)),{Base64:a.Base64}}))}).call(this,a("c8ba"))},"4fad":function(e,t,a){var n=a("23e7"),r=a("6f53").entries;n({target:"Object",stat:!0},{entries:function(e){return r(e)}})},"4fe4":function(e,t,a){"use strict";a("99af");var n=a("9256"),r={getList:"/tenantApply/page",auditApply:"/tenantApply/audit",deleteApply:"/tenantApply/remove",applyInfo:"/tenantApply"};t["a"]={getList:function(e){return Object(n["a"])({method:"POST",url:r.getList,data:e})},auditApply:function(e){return Object(n["a"])({method:"POST",url:r.auditApply,data:e})},deleteApply:function(e){return Object(n["a"])({method:"POST",url:r.deleteApply,data:e})},applyInfo:function(e){return Object(n["a"])({method:"GET",url:"".concat(r.applyInfo,"/").concat(e)})}}},"6f53":function(e,t,a){var n=a("83ab"),r=a("df75"),i=a("fc6a"),o=a("d1e7").f,s=function(e){return function(t){var a,s=i(t),c=r(s),l=c.length,f=0,u=[];while(l>f)a=c[f++],n&&!o.call(s,a)||u.push(e?[a,s[a]]:s[a]);return u}};e.exports={entries:s(!0),values:s(!1)}},"746d":function(e,t,a){},"78aa":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"detail_page"},[a("div",{staticClass:"content"},[a("div",{staticClass:"head_box"},[e._v(" "+e._s(e.getTitle())+" "),a("div",{staticClass:"btn_list"},[1===Number(e.info.auditState)?a("el-button",{attrs:{type:"primary"},on:{click:e.handle}},[e._v("处理")]):e._e(),a("el-button",{on:{click:e.cancel}},[e._v("返回列表")])],1)]),a("div",{staticClass:"detail"},[a("div",{staticClass:"shop_info"},[a("p",{staticClass:"detail_title"},[e._v("店铺信息")]),e._l(e.shopInfoList,(function(t,n){return a("p",{key:n,staticClass:"detail_text"},[a("span",[a("font",[e._v("*")]),e._v(" "+e._s(t.name+":")+" ")],1),a("span",[e._v(e._s(t.value))])])}))],2),1!==Number(e.info.organizationType)?a("div",{staticClass:"main_info"},[a("p",{staticClass:"detail_title"},[e._v("主体信息")]),e._l(e.mainInfo,(function(t,n){return a("p",{key:n,staticClass:"detail_text"},[a("span",[a("font",[e._v("*")]),e._v(" "+e._s(t.name+":")+" ")],1),a("span",[e._v(e._s(t.value))])])})),a("p",{staticClass:"detail_img"},[a("span",[a("font",[e._v("*")]),e._v(" 营业执照 ")],1),e._l(e.businessImage,(function(e,t){return a("img",{key:"bussiness"+t,attrs:{src:e,preview:1}})}))],2)],2):e._e(),a("div",{staticClass:"person_info"},[a("p",{staticClass:"detail_title"},[e._v("个人信息")]),e._l(e.personInfoList,(function(t,n){return a("p",{key:n,staticClass:"detail_text"},[a("span",[a("font",[e._v("*")]),e._v(" "+e._s(t.name+":")+" ")],1),a("span",[e._v(e._s(t.value))])])})),a("p",{staticClass:"detail_img"},[a("span",[a("font",[e._v("*")]),e._v(" 证件照片 ")],1),e._l(e.idCardCopyFilePath,(function(e,t){return a("img",{key:"id"+t,attrs:{src:e,preview:2}})})),e._l(e.idCardNationalFilePath,(function(e,t){return a("img",{key:"idCard"+t,attrs:{src:e,preview:3}})}))],2),1===Number(e.info.organizationType)?a("p",{staticClass:"detail_img"},[a("span",[a("font",[e._v("*")]),e._v(" 手持证件照 ")],1),e._l(e.handHoldCardPath,(function(e,t){return a("img",{key:"hand"+t,attrs:{src:e,preview:4}})}))],2):e._e()],2),2===Number(e.info.auditState)?a("div",{staticClass:"shop_info"},[a("p",{staticClass:"detail_title"},[e._v("授权信息")]),e._l(e.authInfoList,(function(t,n){return a("p",{key:n,staticClass:"detail_text"},[a("span",[a("font",[e._v("*")]),e._v(" "+e._s(t.name+":")+" ")],1),a("span",[e._v(e._s(t.value))])])}))],2):e._e()])]),a("dialogs",{attrs:{"dialog-data":e.dialogData},on:{closed:e.closed}})],1)},r=[],i=(a("99af"),a("d81d"),a("b0c0"),a("a9e3"),a("96cf"),a("1da1")),o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.dialogData.title,visible:e.dialogData.visible,width:"40%"},on:{"update:visible":function(t){return e.$set(e.dialogData,"visible",t)}}},[a("el-form",{ref:"form",attrs:{"label-width":"120px",model:e.form,rules:e.rules,required:""}},[a("el-form-item",{attrs:{label:"入驻处理"}},[a("el-radio-group",{model:{value:e.form.auditState,callback:function(t){e.$set(e.form,"auditState",t)},expression:"form.auditState"}},[a("el-radio",{attrs:{label:2}},[e._v("同意入驻")]),a("el-radio",{attrs:{label:3}},[e._v("拒绝入驻")])],1)],1),2===e.form.auditState?a("div",[a("el-form-item",{attrs:{label:"生效日期"}},[a("el-radio-group",{model:{value:e.form.effectDateType,callback:function(t){e.$set(e.form,"effectDateType",t)},expression:"form.effectDateType"}},[a("el-radio",{attrs:{label:1}},[e._v("即时生效")]),a("el-radio",{attrs:{label:2}},[e._v("指定日期")])],1)],1),2===e.form.effectDateType?a("el-form-item",{attrs:{label:"",prop:"effectTime"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择生效日期","value-format":"yyyy-MM-dd"},model:{value:e.form.effectTime,callback:function(t){e.$set(e.form,"effectTime",t)},expression:"form.effectTime"}})],1):e._e(),a("el-form-item",{attrs:{label:"生效时限",prop:"effectTimeLimit"}},[a("el-col",{attrs:{span:18}},[a("el-input",{attrs:{placeholder:"请输入生效时限"},model:{value:e.form.effectTimeLimit,callback:function(t){e.$set(e.form,"effectTimeLimit",e._n(t))},expression:"form.effectTimeLimit"}})],1),a("el-col",{staticClass:"unit",attrs:{span:2}},[e._v(" 年 ")])],1)],1):e._e(),3===e.form.auditState?a("el-form-item",{attrs:{label:"拒绝原因",prop:"rejectReason"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入拒绝原因"},model:{value:e.form.rejectReason,callback:function(t){e.$set(e.form,"rejectReason",t)},expression:"form.rejectReason"}})],1):e._e()],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.confirm}},[e._v("确 定")]),a("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)},s=[],c=a("4fe4"),l={props:{dialogData:{type:Object,default:function(){}}},data:function(){return{form:{auditState:2,effectDateType:1,effectTime:"",effectTimeLimit:"",rejectReason:""},rules:{effectTime:[{required:!0,message:"请选择生效日期",trigger:"change"}],effectTimeLimit:[{required:!0,message:"请输入生效时限",trigger:"blur"},{type:"number",message:"生效时限必须为数字值"}],rejectReason:[{required:!0,message:"请输入拒绝原因",trigger:"blur"}]}}},methods:{reset:function(){this.form={auditState:2,effectDateType:1,effectTime:"",effectTimeLimit:"",rejectReason:""}},cancel:function(){this.reset(),this.$emit("closed",!1)},confirm:function(){var e=this;e.$refs.form.validate((function(t){if(!t)return!1;c["a"].auditApply(Object.assign({},e.form,{id:e.dialogData.info.id})).then((function(t){0===t.data.code?e.$message({type:"success",message:"审核成功"}):e.$message.error(t.data.msg),e.cancel()}))}))}}},f=l,u=(a("999f"),a("2877")),d=Object(u["a"])(f,o,s,!1,null,"7d470ff8",null),p=d.exports,m={components:{dialogs:p},data:function(){return{shopInfoList:[{name:"店铺名称",value:"",field:"storeName"},{name:"店铺类型",value:"",field:"organizationType"},{name:"客服电话",value:"",field:"customerPhone"},{name:"店铺负责人",value:"",field:"storeHead"},{name:"负责人电话",value:"",field:"headMobile"},{name:"店铺地址",value:"",field:"storeAddressProvince"}],personInfoList:[{name:"名称",value:"",field:"legalPerson"},{name:"证件类型",value:"",field:"idDocType"},{name:"身份证号码",value:"",field:"idCardNumber"},{name:"身份证有效期",value:"",field:"idCardValidTimeStart"}],authInfoList:[{name:"生效日期",value:"",field:"effectTime"},{name:"生效时限",value:"",field:"effectTimeLimit"}],mainInfo:[{name:"商户名称",value:"",field:"merchantName"},{name:"社会信用代码",value:"",field:"socialCreditCode"},{name:"注册地址",value:"",field:"companyAddressProvince"},{name:"营业期限",value:"",field:"businessTimeStart"}],dialogData:{},info:{},orgType:{1:"个人",2:"个体工商户",3:"企业",4:"其他组织"},businessImage:[],idCardCopyFilePath:[],idCardNationalFilePath:[],handHoldCardPath:[]}},computed:{query:function(){return this.$route.query}},created:function(){this.applyInfo()},methods:{applyInfo:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,n,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e,t.next=3,c["a"].applyInfo(e.query.id);case 3:n=t.sent,r=n.data,0===r.code&&(i=r.data,a.info=i,a.getData(i),a.businessImage[0]=i.businessLicenseCopyFilePath,a.idCardCopyFilePath[0]=i.idCardCopyFilePath,a.idCardNationalFilePath[0]=i.idCardNationalFilePath,a.handHoldCardPath[0]=i.handHoldCardPath,e.$previewRefresh());case 6:case"end":return t.stop()}}),t)})))()},getTitle:function(){var e={1:"待审核列表/查看详情",2:"审核通过列表/查看详情",3:"已拒绝列表/查看详情"};return e[this.query.type]},getData:function(e){var t=this;t.getObjData(t.shopInfoList,e),t.getObjData(t.personInfoList,e),t.getObjData(t.mainInfo,e),t.getObjData(t.authInfoList,e)},getObjData:function(e,t){var a=this,n={1:"中国大陆居民身份证",2:"中国香港居民来往内地通行证",3:"中国澳门居民来往内地通行证",4:"中国台湾居民来往内地通行证",5:"其他国家或地区居民护照"},r={2:"商户名称",3:"企业名称",4:"组织名称"};e.map((function(e){e.value=t[e.field],"organizationType"===e.field&&(e.value=a.orgType[Number(t.organizationType||"")]),"storeAddressProvince"===e.field&&(e.value="".concat(t.storeAddressProvince||"").concat(t.storeAddressCity||"").concat(t.storeAddressDetail||"")),"idCardValidTimeStart"===e.field&&(e.value="".concat(t.idCardValidTimeStart||"","──").concat(t.idCardValidTimeEnd||"")),"idDocType"===e.field&&(e.value=n[Number(t.idDocType||"")]),"effectTimeLimit"===e.field&&(e.value="".concat(t.effectTimeLimit,"年")),"effectTime"===e.field&&(e.value=1===t.effectDateType?t.auditTime:t.effectTime),"merchantName"===e.field&&(e.name=r[Number(t.organizationType||"")]),"socialCreditCode"===e.field&&(e.name=4===Number(t.organizationType||"")?"机构证件":"营业执照"),"companyAddressProvince"===e.field&&(e.value="".concat(t.companyAddressProvince||"").concat(t.companyAddressCity||"").concat(t.companyAddressDistrict||"").concat(t.companyAddress||"")),"businessTimeStart"===e.field&&(e.value=1===t.effectDateType?"长期有效":"".concat(t.businessTimeStart||"","──").concat(t.businessTimeEnd||""))}))},cancel:function(){this.$router.push({path:"/apply"})},handle:function(){this.dialogData={title:"处理审核",visible:!0,info:this.info}},closed:function(e){this.applyInfo(),this.dialogData.visible=e}}},v=m,h=(a("ab71"),Object(u["a"])(v,n,r,!1,null,"1db749c7",null));t["default"]=h.exports},9256:function(e,t,a){"use strict";a("99af"),a("4160"),a("caad"),a("4fad"),a("d3b7"),a("159b");var n=a("5530"),r=a("bc3a"),i=a.n(r),o=a("5c96"),s=a("5657");a("27ae");function c(e,t){"ECONNABORTED"===e.code?Object(o["Message"])({message:"请求超时"}):e.response&&e.response.data?Object(o["Message"])({message:e.response.data}):e.message&&Object(o["Message"])({message:e.message}),t(e)}function l(e,t){e.data.isError&&(4e4===e.data.code||40001===e.data.code||40002===e.data.code||40003===e.data.code||40005===e.data.code||40006===e.data.code||40008===e.data.code?o["MessageBox"].alert(e.data.msg,"提醒",{confirmButtonText:"确定",callback:function(){window.location.hash="/login"}}):o["Message"].error(e.data.msg)),t(e)}i.a.interceptors.request.use((function(e){var t=!1!==e.headers["X-isToken"]||e.headers["X-isToken"],a=s["a"].get("TOKEN","");a&&t&&(e.headers.token="Bearer "+a);var n="ceres_admin_web",r="ceres_admin_web";return e.headers["Authorization"]="Basic ".concat("".concat(n,":").concat(r)),e}),(function(e){return Promise.reject(e)})),i.a.interceptors.response.use((function(e){return e}),(function(e){return Promise.reject(e)}));var f=function(e){console.log(e,"opts");var t={ts:Date.now()},a=e.method.toUpperCase(),r={method:a,url:"".concat("https://pos.admin.api.lotus-wallet.com").concat(e.url),responseType:e.responseType||"",timeout:2e4},o=["PUT","POST","PATCH"];o.includes(a)?r.data=e.data||{}:r.params=Object(n["a"])(Object(n["a"])({},t),e.data||{}),e.formData&&(r.transformRequest=[function(e){var t=new FormData;return e&&Object.entries(e).forEach((function(e){t.append(e[0],e[1])})),t}]);var s=new Promise((function(e,t){i()(r).then((function(t){l(t,e)})).catch((function(e){c(e,t)}))}));return s};t["a"]=f},"999f":function(e,t,a){"use strict";var n=a("fdff"),r=a.n(n);r.a},ab71:function(e,t,a){"use strict";var n=a("746d"),r=a.n(n);r.a},fdff:function(e,t,a){}}]);