| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d47088ca"],{"053b":function(e,t,o){var a=o("1e2c"),r=o("d910").f,n=Function.prototype,i=n.toString,l=/^\s*function ([^ (]*)/,s="name";a&&!(s in n)&&r(n,s,{configurable:!0,get:function(){try{return i.call(this).match(l)[1]}catch(e){return""}}})},"1ca1":function(e,t,o){var a=o("a719"),r=o("74e7"),n=o("90fb"),i=n("species");e.exports=function(e,t){var o;return r(e)&&(o=e.constructor,"function"!=typeof o||o!==Array&&!r(o.prototype)?a(o)&&(o=o[i],null===o&&(o=void 0)):o=void 0),new(void 0===o?Array:o)(0===t?0:t)}},"1ea7":function(e,t,o){var a=o("efe2"),r=o("90fb"),n=o("f594"),i=r("species");e.exports=function(e){return n>=51||!a((function(){var t=[],o=t.constructor={};return o[i]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"20a5":function(e,t,o){"use strict";var a=o("1c8b"),r=o("3da3"),n=o("e1d9"),i=o("c7e6"),l=o("efe2"),s=1..toFixed,c=Math.floor,u=function(e,t,o){return 0===t?o:t%2===1?u(e,t-1,o*e):u(e*e,t/2,o)},f=function(e){var t=0,o=e;while(o>=4096)t+=12,o/=4096;while(o>=2)t+=1,o/=2;return t},m=s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!l((function(){s.call({})}));a({target:"Number",proto:!0,forced:m},{toFixed:function(e){var t,o,a,l,s=n(this),m=r(e),d=[0,0,0,0,0,0],p="",h="0",g=function(e,t){var o=-1,a=t;while(++o<6)a+=e*d[o],d[o]=a%1e7,a=c(a/1e7)},b=function(e){var t=6,o=0;while(--t>=0)o+=d[t],d[t]=c(o/e),o=o%e*1e7},v=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==d[e]){var o=String(d[e]);t=""===t?o:t+i.call("0",7-o.length)+o}return t};if(m<0||m>20)throw RangeError("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(p="-",s=-s),s>1e-21)if(t=f(s*u(2,69,1))-69,o=t<0?s*u(2,-t,1):s/u(2,t,1),o*=4503599627370496,t=52-t,t>0){g(0,o),a=m;while(a>=7)g(1e7,0),a-=7;g(u(10,a,1),0),a=t-1;while(a>=23)b(1<<23),a-=23;b(1<<a),g(1,1),b(2),h=v()}else g(0,o),g(1<<-t,0),h=v()+i.call("0",m);return m>0?(l=h.length,h=p+(l<=m?"0."+i.call("0",m-l)+h:h.slice(0,l-m)+"."+h.slice(l-m))):h=p+h,h}})},"5dfd":function(e,t,o){var a=o("e349"),r=o("692f"),n=o("3553"),i=o("d88d"),l=o("1ca1"),s=[].push,c=function(e){var t=1==e,o=2==e,c=3==e,u=4==e,f=6==e,m=5==e||f;return function(d,p,h,g){for(var b,v,y=n(d),C=r(y),w=a(p,h,3),x=i(C.length),$=0,S=g||l,T=t?S(d,x):o?S(d,0):void 0;x>$;$++)if((m||$ in C)&&(b=C[$],v=w(b,$,y),e))if(t)T[$]=v;else if(v)switch(e){case 3:return!0;case 5:return b;case 6:return $;case 2:s.call(T,b)}else if(u)return!1;return f?-1:c||u?u:T}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},"74e7":function(e,t,o){var a=o("2118");e.exports=Array.isArray||function(e){return"Array"==a(e)}},c7e6:function(e,t,o){"use strict";var a=o("3da3"),r=o("2732");e.exports="".repeat||function(e){var t=String(r(this)),o="",n=a(e);if(n<0||n==1/0)throw RangeError("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(o+=t);return o}},cd79:function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"context"},[o("div",{staticClass:"panel"},[o("h5",[e._v("店面管理")]),o("div",{staticClass:"panel-body"},[o("div",{staticClass:"panel_control"},[o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:4}},[o("em",[e._v("负责人:")]),o("el-input",{attrs:{placeholder:"请输入负责人"},model:{value:e.panel.userCode,callback:function(t){e.$set(e.panel,"userCode",t)},expression:"panel.userCode"}})],1),o("el-col",{attrs:{span:4}},[o("em",[e._v("手机号:")]),o("el-input",{attrs:{placeholder:"请输入手机号"},model:{value:e.panel.tel,callback:function(t){e.$set(e.panel,"tel",t)},expression:"panel.tel"}})],1),o("el-col",{attrs:{span:4}},[o("el-button",{attrs:{size:"",type:"primary",plain:""},on:{click:e.query}},[e._v("查询")])],1)],1)],1)])]),o("div",{staticClass:"change"},[o("el-button",{attrs:{type:"primary"},on:{click:e.addAdmin}},[e._v("新增店面")]),o("el-button",{on:{click:e.editList}},[e._v("修改店面")]),o("el-button",{on:{click:e.delList}},[e._v("删除店面")])],1),o("div",{staticClass:"table"},[o("el-table",{attrs:{data:e.tableData,border:"","is-horizontal-resize":"","default-sort":{prop:"date",order:"descending"},"element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"selection-change":e.handleSelectionChange}},[o("el-table-column",{attrs:{type:"selection",width:"55"}}),o("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),o("el-table-column",{attrs:{prop:"userCode",label:"店面名称",sortable:""}}),o("el-table-column",{attrs:{prop:"name",label:"位置",sortable:""}}),o("el-table-column",{attrs:{prop:"shop",label:"负责人",sortable:""}}),o("el-table-column",{attrs:{prop:"tel",label:"手机号"}})],1),o("br"),o("el-pagination",{attrs:{background:"",total:e.pageination.total,"page-size":e.pageination.pageItem},on:{"current-change":e.pageChange}})],1),o("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogVisible,width:"360px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[o("div",[o("el-form",{ref:"form",attrs:{model:e.form,"label-width":"80px"}},[o("el-form-item",{attrs:{label:"店面名称"}},[o("el-input",{model:{value:e.form.shopName,callback:function(t){e.$set(e.form,"shopName",t)},expression:"form.shopName"}})],1),o("el-form-item",{attrs:{label:"位置"}},[o("el-input",{model:{value:e.form.location,callback:function(t){e.$set(e.form,"location",t)},expression:"form.location"}})],1),o("el-form-item",{attrs:{label:"负责人"}},[o("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),o("el-form-item",{attrs:{label:"手机号"}},[o("el-input",{model:{value:e.form.userCode,callback:function(t){e.$set(e.form,"userCode",t)},expression:"form.userCode"}})],1)],1)],1),o("div",{staticClass:"dialogFooter"},[o("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.confirmAdmin}},[e._v("确定")]),o("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")])],1)])],1)},r=[],n=(o("dbb3"),o("053b"),o("20a5"),o("379d"),o("b8a1")),i=o("1cfa"),l={data:function(){return{dialogVisible:!1,dialogTitle:"新增店面",panel:{userCode:"",tel:"",shopList:0,options:[],draw:1,start:0,recordsTotal:0,tableData:[],allTableData:[],limit:"10",multipleSort:!1,loading:!1,fileList:[],multipleSelection:[],detectedmac:"",time1:globalBt()},multipleSelection:[],pageination:{pageItem:100,pageoptions:pageOptions(),total:100,pageIndex:1},form:{shopName:"",location:"",name:"",userCode:"",shopId:""},shops:[],tableData:[]}},mounted:function(){this.getTableQuery()},methods:{confirmAdmin:function(){var e=this;if(!e.form.shopName)return this.$message.error("错了哦,店面名称不能为空"),!1;if(e.form.shopName.length>18)return this.$message.error("错了哦,姓名字数超过18个字"),!1;if(!e.form.location)return this.$message.error("错了哦,位置不能为空"),!1;if(e.form.location.length>38)return this.$message.error("错了哦,位置字数超过38个字"),!1;if(!e.form.name)return this.$message.error("错了哦,负责人不能为空"),!1;if(e.form.name.length>8)return this.$message.error("错了哦,负责人字数超过8个字"),!1;if(!e.form.userCode)return this.$message.error("错了哦,手机号不能为空"),!1;if(!globalCheckPhone(e.form.userCode))return this.$message.error("错了哦,手机号格式不正确"),!1;var t={token:localStorage.token,shopName:e.form.shopName,location:e.form.location,name:e.form.name,userCode:e.form.userCode,shopid:e.form.shopid},o=i.stringify(t);Object(n["f"])(o).then((function(t){var o=t;0==o.Code?(e.dialogVisible=!1,e.getTableQuery(),e.$message({showClose:!0,message:"店面添加成功!",type:"success"})):e.$message.error(o.Memo)}))},delList:function(){var e=this,t=this;if(!this.multipleSelection.length)return t.$message({showClose:!0,message:"错了哦,需要先选中至少一条记录",type:"error"}),!1;if(1!=this.multipleSelection.length)return t.$message({showClose:!0,message:"错了哦,只能选中一条记录",type:"error"}),!1;var o=t.multipleSelection[0].Id,a={token:localStorage.token,detectorid:o,status:9},r=i.stringify(a);this.$confirm("此操作将永久删除该店面, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(n["f"])(r).then((function(e){var o=e;0==o.Code?(t.$message({showClose:!0,message:"选中的店面已删除!",type:"success"}),t.getTableQuery()):t.$message.error(o.Memo)}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},clearForm:function(){this.form.shopName="",this.form.location="",this.form.name="",this.form.userCode="",this.form.shopId=""},addAdmin:function(){this.clearForm(),this.dialogVisible=!0,this.dialogTitle="新增店面"},editList:function(){var e=this;if(!this.multipleSelection.length)return e.$message({showClose:!0,message:"错了哦,需要先选中至少一条记录",type:"error"}),!1;if(1!=this.multipleSelection.length)return e.$message({showClose:!0,message:"错了哦,只能选中一条记录",type:"error"}),!1;this.clearForm();var t=e.multipleSelection[0];this.form.shopName=t.shopName,this.form.location=t.location,this.form.name=t.name,this.form.userCode=t.userCode,this.form.shopId=t.Id,this.dialogVisible=!0,this.dialogTitle="编辑店面"},handleSelectionChange:function(e){this.multipleSelection=e},query:function(){this.getTableQuery(),this.$message.success("查询完毕")},getTableQuery:function(){var e=this;e.loading=!0;var t={token:localStorage.token,supregionid:0,regionid:this.panel.regionid,comid:1,tagname:e.panel.tagname,start:1,tableMax:9999},o=i.stringify(t);Object(n["g"])(o).then((function(t){var o=t;0==o.Code?(e.loading=!1,o.Rs?(e.allTableData=o.Rs,e.recordsTotal=o.Rs.length):(e.allTableData=[],e.recordsTotal=0),e.setPaginations()):e.$message.error(o.Memo)}))},setPaginations:function(){var e=this;e.pageination.total=e.recordsTotal,e.tableData=e.allTableData.filter((function(t,o){return o<e.pageination.pageItem}))},handleSizeChange:function(){var e=this;e.tableData=e.allTableData.filter((function(t,o){return o<e.pageination.pageItem})),e.draw=e.pageination.pageItem,e.getTableQuery()},pageChange:function(e){for(var t=this,o=t.pageination.pageItem*(e-1),a=t.pageination.pageItem*e,r=[],n=o;n<a;n++)t.allTableData[n]&&r.push(t.allTableData[n]),this.tableData=r;t.start=o*t.draw,t.getTableQuery()},sortChange:function(e){console.log(e)},filterFmtDate:function(e,t,o){return globalfmtDate(o,11)},filterMoney:function(e,t,o){return parseFloat(o).toFixed(2)}}},s=l,c=(o("ddfa"),o("9ca4")),u=Object(c["a"])(s,a,r,!1,null,"2f6fc357",null);t["default"]=u.exports},dbb3:function(e,t,o){"use strict";var a=o("1c8b"),r=o("5dfd").filter,n=o("1ea7"),i=o("ff9c"),l=n("filter"),s=i("filter");a({target:"Array",proto:!0,forced:!l||!s},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},ddfa:function(e,t,o){"use strict";var a=o("f688"),r=o.n(a);r.a},e1d9:function(e,t,o){var a=o("2118");e.exports=function(e){if("number"!=typeof e&&"Number"!=a(e))throw TypeError("Incorrect invocation");return+e}},f688:function(e,t,o){},ff9c:function(e,t,o){var a=o("1e2c"),r=o("efe2"),n=o("faa8"),i=Object.defineProperty,l={},s=function(e){throw e};e.exports=function(e,t){if(n(l,e))return l[e];t||(t={});var o=[][e],c=!!n(t,"ACCESSORS")&&t.ACCESSORS,u=n(t,0)?t[0]:s,f=n(t,1)?t[1]:void 0;return l[e]=!!o&&!r((function(){if(c&&!a)return!0;var e={length:-1};c?i(e,1,{enumerable:!0,get:s}):e[1]=1,o.call(e,u,f)}))}}}]);
- //# sourceMappingURL=chunk-d47088ca.bc76a5ee.js.map
|