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
14 KiB
1 lines
14 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3320c860"],{"0197":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:"apply_page"},[a("div",{staticClass:"content"},[a("el-tabs",{on:{"tab-click":e.selectItem},model:{value:e.formParams.model.auditState,callback:function(t){e.$set(e.formParams.model,"auditState",t)},expression:"formParams.model.auditState"}},e._l(e.tabList,(function(e,t){return a("el-tab-pane",{key:t,attrs:{label:e.name,name:e.id}})})),1),a("div",{staticClass:"toolbar"},[a("el-form",{attrs:{inline:!0,model:e.formParams}},[a("el-form-item",{attrs:{label:"商家名称"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.formParams.model.merchantName,callback:function(t){e.$set(e.formParams.model,"merchantName",t)},expression:"formParams.model.merchantName"}})],1),a("el-form-item",{attrs:{label:"注册手机号"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.formParams.model.headMobile,callback:function(t){e.$set(e.formParams.model,"headMobile",t)},expression:"formParams.model.headMobile"}})],1),a("el-form-item",{attrs:{label:"店铺类型"}},[a("el-select",{attrs:{size:"mini"},model:{value:e.formParams.model.organizationType,callback:function(t){e.$set(e.formParams.model,"organizationType",t)},expression:"formParams.model.organizationType"}},e._l(e.typeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"申请时间"}},[a("el-date-picker",{attrs:{size:"mini",type:"daterange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"yyyy-MM-dd"},on:{change:e.handleChange},model:{value:e.date,callback:function(t){e.date=t},expression:"date"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.query}},[e._v(" 查询 ")]),a("el-button",{attrs:{plain:"",size:"mini"},on:{click:e.reset}},[e._v(" 重置 ")])],1)],1)],1),a("div",{staticClass:"content_table"},[a("div",{staticClass:"table"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData.records,border:""}},[a("el-table-column",{attrs:{prop:"merchantName",label:"商家名称"}}),a("el-table-column",{attrs:{prop:"organizationType",formatter:e.getType,label:"店铺类型"}}),a("el-table-column",{attrs:{prop:"headMobile",label:"注册手机号"}}),a("el-table-column",{attrs:{prop:"applyTime",label:"申请时间"}}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.auditState?a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.preventDefault(),e.handle(t.row)}}},[e._v(" 处理 ")]):e._e(),2===t.row.auditState||3===t.row.auditState?a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.preventDefault(),e.handle(t.row)}}},[e._v(" 详情 ")]):e._e(),3===t.row.auditState?a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.preventDefault(),e.deletes(t.row.id)}}},[e._v(" 删除 ")]):e._e()]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableData.total>0,expression:"tableData.total > 0"}],attrs:{limit:e.formParams.size,page:e.formParams.current,total:Number(e.tableData.total)},on:{"update:limit":function(t){return e.$set(e.formParams,"size",t)},"update:page":function(t){return e.$set(e.formParams,"current",t)},pagination:e.query}})],1)],1),a("deletes",{attrs:{"dialog-visible":e.dialogVisible},on:{confirm:e.confirm,closed:e.closed}})],1)},r=[],o=(a("4160"),a("a9e3"),a("159b"),a("96cf"),a("1da1")),i=a("333d"),s=a("4fe4"),c=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.dialogVisible.title,visible:e.dialogVisible.visible,width:"30%"},on:{"update:visible":function(t){return e.$set(e.dialogVisible,"visible",t)}}},[a("span",[e._v("确认要删除本记录吗")]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.close}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.confirm}},[e._v("确 定")])],1)])},l=[],u={props:{dialogVisible:{type:Object,default:function(){}}},data:function(){return{}},methods:{confirm:function(){this.$emit("confirm")},close:function(){this.$emit("closed")}}},d=u,f=a("2877"),m=Object(f["a"])(d,c,l,!1,null,"3455019f",null),p=m.exports,h={components:{Pagination:i["a"],deletes:p},data:function(){return{formParams:{current:1,size:10,map:{},order:"descending",sort:"id",model:{merchantName:"",headMobile:"",organizationType:"",applyTimeStart:"",applyTimeEnd:"",auditState:"1"}},activeName:1,date:[],dialogVisible:{},typeList:[{label:"全部",value:""},{label:"个人",value:1},{label:"个体工商户",value:2},{label:"企业",value:3},{label:"其他组织",value:4}],tableData:{},tabList:[{name:"待处理",id:"1"},{name:"已通过",id:"2"},{name:"已拒绝",id:"3"}]}},created:function(){this.getList()},methods:{getList:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,s["a"].getList(e.formParams);case 2:a=t.sent,n=a.data,0===n.code&&(e.tableData=n.data);case 5:case"end":return t.stop()}}),t)})))()},selectItem:function(){this.getList()},query:function(){this.getList()},reset:function(){this.formParams={current:1,size:10,map:{},order:"descending",sort:"id",model:{auditState:"1",merchantName:"",headMobile:"",organizationType:"",applyTimeStart:"",applyTimeEnd:""}},this.date=[]},handleChange:function(e){this.formParams.model.applyTimeStart=e&&e[0]||"",this.formParams.model.applyTimeEnd=e&&e[1]||""},getType:function(e,t,a){var n="";return this.typeList.forEach((function(e){e.value===Number(a)&&(n=e.label)})),n},details:function(e){this.$router.push({path:"/apply/detail",query:{info:e,id:e.id,type:Number(this.formParams.model.auditState)}})},handle:function(e){this.$router.push({path:"/apply/detail",query:{info:e,id:e.id,type:Number(this.formParams.model.auditState)}})},deletes:function(e){this.dialogVisible={title:"删除",visible:!0,id:e}},closed:function(){this.dialogVisible={}},confirm:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s["a"].deleteApply({id:t.dialogVisible.id});case 2:a=e.sent,n=a.data,0===n.code?(t.$message({type:"success",message:"删除成功"}),t.getList()):t.$message.error(n.msg),t.closed();case 6:case"end":return e.stop()}}),e)})))()}}},b=h,g=(a("576e"),Object(f["a"])(b,n,r,!1,null,"77a55ce3",null));t["default"]=g.exports},"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,a,n){return e/=n/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,a){var i=o(),s=e-i,c=20,l=0;t="undefined"===typeof t?500:t;var u=function e(){l+=c;var o=Math.easeInOutQuad(l,i,s,t);r(o),l<t?n(e):a&&"function"===typeof a&&a()};u()}},"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 o,i=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),u=String.fromCharCode,d=function(e){if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?u(192|t>>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)},f=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,m=function(e){return e.replace(f,d)},p=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("")},h=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,p)},b=function(e){return h(m(String(e)))},g=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},y=function(e,t){return t?g(b(e)):b(e)},v=function(e){return y(e,!0)};a.Uint8Array&&(o=function(e,t){for(var a="",n=0,r=e.length;n<r;n+=3){var o=e[n],i=e[n+1],s=e[n+2],l=o<<16|i<<8|s;a+=c.charAt(l>>>18)+c.charAt(l>>>12&63)+("undefined"!=typeof i?c.charAt(l>>>6&63):"=")+("undefined"!=typeof s?c.charAt(63&l):"=")}return t?g(a):a});var A,w=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,x=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 u(55296+(a>>>10))+u(56320+(1023&a));case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},P=function(e){return e.replace(w,x)},T=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=[u(n>>>16),u(n>>>8&255),u(255&n)];return r.length-=[0,0,2,1][a],r.join("")},O=a.atob&&"function"==typeof a.atob?function(e){return a.atob(e)}:function(e){return e.replace(/\S{1,4}/g,T)},C=function(e){return O(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},S=function(e){return P(O(e))},k=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},B=function(e){return S(k(e))};a.Uint8Array&&(A=function(e){return Uint8Array.from(C(k(e)),(function(e){return e.charCodeAt(0)}))});var _=function(){var e=a.Base64;return a.Base64=i,e};if(a.Base64={VERSION:s,atob:C,btoa:h,fromBase64:B,toBase64:y,utob:m,encode:y,encodeURI:v,btou:P,decode:B,noConflict:_,fromUint8Array:o,toUint8Array:A},"function"===typeof Object.defineProperty){var j=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};a.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",j((function(){return B(this)}))),Object.defineProperty(String.prototype,"toBase64",j((function(e){return y(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",j((function(){return y(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)})}}},"576e":function(e,t,a){"use strict";var n=a("7b1a"),r=a.n(n);r.a},"6f53":function(e,t,a){var n=a("83ab"),r=a("df75"),o=a("fc6a"),i=a("d1e7").f,s=function(e){return function(t){var a,s=o(t),c=r(s),l=c.length,u=0,d=[];while(l>u)a=c[u++],n&&!i.call(s,a)||d.push(e?[a,s[a]]:s[a]);return d}};e.exports={entries:s(!0),values:s(!1)}},"7b1a":function(e,t,a){},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"),o=a.n(r),i=a("5c96"),s=a("5657");a("27ae");function c(e,t){"ECONNABORTED"===e.code?Object(i["Message"])({message:"请求超时"}):e.response&&e.response.data?Object(i["Message"])({message:e.response.data}):e.message&&Object(i["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?i["MessageBox"].alert(e.data.msg,"提醒",{confirmButtonText:"确定",callback:function(){window.location.hash="/login"}}):i["Message"].error(e.data.msg)),t(e)}o.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)})),o.a.interceptors.response.use((function(e){return e}),(function(e){return Promise.reject(e)}));var u=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},i=["PUT","POST","PATCH"];i.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){o()(r).then((function(t){l(t,e)})).catch((function(e){c(e,t)}))}));return s};t["a"]=u}}]); |