1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0d71"],{0:function(e,t){},"1QAu":function(e,t,a){"use strict";a.d(t,"b",function(){return i}),a.d(t,"a",function(){return o});var n=a("clrU");function i(e){return Object(n.a)({url:"user/login-by-xtoken",method:"post",data:e})}function o(e){return Object(n.a)({url:"app/alarm-type",method:"post",data:e})}},"2v0J":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABL0lEQVQ4T82TMUsDQRBG315ArILE3DX+AXMX7FMoAVsbBRGyJzZBLKzE3gha2QkqqSxyZ3G1lY2thWKVzT+wyF4jWBm8kRRRo0GFNNl65s33hlnFmE+N2c+EA/y4eNBXFOXYTq17Pkr3V4UgKviinHVQDeDJaDv3HfIDMN8qVh2HukC3o9M9EnJ+z30GMqNt/k9Av8CPi01Q2zgskXGGkhtwdulJxWzZx6+QoQTl2FvLkDpwCSTAndG2UorcW8fpL4MXQe6NTg8HkCGAHxVbJkw3/dhromTG1OxGKfJWUSyCLCvII8ya8FNlCBBE7nU7tCvlK28hEzk12laDJF+gN3X0lpHIKw+5aS6MTsPRCWL3GGQHVAGkMYjqx94+yAlIG1RgtP0YPOGX+J+PNrbCO91gZxGqyWtHAAAAAElFTkSuQmCC"},"3GZP":function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])},"4FMy":function(e,t,a){var n=a("vIPk");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,a("SZ7m").default)("10c151d4",n,!0,{})},"4OFQ":function(e,t,a){var n=a("Vdfj");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,a("SZ7m").default)("5912c9c0",n,!0,{})},"526o":function(e,t,a){var n=a("VSms");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,a("SZ7m").default)("dd03b6ec",n,!0,{})},"5Slb":function(e,t,a){var n=a("Fvww");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,a("SZ7m").default)("d17f7c66",n,!0,{})},"66h/":function(e,t,a){var n=a("VkQJ");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,a("SZ7m").default)("15678bc3",n,!0,{})},"7zbF":function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])},"8rJo":function(e,t,a){"use strict";var n=a("GrAy");a.n(n).a},AA9d:function(e,t,a){"use strict";var n=a("Y3Pe");a.n(n).a},AMIE:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,"\n.selectAll {\n line-height: 36px;\n margin-right: 15px;\n}\n",""])},E1y3:function(e,t,a){var n=a("XuQd");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,a("SZ7m").default)("61d06e98",n,!0,{})},FYto:function(e,t,a){"use strict";var n=a("4OFQ");a.n(n).a},Fvww:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,"\n.label_title[data-v-83becff2] {\n width: 70px;\n margin-left: 10px;\n}\n.top[data-v-83becff2] {\n margin-top: 10px;\n}\n",""])},Gi9F:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,"\n.app-container[data-v-673e0034] {\n background-color: #f0f2f5;\n min-height: calc(100vh - 84px);\n padding: 0;\n}\n.custom-tree-node[data-v-673e0034] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n font-size: 12px;\n}\n.shop-info[data-v-673e0034] {\n font-size: 14px;\n}\n.base-info-op[data-v-673e0034] {\n margin-bottom: 10px;\n border-bottom: 1px solid #ebeef5;\n padding-bottom: 10px;\n}\n.line-group-info[data-v-673e0034] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n.group-item[data-v-673e0034] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n margin-right: 40px;\n margin-bottom: 10px;\n}\n.item-label[data-v-673e0034] {\n padding-right: 10px;\n font-weight: bold;\n}\n.form-item[data-v-673e0034] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n justify-items: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n margin-bottom: 30px;\n}\n.f-item-label[data-v-673e0034] {\n margin-right: 20px;\n white-space: nowrap;\n font-weight: bold;\n}\n.user-list-tree[data-v-673e0034] {\n position: relative;\n width: 50%;\n z-index: 9999;\n}\n.tree-pannel[data-v-673e0034] {\n position: absolute;\n width: 100%;\n border: 1px solid #dcdfe6;\n border-top: none;\n}\n.el-form-item[data-v-673e0034] {\n margin-bottom: 10px;\n}\n.test[data-v-673e0034] {}\n.left-tree-group[data-v-673e0034] {\n height: 90vh;\n overflow-y: scroll;\n}\n.battery-img[data-v-673e0034] {\n position: relative;\n width: 100px;\n height: 50px;\n background-size: 100% 100%;\n background-repeat: no-repeat;\n margin: 0 auto;\n}\n.battery-soc[data-v-673e0034] {\n position: absolute;\n top: 10%;\n left: 7%;\n height: 80%;\n background-color: #0CC191;\n}\n.battery-label[data-v-673e0034] {\n font-size: 14px;\n font-weight: bold;\n width: 100%;\n line-height: 20px;\n text-align: center;\n z-index: 20;\n position: absolute;\n top: 10px;\n}\n.battery-state[data-v-673e0034] {\n font-size: 6px;\n line-height: 12px;\n margin: 0 auto;\n width: 100%;\n text-align: center;\n bottom: 5px;\n z-index: 20;\n position: absolute;\n}\n.flex-row-middle[data-v-673e0034] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.card-img[data-v-673e0034] {\n width: 50px;\n height: 50px;\n cursor: pointer;\n}\n.pre-img[data-v-673e0034] {\n width: 100%;\n}\n.op-btn[data-v-673e0034] {\n font-size: 14px;\n cursor: pointer;\n color: #ff5c16;\n}\n.el-icon-caret-left[data-v-673e0034] {\n margin-left: 5px;\n}\n.tips-color[data-v-673e0034] {\n color: #ff5c16;\n}\n.same-battery-list[data-v-673e0034] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n.function1[data-v-673e0034] .el-form-item__label,\n.function2[data-v-673e0034] .el-form-item__label,\n.function3[data-v-673e0034] .el-form-item__label {\n width: 80px;\n text-align: right;\n}\n.link-type[data-v-673e0034] {\n color: #337ab7;\n}\n.link-red-type[data-v-673e0034] {\n color: #ff5c16;\n}\n.operationRecords[data-v-673e0034] {\n color: #409EFF;\n}\n.timeStyle[data-v-673e0034] {\n display: inline-block;\n font-size: 16px;\n color: #ec4b4b;\n margin: 4px 10px;\n}\n.minfondsize[data-v-673e0034] {\n font-size: smaller;\n color: #9b9fa7;\n padding: 13px;\n}\n",""])},GrAy:function(e,t,a){var n=a("erK2");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,a("SZ7m").default)("db9de972",n,!0,{})},HxCn:function(e,t,a){var n=a("Rltu");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,a("SZ7m").default)("7b004472",n,!0,{})},MSNs:function(e,t,a){"use strict";a.d(t,"a",function(){return i}),a.d(t,"b",function(){return o});var n=a("t3Un");function i(){return Object(n.a)({url:"?r=qiniu/token-v2",method:"get"})}function o(){return Object(n.a)({url:"?r=qiniu/token-v3",method:"get"})}},PRnV:function(e,t,a){"use strict";var n=a("HxCn");a.n(n).a},Pc0J:function(e,t,a){var n=a("eAUQ");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,a("SZ7m").default)("2b27ef26",n,!0,{})},RAQ3:function(e,t,a){"use strict";var n=a("zgit");a.n(n).a},Rase:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,"\n.tips[data-v-2f98f25f] {\n color: red\n}\n.mark[data-v-2f98f25f] {\n color: #e6a23c;\n font-size: 12px;\n}\n.blue[data-v-2f98f25f] {\n color: #409EFF;\n}\n",""])},Rltu:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])},SsMH:function(e,t,a){"use strict";var n=a("bCxp");a.n(n).a},VSms:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])},VcBk:function(e,t,a){"use strict";var n=a("YM9J");a.n(n).a},Vdfj:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,"\n.scrollbar-horizontal[data-v-12bf0d8c] {\n position: fixed;\n opacity: 1;\n width: auto;\n bottom: 10px;\n margin: 0 100px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n height: 10px;\n z-index: 2000;\n}\n",""])},VkQJ:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,"\n.style_deg[data-v-bc8def2a] .el-slider__button {\n\tborder: 2px solid rgb(39, 174, 56);\n}\n.style_deg[data-v-bc8def2a] .el-slider__bar {\n\tbackground-color: rgb(39, 174, 56);\n}\n.left_15[data-v-bc8def2a] {\n\tmargin-left: 30px;\n}\n",""])},"Wp+s":function(e,t,a){"use strict";a.r(t);var n=a("YEIV"),i=a.n(n),o=a("P2sY"),r=a.n(o),s=a("gDS+"),l=a.n(s),c=a("QbLZ"),d=a.n(c),p=a("14Xm"),_=a.n(p),m=a("D3Ub"),u=a.n(m),h=a("4d7F"),f=a.n(h);function b(e){return new f.a(function(t,a){if(void 0!==window.BMap)return t(window.BMap),!0;window.onBMapCallback=function(){t(window.BMap)};var n=document.createElement("script");n.type="text/javascript",n.src="https://api.map.baidu.com/api?v=3.0&ak="+e+"&callback=onBMapCallback",n.onerror=a,document.head.appendChild(n)})}var v={name:"MapDialog",components:{},props:{},data:function(){return{form:{address:"",addrPoint:{lng:0,lat:0}},map:"",mk:""}},watch:{},mounted:function(){var e=this;return u()(_.a.mark(function t(){return _.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,b("gz5WB2vhMkIDm0oNbA9D6azgGqyrg067");case 2:e.initMap();case 3:case"end":return t.stop()}},t,e)}))()},methods:{initMap:function(){var e=this;this.map=new BMap.Map("map-container",{enableMapClick:!1});var t=new BMap.Point(113.30765,23.12005);this.map.centerAndZoom(t,19),this.mk=new BMap.Marker(t,{enableDragging:!0}),this.map.addOverlay(this.mk),this.mk.addEventListener("dragend",function(t){e.getAddrByPoint(t.point)});var a=new BMap.NavigationControl({anchor:BMAP_ANCHOR_TOP_RIGHT,type:BMAP_NAVIGATION_CONTROL_SMALL});this.map.addControl(a);var n=new BMap.GeolocationControl({anchor:BMAP_ANCHOR_BOTTOM_LEFT});n.addEventListener("locationSuccess",function(t){e.getAddrByPoint(t.point)}),n.addEventListener("locationError",function(e){alert(e.message)}),this.map.addControl(n),this.geolocation(),this.map.addEventListener("click",function(t){e.getAddrByPoint(t.point)}),this.map.addEventListener("dragend",function(t){var a=e.map.getCenter();e.getAddrByPoint(a)})},geolocation:function(){var e=this,t=new BMap.Geolocation;t.getCurrentPosition(function(t){this.getStatus()==BMAP_STATUS_SUCCESS&&(e.mk.setPosition(t.point),e.map.panTo(t.point))},{enableHighAccuracy:!0})},querySearchAsync:function(e,t){var a={onSearchComplete:function(e){var a=[];if(n.getStatus()==BMAP_STATUS_SUCCESS){for(var i=0;i<e.getCurrentNumPois();i++)a.push(e.getPoi(i));t(a)}else t(a)}},n=new BMap.LocalSearch(this.map,a);n.search(e)},handleSelect:function(e){this.form.address=e.address+e.title,this.form.addrPoint=e.point;var t={address:this.form.address,point:this.bMapTransQQMap(this.form.addrPoint),city:e.city};this.$emit("lngLat",t),this.map.clearOverlays(),this.mk=new BMap.Marker(e.point),this.map.addOverlay(this.mk),this.map.panTo(e.point)},getAddrByPoint:function(e){var t=this;(new BMap.Geocoder).getLocation(e,function(a){t.mk.setPosition(e),t.map.panTo(e),t.form.address=a.address,t.form.addrPoint=e;var n={cityName:a.addressComponents.city,address:t.form.address,point:t.bMapTransQQMap(t.form.addrPoint)};t.$emit("lngLat",n)})},bMapTransQQMap:function(e){var t=52.35987755982988,a=e.lng-.0065,n=e.lat-.006,o=Math.sqrt(a*a+n*n)-2e-5*Math.sin(n*t),r=Math.atan2(n,a)-3e-6*Math.cos(a*t),s=o*Math.cos(r),l=o*Math.sin(r),c=i()({lng:0},"lng",0);return c.lng=s,c.lat=l,c}}},y=(a("wTOG"),a("KHd+")),g=Object(y.a)(v,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-autocomplete",{staticStyle:{width:"100%"},attrs:{"popper-class":"autoAddressClass","fetch-suggestions":e.querySearchAsync,"trigger-on-focus":!1,placeholder:"搜索地点",clearable:""},on:{select:e.handleSelect},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.item;return[a("i",{staticClass:"el-icon-search fl mgr10"}),e._v(" "),a("div",{staticStyle:{overflow:"hidden"}},[a("div",{staticClass:"title"},[e._v(e._s(n.title))]),e._v(" "),a("span",{staticClass:"address ellipsis"},[e._v(e._s(n.address))])])]}}]),model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}}),e._v(" "),a("div",{staticStyle:{width:"100%",height:"500px"},attrs:{id:"map-container"}})],1)},[],!1,null,null,null);g.options.__file="index.vue";var x=g.exports,I=a("L2JU"),F=a("JEAp"),k=a.n(F),S=a("fDnD"),w=a.n(S),C=a("ZY9c"),B=a.n(C),$=a("pG51"),L={name:"Scrollbar",props:{size:{type:Number,default:0},page:{type:Number,default:0},value:{type:Number,default:0}},data:function(){return{move:0,lastX:0}},computed:{barWidth:function(){return 100*this.page/this.size}},watch:{value:{deep:!0,handler:function(e){this.move=e*(this.$refs.Scrollbar.offsetWidth-this.$refs.bar.offsetWidth)/(this.size-this.page)}}},mounted:function(){},beforeDestroy:function(){document.removeEventListener("mouseup",this.mouseUpDocumentHandler,!1)},methods:{clickThumbHandler:function(e){this.lastX=e.clientX,document.addEventListener("mousemove",this.mouseMoveDocumentHandler),document.addEventListener("mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){var t=this.move+e.clientX-this.lastX;t<0?this.move=0:t>this.$refs.Scrollbar.offsetWidth-this.$refs.bar.offsetWidth?this.move=this.$refs.Scrollbar.offsetWidth-this.$refs.bar.offsetWidth:this.move=t,this.$emit("input",this.move*(this.size-this.page)/(this.$refs.Scrollbar.offsetWidth-this.$refs.bar.offsetWidth)),this.lastX=e.clientX},mouseUpDocumentHandler:function(e){document.removeEventListener("mousemove",this.mouseMoveDocumentHandler,!1),document.onselectstart=null}}},z=(a("FYto"),Object(y.a)(L,function(){var e=this.$createElement,t=this._self._c||e;return t("div",{ref:"Scrollbar",staticClass:"el-scrollbar__bar is-horizontal scrollbar-horizontal"},[t("div",{ref:"bar",staticClass:"el-scrollbar__thumb",style:{width:this.barWidth+"%",transform:"translateX("+this.move+"px)"},on:{mousedown:this.clickThumbHandler}})])},[],!1,null,"12bf0d8c",null));z.options.__file="index.vue";var E=z.exports;var T=a("wk8/"),A=a("bcVu"),D=a("t3Un");var O=a("vDqi"),R=a.n(O),U="http://zd2.jybms.cn/";function j(e,t){!function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:123456,n=U+"/GetDateServices.asmx/loginSystem?LoginName="+e+"&LoginPassword="+a+"&LoginType=USER&language=en&ISMD5=0&timeZone=+08&apply=APP";R.a.get(n,{headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8"}}).then(function(e){"false"!==e.data.success&&200===parseInt(e.data.errorCode)&&t(e.data)})}(e,function(a){var n=U+"/GetDateServices.asmx/GetDate?method=SendCommands&macid="+e+"&cmd=BMS_REFRESH&mds="+a.mds+"&pwd=123456";R.a.get(n,{headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8"}}).then(function(e){t(a)})})}function N(e,t){j(e,function(a){var n=U+"/GetDateServices.asmx/GetDate?method=BMSrealTimeState&mds="+a.mds+"&macid="+e;R.a.get(n,{headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8"}}).then(function(e){"false"!==e.data.success&&200===parseInt(e.data.errorCode)&&t(e.data.data)}),setTimeout(function(){R.a.get(n,{headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8"}}).then(function(e){"false"!==e.data.success&&200===parseInt(e.data.errorCode)&&t(e.data.data)})},5e3)})}var V=a("wwhB"),M=a("j3k1"),q=a("NOnC"),P={name:"invite",props:{showTime:{type:Number,default:0},width:{type:String,default:"900px"},battery_sns:{type:Array,default:[]},visible:{type:Boolean,default:!1}},components:{},data:function(){return{days:1,isShow:!1,loading:!1,batList:[]}},watch:{showTime:function(){},battery_sns:{deep:!0,handler:function(e){e&&(this.batList=e)}}},computed:d()({},Object(I.b)(["userInfo"])),created:function(){this.DateFormat=q.a},mounted:function(){},beforeDestroy:function(){},methods:{clickSubmitBatchDays:function(){var e=this,t={battery_sns:this.batList,days:this.days};this.loading=!0,Object(A.d)(t).then(function(t){200===t.data.code?(e.$message.success("赠送成功"),e.$emit("handleRefreshData",1),e.$emit("update:visible",!1)):e.$message.error(t.data.msg),e.loading=!1})}}},Q=(a("qF71"),Object(y.a)(P,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"modal-append-to-body":!1,title:"批量赠送天数",visible:e.visible,width:e.width,"close-on-click-modal":!1,"before-close":function(){e.$emit("update:visible",!1)}},on:{"update:visible":function(t){e.visible=t}}},[a("div",[a("el-form",{ref:"batchEditBatteryForm",staticStyle:{"margin-left":"50px"},attrs:{"label-position":"left","label-width":"160px",size:"small"}},[a("el-form-item",{attrs:{label:"设备信息",prop:"car_icon"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"","default-first-option":"",placeholder:"请选择"},model:{value:e.batList,callback:function(t){e.batList=t},expression:"batList"}},e._l(e.batList,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})),e._v(" "),a("span",{staticStyle:{"font-size":"12px"}},[e._v("共 "+e._s(e.batList.length)+" 个")])],1),e._v(" "),a("el-form-item",{attrs:{label:"赠送天数",prop:"car_icon"}},[a("el-input",{staticStyle:{width:"80px"},attrs:{oninput:"if(value<=0)value=1",placeholder:"",size:"mini"},model:{value:e.days,callback:function(t){e.days=t},expression:"days"}})],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.$emit("update:visible",!1)}}},[e._v(e._s(e.$t("operate.cancel")))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.clickSubmitBatchDays()}}},[e._v(e._s(e.$t("operate.add")))])],1)])],1)},[],!1,null,"83becff2",null));Q.options.__file="index.vue";var G=Q.exports,H={name:"Lakala",props:{shopId:{type:String,default:""}},data:function(){return{commissionLoading:!1,payInfoLoading:!1,uploadLoading:!1,cert:!1,pem:!1,isEdit:!1,payInfoForm:{},payInfoFormRules:{},commissionFormRules:{}}},computed:d()({},Object(I.b)(["userInfo"])),watch:{shopId:{deep:!0,immediate:!0,handler:function(e){null!==e&&(this.payInfoForm.shop_id=e,this.loadXcxInfo("load"))}}},created:function(){},methods:{handleSaveWxConfig:function(){var e=this;this.$confirm("修改将影响支付,请谨慎操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.loadXcxInfo("save")}).catch(function(){e.$message({type:"info",message:"已取消"})})},loadXcxInfo:function(e){var t=this;this.payInfoLoading=!0,this.payInfoForm.cmd=e,Object(T.ib)(this.payInfoForm).then(function(a){t.payInfoLoading=!1,200===a.data.code?"save"===e&&t.$message.success("保存成功"):t.$message.error(a.data.msg)})},handleSaveCommissionConfig:function(){var e=this;this.$confirm("修改将影响分账,请谨慎操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.loadCommissionInfo("save")}).catch(function(){e.$message({type:"info",message:"已取消"})})},loadCommissionInfo:function(){var e=this;this.commissionLoading=!0,Object(T.ib)(this.commissionForm).then(function(t){e.commissionLoading=!1,200===t.data.code?e.$message.success("保存成功"):e.$message.error(t.data.msg)})},handleChangePrivate:function(e,t){this.loadFile(e,t,0)},handleChangeCert:function(e,t){this.loadFile(e,t,1)},loadFile:function(e,t,a){t.length>1&&"fail"!==e.status?t.splice(0,1):"fail"===e.status&&t.splice(0,1);var n=new FileReader;if("undefined"!=typeof FileReader){var i=this;n.readAsDataURL(e.raw),n.onload=function(e){i.uploadLoading=!1,0==a&&(i.payInfoForm.merchant_private_key=n.result.split(",")[1],i.pem=!0),1==a&&(i.payInfoForm.lkl_certificate=n.result.split(",")[1],i.cert=!0)}}else this.$message({type:"info",message:"您的浏览器不支持文件读取。"})},uploadPem:function(e){this.uploadLoading=!0},uploadCert:function(e){this.uploadLoading=!0}}},W=(a("SsMH"),Object(y.a)(H,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticStyle:{"margin-bottom":"10px"}},[a("span",{staticStyle:{color:"#606266","font-size":"14px","font-weight":"700","margin-right":"15px"}},[e._v("编辑")]),e._v(" "),a("el-switch",{attrs:{size:"mini"},model:{value:e.isEdit,callback:function(t){e.isEdit=t},expression:"isEdit"}})],1),e._v(" "),a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.payInfoLoading,expression:"payInfoLoading"}],staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("支付配置")])]),e._v(" "),a("el-form",{ref:"payInfoForm",staticStyle:{"margin-left":"0px"},attrs:{model:e.payInfoForm,rules:e.payInfoFormRules,disabled:!e.isEdit,"label-position":"left","label-width":"200px",mini:"size"}},[a("el-form-item",{attrs:{label:"商户APPID"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.payInfoForm.appid,callback:function(t){e.$set(e.payInfoForm,"appid",t)},expression:"payInfoForm.appid"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"私钥证书(.pem)"}},[a("el-upload",{attrs:{"http-request":e.uploadPem,"show-file-list":!1,"on-change":e.handleChangePrivate,action:""}},[a("el-button",{attrs:{loading:e.uploadLoading,size:"small",type:"primary"}},[e._v("点击上传")]),e._v(" "),a("i",{directives:[{name:"show",rawName:"v-show",value:e.pem,expression:"pem"}],staticClass:"el-icon-circle-check",staticStyle:{color:"#67c23a"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"平台公钥(.cer)"}},[a("el-upload",{attrs:{"http-request":e.uploadCert,"show-file-list":!1,"on-change":e.handleChangeCert,action:""}},[a("el-button",{attrs:{loading:e.uploadLoading,size:"small",type:"primary"}},[e._v("点击上传")]),e._v(" "),a("i",{directives:[{name:"show",rawName:"v-show",value:e.cert,expression:"cert"}],staticClass:"el-icon-circle-check",staticStyle:{color:"#67c23a"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"证书序列号",prop:"mch_serial_no"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.payInfoForm.mch_serial_no,callback:function(t){e.$set(e.payInfoForm,"mch_serial_no",t)},expression:"payInfoForm.mch_serial_no"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商户号",prop:"merchant_no"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.payInfoForm.merchant_no,callback:function(t){e.$set(e.payInfoForm,"merchant_no",t)},expression:"payInfoForm.merchant_no"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.handleSaveWxConfig}},[e._v("确定")])],1)],1)],1)],1)},[],!1,null,"22835bee",null));W.options.__file="index.vue";var J=W.exports,X={name:"paypal",props:{shopId:{type:String,default:""}},data:function(){return{commissionLoading:!1,payInfoLoading:!1,isEdit:!1,payInfoForm:{},payInfoFormRules:{}}},computed:d()({},Object(I.b)(["userInfo"])),watch:{shopId:{deep:!0,immediate:!0,handler:function(e){null!==e&&(this.payInfoForm.shop_id=e,this.loadPaypalInfo())}}},created:function(){},methods:{handleSavePaypalConfig:function(){var e=this;this.$confirm("修改将影响支付,请谨慎操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.loadSetPaypalInfo()}).catch(function(){e.$message({type:"info",message:"已取消"})})},loadSetPaypalInfo:function(){var e=this;this.payInfoLoading=!0,Object(T.O)(this.payInfoForm).then(function(t){e.payInfoLoading=!1,200===t.data.code?e.$message.success("保存成功"):e.$message.error(t.data.msg)})},loadPaypalInfo:function(){var e=this;this.payInfoLoading=!0,Object(T.t)(this.payInfoForm).then(function(t){e.payInfoLoading=!1,200===t.data.code?e.payInfoForm=t.data.data.config:e.$message.error(t.data.msg)})}}},K=(a("a3IR"),Object(y.a)(X,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticStyle:{"margin-bottom":"10px"}},[a("span",{staticStyle:{color:"#606266","font-size":"14px","font-weight":"700","margin-right":"15px"}},[e._v("编辑")]),e._v(" "),a("el-switch",{attrs:{size:"mini"},model:{value:e.isEdit,callback:function(t){e.isEdit=t},expression:"isEdit"}})],1),e._v(" "),a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.payInfoLoading,expression:"payInfoLoading"}],staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("支付配置")])]),e._v(" "),a("el-form",{ref:"payInfoForm",staticStyle:{"margin-left":"0px"},attrs:{model:e.payInfoForm,rules:e.payInfoFormRules,disabled:!e.isEdit,"label-position":"left","label-width":"200px",mini:"size"}},[a("el-form-item",{attrs:{label:"paypal ID"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.payInfoForm.client_id,callback:function(t){e.$set(e.payInfoForm,"client_id",t)},expression:"payInfoForm.client_id"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"密钥"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.payInfoForm.secret,callback:function(t){e.$set(e.payInfoForm,"secret",t)},expression:"payInfoForm.secret"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"回调ID"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.payInfoForm.web_hook_id,callback:function(t){e.$set(e.payInfoForm,"web_hook_id",t)},expression:"payInfoForm.web_hook_id"}})],1),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.handleSavePaypalConfig}},[e._v("确定")])],1)],1)],1)},[],!1,null,"271fcf80",null));K.options.__file="index.vue";var Y={name:"ThirdPartyPay",components:{lakalaPay:J,paypalPay:K.exports},props:{shopId:{type:String,default:""},role:{type:Number,default:100}},data:function(){return{shop_id:"",activeName:"lakala",payInfoForm:{},isEdit:!1,wxapp:!1,aliapp:!1}},computed:d()({},Object(I.b)(["userInfo"])),watch:{shopId:{deep:!0,immediate:!0,handler:function(e){null!==e&&(this.shop_id=e)}}},created:function(){},methods:{}},Z=(a("8rJo"),Object(y.a)(Y,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-tabs",{directives:[{name:"loading",rawName:"v-loading",value:e.batteryLoading,expression:"batteryLoading"}],attrs:{id:"step_wallet",type:"border-card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{name:"lakala",label:"拉卡拉支付"}},[a("lakala-pay",{attrs:{"shop-id":e.shop_id+""}})],1),e._v(" "),a("el-tab-pane",{attrs:{name:"paypal",label:"paypal支付"}},[a("paypal-pay",{attrs:{"shop-id":e.shop_id+""}})],1)],1)],1)},[],!1,null,"a232c256",null));Z.options.__file="index.vue";var ee=Z.exports,te={name:"XcxInfo",props:{shopId:{type:String,default:""},role:{type:Number,default:100}},data:function(){return{isEdit:!1,versionList:[],xcxInfoForm:{shop_id:"",xcx_appid:"",xcx_appsecret:"",mch_id:"",mech_key:"",pay_body:"",notify_url:"",template_msg_dev_alarm_id:"",template_msg_expire_id:"",template_msg_order_id:"",template_msg_identity_auth_id:"",template_version:0,business_domain:"",is_auth:0,pay_type:0,style_deg:0,need_battery_pile:0},xcxInfoFormRules:{},uploadLoading:!1,cert:!1,key:!1}},watch:{shopId:{deep:!0,immediate:!0,handler:function(e){null!==e&&"undefined"!==e&&(this.xcxInfoForm.shop_id=e,this.loadXcxInfo("load"),this.loadPemExists())}}},created:function(){this.loadTemplateVersion()},methods:{handleSaveWxConfig:function(){var e=this;this.$confirm("修改小程序账号将影响微信支付和消息通知,请谨慎操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.loadXcxInfo("save")}).catch(function(){e.$message({type:"info",message:"已取消"})})},loadXcxInfo:function(e){var t=this;-1===this.role&&(this.xcxInfoForm.cmd=e,Object(T.ub)(this.xcxInfoForm).then(function(a){200===a.data.code?(t.xcxInfoForm=a.data.data.XcxInfo,"save"===e&&t.$message.success("成功保存")):t.$message.error(a.data.msg)}))},loadTemplateVersion:function(){var e=this;Object(T.S)({}).then(function(t){200===t.data.code?e.versionList=t.data.data:e.$message.error(t.data.msg)})},loadPemExists:function(){var e=this;this.uploadLoading=!0,Object(T.D)({shop_id:this.shopId}).then(function(t){200===t.data.code?(e.cert=t.data.data.cert,e.key=t.data.data.key):e.$message.error(t.data.msg),e.uploadLoading=!1,e.$forceUpdate()})},uploadCert:function(e){var t=this;this.uploadLoading=!0,this.$forceUpdate();var a=e.file,n=new FormData;n.append("file",a),Object(T.U)({shop_id:this.shopId},n).then(function(e){200===e.data.code?t.$message.success("上传成功"):t.$message.error(e.data.msg),t.loadPemExists()})},uploadKey:function(e){var t=this;this.uploadLoading=!0,this.$forceUpdate();var a=e.file,n=new FormData;n.append("file",a),Object(T.V)({shop_id:this.shopId},n).then(function(e){200===e.data.code?t.$message.success("上传成功"):t.$message.error(e.data.msg),t.loadPemExists()})}}},ae=(a("qlWw"),Object(y.a)(te,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticStyle:{"margin-bottom":"10px"}},[a("span",{staticStyle:{color:"#606266","font-size":"14px","font-weight":"700","margin-right":"15px"}},[e._v("编辑")]),e._v(" "),a("el-switch",{attrs:{size:"mini"},model:{value:e.isEdit,callback:function(t){e.isEdit=t},expression:"isEdit"}})],1),e._v(" "),a("el-form",{ref:"xcxInfoForm",staticStyle:{"margin-left":"0px"},attrs:{model:e.xcxInfoForm,rules:e.xcxInfoFormRules,disabled:!e.isEdit,"label-position":"left","label-width":"200px",mini:"size"}},[a("el-form-item",{attrs:{label:"AppID(小程序ID)",prop:"xcx_appid"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.xcxInfoForm.xcx_appid,callback:function(t){e.$set(e.xcxInfoForm,"xcx_appid",t)},expression:"xcxInfoForm.xcx_appid"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"AppSecret(小程序密钥)",prop:"xcx_appsecret"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.xcxInfoForm.xcx_appsecret,callback:function(t){e.$set(e.xcxInfoForm,"xcx_appsecret",t)},expression:"xcxInfoForm.xcx_appsecret"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"微信支付商户号",prop:"mch_id"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.xcxInfoForm.mch_id,callback:function(t){e.$set(e.xcxInfoForm,"mch_id",t)},expression:"xcxInfoForm.mch_id"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"微信商户号API密钥",prop:"mch_id"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.xcxInfoForm.mech_key,callback:function(t){e.$set(e.xcxInfoForm,"mech_key",t)},expression:"xcxInfoForm.mech_key"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商品描述",prop:"pay_body"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.xcxInfoForm.pay_body,callback:function(t){e.$set(e.xcxInfoForm,"pay_body",t)},expression:"xcxInfoForm.pay_body"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"小程序订阅消息模版版本号",prop:"template_version"}},[a("el-select",{attrs:{placeholder:"请选择",size:"mini"},model:{value:e.xcxInfoForm.template_version,callback:function(t){e.$set(e.xcxInfoForm,"template_version",t)},expression:"xcxInfoForm.template_version"}},e._l(e.versionList,function(e,t){return a("el-option",{key:e.key,attrs:{label:e.value,value:e.key}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"小程序设备报警通知ID",prop:"template_msg_dev_alarm_id"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.xcxInfoForm.template_msg_dev_alarm_id,callback:function(t){e.$set(e.xcxInfoForm,"template_msg_dev_alarm_id",t)},expression:"xcxInfoForm.template_msg_dev_alarm_id"}})],1),e._v(" "),2==e.xcxInfoForm.template_version?a("el-form-item",{staticClass:"left_15",attrs:{label:"报警电池编号",prop:"template_dev_alarm_battery_sn"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入类似对应字段:thing1"},model:{value:e.xcxInfoForm.template_dev_alarm_battery_sn,callback:function(t){e.$set(e.xcxInfoForm,"template_dev_alarm_battery_sn",t)},expression:"xcxInfoForm.template_dev_alarm_battery_sn"}})],1):e._e(),e._v(" "),2==e.xcxInfoForm.template_version?a("el-form-item",{staticClass:"left_15",attrs:{label:"报警类型",prop:"template_dev_alarm_type"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入类似对应字段:thing2"},model:{value:e.xcxInfoForm.template_dev_alarm_type,callback:function(t){e.$set(e.xcxInfoForm,"template_dev_alarm_type",t)},expression:"xcxInfoForm.template_dev_alarm_type"}})],1):e._e(),e._v(" "),2==e.xcxInfoForm.template_version?a("el-form-item",{staticClass:"left_15",attrs:{label:"报警描述内容",prop:"template_dev_alarm_desc"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入类似对应字段:thing4"},model:{value:e.xcxInfoForm.template_dev_alarm_desc,callback:function(t){e.$set(e.xcxInfoForm,"template_dev_alarm_desc",t)},expression:"xcxInfoForm.template_dev_alarm_desc"}})],1):e._e(),e._v(" "),2==e.xcxInfoForm.template_version?a("el-form-item",{staticClass:"left_15",attrs:{label:"报警通知时间",prop:"template_dev_alarm_date"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入类似对应字段:date3"},model:{value:e.xcxInfoForm.template_dev_alarm_date,callback:function(t){e.$set(e.xcxInfoForm,"template_dev_alarm_date",t)},expression:"xcxInfoForm.template_dev_alarm_date"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"小程序租赁到期提醒ID",prop:"template_msg_expire_id"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.xcxInfoForm.template_msg_expire_id,callback:function(t){e.$set(e.xcxInfoForm,"template_msg_expire_id",t)},expression:"xcxInfoForm.template_msg_expire_id"}})],1),e._v(" "),2==e.xcxInfoForm.template_version?a("el-form-item",{staticClass:"left_15",attrs:{label:"过期描述内容",prop:"template_expire_desc"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入类似对应字段:thing1"},model:{value:e.xcxInfoForm.template_expire_desc,callback:function(t){e.$set(e.xcxInfoForm,"template_expire_desc",t)},expression:"xcxInfoForm.template_expire_desc"}})],1):e._e(),e._v(" "),2==e.xcxInfoForm.template_version?a("el-form-item",{staticClass:"left_15",attrs:{label:"过期电池编号",prop:"template_expire_battery_sn"}},[a("el-input",{attrs:{placeholder:"请输入类似对应字段:thing4",size:"mini"},model:{value:e.xcxInfoForm.template_expire_battery_sn,callback:function(t){e.$set(e.xcxInfoForm,"template_expire_battery_sn",t)},expression:"xcxInfoForm.template_expire_battery_sn"}})],1):e._e(),e._v(" "),2==e.xcxInfoForm.template_version?a("el-form-item",{staticClass:"left_15",attrs:{label:"过期截止时间",prop:"template_expire_date"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入类似对应字段:date3"},model:{value:e.xcxInfoForm.template_expire_date,callback:function(t){e.$set(e.xcxInfoForm,"template_expire_date",t)},expression:"xcxInfoForm.template_expire_date"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"小程序下单成功通知ID",prop:"template_msg_order_id"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.xcxInfoForm.template_msg_order_id,callback:function(t){e.$set(e.xcxInfoForm,"template_msg_order_id",t)},expression:"xcxInfoForm.template_msg_order_id"}})],1),e._v(" "),2==e.xcxInfoForm.template_version?a("el-form-item",{staticClass:"left_15",attrs:{label:"订单编号",prop:"template_order_sn"}},[a("el-input",{attrs:{placeholder:"请输入类似对应字段:character_string4",size:"mini"},model:{value:e.xcxInfoForm.template_order_sn,callback:function(t){e.$set(e.xcxInfoForm,"template_order_sn",t)},expression:"xcxInfoForm.template_order_sn"}})],1):e._e(),e._v(" "),2==e.xcxInfoForm.template_version?a("el-form-item",{staticClass:"left_15",attrs:{label:"下单描述内容",prop:"template_order_desc"}},[a("el-input",{attrs:{placeholder:"请输入类似对应字段:thing11",size:"mini"},model:{value:e.xcxInfoForm.template_order_desc,callback:function(t){e.$set(e.xcxInfoForm,"template_order_desc",t)},expression:"xcxInfoForm.template_order_desc"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"小程序身份认证申请提醒ID",prop:"template_msg_identity_auth_id"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.xcxInfoForm.template_msg_identity_auth_id,callback:function(t){e.$set(e.xcxInfoForm,"template_msg_identity_auth_id",t)},expression:"xcxInfoForm.template_msg_identity_auth_id"}})],1),e._v(" "),2==e.xcxInfoForm.template_version?a("el-form-item",{staticClass:"left_15",attrs:{label:"认证类型",prop:"template_identity_auth_type"}},[a("el-input",{attrs:{placeholder:"请输入类似对应字段:thing1",size:"mini"},model:{value:e.xcxInfoForm.template_identity_auth_type,callback:function(t){e.$set(e.xcxInfoForm,"template_identity_auth_type",t)},expression:"xcxInfoForm.template_identity_auth_type"}})],1):e._e(),e._v(" "),2==e.xcxInfoForm.template_version?a("el-form-item",{staticClass:"left_15",attrs:{label:"认证描述内容",prop:"template_identity_auth_desc"}},[a("el-input",{attrs:{placeholder:"请输入类似对应字段:thing4",size:"mini"},model:{value:e.xcxInfoForm.template_identity_auth_desc,callback:function(t){e.$set(e.xcxInfoForm,"template_identity_auth_desc",t)},expression:"xcxInfoForm.template_identity_auth_desc"}})],1):e._e(),e._v(" "),2==e.xcxInfoForm.template_version?a("el-form-item",{staticClass:"left_15",attrs:{label:"认证结果",prop:"template_identity_auth_result"}},[a("el-input",{attrs:{placeholder:"请输入类似对应字段:phrase2",size:"mini"},model:{value:e.xcxInfoForm.template_identity_auth_result,callback:function(t){e.$set(e.xcxInfoForm,"template_identity_auth_result",t)},expression:"xcxInfoForm.template_identity_auth_result"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"小程序业务域名",prop:"business_domain"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.xcxInfoForm.business_domain,callback:function(t){e.$set(e.xcxInfoForm,"business_domain",t)},expression:"xcxInfoForm.business_domain"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用户需要身份认证",prop:"is_auth"}},[a("el-checkbox",{attrs:{"true-label":1,"false-label":2,checked:1==e.xcxInfoForm.is_auth},model:{value:e.xcxInfoForm.is_auth,callback:function(t){e.$set(e.xcxInfoForm,"is_auth",t)},expression:"xcxInfoForm.is_auth"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"支付类型",prop:"pay_type"}},[a("el-select",{attrs:{placeholder:"请选择",size:"mini"},model:{value:e.xcxInfoForm.pay_type,callback:function(t){e.$set(e.xcxInfoForm,"pay_type",t)},expression:"xcxInfoForm.pay_type"}},[a("el-option",{attrs:{value:0,label:"微信"}}),e._v(" "),a("el-option",{attrs:{value:1,label:"钱客多"}})],1)],1),e._v(" "),1==e.xcxInfoForm.pay_type?a("el-form-item",{attrs:{label:"OpenId",prop:"qkd_openid"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.xcxInfoForm.qkd_openid,callback:function(t){e.$set(e.xcxInfoForm,"qkd_openid",t)},expression:"xcxInfoForm.qkd_openid"}})],1):e._e(),e._v(" "),1==e.xcxInfoForm.pay_type?a("el-form-item",{attrs:{label:"Secret",prop:"qkd_secret"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.xcxInfoForm.qkd_secret,callback:function(t){e.$set(e.xcxInfoForm,"qkd_secret",t)},expression:"xcxInfoForm.qkd_secret"}})],1):e._e(),e._v(" "),1==e.xcxInfoForm.pay_type?a("el-form-item",{attrs:{label:"操作工号",prop:"qkd_useraccount"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.xcxInfoForm.qkd_useraccount,callback:function(t){e.$set(e.xcxInfoForm,"qkd_useraccount",t)},expression:"xcxInfoForm.qkd_useraccount"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"支付证书(.pem)"}},[a("el-upload",{attrs:{"http-request":e.uploadCert,"show-file-list":!1,action:""}},[a("el-button",{attrs:{loading:e.uploadLoading,size:"small",type:"primary"}},[e._v("点击上传")]),e._v(" "),a("i",{directives:[{name:"show",rawName:"v-show",value:e.cert,expression:"cert"}],staticClass:"el-icon-circle-check",staticStyle:{color:"#67c23a"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"支付证书密钥(.pem)"}},[a("el-upload",{attrs:{"http-request":e.uploadKey,"show-file-list":!1,action:""}},[a("el-button",{attrs:{loading:e.uploadLoading,size:"small",type:"primary"}},[e._v("点击上传")]),e._v(" "),a("i",{directives:[{name:"show",rawName:"v-show",value:e.key,expression:"key"}],staticClass:"el-icon-circle-check",staticStyle:{color:"#67c23a"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"appv3 密钥",prop:"mech_key_v3"}},[a("el-input",{staticStyle:{width:"350px"},attrs:{size:"mini"},model:{value:e.xcxInfoForm.mech_key_v3,callback:function(t){e.$set(e.xcxInfoForm,"mech_key_v3",t)},expression:"xcxInfoForm.mech_key_v3"}}),e._v(" "),a("span",{staticClass:"tips"},[e._v("商家支付到微信接口功能需要")])],1),e._v(" "),a("el-form-item",{attrs:{label:"证书序列号",prop:"mech_serial_no"}},[a("el-input",{staticStyle:{width:"350px"},attrs:{size:"mini"},model:{value:e.xcxInfoForm.mech_serial_no,callback:function(t){e.$set(e.xcxInfoForm,"mech_serial_no",t)},expression:"xcxInfoForm.mech_serial_no"}}),e._v(" "),a("span",{staticClass:"tips"},[e._v("商家支付到微信接口功能需要")])],1),e._v(" "),a("el-form-item",{attrs:{label:"样式",prop:"style_deg"}},[a("el-slider",{staticClass:"style_deg",style:{filter:"hue-rotate("+e.xcxInfoForm.style_deg+"deg)"},attrs:{max:360},model:{value:e.xcxInfoForm.style_deg,callback:function(t){e.$set(e.xcxInfoForm,"style_deg",t)},expression:"xcxInfoForm.style_deg"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"需要真人照片",prop:"is_auth"}},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:e.xcxInfoForm.need_real,callback:function(t){e.$set(e.xcxInfoForm,"need_real",t)},expression:"xcxInfoForm.need_real"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"需要车辆照片",prop:"need_car_img"}},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:e.xcxInfoForm.need_car_img,callback:function(t){e.$set(e.xcxInfoForm,"need_car_img",t)},expression:"xcxInfoForm.need_car_img"}}),e._v(" "),a("span",{staticStyle:{color:"#f56c6c","margin-left":"5px"}},[e._v("请升级微信小程序至4.1.20220823以后版本")])],1),e._v(" "),a("el-form-item",{attrs:{label:"需要安装后电瓶桩头照片",prop:"need_battery_pile"}},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:e.xcxInfoForm.need_battery_pile,callback:function(t){e.$set(e.xcxInfoForm,"need_battery_pile",t)},expression:"xcxInfoForm.need_battery_pile"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.handleSaveWxConfig}},[e._v("确定")])],1)],1)],1)},[],!1,null,"bc8def2a",null));ae.options.__file="xcxInfo.vue";var ne=ae.exports,ie={name:"AlipayInfo",props:{shopId:{type:String,default:""},role:{type:Number,default:100}},data:function(){return{isEdit:!1,alipayInfoForm:{shop_id:"",ali_appid:"",rsa_private_key:"",alipay_rsa_public_key:"",pay_body:"",notify_url:"",template_msg_dev_alarm_id:"",template_msg_expire_id:"",template_msg_order_id:"",template_msg_identity_auth_id:"",business_domain:"",is_auth:0,no_deposit:0,freeze_subscribe:0},alipayInfoFormRules:{},wxapp:!1,aliapp:!1,visibleConfigDialog:!1,aliConfigForm:{}}},computed:d()({},Object(I.b)(["userInfo"])),watch:{shopId:{deep:!0,immediate:!0,handler:function(e){null!==e&&(this.alipayInfoForm.shop_id=e,this.loadXcxInfo("load"),this.loadAliPayInfo(),this.loadAliConfig())}}},created:function(){},methods:{handleSaveWxConfig:function(){var e=this;this.$confirm("修改小程序账号将影响支付宝支付和消息通知,请谨慎操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.loadXcxInfo("save")}).catch(function(){e.$message({type:"info",message:"已取消"})})},loadXcxInfo:function(e){var t=this;if(-1===this.role){this.alipayInfoForm.cmd=e;var a=this.alipayInfoForm,n=a.no_deposit,i=a.service_id;0===!n||1===n&&!i.length>0?this.$message.error("请输入信用服务ID"):Object(T.e)(this.alipayInfoForm).then(function(a){200===a.data.code?(t.alipayInfoForm=a.data.data.XcxInfo,"freeze_subscribe"in t.alipayInfoForm&&(t.alipayInfoForm.freeze_subscribe=t.alipayInfoForm.freeze_subscribe-0),"save"===e&&t.$message.success("成功保存")):t.$message.error(a.data.msg)})}},loadAliPayInfo:function(){var e=this,t=this.alipayInfoForm.shop_id;Object(T.fb)({shop_id:t||-1}).then(function(t){200===t.data.code&&(e.wxapp=t.data.data.userInfo.wxapp,e.aliapp=t.data.data.userInfo.aliapp)})},loadAliConfig:function(){var e=this,t=this.alipayInfoForm.shop_id;Object(T.f)({shop_id:t}).then(function(t){200===t.data.code?e.aliConfigForm=Array.isArray(t.data.data)?{}:t.data.data:e.$message.error(t.data.msg)})},openConfigDialog:function(){this.visibleConfigDialog=!0,this.aliConfigForm.shop_id=this.alipayInfoForm.shop_id},clickSaveConfig:function(){var e=this;Object(T.g)(this.aliConfigForm).then(function(t){200===t.data.code?(e.$message.success("成功保存"),e.visibleConfigDialog=!1):e.$message.error(t.data.msg)})}}},oe=(a("otB3"),Object(y.a)(ie,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticStyle:{"margin-bottom":"10px"}},[a("span",{staticStyle:{color:"#606266","font-size":"14px","font-weight":"700","margin-right":"15px"}},[e._v("编辑")]),e._v(" "),a("el-switch",{attrs:{size:"mini"},model:{value:e.isEdit,callback:function(t){e.isEdit=t},expression:"isEdit"}})],1),e._v(" "),a("el-form",{ref:"alipayInfoForm",staticStyle:{"margin-left":"0px"},attrs:{model:e.alipayInfoForm,rules:e.alipayInfoFormRules,disabled:!e.isEdit,"label-position":"left","label-width":"200px",mini:"size"}},[a("el-form-item",{attrs:{label:"AppID(小程序ID)",prop:"ali_appid"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.alipayInfoForm.ali_appid,callback:function(t){e.$set(e.alipayInfoForm,"ali_appid",t)},expression:"alipayInfoForm.ali_appid"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"应用私钥",prop:"xcx_appsecret"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.alipayInfoForm.rsa_private_key,callback:function(t){e.$set(e.alipayInfoForm,"rsa_private_key",t)},expression:"alipayInfoForm.rsa_private_key"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"支付宝公钥",prop:"mch_id"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.alipayInfoForm.alipay_rsa_public_key,callback:function(t){e.$set(e.alipayInfoForm,"alipay_rsa_public_key",t)},expression:"alipayInfoForm.alipay_rsa_public_key"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商品描述",prop:"pay_body"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.alipayInfoForm.pay_body,callback:function(t){e.$set(e.alipayInfoForm,"pay_body",t)},expression:"alipayInfoForm.pay_body"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"小程序设备报警通知ID",prop:"template_msg_dev_alarm_id"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.alipayInfoForm.template_msg_dev_alarm_id,callback:function(t){e.$set(e.alipayInfoForm,"template_msg_dev_alarm_id",t)},expression:"alipayInfoForm.template_msg_dev_alarm_id"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"小程序租赁到期提醒ID",prop:"template_msg_expire_id"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.alipayInfoForm.template_msg_expire_id,callback:function(t){e.$set(e.alipayInfoForm,"template_msg_expire_id",t)},expression:"alipayInfoForm.template_msg_expire_id"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"小程序下单成功通知ID",prop:"template_msg_order_id"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.alipayInfoForm.template_msg_order_id,callback:function(t){e.$set(e.alipayInfoForm,"template_msg_order_id",t)},expression:"alipayInfoForm.template_msg_order_id"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"小程序身份认证申请提醒ID",prop:"template_msg_identity_auth_id"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.alipayInfoForm.template_msg_identity_auth_id,callback:function(t){e.$set(e.alipayInfoForm,"template_msg_identity_auth_id",t)},expression:"alipayInfoForm.template_msg_identity_auth_id"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"信用服务ID",prop:"service_id"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.alipayInfoForm.service_id,callback:function(t){e.$set(e.alipayInfoForm,"service_id","string"==typeof t?t.trim():t)},expression:"alipayInfoForm.service_id"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"小程序业务域名",prop:"business_domain"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.alipayInfoForm.business_domain,callback:function(t){e.$set(e.alipayInfoForm,"business_domain",t)},expression:"alipayInfoForm.business_domain"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用户需要身份认证",prop:"is_auth"}},[a("el-checkbox",{attrs:{"true-label":1,"false-label":2,checked:1==e.alipayInfoForm.is_auth},model:{value:e.alipayInfoForm.is_auth,callback:function(t){e.$set(e.alipayInfoForm,"is_auth",t)},expression:"alipayInfoForm.is_auth"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"是否开启先享后付",prop:"freeze_subscribe"}},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0,checked:1==e.alipayInfoForm.freeze_subscribe},model:{value:e.alipayInfoForm.freeze_subscribe,callback:function(t){e.$set(e.alipayInfoForm,"freeze_subscribe",t)},expression:"alipayInfoForm.freeze_subscribe"}})],1),e._v(" "),e.aliapp?a("el-form-item",{attrs:{label:"是否开启信用免押金",prop:"no_deposit"}},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0,checked:1==e.alipayInfoForm.no_deposit},model:{value:e.alipayInfoForm.no_deposit,callback:function(t){e.$set(e.alipayInfoForm,"no_deposit",t)},expression:"alipayInfoForm.no_deposit"}})],1):e._e(),e._v(" "),e.aliapp?a("el-form-item",{attrs:{label:"蚂蚁信用代扣"}},[a("div",[e.aliConfigForm.access_id?a("span",[e._v("已配置")]):a("span",[e._v("未配置")]),e._v(" "),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:e.openConfigDialog}},[e._v("配置")])],1)]):e._e(),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.handleSaveWxConfig}},[e._v("确定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.visibleConfigDialog,title:"蚂蚁信用代扣",top:"5vh"},on:{"update:visible":function(t){e.visibleConfigDialog=t}}},[a("el-form",{ref:"aliConfigForm",staticStyle:{"margin-left":"50px"},attrs:{model:e.aliConfigForm,"label-position":"left","label-width":"160px",size:"small"}},[a("el-form-item",{attrs:{label:"蚂蚁平台账号ID",prop:"access_id"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.aliConfigForm.access_id,callback:function(t){e.$set(e.aliConfigForm,"access_id",t)},expression:"aliConfigForm.access_id"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"蚂蚁平台秘钥信息",prop:"access_secret"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.aliConfigForm.access_secret,callback:function(t){e.$set(e.aliConfigForm,"access_secret",t)},expression:"aliConfigForm.access_secret"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商户统一社会信用代码",prop:"merchant_id"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.aliConfigForm.merchant_id,callback:function(t){e.$set(e.aliConfigForm,"merchant_id",t)},expression:"aliConfigForm.merchant_id"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"三要素密钥",prop:"public_key"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.aliConfigForm.public_key,callback:function(t){e.$set(e.aliConfigForm,"public_key",t)},expression:"aliConfigForm.public_key"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"法人身份证号",prop:"legal_card_no"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.aliConfigForm.legal_card_no,callback:function(t){e.$set(e.aliConfigForm,"legal_card_no",t)},expression:"aliConfigForm.legal_card_no"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"法人名称",prop:"legal_name"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.aliConfigForm.legal_name,callback:function(t){e.$set(e.aliConfigForm,"legal_name",t)},expression:"aliConfigForm.legal_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"合同模版ID",prop:"template_id"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.aliConfigForm.template_id,callback:function(t){e.$set(e.aliConfigForm,"template_id",t)},expression:"aliConfigForm.template_id"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"公司电话",prop:"company_tel"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.aliConfigForm.company_tel,callback:function(t){e.$set(e.aliConfigForm,"company_tel",t)},expression:"aliConfigForm.company_tel"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"公司地址",prop:"company_add"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.aliConfigForm.company_add,callback:function(t){e.$set(e.aliConfigForm,"company_add",t)},expression:"aliConfigForm.company_add"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"公司名称",prop:"org_name"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.aliConfigForm.org_name,callback:function(t){e.$set(e.aliConfigForm,"org_name",t)},expression:"aliConfigForm.org_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"合同传参tag标识",prop:"merchant_tag"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.aliConfigForm.merchant_tag,callback:function(t){e.$set(e.aliConfigForm,"merchant_tag",t)},expression:"aliConfigForm.merchant_tag"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"公司支付宝UID",prop:"ali_pay_uid"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.aliConfigForm.ali_pay_uid,callback:function(t){e.$set(e.aliConfigForm,"ali_pay_uid",t)},expression:"aliConfigForm.ali_pay_uid"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"电子合同协议标题",prop:"business_scene"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.aliConfigForm.business_scene,callback:function(t){e.$set(e.aliConfigForm,"business_scene",t)},expression:"aliConfigForm.business_scene"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"公司印章ID",prop:"merchant_seal_id"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.aliConfigForm.merchant_seal_id,callback:function(t){e.$set(e.aliConfigForm,"merchant_seal_id",t)},expression:"aliConfigForm.merchant_seal_id"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商家的用户code",prop:"tenant_id"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.aliConfigForm.tenant_id,callback:function(t){e.$set(e.aliConfigForm,"tenant_id",t)},expression:"aliConfigForm.tenant_id"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"是否启用",prop:"enable"}},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0,checked:1==e.aliConfigForm.enable},model:{value:e.aliConfigForm.enable,callback:function(t){e.$set(e.aliConfigForm,"enable",t)},expression:"aliConfigForm.enable"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visibleConfigDialog=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.clickSaveConfig}},[e._v("确定")])],1)],1)],1)},[],!1,null,"f1bb5c6a",null));oe.options.__file="alipayInfo.vue";var re=oe.exports,se={name:"CmdInfo",props:{shopId:{type:String,default:""},role:{type:Number,default:100}},data:function(){return{isEdit:!1,cmdInfoForm:{shop_id:"",app_key_v1:"",app_secret_v1:"",app_token_v1:"",app_key_v2:"",app_secret_v2:"",app_token_v2:""},wxapp:!1,aliapp:!1}},computed:d()({},Object(I.b)(["userInfo"])),watch:{shopId:{deep:!0,immediate:!0,handler:function(e){null!==e&&(this.cmdInfoForm.shop_id=e,this.loadCmdInfo("load"))}}},created:function(){},methods:{handleSaveCmdConfig:function(){var e=this;this.$confirm("确定修改城满电相关配置吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.loadCmdInfo("save")}).catch(function(){e.$message({type:"info",message:"已取消"})})},loadCmdInfo:function(e){var t=this;-1===this.role&&(this.cmdInfoForm.cmd=e,Object(T.q)(this.cmdInfoForm).then(function(a){200===a.data.code?(t.cmdInfoForm=a.data.data.CmdInfo,"save"===e&&t.$message.success("成功保存")):t.$message.error(a.data.msg)}))}}},le=(a("pt9l"),Object(y.a)(se,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticStyle:{"margin-bottom":"10px"}},[a("span",{staticStyle:{color:"#606266","font-size":"14px","font-weight":"700","margin-right":"15px"}},[e._v("编辑")]),e._v(" "),a("el-switch",{attrs:{size:"mini"},model:{value:e.isEdit,callback:function(t){e.isEdit=t},expression:"isEdit"}})],1),e._v(" "),a("el-form",{ref:"cmdInfoForm",staticStyle:{"margin-left":"0px"},attrs:{model:e.cmdInfoForm,disabled:!e.isEdit,"label-position":"left","label-width":"200px",mini:"size"}},[a("el-form-item",{attrs:{label:"AppKey V1",prop:"app_key_v1"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.cmdInfoForm.app_key_v1,callback:function(t){e.$set(e.cmdInfoForm,"app_key_v1",t)},expression:"cmdInfoForm.app_key_v1"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"AppSecret V1",prop:"app_secret_v1"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.cmdInfoForm.app_secret_v1,callback:function(t){e.$set(e.cmdInfoForm,"app_secret_v1",t)},expression:"cmdInfoForm.app_secret_v1"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"AppToken V1",prop:"app_token_v1"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.cmdInfoForm.app_token_v1,callback:function(t){e.$set(e.cmdInfoForm,"app_token_v1",t)},expression:"cmdInfoForm.app_token_v1"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"AppKey V2",prop:"app_key_v2"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.cmdInfoForm.app_key_v2,callback:function(t){e.$set(e.cmdInfoForm,"app_key_v2",t)},expression:"cmdInfoForm.app_key_v2"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"AppSecret V2",prop:"app_secret_v2"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.cmdInfoForm.app_secret_v2,callback:function(t){e.$set(e.cmdInfoForm,"app_secret_v2",t)},expression:"cmdInfoForm.app_secret_v2"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"AppToken V2",prop:"app_token_v2"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.cmdInfoForm.app_token_v2,callback:function(t){e.$set(e.cmdInfoForm,"app_token_v2",t)},expression:"cmdInfoForm.app_token_v2"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.handleSaveCmdConfig}},[e._v("确定")])],1)],1)],1)},[],!1,null,"20f21d69",null));le.options.__file="cmdInfo.vue";var ce=le.exports,de={name:"XcxInfo",components:{upImage2:V.a},props:{shopId:{type:String,default:""},role:{type:Number,default:100}},data:function(){return{isEdit:!1,bossInfoForm:{shop_id:"",xcx_appid:"",xcx_appsecret:"",mch_id:"",mech_key:"",app_name:"",app_logo:"",app_support:"",is_commission:0},bossInfoFormRules:{},uploadLoading:!1,cert:!1,key:!1}},watch:{shopId:{deep:!0,immediate:!0,handler:function(e){null!==e&&(this.bossInfoForm.shop_id=e,this.loadBossInfo("load"),this.loadPemExists())}}},created:function(){},methods:{handleSaveWxConfig:function(){var e=this;this.$confirm("修改小程序账号将影响微信支付和消息通知,请谨慎操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.loadBossInfo("save")}).catch(function(){e.$message({type:"info",message:"已取消"})})},loadBossInfo:function(e){var t=this;-1===this.role&&(this.bossInfoForm.cmd=e,Object(T.tb)(this.bossInfoForm).then(function(a){200===a.data.code?(t.bossInfoForm=a.data.data.XcxInfo,"save"===e&&t.$message.success("成功保存")):t.$message.error(a.data.msg)}))},loadPemExists:function(){var e=this;this.uploadLoading=!0,Object(T.l)({shop_id:this.shopId}).then(function(t){200===t.data.code?(e.cert=t.data.data.cert,e.key=t.data.data.key):e.$message.error(t.data.msg),e.uploadLoading=!1,e.$forceUpdate()})},uploadCert:function(e){var t=this;this.uploadLoading=!0,this.$forceUpdate();var a=e.file,n=new FormData;n.append("file",a),Object(T.m)({shop_id:this.shopId},n).then(function(e){200===e.data.code?t.$message.success("上传成功"):t.$message.error(e.data.msg),t.loadPemExists()})},uploadKey:function(e){var t=this;this.uploadLoading=!0,this.$forceUpdate();var a=e.file,n=new FormData;n.append("file",a),Object(T.n)({shop_id:this.shopId},n).then(function(e){200===e.data.code?t.$message.success("上传成功"):t.$message.error(e.data.msg),t.loadPemExists()})}}},pe=(a("RAQ3"),Object(y.a)(de,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticStyle:{"margin-bottom":"10px"}},[a("span",{staticStyle:{color:"#606266","font-size":"14px","font-weight":"700","margin-right":"15px"}},[e._v("编辑")]),e._v(" "),a("el-switch",{attrs:{size:"mini"},model:{value:e.isEdit,callback:function(t){e.isEdit=t},expression:"isEdit"}})],1),e._v(" "),a("el-form",{ref:"bossInfoForm",staticStyle:{"margin-left":"0px"},attrs:{model:e.bossInfoForm,rules:e.bossInfoFormRules,disabled:!e.isEdit,"label-position":"left","label-width":"200px",mini:"size"}},[a("el-form-item",{attrs:{label:"AppID(小程序ID)",prop:"xcx_appid"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.bossInfoForm.xcx_appid,callback:function(t){e.$set(e.bossInfoForm,"xcx_appid",t)},expression:"bossInfoForm.xcx_appid"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"AppSecret(小程序密钥)",prop:"xcx_appsecret"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.bossInfoForm.xcx_appsecret,callback:function(t){e.$set(e.bossInfoForm,"xcx_appsecret",t)},expression:"bossInfoForm.xcx_appsecret"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"微信支付商户号",prop:"mch_id"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.bossInfoForm.mch_id,callback:function(t){e.$set(e.bossInfoForm,"mch_id",t)},expression:"bossInfoForm.mch_id"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"微信商户号API密钥",prop:"mch_id"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.bossInfoForm.mech_key,callback:function(t){e.$set(e.bossInfoForm,"mech_key",t)},expression:"bossInfoForm.mech_key"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"小程序名称",prop:"app_name"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.bossInfoForm.app_name,callback:function(t){e.$set(e.bossInfoForm,"app_name",t)},expression:"bossInfoForm.app_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"小程序Logo",prop:"app_logo"}},[a("up-image2",{attrs:{size:"100"},model:{value:e.bossInfoForm.app_logo,callback:function(t){e.$set(e.bossInfoForm,"app_logo",t)},expression:"bossInfoForm.app_logo"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"支持信息",prop:"app_support"}},[a("el-input",{attrs:{autosize:{minRows:3},type:"textarea",placeholder:""},model:{value:e.bossInfoForm.app_support,callback:function(t){e.$set(e.bossInfoForm,"app_support",t)},expression:"bossInfoForm.app_support"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"佣金记录",prop:"is_commission"}},[a("el-checkbox",{attrs:{"true-label":1,"false-label":2,checked:1==e.bossInfoForm.is_commission},model:{value:e.bossInfoForm.is_commission,callback:function(t){e.$set(e.bossInfoForm,"is_commission",t)},expression:"bossInfoForm.is_commission"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"appv3 密钥",prop:"mech_key_v3"}},[a("el-input",{staticStyle:{width:"350px"},attrs:{size:"mini"},model:{value:e.bossInfoForm.mech_key_v3,callback:function(t){e.$set(e.bossInfoForm,"mech_key_v3",t)},expression:"bossInfoForm.mech_key_v3"}}),e._v(" "),a("span",{staticClass:"tips"},[e._v("商家支付到微信接口功能需要")])],1),e._v(" "),a("el-form-item",{attrs:{label:"证书序列号",prop:"mech_serial_no"}},[a("el-input",{staticStyle:{width:"350px"},attrs:{size:"mini"},model:{value:e.bossInfoForm.mech_serial_no,callback:function(t){e.$set(e.bossInfoForm,"mech_serial_no",t)},expression:"bossInfoForm.mech_serial_no"}}),e._v(" "),a("span",{staticClass:"tips"},[e._v("商家支付到微信接口功能需要")])],1),e._v(" "),a("el-form-item",{attrs:{label:"支付证书(.pem)"}},[a("el-upload",{attrs:{"http-request":e.uploadCert,"show-file-list":!1,action:""}},[a("el-button",{attrs:{loading:e.uploadLoading,size:"small",type:"primary"}},[e._v("点击上传")]),e._v(" "),a("i",{directives:[{name:"show",rawName:"v-show",value:e.cert,expression:"cert"}],staticClass:"el-icon-circle-check",staticStyle:{color:"#67c23a"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"支付证书密钥(.pem)"}},[a("el-upload",{attrs:{"http-request":e.uploadKey,"show-file-list":!1,action:""}},[a("el-button",{attrs:{loading:e.uploadLoading,size:"small",type:"primary"}},[e._v("点击上传")]),e._v(" "),a("i",{directives:[{name:"show",rawName:"v-show",value:e.key,expression:"key"}],staticClass:"el-icon-circle-check",staticStyle:{color:"#67c23a"}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.handleSaveWxConfig}},[e._v("确定")])],1)],1)],1)},[],!1,null,"59b74115",null));pe.options.__file="bossInfo.vue";var _e=pe.exports,me={name:"OffInfo",components:{},props:{shopId:{type:String,default:""},role:{type:Number,default:100}},data:function(){return{isEdit:!1,offInfoForm:{shop_id:"",appid:"",appsecret:"",origin_id:"",reply:"",template_msg_alarm:"",template_low_quantity:"",template_msg_expire:"",template_msg_order:"",template_msg_return:""},offInfoFormRules:{}}},watch:{shopId:{deep:!0,immediate:!0,handler:function(e){null!==e&&(this.offInfoForm.shop_id=e,this.loadOffInfo("load"))}}},created:function(){},methods:{handleSaveOffConfig:function(){var e=this;this.$confirm("修改公众号将影响消息通知,请谨慎操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.loadOffInfo("save")}).catch(function(){e.$message({type:"info",message:"已取消"})})},loadOffInfo:function(e){var t=this;-1===this.role&&(this.offInfoForm.cmd=e,Object(T.A)(this.offInfoForm).then(function(a){200===a.data.code?(t.offInfoForm=a.data.data.OffInfo,"save"===e&&t.$message.success("成功保存")):t.$message.error(a.data.msg)}))}}},ue=(a("XZVw"),Object(y.a)(me,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticStyle:{"margin-bottom":"10px"}},[a("span",{staticStyle:{color:"#606266","font-size":"14px","font-weight":"700","margin-right":"15px"}},[e._v("编辑")]),e._v(" "),a("el-switch",{attrs:{size:"mini"},model:{value:e.isEdit,callback:function(t){e.isEdit=t},expression:"isEdit"}})],1),e._v(" "),a("el-form",{ref:"offInfoForm",staticStyle:{"margin-left":"0px"},attrs:{model:e.offInfoForm,rules:e.offInfoFormRules,disabled:!e.isEdit,"label-position":"left","label-width":"200px",mini:"size"}},[a("el-form-item",{attrs:{label:"AppID(公众号)",prop:"appid"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.offInfoForm.appid,callback:function(t){e.$set(e.offInfoForm,"appid",t)},expression:"offInfoForm.appid"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"AppSecret(公众号)",prop:"appsecret"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.offInfoForm.appsecret,callback:function(t){e.$set(e.offInfoForm,"appsecret",t)},expression:"offInfoForm.appsecret"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"OriginId(公众号原始ID)",prop:"origin_id"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.offInfoForm.origin_id,callback:function(t){e.$set(e.offInfoForm,"origin_id",t)},expression:"offInfoForm.origin_id"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"自动回复",prop:"reply"}},[a("el-input",{attrs:{autosize:{minRows:3},type:"textarea",placeholder:""},model:{value:e.offInfoForm.reply,callback:function(t){e.$set(e.offInfoForm,"reply",t)},expression:"offInfoForm.reply"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"公众号设备低电量提醒通知ID",prop:"template_low_quantity"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.offInfoForm.template_low_quantity,callback:function(t){e.$set(e.offInfoForm,"template_low_quantity",t)},expression:"offInfoForm.template_low_quantity"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"公众号设备报警通知ID",prop:"template_msg_alarm"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.offInfoForm.template_msg_alarm,callback:function(t){e.$set(e.offInfoForm,"template_msg_alarm",t)},expression:"offInfoForm.template_msg_alarm"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"公众号设备到期通知ID",prop:"template_msg_expire"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.offInfoForm.template_msg_expire,callback:function(t){e.$set(e.offInfoForm,"template_msg_expire",t)},expression:"offInfoForm.template_msg_expire"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"公众号用户订单通知ID",prop:"template_msg_order"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.offInfoForm.template_msg_order,callback:function(t){e.$set(e.offInfoForm,"template_msg_order",t)},expression:"offInfoForm.template_msg_order"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"公众号退换货通知ID",prop:"template_msg_return"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.offInfoForm.template_msg_return,callback:function(t){e.$set(e.offInfoForm,"template_msg_return",t)},expression:"offInfoForm.template_msg_return"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.handleSaveOffConfig}},[e._v("确定")])],1)],1)],1)},[],!1,null,"f20d0606",null));ue.options.__file="offInfo.vue";var he=ue.exports;var fe={name:"ShopConfigInfo",props:{shopId:{type:String,default:""},role:{type:Number,default:100}},data:function(){return{isEdit:!1,loading:!1,wxapp:!1,is_devops_define:!1,is_offline_renewal:!1,is_id_card_unique:!1,is_new_user_by_id_card:!1,is_real_name_verification:!1,is_auto_identity:!1,is_open_civil_battery:!1,expire_notice:!1,is_all_level:!1,exchange_free_time:!1,is_shop_manager:!1,mergency_contact_user_and_area:!1,shopConfigInfoForm:{min_age:"",max_age:"",program_map_switch:1,stash_style_config:1,return_style_config:1,shop_id:"",hire_car_img_upload:0,battery_transfer_status:0,allow_cross_exchange_bat:0,diff_type_exchange:0,can_sell:0,exchange_close_battery:0,is_display:1,auto_approve_refund_deposit:1,refund_deposit_release:0,pledge_status:0,hire_status:0,openapi_cabinet:0,openapi_gps:0,auto_apply_refund:0,refund_cost_rate:0,insurance_recycle:0,use_main_insurance:0,cabinet_rt_transfer:0,can_stash:0,stash_user_price:0,stash_cabinet_price:0,stash_shop_price:0,hour_limit:0,stash_can_use:0,order_sign:0,cabinet_stash_need_approve:0,employee_code:0,offline_renewal_mainstore:0,hire_change_shop:0,id_card_unique:0,new_user_by_id_card:0,real_name_verification:0,auto_identity:0,open_civil_battery:0,freeze_subscribe:0,battery_combined_switch:0,cab_stash:0,shop_stash:0,self_stash:0,expire_notice:1,is_all_level:0,trust_deposit:0,is_short:0,hire_tips:"",exchange_free_time:"",is_another_shop_return_car:0,fence_out_turn_off:"",auto_refund_for_exchange:0,is_exchange_free_time:"",is_mergency_contact_user_and_area:"",use_face_verify:0},chargingList:[{money:"200"},{money:"400"},{money:"600"},{money:"800"}]}},watch:{shopId:{deep:!0,immediate:!0,handler:function(e){null!==e&&(this.shopConfigInfoForm.shop_id=e,this.loadShopConfigInfo())}}},computed:d()({},Object(I.b)(["userInfo","roles"])),created:function(){},methods:{loadShopConfigInfo:function(){var e=this;this.loading=!0,Object(T.fb)(this.shopConfigInfoForm).then(function(t){if(200===t.data.code){e.wxapp=t.data.data.userInfo.wxapp,e.shopConfigInfoForm=t.data.data.userInfo,e.shopConfigInfoForm.min_age=0==t.data.data.userInfo.min_age?"":t.data.data.userInfo.min_age,e.shopConfigInfoForm.max_age=0==t.data.data.userInfo.max_age?"":t.data.data.userInfo.max_age,e.shopConfigInfoForm.stash_user_price=t.data.data.userInfo.stash_user_price/100,e.shopConfigInfoForm.stash_cabinet_price=t.data.data.userInfo.stash_cabinet_price/100,e.shopConfigInfoForm.stash_shop_price=t.data.data.userInfo.stash_shop_price/100,e.shopConfigInfoForm.hour_limit=t.data.data.userInfo.hour_limit,e.$set(e.shopConfigInfoForm,"use_face_verify",+t.data.data.userInfo.use_face_verify),e.is_devops_define=t.data.data.userInfo.is_devops-0!=-1,e.is_offline_renewal=t.data.data.userInfo.offline_renewal_mainstore-0!=-1,e.is_id_card_unique=t.data.data.userInfo.id_card_unique-0!=-1,e.is_new_user_by_id_card=t.data.data.userInfo.new_user_by_id_card-0!=-1,e.is_real_name_verification=t.data.data.userInfo.real_name_verification-0!=-1,e.is_auto_identity=t.data.data.userInfo.auto_identity-0!=-1,e.is_open_civil_battery=t.data.data.userInfo.open_civil_battery-0!=-1,e.is_short_show=t.data.data.userInfo.is_short-0!=-1,e.is_exchange_free_time=t.data.data.userInfo.exchange_free_time-0!=-1,e.mergency_contact_user_and_area=t.data.data.userInfo.is_mergency_contact_user_and_area-0!=-1,e.shopConfigInfoForm.freeze_subscribe=t.data.data.userInfo.freeze_subscribe-0==1,e.shopConfigInfoForm.can_rent_cross_shop_status=t.data.data.userInfo.can_rent_cross_shop_status-0==1,e.shopConfigInfoForm.battery_transfer_status=t.data.data.userInfo.battery_transfer_status,e.shopConfigInfoForm.allow_cross_exchange_bat=t.data.data.userInfo.allow_cross_exchange_bat-0==1,e.shopConfigInfoForm.hire_car_img_upload=t.data.data.userInfo.hire_car_img_upload-0==1,e.shopConfigInfoForm.self_no_limit=t.data.data.userInfo.self_no_limit,e.shopConfigInfoForm.can_sell=t.data.data.userInfo.can_sell-0==1,e.shopConfigInfoForm.refund_cost_rate=t.data.data.userInfo.refund_cost_rate,e.shopConfigInfoForm.is_display=t.data.data.userInfo.is_display-0==1,e.shopConfigInfoForm.diff_type_exchange=t.data.data.userInfo.diff_type_exchange-0==1,e.shopConfigInfoForm.pledge_status=e.decimalToBinary(t.data.data.userInfo.auto_approve_refund_deposit,2).split("")[1],e.shopConfigInfoForm.hire_status=e.decimalToBinary(t.data.data.userInfo.auto_approve_refund_deposit,2).split("")[0],e.shopConfigInfoForm.auto_apply_refund=t.data.data.userInfo.auto_apply_refund-0==1,e.shopConfigInfoForm.refund_deposit_release=t.data.data.userInfo.refund_deposit_release-0==1,e.shopConfigInfoForm.order_sign=t.data.data.userInfo.order_sign-0==1,e.shopConfigInfoForm.can_stash=t.data.data.userInfo.can_stash-0==1,e.shopConfigInfoForm.integrate_switch=t.data.data.userInfo.integrate_switch-0==1,e.shopConfigInfoForm.expire_notice=t.data.data.userInfo.expire_notice-0==1,e.shopConfigInfoForm.single_device=t.data.data.userInfo.single_device-0==1,e.shopConfigInfoForm.stash_can_use=t.data.data.userInfo.stash_can_use-0==1,e.shopConfigInfoForm.insurance_recycle=t.data.data.userInfo.insurance_recycle-0==1,e.shopConfigInfoForm.cabinet_stash_need_approve=t.data.data.userInfo.cabinet_stash_need_approve-0==1,e.shopConfigInfoForm.can_hire=t.data.data.userInfo.can_hire-0==1,e.shopConfigInfoForm.use_main_insurance=t.data.data.userInfo.use_main_insurance-0==1,e.shopConfigInfoForm.cabinet_rt_transfer=t.data.data.userInfo.cabinet_rt_transfer-0==1,e.shopConfigInfoForm.employee_code=t.data.data.userInfo.employee_code-0==1,e.shopConfigInfoForm.offline_renewal_mainstore=t.data.data.userInfo.offline_renewal_mainstore-0==1,e.shopConfigInfoForm.hire_change_shop=t.data.data.userInfo.hire_change_shop-0==1,e.shopConfigInfoForm.id_card_unique=t.data.data.userInfo.id_card_unique-0==1,e.shopConfigInfoForm.new_user_by_id_card=t.data.data.userInfo.new_user_by_id_card-0==1,e.shopConfigInfoForm.real_name_verification=t.data.data.userInfo.real_name_verification-0==1,e.shopConfigInfoForm.auto_identity=t.data.data.userInfo.auto_identity-0==1,e.shopConfigInfoForm.battery_combined_switch=t.data.data.userInfo.battery_combined_switch-0,e.shopConfigInfoForm.open_civil_battery=t.data.data.userInfo.open_civil_battery-0==1,e.shopConfigInfoForm.exchange_free_time=t.data.data.userInfo.exchange_free_time,e.shopConfigInfoForm.is_mergency_contact_user_and_area=t.data.data.userInfo.is_mergency_contact_user_and_area-0==1,e.shopConfigInfoForm.is_short=t.data.data.userInfo.is_short-0==1,e.shopConfigInfoForm.is_another_shop_return_car=t.data.data.userInfo.is_another_shop_return_car-0==1,e.shopConfigInfoForm.exchange_close_battery=t.data.data.userInfo.exchange_close_battery-0==1,e.shopConfigInfoForm.no_deposit=t.data.data.userInfo.no_deposit-0==1,e.shopConfigInfoForm.is_devops=t.data.data.userInfo.is_devops-0==1,e.shopConfigInfoForm.trust_deposit=t.data.data.userInfo.trust_deposit-0==1,e.shopConfigInfoForm.fence_out_turn_off=t.data.data.userInfo.fence_out_turn_off-0==1,e.shopConfigInfoForm.auto_refund_for_exchange=t.data.data.userInfo.auto_refund_for_exchange-0==1,e.shopConfigInfoForm.program_map_switch=t.data.data.userInfo.program_map_switch,e.shopConfigInfoForm.stash_style_config=t.data.data.userInfo.stash_style_config-0,e.shopConfigInfoForm.return_style_config=t.data.data.userInfo.return_style_config-0;var a=t.data.data.userInfo.openapi_status;a&&(e.shopConfigInfoForm.openapi_cabinet=1===a.status&&(1==(1&a.resource_id)?1:0),e.shopConfigInfoForm.openapi_gps=1===a.status&&(4==(4&a.resource_id)?1:0)),e.shopConfigInfoForm.cab_stash=!!(t.data.data.userInfo.stash_type-0&1),e.shopConfigInfoForm.shop_stash=!!(t.data.data.userInfo.stash_type-0&2),e.shopConfigInfoForm.self_stash=!!(t.data.data.userInfo.stash_type-0&4),e.shopConfigInfoForm.user_pre_wallet_topup_list=e.shopConfigInfoForm.user_pre_wallet_topup_list?JSON.parse(e.shopConfigInfoForm.user_pre_wallet_topup_list):e.chargingList,e.shopConfigInfoForm.user_pre_wallet_topup_list.forEach(function(e,t){e.money=parseFloat(e.money)/100}),e.$set(e.shopConfigInfoForm,"n_cab_stash",JSON.parse(l()(e.shopConfigInfoForm.cab_stash))),e.$set(e.shopConfigInfoForm,"n_shop_stash",JSON.parse(l()(e.shopConfigInfoForm.shop_stash))),e.$set(e.shopConfigInfoForm,"n_self_stash",JSON.parse(l()(e.shopConfigInfoForm.self_stash)))}else e.$message.error(t.data.msg);e.$forceUpdate(),e.loading=!1})},handleStashCanUse:function(e){var t=e?1:0;this.loadStashSet(t,2)},handleCanStash:function(e){var t=e?1:0;this.loadStashSet(t,1)},handleSaveStash:function(){this.loadStashSet("",3)},handleSaveCabStash:function(e){var t=e?1:0;this.loadStashSet(t,4)},handleSaveShopStash:function(e){var t=e?1:0;this.loadStashSet(t,5)},handleSaveSelfStash:function(e){var t=e?1:0;this.loadStashSet(t,6)},handleCabStashAudit:function(e){var t=e?1:0;this.loadStashSet(t,7)},handleSaveHireTips:function(){var e=this;Object(T.ob)({hire_tips:this.shopConfigInfoForm.hire_tips,shop_id:this.shopId}).then(function(t){200===t.data.code?e.$message.success("修改成功"):e.$message.error(t.data.msg)})},handleSaveUseMainInsurance:function(e){var t=this,a=e?1:0;Object(T.jb)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},loadStashSet:function(e,t){var a=this,n=JSON.parse(l()(100*this.shopConfigInfoForm.stash_user_price)),i=JSON.parse(l()(100*this.shopConfigInfoForm.stash_cabinet_price)),o=JSON.parse(l()(100*this.shopConfigInfoForm.stash_shop_price)),r=JSON.parse(l()(parseInt(this.shopConfigInfoForm.hour_limit))),s={shop_id:this.shopId,stash_user_price:n,stash_cabinet_price:i,stash_shop_price:o,hour_limit:r,stash_type:(!0===this.shopConfigInfoForm.n_cab_stash?1:0)+(!0===this.shopConfigInfoForm.n_shop_stash?2:0)+(!0===this.shopConfigInfoForm.n_self_stash?4:0)};1===t&&(s.can_stash=e),2===t&&(s.stash_can_use=e),7===t&&(s.cabinet_stash_need_approve=e),function(e){return Object(D.a)({url:"?r=stash/stash-setting",method:"post",data:e})}(s).then(function(e){200===e.data.code?a.$message.success("修改成功"):a.$message.error(e.data.msg)})},handleRefundDepositRelease:function(e){var t=this,a=e?1:0;Object(T.G)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleRenewPrompt:function(e){var t=this;this.expire_notice=e?1:0,Object(T.I)({status:this.expire_notice,is_all_level:this.is_all_level,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleIsAllLevel:function(e){this.is_all_level=e?1:0},handleUserCanHire:function(e){var t=this,a=e?1:0;Object(T.Z)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleAllowCrossExchangeBat:function(e){var t=this,a=e?1:0;Object(T.xb)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleAutoApproveRefundDeposit:function(){var e=this,t=this.shopConfigInfoForm.pledge_status,a=this.shopConfigInfoForm.hire_status,n=parseInt(t+a,2);Object(T.i)({pledge_status:t,hire_status:a,auto_approve_refund_deposit:n,shop_id:this.shopId}).then(function(t){200===t.data.code?e.$message.success("修改成功"):e.$message.error(t.data.msg)})},handleDiffTypeExchange:function(e){var t=this,a=e?1:0;Object(T.zb)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleUserHireCarImgUpload:function(e){var t=this,a=e?1:0;Object(T.eb)({hire_car_img_upload:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleUserRentCrossShiopStatus:function(e){var t=this,a=e?1:0;Object(T.J)({can_rent_cross_shop_status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleSaveUserTrustDeposit:function(e){var t=this,a=e?1:0;Object(T.rb)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleSaveUserNoDeposit:function(e){var t=this,a=e?1:0;Object(T.kb)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleSaveDevopsStatus:function(e){var t=this,a=e?1:0;Object(T.o)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleOrderSign:function(e){var t=this,a=e?1:0;Object(T.C)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleSaveUserEmployeeCode:function(e){var t=this,a=e?1:0;Object(T.cb)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleOfflineRenewal:function(e){var t=this,a=e?1:0;Object(T.B)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleSaveHireChangeShop:function(e){var t=this,a=e?1:0;Object(T.w)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleIdCardUnique:function(e){var t=this,a=e?1:0;Object(T.x)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleNewUserByIdCard:function(e){var t=this,a=e?1:0;Object(T.z)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleRealNameVerification:function(e){var t=this,a=e?1:0;Object(T.F)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleAutoIdentity:function(e){var t=this,a=e?1:0;Object(T.j)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleCivilBatteryEnabled:function(e){var t=this,a=e?1:0;Object(T.p)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleIsAnotherShopReturnCar:function(e){var t=this,a=e?1:0;Object(T.W)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleUserShortHire:function(e){var t=this,a=e?1:0;Object(T.nb)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleOpenApi:function(e,t){var a=this,n=t,i="开启";i=1===n?"开启":"关闭",this.$confirm("你确认"+i+"该权限吗?","确认信息",{distinguishCancelAndClose:!0,confirmButtonText:"保存",cancelButtonText:"放弃修改"}).then(function(){a.loading=!0,Object(T.N)({shop_id:a.shopId,status:n,resource_id:e}).then(function(e){200===e.data.code?(a.$message({message:"保存成功",type:"success"}),a.$forceUpdate()):a.$message.error(e.data.msg),a.loading=!1})}).catch(function(t){1===e&&(a.shopConfigInfoForm.openapi_cabinet=1===n?0:1),4===e&&(a.shopConfigInfoForm.openapi_gps=1===n?0:1),a.$message({type:"info",message:"cancel"===t?"放弃保存":"停留在当前页面"})})},handleOpenApiCabinet:function(e){this.handleOpenApi(1,e)},handleOpenApiGps:function(e){this.handleOpenApi(4,e)},handleAllowCanSell:function(e){var t=this,a=e?1:0;Object(T.wb)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?(t.$emit("submitCanSell"),t.$message.success("修改成功")):t.$message.error(e.data.msg)})},handleIntegrateSwitch:function(e){var t=this;(function(e){return Object(D.a)({url:"?r=integrate/switch",method:"post",data:e})})({status:e?1:0,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleSingleDevice:function(e){var t=this,a=e?1:0;Object(T.pb)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleUserSetExtValue:function(e,t){var a=this;Object(T.mb)({name:e,value:t,shop_id:this.shopId}).then(function(e){200===e.data.code?a.$message.success("修改成功"):a.$message.error(e.data.msg)})},handleEdit:function(e,t){var a=t.replace(/[^\d.]/g,"");a=(a=(a=(a=(a=(a=a.replace(/^\./g,"")).replace(/\.{2,}/g,".")).replace(/(\.\d+)\./g,"$1")).replace(/^0+(\d)/,"$1")).replace(/(\d{3})\d*/,"$1")).replace(/(\.\d{2})\d*/,"$1"),this.shopConfigInfoForm.user_pre_wallet_topup_list[e].money=a},handleSaveCharging:function(e){var t=this,a=this.shopConfigInfoForm.user_pre_wallet_topup_list.map(function(e,t){var a=100*parseFloat(e.money);return{money:String(a)}}),n=l()(a);Object(T.mb)({shop_id:this.shopId,name:e,value:n}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},clickMapSwitch:function(){var e=this;Object(T.E)({program_map_switch:this.shopConfigInfoForm.program_map_switch,shop_id:this.shopId}).then(function(t){200===t.data.code?e.$message.success("修改成功"):e.$message.error(t.data.msg)})},clickBatteryCombinedSwitch:function(){var e=this;Object(T.k)({battery_combined_switch:this.shopConfigInfoForm.battery_combined_switch,shop_id:this.shopId}).then(function(t){200===t.data.code?e.$message.success("修改成功"):e.$message.error(t.data.msg)})},clickStash:function(){var e=this;Object(T.mb)({shop_id:this.shopId,name:"stash_style_config",value:this.shopConfigInfoForm.stash_style_config}).then(function(t){200===t.data.code?e.$message.success("修改成功"):e.$message.error(t.data.msg)})},clickReturn:function(){var e=this;Object(T.mb)({shop_id:this.shopId,name:"return_style_config",value:this.shopConfigInfoForm.return_style_config}).then(function(t){200===t.data.code?e.$message.success("修改成功"):e.$message.error(t.data.msg)})},updateCfgValue:function(e){var t=this;Object(T.mb)({shop_id:this.shopId,name:e,value:this.shopConfigInfoForm[e]}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleSaveLimitAge:function(){var e=this;Object(T.P)({min_age:this.shopConfigInfoForm.min_age,max_age:this.shopConfigInfoForm.max_age,shop_id:this.shopId}).then(function(t){200===t.data.code?e.$message.success("保存成功"):e.$message.error(t.data.msg)})},handleSaveFreeTime:function(){var e=this;Object(T.ab)({exchange_free_time:this.shopConfigInfoForm.exchange_free_time,shop_id:this.shopId}).then(function(t){200===t.data.code?e.$message.success("保存成功"):e.$message.error(t.data.msg)})},handleFenceOutTurnOff:function(e){var t=this,a=e?1:0;Object(T.db)({shop_id:this.shopId,status:a}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleAllowRefundExchange:function(e){var t=this,a=e?1:0;Object(T.X)({shop_id:this.shopId,status:a}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleExchangeCloseBattery:function(e){var t=this,a=e?1:0;Object(A.y)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleAutoApplyRefund:function(e){var t=this,a=e?1:0;Object(T.h)({status:a,shop_id:this.shopId,refund_cost_rate:this.shopConfigInfoForm.refund_cost_rate}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleSaveInsuranceRecycle:function(e){var t=this,a=e?1:0;Object(T.gb)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleSaveUserRTTransfer:function(e){var t=this,a=e?1:0;Object(T.Y)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleChangeDisplay:function(e){var t=this,a=e?1:0;Object(T.E)({program_map_switch:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},handleIdentityContact:function(e){var t=this,a=e?1:0;Object(T.y)({status:a,shop_id:this.shopId}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})},saveShopConfig:function(e){var t=this,a="开启";a=1===e?"开启":"关闭",this.$confirm("你确认"+a+"该权限吗?","确认信息",{distinguishCancelAndClose:!0,confirmButtonText:"保存",cancelButtonText:"放弃修改"}).then(function(){t.loading=!0,Object(T.Q)({shop_id:t.shopId,battery_transfer_status:e}).then(function(e){200===e.data.code?t.$message({message:"保存成功",type:"success"}):t.$message.error(e.data.msg),t.loading=!1})}).catch(function(a){t.shopConfigInfoForm.battery_transfer_status=1===e?0:1,t.$message({type:"info",message:"cancel"===a?"放弃保存":"停留在当前页面"})})},decimalToBinary:function(e,t){for(var a=e.toString(2);a.length<t;)a="0"+a;return a}}},be=(a("VcBk"),Object(y.a)(fe,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{staticStyle:{"margin-left":"0px"},attrs:{"label-position":"left","label-width":"300px",mini:"size"}},[0==e.shopConfigInfoForm.self_no_limit?a("el-form-item",{attrs:{label:"允许转移设备"}},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0,checked:1==e.shopConfigInfoForm.battery_transfer_status},on:{change:e.saveShopConfig},model:{value:e.shopConfigInfoForm.battery_transfer_status,callback:function(t){e.$set(e.shopConfigInfoForm,"battery_transfer_status",t)},expression:"shopConfigInfoForm.battery_transfer_status"}},[a("div",{staticClass:"tips"},[e._v("* 换电时允许设备转移到其他门店")])])],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"允许跨门店换电"}},[a("el-checkbox",{on:{change:e.handleAllowCrossExchangeBat},model:{value:e.shopConfigInfoForm.allow_cross_exchange_bat,callback:function(t){e.$set(e.shopConfigInfoForm,"allow_cross_exchange_bat",t)},expression:"shopConfigInfoForm.allow_cross_exchange_bat"}})],1),e._v(" "),e.wxapp?a("el-form-item",{attrs:{label:"小程序地图显示",prop:"program_map_switch"}},[a("el-radio-group",{on:{change:e.clickMapSwitch},model:{value:e.shopConfigInfoForm.program_map_switch,callback:function(t){e.$set(e.shopConfigInfoForm,"program_map_switch",t)},expression:"shopConfigInfoForm.program_map_switch"}},[a("el-radio",{attrs:{label:1}},[e._v("门店")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("机柜")]),e._v(" "),a("el-radio",{attrs:{label:3}},[e._v("机柜+门店")])],1)],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"型号匹配"}},[a("el-checkbox",{on:{change:e.handleDiffTypeExchange},model:{value:e.shopConfigInfoForm.diff_type_exchange,callback:function(t){e.$set(e.shopConfigInfoForm,"diff_type_exchange",t)},expression:"shopConfigInfoForm.diff_type_exchange"}})],1),e._v(" "),e.wxapp?a("el-form-item",{attrs:{label:"租赁是否需要手写签名"}},[a("el-checkbox",{on:{change:e.handleOrderSign},model:{value:e.shopConfigInfoForm.order_sign,callback:function(t){e.$set(e.shopConfigInfoForm,"order_sign",t)},expression:"shopConfigInfoForm.order_sign"}})],1):e._e(),e._v(" "),e.wxapp?a("el-form-item",{attrs:{label:"是否开启暂存"}},[a("el-checkbox",{on:{change:e.handleCanStash},model:{value:e.shopConfigInfoForm.can_stash,callback:function(t){e.$set(e.shopConfigInfoForm,"can_stash",t)},expression:"shopConfigInfoForm.can_stash"}})],1):e._e(),e._v(" "),e.wxapp&&1==e.shopConfigInfoForm.can_stash?a("div",{staticStyle:{"margin-left":"10px"}},[a("el-form-item",{attrs:{label:"机柜暂存"}},[a("el-checkbox",{on:{change:e.handleSaveCabStash},model:{value:e.shopConfigInfoForm.n_cab_stash,callback:function(t){e.$set(e.shopConfigInfoForm,"n_cab_stash",t)},expression:"shopConfigInfoForm.n_cab_stash"}}),e._v(" "),a("span",{staticClass:"tips"},[e._v("* 请升级至4.1.20230118版本")])],1),e._v(" "),a("el-form-item",{attrs:{label:"门店暂存"}},[a("el-checkbox",{on:{change:e.handleSaveShopStash},model:{value:e.shopConfigInfoForm.n_shop_stash,callback:function(t){e.$set(e.shopConfigInfoForm,"n_shop_stash",t)},expression:"shopConfigInfoForm.n_shop_stash"}}),e._v(" "),a("span",{staticClass:"tips"},[e._v("* 请升级至4.1.20230118版本")])],1),e._v(" "),a("el-form-item",{attrs:{label:"个人暂存"}},[a("el-checkbox",{on:{change:e.handleSaveSelfStash},model:{value:e.shopConfigInfoForm.n_self_stash,callback:function(t){e.$set(e.shopConfigInfoForm,"n_self_stash",t)},expression:"shopConfigInfoForm.n_self_stash"}}),e._v(" "),a("span",{staticClass:"tips"},[e._v("* 请升级至4.1.20230118版本")])],1),e._v(" "),a("el-form-item",{attrs:{label:"暂存电池是否允许其他人借用"}},[a("el-checkbox",{on:{change:e.handleStashCanUse},model:{value:e.shopConfigInfoForm.stash_can_use,callback:function(t){e.$set(e.shopConfigInfoForm,"stash_can_use",t)},expression:"shopConfigInfoForm.stash_can_use"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"机柜暂存是否需要审核"}},[a("el-checkbox",{on:{change:e.handleCabStashAudit},model:{value:e.shopConfigInfoForm.cabinet_stash_need_approve,callback:function(t){e.$set(e.shopConfigInfoForm,"cabinet_stash_need_approve",t)},expression:"shopConfigInfoForm.cabinet_stash_need_approve"}}),e._v(" "),a("span",{staticClass:"tips"},[e._v("* 请升级至4.1.20230208版本")])],1),e._v(" "),a("el-form-item",{attrs:{label:"个人自己暂存价格"}},[a("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"个人自己暂存价格",size:"mini"},model:{value:e.shopConfigInfoForm.stash_user_price,callback:function(t){e.$set(e.shopConfigInfoForm,"stash_user_price",t)},expression:"shopConfigInfoForm.stash_user_price"}}),a("span",{staticStyle:{"margin-left":"10px"}},[e._v("元/天")])],1),e._v(" "),a("el-form-item",{attrs:{label:"机柜暂存价格"}},[a("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"机柜暂存价格",size:"mini"},model:{value:e.shopConfigInfoForm.stash_cabinet_price,callback:function(t){e.$set(e.shopConfigInfoForm,"stash_cabinet_price",t)},expression:"shopConfigInfoForm.stash_cabinet_price"}}),a("span",{staticStyle:{"margin-left":"10px"}},[e._v("元/天")])],1),e._v(" "),a("el-form-item",{attrs:{label:"门店存储价格"}},[a("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"门店存储价格",size:"mini"},model:{value:e.shopConfigInfoForm.stash_shop_price,callback:function(t){e.$set(e.shopConfigInfoForm,"stash_shop_price",t)},expression:"shopConfigInfoForm.stash_shop_price"}}),a("span",{staticStyle:{"margin-left":"10px"}},[e._v("元/天")])],1),e._v(" "),a("el-form-item",{attrs:{label:"最低暂存时间"}},[a("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"最低暂存时间",size:"mini"},model:{value:e.shopConfigInfoForm.hour_limit,callback:function(t){e.$set(e.shopConfigInfoForm,"hour_limit",t)},expression:"shopConfigInfoForm.hour_limit"}}),e._v(" "),a("span",{staticStyle:{"margin-left":"10px"}},[e._v("小时")]),e._v(" "),a("div",{staticClass:"tips"},[e._v("* 若输入24,则表示小于24小时内不计入暂存时间 ")])],1),e._v(" "),a("el-form-item",{staticStyle:{margin:"0px"}},[a("el-button",{staticStyle:{width:"250px","margin-bottom":"20px"},attrs:{type:"success",size:"mini"},on:{click:e.handleSaveStash}},[e._v("\n 保存\n ")])],1)],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"线下还电退押金是否自动解绑"}},[a("el-checkbox",{on:{change:e.handleRefundDepositRelease},model:{value:e.shopConfigInfoForm.refund_deposit_release,callback:function(t){e.$set(e.shopConfigInfoForm,"refund_deposit_release",t)},expression:"shopConfigInfoForm.refund_deposit_release"}},[a("div",{staticClass:"tips"},[e._v("* 开启将会导致线下还电退押金自动解绑,请谨慎操作")])])],1),e._v(" "),e.wxapp?a("el-form-item",{attrs:{label:"退款是否自动审核",prop:"auto_approve_refund_deposit"}},[a("el-checkbox",{staticClass:"selectAll",attrs:{"true-label":"1","false-label":"0"},on:{change:e.handleAutoApproveRefundDeposit},model:{value:e.shopConfigInfoForm.pledge_status,callback:function(t){e.$set(e.shopConfigInfoForm,"pledge_status",t)},expression:"shopConfigInfoForm.pledge_status"}},[e._v("押金退款自动审核")]),e._v(" "),a("el-checkbox",{staticClass:"selectAll",attrs:{"true-label":"1","false-label":"0"},on:{change:e.handleAutoApproveRefundDeposit},model:{value:e.shopConfigInfoForm.hire_status,callback:function(t){e.$set(e.shopConfigInfoForm,"hire_status",t)},expression:"shopConfigInfoForm.hire_status"}},[e._v("租金退款自动审核")])],1):e._e(),e._v(" "),e.wxapp?a("el-form-item",{attrs:{label:"还电是否自动退押金","label-width":"200"}},[a("el-checkbox",{on:{change:e.handleAutoApplyRefund},model:{value:e.shopConfigInfoForm.auto_apply_refund,callback:function(t){e.$set(e.shopConfigInfoForm,"auto_apply_refund",t)},expression:"shopConfigInfoForm.auto_apply_refund"}})],1):e._e(),e._v(" "),1==e.shopConfigInfoForm.auto_apply_refund&&e.wxapp?a("div",{staticStyle:{"margin-left":"30px"}},[a("div",{staticClass:"flex-row"},[a("div",{staticStyle:{"font-size":"14px",color:"#606266","margin-right":"10px"}},[e._v("每日逾期扣除押金比例")]),e._v(" "),a("el-input-number",{staticStyle:{width:"90px"},attrs:{min:0,max:100,size:"mini","controls-position":"right"},model:{value:e.shopConfigInfoForm.refund_cost_rate,callback:function(t){e.$set(e.shopConfigInfoForm,"refund_cost_rate",t)},expression:"shopConfigInfoForm.refund_cost_rate"}}),e._v(" % \n "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"mini"},on:{click:e.handleAutoApplyRefund}},[e._v("\n 保存 ")])],1),e._v(" "),1==e.shopConfigInfoForm.auto_apply_refund&&e.wxapp?a("div",{staticClass:"mark",staticStyle:{"margin-top":"20px","margin-bottom":"20px"}},[e._v("\n (比如押金500元,设置每日逾期扣除1%,逾期两天则扣除500*2%=10,押金则自动退还490元)")]):e._e()]):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"开启车电一体","label-width":"200"}},[a("el-checkbox",{on:{change:e.handleIntegrateSwitch},model:{value:e.shopConfigInfoForm.integrate_switch,callback:function(t){e.$set(e.shopConfigInfoForm,"integrate_switch",t)},expression:"shopConfigInfoForm.integrate_switch"}})],1),e._v(" "),e.wxapp?a("el-form-item",{attrs:{label:"限制用户只能租一套设备"}},[a("el-checkbox",{on:{change:e.handleSingleDevice},model:{value:e.shopConfigInfoForm.single_device,callback:function(t){e.$set(e.shopConfigInfoForm,"single_device",t)},expression:"shopConfigInfoForm.single_device"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"电池是否可以被租赁"}},[a("el-checkbox",{on:{change:e.handleUserCanHire},model:{value:e.shopConfigInfoForm.can_hire,callback:function(t){e.$set(e.shopConfigInfoForm,"can_hire",t)},expression:"shopConfigInfoForm.can_hire"}})],1),e._v(" "),a("div",{staticClass:"expire_notice"},[a("el-form-item",{attrs:{label:"设备到期/即将到期弹窗提醒"}},[a("el-checkbox",{staticClass:"selectAll",on:{change:e.handleIsAllLevel},model:{value:e.shopConfigInfoForm.is_all_level,callback:function(t){e.$set(e.shopConfigInfoForm,"is_all_level",t)},expression:"shopConfigInfoForm.is_all_level"}},[e._v("包含所有门店\n ")]),e._v(" "),a("el-checkbox",{staticClass:"selectAll",on:{change:e.handleRenewPrompt},model:{value:e.shopConfigInfoForm.expire_notice,callback:function(t){e.$set(e.shopConfigInfoForm,"expire_notice",t)},expression:"shopConfigInfoForm.expire_notice"}},[e._v("需要弹窗提醒\n ")])],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"是否使用主体配置的保险"}},[a("el-checkbox",{on:{change:e.handleSaveUseMainInsurance},model:{value:e.shopConfigInfoForm.use_main_insurance,callback:function(t){e.$set(e.shopConfigInfoForm,"use_main_insurance",t)},expression:"shopConfigInfoForm.use_main_insurance"}}),e._v(" "),a("span",{staticClass:"tips"},[e._v("* 请升级至4.1.230227版本")])],1),e._v(" "),a("el-form-item",{attrs:{label:"机柜还电时,电池是否进行转移至机柜所属门店","label-width":"300"}},[a("el-checkbox",{on:{change:e.handleSaveUserRTTransfer},model:{value:e.shopConfigInfoForm.cabinet_rt_transfer,callback:function(t){e.$set(e.shopConfigInfoForm,"cabinet_rt_transfer",t)},expression:"shopConfigInfoForm.cabinet_rt_transfer"}}),e._v(" "),a("span",{staticClass:"tips"},[e._v("* 目前仅支持zx01 类型机柜")])],1),e._v(" "),a("el-form-item",{attrs:{label:"是否免押金"}},[a("el-checkbox",{on:{change:e.handleSaveUserNoDeposit},model:{value:e.shopConfigInfoForm.no_deposit,callback:function(t){e.$set(e.shopConfigInfoForm,"no_deposit",t)},expression:"shopConfigInfoForm.no_deposit"}}),e._v(" "),a("span",{staticClass:"tips"},[e._v("* 此功能将启用设备的押金为0元")])],1),e._v(" "),e.wxapp?a("el-form-item",{attrs:{label:"是否开启信任免押"}},[a("el-checkbox",{on:{change:e.handleSaveUserTrustDeposit},model:{value:e.shopConfigInfoForm.trust_deposit,callback:function(t){e.$set(e.shopConfigInfoForm,"trust_deposit",t)},expression:"shopConfigInfoForm.trust_deposit"}}),e._v(" "),a("span",{staticClass:"tips"},[e._v("* 此功能将开启资料审核免押 请升级至4.1.230805版本")])],1):e._e(),e._v(" "),e.is_devops_define?a("el-form-item",{attrs:{label:"是否启动维保"}},[a("el-checkbox",{on:{change:e.handleSaveDevopsStatus},model:{value:e.shopConfigInfoForm.is_devops,callback:function(t){e.$set(e.shopConfigInfoForm,"is_devops",t)},expression:"shopConfigInfoForm.is_devops"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"是否开通业务员邀请码"}},[a("el-checkbox",{on:{change:e.handleSaveUserEmployeeCode},model:{value:e.shopConfigInfoForm.employee_code,callback:function(t){e.$set(e.shopConfigInfoForm,"employee_code",t)},expression:"shopConfigInfoForm.employee_code"}})],1),e._v(" "),e.is_offline_renewal?a("el-form-item",{attrs:{label:"离线电池只有主体门店能续费"}},[a("el-checkbox",{on:{change:e.handleOfflineRenewal},model:{value:e.shopConfigInfoForm.offline_renewal_mainstore,callback:function(t){e.$set(e.shopConfigInfoForm,"offline_renewal_mainstore",t)},expression:"shopConfigInfoForm.offline_renewal_mainstore"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"机柜租电时更换所属门店"}},[a("el-checkbox",{on:{change:e.handleSaveHireChangeShop},model:{value:e.shopConfigInfoForm.hire_change_shop,callback:function(t){e.$set(e.shopConfigInfoForm,"hire_change_shop",t)},expression:"shopConfigInfoForm.hire_change_shop"}}),e._v(" "),a("span",{staticClass:"hireChangeShop"},[e._v("启用表示“电池在门店机柜租电成功后,自动转移至机柜门店”")])],1),e._v(" "),e.is_id_card_unique?a("el-form-item",{attrs:{label:"是否校验用户身份证唯一"}},[a("el-checkbox",{on:{change:e.handleIdCardUnique},model:{value:e.shopConfigInfoForm.id_card_unique,callback:function(t){e.$set(e.shopConfigInfoForm,"id_card_unique",t)},expression:"shopConfigInfoForm.id_card_unique"}})],1):e._e(),e._v(" "),e.is_new_user_by_id_card?a("el-form-item",{attrs:{label:"是否根据身份证认定新老用户"}},[a("el-checkbox",{on:{change:e.handleNewUserByIdCard},model:{value:e.shopConfigInfoForm.new_user_by_id_card,callback:function(t){e.$set(e.shopConfigInfoForm,"new_user_by_id_card",t)},expression:"shopConfigInfoForm.new_user_by_id_card"}})],1):e._e(),e._v(" "),e.is_real_name_verification?a("el-form-item",{attrs:{label:"是否开启身份证实名认证"}},[a("el-checkbox",{on:{change:e.handleRealNameVerification},model:{value:e.shopConfigInfoForm.real_name_verification,callback:function(t){e.$set(e.shopConfigInfoForm,"real_name_verification",t)},expression:"shopConfigInfoForm.real_name_verification"}})],1):e._e(),e._v(" "),e.is_auto_identity?a("el-form-item",{attrs:{label:"是否自动审核用户认证"}},[a("el-checkbox",{on:{change:e.handleAutoIdentity},model:{value:e.shopConfigInfoForm.auto_identity,callback:function(t){e.$set(e.shopConfigInfoForm,"auto_identity",t)},expression:"shopConfigInfoForm.auto_identity"}})],1):e._e(),e._v(" "),e.is_open_civil_battery?a("el-form-item",{attrs:{label:"是否开始民用换电"}},[a("el-checkbox",{on:{change:e.handleCivilBatteryEnabled},model:{value:e.shopConfigInfoForm.open_civil_battery,callback:function(t){e.$set(e.shopConfigInfoForm,"open_civil_battery",t)},expression:"shopConfigInfoForm.open_civil_battery"}})],1):e._e(),e._v(" "),e.is_short_show?a("el-form-item",{attrs:{label:"是否开启短租"}},[a("el-checkbox",{on:{change:e.handleUserShortHire},model:{value:e.shopConfigInfoForm.is_short,callback:function(t){e.$set(e.shopConfigInfoForm,"is_short",t)},expression:"shopConfigInfoForm.is_short"}})],1):e._e(),e._v(" "),a("div",{staticClass:"flex-row",staticStyle:{"margin-left":"10px"}},[e.shopConfigInfoForm.is_short?a("el-form-item",{attrs:{label:"租赁支付提示"}},[a("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入支付提示",size:"mini"},model:{value:e.shopConfigInfoForm.hire_tips,callback:function(t){e.$set(e.shopConfigInfoForm,"hire_tips",t)},expression:"shopConfigInfoForm.hire_tips"}})],1):e._e(),e._v(" "),e.shopConfigInfoForm.is_short?a("el-button",{staticStyle:{width:"80px","margin-bottom":"20px","margin-left":"10px"},attrs:{type:"success",size:"mini"},on:{click:e.handleSaveHireTips}},[e._v("\n 保存\n ")]):e._e()],1),e._v(" "),a("el-form-item",{attrs:{label:"小程序显示设备经营类型",prop:"battery_combined_switch"}},[a("el-radio-group",{on:{change:e.clickBatteryCombinedSwitch},model:{value:e.shopConfigInfoForm.battery_combined_switch,callback:function(t){e.$set(e.shopConfigInfoForm,"battery_combined_switch",t)},expression:"shopConfigInfoForm.battery_combined_switch"}},[a("el-radio",{attrs:{label:1}},[e._v("骑手")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("民用")]),e._v(" "),a("el-radio",{attrs:{label:3}},[e._v("骑手+民用")])],1)],1),e._v(" "),e.wxapp?a("el-form-item",{attrs:{label:"是否允许跨门店还车"}},[a("el-checkbox",{on:{change:e.handleIsAnotherShopReturnCar},model:{value:e.shopConfigInfoForm.is_another_shop_return_car,callback:function(t){e.$set(e.shopConfigInfoForm,"is_another_shop_return_car",t)},expression:"shopConfigInfoForm.is_another_shop_return_car"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"进出电子围栏控制通断电"}},[a("el-checkbox",{on:{change:e.handleFenceOutTurnOff},model:{value:e.shopConfigInfoForm.fence_out_turn_off,callback:function(t){e.$set(e.shopConfigInfoForm,"fence_out_turn_off",t)},expression:"shopConfigInfoForm.fence_out_turn_off"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"换电异常自动退款"}},[a("el-checkbox",{on:{change:e.handleAllowRefundExchange},model:{value:e.shopConfigInfoForm.auto_refund_for_exchange,callback:function(t){e.$set(e.shopConfigInfoForm,"auto_refund_for_exchange",t)},expression:"shopConfigInfoForm.auto_refund_for_exchange "}})],1),e._v(" "),e.mergency_contact_user_and_area?a("el-form-item",{attrs:{label:"用户进行身份认证是否填写地址和紧急联系人"}},[a("el-checkbox",{on:{change:e.handleIdentityContact},model:{value:e.shopConfigInfoForm.is_mergency_contact_user_and_area,callback:function(t){e.$set(e.shopConfigInfoForm,"is_mergency_contact_user_and_area",t)},expression:"shopConfigInfoForm.is_mergency_contact_user_and_area"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"租还车是否强制上传图片"}},[a("el-checkbox",{on:{change:e.handleUserHireCarImgUpload},model:{value:e.shopConfigInfoForm.hire_car_img_upload,callback:function(t){e.$set(e.shopConfigInfoForm,"hire_car_img_upload",t)},expression:"shopConfigInfoForm.hire_car_img_upload"}})],1),e._v(" "),e.wxapp?a("el-form-item",{attrs:{label:"机柜电池跨门店租赁"}},[a("el-checkbox",{on:{change:e.handleUserRentCrossShiopStatus},model:{value:e.shopConfigInfoForm.can_rent_cross_shop_status,callback:function(t){e.$set(e.shopConfigInfoForm,"can_rent_cross_shop_status",t)},expression:"shopConfigInfoForm.can_rent_cross_shop_status"}}),e._v(" "),a("span",{staticClass:"mark",staticStyle:{"margin-left":"10px"}},[e._v("关闭表示:当电池不属于当前机柜时,将不会开仓租赁出去")])],1):e._e(),e._v(" "),e.wxapp?a("el-form-item",{attrs:{label:"是否开启先享后付"}},[a("el-checkbox",{on:{change:function(t){e.handleUserSetExtValue("freeze_subscribe",e.shopConfigInfoForm.freeze_subscribe)}},model:{value:e.shopConfigInfoForm.freeze_subscribe,callback:function(t){e.$set(e.shopConfigInfoForm,"freeze_subscribe",t)},expression:"shopConfigInfoForm.freeze_subscribe"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"用户年龄限制"}},[a("el-input",{staticStyle:{width:"70px"},attrs:{type:"text",size:"mini",placeholder:"请输入"},model:{value:e.shopConfigInfoForm.min_age,callback:function(t){e.$set(e.shopConfigInfoForm,"min_age",t)},expression:"shopConfigInfoForm.min_age"}}),e._v("\n 岁以上\n "),a("el-input",{staticStyle:{width:"70px"},attrs:{type:"text",size:"mini",placeholder:"请输入"},model:{value:e.shopConfigInfoForm.max_age,callback:function(t){e.$set(e.shopConfigInfoForm,"max_age",t)},expression:"shopConfigInfoForm.max_age"}}),e._v("\n 岁以下\n "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",size:"mini"},on:{click:e.handleSaveLimitAge}},[e._v("\n 保存 ")])],1),e._v(" "),e.wxapp?a("el-form-item",{attrs:{label:"暂存样式配置",prop:"stash_style_config"}},[a("el-radio-group",{on:{change:e.clickStash},model:{value:e.shopConfigInfoForm.stash_style_config,callback:function(t){e.$set(e.shopConfigInfoForm,"stash_style_config",t)},expression:"shopConfigInfoForm.stash_style_config"}},[a("el-radio",{attrs:{label:1}},[a("el-tag",{attrs:{size:"small",type:"info"}},[e._v("暂存")])],1),e._v(" "),a("el-radio",{attrs:{label:2}},[a("el-tag",{attrs:{size:"small",type:"success"}},[e._v("暂存")])],1)],1),e._v(" "),a("span",{staticClass:"tips"},[e._v("请升级至4.1.20240813版本")])],1):e._e(),e._v(" "),e.wxapp?a("el-form-item",{attrs:{label:"退租样式配置",prop:"return_style_config"}},[a("el-radio-group",{on:{change:e.clickReturn},model:{value:e.shopConfigInfoForm.return_style_config,callback:function(t){e.$set(e.shopConfigInfoForm,"return_style_config",t)},expression:"shopConfigInfoForm.return_style_config"}},[a("el-radio",{attrs:{label:1}},[a("el-tag",{attrs:{size:"small",type:"info"}},[e._v("退租")])],1),e._v(" "),a("el-radio",{attrs:{label:2}},[a("el-tag",{attrs:{size:"small",type:"success"}},[e._v("退租")])],1)],1),e._v(" "),a("span",{staticClass:"tips"},[e._v("请升级至4.1.20240813版本")])],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"实名认证方式",prop:"use_face_verify"}},[a("el-radio-group",{on:{change:function(t){e.updateCfgValue("use_face_verify")}},model:{value:e.shopConfigInfoForm.use_face_verify,callback:function(t){e.$set(e.shopConfigInfoForm,"use_face_verify",t)},expression:"shopConfigInfoForm.use_face_verify"}},[a("el-radio",{attrs:{label:1}},[e._v("人脸识别认证")]),e._v(" "),a("el-radio",{attrs:{label:0}},[e._v("身份证认证")])],1)],1),e._v(" "),e.is_exchange_free_time?a("div",[a("span",{staticClass:"text-style"},[e._v("允许")]),e._v(" "),a("el-input",{staticStyle:{width:"70px"},attrs:{size:"mini"},model:{value:e.shopConfigInfoForm.exchange_free_time,callback:function(t){e.$set(e.shopConfigInfoForm,"exchange_free_time",t)},expression:"shopConfigInfoForm.exchange_free_time"}}),e._v(" "),a("span",{staticClass:"text-style"},[e._v("分钟内免费换电 (不扣套餐次数)")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",size:"mini"},on:{click:e.handleSaveFreeTime}},[e._v("\n 保存 ")])],1):e._e(),e._v(" "),-1!=e.roles.indexOf("pannel_fun")?a("el-form-item",{staticClass:"charge-form-item"},[a("template",{slot:"label"},[a("span",[e._v("充电座充值金额设置 ")]),e._v(" "),a("span",{staticStyle:{"font-size":"x-small",color:"rgb(173 174 179)"}},[e._v("单价(元)")])]),e._v(" "),e._l(e.shopConfigInfoForm.user_pre_wallet_topup_list,function(t,n){return a("div",{key:n},[a("span",[e._v("¥")]),e._v(" "),a("el-input",{staticStyle:{width:"70px","margin-right":"10px"},attrs:{type:"text",size:"mini",placeholder:"请输入"},on:{input:function(t){e.handleEdit(n,t)}},model:{value:t.money,callback:function(a){e.$set(t,"money",a)},expression:"item.money"}})],1)}),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{width:"56px","margin-bottom":"20px","margin-left":"10px"},attrs:{type:"success",size:"mini"},on:{click:function(t){e.handleSaveCharging("user_pre_wallet_topup_list")}}},[e._v("\n 保存\n ")])],2):e._e()],1)],1)},[],!1,null,"2c54d822",null));be.options.__file="shopConfigInfo.vue";var ve=be.exports,ye={name:"SystemConfigInfo",props:{shopId:{type:String,default:""},role:{type:Number,default:100}},data:function(){return{isEdit:!1,loading:!1,wxapp:!1,code:"",shopConfigInfoForm:{shop_id:"",openapi_cabinet:0,openapi_gps:0,phone:""}}},watch:{shopId:{deep:!0,immediate:!0,handler:function(e){null!==e&&(this.shopConfigInfoForm.shop_id=e,this.loadShopConfigInfo())}}},created:function(){},methods:{clickGetCode:function(){var e=this;Object(T.u)({phone:this.shopConfigInfoForm.phone}).then(function(t){200===t.data.code?e.code=t.data.data.code:e.$message.error(t.data.msg)})},loadShopConfigInfo:function(){var e=this;this.loading=!0,Object(T.fb)(this.shopConfigInfoForm).then(function(t){if(200===t.data.code){e.wxapp=t.data.data.userInfo.wxapp,e.shopConfigInfoForm=t.data.data.userInfo;var a=t.data.data.userInfo.openapi_status;a&&(e.shopConfigInfoForm.openapi_cabinet=1===a.status&&(1==(1&a.resource_id)?1:0),e.shopConfigInfoForm.openapi_gps=1===a.status&&(4==(4&a.resource_id)?1:0),e.shopConfigInfoForm.openapi_charge=1===a.status&&(2==(2&a.resource_id)?1:0))}else e.$message.error(t.data.msg);e.$forceUpdate(),e.loading=!1})},handleOpenApi:function(e,t){var a=this,n=t,i="开启";i=1===n?"开启":"关闭",this.$confirm("你确认"+i+"该权限吗?","确认信息",{distinguishCancelAndClose:!0,confirmButtonText:"保存",cancelButtonText:"放弃修改"}).then(function(){a.loading=!0,Object(T.N)({shop_id:a.shopId,status:n,resource_id:e}).then(function(e){200===e.data.code?(a.$message({message:"保存成功",type:"success"}),a.$forceUpdate()):a.$message.error(e.data.msg),a.loading=!1})}).catch(function(t){1===e&&(a.shopConfigInfoForm.openapi_cabinet=1===n?0:1),4===e&&(a.shopConfigInfoForm.openapi_gps=1===n?0:1),2===e&&(a.shopConfigInfoForm.openapi_charge=1===n?0:1),a.$message({type:"info",message:"cancel"===t?"放弃保存":"停留在当前页面"})})},handleOpenApiCabinet:function(e){this.handleOpenApi(1,e)},handleOpenApiGps:function(e){this.handleOpenApi(4,e)},handleOpenApiCharge:function(e){this.handleOpenApi(2,e)}}},ge=(a("AA9d"),Object(y.a)(ye,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{staticStyle:{"margin-left":"0px"},attrs:{"label-position":"left","label-width":"240px",mini:"size"}},[-1==e.role?a("el-form-item",{attrs:{label:"开通换电柜开放接口"}},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0,checked:1==e.shopConfigInfoForm.openapi_cabinet},on:{change:e.handleOpenApiCabinet},model:{value:e.shopConfigInfoForm.openapi_cabinet,callback:function(t){e.$set(e.shopConfigInfoForm,"openapi_cabinet",t)},expression:"shopConfigInfoForm.openapi_cabinet"}},[a("div",{staticClass:"tips"},[e._v("* 需要提交ip白名单和订阅接口")])])],1):e._e(),e._v(" "),-1==e.role?a("el-form-item",{attrs:{label:"开通GPS开放接口"}},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0,checked:1==e.shopConfigInfoForm.openapi_gps},on:{change:e.handleOpenApiGps},model:{value:e.shopConfigInfoForm.openapi_gps,callback:function(t){e.$set(e.shopConfigInfoForm,"openapi_gps",t)},expression:"shopConfigInfoForm.openapi_gps"}},[a("div",{staticClass:"tips"},[e._v("* 需要提交ip白名单和订阅接口")])])],1):e._e(),e._v(" "),-1==e.role?a("el-form-item",{attrs:{label:"开通充电柜开放接口"}},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0,checked:1==e.shopConfigInfoForm.openapi_charge},on:{change:e.handleOpenApiCharge},model:{value:e.shopConfigInfoForm.openapi_charge,callback:function(t){e.$set(e.shopConfigInfoForm,"openapi_charge",t)},expression:"shopConfigInfoForm.openapi_charge"}},[a("div",{staticClass:"tips"},[e._v("* 需要提交ip白名单和订阅接口")])])],1):e._e(),e._v(" "),-1==e.role?a("el-form-item",{attrs:{label:"获取手机用户验证码"}},[a("el-input",{staticStyle:{width:"50%"},attrs:{placeholder:"请输入手机号码"},model:{value:e.shopConfigInfoForm.phone,callback:function(t){e.$set(e.shopConfigInfoForm,"phone",t)},expression:"shopConfigInfoForm.phone"}}),e._v(" "),a("span",{staticStyle:{"margin-left":"10px","margin-right":"10px"}},[e._v(e._s(e.code))]),e._v(" "),a("el-button",{on:{click:e.clickGetCode}},[e._v("获取")])],1):e._e()],1)],1)},[],!1,null,"2f98f25f",null));ge.options.__file="systemConfigInfo.vue";var xe=ge.exports,Ie=a("EJiy"),Fe=a.n(Ie),ke=a("wd6L"),Se={name:"alarmType",props:{width:{type:String,default:"800px"},visible:{type:Boolean,default:!1},selectAlarmType:{type:null,validator:function(e){return"object"===(void 0===e?"undefined":Fe()(e))||null===e},required:!0},selectGroup:{type:null,validator:function(e){return"object"===(void 0===e?"undefined":Fe()(e))||null===e},required:!0}},data:function(){return{deviceForm:{macid:"",alarmType:0},alarmList1:[],alarmList2:[],typeList1:[],typeList2:[],loading:!1,isEnable:!1}},watch:{selectAlarmType:{deep:!0,handler:function(e){null!==e&&(this.deviceForm.macid=this.selectAlarmType.battery_sn,this.loadGetSMSDeviceList())}},selectGroup:{deep:!0,handler:function(e){e&&(this.userInfo.user_id===e.shop_id?this.isEnable=!1:this.isEnable=!0)}}},computed:d()({},Object(I.b)(["authList","language","userInfo"])),mounted:function(){this.DateFormat=q.a},beforeDestroy:function(){},methods:{loadGetSMSDeviceList:function(){var e=this,t={macid:this.deviceForm.macid};Object(ke.j)(t).then(function(t){if(200===t.data.code){e.typeList1=[],e.typeList2=[],e.alarmList1=t.data.data[0].list,e.alarmList2=t.data.data[1].list;for(var a=0;e.alarmList1.length>a;a++)e.alarmList1[a].isSelect=e.alarmList1[a].isSelect.toString(),"1"===e.alarmList1[a].isSelect&&e.typeList1.push(e.alarmList1[a].alarmName);for(var n=0;e.alarmList2.length>n;n++)e.alarmList2[a].isSelect=e.alarmList2[a].isSelect.toString(),"1"===e.alarmList2[n].isSelect&&e.typeList2.push(e.alarmList2[n].alarmName)}})},handleCheckedChange:function(e){},handleCheckedChange2:function(e){},saveAlarmInfo:function(){for(var e=this,t={},a=0;this.alarmList1.length>a;a++){for(var n="0",i=0;this.typeList1.length>i;i++)this.alarmList1[a].alarmName===this.typeList1[i]&&(n="1");t[this.alarmList1[a].type]=n}for(var o=0;this.alarmList2.length>o;o++){for(var r="0",s=0;this.typeList2.length>s;s++)this.alarmList2[o].alarmName===this.typeList2[s]&&(r="1");t[this.alarmList2[o].type]=r}t.macid=this.deviceForm.macid,Object(ke.i)(t).then(function(t){200===t.data.code?(e.$message({message:"保存成功",type:"success"}),e.$emit("handleSetAlarmTypeInfo")):e.$message.error(t.data.msg),e.loading=!1}),this.$emit("update:visible",!1)},saveDeviceInfo:function(){this.$emit("update:visible",!1)}}},we=(a("Wy7p"),Object(y.a)(Se,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"报警类型",visible:e.visible,width:e.width,"before-close":function(){e.$emit("update:visible",!1)},"close-on-click-modal":!1},on:{"update:visible":function(t){e.visible=t}}},[null!==e.selectAlarmType?a("el-form",{attrs:{disabled:e.isEnable,model:e.deviceForm,"label-width":"80px",size:"mini"}},[a("el-row",[a("el-col",[a("div",{staticStyle:{"padding-top":"10px","padding-bottom":"10px"}},[e._v(" 设备号:\n\t\t\t\t\t"+e._s(e.deviceForm.macid)+"\n\t\t\t\t")]),e._v(" "),a("div",{staticStyle:{"padding-top":"10px","padding-bottom":"10px"}},[e._v("严重报警")]),e._v(" "),a("el-checkbox-group",{on:{change:e.handleCheckedChange},model:{value:e.typeList1,callback:function(t){e.typeList1=t},expression:"typeList1"}},e._l(e.alarmList1,function(e,t){return a("el-checkbox",{key:t,attrs:{label:e.alarmName}})})),e._v(" "),a("div",{staticStyle:{"padding-top":"10px","padding-bottom":"10px"}},[e._v("警告报警")]),e._v(" "),a("el-checkbox-group",{on:{change:e.handleCheckedChange2},model:{value:e.typeList2,callback:function(t){e.typeList2=t},expression:"typeList2"}},e._l(e.alarmList2,function(e,t){return a("el-checkbox",{key:t,attrs:{label:e.alarmName}})}))],1)],1)],1):e._e(),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.$emit("update:visible",!1)}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{disabled:e.isEnable,type:"primary"},on:{click:function(t){e.saveAlarmInfo()}}},[e._v("保存")])],1)],1)},[],!1,null,"6ae11856",null));we.options.__file="index.vue";var Ce=we.exports,Be={name:"rechargeCoin",components:{vueQr:B.a},props:{width:{type:String,default:"800px"},visible:{type:Boolean,default:!1},selectGroup:{type:null,validator:function(e){return"object"===(void 0===e?"undefined":Fe()(e))||null===e},required:!0}},data:function(){return{loading:!1,text:"",order_sn:"",timer_set:null,coinList:[],selectTopUp:"",isShowQr:!1}},watch:{},computed:d()({},Object(I.b)(["authList","language","userInfo"])),mounted:function(){this.DateFormat=q.a,"device"!==this.userInfo.type&&this.loadCoinProductList()},beforeDestroy:function(){},methods:{clickRechargeInfo:function(){},loadCoinProductList:function(){var e=this;Object(ke.c)().then(function(t){200===t.data.code&&(e.coinList=t.data.data.list)})},handleCheckedChange:function(e){},handleCheckedChange2:function(e){},coinColse:function(){this.$emit("update:visible",!1),this.isShowQr=!1,null!==this.timer_set&&clearInterval(this.timer_set),this.timer_set=null,this.$message({message:"取消支付"})},saveCoinCredit:function(){var e=this,t=0;if(""!==this.selectTopUp)for(var a=0;this.coinList.length>a;a++){this.coinList[a].money/100+"元("+this.coinList[a].coin/100+"币)"===this.selectTopUp&&(t=this.coinList[a].coin)}var n={id:this.selectGroup?this.selectGroup.shop_id:"",type:"native",coin:t};Object(ke.b)(n).then(function(t){if(200===t.data.code){if("payParams"in t.data.data){e.isShowQr=!0;var a=JSON.parse(t.data.data.payParams);e.text=a.code_url,e.order_sn=t.data.data.order_sn,e.timer_set=setInterval(e.orderQuery,2e3)}}else 15001===t.data.code?e.$message.error(t.data.data.shop_name+"门店没有足够的余额,提醒商家进行充值"):e.$message.error(t.data.msg);e.loading=!1})},orderQuery:function(){var e=this;Object(ke.g)({order_sn:this.order_sn,type:"native"}).then(function(t){200===t.data.code&&("SUCCESS"==t.data.data.payParams.trade_state?(null!==e.timer_set&&clearInterval(e.timer_set),e.timer_set=null,e.isShowQr=!1,e.$emit("update:visible",!1),e.$emit("handleRefreshCoin"),e.$message({message:"支付成功,请等待充值",type:"success"})):"NOTPAY"!=t.data.data.payParams.trade_state&&"USERPAYING"!=t.data.data.payParams.trade_state&&(null!==e.timer_set&&clearInterval(e.timer_set),e.timer_set=null,e.$emit("update:visible",!1),e.$message({message:t.data.data.payParams.trade_state_desc,type:"warning"})))})}}},$e=(a("PRnV"),Object(y.a)(Be,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"充值",visible:e.visible,width:e.width,"before-close":e.coinColse,"close-on-click-modal":!1},on:{"update:visible":function(t){e.visible=t}}},[e.isShowQr?e._e():a("el-form",{attrs:{"label-width":"80px",size:"mini"}},[a("el-row",[a("el-col",e._l(e.coinList,function(t,n){return a("el-radio",{key:n,staticStyle:{"margin-top":"20px"},attrs:{border:"",size:"medium",label:t.money/100+"元("+t.coin/100+"币)"},model:{value:e.selectTopUp,callback:function(t){e.selectTopUp=t},expression:"selectTopUp"}})}))],1)],1),e._v(" "),e.isShowQr?e._e():a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.$emit("update:visible",!1)}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveCoinCredit()}}},[e._v("充值")])],1),e._v(" "),a("div",{staticStyle:{margin:"0 auto",width:"100%","text-align":"center"}},[e.isShowQr?a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("vue-qr",{staticStyle:{width:"200px",height:"200px"},attrs:{text:e.text,size:480}})],1):e._e(),e._v(" "),e.isShowQr?a("div",[e._v("请使用微信扫一扫")]):e._e(),e._v(" "),e.isShowQr?a("div",[e._v("扫描二维码支付")]):e._e()])],1)},[],!1,null,"346beb80",null));$e.options.__file="index.vue";var Le=$e.exports,ze=a("1QAu"),Ee={name:"WalletInfo",components:{rechargeCoin:Le,AlarmType:Ce},props:{selectedGroup:{type:null,validator:function(e){return"object"===(void 0===e?"undefined":Fe()(e))||null===e},required:!0}},data:function(){return{is_main:!0,coin:0,alarmQuery:{page:1,size:20,walletType:"ALARM_DEVICE",groupType:"GROUP",search:""},alarmRecordQuery:{page:1,size:20,search:""},topUpRecordQuery:{page:1,size:20,search:""},walletRecordQuery:{page:1,size:20,search:""},msgTypeInfo:{sms:!1,voice:!1},selectedGroupInfo:{},selectedAlarmInfo:null,topUpRecordList:[],walletRecordList:[],alarmList:[],topUpRecordCount:0,alarmRecordCount:0,walletRecordCount:0,alarmCount:0,recordList:[],editDeviceDialogVisible:!1,deviceAlarmDialogVisible:!1,deviceTopUpDialogVisible:!1,addUserDialogVisible:!1}},computed:d()({},Object(I.b)(["authList","language","userInfo"])),watch:{selectedGroup:{deep:!0,immediate:!0,handler:function(e){null!==e&&(this.selectedGroupInfo=e,this.loadWalletData())}}},created:function(){this.DateFormat=q.a},methods:{handleRefreshCoin:function(){this.loadApiCoinInfo()},loadWalletData:function(){this.loadApiAlarmSummary(),this.loadApiRecordList(),this.loadApiTopUpRecordList(),this.loadApiGetCoinRecordList(),this.loadApiCoinInfo()},loadApiAlarmSummary:function(){var e=this,t={page:this.alarmQuery.page,limit:this.alarmQuery.size,id:this.selectedGroupInfo.shop_id};Object(ke.a)(t).then(function(t){200===t.data.code&&(e.coin=t.data.data.coin,e.alarmList=t.data.data.list,e.alarmCount=t.data.data.total-0)})},loadApiRecordList:function(){var e=this,t={page:this.alarmRecordQuery.page,limit:this.alarmRecordQuery.size,id:this.selectedGroupInfo.shop_id,macid:""};Object(ke.h)(t).then(function(t){200===t.data.code&&(e.recordList=t.data.data.list,e.alarmRecordCount=t.data.data.total-0)})},handleSetAlarmTypeInfo:function(){},loadApiCoinInfo:function(){var e=this,t={id:this.selectedGroupInfo.shop_id};Object(ke.d)(t).then(function(t){if(200===t.data.code){e.coin=t.data.data.coin,e.is_main=t.data.data.is_main;var a=t.data.data.alarm_sms_type,n={};0==a&&(n.sms=!1,n.voice=!1),1==a&&(n.sms=!0,n.voice=!1),2==a&&(n.sms=!1,n.voice=!0),3==a&&(n.sms=!0,n.voice=!0),e.msgTypeInfo=n}})},loadApiGetCoinRecordList:function(){var e=this,t=this.alarmQuery.groupType,a={page:this.topUpRecordQuery.page,limit:this.topUpRecordQuery.size,id:this.selectedGroupInfo.shop_id,type:"GROUP"===t?"2":"1"};Object(ke.f)(a).then(function(t){200===t.data.code&&(e.topUpRecordList=t.data.data.list,e.topUpRecordCount=t.data.data.total-0)})},loadApiTopUpRecordList:function(){var e=this,t=this.alarmQuery.groupType,a={page:this.walletRecordQuery.page,limit:this.walletRecordQuery.size,id:this.selectedGroupInfo.shop_id,type:"GROUP"===t?"2":"1"};Object(ke.e)(a).then(function(t){200===t.data.code&&(e.walletRecordList=t.data.data.list,e.walletRecordCount=t.data.data.total-0)})},handleMsgType:function(){var e=this,t={type:(this.msgTypeInfo.sms?1:0)+(this.msgTypeInfo.voice?2:0),id:this.selectedGroupInfo.shop_id};Object(ze.a)(t).then(function(t){200===t.data.code?e.$message.success("修改成功"):e.$message.error(t.data.msg)})},handleAlarmSizeChange:function(e){this.alarmQuery.size=e,this.loadApiAlarmSummary()},handleAlarmCurrentChange:function(e){this.alarmQuery.page=e,this.loadApiAlarmSummary()},handleAlarmRecordSizeChange:function(e){this.alarmRecordQuery.size=e,this.loadApiRecordList()},handleAlarmRecordCurrentChange:function(e){this.alarmRecordQuery.page=e,this.loadApiRecordList()},handleTopUpRecordSizeChange:function(e){this.topUpRecordQuery.size=e,this.loadApiGetCoinRecordList()},handleTopUpRecordCurrentChange:function(e){this.topUpRecordQuery.page=e,this.loadApiGetCoinRecordList()},handleWalletRecordSizeChange:function(e){this.walletRecordQuery.size=e,this.loadApiTopUpRecordList()},handleWalletRecordCurrentChange:function(e){this.walletRecordQuery.page=e,this.loadApiTopUpRecordList()},handleWalletType:function(e){"TOPUP_RECORD"===this.alarmQuery.walletType&&this.loadApiGetCoinRecordList(),"WALLET_RECORD"===this.alarmQuery.walletType&&this.loadApiTopUpRecordList(),this.loadApiCoinInfo()},handleGroupType:function(e){"TOPUP_RECORD"===this.alarmQuery.walletType?this.loadApiGetCoinRecordList():this.loadApiTopUpRecordList(),this.loadApiCoinInfo()},clickTopUp:function(){this.deviceTopUpDialogVisible=!0},editAlarmTypeInfo:function(e){this.selectedAlarmInfo=e,this.deviceAlarmDialogVisible=!0}}},Te=(a("pfo/"),Object(y.a)(Ee,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"group-item flex-row"},[a("div",{staticClass:"item-label"},[e._v("余额:")]),e._v(" "),a("div",{staticClass:"item-value"},[e._v(e._s(e.coin/100)+"币")]),e._v(" "),1!=e.selectedGroupInfo.shop_id?a("el-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(t){e.clickTopUp()}}},[e._v("\n 充值\n ")]):e._e(),e._v(" "),a("el-button",{staticStyle:{"margin-left":"20px","margin-right":"20px"},attrs:{type:"primary",icon:"el-icon-refresh",size:"mini"},on:{click:function(t){e.loadWalletData()}}},[e._v("\n 刷新")]),e._v(" "),a("el-checkbox",{staticClass:"selectAll",on:{change:e.handleMsgType},model:{value:e.msgTypeInfo.sms,callback:function(t){e.$set(e.msgTypeInfo,"sms",t)},expression:"msgTypeInfo.sms"}},[e._v("短信\n ")]),e._v(" "),a("el-checkbox",{staticClass:"selectAll",on:{change:e.handleMsgType},model:{value:e.msgTypeInfo.voice,callback:function(t){e.$set(e.msgTypeInfo,"voice",t)},expression:"msgTypeInfo.voice"}},[e._v("语音\n ")]),e._v(" "),a("span",{staticStyle:{color:"#f56c6c","margin-left":"10px","font-size":"14px"}},[e._v(" 需要升级小程序至4.1.20211202之后版本")])],1),e._v(" "),a("el-radio-group",{staticStyle:{"margin-right":"10px","margin-top":"10px"},attrs:{size:"mini"},on:{change:e.handleWalletType},model:{value:e.alarmQuery.walletType,callback:function(t){e.$set(e.alarmQuery,"walletType",t)},expression:"alarmQuery.walletType"}},[a("el-radio-button",{attrs:{label:"ALARM_DEVICE"}},[e._v("报警设备\n ")]),e._v(" "),a("el-radio-button",{attrs:{label:"ALARM_RECORD"}},[e._v("报警记录\n ")]),e._v(" "),a("el-radio-button",{attrs:{label:"TOPUP_RECORD"}},[e._v("充值记录\n ")]),e._v(" "),a("el-radio-button",{attrs:{label:"WALLET_RECORD"}},[e._v("钱包流水\n ")])],1),e._v(" "),!0!==e.is_main||"TOPUP_RECORD"!==e.alarmQuery.walletType&&"WALLET_RECORD"!==e.alarmQuery.walletType?e._e():a("el-radio-group",{staticStyle:{"margin-right":"10px"},attrs:{size:"mini"},on:{change:e.handleGroupType},model:{value:e.alarmQuery.groupType,callback:function(t){e.$set(e.alarmQuery,"groupType",t)},expression:"alarmQuery.groupType"}},[a("el-radio-button",{attrs:{label:"GROUP"}},[e._v("商户\n ")]),e._v(" "),a("el-radio-button",{attrs:{label:"USER"}},[e._v("用户\n ")])],1),e._v(" "),"ALARM_DEVICE"===e.alarmQuery.walletType?a("div",[a("el-table",{key:"1",staticStyle:{width:"100%","margin-top":"20px","margin-bottom":"20px"},attrs:{data:e.alarmList,stripe:"",border:"",size:"mini"}},[a("el-table-column",{attrs:{prop:"gpsbms_name",label:"名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"battery_sn",label:"设备号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"number",label:"短信报警次数"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){e.editAlarmTypeInfo(t.row)}}},[e._v("\n 编辑报警类型\n ")])],1)]}}])})],1),e._v(" "),a("div",{staticStyle:{padding:"10px 0"}},[a("el-pagination",{attrs:{"current-page":e.alarmQuery.page,"page-sizes":[10,20,30,50,100,500],"page-size":e.alarmQuery.size,total:e.alarmCount,background:"",layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.handleAlarmSizeChange,"current-change":e.handleAlarmCurrentChange}})],1)],1):e._e(),e._v(" "),"ALARM_RECORD"===e.alarmQuery.walletType?a("div",[a("el-table",{key:"2",staticStyle:{width:"100%","margin-top":"20px","margin-bottom":"20px"},attrs:{data:e.recordList,stripe:"",border:"",size:"mini"}},[a("el-table-column",{attrs:{prop:"gpsbms_name",label:"名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"battery_sn",label:"设备号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"alarm_type",label:"报警类型"}}),e._v(" "),a("el-table-column",{attrs:{label:"时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0==t.row.alarm_time?"":e.DateFormat(new Date(1e3*t.row.alarm_time),"yyyy-MM-dd HH:mm:ss"))+"\n ")]}}])})],1),e._v(" "),a("div",{staticStyle:{padding:"10px 0"}},[a("el-pagination",{attrs:{"current-page":e.alarmRecordQuery.page,"page-sizes":[10,20,30,50,100,500],"page-size":e.alarmRecordQuery.size,total:e.alarmRecordCount,background:"",layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.handleAlarmRecordSizeChange,"current-change":e.handleAlarmRecordCurrentChange}})],1)],1):e._e(),e._v(" "),"TOPUP_RECORD"===e.alarmQuery.walletType?a("div",[a("el-table",{key:"3",ref:"configurationTable",staticStyle:{width:"100%","margin-top":"20px","margin-bottom":"20px"},attrs:{data:e.topUpRecordList,border:"",size:"mini"}},[a("el-table-column",{attrs:{prop:"order_sn",label:"订单号"}}),e._v(" "),a("el-table-column",{attrs:{label:"充值金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.money/100)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"到账币数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.coin/100>0?"+"+t.row.coin/100:t.row.coin/100)+"\n ")]}}])}),e._v(" "),"USER"===e.alarmQuery.groupType?a("el-table-column",{attrs:{label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.nickname+"/"+t.row.phone)+"\n ")]}}])}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0==t.row.ctime?"":e.DateFormat(new Date(1e3*t.row.ctime),"yyyy-MM-dd HH:mm:ss"))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0==t.row.status?"未支付":"已支付")+"\n ")]}}])})],1),e._v(" "),a("div",{staticStyle:{padding:"10px 0"}},[a("el-pagination",{attrs:{"current-page":e.topUpRecordQuery.page,"page-sizes":[10,20,30,50,100,500],"page-size":e.topUpRecordQuery.size,total:e.topUpRecordCount,background:"",layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.handleTopUpRecordSizeChange,"current-change":e.handleTopUpRecordCurrentChange}})],1)],1):e._e(),e._v(" "),"WALLET_RECORD"===e.alarmQuery.walletType?a("div",[a("el-table",{key:"4",ref:"configurationTable",staticStyle:{width:"100%","margin-top":"20px","margin-bottom":"20px"},attrs:{data:e.walletRecordList,border:"",size:"mini"}},[a("el-table-column",{key:"11",attrs:{label:"设备号/用户"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.type?a("div",[e._v("\n "+e._s(e.userInfo.shop_name)+"\n ")]):e._e(),e._v(" "),"2"===t.row.type?a("div",[e._v("\n "+e._s("设备号:"+t.row.target_id)+"\n ")]):e._e(),e._v(" "),"3"===t.row.type?a("div",[e._v("\n "+e._s(t.row.nickname+"/"+t.row.phone)+"\n ")]):e._e(),e._v(" "),"4"===t.row.type?a("div",[e._v("\n "+e._s(t.row.nickname+"/"+t.row.phone)+"\n ")]):e._e(),e._v(" "),"8"===t.row.type?a("div",[e._v("\n "+e._s(t.row.target_id)+"\n ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"金币流水"},scopedSlots:e._u([{key:"default",fn:function(t){return[(t.row.after_coin-t.row.before_coin)/100>0?a("div",{staticStyle:{color:"#f56c6c"}},[e._v("\n "+e._s(((t.row.after_coin-t.row.before_coin)/100>0?"+"+(t.row.after_coin-t.row.before_coin)/100:(t.row.after_coin-t.row.before_coin)/100)+"币")+"\n ")]):e._e(),e._v(" "),(t.row.after_coin-t.row.before_coin)/100<0?a("div",{staticStyle:{color:"#67c23a"}},[e._v("\n "+e._s(((t.row.after_coin-t.row.before_coin)/100>0?"+"+(t.row.after_coin-t.row.before_coin)/100:(t.row.after_coin-t.row.before_coin)/100)+"币")+"\n ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"remark",label:"摘要"}}),e._v(" "),a("el-table-column",{attrs:{prop:"after_coin",label:"余额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.after_coin/100+"币")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0==t.row.ctime?"":e.DateFormat(new Date(1e3*t.row.ctime),"yyyy-MM-dd HH:mm:ss"))+"\n ")]}}])})],1),e._v(" "),a("div",{staticStyle:{padding:"10px 0"}},[a("el-pagination",{attrs:{"current-page":e.walletRecordQuery.page,"page-sizes":[10,20,30,50,100,500],"page-size":e.walletRecordQuery.size,total:e.walletRecordCount,background:"",layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.handleWalletRecordSizeChange,"current-change":e.handleWalletRecordCurrentChange}})],1)],1):e._e(),e._v(" "),a("alarm-type",{attrs:{"select-group":e.selectedGroupInfo,visible:e.deviceAlarmDialogVisible,"select-alarm-type":e.selectedAlarmInfo},on:{"update:visible":function(t){e.deviceAlarmDialogVisible=t},handleSetAlarmTypeInfo:e.handleSetAlarmTypeInfo}}),e._v(" "),a("recharge-coin",{attrs:{"select-group":e.selectedGroupInfo,visible:e.deviceTopUpDialogVisible},on:{"update:visible":function(t){e.deviceTopUpDialogVisible=t},handleRefreshCoin:e.handleRefreshCoin}})],1)},[],!1,null,null,null));Te.options.__file="walletInfo.vue";var Ae,De=Te.exports,Oe=a("wkzA"),Re=a.n(Oe),Ue=(a("Add6"),a("X4fA")),je=a("J66h").Base64;window.addEventListener("message",function(e){var t=e.data;if(t&&"locationPicker"===t.module){var a=document.getElementById("address_desc"),n=document.getElementById("address_longitude"),i=document.getElementById("address_latitude"),o=document.getElementById("cityname");a.value=t.poiaddress,n.value=t.latlng.lng,i.value=t.latlng.lat,o.value=t.cityname}},!1);var Ne={name:"ShopList",components:{ScrollPane:$.a,upImage2:V.a,upImagWall:M.a,xcxInfo:ne,vueQr:B.a,alipayInfo:re,cmdInfo:ce,Scrollbar:E,bossInfo:_e,batchDay:G,offInfo:he,shopConfigInfo:ve,systemConfigInfo:xe,walletInfo:De,thirdPartyPay:ee,baiduMap:x},data:function(){return{showTabPane:!1,hourOptions:[],batterySnLen:0,driver:null,monitorBMSURL:"http://gps.bms16.com/?path="+encodeURIComponent("/state")+"&xt="+encodeURIComponent(je.encode(Object(Ue.b)())),monitorAccountBMSURL:"http://gps.bms16.com/?path="+encodeURIComponent("/account")+"&xt="+encodeURIComponent(je.encode(Object(Ue.b)())),monitorURL:"http://gps.bms16.com/?path="+encodeURIComponent("/monitor")+"&xt="+encodeURIComponent(je.encode(Object(Ue.b)())),codeUrl:"http://localhost/new_energy/server/api/web/qrcode/",isCollapse:!1,shopTreeSpan:6,mainAreaSpan:18,activeName:"wx_samll_program",forcedTransfer:!1,defaultProps:{children:"children",label:"shop_name",isLeaf:function(e,t){return!1===t.data.has_children}},moreInfoList:[],time_list:[new Date(2016,9,10,0,0,0),new Date(2016,9,10,23,59,59)],is_show_lazy_tree:!0,product_time_:"",shopLazyList:[],isKeYi:!1,mainShopTreeLoading:!1,transferTreeLoading:!1,transferShopLoading:!1,filterShopTreeName:"",filterTransferUserTreeName:"",filterTransferShopName:"",treeShopList:[],myShopInfo:null,tempNodeData:null,selectedShopInfo:{},configDialogBindFormVisible:!1,batchDayDialogVisible:!1,configBindForm:{},batch_is_auto_close_power:0,smsVisible:!1,dialogFormVisible:!1,additionalVisible:!1,additionalForm:{},merchant_type_end:[],wxapp:0,vehicle_battery_type_hire_electricity:"0",vehicle_battery_type_sell_electricity:"0",vehicle_battery_type_change_electricity:"0",vehicle_battery_type_hire_car:"0",vehicle_battery_type_sell_car:"0",vehicle_battery_type_can_return_car:"0",bussiness_content:{bussiness_car_sell:0,bussiness_car_upgrade:0,bussiness_car_repair:0},shopInfo:{hire_expire_time_range:[],workDays:[],merchant_type:[],business_area:1,shop_id:0,parent_id:0,login_name:"",login_password:"",shop_name:"",link_user_name:"",link_phone:"",cityname:"",address:"",longitude:"",latitude:"",cmd:"add",shop_head:"",shop_image:[],intro:"",business_type:0,is_dealer:0},rules:{address:[{required:!0,message:"请选择店铺地址",trigger:"blur"}],business_area:[{required:!0,message:"请选择业务区域",trigger:"blur"}],login_name:[{required:!0,message:"请填写登录名",trigger:"blur"}],shop_name:[{required:!0,message:"请填写店铺名称",trigger:"blur"}],link_user_name:[{required:!0,message:"请填写联系人",trigger:"blur"}],company_name:[{required:!0,message:"请填写公司名",trigger:"blur"}],merchant_type:[{required:!0,message:"请填写店铺类型",trigger:"blur"}],link_phone:[{required:!0,message:"请填写联系人电话",trigger:"blur"}]},baudList:[4800,9600,14400,38400,56e3,57600,115200],dayOptions:[{value:"1",label:"星期一"},{value:"2",label:"星期二"},{value:"3",label:"星期三"},{value:"4",label:"星期四"},{value:"5",label:"星期五"},{value:"6",label:"星期六"},{value:"7",label:"星期日"}],options:[{value:"100",label:"pack厂商",children:[{value:"101",label:"出售"},{value:"102",label:"租赁"},{value:"103",label:"租车"}]},{value:"200",label:"运营",children:[{value:"201",label:"租电"},{value:"202",label:"租车"},{value:"203",label:"换电"}]},{value:"300",label:"保护板厂",children:[{value:"301",label:"软件版"},{value:"302",label:"硬件版"},{value:"303",label:"动力"},{value:"304",label:"储能"}]}],bussiness_select:[{value:1,label:"国内"},{value:2,label:"国外"},{value:3,label:"全球"}],scene_select:[{value:0,label:"全部"},{value:1,label:"酒店"},{value:2,label:"饭店"},{value:3,label:"机场"},{value:4,label:"医院"},{value:5,label:"KTV"},{value:6,label:"棋牌室"},{value:7,label:"足疗水汇"},{value:8,label:"公共服务中心"}],iconList:[],thirdDeviceTypeList:[],btList:[],batteryList:[],bmsHardAttrList:[{value:1,label:"软件版本",children:[{value:2,label:"TTL"},{value:3,label:"485"}]},{value:4,label:"硬件版",children:[{value:5,label:"高电平"},{value:6,label:"低电平",children:[{value:7,label:"防拆"},{value:8,label:"不防拆"}]}]}],batteryForm:{guarantee_unit:"1",hire_type:1,battery_business_type:"0",exchange_function_status:0,hire_normal_duration:"0",hire_sell_duration:0,shop_id:"",battery_sn_str:"",pledge_money:"1000",hire_price:"100",exchange_price:"",originate_exchange_price:"",pay_with_pledge:"1",hire_cycle:"1",car_icon:0,third_device_type:"DX_BD02",hire_duration_unit:"2",last_minutes:"20",last_price:"1.5",minute_price:"1",share_cycle:"1",share_unit:0,hire_discount:[],share_discount:[],cell_type:"",bms_type:"",battery_type_v:1,battery_type_a:1,sell_price:"0",guarantee_day:"366",is_share_member:0,member_hire_price_ratio:0,member_pledge_money_ratio:0,member_insurance_ratio:0,share_member_type:0,member_hire_money:0,member_pledge_money:0,member_insurance_money:0,car_images_str:[]},batteryFormRules:{battery_type_v:[{required:!0,message:"请设置型号",trigger:"blur"}],battery_type_a:[{required:!0,message:"请设置型号",trigger:"blur"}],battery_sn_str:[{required:!0,message:"请填写设备编号",trigger:"blur"}],hire_price:[{required:!0,message:"请填写单价",trigger:"blur"}],hire_cycle:[{required:!0,message:"请填写租赁周期",trigger:"blur"}],last_minutes:[{required:!0,message:"请填写计费方式",trigger:"blur"}],last_price:[{required:!0,message:"请填写计费方式",trigger:"blur"}],minute_price:[{required:!0,message:"请填写计费方式",trigger:"blur"}],share_cycle:[{required:!0,message:"请填写计费方式",trigger:"blur"}],third_device_type:[{required:!0,message:"请选择设备类型",trigger:"blur"}],sell_price:[{required:!0,message:"请填写售价",trigger:"blur"}],guarantee_day:[{required:!0,message:"请填写保修天数",trigger:"blur"}],bms_type:[{required:!0,message:"请选择BMS保护板类型",trigger:"change"}],bms_hard_attr:[{required:!0,message:"请选择BMS保护板属性",trigger:"blur"}]},dialogTransferFormVisible:!1,configDialogFormVisible:!1,extra_sn_info:{},bms_hard_attr:[1,2],editBatteryInfoForm:{guarantee_unit:"1",hire_type:1,battery_business_type:0,third_device_type:"",shopInfo:{is_day_cost:0}},treeData:[],showTreeData:[],showTransferTreeData:[],showTransferShopData:[],treeDataIds:[],dialogEditBatteryInfoFormVisible:!1,userTreeShow:!1,transferUserInfo:{},transferBatteryList:[],transferInputBatteryStr:"",total:10,pageSizes:[10,20,30,50,100,200],listQuery:{page:1,limit:10,supplier_id:"",is_on_sale:"-1",goods_name:"",sort:"+id"},offlinePayList:[],issearchBatterhFormClick:!1,searchBatterhForm:{sort:"",is_similar:0,battery_sn:"",user_name:"",search_type:0,phone:"",hire_type:0,battery_business_type:"",expire_type:[],min_voltage:"",max_voltage:"",battery_type_v:"",battery_type_a:"",license_plate_number:""},dialogSearchClientInfoFormVisible:!1,dialogRentClientInfoFormVisible:!1,searchClientInfoForm:{user_id:"",phone:"",user_name:""},dialogBatchEditBatteryFormVisible:!1,batchMoreInfoFormVisible:!1,batchEditBatteryForm:{hire_discount_only_new:!1,guarantee_unit:"1",batList:[],hire_type:1,battery_business_type:0,hire_duration_unit:"2",exchange_price:"",originate_exchange_price:"",pay_with_pledge:"",car_icon:0,hire_discount:[],share_discount:[],renew_discount:[],cell_type:"",bms_type:"",voltage_quantity:null,quantity_mil_config:[],platform_type:"web"},options_select:[{value:0,label:"租电"},{value:1,label:"租车"},{value:2,label:"共享"},{value:3,label:"定位"},{value:4,label:"生产"},{value:5,label:"出售"}],business_type:0,dialogTransferShopVisible:!1,batteryLoading:!1,codeLoading:!1,codeStatusLoading:!1,batchEditHireDiscountchecked:!1,batchEditShareDiscountchecked:!1,batchEditRenewDiscountchecked:!1,payNum:"1",payTestChecked:!0,dialogUserAuthVisible:!1,UserAuth:0,UserAuthList:[],cellTypeList:[],bmsTypeList:[],dialogAppAuthVisible:!1,AppAuth:!1,userReturnStatusList:[],userReturnForm:{battery_sn:"",return_status:[],description:"",image_list:[],is_return_pledge_money:!1},userReturnVisible:!1,replaceStatusList:[],replaceBatteryVisible:!1,replaceBatteryForm:{battery_sn:"",type:1,exchange_type_v:1,exchange_type_a:1,return_status:[],description:"",image_list:[]},transferAddLoading:!1,isAbleEdit:!1,saveCabineteBaterySnList:[],dialogSameCabinetBatterySnVisible:!1,freeze_order_begin_time:"",freeze_order_end_time:"",isShowFreezeOrderTime:!1,shopsData:{},headerShopList:[],menuDialogVisible:!1,storeCode:"",visibleStoreCode:!1}},computed:d()({},Object(I.b)(["roles","authList","role","userInfo"])),watch:{filterShopTreeName:function(e){0===e.length&&(this.is_show_lazy_tree=!0),this.filterShopTreeName=e},filterTransferUserTreeName:function(e){this.filterTransferUserTreeName=e,e!==this.transferUserInfo.shop_name&&(this.transferUserInfo={}),this.$refs.transferShoptree&&this.$refs.transferShoptree.filter(e),this.$refs.transferUsertree&&this.$refs.transferUsertree.filter(e)},filterTransferShopName:function(e){this.filterTransferShopName=e,e!==this.transferUserInfo.shop_name&&(this.transferUserInfo={}),this.$refs.transferShoptree&&this.$refs.transferShoptree.filter(e),this.$refs.transferUsertree&&this.$refs.transferUsertree.filter(e)}},created:function(){this.DateFormat=q.a,this.hourOptions=function(){for(var e=[],t=0;t<24;t++){var a={key:t,label:t<10?"0"+t+":00":t+":00",value:t+""};e.push(a)}return e}(),this.loadSelectMoreInfoConfig(this.userInfo.user_id),this.loadSelectWxAppConfig(this.userInfo.user_id),this.loadMe(),this.loadBatteyCellTypeList(),this.loadIconList(),this.loadBatteryThirdDeviceTypeList(),this.loadReplaceStatusList(),this.loadUserTableTitle(),this.loadUserIsChild()},mounted:function(){var e=this;window.onresize=function(){e.$forceUpdate()},this.$refs.table.bodyWrapper.addEventListener("scroll",function(){e.$forceUpdate()})},methods:(Ae={click_hire_duration_unit:function(){0==this.editBatteryInfoForm.battery_business_type&&(this.editBatteryInfoForm.hire_duration_unit="1")},click_hire_duration_unit_1:function(){4==this.editBatteryInfoForm.hire_duration_unit&&(this.editBatteryInfoForm.hire_cycle=1)},change_hire_duration_unit:function(){0==this.batchEditBatteryForm.battery_business_type&&(this.batchEditBatteryForm.hire_duration_unit="1")},change_hire_duration_unit_1:function(){0==this.batchEditBatteryForm.hire_duration_unit&&(this.batchEditBatteryForm.hire_cycle=1)},batteryForm_hire_duration_unit:function(){0==this.batteryForm.battery_business_type&&(this.batteryForm.hire_duration_unit="1")},batteryForm_hire_duration_unit_1:function(){0==this.batteryForm.hire_duration_unit&&(this.batteryForm.hire_cycle=1)},clickCanSell:function(){this.loadBatteryList()},loadUserIsChild:function(){var e=this;Object(T.hb)({pid:"27669"}).then(function(t){200===t.data.code&&(e.isKeYi=t.data.data.res)})},handleBatchSNStrNum:function(e){for(var t=e.split("\n"),a=[],n=0;t.length>n;n++){var i=t[n];this.isNull(i)||a.push(i)}this.batterySnLen=a.length},isNull:function(e){if(""==e)return!0;return new RegExp("^[ ]+$").test(e)},handleLimitEdit:function(e){var t=e.replace(/[^\-\d]/g,"");t=(t=(t=(t=(t=t.replace(/\-{2,}/g,"-")).replace(/(\d)\-/g,"$1")).replace(/-(0+)/g,"0")).replace(/^0+(\d)/,"$1")).replace(/(-?\d{15})\d*/,"$1"),this.editBatteryInfoForm.days=t},toEditMoreInfo:function(e){for(var t=0;t<e.more_info.length;t++){var a=e.more_info[t];for(var n in a)a[n+"_1"]=a[n]}var i={data_info:e.more_info,more_info:e.more_info,battery_sn:e.battery_sn};this.additionalForm=i,this.$forceUpdate(),this.additionalVisible=!0},changeInput:function(e){this.$forceUpdate()},clickSimNoticeTarget:function(e){var t=this;this.$confirm("你是否要执行此操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(T.Bb)({shop_id:t.selectedShopInfo.shop_id,target:e}).then(function(a){200===a.data.code?(t.selectedShopInfo.sim_notice_target=e,t.$message.success("提交成功")):(t.selectedShopInfo.sim_notice_target=0===e?1:0,t.$message.error(a.data.msg))})}).catch(function(){t.selectedShopInfo.sim_notice_target=0===e?1:0,t.$message({type:"info",message:"已取消删除"})})},replaceBattery:function(e){this.replaceBatteryVisible=!0,this.replaceBatteryForm={battery_sn:e.battery_sn,type:1,exchange_type_v:1,exchange_type_a:1,return_status:[],description:"",image_list:[]}},replaceBatterySave:function(){var e=this;this.replaceBatteryVisible=!1,Object(A.n)({battery_sn:this.replaceBatteryForm.battery_sn,journal:this.replaceBatteryForm}).then(function(t){200===t.data.code?e.$message.success("申请成功"):e.$message.error(t.data.msg)})},loadReplaceStatusList:function(){var e=this;Object(T.K)().then(function(t){e.replaceStatusList=t.data.data.list})},collapseShopTree:function(){this.isCollapse=!0,this.shopTreeSpan=0,this.mainAreaSpan=24},openShopTree:function(){this.isCollapse=!1,this.shopTreeSpan=6,this.mainAreaSpan=18},handleSizeChange:function(e){this.listQuery.limit=e,this.loadBatteryList()},handleCurrentChange:function(e){this.listQuery.page=e,this.loadBatteryList()},append:function(e,t){e.children||this.$set(e,"children",[]);var a=this.decimalToBinary(t.service_type,6).split("");this.vehicle_battery_type_can_return_car=a[0],this.vehicle_battery_type_hire_car=a[2],this.vehicle_battery_type_hire_electricity=a[5],e.children.push(t)},clickSaveAdditional:function(){for(var e=this,t=[],a=0;a<this.additionalForm.data_info.length;a++){var n={},i=this.additionalForm.data_info[a];n.key=i.key_1,n.value=i.value_1,t.push(n)}this.additionalForm.data=t,Object(A.A)(this.additionalForm).then(function(t){200===t.data.code?(e.additionalVisible=!1,e.loadBatteryList()):e.$message.error(t.data.msg)})},removeSlideImg:function(e){for(var t=0;t<this.shopInfo.shop_image.length;t++)if(this.shopInfo.shop_image[t]===e){this.shopInfo.shop_image.splice(t,1);break}},removeReturnImg:function(e){for(var t=0;t<this.userReturnForm.image_list.length;t++)if(this.userReturnForm.image_list[t]===e){this.userReturnForm.image_list.splice(t,1);break}},removeReplaceImg:function(e){for(var t=0;t<this.replaceBatteryForm.image_list.length;t++)if(this.replaceBatteryForm.image_list[t]===e){this.replaceBatteryForm.image_list.splice(t,1);break}},remove:function(e,t){var a=this;this.$confirm("此操作将永久删除, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(T.r)({shop_id:e.data.shop_id}).then(function(n){200===n.data.code?(a.$message.success("删除成功"),e.remove(t)):a.$message.error(n.data.msg)})}).catch(function(){a.$message({type:"info",message:"已取消删除"})})},showAddShopDialog:function(e){this.shopInfo={shop_image:[]},this.shopInfo.parent_id=e.shop_id,this.tempNodeData=e,this.shopInfo.cmd="add",this.dialogFormVisible=!0},handleBatchGiveDay:function(){var e=[];this.transferBatteryList.forEach(function(t){e.push(t.battery_sn)}),this.batchEditBatteryForm.batList=e,this.batchDayDialogVisible=!0},getLngLatAddress:function(e){this.shopInfo.address=e.address,this.shopInfo.longitude=e.point.lng,this.shopInfo.latitude=e.point.lat,this.shopInfo.cityname=e.cityName,this.$forceUpdate()},addShop:function(){var e=this,t=document.getElementById("address_desc"),a=document.getElementById("address_longitude"),n=document.getElementById("address_latitude"),i=document.getElementById("cityname");if(this.shopInfo.address=t.value,this.shopInfo.longitude=a.value,this.shopInfo.latitude=n.value,this.shopInfo.cityname=i.value,this.shopInfo.work_days&&(this.shopInfo.work_days=0==this.shopInfo.work_days.length?["1","2","3","4","5","6","7"].toString():this.shopInfo.workDays.toString()),this.time_list.length>1){var o=function(e){return e<10?"0"+e:e.toString()},r=new Date(this.time_list[0]),s=new Date(this.time_list[1]);this.shopInfo.work_begin_time=o(r.getHours())+":"+o(r.getMinutes())+":"+o(r.getSeconds()),this.shopInfo.work_end_time=o(s.getHours())+":"+o(s.getMinutes())+":"+o(s.getSeconds())}var l=[];if(null!=this.shopInfo.merchant_type){if(0!==this.shopInfo.merchant_type.length)for(var c=0;this.shopInfo.merchant_type.length>c;c++)this.shopInfo.merchant_type[c].length>1&&l.push(this.shopInfo.merchant_type[c][1]);var d=this.shopInfo.shop_type;this.shopInfo.shop_type=l.toString(),delete this.shopInfo.return_list,delete this.shopInfo.service_list,delete this.shopInfo.service_phone,this.dialogFormVisible=!1,Object(T.L)(this.shopInfo).then(function(t){e.shopInfo.shop_type=d,200===t.data.code?("add"===e.shopInfo.cmd?(e.append(e.tempNodeData,t.data.data.userInfo),e.$message.success("创建门店成功!")):"edit"===e.shopInfo.cmd&&e.$message.success("编辑门店成功!"),e.shopInfo={},e.loadMe(e.selectedShopInfo.shop_id),e.is_show_lazy_tree=!0,e.reloadShopList("")):(e.mainShopTreeLoading=!1,e.dialogFormVisible=!0,e.$nextTick(function(){e.$message.error(t.data.msg)}))})}else this.$message.error("请填写店铺类型")},reloadShopList:function(e){var t=this;Object(T.vb)({parent_id:e}).then(function(e){if(200===e.data.code){t.mainShopTreeLoading=!1;for(var a=[],n=0;n<e.data.data.length;n++)t.dialogTransferShopVisible&&e.data.data[n].shop_id===t.selectedShopInfo.shop_id?e.data.data[n]=[]:(""===e.data.data[n].shop_image?e.data.data[n].shop_image=[]:e.data.data[n].shop_image=JSON.parse(e.data.data[n].shop_image),a.push(e.data.data[n]));t.treeData=a}})},reloadExpandShopList:function(e,t){var a=this;1===t?this.mainShopTreeLoading=!0:2===t?this.transferTreeLoading=!0:this.transferShopLoading=!0,Object(T.vb)({parent_id:e}).then(function(n){if(1===t?a.mainShopTreeLoading=!1:2===t?a.transferTreeLoading=!1:a.transferShopLoading=!1,200===n.data.code){for(var i=[],o=0;o<n.data.data.length;o++)if(a.dialogTransferShopVisible&&n.data.data[o].shop_id===a.selectedShopInfo.shop_id)n.data.data[o]=[];else{if(!1===n.data.data[o].has_children)n.data.data[o].children=[];else{n.data.data[o].children=[{id:"1",children:[]}]}""===n.data.data[o].shop_image?n.data.data[o].shop_image=[]:n.data.data[o].shop_image=JSON.parse(n.data.data[o].shop_image),i.push(n.data.data[o])}a.removeParentData(e),1===t?(a.removeParentData(e),a.showTreeData=a.loadRecursiveChildrenTreeData(a.showTreeData,e,i)):2===t?a.showTransferTreeData=a.loadRecursiveChildrenTreeData(a.showTransferTreeData,e,i):a.showTransferShopData=a.loadRecursiveChildrenTreeData(a.showTransferShopData,e,i)}})},removeParentData:function(e){for(var t=[],a=!1,n=0;this.treeDataIds.length>n;n++)a||t.push(this.treeDataIds[n]),this.treeDataIds[n]===e&&(a=!0);this.treeDataIds=t},loadRecursiveChildrenTreeData:function(e,t,a){for(var n=0;e.length>n;n++)e[n].shop_id===t?e[n].children=a:this.loadRecursiveChildrenTreeData(e[n].children,t,a);return e},handleDispatch:function(){this.dialogTransferFormVisible=!0,this.filterTransferUserTreeName="",this.filterTransferShopName="",this.transferUserInfo={}},handleSearchShopList:function(){this.is_show_lazy_tree=!1,this.treeDataIds=[],this.loadSearchShopList(1)},handleSearchTransferShopList:function(){this.treeDataIds=[],this.loadSearchShopList(2)},handleSearchTransferShopNameList:function(){this.treeDataIds=[],this.loadSearchShopList(3)},loadSearchShopList:function(e){var t=this,a="";1===e?(this.mainShopTreeLoading=!0,a=this.filterShopTreeName):2===e?(this.transferTreeLoading=!0,a=this.filterTransferUserTreeName):(this.transferShopLoading=!0,a=this.filterTransferShopName),Object(T.Ab)({shop_name:a}).then(function(a){if(t.mainShopTreeLoading=!1,t.transferTreeLoading=!1,t.transferShopLoading=!1,200===a.data.code){for(var n=[],i=0;i<a.data.data.length;i++)if(t.dialogTransferShopVisible&&a.data.data[i].shop_id===t.selectedShopInfo.shop_id)a.data.data[i]=[];else{if(!a.data.data[i].hasOwnProperty("children")){a.data.data[i].children=[{id:"1"}]}""===a.data.data[i].shop_image?a.data.data[i].shop_image=[]:a.data.data[i].shop_image=JSON.parse(a.data.data[i].shop_image),n.push(a.data.data[i])}n.length>0?n[0].children[0].hasOwnProperty("id")?1===e?t.showTreeData=n:2===e?t.showTransferTreeData=n:t.showTransferShopData=n:1===e?t.showTreeData=t.loadRecursiveTreeData(n):2===e?t.showTransferTreeData=t.loadRecursiveTreeData(n):t.showTransferShopData=t.loadRecursiveTreeData(n):1===e?t.showTreeData=n:2===e?t.showTransferTreeData=n:t.showTransferShopData=n}})},loadRecursiveTreeData:function(e){for(var t=0;e.length>t;t++)if(e[t].children.length>0)""===e[t].shop_image?e[t].shop_image=[]:Array.isArray(e[t].shop_image)||(e[t].shop_image=JSON.parse(e[t].shop_image)),this.treeDataIds.push(e[t].shop_id),this.loadRecursiveTreeData(e[t].children);else if(""===e[t].shop_image?e[t].shop_image=[]:Array.isArray(e[t].shop_image)||(e[t].shop_image=JSON.parse(e[t].shop_image)),!0===e[t].has_children){var a={id:t,children:[]};e[t].children=[a]}return e},handleNodeExpand:function(e){this.reloadExpandShopList(e.shop_id,1)},handleUserNodeExpand:function(e){this.reloadExpandShopList(e.shop_id,2)},handleShopNodeExpand:function(e){this.reloadExpandShopList(e.shop_id,3)},loadNode:function(e,t){var a=this,n="";0!==e.level&&(n=e.data.shop_id),Object(T.vb)({parent_id:n}).then(function(e){if(200===e.data.code){for(var n=[],i=0;i<e.data.data.length;i++)a.dialogTransferShopVisible&&e.data.data[i].shop_id===a.selectedShopInfo.shop_id?e.data.data[i]=[]:(""===e.data.data[i].shop_image?e.data.data[i].shop_image=[]:e.data.data[i].shop_image=JSON.parse(e.data.data[i].shop_image),n.push(e.data.data[i]));t(n)}})},setCheckedKeys:function(){this.$refs.leftShoptree.setCheckedKeys([16])},loadMe:function(e){var t=this;e||(this.batteryLoading=!0),Object(T.fb)({shop_id:e||-1}).then(function(a){200===a.data.code?(t.myShopInfo=a.data.data.userInfo,t.treeShopList=[a.data.data.userInfo],t.selectedShopInfo=a.data.data.userInfo,t.selectedShopInfo.sim_notice_target=t.selectedShopInfo.sim_notice_target-0,t.selectedShopInfo.mil_show=t.selectedShopInfo.mil_show-0==1,t.selectedShopInfo.has_device_code=t.selectedShopInfo.has_device_code,t.selectedShopInfo.day_agent=t.selectedShopInfo.day_agent+"",t.selectedShopInfo.allow_cross_exchange_bat=t.selectedShopInfo.allow_cross_exchange_bat-0==1,t.selectedShopInfo.diff_type_exchange=t.selectedShopInfo.diff_type_exchange-0==1,t.selectedShopInfo.exchange_close_battery=t.selectedShopInfo.exchange_close_battery-0==1,t.selectedShopInfo.target=t.selectedShopInfo.target-0==1,t.AppAuth=1===parseInt(t.selectedShopInfo.user_auth),t.shopInfo.is_dealer=t.selectedShopInfo.is_dealer-0,""===a.data.data.userInfo.shop_image?t.selectedShopInfo.shop_image=[]:t.selectedShopInfo.shop_image&&(t.selectedShopInfo.shop_image=JSON.parse(t.selectedShopInfo.shop_image)),t.$forceUpdate(),e?t.batteryLoading=!1:t.loadBatteryList()):t.batteryLoading=!1})},selectedNode:function(e,t,a){this.issearchBatterhFormClick=!1,this.isAbleEdit=!0,this.selectedShopInfo=e,this.loadSelectMoreInfoConfig(this.selectedShopInfo.shop_id),this.loadSelectWxAppConfig(this.selectedShopInfo.shop_id),this.selectedShopInfo.has_device_code=this.selectedShopInfo.has_device_code,this.selectedShopInfo.mil_show=this.selectedShopInfo.mil_show-0==1,this.selectedShopInfo.allow_cross_exchange_bat=this.selectedShopInfo.allow_cross_exchange_bat-0==1,this.selectedShopInfo.diff_type_exchange=this.selectedShopInfo.diff_type_exchange-0==1,this.selectedShopInfo.exchange_close_battery=this.selectedShopInfo.exchange_close_battery-0==1,this.selectedShopInfo.is_display=this.selectedShopInfo.is_display-0==1,this.selectedShopInfo.sim_notice_target=this.selectedShopInfo.sim_notice_target-0,this.$forceUpdate(),this.shopInfo.cmd="add",this.transferUserInfo={},this.listQuery.page=1,this.treeShopList=[this.myShopInfo],this.batteryForm.battery_sn_str="",this.searchBatterhForm.search_type=0,this.searchBatterhForm.hire_type=0,this.searchBatterhForm.expire_type=[],this.batch_is_auto_close_power=0,this.AppAuth=1===parseInt(this.selectedShopInfo.user_auth),this.loadBatteryList()},filterShopTreeNode:function(e,t){if(!e)return!0;if("?"===e[0]){var a=this.$root.totalStatisList.shopList.find(function(t){return t.shop_name===e.slice(1)||t.login_name===e.slice(1)});return void 0!==a&&0===t.path.indexOf(a.path)}return-1!==t.shop_name.indexOf(e)||-1!==t.login_name.indexOf(e)},editUserInfo:function(){this.isAbleEdit=!1,this.shopInfo=this.selectedShopInfo;var e=this.decimalToBinary(this.selectedShopInfo.service_type-0,6).split("");"9".toString(2);if(this.vehicle_battery_type_can_return_car=e[0],this.vehicle_battery_type_hire_car=e[2],this.vehicle_battery_type_hire_electricity=e[5],this.shopInfo.business_type=parseInt(this.selectedShopInfo.business_type),this.shopInfo.business_area=parseInt(this.selectedShopInfo.business_area),this.shopInfo.shop_type.length>0)for(var t=[],a=0;this.shopInfo.shop_type.length>a;a++)for(var n=this.shopInfo.shop_type[a],i=0;n.children.length>i;i++){var o=[];o.push(n.parent),o.push(n.children[i]),t.push(o)}if(this.shopInfo.merchant_type=t,""!==this.shopInfo.work_begin_time&&""!==this.shopInfo.work_end_time){var r=this.shopInfo.work_begin_time.split(":"),s=this.shopInfo.work_end_time.split(":");3===r.length&&3===s.length&&(this.time_list=[new Date(2016,9,10,r[0],r[1],r[2]),new Date(2016,9,10,s[0],s[1],s[2])])}""!==this.shopInfo.work_days&&(this.shopInfo.workDays=this.shopInfo.work_days.split(",")),this.shopInfo.cmd="edit",this.$forceUpdate(),this.dialogFormVisible=!0},loadBatteryThirdDeviceTypeList:function(){var e=this;Object(A.q)().then(function(t){200===t.data.code&&(e.thirdDeviceTypeList=t.data.data.list,e.btList=t.data.data.bt_list)})},loadBatteyCellTypeList:function(){var e=this;Object(A.s)().then(function(t){200===t.data.code&&(e.cellTypeList=t.data.data.cellTypeList,e.bmsTypeList=t.data.data.bmsTypeList)})},dealBussinessContent:function(e){var t={bussiness_car_sell:0,bussiness_car_upgrade:0,bussiness_car_repair:0};return e.includes(1)&&(t.bussiness_car_sell=1),e.includes(2)&&(t.bussiness_car_upgrade=1),e.includes(3)&&(t.bussiness_car_repair=1),t}},i()(Ae,"dealBussinessContent",function(e){var t={bussiness_car_sell:0,bussiness_car_upgrade:0,bussiness_car_repair:0};return e.includes(1)&&(t.bussiness_car_sell=1),e.includes(2)&&(t.bussiness_car_upgrade=1),e.includes(3)&&(t.bussiness_car_repair=1),t}),i()(Ae,"clickSaveBatchMoreInfo",function(){var e=this,t=[];this.transferBatteryList.forEach(function(e){t.push(e.battery_sn)}),Object(A.c)({batList:JSON.parse(l()(t)),data:this.moreInfoList}).then(function(t){200===t.data.code?(e.batchMoreInfoFormVisible=!1,e.loadBatteryList(),e.$message.success("批量修改成功")):e.$message.error(t.data.msg)})}),i()(Ae,"addBattery",function(){var e=this;this.$refs.batteryForm.validate(function(t){if(t){e.batteryForm.hire_discount_only_new=e.batteryForm.hire_discount_only_new?"1":"0";var a=JSON.parse(l()(e.batteryForm));if(!e.checkHireDiscount(a.hire_discount))return void e.$message.error("优惠价设置有误");if(!e.checkHireDiscount(a.share_discount))return void e.$message.error("计费上限设置有误");e.batteryLoading=!0,e.mainShopTreeLoading=!0,a.shop_id=e.selectedShopInfo.shop_id,a.platform_type=1,Object(A.a)(a).then(function(t){200===t.data.code?(e.batteryLoading=!1,e.mainShopTreeLoading=!1,e.loadBatteryList(),e.reloadShopList(""),0!==t.data.data.num&&e.$message.success(t.data.data.num+"个设备导入成功"),""!==t.data.data.relist&&e.$alert(t.data.data.relist,t.data.data.num+"个设备导入成功,有以下设备是重复",{confirmButtonText:"确定",callback:function(e){}})):(e.batteryLoading=!1,e.mainShopTreeLoading=!1,e.$message.error(t.data.msg))})}else e.$message.error("请填写必须参数")})}),i()(Ae,"handleSelectSearchType",function(){this.searchBatterhForm.expire_type=[0],this.loadBatteryList()}),i()(Ae,"handleSelectExpireType",function(e){0===e.length?this.searchBatterhForm.expire_type=[0]:(this.searchBatterhForm.expire_type=[e[e.length-1]],this.searchBatterhForm.search_type=0,this.searchBatterhForm.hire_type=0),this.loadBatteryList()}),i()(Ae,"handleRefreshData",function(){this.loadBatteryList()}),i()(Ae,"clickExpiredTimeSortChange",function(e){"descending"===e.order?this.searchBatterhForm.sort="3":"ascending"===e.order?this.searchBatterhForm.sort="2":this.searchBatterhForm.sort="",this.issearchBatterhFormClick?this.handleSearchBattery():this.loadBatteryList()}),i()(Ae,"loadBatteryList",function(){var e=this;this.batteryLoading=!0;var t=[],a={shop_id:this.selectedShopInfo.shop_id,page:this.listQuery.page,limit:this.listQuery.limit,sort:this.searchBatterhForm.sort,search_type:this.searchBatterhForm.search_type,hire_type:this.searchBatterhForm.hire_type,expire_type:this.searchBatterhForm.expire_type[0],min_voltage:this.searchBatterhForm.min_voltage,max_voltage:this.searchBatterhForm.max_voltage,battery_type_v:this.searchBatterhForm.battery_type_v,battery_type_a:this.searchBatterhForm.battery_type_a,battery_business_type:this.searchBatterhForm.battery_business_type,license_plate_number:this.searchBatterhForm.license_plate_number,car_images_str:t.join(",")};a.car_images_str&&a.car_images_str.length>0&&a.car_images_str.forEach(function(e){if(e)return t.push(e)}),this.issearchBatterhFormClick=!1,Object(A.j)(a).then(function(t){200===t.data.code&&(e.batteryList=t.data.data.batteryList,"18"!==window.localStorage.getItem("shop_driver")&&(e.activeName="wallet",setTimeout(function(){this.driver=new Re.a({allowClose:!0,doneBtnText:"完成",closeBtnText:"关闭",stageBackground:"#fff",nextBtnText:"下一步",prevBtnText:"上一步"})},1e3)),window.localStorage.setItem("shop_driver","18"),e.total=t.data.data.total-0,e.batteryList.forEach(function(t,a){t.sync_bms_sn="1"==t.sync_bms_sn,t.used=t.used+"","JYBMS"===t.third_device_type&&N(t.battery_sn,function(a){if(a[0].State){var n=JSON.parse(a[0].State);if(n.RC){var i=e.batteryList.findIndex(function(e){return e.battery_sn===t.battery_sn});-1!==i&&(e.$set(e.batteryList[i],"electric_quantity",parseFloat(n.RC)),e.$set(e.batteryList[i],"voltage",n.BetteryV_All))}}})}));e.batteryLoading=!1})}),i()(Ae,"typeName",function(e){return e.battery_type_v+"V"+e.battery_type_a+"AH"}),i()(Ae,"clickInputSelectUser",function(){this.userTreeShow=!0,this.handleSearchTransferShopList()}),i()(Ae,"clickInputSelectShop",function(){this.userTreeShow=!0,this.handleSearchTransferShopNameList()}),i()(Ae,"selectedTransferUser",function(e){this.userTreeShow=!1,this.transferUserInfo=e,this.filterTransferUserTreeName=e.shop_name}),i()(Ae,"selectedTransferShop",function(e){this.userTreeShow=!1,this.transferUserInfo=e,this.filterTransferShopName=e.shop_name}),i()(Ae,"handleBatterySelectionChange",function(e){this.transferBatteryList=e}),i()(Ae,"toDelTransferBattery",function(e){for(var t=-1,a=0;a<this.transferBatteryList.length;a++)if(this.transferBatteryList[a].battery_sn===e){t=a;break}t>-1&&this.transferBatteryList.splice(t,1)}),i()(Ae,"handleInputTransfer",function(){var e=this,t=this.transferInputBatteryStr.split("\n");this.transferInputBatteryStr="",this.transferAddLoading=!0,Object(A.o)({battery_sn:t.filter(function(e){return""!==e})}).then(function(t){200===t.data.code&&(e.transferBatteryList=e.transferBatteryList.concat(t.data.data.batteryList.filter(function(t){return-1===e.transferBatteryList.findIndex(function(e){return e.battery_sn===t.battery_sn})}))),e.transferAddLoading=!1}).catch(function(){e.$message.error("请求超时"),e.transferAddLoading=!1})}),i()(Ae,"handTransferBattery",function(){var e=this;if(this.transferUserInfo.shop_id&&0!==this.transferBatteryList.length){var t=[];this.transferBatteryList.forEach(function(e){t.push(e.battery_sn)});var a={shop_id:this.transferUserInfo.shop_id,batteryList:t,is_force:this.forcedTransfer};this.mainShopTreeLoading=!0,this.dialogTransferFormVisible=!1,Object(A.r)(a).then(function(a){e.mainShopTreeLoading=!1,e.transferTreeLoading=!1,e.transferShopLoading=!1,200===a.data.code?(e.loadMe(),e.reloadShopList(""),e.$message.success(t.length+"个设备转移成功"),e.transferBatteryList=[]):10014===a.data.code?(e.mainShopTreeLoading=!1,e.dialogTransferFormVisible=!0,e.$nextTick(function(){var t=a.data.data.dayhire.join(";"),n=a.data.data.noOpList.join(";");0!=a.data.data.dayhire.length?e.$notify({title:"车辆绑定日租车,无法转移,请先删除",message:t,type:"warning",duration:1e4}):0!=a.data.data.noOpList.length&&e.$notify({title:"转移失败: 请确认以下设备是否存在,或已绑定用户",message:n,type:"warning",duration:1e4})})):e.$message.error(a.data.msg)})}else this.$message.error("请选择转移的用户或设备")}),i()(Ae,"chooseMap",function(e){}),i()(Ae,"toEditBatteryInfo",function(e){this.editBatteryInfoForm=r()({},e),0===parseInt(this.editBatteryInfoForm.hire_time)&&(this.editBatteryInfoForm.hire_time=new Date),0===parseInt(this.editBatteryInfoForm.hire_expire_time)&&(this.editBatteryInfoForm.hire_expire_time=new Date),parseInt(this.editBatteryInfoForm.product_time)?this.product_time_=e.product_time:this.product_time_="",this.editBatteryInfoForm.hire_discount_only_new="1"===this.editBatteryInfoForm.hire_discount_only_new,1===this.editBatteryInfoForm.is_share_member&&(this.editBatteryInfoForm.is_share_member=!0),this.dialogEditBatteryInfoFormVisible=!0}),i()(Ae,"toEditClearInfo",function(e){var t=this;this.$confirm("您确定要清空租赁次数吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var a={battery_sn:e.battery_sn};Object(A.u)(a).then(function(e){200===e.data.code?(t.loadBatteryList(),t.$message.success("清空成功")):(t.batteryLoading=!1,t.$nextTick(function(){t.$message.error(e.data.msg)}))})}).catch(function(){t.$message({type:"info",message:"已取消"})})}),i()(Ae,"toEditRentInfo",function(e){this.editBatteryInfoForm=r()({},e);var t=e.freeze_order_begin_time,a=e.freeze_order_end_time;t&&a&&t-0!=0&&a-0!=0?t-0!=0&&t-0!=0&&(this.freeze_order_begin_time=this.DateFormat(new Date(1e3*t),"yyyy-MM-dd HH:mm:ss"),this.freeze_order_end_time=this.DateFormat(new Date(1e3*a),"yyyy-MM-dd HH:mm:ss"),this.isShowFreezeOrderTime=!0):this.isShowFreezeOrderTime=!1,0===parseInt(this.editBatteryInfoForm.hire_time)&&(this.editBatteryInfoForm.hire_time=new Date),0===parseInt(this.editBatteryInfoForm.hire_expire_time)&&(this.editBatteryInfoForm.hire_expire_time=new Date),this.dialogRentClientInfoFormVisible=!0}),i()(Ae,"handleEditRentInfo",function(){var e=this;this.editBatteryInfoForm.freeze_order_end_time&&new Date(this.editBatteryInfoForm.hire_expire_time).getTime()/1e3>this.editBatteryInfoForm.freeze_order_end_time?this.$message.error("请选择结束时间小于免押金的结束时间!"):this.editBatteryInfoForm.relation_sn?this.$confirm("当前设备为车电一体,电池和车将同时更换用户,是否继续操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.loadEditRentInfo()}).catch(function(){e.$message({type:"info",message:"已取消"})}):this.loadEditRentInfo()}),i()(Ae,"loadEditRentInfo",function(){var e=this;if(1==this.editBatteryInfoForm.shopInfo.is_day_cost&&this.editBatteryInfoForm.user_id-0>0&&""==this.searchClientInfoForm.user_id){var t=JSON.parse(l()(this.editBatteryInfoForm));this.dialogRentClientInfoFormVisible=!1,Object(A.g)(t).then(function(t){200===t.data.code?(e.loadBatteryList(),e.searchClientInfoForm={},e.searchClientInfoForm.user_id="",e.$message.success("修改成功")):(e.batteryLoading=!1,e.dialogRentClientInfoFormVisible=!0,e.$nextTick(function(){e.$message.error(t.data.msg)}))})}else{t=JSON.parse(l()(this.editBatteryInfoForm));this.dialogRentClientInfoFormVisible=!1,Object(A.x)(t).then(function(t){200===t.data.code?(e.loadBatteryList(),e.searchClientInfoForm={},e.searchClientInfoForm.user_id="",e.$message.success("修改成功")):(e.batteryLoading=!1,e.dialogRentClientInfoFormVisible=!0,e.$nextTick(function(){e.$message.error(t.data.msg)}))})}}),i()(Ae,"handleEditBatteryInfo",function(){var e=this;this.$refs.editBatteryInfoForm.validate(function(t){if(t){e.editBatteryInfoForm.hire_discount_only_new=e.editBatteryInfoForm.hire_discount_only_new?"1":"0";var a=JSON.parse(l()(e.editBatteryInfoForm));if(!e.checkHireDiscount(a.hire_discount))return void e.$message.error("优惠价设置有误");if(!e.checkHireDiscount(a.share_discount))return void e.$message.error("计费上线设置有误");if(!e.checkRenewDiscount(a.renew_discount))return void e.$message.error("续费优惠设置有误");if(!e.checkVoltageQuantity(a.voltage_quantity))return void e.$message.error("电量校准值设置有误");if(!e.checkQuantityMil(a.quantity_mil_config))return void e.$message.error("里程校准设置有误");e.batteryLoading=!0,a.product_time=e.product_time_;var n=[];a.car_images&&a.car_images.length>0&&a.car_images.forEach(function(e){if(e)return n.push(e)}),a.car_images_str=n.join(","),e.dialogEditBatteryInfoFormVisible=!1,a.platform_type="web",delete a.user_id,delete a.hire_expire_time,delete a.hire_time,Object(A.w)(a).then(function(t){200===t.data.code?(e.loadBatteryList(),e.$message.success("修改成功")):(e.batteryLoading=!1,e.dialogEditBatteryInfoFormVisible=!0,e.$nextTick(function(){e.$message.error(t.data.msg)}))})}else e.$message.error("请填写必须参数")})}),i()(Ae,"exchangeBind",function(e){this.configBindForm.old_battery_sn=e.battery_sn,this.configDialogBindFormVisible=!0}),i()(Ae,"handleSetBindConfig",function(){var e=this;Object(A.i)(this.configBindForm).then(function(t){200===t.data.code?(e.configDialogBindFormVisible=!1,e.configBindForm.battery_sn="",e.loadBatteryList(),e.$message.success("换绑成功")):(e.batteryLoading=!1,e.$message.error(t.data.msg))})}),i()(Ae,"releaseUser",function(e){var t=this;this.$confirm(this.editBatteryInfoForm.user_id-0>0&&this.isShowFreezeOrderTime?"当前用户使用信用免押,解绑将不能扣取信用押金,是否要进行解绑?":"请在解绑前确定设备已归还, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.batteryLoading=!0,Object(A.D)({battery_sn:e.battery_sn}).then(function(a){200===a.data.code?(t.loadBatteryList(),t.$message.success("解绑成功")):10037===a.data.code?(t.batteryLoading=!1,t.userReturnStatusList=a.data.data.status_list,t.userReturnForm={battery_sn:e.battery_sn,return_status:[],description:"",image_list:[],rt_pledge_money:a.data.data.pledge_money||0,is_return_pledge_money:!1},t.userReturnVisible=!0):(t.batteryLoading=!1,t.$message.error(a.data.msg))})}).catch(function(){t.$message({type:"info",message:"已取消"})})}),i()(Ae,"userReturnSave",function(){var e=this;this.batteryLoading=!0,this.userReturnVisible=!1,Object(A.D)({battery_sn:this.userReturnForm.battery_sn,journal:this.userReturnForm}).then(function(t){200===t.data.code?(e.loadBatteryList(),e.$message.success("解绑成功")):(e.batteryLoading=!1,e.$message.error(t.data.msg))})}),i()(Ae,"delBattery",function(e){var t=this;this.$confirm("你确定要删除该设备吗, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.batteryLoading=!0,t.mainShopTreeLoading=!0,Object(A.v)({battery_sn:e}).then(function(e){200===e.data.code?(t.batteryLoading=!1,t.mainShopTreeLoading=!1,t.loadBatteryList(),t.reloadShopList(""),t.$message.success("删除成功")):(t.batteryLoading=!1,t.mainShopTreeLoading=!1,t.$message.error(e.data.msg))})}).catch(function(){t.$message({type:"info",message:"已取消"})})}),i()(Ae,"handleTurnOnOff",function(e,t){var a=this,n=1===e?"你确定要通电吗?":"你确定要断电吗?";this.$confirm(n,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.batteryLoading=!0,1===e?Object(A.l)({battery_sn:t}).then(function(e){200===e.data.code?(a.loadBatteryList(),a.$message.success("指令操作成功,请等待设备反馈,稍后请刷新")):(a.batteryLoading=!1,a.$message.error(e.data.msg))}):Object(A.k)({battery_sn:t}).then(function(e){200===e.data.code?(a.loadBatteryList(),a.$message.success("指令操作成功,请等待设备反馈,稍后请刷新")):(a.batteryLoading=!1,a.$message.error(e.data.msg))})}).catch(function(){a.$message({type:"info",message:"已取消"})})}),i()(Ae,"handleSearchBattery",function(){var e=this;Object(A.o)(this.searchBatterhForm).then(function(t){200===t.data.code&&(e.issearchBatterhFormClick=!0,e.batteryList=t.data.data.batteryList,e.bms_hard_attr=e.batteryList[0].bms_hard_attr,e.total=t.data.data.total-0,e.batteryList.forEach(function(t,a){t.sync_bms_sn="1"==t.sync_bms_sn,"JYBMS"===t.third_device_type&&N(t.battery_sn,function(a){if(a[0].State){var n=JSON.parse(a[0].State);if(n.RC){var i=e.batteryList.findIndex(function(e){return e.battery_sn===t.battery_sn});-1!==i&&(e.$set(e.batteryList[i],"electric_quantity",parseFloat(n.RC)),e.$set(e.batteryList[i],"voltage",n.BetteryV_All))}}})}),0===e.batteryList.length?e.$notify({title:"警告",message:"没找到合适信息",type:"info"}):(e.selectedShopInfo=e.batteryList[0].shopInfo,e.selectedShopInfo.allow_cross_exchange_bat=e.selectedShopInfo.allow_cross_exchange_bat-0==1,e.selectedShopInfo.diff_type_exchange=e.selectedShopInfo.diff_type_exchange-0==1,e.selectedShopInfo.mil_show=e.selectedShopInfo.mil_show-0==1,e.selectedShopInfo.exchange_close_battery=e.selectedShopInfo.exchange_close_battery-0==1,e.selectedShopInfo.is_display=e.selectedShopInfo.is_display-0==1))})}),i()(Ae,"loadIconList",function(){var e=this;Object(A.z)().then(function(t){200===t.data.code&&(e.iconList=t.data.data.iconList)})}),i()(Ae,"showSearchClientInfoForm",function(){this.searchClientInfoForm={},this.dialogSearchClientInfoFormVisible=!0}),i()(Ae,"handSearchClientInfo",function(){var e=this;this.searchClientInfoForm.phone?(this.searchClientInfoForm.battery_sn=this.editBatteryInfoForm.battery_sn,function(e){return Object(D.a)({url:"?r=client/get-by-phone",method:"post",data:e})}(this.searchClientInfoForm).then(function(t){200===t.data.code?e.searchClientInfoForm=t.data.data.userInfo:(e.searchClientInfoForm.user_name="",e.searchClientInfoForm.user_id="",e.$message.error(t.data.msg))})):this.$message.error("请输入手机号")}),i()(Ae,"handleEditClientInfo",function(){this.searchClientInfoForm.user_id?(this.editBatteryInfoForm.user_id=this.searchClientInfoForm.user_id,this.editBatteryInfoForm.phone=this.searchClientInfoForm.phone,this.editBatteryInfoForm.user_name=this.searchClientInfoForm.user_name,this.dialogSearchClientInfoFormVisible=!1):this.$message.error("未查到任何用户")}),i()(Ae,"showBatchEditBatteryForm",function(){var e=[];this.transferBatteryList.forEach(function(t){e.push(t.battery_sn)});var t=e.join("\n");this.batterySnLen=t.split("\n").length,this.$set(this.batchEditBatteryForm,"battery_sn_str",t),this.batchEditBatteryForm.batList=e,this.batchEditBatteryForm.mil_ratio=10,this.dialogBatchEditBatteryFormVisible=!0}),i()(Ae,"loadSelectMoreInfoConfig",function(e){var t=this;Object(A.B)({shop_id:e}).then(function(e){200===e.data.code&&(t.moreInfoList=e.data.data.data)})}),i()(Ae,"loadSelectWxAppConfig",function(e){this.role=e}),i()(Ae,"handleBatchMoreInfo",function(){var e=[];this.transferBatteryList.forEach(function(t){e.push(t.battery_sn)}),0===e.length?this.$message.error("请选择设备"):this.batchMoreInfoFormVisible=!0}),i()(Ae,"handleBatchUserRenew",function(){this.smsVisible=!0}),i()(Ae,"clickRemindSms",function(){var e=this,t=[];this.transferBatteryList.forEach(function(e){t.push(e.battery_sn)}),Object(A.E)({battery_sns:JSON.parse(l()(t))}).then(function(t){if(200===t.data.code){e.smsVisible=!1,e.loadBatteryList();var a=t.data.data.err_list;if(a.length>0){var n=a.toString();e.$notify({title:"以下设备不能发送短信通知:",message:n,type:"warning",duration:1e4})}else e.$message.success("提交成功")}else e.$message.error(t.data.msg)})}),i()(Ae,"clickRemindSmsCancel",function(){this.smsVisible=!1}),i()(Ae,"clickRemindSmsList",function(){this.smsVisible=!1,this.$router.push({path:"/sms/remindSMS"})}),i()(Ae,"handleEditUserBatteryRecord",function(){this.$router.push({path:"/userHireRecord/userHireRecord"})}),i()(Ae,"handReBatteryCode",function(){var e=this,t=[];this.transferBatteryList.forEach(function(e){t.push(e.battery_sn)}),0!==t.length?(this.codeStatusLoading=!0,Object(A.C)({batList:t}).then(function(t){200===t.data.code?(e.codeLoading=!0,e.$nextTick(function(){e.codeLoading=!1,e.codeStatusLoading=!1}),e.$message.success("刷新成功")):e.$message.error(t.data.msg)})):this.$message.error("请选择要刷新的设备")}),i()(Ae,"handDownloDadBatteryCode",function(){var e=[];this.transferBatteryList.forEach(function(t){e.push(t.battery_sn)}),0!==e.length?this.downloadSNFile(e):this.$message.error("请选择要下载的设备")}),i()(Ae,"downloadSNFile",function(e){for(var t=0,a=new w.a,n=a.folder("二维码"),i=[],o=e,r=function(){l=document.querySelectorAll(".sn"+o[s]+"_code");var r=new Image;r.setAttribute("crossOrigin","anonymous"),r.src=l[0].src,r.onload=function(){var s=document.createElement("canvas");s.width=r.naturalWidth+50,s.height=r.naturalHeight+90;for(var l=s.getContext("2d"),c=l.getImageData(0,0,s.width,s.height),d=0;d<c.data.length;d+=4)0==c.data[d+3]&&(c.data[d]=255,c.data[d+1]=255,c.data[d+2]=255,c.data[d+3]=255);l.putImageData(c,0,0),l.drawImage(r,25,20,r.naturalWidth,r.naturalHeight),l.font="normal 30px Arial",l.fillStyle="#000000",l.textAlign="center";var p="SN:"+e[t];l.fillText(p,(r.naturalWidth+50)/2,r.naturalHeight+66),t++;var _=s.toDataURL();if(i.push(_.substring(22)),i.length===o.length&&i.length>0){for(var m=0;m<i.length;m++)n.file(o[m]+".png",i[m],{base64:!0});a.generateAsync({type:"blob"}).then(function(e){k.a.saveAs(e,"二维码.zip")})}}},s=0;s<o.length;s++){var l;r()}}),i()(Ae,"handDownloDadBatterySNCode",function(){var e=[];this.transferBatteryList.forEach(function(t){e.push(t.battery_sn)}),0!==e.length?this.downloadSNFile(e):this.$message.error("请选择要下载的设备")}),i()(Ae,"handBatchEditBattery",function(){var e=this;if(0!==this.batchEditBatteryForm.battery_sn_str.length){this.batchEditBatteryForm.batList=this.batchEditBatteryForm.battery_sn_str.split("\n"),this.batchEditBatteryForm.hire_discount_only_new=this.batchEditBatteryForm.hire_discount_only_new?"1":"0";var t=JSON.parse(l()(this.batchEditBatteryForm));if(this.batchEditHireDiscountchecked){if(!this.checkHireDiscount(t.hire_discount))return void this.$message.error("优惠价设置有误")}else delete t.hire_discount;if(this.batchEditShareDiscountchecked){if(!this.checkHireDiscount(t.share_discount))return void this.$message.error("计费上限设置有误")}else delete t.share_discount;if(this.batchEditRenewDiscountchecked){if(!this.checkRenewDiscount(t.renew_discount))return void this.$message.error("续费优惠设置有误")}else delete t.renew_discount;this.checkVoltageQuantity(t.voltage_quantity)?(this.batteryLoading=!0,this.dialogBatchEditBatteryFormVisible=!1,t.platform_type="web",Object(A.e)(t).then(function(t){e.batchEditBatteryForm.hire_discount_only_new="1"==e.batchEditBatteryForm.hire_discount_only_new,200===t.data.code?(e.$message.success("修改成功"),e.loadBatteryList()):(e.batteryLoading=!1,e.dialogBatchEditBatteryFormVisible=!0,e.$nextTick(function(){e.$message.error(t.data.msg)}))})):this.$message.error("电量校正值设置有误")}else this.$message.error("请选择要修改的设备")}),i()(Ae,"showTransferShop",function(){this.dialogTransferShopVisible=!0,this.filterTransferUserTreeName="",this.filterTransferShopName="",this.transferUserInfo={}}),i()(Ae,"showUserAuth",function(){this.UserAuth=parseInt(this.selectedShopInfo.authority),this.UserAuthList=this.selectedShopInfo.authority_str.split(";"),-1!=this.UserAuthList.indexOf("")&&this.UserAuthList.splice(this.UserAuthList.indexOf(""),1),this.dialogUserAuthVisible=!0}),i()(Ae,"changeAuth",function(e,t){-1!=this.UserAuthList.indexOf(t+"")?this.UserAuthList.splice(this.UserAuthList.indexOf(t+""),1):this.UserAuthList.push(t+"")}),i()(Ae,"handleUserAuth",function(){var e=this;this.mainShopTreeLoading=!0,this.dialogUserAuthVisible=!1,Object(T.R)({shop_id:this.selectedShopInfo.shop_id,auth_str:this.UserAuthList.join(";")}).then(function(t){200===t.data.code?(e.mainShopTreeLoading=!1,e.selectedShopInfo.authority_str=e.UserAuthList.join(";"),e.$message.success("设置成功"),e.reloadShopList("")):(e.mainShopTreeLoading=!1,e.$message.error(t.data.msg))})}),i()(Ae,"handleAppAuth",function(){var e=this;this.mainShopTreeLoading=!0,this.dialogAppAuthVisible=!1,Object(T.M)({shop_id:this.selectedShopInfo.shop_id,user_auth:this.AppAuth?1:0}).then(function(t){200===t.data.code?(e.$message.success("设置成功"),e.reloadShopList("")):(e.mainShopTreeLoading=!1,e.$message.error(t.data.msg))})}),i()(Ae,"handleTransferShop",function(){var e=this,t={transfer_id:this.selectedShopInfo.shop_id,to_transfer_id:this.transferUserInfo.shop_id};this.mainShopTreeLoading=!0,this.dialogTransferShopVisible=!1,Object(T.T)(t).then(function(t){e.mainShopTreeLoading=!1,200===t.data.code?(e.$message.success("转移成功"),e.reloadShopList("")):(e.mainShopTreeLoading=!1,e.dialogTransferShopVisible=!0,e.$nextTick(function(){e.$message.error(t.data.msg)}))})}),i()(Ae,"testCallBack",function(){}),i()(Ae,"handleChange",function(e){var t=this,a=[],n=!1,i=null;this.merchant_type_end&&0!==this.merchant_type_end.length?(this.shopInfo.merchant_type.forEach(function(e){e[0]!==t.merchant_type_end[0][0]&&(n=!0,i=e)}),n&&this.shopInfo.merchant_type.forEach(function(e){i[0]===e[0]&&a.push(e)}),this.merchant_type_end=this.shopInfo.merchant_type):this.merchant_type_end=this.shopInfo.merchant_type,this.shopInfo.merchant_type=e}),i()(Ae,"handleChangeBatteryTableRow",function(e,t,a){this.issearchBatterhFormClick&&this.loadMe(e.shopInfo.shop_id)}),i()(Ae,"handleSyncBMSNo",function(e){var t=this,a={battery_sn:e.battery_sn,status:e.sync_bms_sn?1:0};Object(A.p)(a).then(function(n){200===n.data.code?t.$message.success("修改成功"):(t.$message.error(n.data.msg),e.sync_bms_sn=1!==a.status)})}),i()(Ae,"handleChangeClosePowerStatus",function(e){var t=this,a={battery_sn:e.battery_sn,status:e.is_auto_close_power?1:0};Object(A.t)(a).then(function(n){200===n.data.code?t.$message.success("修改成功"):(t.$message.error(n.data.msg),e.is_auto_close_power=1!==a.status)})}),i()(Ae,"handleBatchChangeClosePowerStatus",function(e){var t=this,a={shop_id:this.selectedShopInfo.shop_id,status:this.batch_is_auto_close_power?1:0};Object(A.b)(a).then(function(e){200===e.data.code?(t.loadBatteryList(),t.$message.success("修改成功")):t.$message.error(e.data.msg)})}),i()(Ae,"checkHireDiscount",function(e){var t=!0;return 1===e.length?/^\d+\.?\d{0,2}$/.test(e[0].price)||(t=!1):e.sort(function(e,a){var n=e.num,i=a.num;return e.price&&a.price||(t=!1),/^\d+\.?\d{0,2}$/.test(e.price)||(t=!1),/^\d+\.?\d{0,2}$/.test(a.price)||(t=!1),n<i?-1:n>i?1:(t=!1,0)}),t}),i()(Ae,"payTest",function(e,t,a){var n=JSON.parse(l()(a)),i=!0;if(1===n.length?/^\d+\.?\d{0,2}$/.test(n[0].price)||(i=!1):n.sort(function(e,t){var a=e.num,n=t.num;return e.price&&t.price||(i=!1),/^\d+\.?\d{0,2}$/.test(e.price)||(i=!1),/^\d+\.?\d{0,2}$/.test(t.price)||(i=!1),a<n?-1:a>n?1:(i=!1,0)}),this.payTestChecked=i,i){var o=e*t;if(n&&0!==n.length){for(var r=e,s=0,c=n.length-1;r>=n[0].num;)r<n[c].num?c--:(r-=n[c].num,s+=1*n[c].price);o=s+=r*t}return o}return 0}),i()(Ae,"cellQuerySearch",function(e,t){for(var a=[],n=0;n<this.cellTypeList.length;n++)a.push({value:this.cellTypeList[n]});t(e?a.filter(this.createFilter(e)):a)}),i()(Ae,"bmsQuerySearch",function(e,t){for(var a=[],n=0;n<this.bmsTypeList.length;n++)a.push({value:this.bmsTypeList[n]});t(e?a.filter(this.createFilter(e)):a)}),i()(Ae,"createFilter",function(e){return function(t){return 0===t.value.indexOf(e)}}),i()(Ae,"checkVoltageQuantity",function(e){if(null==e)return!0;var t=!0;return 0===e.list.length?t=!1:1===e.list.length?/^\d+\.?\d{0,2}$/.test(e.list[0].voltage)||(t=!1):(e.list.sort(function(e,a){var n=e.quantity,i=a.quantity;return n<i?-1:n>i?1:(t=!1,0)}),e.list.sort(function(e,a){var n=e.voltage,i=a.voltage;return e.voltage&&a.voltage||(t=!1),/^\d+\.?\d{0,2}$/.test(e.voltage)||(t=!1),/^\d+\.?\d{0,2}$/.test(a.voltage)||(t=!1),n<i?-1:n>i?1:(t=!1,0)})),t}),i()(Ae,"checkQuantityMil",function(e){if(null==e)return!0;var t=!0;return 0===e.length?t=!1:1===e.length?/^\d+\.?\d{0,2}$/.test(e[0].mil)||(t=!1):(e.sort(function(e,a){var n=e.quantity,i=a.quantity;return n<i?-1:n>i?1:(t=!1,0)}),e.sort(function(e,a){var n=e.mil,i=a.mil;return e.mil&&a.mil||(t=!1),/^\d+\.?\d{0,2}$/.test(e.mil)||(t=!1),/^\d+\.?\d{0,2}$/.test(a.mil)||(t=!1),n<i?-1:n>i?1:(t=!1,0)})),t}),i()(Ae,"checkRenewDiscount",function(e){var t=!0;return 1!==e.length&&e.sort(function(e,a){var n=e.day,i=a.day;return n<i?-1:n>i?1:(t=!1,0)}),t}),i()(Ae,"handleAllowCrossExchangeBat",function(e){var t=this,a=e?1:0;Object(T.xb)({status:a,shop_id:this.selectedShopInfo.shop_id}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})}),i()(Ae,"handleExchangeCloseBattery",function(e){var t=this,a=e?1:0;Object(A.y)({status:a,shop_id:this.selectedShopInfo.shop_id}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})}),i()(Ae,"handleChangeDisplay",function(e){var t=this,a=e?1:0;Object(T.yb)({status:a,shop_id:this.selectedShopInfo.shop_id}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})}),i()(Ae,"handleMilShowStatus",function(e){var t=this,a=e?1:0;Object(T.v)({status:a,shop_id:this.selectedShopInfo.shop_id}).then(function(e){200===e.data.code?t.$message.success("修改成功"):t.$message.error(e.data.msg)})}),i()(Ae,"handShowDialogSameCabinetBatterySnVisible",function(e){-1===this.role&&(this.saveCabineteBaterySnList=e,this.dialogSameCabinetBatterySnVisible=!0)}),i()(Ae,"handleEditJSGPS",function(e){this.extra_sn_info=e,this.configDialogFormVisible=!0}),i()(Ae,"handleSetConfig",function(){var e=this;Object(A.h)({battery_sn:this.extra_sn_info.battery_sn,extra_sn:this.extra_sn_info.extra_sn}).then(function(t){200===t.data.code?(e.loadBatteryList(),e.$message.success("修改成功"),e.configDialogFormVisible=!1):e.$message.error(t.data.msg)})}),i()(Ae,"handleClearCabineBatterySn",function(e){var t=this;this.$confirm("你确定要解绑该设备与电池吗, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(A.f)({battery_sn_str:e}).then(function(e){200===e.data.code?(t.loadBatteryList(),t.$message.success("解绑成功")):t.$message.error(e.data.msg)})}).catch(function(){t.$message({type:"info",message:"已取消"})})}),i()(Ae,"icons",function(e,t){return e("div",[e("span",t.column.label),e("i",{class:"el-icon-caret-bottom",on:{click:function(){}}},"")])}),i()(Ae,"handleHeaderMenu",function(){this.menuDialogVisible=!0}),i()(Ae,"clickSubmitMenuData",function(){var e=this,t={type_id:"hire_shop",content:l()(this.headerShopList)};Object(T.bb)(t).then(function(t){200===t.data.code?(e.$message.success("修改成功"),e.loadUserTableTitle(),e.menuDialogVisible=!1):e.$message.error(t.data.msg)})}),i()(Ae,"loadUserTableTitle",function(){var e=this;Object(T.qb)({type_id:"hire_shop"}).then(function(t){if(200===t.data.code){var a=t.data.data;e.isEmptyObject(a)?e.headerShopList=[{key:"gpsbms_name",label:"设备名称",value:!0},{key:"battery_sn",label:"设备编号",value:!0},{key:"license_plate_number",label:"车牌号码",value:!0},{key:"cabinet_battery_sn",label:"电池编号",value:!0},{key:"dev_id",label:"机柜编号",value:!0},{key:"box_sn",label:"仓门编号",value:!0},{key:"battery_type_id",label:"型号",value:!0},{key:"third_device_type",label:"设备类型",value:!0},{key:"battery_brand",label:"品牌",value:!0},{key:"cell_type",label:"电芯",value:!0},{key:"product_time",label:"生产日期",value:!0},{key:"battery_factory_time",label:"出产日期",value:!0},{key:"shop_name",label:"所属门店",value:!0},{key:"electric_quantity",label:"电池状态",value:!0},{key:"code_url",label:"二维码",value:!0},{key:"order_sum",label:"租赁次数",value:!0},{key:"hire_type",label:"租赁类型",value:!0},{key:"user_name",label:"租赁用户",value:!0},{key:"day_mil",label:"当日里程",value:!0},{key:"total_mil",label:"总里程",value:!0},{key:"hire_price",label:"租赁单价(元)",value:!0},{key:"pledge_money",label:"押金(元)",value:!0},{key:"hire_time",label:"起租时间",value:!0},{key:"chire_duration",label:"租赁时长",value:!0},{key:"hire_expire_time",label:"到期时间",value:!0},{key:"remark",label:"备注",value:!0},{key:"bmsConnectState",label:"BMS",value:!0},{key:"is_on",label:"工作状态",value:!0},{key:"is_auto_close_power",label:"到期后自动断电",value:!0},{key:"more_info",label:"附加信息",value:!1}]:e.headerShopList=a.data.content,e.shopsData=function(e){for(var t={},a=0;e.length>a;a++)"gpsbms_name"===e[a].key&&(t.gpsbms_name=e[a].value),"battery_sn"===e[a].key&&(t.battery_sn=e[a].value),"license_plate_number"===e[a].key&&(t.license_plate_number=e[a].value),"cabinet_battery_sn"===e[a].key&&(t.cabinet_battery_sn=e[a].value),"dev_id"===e[a].key&&(t.dev_id=e[a].value),"box_sn"===e[a].key&&(t.box_sn=e[a].value),"battery_type_id"===e[a].key&&(t.battery_type_id=e[a].value),"third_device_type"===e[a].key&&(t.third_device_type=e[a].value),"battery_brand"===e[a].key&&(t.battery_brand=e[a].value),"cell_type"===e[a].key&&(t.cell_type=e[a].value),"product_time"===e[a].key&&(t.product_time=e[a].value),"battery_factory_time"===e[a].key&&(t.battery_factory_time=e[a].value),"shop_name"===e[a].key&&(t.shop_name=e[a].value),"electric_quantity"===e[a].key&&(t.electric_quantity=e[a].value),"code_url"===e[a].key&&(t.code_url=e[a].value),"order_sum"===e[a].key&&(t.order_sum=e[a].value),"hire_type"===e[a].key&&(t.hire_type=e[a].value),"user_name"===e[a].key&&(t.user_name=e[a].value),"day_mil"===e[a].key&&(t.day_mil=e[a].value),"total_mil"===e[a].key&&(t.total_mil=e[a].value),"hire_price"===e[a].key&&(t.hire_price=e[a].value),"pledge_money"===e[a].key&&(t.pledge_money=e[a].value),"hire_time"===e[a].key&&(t.hire_time=e[a].value),"chire_duration"===e[a].key&&(t.chire_duration=e[a].value),"hire_expire_time"===e[a].key&&(t.hire_expire_time=e[a].value),"remark"===e[a].key&&(t.remark=e[a].value),"bmsConnectState"===e[a].key&&(t.bmsConnectState=e[a].value),"is_on"===e[a].key&&(t.is_on=e[a].value),"is_auto_close_power"===e[a].key&&(t.is_auto_close_power=e[a].value),"more_info"===e[a].key&&(t.more_info=e[a].value);return t}(e.headerShopList)}else e.headerShopList=[{key:"gpsbms_name",label:"设备名称",value:!0},{key:"battery_sn",label:"设备编号",value:!0},{key:"license_plate_number",label:"车牌号码",value:!0},{key:"cabinet_battery_sn",label:"电池编号",value:!0},{key:"dev_id",label:"机柜编号",value:!0},{key:"box_sn",label:"仓门编号",value:!0},{key:"battery_type_id",label:"型号",value:!0},{key:"third_device_type",label:"设备类型",value:!0},{key:"battery_brand",label:"品牌",value:!0},{key:"cell_type",label:"电芯",value:!0},{key:"product_time",label:"生产日期",value:!0},{key:"battery_factory_time",label:"出产日期",value:!0},{key:"shop_name",label:"所属门店",value:!0},{key:"electric_quantity",label:"电池状态",value:!0},{key:"code_url",label:"二维码",value:!0},{key:"order_sum",label:"租赁次数",value:!0},{key:"hire_type",label:"租赁类型",value:!0},{key:"user_name",label:"租赁用户",value:!0},{key:"day_mil",label:"当日里程",value:!0},{key:"total_mil",label:"总里程",value:!0},{key:"hire_price",label:"租赁单价(元)",value:!0},{key:"pledge_money",label:"押金(元)",value:!0},{key:"hire_time",label:"起租时间",value:!0},{key:"chire_duration",label:"租赁时长",value:!0},{key:"hire_expire_time",label:"到期时间",value:!0},{key:"remark",label:"备注",value:!0},{key:"bmsConnectState",label:"BMS",value:!0},{key:"is_on",label:"工作状态",value:!0},{key:"is_auto_close_power",label:"到期后自动断电",value:!0},{key:"more_info",label:"附加信息",value:!1}],e.$message.error(t.data.msg)})}),i()(Ae,"isEmptyObject",function(e){return"{}"===l()(e)}),i()(Ae,"handleBusinessContent",function(e){}),i()(Ae,"handleBusinessType",function(e){var t=parseInt(this.vehicle_battery_type_can_return_car+"0"+this.vehicle_battery_type_hire_car+"00"+this.vehicle_battery_type_hire_electricity,2);this.shopInfo.service_type=t}),i()(Ae,"decimalToBinary",function(e,t){for(var a=e.toString(2);a.length<t;)a="0"+a;return a}),i()(Ae,"lookStoreQrcode",function(){this.storeCode=this.selectedShopInfo.qr_common_img,this.storeCode||this.refreshQRCode(),this.visibleStoreCode=!0}),i()(Ae,"refreshQRCode",function(){var e=this,t=this.selectedShopInfo.shop_id;Object(T.lb)({shop_id:t}).then(function(t){200===t.data.code?(e.storeCode=t.data.data.qr_common_img,e.$message.success("刷新成功")):e.$message.error(t.data.msg)})}),Ae)},Ve=(a("dcuZ"),Object(y.a)(Ne,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("el-row",{attrs:{gutter:10}},[n("el-col",{style:e.isCollapse?"visibility: hidden":"",attrs:{span:e.shopTreeSpan}},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"flex-column",attrs:{slot:"header"},slot:"header"},[n("div",[n("div",[e._v("我的门店")])]),e._v(" "),n("el-row",{staticClass:"flex-row flex-between",staticStyle:{"margin-top":"10px"}},[n("el-input",{attrs:{size:"mini",placeholder:"输入门店名",clearable:""},model:{value:e.filterShopTreeName,callback:function(t){e.filterShopTreeName=t},expression:"filterShopTreeName"}}),e._v(" "),n("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"success",size:"mini",icon:"el-icon-search"},on:{click:e.handleSearchShopList}},[e._v("搜索\n ")]),e._v(" "),e.isCollapse?e._e():n("i",{staticClass:"el-icon-caret-left",staticStyle:{cursor:"pointer"},on:{click:e.collapseShopTree}})],1)],1),e._v(" "),n("div",{staticClass:"left-tree-group",staticStyle:{"min-height":"calc(100vh - 84px)"}},[n("div",{style:e.is_show_lazy_tree?"display:block":"display:none"},[n("el-tree",{directives:[{name:"loading",rawName:"v-loading",value:e.mainShopTreeLoading,expression:"mainShopTreeLoading"}],ref:"leftShoptree",attrs:{data:e.treeData,load:e.loadNode,"expand-on-click-node":!1,props:e.defaultProps,"highlight-current":!0,"check-on-click-node":!0,"filter-node-method":e.filterShopTreeNode,"element-loading-spinner":"el-icon-loading","node-key":"shop_id",lazy:"",draggable:""},on:{"node-click":e.selectedNode},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.node,o=t.data;return n("span",{staticClass:"custom-tree-node"},[n("span",{staticClass:"flex-row-middle"},[o.business_type-0==0?n("img",{attrs:{src:a("xLwT")}}):o.business_type-0==1?n("img",{attrs:{src:a("2v0J")}}):o.business_type-0==2?n("img",{attrs:{src:a("bIh1")}}):o.business_type-0==3?n("img",{attrs:{src:a("p6wo")}}):e._e(),e._v("\n "+e._s(o.shop_name)+"["+e._s(o.direct-0)+"/"+e._s(o.total-0)+"]\n ")]),e._v(" "),n("span",["shop"in e.authList&&e.authList.shop.list.shop_add.value?n("el-button",{attrs:{type:"text",icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.showAddShopDialog(o)}}}):e._e(),e._v(" "),i.level>1&&"shop"in e.authList&&e.authList.shop.list.shop_del.value?n("el-button",{attrs:{type:"text",icon:"el-icon-delete",size:"mini"},on:{click:function(){return e.remove(i,o)}}}):e._e()],1)])}}])})],1),e._v(" "),n("div",{style:e.is_show_lazy_tree?"display:none":"display:block"},[n("el-tree",{directives:[{name:"loading",rawName:"v-loading",value:e.mainShopTreeLoading,expression:"mainShopTreeLoading"}],ref:"showTreeData",attrs:{data:e.showTreeData,load:e.loadNode,"expand-on-click-node":!1,props:e.defaultProps,"highlight-current":!0,"default-expanded-keys":e.treeDataIds,"filter-node-method":e.filterShopTreeNode,"element-loading-spinner":"el-icon-loading","node-key":"shop_id",draggable:""},on:{"node-click":e.selectedNode,"node-expand":e.handleNodeExpand},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.node,o=t.data;return n("span",{staticClass:"custom-tree-node"},[n("span",{staticClass:"flex-row-middle"},[i.data.business_type-0==0?n("img",{attrs:{src:a("xLwT")}}):i.data.business_type-0==1?n("img",{attrs:{src:a("2v0J")}}):i.data.business_type-0==2?n("img",{attrs:{src:a("bIh1")}}):i.data.business_type-0==3?n("img",{attrs:{src:a("p6wo")}}):e._e(),e._v("\n "+e._s(i.label)+"["+e._s(o.direct-0)+"/"+e._s(o.total-0)+"]\n ")]),e._v(" "),n("span",["shop"in e.authList&&e.authList.shop.list.shop_add.value?n("el-button",{attrs:{type:"text",icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.showAddShopDialog(o)}}}):e._e(),e._v(" "),i.level>1&&"shop"in e.authList&&e.authList.shop.list.shop_del.value?n("el-button",{attrs:{type:"text",icon:"el-icon-delete",size:"mini"},on:{click:function(){return e.remove(i,o)}}}):e._e()],1)])}}])})],1)])])],1),e._v(" "),n("el-col",{attrs:{span:e.mainAreaSpan}},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"flex-row flex-start clearfix",attrs:{slot:"header"},slot:"header"},[e.isCollapse?n("i",{staticClass:"el-icon-caret-right",staticStyle:{cursor:"pointer"},on:{click:e.openShopTree}}):e._e(),e._v(" "),n("div",{staticClass:"flex-row flex-between",staticStyle:{width:"100%"}},[n("div",{staticStyle:{width:"100px"}},[e._v("账户信息")]),e._v(" "),n("el-form",{attrs:{inline:!0,size:"mini"}},[n("el-form-item",{staticStyle:{margin:"0px"}},[n("el-select",{staticStyle:{width:"110px"},attrs:{filterable:"",size:"mini"},model:{value:e.searchBatterhForm.is_similar,callback:function(t){e.$set(e.searchBatterhForm,"is_similar",t)},expression:"searchBatterhForm.is_similar"}},[n("el-option",{attrs:{value:0,label:"精确搜索"}}),e._v(" "),n("el-option",{attrs:{value:1,label:"模糊搜索"}})],1)],1),e._v(" "),n("el-form-item",{staticStyle:{margin:"0px"}},[n("el-input",{staticStyle:{width:"120px"},attrs:{placeholder:"设备编号"},model:{value:e.searchBatterhForm.battery_sn_1,callback:function(t){e.$set(e.searchBatterhForm,"battery_sn_1",t)},expression:"searchBatterhForm.battery_sn_1"}})],1),e._v(" "),e.isKeYi?n("el-form-item",{staticStyle:{margin:"0px"}},[n("el-input",{staticStyle:{width:"120px"},attrs:{placeholder:"电池包编号"},model:{value:e.searchBatterhForm.pack_sn,callback:function(t){e.$set(e.searchBatterhForm,"pack_sn",t)},expression:"searchBatterhForm.pack_sn"}})],1):e._e(),e._v(" "),n("el-form-item",{staticStyle:{margin:"0px"}},[n("el-input",{staticStyle:{width:"120px"},attrs:{placeholder:"设备名称"},model:{value:e.searchBatterhForm.gpsbms_name,callback:function(t){e.$set(e.searchBatterhForm,"gpsbms_name",t)},expression:"searchBatterhForm.gpsbms_name"}})],1),e._v(" "),n("el-form-item",{staticStyle:{margin:"0px"}},[n("el-input",{staticStyle:{width:"120px"},attrs:{placeholder:"用户手机号"},model:{value:e.searchBatterhForm.phone,callback:function(t){e.$set(e.searchBatterhForm,"phone",t)},expression:"searchBatterhForm.phone"}})],1),e._v(" "),n("el-form-item",{staticStyle:{margin:"0px"}},[n("el-input",{staticStyle:{width:"120px"},attrs:{placeholder:"用户名"},model:{value:e.searchBatterhForm.user_name,callback:function(t){e.$set(e.searchBatterhForm,"user_name",t)},expression:"searchBatterhForm.user_name"}})],1),e._v(" "),1==e.userInfo.has_device_code?n("el-form-item",{staticStyle:{margin:"0px"}},[n("el-input",{staticStyle:{width:"120px"},attrs:{placeholder:"电池编号"},model:{value:e.searchBatterhForm.cabinet_battery_sn,callback:function(t){e.$set(e.searchBatterhForm,"cabinet_battery_sn",t)},expression:"searchBatterhForm.cabinet_battery_sn"}})],1):e._e(),e._v(" "),n("el-form-item",{staticStyle:{margin:"0px"}},[n("el-button",{attrs:{type:"success",size:"mini",icon:"el-icon-search"},on:{click:e.handleSearchBattery}},[e._v("搜索\n ")])],1)],1)],1)]),e._v(" "),n("div",{staticClass:"text item"},[n("div",{staticClass:"shop-info"},[n("div",{staticClass:"base-info-op"},[n("span",{staticStyle:{"font-size":"16px","font-weight":"bold","margin-right":"30px"}},[e._v(e._s(e.selectedShopInfo.shop_name))]),e._v(" "),"shop"in e.authList&&e.authList.shop.list.shop_edit.value?n("el-button",{attrs:{type:"text",icon:"el-icon-edit",size:"mini"},on:{click:e.editUserInfo}},[e._v("编辑")]):e._e(),e._v(" "),e.selectedShopInfo.shop_id!=e.userInfo.user_id&&""!=e.userInfo.authority_str?n("el-button",{attrs:{type:"text",size:"mini"},on:{click:e.showUserAuth}},[e._v("设置权限")]):e._e(),e._v(" "),e.selectedShopInfo.business_type<2?n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(t){e.dialogAppAuthVisible=!e.dialogAppAuthVisible}}},[e._v("用户权限")]):e._e(),e._v(" "),e.selectedShopInfo.shop_id!=e.userInfo.user_id?n("el-button",{attrs:{type:"text",icon:"el-icon-share",size:"mini"},on:{click:e.showTransferShop}},[e._v("门店转移")]):e._e(),e._v(" "),n("a",{staticClass:"el-button el-button--text el-button--mini",attrs:{href:e.monitorURL+"&id="+e.selectedShopInfo.shop_id,target:"_blank"}},[n("i",{staticClass:"el-icon-location-outline"}),e._v("\n 设备监控\n ")]),e._v(" "),n("el-button",{attrs:{type:"text",size:"mini"},on:{click:e.lookStoreQrcode}},[e._v("查看门店二维码")])],1),e._v(" "),n("div",{staticClass:"line-group-info"},[n("div",{staticClass:"group-item"},[n("div",{staticClass:"item-label"},[e._v("登录名:")]),e._v(" "),n("div",{staticClass:"item-value"},[e._v(e._s(e.selectedShopInfo.login_name))])]),e._v(" "),n("div",{staticClass:"group-item"},[n("div",{staticClass:"item-label"},[e._v("店铺名称:")]),e._v(" "),n("div",{staticClass:"item-value"},[e._v(e._s(e.selectedShopInfo.shop_name))])]),e._v(" "),-1==e.role?n("div",{staticClass:"group-item"},[n("div",{staticClass:"item-label"},[e._v("店铺编号:")]),e._v(" "),n("div",{staticClass:"item-value"},[e._v(e._s(e.selectedShopInfo.shop_id))])]):e._e(),e._v(" "),n("div",{staticClass:"group-item"},[n("div",{staticClass:"item-label"},[e._v("公司:")]),e._v(" "),n("div",{staticClass:"item-value"},[e._v(e._s(e.selectedShopInfo.company_name))])]),e._v(" "),n("div",{staticClass:"group-item"},[n("div",{staticClass:"item-label"},[e._v("联系人:")]),e._v(" "),n("div",{staticClass:"item-value"},[e._v(e._s(e.selectedShopInfo.link_user_name))])]),e._v(" "),n("div",{staticClass:"group-item"},[n("div",{staticClass:"item-label"},[e._v("联系人电话:")]),e._v(" "),n("div",{staticClass:"item-value"},[e._v(e._s(e.selectedShopInfo.link_phone))])]),e._v(" "),n("div",{staticClass:"group-item"},[n("div",{staticClass:"item-label"},[e._v("店铺地址:")]),e._v(" "),n("div",{staticClass:"item-value"},[e._v(e._s(e.selectedShopInfo.address))])]),e._v(" "),n("div",{staticClass:"group-item"},[n("div",{staticClass:"item-label"},[e._v("开通时间:")]),e._v(" "),n("div",{staticClass:"item-value"},[e._v(e._s(e.selectedShopInfo.ctime))])]),e._v(" "),n("div",{staticClass:"group-item"},[n("el-checkbox",{on:{change:e.handleMilShowStatus},model:{value:e.selectedShopInfo.mil_show,callback:function(t){e.$set(e.selectedShopInfo,"mil_show",t)},expression:"selectedShopInfo.mil_show"}},[e._v("显示里程")])],1),e._v(" "),n("div",{staticClass:"group-item"},["shop"in e.authList&&e.authList.shop.list.exchange_power_switch.value?n("el-checkbox",{on:{change:e.handleExchangeCloseBattery},model:{value:e.selectedShopInfo.exchange_close_battery,callback:function(t){e.$set(e.selectedShopInfo,"exchange_close_battery",t)},expression:"selectedShopInfo.exchange_close_battery"}},[e._v("\n 换电是否断电")]):e._e()],1),e._v(" "),n("div",{staticClass:"group-item"},[n("el-checkbox",{on:{change:e.handleChangeDisplay},model:{value:e.selectedShopInfo.is_display,callback:function(t){e.$set(e.selectedShopInfo,"is_display",t)},expression:"selectedShopInfo.is_display"}},[e._v("门店在地图显示")])],1),e._v(" "),e.selectedShopInfo.wxapp?n("div",{staticClass:"group-item"},[n("div",{staticClass:"item-label"},[e._v("SIM过期短信推送:")]),e._v(" "),n("el-radio-group",{on:{change:e.clickSimNoticeTarget},model:{value:e.selectedShopInfo.sim_notice_target,callback:function(t){e.$set(e.selectedShopInfo,"sim_notice_target",t)},expression:"selectedShopInfo.sim_notice_target"}},[n("el-radio",{attrs:{label:0}},[e._v("推送设备门店")]),e._v(" "),n("el-radio",{attrs:{label:1}},[e._v("推送主体门店")])],1)],1):e._e()])])])]),e._v(" "),n("el-tabs",{directives:[{name:"loading",rawName:"v-loading",value:e.batteryLoading,expression:"batteryLoading"}],attrs:{id:"step_wallet",type:"border-card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[e.showTabPane?n("el-tab-pane",{attrs:{name:"device",label:"设备"}},[n("div",{staticClass:"batter-op-group"},[n("div",[n("div",{staticClass:"filter-container",staticStyle:{"padding-bottom":"0px"}},[n("el-form",{attrs:{model:e.searchBatterhForm,inline:!0,size:"mini"}},[n("div",{staticClass:"flex-row flex-between"},[n("div",[n("el-form-item",[n("el-radio-group",{attrs:{size:"mini"},on:{change:e.handleSelectSearchType},model:{value:e.searchBatterhForm.search_type,callback:function(t){e.$set(e.searchBatterhForm,"search_type",t)},expression:"searchBatterhForm.search_type"}},[n("el-radio-button",{attrs:{label:"0"}},[e._v("全部")]),e._v(" "),n("el-radio-button",{attrs:{label:"1"}},[e._v("空闲")]),e._v(" "),n("el-radio-button",{attrs:{label:"2"}},[e._v("已使用")])],1)],1),e._v(" "),e.selectedShopInfo.business_type<2?n("el-form-item",[n("el-radio-group",{attrs:{size:"mini"},on:{change:e.handleSelectSearchType},model:{value:e.searchBatterhForm.hire_type,callback:function(t){e.$set(e.searchBatterhForm,"hire_type",t)},expression:"searchBatterhForm.hire_type"}},[n("el-radio-button",{attrs:{label:"0"}},[e._v("全部")]),e._v(" "),n("el-radio-button",{attrs:{label:"1"}},[e._v("普通租赁")]),e._v(" "),n("el-radio-button",{attrs:{label:"2"}},[e._v("以租代售")])],1)],1):e._e(),e._v(" "),e.selectedShopInfo.business_type<2?n("el-form-item",[n("el-radio-group",{attrs:{size:"mini"},on:{change:e.handleSelectSearchType},model:{value:e.searchBatterhForm.battery_business_type,callback:function(t){e.$set(e.searchBatterhForm,"battery_business_type",t)},expression:"searchBatterhForm.battery_business_type"}},[n("el-radio-button",{attrs:{label:""}},[e._v("全部")]),e._v(" "),n("el-radio-button",{attrs:{label:"0"}},[e._v("租电")]),e._v(" "),n("el-radio-button",{attrs:{label:"1"}},[e._v("租车")])],1)],1):e._e(),e._v(" "),e.selectedShopInfo.business_type<2?n("el-form-item",[n("el-checkbox-group",{on:{change:e.handleSelectExpireType},model:{value:e.searchBatterhForm.expire_type,callback:function(t){e.$set(e.searchBatterhForm,"expire_type",t)},expression:"searchBatterhForm.expire_type"}},[n("el-checkbox-button",{attrs:{label:"1"}},[e._v("即将到期")]),e._v(" "),n("el-checkbox-button",{attrs:{label:"2"}},[e._v("已过期")])],1)],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"当前电压"}},[n("el-input",{staticStyle:{width:"50px"},attrs:{placeholder:"",size:"mini"},model:{value:e.searchBatterhForm.min_voltage,callback:function(t){e.$set(e.searchBatterhForm,"min_voltage",t)},expression:"searchBatterhForm.min_voltage"}}),e._v(" V ~\n "),n("el-input",{staticStyle:{width:"50px"},attrs:{placeholder:"",size:"mini"},model:{value:e.searchBatterhForm.max_voltage,callback:function(t){e.$set(e.searchBatterhForm,"max_voltage",t)},expression:"searchBatterhForm.max_voltage"}}),e._v(" V\n ")],1),e._v(" "),n("el-form-item",{attrs:{label:"型号"}},[n("el-input",{staticStyle:{width:"50px"},attrs:{placeholder:"",size:"mini"},model:{value:e.searchBatterhForm.battery_type_v,callback:function(t){e.$set(e.searchBatterhForm,"battery_type_v",t)},expression:"searchBatterhForm.battery_type_v"}}),e._v(" V\n "),n("el-input",{staticStyle:{width:"50px"},attrs:{placeholder:"",size:"mini"},model:{value:e.searchBatterhForm.battery_type_a,callback:function(t){e.$set(e.searchBatterhForm,"battery_type_a",t)},expression:"searchBatterhForm.battery_type_a"}}),e._v(" AH\n ")],1),e._v(" "),n("el-form-item",{attrs:{label:"车牌号"}},[n("el-input",{staticStyle:{width:"110px"},attrs:{placeholder:"车牌号",size:"mini"},model:{value:e.searchBatterhForm.license_plate_number,callback:function(t){e.$set(e.searchBatterhForm,"license_plate_number",t)},expression:"searchBatterhForm.license_plate_number"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-search"},on:{click:e.loadBatteryList}},[e._v("查询")])],1)],1)])])],1)]),e._v(" "),n("div",{staticClass:"flex-row flex-between",staticStyle:{"padding-bottom":"0px"}},[n("el-form",{attrs:{inline:!0,size:"mini"}},[n("el-form-item",[n("div",{on:{click:e.handleHeaderMenu}},[n("img",{staticStyle:{width:"20px",height:"20px",cursor:"pointer","margin-right":"15px","margin-top":"2px"},attrs:{src:"https://qiniu.bms16.com/menu_header_config.png",title:"点击可编辑列"}})])]),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"warning"},on:{click:e.handleDispatch}},[e._v("批量转移")])],1),e._v(" "),n("el-form-item",["device"in e.authList&&e.authList.device.list.device_edit.value?n("el-button",{attrs:{type:"success",plain:""},on:{click:e.showBatchEditBatteryForm}},[e._v("批量修改")]):e._e()],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"success",plain:""},on:{click:e.handleBatchUserRenew}},[e._v("批量短信通知用户续费")])],1),e._v(" "),n("el-form-item",[1==e.selectedShopInfo.has_device_code||1==e.userInfo.has_device_code?n("el-button",{attrs:{type:"warning",plain:""},on:{click:e.handleBatchMoreInfo}},[e._v("批量附加信息")]):e._e()],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"warning"},on:{click:e.handleBatchGiveDay}},[e._v("批量赠送天数")])],1),e._v(" "),n("el-form-item",[e.selectedShopInfo.business_type<2?n("el-button",{attrs:{plain:"",icon:"el-icon-download"},on:{click:e.handDownloDadBatterySNCode}},[e._v("下载二维码")]):e._e(),e._v(" "),2==e.selectedShopInfo.business_type||5==e.selectedShopInfo.business_type?n("el-button-group",[n("el-button",{attrs:{loading:e.codeStatusLoading,plain:"",icon:"el-icon-refresh-left"},on:{click:e.handReBatteryCode}},[e._v("刷新二维码")]),e._v(" "),n("el-button",{attrs:{loading:e.codeStatusLoading,plain:"",icon:"el-icon-download"},on:{click:e.handDownloDadBatteryCode}},[e._v("下载二维码")])],1):e._e()],1),e._v(" "),n("el-form-item",[n("el-checkbox",{on:{change:e.handleBatchChangeClosePowerStatus},model:{value:e.batch_is_auto_close_power,callback:function(t){e.batch_is_auto_close_power=t},expression:"batch_is_auto_close_power"}},[e._v("到期后自动断电\n ")])],1),e._v(" "),n("el-form-item",[n("a",{staticClass:"operationRecords",attrs:{plain:""},on:{click:e.handleEditUserBatteryRecord}},[e._v("用户租赁操作记录")])])],1)],1)]),e._v(" "),e.selectedShopInfo.business_type<2?n("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{data:e.batteryList,"highlight-current-row":!0,stripe:"",border:"",size:"mini"},on:{"sort-change":e.clickExpiredTimeSortChange,"selection-change":e.handleBatterySelectionChange,"row-click":e.handleChangeBatteryTableRow}},[n("el-table-column",{attrs:{type:"selection",width:"45",align:"center"}}),e._v(" "),e.shopsData.gpsbms_name?n("el-table-column",{attrs:{prop:"gpsbms_name",fixed:"",label:"设备名称"}}):e._e(),e._v(" "),e.shopsData.battery_sn?n("el-table-column",{attrs:{prop:"battery_sn",fixed:"",label:"设备编号"}}):e._e(),e._v(" "),e.shopsData.license_plate_number?n("el-table-column",{attrs:{prop:"license_plate_number",fixed:"",label:"车牌号码"}}):e._e(),e._v(" "),e.shopsData.cabinet_battery_sn?n("el-table-column",{attrs:{prop:"cabinet_battery_sn",label:"电池编号",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.same_cb_battery_sn_list?n("span",{staticClass:"tips-color",staticStyle:{cursor:"pointer"},attrs:{title:"有重复"},on:{click:function(a){e.handShowDialogSameCabinetBatterySnVisible(t.row.same_cb_battery_sn_list)}}},[e._v(e._s(t.row.cabinet_battery_sn))]):n("span",[e._v(e._s(t.row.cabinet_battery_sn))]),e._v(" "),""!==t.row.cabinet_battery_sn?n("i",{staticClass:"el-icon-link",staticStyle:{"margin-right":"5px",cursor:"pointer"},on:{click:function(a){e.handleClearCabineBatterySn(t.row.battery_sn)}}}):e._e(),e._v(" "),""!==t.row.cabinet_battery_sn?n("div",[e._v("同步电池编号")]):e._e(),e._v(" "),""!==t.row.cabinet_battery_sn?n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949",size:"mini"},on:{change:function(a){e.handleSyncBMSNo(t.row)}},model:{value:t.row.sync_bms_sn,callback:function(a){e.$set(t.row,"sync_bms_sn",a)},expression:"scope.row.sync_bms_sn"}}):e._e(),e._v(" "),n("div",["JSGPS"==t.row.third_device_type?n("span",[e._v(e._s("极速扩展编号:"+t.row.extra_sn))]):e._e(),e._v(" "),"JSGPS"==t.row.third_device_type?n("el-button",{attrs:{type:"text",icon:"el-icon-edit",size:"mini",circle:""},on:{click:function(a){e.handleEditJSGPS(t.row)}}}):e._e()],1)]}}])}):e._e(),e._v(" "),e.isKeYi?n("el-table-column",{attrs:{prop:"pack_sn_arr",label:"电池包",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.pack_sn_arr.join(","))+"\n ")]}}])}):e._e(),e._v(" "),1==e.selectedShopInfo.is_open_integrate_switch?n("el-table-column",{attrs:{prop:"relation_sn",label:"关联设备号",width:"100",align:"center"}}):e._e(),e._v(" "),e.shopsData.dev_id&&-1!=e.roles.indexOf("cabinet_fun")?n("el-table-column",{attrs:{prop:"dev_id",label:"机柜编号",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["-"===t.row.dev_id||14877!=e.userInfo.main_admin_id&&27713!=e.userInfo.main_admin_id?e._e():n("div",{class:t.row.cabinet_diff_admin?"link-red-type":"link-type"},[n("router-link",{attrs:{to:{name:"CabinetDetail",params:{dev_id:t.row.dev_id}}}},[e._v(e._s(t.row.dev_id))])],1),e._v(" "),"-"!==t.row.dev_id&&14877!=e.userInfo.main_admin_id&&27713!=e.userInfo.main_admin_id?n("div",{staticClass:"link-type"},[n("router-link",{attrs:{to:{name:"CabinetDetail",params:{dev_id:t.row.dev_id}}}},[e._v(e._s(t.row.dev_id))])],1):e._e()]}}])}):e._e(),e._v(" "),e.shopsData.box_sn&&-1!=e.roles.indexOf("cabinet_fun")?n("el-table-column",{attrs:{prop:"box_sn",label:"仓门编号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["-"!==t.row.box_sn?n("span",[e._v(e._s(t.row.box_sn+"号仓门"))]):e._e()]}}])}):e._e(),e._v(" "),e.shopsData.battery_type_id?n("el-table-column",{attrs:{prop:" battery_type_id",label:"型号",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.typeName(t.row))+"\n ")]}}])}):e._e(),e._v(" "),e.shopsData.third_device_type?n("el-table-column",{attrs:{prop:"third_device_type",label:"设备类型",align:"center"}}):e._e(),e._v(" "),e.shopsData.battery_brand?n("el-table-column",{attrs:{prop:"battery_brand",label:"品牌",align:"center"}}):e._e(),e._v(" "),e.shopsData.cell_type?n("el-table-column",{attrs:{prop:"cell_type",label:"电芯",align:"center"}}):e._e(),e._v(" "),e.shopsData.product_time?n("el-table-column",{attrs:{prop:"product_time",label:"生产日期",align:"center"}}):e._e(),e._v(" "),e.shopsData.battery_factory_time?n("el-table-column",{attrs:{prop:"battery_factory_time",label:"出厂时间",align:"center"}}):e._e(),e._v(" "),e.shopsData.shop_name?n("el-table-column",{attrs:{prop:"shop_name",label:"所属门店",align:"center"}}):e._e(),e._v(" "),e.shopsData.electric_quantity?n("el-table-column",{attrs:{prop:"electric_quantity",label:"电池状态",align:"center",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("电压:"+e._s(t.row.voltage?t.row.voltage+"V":"未知"))]),e._v(" "),n("div",[e._v("电量:"+e._s(Math.round(1e3*t.row.electric_quantity)/1e3+"%"))]),e._v(" "),1==t.row.online?n("el-tag",{attrs:{type:"success",size:"mini"}},[e._v("在线")]):n("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("离线")])]}}])}):e._e(),e._v(" "),e.shopsData.code_url?n("el-table-column",{attrs:{prop:"code_url",label:"二维码",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-popover",{attrs:{title:t.row.shop_name,placement:"right",trigger:"hover"}},[n("vue-qr",{class:"sn"+t.row.battery_sn+"_code",staticStyle:{padding:"40px",width:"100%",height:"100%"},attrs:{text:t.row.battery_sn,size:360,margin:0}}),e._v(" "),n("div",{attrs:{slot:"reference"},slot:"reference"},[e._v("二维码")])],1)]}}])}):e._e(),e._v(" "),e.shopsData.order_sum?n("el-table-column",{attrs:{prop:"order_sum",label:"租赁次数",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticStyle:{"flex-direction":"row",float:"left"}},[n("div",[e._v(e._s(t.row.order_sum))]),e._v(" "),-1==e.userInfo.role?n("el-button",{attrs:{id:"order_sum",type:"text",size:"mini",circle:""},on:{click:function(a){e.toEditClearInfo(t.row)}}},[e._v("清空")]):e._e()],1)]}}])}):e._e(),e._v(" "),e.shopsData.hire_type?n("el-table-column",{attrs:{prop:"hire_type",label:"租赁类型",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.hire_type?n("span",{staticStyle:{color:"#409eff","background-color":"#ecf5ff"}},[e._v("普通租赁"),n("br"),e._v("\n "+e._s(t.row.hire_normal_duration)+" 月")]):2==t.row.hire_type?n("span",{staticStyle:{color:"#e6a23c","background-color":"#fdf6ec"}},[e._v("以租代售"),n("br"),e._v("\n "+e._s(t.row.hire_sell_duration)+" 月")]):n("span",{staticStyle:{color:"#f56c6c","background-color":"#fef0f0"}},[e._v("未知")])]}}])}):e._e(),e._v(" "),e.shopsData.user_name?n("el-table-column",{attrs:{prop:"user_name",label:"租赁用户",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticStyle:{"flex-direction":"row",float:"left"}},[n("div",[e._v(e._s(t.row.user_name)+" "+e._s(t.row.phone))]),e._v(" "),11367!=e.userInfo.user_id&&14750!=e.userInfo.user_id&&"device"in e.authList&&e.authList.device.list.bind_user.value?n("el-button",{attrs:{id:"step_user_name",type:"text",icon:"el-icon-edit",size:"mini",circle:""},on:{click:function(a){e.toEditRentInfo(t.row)}}}):e._e()],1)]}}])}):e._e(),e._v(" "),e.shopsData.day_mil?n("el-table-column",{attrs:{prop:"day_mil",label:"当日里程",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("\n "+e._s(t.row.day_mil+"公里")+"\n ")])]}}])}):e._e(),e._v(" "),e.shopsData.total_mil?n("el-table-column",{attrs:{prop:"total_mil",label:"总里程",align:"center",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("a",{staticClass:"el-button el-button--text el-button--mini",attrs:{href:e.monitorAccountBMSURL+"&macid="+t.row.battery_sn,target:"_blank"}},[e._v(" "+e._s(t.row.total_mil+"公里")+"\n ")])])]}}])}):e._e(),e._v(" "),e.shopsData.hire_price?n("el-table-column",{attrs:{prop:"hire_price",label:"租赁单价(元)",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.hire_price)+"\n 元/\n "),1==t.row.hire_duration_unit?n("span",[e._v("天")]):e._e(),e._v(" "),2==t.row.hire_duration_unit?n("span",[e._v("个月")]):e._e(),e._v(" "),3==t.row.hire_duration_unit?n("span",[e._v("年")]):e._e(),e._v(" "),4==t.row.hire_duration_unit?n("span",[e._v("小时")]):e._e(),e._v(" "),5==t.row.hire_duration_unit?n("span",[e._v("分钟")]):e._e(),e._v(" "),6==t.row.hire_duration_unit?n("span",[e._v("周")]):e._e()]}}])}):e._e(),e._v(" "),e.shopsData.pledge_money?n("el-table-column",{attrs:{prop:"pledge_money",label:"押金(元)",width:"60"}}):e._e(),e._v(" "),e.shopsData.hire_time?n("el-table-column",{attrs:{prop:"hire_time",label:"起租时间",align:"center",width:"90"}}):e._e(),e._v(" "),e.shopsData.chire_duration?n("el-table-column",{attrs:{prop:"chire_duration",label:"租赁时长",align:"center",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.chire_duration>0?n("span",[e._v(e._s(t.row.chire_duration)+" 天")]):e._e()]}}])}):e._e(),e._v(" "),e.shopsData.hire_expire_time?n("el-table-column",{attrs:{prop:"hire_expire_time",label:"到期时间",align:"center",width:"120",sortable:"custom"}}):e._e(),e._v(" "),e.shopsData.remark?n("el-table-column",{attrs:{"show-overflow-tooltip":!0,prop:"remark",label:"备注"}}):e._e(),e._v(" "),e.shopsData.bmsConnectState?n("el-table-column",{attrs:{prop:"bmsConnectState",label:"BMS",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.bmsConnectState&&0!=t.row.bms?n("el-link",{attrs:{href:e.monitorBMSURL+"&macid="+t.row.battery_sn,type:"primary",target:"_blank"}},[e._v("已连接\n ")]):e._e(),e._v(" "),0==t.row.bmsConnectState&&0!=t.row.bms?n("el-link",{attrs:{href:e.monitorBMSURL+"&macid="+t.row.battery_sn,type:"warning",target:"_blank"}},[e._v("未连接\n ")]):e._e(),e._v(" "),0==t.row.bms?n("el-link",{attrs:{type:"info"}},[e._v("—")]):e._e()]}}])}):e._e(),e._v(" "),e.shopsData.is_on?n("el-table-column",{attrs:{prop:"is_on",label:"工作状态",align:"center",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.is_on?n("el-tag",{attrs:{type:"success"}},[e._v("通电")]):n("el-tag",{attrs:{type:"danger"}},[e._v("断电")])]}}])}):e._e(),e._v(" "),e.shopsData.is_auto_close_power?n("el-table-column",{attrs:{prop:"is_auto_close_power",label:"到期后自动断电",align:"center",width:"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949",size:"mini"},on:{change:function(a){e.handleChangeClosePowerStatus(t.row)}},model:{value:t.row.is_auto_close_power,callback:function(a){e.$set(t.row,"is_auto_close_power",a)},expression:"scope.row.is_auto_close_power"}})]}}])}):e._e(),e._v(" "),!e.shopsData.more_info||1!=e.selectedShopInfo.has_device_code&&1!=e.userInfo.has_device_code?e._e():n("el-table-column",{attrs:{prop:"more_info",label:"附加信息",align:"center",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._l(t.row.more_info,function(a,i){return null!=t.row.more_info?n("div",{key:i,staticStyle:{"flex-direction":"column"}},["是否新电池"==a.key?n("div",[n("div",[e._v(e._s(a.key)+":"+e._s(1==a.value||""==a.value?"全新电池":"售后电池"))])]):n("div",[n("div",[e._v(e._s(a.key)+":"+e._s(a.value))])])]):e._e()}),e._v(" "),n("el-button",{attrs:{id:"editMoreInfo",type:"text",icon:"el-icon-edit",size:"mini",circle:""},on:{click:function(a){e.toEditMoreInfo(t.row)}}})],2)]}}])}),e._v(" "),n("el-table-column",{attrs:{"render-header":e.icons,align:"center",fixed:"right",label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("el-button",{attrs:{id:"step_edit_user",type:"text",size:"mini"},on:{click:function(a){e.toEditBatteryInfo(t.row)}}},[e._v("\n "+e._s("device"in e.authList&&(e.authList.device.list.device_edit.value||e.authList.device.list.change_device_pay_with_pledge.value)?"编辑":"查看")+"\n ")]),e._v(" "),t.row.replace?n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){e.replaceBattery(t.row)}}},[e._v("退换货\n ")]):e._e(),e._v(" "),"device"in e.authList&&e.authList.device.list.device_del.value?n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){e.delBattery(t.row.battery_sn)}}},[e._v("删除")]):e._e(),e._v(" "),n("div",[t.row.user_id>0&&20509!==e.userInfo.user_id?n("el-button",{staticStyle:{color:"#F56C6C"},attrs:{type:"text",size:"mini"},on:{click:function(a){e.releaseUser(t.row)}}},[e._v("解绑")]):e._e(),e._v(" "),t.row.user_id>0?n("el-button",{staticStyle:{color:"#F56C6C"},attrs:{type:"text",size:"mini"},on:{click:function(a){e.exchangeBind(t.row)}}},[e._v("换绑")]):e._e(),e._v(" "),"device"in e.authList&&e.authList.device.list.device_command.value?n("el-button",{staticStyle:{color:"#F56C6C"},attrs:{type:"text",size:"mini"},on:{click:function(a){e.handleTurnOnOff(2,t.row.battery_sn)}}},[e._v("断电\n ")]):e._e(),e._v(" "),"device"in e.authList&&e.authList.device.list.device_command.value?n("el-button",{staticStyle:{color:"#00cb00"},attrs:{type:"text",size:"mini"},on:{click:function(a){e.handleTurnOnOff(1,t.row.battery_sn)}}},[e._v("通电\n ")]):e._e()],1)],1)]}}])})],1):2==e.selectedShopInfo.business_type?n("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{data:e.batteryList,"highlight-current-row":!0,stripe:"",border:"",size:"mini"},on:{"selection-change":e.handleBatterySelectionChange,"row-click":e.handleChangeBatteryTableRow}},[n("el-table-column",{attrs:{type:"selection",width:"45",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"gpsbms_name",fixed:"",label:"设备名称"}}),e._v(" "),n("el-table-column",{attrs:{prop:"battery_sn",fixed:"",label:"设备编号"}}),e._v(" "),e.isKeYi?n("el-table-column",{attrs:{prop:"pack_sn_arr",label:"电池包",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.pack_sn_arr.join(","))+"\n ")]}}])}):e._e(),e._v(" "),1==e.selectedShopInfo.is_open_integrate_switch?n("el-table-column",{attrs:{prop:"relation_sn",label:"关联设备号",width:"100",align:"center"}}):e._e(),e._v(" "),n("el-table-column",{attrs:{prop:"battery_type_id",label:"型号",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.typeName(t.row))+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"third_device_type",label:"设备类型",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"battery_brand",label:"品牌",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"cell_type",label:"电芯",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"product_time",label:"生产日期",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"battery_factory_time",label:"出厂时间",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"shop_name",label:"所属门店",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"electric_quantity",label:"电池状态",align:"center",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("电压:"+e._s(t.row.voltage?t.row.voltage+"V":"未知"))]),e._v(" "),n("div",[e._v("电量:"+e._s(Math.round(1e3*t.row.electric_quantity)/1e3+"%"))]),e._v(" "),1==t.row.online?n("el-tag",{attrs:{type:"success",size:"mini"}},[e._v("在线")]):n("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("离线")])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"code_url",label:"二维码",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-popover",{attrs:{title:t.row.shop_name,placement:"right",trigger:"hover"}},[e.codeLoading?e._e():n("img",{class:"sn"+t.row.battery_sn+"_code",staticStyle:{width:"100%",height:"100%"},attrs:{src:t.row.code_url,alt:""}}),e._v(" "),n("div",{attrs:{slot:"reference"},slot:"reference"},[e._v("二维码")])])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"计费方式",prop:"last_minutes",align:"center","min-width":"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 前 "+e._s(t.row.last_minutes)+" "+e._s(1==t.row.share_unit?"小时":"分钟")+"\n "+e._s(t.row.last_price)+" 元,\n 超出后 "+e._s(t.row.minute_price)+"\n 元每"+e._s(t.row.share_cycle)+e._s(1==t.row.share_unit?"小时":"分钟")+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"user_name",label:"当前用户",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.user_name)+" "+e._s(t.row.phone)+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"unlock_time",label:"开锁时间",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"current_time",label:"当前时长(分钟)",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.current_time)+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"current_money",label:"当前计费(元)",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.current_money)+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{"show-overflow-tooltip":!0,prop:"remark",label:"备注"}}),e._v(" "),n("el-table-column",{attrs:{prop:"bmsConnectState",label:"BMS",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.bmsConnectState&&0!=t.row.bms?n("el-link",{attrs:{href:e.monitorBMSURL+"&macid="+t.row.battery_sn,type:"primary",target:"_blank"}},[e._v("已连接\n ")]):e._e(),e._v(" "),0==t.row.bmsConnectState&&0!=t.row.bms?n("el-link",{attrs:{href:e.monitorBMSURL+"&macid="+t.row.battery_sn,type:"warning",target:"_blank"}},[e._v("未连接\n ")]):e._e(),e._v(" "),0==t.row.bms?n("el-link",{attrs:{type:"info"}},[e._v("—")]):e._e()]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"is_on",label:"工作状态",align:"center",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.is_on?n("el-tag",{attrs:{type:"success"}},[e._v("通电")]):n("el-tag",{attrs:{type:"danger"}},[e._v("断电")])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"remark",label:"到期后是否自动断电",align:"center",width:"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949",size:"mini"},on:{change:function(a){e.handleChangeClosePowerStatus(t.row)}},model:{value:t.row.is_auto_close_power,callback:function(a){e.$set(t.row,"is_auto_close_power",a)},expression:"scope.row.is_auto_close_power"}})]}}])}),e._v(" "),1==e.selectedShopInfo.has_device_code||1==e.userInfo.has_device_code?n("el-table-column",{attrs:{prop:"more_info",label:"附加信息",align:"center",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._l(t.row.more_info,function(a,i){return null!=t.row.more_info?n("div",{key:i,staticStyle:{"flex-direction":"column"}},["是否新电池"==a.key?n("div",[n("div",[e._v(e._s(a.key)+":"+e._s(1==a.value||""==a.value?"全新电池":"售后电池"))])]):n("div",[n("div",[e._v(e._s(a.key)+":"+e._s(a.value))])])]):e._e()}),e._v(" "),n("el-button",{attrs:{id:"editMoreInfo1",type:"text",icon:"el-icon-edit",size:"mini",circle:""},on:{click:function(a){e.toEditMoreInfo(t.row)}}})],2)]}}])}):e._e(),e._v(" "),n("el-table-column",{attrs:{"render-header":e.icons,align:"center",fixed:"right",label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){e.toEditBatteryInfo(t.row)}}},[e._v("\n "+e._s("device"in e.authList&&(e.authList.device.list.device_edit.value||e.authList.device.list.change_device_pay_with_pledge.value)?"编辑":"查看")+"\n ")]),e._v(" "),t.row.replace?n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){e.replaceBattery(t.row)}}},[e._v("退换货\n ")]):e._e(),e._v(" "),"device"in e.authList&&e.authList.device.list.device_del.value?n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){e.delBattery(t.row.battery_sn)}}},[e._v("删除")]):e._e(),e._v(" "),n("div",["device"in e.authList&&e.authList.device.list.device_command.value?n("el-button",{staticStyle:{color:"#F56C6C"},attrs:{type:"text",size:"mini"},on:{click:function(a){e.handleTurnOnOff(2,t.row.battery_sn)}}},[e._v("断电\n ")]):e._e(),e._v(" "),"device"in e.authList&&e.authList.device.list.device_command.value?n("el-button",{staticStyle:{color:"#00cb00"},attrs:{type:"text",size:"mini"},on:{click:function(a){e.handleTurnOnOff(1,t.row.battery_sn)}}},[e._v("通电\n ")]):e._e()],1)],1)]}}])})],1):5==e.selectedShopInfo.business_type?n("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{data:e.batteryList,"highlight-current-row":!0,stripe:"",border:"",size:"mini"},on:{"selection-change":e.handleBatterySelectionChange,"row-click":e.handleChangeBatteryTableRow}},[n("el-table-column",{attrs:{type:"selection",width:"45",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"gpsbms_name",fixed:"",label:"设备名称"}}),e._v(" "),n("el-table-column",{attrs:{prop:"battery_sn",fixed:"",label:"设备编号"}}),e._v(" "),n("el-table-column",{attrs:{prop:"cabinet_battery_sn",label:"电池编号"}}),e._v(" "),e.isKeYi?n("el-table-column",{attrs:{prop:"pack_sn_arr",label:"电池包",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.pack_sn_arr.join(","))+"\n ")]}}])}):e._e(),e._v(" "),1==e.selectedShopInfo.is_open_integrate_switch?n("el-table-column",{attrs:{prop:"relation_sn",label:"关联设备号",width:"100",align:"center"}}):e._e(),e._v(" "),n("el-table-column",{attrs:{prop:"battery_type_id",label:"型号",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.typeName(t.row))+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"third_device_type",label:"设备类型",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"battery_brand",label:"品牌",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"cell_type",label:"电芯",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"product_time",label:"生产日期",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"battery_factory_time",label:"出厂时间",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"shop_name",label:"所属门店",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"electric_quantity",label:"电池状态",align:"center",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("电压:"+e._s(t.row.voltage?t.row.voltage+"V":"未知"))]),e._v(" "),n("div",[e._v("电量:"+e._s(Math.round(1e3*t.row.electric_quantity)/1e3+"%"))]),e._v(" "),1==t.row.online?n("el-tag",{attrs:{type:"success",size:"mini"}},[e._v("在线")]):n("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("离线")])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"code_url",label:"二维码",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.codeLoading?e._e():n("img",{class:"sn"+t.row.battery_sn+"_code",staticStyle:{width:"100%",height:"100%"},attrs:{src:t.row.code_url,alt:""}})]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"sell_price",label:"售价(元)",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.sell_price)+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"guarantee_day",label:"保修期",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.guarantee_day)+"天\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"sell_username",label:"购买用户",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.sell_username)+" "+e._s(t.row.sell_phone)+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"buy_time",label:"购买日期",align:"center",width:"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.buy_time)+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{"show-overflow-tooltip":!0,prop:"remark",label:"备注"}}),e._v(" "),n("el-table-column",{attrs:{prop:"bmsConnectState",label:"BMS",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.bmsConnectState&&0!=t.row.bms?n("el-link",{attrs:{href:e.monitorBMSURL+"&macid="+t.row.battery_sn,type:"primary",target:"_blank"}},[e._v("已连接\n ")]):e._e(),e._v(" "),0==t.row.bmsConnectState&&0!=t.row.bms?n("el-link",{attrs:{href:e.monitorBMSURL+"&macid="+t.row.battery_sn,type:"warning",target:"_blank"}},[e._v("未连接\n ")]):e._e(),e._v(" "),0==t.row.bms?n("el-link",{attrs:{type:"info"}},[e._v("—")]):e._e()]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"is_on",label:"工作状态",align:"center",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.is_on?n("el-tag",{attrs:{type:"success"}},[e._v("通电")]):n("el-tag",{attrs:{type:"danger"}},[e._v("断电")])]}}])}),e._v(" "),n("el-table-column",{attrs:{"render-header":e.icons,align:"center",fixed:"right",label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("el-button",{attrs:{id:"abc",type:"text",size:"mini"},on:{click:function(a){e.toEditBatteryInfo(t.row)}}},[e._v("\n "+e._s("device"in e.authList&&(e.authList.device.list.device_edit.value||e.authList.device.list.change_device_pay_with_pledge.value)?"编辑":"查看")+"\n ")]),e._v(" "),"device"in e.authList&&e.authList.device.list.device_del.value?n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){e.delBattery(t.row.battery_sn)}}},[e._v("删除")]):e._e(),e._v(" "),n("div",[t.row.sell_id>0?n("el-button",{staticStyle:{color:"#F56C6C"},attrs:{type:"text",size:"mini"},on:{click:function(a){e.releaseUser(t.row)}}},[e._v("解绑")]):e._e(),e._v(" "),"device"in e.authList&&e.authList.device.list.device_command.value?n("el-button",{staticStyle:{color:"#F56C6C"},attrs:{type:"text",size:"mini"},on:{click:function(a){e.handleTurnOnOff(2,t.row.battery_sn)}}},[e._v("断电\n ")]):e._e(),e._v(" "),"device"in e.authList&&e.authList.device.list.device_command.value?n("el-button",{staticStyle:{color:"#00cb00"},attrs:{type:"text",size:"mini"},on:{click:function(a){e.handleTurnOnOff(1,t.row.battery_sn)}}},[e._v("通电\n ")]):e._e()],1)],1)]}}])})],1):n("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{data:e.batteryList,"highlight-current-row":!0,stripe:"",border:"",size:"mini"},on:{"selection-change":e.handleBatterySelectionChange,"row-click":e.handleChangeBatteryTableRow}},[n("el-table-column",{attrs:{type:"selection",width:"45",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"gpsbms_name",fixed:"",label:"设备名称"}}),e._v(" "),n("el-table-column",{attrs:{prop:"battery_sn",label:"设备编号"}}),e._v(" "),n("el-table-column",{attrs:{prop:"cabinet_battery_sn",label:"电池编号"}}),e._v(" "),e.isKeYi?n("el-table-column",{attrs:{prop:"pack_sn_arr",label:"电池包",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.pack_sn_arr.join(","))+"\n ")]}}])}):e._e(),e._v(" "),1==e.selectedShopInfo.is_open_integrate_switch?n("el-table-column",{attrs:{prop:"relation_sn",label:"关联设备号",width:"100",align:"center"}}):e._e(),e._v(" "),n("el-table-column",{attrs:{prop:"battery_type_id",label:"型号",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.typeName(t.row))+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"third_device_type",label:"设备类型",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"battery_brand",label:"品牌",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"cell_type",label:"电芯",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"product_time",label:"生产日期",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"battery_factory_time",label:"出厂时间",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"shop_name",label:"所属门店",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"electric_quantity",label:"电池状态",align:"center",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("电压:"+e._s(t.row.voltage?t.row.voltage+"V":"未知"))]),e._v(" "),n("div",[e._v("电量:"+e._s(Math.round(1e3*t.row.electric_quantity)/1e3+"%"))]),e._v(" "),1==t.row.online?n("el-tag",{attrs:{type:"success",size:"mini"}},[e._v("在线")]):n("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("离线")])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"gpsbms_car_number",label:"车牌号",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"gpsbms_master_name",label:"车主名称",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"gpsbms_phone",label:"联系电话",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"gpsbms_car_color",label:"车辆颜色",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"user_name",label:"绑定用户",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.user_name)+" "+e._s(t.row.phone)+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{"show-overflow-tooltip":!0,prop:"remark",label:"备注"}}),e._v(" "),n("el-table-column",{attrs:{prop:"bmsConnectState",label:"BMS",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.bmsConnectState&&0!=t.row.bms?n("el-link",{attrs:{href:e.monitorBMSURL+"&macid="+t.row.battery_sn,type:"primary",target:"_blank"}},[e._v("已连接\n ")]):e._e(),e._v(" "),0==t.row.bmsConnectState&&0!=t.row.bms?n("el-link",{attrs:{href:e.monitorBMSURL+"&macid="+t.row.battery_sn,type:"warning",target:"_blank"}},[e._v("未连接\n ")]):e._e(),e._v(" "),0==t.row.bms?n("el-link",{attrs:{type:"info"}},[e._v("—")]):e._e()]}}])}),e._v(" "),1==e.selectedShopInfo.has_device_code||1==e.userInfo.has_device_code?n("el-table-column",{attrs:{prop:"more_info",label:"附加信息",align:"center",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._l(t.row.more_info,function(a,i){return null!=t.row.more_info?n("div",{key:i,staticStyle:{"flex-direction":"column"}},["是否新电池"==a.key?n("div",[n("div",[e._v(e._s(a.key)+":"+e._s(1==a.value||""==a.value?"全新电池":"售后电池"))])]):n("div",[n("div",[e._v(e._s(a.key)+":"+e._s(a.value))])])]):e._e()}),e._v(" "),n("el-button",{attrs:{id:"editMoreInfo2",type:"text",icon:"el-icon-edit",size:"mini",circle:""},on:{click:function(a){e.toEditMoreInfo(t.row)}}})],2)]}}])}):e._e(),e._v(" "),n("el-table-column",{attrs:{prop:"is_on",label:"工作状态",align:"center",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.is_on?n("el-tag",{attrs:{type:"success"}},[e._v("通电")]):n("el-tag",{attrs:{type:"danger"}},[e._v("断电")])]}}])}),e._v(" "),n("el-table-column",{attrs:{"render-header":e.icons,align:"center",fixed:"right",label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("el-button",{attrs:{id:"abc1",type:"text",size:"mini"},on:{click:function(a){e.toEditBatteryInfo(t.row)}}},[e._v("\n "+e._s("device"in e.authList&&(e.authList.device.list.device_edit.value||e.authList.device.list.change_device_pay_with_pledge.value)?"编辑":"查看")+"\n ")]),e._v(" "),"device"in e.authList&&e.authList.device.list.device_del.value?n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){e.delBattery(t.row.battery_sn)}}},[e._v("删除")]):e._e(),e._v(" "),n("div",[t.row.user_id>0&&20509!==e.userInfo.user_id?n("el-button",{staticStyle:{color:"#F56C6C"},attrs:{type:"text",size:"mini"},on:{click:function(a){e.releaseUser(t.row)}}},[e._v("解绑")]):e._e(),e._v(" "),"device"in e.authList&&e.authList.device.list.device_command.value?n("el-button",{staticStyle:{color:"#F56C6C"},attrs:{type:"text",size:"mini"},on:{click:function(a){e.handleTurnOnOff(2,t.row.battery_sn)}}},[e._v("断电\n ")]):e._e(),e._v(" "),"device"in e.authList&&e.authList.device.list.device_command.value?n("el-button",{staticStyle:{color:"#00cb00"},attrs:{type:"text",size:"mini"},on:{click:function(a){e.handleTurnOnOff(1,t.row.battery_sn)}}},[e._v("通电\n ")]):e._e()],1)],1)]}}])})],1),e._v(" "),n("div",{staticClass:"pagination-container"},[n("el-pagination",{attrs:{"current-page":e.listQuery.page,"page-sizes":e.pageSizes,"page-size":e.listQuery.limit,total:e.total,background:"",layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1):e._e(),e._v(" "),"device"in e.authList&&e.authList.device.list.device_add.value&&e.showTabPane?n("el-tab-pane",{attrs:{label:"添加设备"}},[n("el-form",{ref:"batteryForm",staticStyle:{"margin-left":"50px"},attrs:{model:e.batteryForm,rules:e.batteryFormRules,"label-position":"left","label-width":"160px",size:"small"}},[n("el-form-item",{attrs:{label:"所属门店",prop:"admin_id"}},[n("span",[e._v(e._s(e.selectedShopInfo.shop_name))])]),e._v(" "),n("el-form-item",{attrs:{label:"品牌",prop:"battery_brand"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"",size:"mini"},model:{value:e.batteryForm.battery_brand,callback:function(t){e.$set(e.batteryForm,"battery_brand",t)},expression:"batteryForm.battery_brand"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"生产日期",prop:"product_time"}},[n("el-date-picker",{attrs:{size:"mini",type:"datetime",placeholder:"选择日期"},model:{value:e.batteryForm.product_time,callback:function(t){e.$set(e.batteryForm,"product_time",t)},expression:"batteryForm.product_time"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"型号",prop:"battery_type_id"}},[n("el-input-number",{staticStyle:{width:"100px"},attrs:{min:1,max:1e3,label:"",size:"mini","controls-position":"right"},model:{value:e.batteryForm.battery_type_v,callback:function(t){e.$set(e.batteryForm,"battery_type_v",t)},expression:"batteryForm.battery_type_v"}}),e._v(" V\n "),n("el-input-number",{staticStyle:{width:"100px"},attrs:{min:1,max:1e3,label:"",size:"mini","controls-position":"right"},model:{value:e.batteryForm.battery_type_a,callback:function(t){e.$set(e.batteryForm,"battery_type_a",t)},expression:"batteryForm.battery_type_a"}}),e._v(" AH\n ")],1),e._v(" "),n("el-form-item",{attrs:{label:"设备类型",prop:"third_device_type"}},[n("el-select",{attrs:{disabled:!(1==e.userInfo.user_id),size:"mini",placeholder:"请选择"},model:{value:e.batteryForm.third_device_type,callback:function(t){e.$set(e.batteryForm,"third_device_type",t)},expression:"batteryForm.third_device_type"}},e._l(e.thirdDeviceTypeList,function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})}))],1),e._v(" "),n("el-form-item",{attrs:{label:"蓝牙类型",prop:"bt_type"}},[n("el-select",{attrs:{disabled:-1!=e.role,size:"mini",placeholder:"请选择"},model:{value:e.batteryForm.bt_type,callback:function(t){e.$set(e.batteryForm,"bt_type",t)},expression:"batteryForm.bt_type"}},e._l(e.btList,function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})}))],1),e._v(" "),"ZXBTS"==e.batteryForm.bt_type||"LSBTS"==e.batteryForm.bt_type?n("el-form-item",{attrs:{label:"波特率",prop:"bt_type"}},[n("el-select",{attrs:{disabled:-1!=e.role,size:"mini",placeholder:"请选择"},model:{value:e.batteryForm.bps,callback:function(t){e.$set(e.batteryForm,"bps",t)},expression:"batteryForm.bps"}},e._l(e.baudList,function(e,t){return n("el-option",{key:e,attrs:{label:e,value:e}})}))],1):e._e(),e._v(" "),12320==e.userInfo.user_id?n("el-form-item",{attrs:{label:"设备用途",prop:"used "}},[n("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:e.batteryForm.used,callback:function(t){e.$set(e.batteryForm,"used",t)},expression:"batteryForm.used"}},[n("el-option",{attrs:{label:"储能",value:"1"}}),e._v(" "),n("el-option",{attrs:{label:"动力",value:"2"}})],1)],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"电芯",prop:"cell_type"}},[n("el-autocomplete",{attrs:{"fetch-suggestions":e.cellQuerySearch,placeholder:""},model:{value:e.batteryForm.cell_type,callback:function(t){e.$set(e.batteryForm,"cell_type",t)},expression:"batteryForm.cell_type"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"BMS保护板",prop:"bms_type"}},[n("el-autocomplete",{attrs:{"fetch-suggestions":e.bmsQuerySearch,placeholder:""},model:{value:e.batteryForm.bms_type,callback:function(t){e.$set(e.batteryForm,"bms_type",t)},expression:"batteryForm.bms_type"}})],1),e._v(" "),-1==e.userInfo.role&&"无"!==e.batteryForm.bms_type?n("el-form-item",{attrs:{label:"保护板属性",prop:"bms_hard_attr"}},[n("el-cascader",{attrs:{options:e.bmsHardAttrList,props:{expandTrigger:"hover"},clearable:""},model:{value:e.batteryForm.bms_hard_attr,callback:function(t){e.$set(e.batteryForm,"bms_hard_attr",t)},expression:"batteryForm.bms_hard_attr"}})],1):e._e(),e._v(" "),e.selectedShopInfo.business_type<2?n("div",[n("el-form-item",{attrs:{label:"租赁类型",prop:"hire_type"}},[n("el-radio-group",{model:{value:e.batteryForm.hire_type,callback:function(t){e.$set(e.batteryForm,"hire_type",t)},expression:"batteryForm.hire_type"}},[n("el-radio",{attrs:{label:1}},[e._v("普通租赁")]),e._v(" "),n("el-radio",{attrs:{label:2}},[e._v("以租代售")])],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"业务类型",prop:"battery_business_type"}},[n("el-radio-group",{on:{change:e.batteryForm_hire_duration_unit},model:{value:e.batteryForm.battery_business_type,callback:function(t){e.$set(e.batteryForm,"battery_business_type",t)},expression:"batteryForm.battery_business_type"}},[n("el-radio",{attrs:{label:"0"}},[e._v("租电")]),e._v(" "),n("el-radio",{attrs:{label:"1"}},[e._v("租车")])],1)],1),e._v(" "),0==e.batteryForm.battery_business_type?n("el-form-item",{attrs:{label:"是否收取换电功能费用",prop:"exchange_function_status"}},[n("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini"},model:{value:e.batteryForm.exchange_function_status,callback:function(t){e.$set(e.batteryForm,"exchange_function_status",t)},expression:"batteryForm.exchange_function_status"}},[n("el-option",{attrs:{value:0,label:"不收取"}}),e._v(" "),n("el-option",{attrs:{value:1,label:"收取"}})],1),e._v(" "),n("span",{staticStyle:{color:"#f56c6c","margin-left":"5px"}},[e._v("请升级微信小程序至4.1.20220114以后版本")])],1):e._e(),e._v(" "),1==e.batteryForm.exchange_function_status&&0==e.batteryForm.battery_business_type?n("el-form-item",{staticClass:"function3",staticStyle:{"margin-left":"70px"},attrs:{label:"收取费用",prop:"pledge_money"}},[n("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入换电功能费",size:"mini"},model:{value:e.batteryForm.exchange_function_fee,callback:function(t){e.$set(e.batteryForm,"exchange_function_fee",t)},expression:"batteryForm.exchange_function_fee"}}),e._v("\n 元\n ")],1):e._e(),e._v(" "),1==e.batteryForm.hire_type?n("el-form-item",{attrs:{label:"合同时长",prop:"hire_sell_duration"}},[n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0",size:"mini"},model:{value:e.batteryForm.hire_normal_duration,callback:function(t){e.$set(e.batteryForm,"hire_normal_duration",t)},expression:"batteryForm.hire_normal_duration"}}),e._v("\n 月 "),n("span",{staticClass:"tips"})],1):e._e(),e._v(" "),2==e.batteryForm.hire_type?n("el-form-item",{attrs:{label:"以租代售时长",prop:"hire_sell_duration"}},[n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0",size:"mini"},model:{value:e.batteryForm.hire_sell_duration,callback:function(t){e.$set(e.batteryForm,"hire_sell_duration",t)},expression:"batteryForm.hire_sell_duration"}}),e._v("\n 月 "),n("span",{staticClass:"tips"},[e._v("如,租满12个月后归用户所有")])],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"押金",prop:"pledge_money"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.batteryForm.pledge_money,callback:function(t){e.$set(e.batteryForm,"pledge_money",t)},expression:"batteryForm.pledge_money"}}),e._v(" 元\n ")],1),e._v(" "),n("el-form-item",{attrs:{label:"单价",prop:"hire_price"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.batteryForm.hire_price,callback:function(t){e.$set(e.batteryForm,"hire_price",t)},expression:"batteryForm.hire_price"}}),e._v(" "),n("span",[e._v("元 / ")]),e._v(" "),n("el-input",{staticStyle:{width:"80px"},attrs:{oninput:"if(value<=0)value=1",placeholder:"",size:"mini"},model:{value:e.batteryForm.hire_cycle,callback:function(t){e.$set(e.batteryForm,"hire_cycle",t)},expression:"batteryForm.hire_cycle"}}),e._v(" "),0==e.batteryForm.battery_business_type?n("el-select",{staticStyle:{width:"80px"},attrs:{filterable:"",size:"mini"},model:{value:e.batteryForm.hire_duration_unit,callback:function(t){e.$set(e.batteryForm,"hire_duration_unit",t)},expression:"batteryForm.hire_duration_unit"}},[n("el-option",{attrs:{label:"天",value:"1"}}),e._v(" "),n("el-option",{attrs:{label:"个月",value:"2"}}),e._v(" "),n("el-option",{attrs:{label:"年",value:"3"}}),e._v(" "),n("el-option",{attrs:{label:"小时",value:"4"}}),e._v(" "),n("el-option",{attrs:{label:"分钟",value:"5"}}),e._v(" "),n("el-option",{attrs:{label:"周",value:"6"}})],1):e._e(),e._v(" "),1==e.batteryForm.battery_business_type?n("el-select",{staticStyle:{width:"80px"},attrs:{filterable:"",size:"mini"},on:{change:e.batteryForm_hire_duration_unit_1},model:{value:e.batteryForm.hire_duration_unit,callback:function(t){e.$set(e.batteryForm,"hire_duration_unit",t)},expression:"batteryForm.hire_duration_unit"}},[n("el-option",{attrs:{label:"天",value:"1"}}),e._v(" "),n("el-option",{attrs:{label:"个月",value:"2"}}),e._v(" "),n("el-option",{attrs:{label:"年",value:"3"}}),e._v(" "),n("el-option",{attrs:{label:"小时",value:"4"}}),e._v(" "),n("el-option",{attrs:{label:"分钟",value:"5"}}),e._v(" "),n("el-option",{attrs:{label:"周",value:"6"}})],1):e._e(),e._v(" "),2==e.batteryForm.hire_type?n("span",{staticClass:"tips"},[e._v(" 以租代售时,每个付款周期支付的费用")]):e._e()],1),e._v(" "),0==e.batteryForm.battery_business_type?n("el-form-item",{attrs:{label:"换电原价",prop:"originate_exchange_price"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.batteryForm.originate_exchange_price,callback:function(t){e.$set(e.batteryForm,"originate_exchange_price",t)},expression:"batteryForm.originate_exchange_price"}}),e._v(" "),n("span",[e._v("元")]),n("span",{staticClass:"minfondsize"},[e._v("(页面展示初始换电原价)")]),e._v(" "),n("span",{staticStyle:{color:"#f56c6c"}},[e._v(" 需要升级小程序至最新版本")])],1):e._e(),e._v(" "),0==e.batteryForm.battery_business_type?n("el-form-item",{attrs:{label:"换电优惠价",prop:"exchange_price"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.batteryForm.exchange_price,callback:function(t){e.$set(e.batteryForm,"exchange_price",t)},expression:"batteryForm.exchange_price"}}),e._v(" "),n("span",[e._v("元")]),n("span",{staticClass:"minfondsize"},[e._v("(客户实际支付的换电优惠价)")]),e._v(" "),n("span",{staticStyle:{color:"#f56c6c"}},[e._v(" 需要升级小程序至最新版本")])],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"优惠价",prop:"hire_discount"}},[n("el-button",{attrs:{icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.batteryForm.hire_discount.push({num:1,price:e.batteryForm.hire_price})}}},[e._v("添加优惠价")]),e._v(" "),e.batteryForm.hire_discount&&0!=e.batteryForm.hire_discount.length?n("el-form-item",{staticStyle:{"margin-top":"10px"},attrs:{label:"",prop:"hire_discount_only_new","label-width":"0px"}},[n("el-checkbox",{model:{value:e.batchEditBatteryForm.hire_discount_only_new,callback:function(t){e.$set(e.batchEditBatteryForm,"hire_discount_only_new",t)},expression:"batchEditBatteryForm.hire_discount_only_new"}},[e._v("仅对首租优惠")]),e._v(" "),n("span",{staticStyle:{color:"#f56c6c"}},[e._v(" 需要升级小程序至4.1.20220704版本")])],1):e._e(),e._v(" "),e.batteryForm.hire_discount&&0!=e.batteryForm.hire_discount.length?n("el-popover",{attrs:{placement:"right",trigger:"click"}},[e.batteryForm.hire_price&&/^\d+\.?\d{0,2}$/.test(e.batteryForm.hire_price)?e.payTestChecked?n("el-form",{attrs:{"label-position":"right","label-width":"120px",size:"small"}},[n("el-form-item",{attrs:{label:"用户预租赁时长"}},[n("el-input",{staticStyle:{width:"100px"},attrs:{placeholder:"0.00",maxlength:"5",size:"mini"},model:{value:e.payNum,callback:function(t){e.payNum=t},expression:"payNum"}}),e._v("\n 个周期\n ")],1),e._v(" "),n("el-form-item",{attrs:{label:"用户租赁金额"}},[e._v("\n "+e._s(e.payTest(e.payNum,e.batteryForm.hire_price,e.batteryForm.hire_discount).toFixed(2))+" 元\n ")]),e._v(" "),n("el-form-item",{attrs:{label:"相当于"}},[e._v("\n "+e._s((e.payTest(e.payNum,e.batteryForm.hire_price,e.batteryForm.hire_discount)/e.payNum).toFixed(2))+"\n 元/周期\n ")]),e._v(" "),n("el-form-item",{attrs:{label:"立省"}},[e._v("\n "+e._s((e.batteryForm.hire_price*e.payNum-e.payTest(e.payNum,e.batteryForm.hire_price,e.batteryForm.hire_discount)).toFixed(2))+"\n 元\n ")]),e._v(" "),n("div",{staticStyle:{width:"100%",color:"#FF0000"}},[e._v("注意:小程序更新至3.4.8版本后,")]),e._v(" "),n("div",{staticStyle:{width:"100%",color:"#FF0000"}},[e._v("\n 才可使用优惠价付款")])],1):n("el-tag",{attrs:{type:"danger"}},[e._v("优惠价设置有误")]):n("el-tag",{attrs:{type:"danger"}},[e._v("\n 单价设置有误")]),e._v(" "),n("el-button",{staticStyle:{"margin-bottom":"10px"},attrs:{slot:"reference",type:"primary",size:"mini"},on:{click:function(t){e.payTest(0,0,e.batteryForm.hire_discount)}},slot:"reference"},[e._v("\n 用户租金计算器")])],1):e._e(),e._v(" "),e._l(e.batteryForm.hire_discount,function(t,a){return n("div",{key:a},[n("el-input-number",{staticStyle:{width:"80px"},attrs:{min:1,size:"mini","controls-position":"right"},model:{value:t.num,callback:function(a){e.$set(t,"num",a)},expression:"item.num"}}),e._v(" 个周期\n "),n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:t.price,callback:function(a){e.$set(t,"price",a)},expression:"item.price"}}),e._v(" 元\n "),n("el-tag",{attrs:{type:"danger"}},[e._v("相当于"+e._s((t.price/t.num).toFixed(2))+"元/周期")]),e._v(" "),n("el-button",{attrs:{icon:"el-icon-delete",size:"mini",round:""},on:{click:function(t){e.batteryForm.hire_discount.splice(a,1)}}})],1)})],2),e._v(" "),n("el-form",{staticStyle:{"margin-left":"0px"},attrs:{model:e.batteryForm,"label-position":"right","label-width":"160px",size:"mini"}},[-1!=e.roles.indexOf("change_device_pay_with_pledge")?n("el-form-item",{attrs:{label:"支付方式",prop:"pay_with_pledge"}},[n("el-select",{attrs:{disabled:!("device"in e.authList&&e.authList.device.list.change_device_pay_with_pledge.value||e.authList.device.list.device_edit.value),filterable:"",size:"mini"},model:{value:e.batteryForm.pay_with_pledge,callback:function(t){e.$set(e.batteryForm,"pay_with_pledge",t)},expression:"batteryForm.pay_with_pledge"}},[n("el-option",{attrs:{label:"仅支付租金",value:"1"}}),e._v(" "),n("el-option",{attrs:{label:"同时支付租金和押金",value:"2"}})],1)],1):e._e()],1),e._v(" "),n("el-form-item",{attrs:{label:"合作伙伴分账",prop:"is_share_member"}},[n("el-checkbox",{model:{value:e.batteryForm.is_share_member,callback:function(t){e.$set(e.batteryForm,"is_share_member",t)},expression:"batteryForm.is_share_member"}},[e._v("是")])],1),e._v(" "),e.batteryForm.is_share_member?n("el-form-item",{attrs:{label:"分账类型",prop:"share_member_type"}},[n("el-radio-group",{model:{value:e.batteryForm.share_member_type,callback:function(t){e.$set(e.batteryForm,"share_member_type",t)},expression:"batteryForm.share_member_type"}},[n("el-radio",{attrs:{label:1}},[e._v("按比例分账")]),e._v(" "),n("el-radio",{attrs:{label:2}},[e._v("按固定金额")])],1)],1):e._e(),e._v(" "),1===e.batteryForm.share_member_type&&e.batteryForm.is_share_member?[n("el-form-item",{attrs:{label:"租金分账比例",prop:"member_hire_price_ratio"}},[n("el-input-number",{attrs:{min:0,max:100,size:"mini"},model:{value:e.batteryForm.member_hire_price_ratio,callback:function(t){e.$set(e.batteryForm,"member_hire_price_ratio",t)},expression:"batteryForm.member_hire_price_ratio"}}),e._v(" %\n ")],1)]:e._e(),e._v(" "),2===e.batteryForm.share_member_type&&e.batteryForm.is_share_member?[n("el-form-item",{attrs:{label:"租金分账金额",prop:"member_hire_money"}},[n("el-input-number",{attrs:{min:0,max:2e4,size:"mini"},model:{value:e.batteryForm.member_hire_money,callback:function(t){e.$set(e.batteryForm,"member_hire_money",t)},expression:"batteryForm.member_hire_money"}}),e._v(" 元\n ")],1)]:e._e()],2):2==e.selectedShopInfo.business_type?n("div",[n("el-form-item",{attrs:{label:"业务类型",prop:"battery_business_type"}},[n("el-radio-group",{model:{value:e.batteryForm.battery_business_type,callback:function(t){e.$set(e.batteryForm,"battery_business_type",t)},expression:"batteryForm.battery_business_type"}},[n("el-radio",{attrs:{label:"0"}},[e._v("租电")]),e._v(" "),n("el-radio",{attrs:{label:"1"}},[e._v("租车")])],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"计费方式",prop:"last_minutes"}},[e._v("\n 前 \n "),n("el-input",{staticStyle:{width:"60px"},attrs:{placeholder:"0",size:"mini"},model:{value:e.batteryForm.last_minutes,callback:function(t){e.$set(e.batteryForm,"last_minutes",t)},expression:"batteryForm.last_minutes"}}),e._v("\n "+e._s(1==e.batteryForm.share_unit?"小时":"分钟")+"\n "),n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.batteryForm.last_price,callback:function(t){e.$set(e.batteryForm,"last_price",t)},expression:"batteryForm.last_price"}}),e._v(" 元,\n 超出后 \n "),n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.batteryForm.minute_price,callback:function(t){e.$set(e.batteryForm,"minute_price",t)},expression:"batteryForm.minute_price"}}),e._v(" 元每\n "),n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"",size:"mini"},model:{value:e.batteryForm.share_cycle,callback:function(t){e.$set(e.batteryForm,"share_cycle",t)},expression:"batteryForm.share_cycle"}}),e._v(" "),n("el-select",{staticStyle:{width:"80px"},attrs:{filterable:"",size:"mini"},model:{value:e.batteryForm.share_unit,callback:function(t){e.$set(e.batteryForm,"share_unit",t)},expression:"batteryForm.share_unit"}},[n("el-option",{attrs:{value:0,label:"分钟"}}),e._v(" "),n("el-option",{attrs:{value:1,label:"小时"}})],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"计费上限",prop:"share_discount"}},[n("el-button",{attrs:{icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.batteryForm.share_discount.push({num:1,price:""})}}},[e._v("添加上限\n ")]),e._v(" "),e._l(e.batteryForm.share_discount,function(t,a){return n("div",{key:a,staticStyle:{"margin-top":"5px"}},[n("el-input-number",{staticStyle:{width:"150px"},attrs:{min:1,size:"mini","controls-position":"right"},model:{value:t.num,callback:function(a){e.$set(t,"num",a)},expression:"item.num"}}),e._v("\n "+e._s(1==e.batteryForm.share_unit?"小时":"分钟")+"\n "),n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:t.price,callback:function(a){e.$set(t,"price",a)},expression:"item.price"}}),e._v(" 元\n "),n("el-button",{attrs:{icon:"el-icon-delete",size:"mini",round:""},on:{click:function(t){e.batteryForm.share_discount.splice(a,1)}}})],1)})],2)],1):e._e(),e._v(" "),n("div",[n("el-form-item",{attrs:{label:"出售价格",prop:"sell_price"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.batteryForm.sell_price,callback:function(t){e.$set(e.batteryForm,"sell_price",t)},expression:"batteryForm.sell_price"}}),e._v(" "),n("span",[e._v("元")]),e._v(" "),n("span",[e._v(" 需要开通锂助手")])],1),e._v(" "),n("el-form-item",{attrs:{label:"出售保修期",prop:"guarantee_day"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.batteryForm.guarantee_day,callback:function(t){e.$set(e.batteryForm,"guarantee_day",t)},expression:"batteryForm.guarantee_day"}}),e._v(" "),n("el-select",{staticStyle:{width:"80px"},attrs:{filterable:"",size:"mini"},model:{value:e.batteryForm.guarantee_unit,callback:function(t){e.$set(e.batteryForm,"guarantee_unit",t)},expression:"batteryForm.guarantee_unit"}},[n("el-option",{attrs:{label:"天",value:"1"}}),e._v(" "),n("el-option",{attrs:{label:"个月",value:"2"}}),e._v(" "),n("el-option",{attrs:{label:"年",value:"3"}})],1)],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"设备编号",prop:"battery_sn_str"}},[n("el-input",{staticStyle:{width:"50%"},attrs:{rows:5,type:"textarea",placeholder:"一行一个编号",mini:"size"},model:{value:e.batteryForm.battery_sn_str,callback:function(t){e.$set(e.batteryForm,"battery_sn_str",t)},expression:"batteryForm.battery_sn_str"}}),e._v(" "),n("br"),e._v(" "),n("span",{staticStyle:{color:"#F56C6C"}},[e._v(" * 设备编号,支持单个或批量,一行一个编号")])],1),e._v(" "),n("el-form-item",{attrs:{label:"备注",prop:"remark"}},[n("el-input",{staticStyle:{width:"250px"},attrs:{rows:2,type:"textarea",placeholder:"备注信息",mini:"size"},model:{value:e.batteryForm.remark,callback:function(t){e.$set(e.batteryForm,"remark",t)},expression:"batteryForm.remark"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"图标",prop:"car_icon"}},[n("el-radio-group",{model:{value:e.batteryForm.car_icon,callback:function(t){e.$set(e.batteryForm,"car_icon",t)},expression:"batteryForm.car_icon"}},e._l(e.iconList,function(e,t){return n("el-radio",{key:t,attrs:{label:t}},[n("img",{staticStyle:{width:"28px","vertical-align":"center"},attrs:{src:e.local}})])}))],1),e._v(" "),n("el-form-item",{attrs:{label:"车辆图片",prop:"pledge_money"}},[n("div",{staticClass:"flex-row"},[n("up-image2",{staticStyle:{"margin-right":"15px"},model:{value:e.batteryForm.car_images_str[0],callback:function(t){e.$set(e.batteryForm.car_images_str,0,t)},expression:"batteryForm.car_images_str[0]"}}),e._v(" "),n("up-image2",{staticStyle:{"margin-right":"15px"},model:{value:e.batteryForm.car_images_str[1],callback:function(t){e.$set(e.batteryForm.car_images_str,1,t)},expression:"batteryForm.car_images_str[1]"}}),e._v(" "),n("up-image2",{staticStyle:{"margin-right":"15px"},model:{value:e.batteryForm.car_images_str[2],callback:function(t){e.$set(e.batteryForm.car_images_str,2,t)},expression:"batteryForm.car_images_str[2]"}}),e._v(" "),n("up-image2",{staticStyle:{"margin-right":"15px"},model:{value:e.batteryForm.car_images_str[3],callback:function(t){e.$set(e.batteryForm.car_images_str,3,t)},expression:"batteryForm.car_images_str[3]"}}),e._v(" "),n("up-image2",{model:{value:e.batteryForm.car_images_str[4],callback:function(t){e.$set(e.batteryForm.car_images_str,4,t)},expression:"batteryForm.car_images_str[4]"}})],1)]),e._v(" "),-1!=e.roles.indexOf("is_liniu")?n("el-form-item",{attrs:{label:"满充耗电量",prop:"full_charge_kwh"}},[n("el-input",{staticStyle:{width:"150px"},model:{value:e.batteryForm.full_charge_kwh,callback:function(t){e.$set(e.batteryForm,"full_charge_kwh",t)},expression:"batteryForm.full_charge_kwh"}},[n("template",{slot:"append"},[e._v("KWh")])],2)],1):e._e(),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.addBattery}},[e._v("导入")])],1)],1)],1):e._e(),e._v(" "),-1==e.role?n("el-tab-pane",{attrs:{name:"wx_samll_program",label:"微信小程序"}},["wx_samll_program"===e.activeName?n("xcx-info",{attrs:{"shop-id":e.selectedShopInfo.shop_id+"",role:e.role}}):e._e()],1):e._e(),e._v(" "),-1==e.role?n("el-tab-pane",{attrs:{name:"ali_samll_program",label:"支付宝小程序"}},["ali_samll_program"===e.activeName?n("alipay-info",{attrs:{"shop-id":e.selectedShopInfo.shop_id+"",role:e.role}}):e._e()],1):e._e(),e._v(" "),-1==e.role?n("el-tab-pane",{attrs:{name:"third_party_config",label:"第三方支付配置"}},["third_party_config"===e.activeName?n("third-party-pay",{attrs:{"shop-id":e.selectedShopInfo.shop_id+"",role:e.role}}):e._e()],1):e._e(),e._v(" "),-1==e.role&&e.showTabPane?n("el-tab-pane",{attrs:{name:"xh_config",label:"星恒接口配置"}},["xh_config"===e.activeName?n("cmd-info",{attrs:{"shop-id":e.selectedShopInfo.shop_id+"",role:e.role}}):e._e()],1):e._e(),e._v(" "),-1==e.role?n("el-tab-pane",{attrs:{name:"wx_official",label:"微信公众号"}},["wx_official"===e.activeName?n("off-info",{attrs:{"shop-id":e.selectedShopInfo.shop_id+"",role:e.role}}):e._e()],1):e._e(),e._v(" "),-1==e.role&&e.showTabPane?n("el-tab-pane",{attrs:{name:"wx_boss",label:"微信商家版"}},["wx_boss"===e.activeName?n("boss-info",{attrs:{"shop-id":e.selectedShopInfo.shop_id+"",role:e.role}}):e._e()],1):e._e(),e._v(" "),"shop_manager"==e.userInfo.user_classify&&e.showTabPane?n("el-tab-pane",{attrs:{name:"shop_config",label:"门店配置"}},["shop_config"===e.activeName?n("shop-config-info",{attrs:{"shop-id":e.selectedShopInfo.shop_id+"",role:e.role},on:{submitCanSell:e.clickCanSell}}):e._e()],1):e._e(),e._v(" "),-1==e.role&&e.showTabPane?n("el-tab-pane",{attrs:{name:"system",label:"系统配置"}},["system"===e.activeName?n("system-config-info",{attrs:{"shop-id":e.selectedShopInfo.shop_id+"",role:e.role},on:{submitCanSell:e.clickCanSell}}):e._e()],1):e._e(),e._v(" "),e.showTabPane?n("el-tab-pane",{attrs:{name:"topup",label:"消费/充值"}},["topup"===e.activeName?n("wallet-info",{attrs:{"selected-group":e.selectedShopInfo}}):e._e()],1):e._e()],1)],1)],1),e._v(" "),n("el-dialog",{attrs:{visible:e.dialogFormVisible,"close-on-click-modal":!1,title:"增加门店",top:"2vh",center:"",width:"70%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[n("el-form",{ref:"shopInfo",attrs:{inline:!0,model:e.shopInfo,rules:e.rules,size:"mini","label-position":"right"}},[n("el-form-item",{attrs:{label:"登录账号",prop:"login_name"}},[n("el-input",{attrs:{disabled:!e.isAbleEdit,placeholder:"请填写登录账号"},model:{value:e.shopInfo.login_name,callback:function(t){e.$set(e.shopInfo,"login_name",t)},expression:"shopInfo.login_name"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"登录密码",prop:"login_password"}},[n("el-input",{attrs:{type:"password",placeholder:"请输入登录密码"},model:{value:e.shopInfo.login_password,callback:function(t){e.$set(e.shopInfo,"login_password",t)},expression:"shopInfo.login_password"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"公司名",prop:"company_name"}},[n("el-input",{attrs:{placeholder:"请填写店铺名称"},model:{value:e.shopInfo.company_name,callback:function(t){e.$set(e.shopInfo,"company_name",t)},expression:"shopInfo.company_name"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"店名",prop:"shop_name"}},[n("el-input",{attrs:{placeholder:"请填写店铺名称"},model:{value:e.shopInfo.shop_name,callback:function(t){e.$set(e.shopInfo,"shop_name",t)},expression:"shopInfo.shop_name"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"联系人",prop:"link_user_name"}},[n("el-input",{attrs:{placeholder:"请填写联系人"},model:{value:e.shopInfo.link_user_name,callback:function(t){e.$set(e.shopInfo,"link_user_name",t)},expression:"shopInfo.link_user_name"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"联系电话",prop:"link_phone"}},[n("el-input",{attrs:{placeholder:"填写联系人电话"},model:{value:e.shopInfo.link_phone,callback:function(t){e.$set(e.shopInfo,"link_phone",t)},expression:"shopInfo.link_phone"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"店铺类型",prop:"merchant_type"}},[n("el-cascader",{attrs:{options:e.options,props:{multiple:!0}},on:{change:e.handleChange},model:{value:e.shopInfo.merchant_type,callback:function(t){e.$set(e.shopInfo,"merchant_type",t)},expression:"shopInfo.merchant_type"}})],1),e._v(" "),-1!=e.roles.indexOf("qcapp")?n("el-form-item",{attrs:{label:"店铺场景",prop:"service_scene"}},[n("el-select",{attrs:{placeholder:"请选择店铺场景"},model:{value:e.shopInfo.service_scene,callback:function(t){e.$set(e.shopInfo,"service_scene",t)},expression:"shopInfo.service_scene"}},e._l(e.scene_select,function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1):e._e(),e._v(" "),1==e.userInfo.user_id||5237==e.userInfo.user_id||19037==e.userInfo.user_id||29838==e.userInfo.user_id||14877==e.userInfo.user_id||20494==e.userInfo.user_id||25017==e.userInfo.user_id||18935==e.userInfo.user_id||21334==e.userInfo.user_id?n("el-form-item",{attrs:{label:"门店类型",prop:"day_agent"}},[n("el-select",{attrs:{placeholder:"请选择门店类型"},model:{value:e.shopInfo.day_agent,callback:function(t){e.$set(e.shopInfo,"day_agent",t)},expression:"shopInfo.day_agent"}},[n("el-option",{attrs:{label:"自营商",value:"0"}}),e._v(" "),n("el-option",{attrs:{label:"代理商",value:"1"}})],1)],1):e._e(),e._v(" "),2==e.selectedShopInfo.business_type?n("el-form-item",{attrs:{label:"共享类型",prop:"day_agent"}},[n("el-select",{attrs:{placeholder:"请选择共享类型"},model:{value:e.shopInfo.share_type,callback:function(t){e.$set(e.shopInfo,"share_type",t)},expression:"shopInfo.share_type"}},[n("el-option",{attrs:{label:"非认领",value:"0"}}),e._v(" "),n("el-option",{attrs:{label:"认领",value:"1"}})],1)],1):e._e(),e._v(" "),-1==e.userInfo.role?n("el-form-item",{attrs:{label:"业务类型",prop:"business_type"}},[n("el-select",{attrs:{placeholder:"请选择业务类型"},model:{value:e.shopInfo.business_type,callback:function(t){e.$set(e.shopInfo,"business_type",t)},expression:"shopInfo.business_type"}},e._l(e.options_select,function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"业务区域",prop:"business_area"}},[n("el-select",{attrs:{placeholder:"请选择业务区域"},model:{value:e.shopInfo.business_area,callback:function(t){e.$set(e.shopInfo,"business_area",t)},expression:"shopInfo.business_area"}},e._l(e.bussiness_select,function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),n("el-form-item",{attrs:{label:"服务项目",prop:"vehicle_battery_business_type"}},[n("el-checkbox",{attrs:{"true-label":"1","false-label":"0"},on:{change:function(t){e.handleBusinessType(0)}},model:{value:e.vehicle_battery_type_hire_electricity,callback:function(t){e.vehicle_battery_type_hire_electricity=t},expression:"vehicle_battery_type_hire_electricity"}},[e._v("租电")]),e._v(" "),n("el-checkbox",{attrs:{"true-label":"1","false-label":"0"},on:{change:function(t){e.handleBusinessType(3)}},model:{value:e.vehicle_battery_type_hire_car,callback:function(t){e.vehicle_battery_type_hire_car=t},expression:"vehicle_battery_type_hire_car"}},[e._v("租车")]),e._v(" "),n("el-checkbox",{attrs:{"true-label":"1","false-label":"0"},on:{change:function(t){e.handleBusinessType(5)}},model:{value:e.vehicle_battery_type_can_return_car,callback:function(t){e.vehicle_battery_type_can_return_car=t},expression:"vehicle_battery_type_can_return_car"}},[e._v("可还车")])],1),e._v(" "),n("div",[n("el-form-item",{attrs:{label:"店铺logo",prop:"shop_head"}},[n("up-image2",{attrs:{size:"90"},model:{value:e.shopInfo.shop_head,callback:function(t){e.$set(e.shopInfo,"shop_head",t)},expression:"shopInfo.shop_head"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"店铺照片",prop:"shop_image"}},[n("up-imag-wall",{staticClass:"width",on:{removeImg:e.removeSlideImg},model:{value:e.shopInfo.shop_image,callback:function(t){e.$set(e.shopInfo,"shop_image",t)},expression:"shopInfo.shop_image"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"营业执照",prop:"business_licence"}},[n("up-image2",{attrs:{size:"90"},model:{value:e.shopInfo.business_licence,callback:function(t){e.$set(e.shopInfo,"business_licence",t)},expression:"shopInfo.business_licence"}})],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"运营时间",prop:"intro"}},[n("el-select",{attrs:{multiple:"",placeholder:"请选择星期制"},on:{change:function(t){e.$forceUpdate()}},model:{value:e.shopInfo.workDays,callback:function(t){e.$set(e.shopInfo,"workDays",t)},expression:"shopInfo.workDays"}},e._l(e.dayOptions,function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),n("el-time-picker",{attrs:{clearable:!1,"is-range":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:"选择时间范围"},model:{value:e.time_list,callback:function(t){e.time_list=t},expression:"time_list"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"店铺介绍",prop:"intro"}},[n("el-input",{staticStyle:{width:"750px"},attrs:{type:"textarea",autosize:"",placeholder:"请填写店铺介绍"},model:{value:e.shopInfo.intro,callback:function(t){e.$set(e.shopInfo,"intro",t)},expression:"shopInfo.intro"}})],1),e._v(" "),n("div",[n("el-form-item",{attrs:{label:"店铺地址"}},[n("el-input",{staticStyle:{width:"750px"},attrs:{id:"address_desc",value:e.shopInfo.address,size:"mini",placeholder:"请填写店铺详细地址"},model:{value:e.shopInfo.address,callback:function(t){e.$set(e.shopInfo,"address",t)},expression:"shopInfo.address"}})],1),e._v(" "),n("input",{attrs:{id:"address_longitude",hidden:""},domProps:{value:e.shopInfo.longitude}}),e._v(" "),n("input",{attrs:{id:"address_latitude",hidden:""},domProps:{value:e.shopInfo.latitude}}),e._v(" "),n("input",{attrs:{id:"cityname",hidden:""},domProps:{value:e.shopInfo.cityname}})],1),e._v(" "),n("iframe",{attrs:{id:"mapPage",width:"100%",height:"1000px",frameborder:"0",src:"https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=Q7DBZ-BQH65-MEMIO-Q7LEF-S43Z3-G6B34&referer=new_energy"}})],1),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.addShop}},[e._v("确 定")])],1)],1),e._v(" "),n("el-dialog",{attrs:{visible:e.dialogTransferFormVisible,"close-on-click-modal":!1,title:"批量转移",top:"5vh"},on:{"update:visible":function(t){e.dialogTransferFormVisible=t}}},[n("div",{staticClass:"group-form"},[n("div",{staticClass:"form-item"},[n("div",{staticClass:"f-item-label"},[e._v("转移门店")]),e._v(" "),n("div",{staticClass:"f-item-value user-list-tree"},[n("el-row",{staticClass:"flex-row flex-between"},[n("el-input",{directives:[{name:"loading",rawName:"v-loading",value:e.mainShopTreeLoading,expression:"mainShopTreeLoading"}],staticStyle:{width:"100%"},attrs:{placeholder:"请选择",size:"mini",clearable:""},on:{clear:function(t){e.transferUserInfo={}},focus:e.clickInputSelectUser},model:{value:e.filterTransferUserTreeName,callback:function(t){e.filterTransferUserTreeName=t},expression:"filterTransferUserTreeName"}}),e._v(" "),n("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"success",size:"mini",icon:"el-icon-search"},on:{click:e.handleSearchTransferShopList}},[e._v("搜索\n ")])],1),e._v(" "),n("div",{staticClass:"tree-pannel",style:e.userTreeShow?"visibility:visible":"visibility:hidden"},[n("el-tree",{directives:[{name:"loading",rawName:"v-loading",value:e.transferTreeLoading,expression:"transferTreeLoading"}],ref:"treeData",attrs:{data:e.showTransferTreeData,load:e.loadNode,"expand-on-click-node":!1,props:e.defaultProps,"highlight-current":!0,"default-expanded-keys":e.treeDataIds,"filter-node-method":e.filterShopTreeNode,"element-loading-spinner":"el-icon-loading","node-key":"shop_id",draggable:""},on:{"node-click":e.selectedTransferUser,"node-expand":e.handleUserNodeExpand},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.node,i=t.data;return n("span",{staticClass:"custom-tree-node"},[n("span",[e._v(e._s(a.label)+"["+e._s(i.direct-0)+"/"+e._s(i.total-0)+"]")])])}}])})],1)],1)]),e._v(" "),n("div",{staticClass:"form-item"},[n("div",{staticClass:"f-item-label"},[e._v("强制转移")]),e._v(" "),n("div",{staticClass:"f-item-value"},[n("el-checkbox",{model:{value:e.forcedTransfer,callback:function(t){e.forcedTransfer=t},expression:"forcedTransfer"}}),e._v(" "),n("span",{staticStyle:{color:"#F56C6C"}},[e._v(" * 电池绑定用户是否允许转移")])],1)]),e._v(" "),n("div",{staticClass:"form-item"},[n("div",{staticClass:"f-item-label"},[e._v("新增设备")]),e._v(" "),n("div",{staticClass:"f-item-value",staticStyle:{width:"100%","margin-top":"10px"}},[n("div",{staticClass:"flex-row",staticStyle:{"align-items":"stretch"}},[n("el-input",{staticStyle:{width:"50%"},attrs:{rows:3,type:"textarea",placeholder:"一行一个编号",mini:"size"},model:{value:e.transferInputBatteryStr,callback:function(t){e.transferInputBatteryStr=t},expression:"transferInputBatteryStr"}}),e._v(" "),n("div",{staticClass:"flex-column",staticStyle:{"align-items":"flex-start","justify-content":"space-between","margin-left":"10px"}},[n("span",{staticStyle:{color:"#F56C6C"}},[e._v(" * 设备编号,支持单个或批量,一行一个编号")]),e._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:e.transferAddLoading,expression:"transferAddLoading"}],attrs:{type:"warning",size:"mini",plain:""},on:{click:e.handleInputTransfer}},[e._v("\n 新增")])],1)],1)])]),e._v(" "),n("div",{staticClass:"form-item",staticStyle:{"flex-direction":"column","align-items":"flex-start"}},[n("div",{staticClass:"f-item-label"},[e._v("设备信息 (共"+e._s(e.transferBatteryList.length)+"个设备)")]),e._v(" "),n("div",{staticClass:"f-item-value",staticStyle:{width:"100%","margin-top":"10px"}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.transferBatteryList,"highlight-current-row":!0,stripe:"",border:"",size:"mini","max-height":"250"}},[n("el-table-column",{attrs:{prop:"gpsbms_name",label:"电池名称"}}),e._v(" "),n("el-table-column",{attrs:{prop:"battery_sn",label:"电池编号"}}),e._v(" "),n("el-table-column",{attrs:{prop:"battery_type_name",label:"电池型号"}}),e._v(" "),n("el-table-column",{attrs:{prop:"shop_name",label:"所属门店"}}),e._v(" "),n("el-table-column",{attrs:{"render-header":e.icons,align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){e.toDelTransferBattery(t.row.battery_sn)}}},[e._v("删除\n ")])]}}])})],1)],1)])]),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogTransferFormVisible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.handTransferBattery}},[e._v("转移")])],1)]),e._v(" "),n("el-dialog",{attrs:{visible:e.dialogBatchEditBatteryFormVisible,"close-on-click-modal":!1,title:"设备批量修改",top:"5vh"},on:{"update:visible":function(t){e.dialogBatchEditBatteryFormVisible=t}}},[n("el-form",{ref:"batchEditBatteryForm",staticStyle:{"margin-left":"50px"},attrs:{model:e.batchEditBatteryForm,"label-position":"left","label-width":"160px",size:"small"}},[n("el-form-item",{attrs:{label:"所属门店",prop:"admin_id"}},[n("span",[e._v(e._s(e.selectedShopInfo.shop_name))])]),e._v(" "),n("el-form-item",{attrs:{label:"设备信息",prop:"car_icon"}},[n("el-input",{staticStyle:{width:"50%"},attrs:{rows:3,type:"textarea",placeholder:"一行一个ID",mini:"size"},on:{input:e.handleBatchSNStrNum},model:{value:e.batchEditBatteryForm.battery_sn_str,callback:function(t){e.$set(e.batchEditBatteryForm,"battery_sn_str",t)},expression:"batchEditBatteryForm.battery_sn_str"}}),e._v(" "),n("br"),e._v(" "),n("span",[e._v(e._s("当前选择"+e.batterySnLen+"设备"))]),e._v(" "),n("br"),e._v(" "),n("span",{staticStyle:{color:"#F56C6C"}},[e._v(" * 设备编号,支持单个或批量,一行一个编号")])],1),e._v(" "),n("el-form-item",{attrs:{label:"品牌",prop:"battery_brand"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"",size:"mini"},model:{value:e.batchEditBatteryForm.battery_brand,callback:function(t){e.$set(e.batchEditBatteryForm,"battery_brand",t)},expression:"batchEditBatteryForm.battery_brand"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"型号",prop:"battery_type_id"}},[n("el-input-number",{staticStyle:{width:"100px"},attrs:{min:1,max:1e3,label:"",size:"mini","controls-position":"right"},model:{value:e.batchEditBatteryForm.battery_type_v,callback:function(t){e.$set(e.batchEditBatteryForm,"battery_type_v",t)},expression:"batchEditBatteryForm.battery_type_v"}}),e._v(" V\n "),n("el-input-number",{staticStyle:{width:"100px"},attrs:{min:1,max:1e3,label:"",size:"mini","controls-position":"right"},model:{value:e.batchEditBatteryForm.battery_type_a,callback:function(t){e.$set(e.batchEditBatteryForm,"battery_type_a",t)},expression:"batchEditBatteryForm.battery_type_a"}}),e._v(" AH\n ")],1),e._v(" "),n("el-form-item",{attrs:{label:"设备类型",prop:"third_device_type"}},[n("el-select",{attrs:{disabled:!(1==e.userInfo.user_id),size:"mini",placeholder:"请选择"},model:{value:e.batchEditBatteryForm.third_device_type,callback:function(t){e.$set(e.batchEditBatteryForm,"third_device_type",t)},expression:"batchEditBatteryForm.third_device_type"}},e._l(e.thirdDeviceTypeList,function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})}))],1),e._v(" "),n("el-form-item",{attrs:{label:"蓝牙类型",prop:"bt_type"}},[n("el-select",{attrs:{disabled:-1!=e.role,size:"mini",placeholder:"请选择"},model:{value:e.batchEditBatteryForm.bt_type,callback:function(t){e.$set(e.batchEditBatteryForm,"bt_type",t)},expression:"batchEditBatteryForm.bt_type"}},e._l(e.btList,function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})}))],1),e._v(" "),"ZXBTS"==e.batchEditBatteryForm.bt_type||"LSBTS"==e.batchEditBatteryForm.bt_type?n("el-form-item",{attrs:{label:"波特率",prop:"bt_type"}},[n("el-select",{attrs:{disabled:-1!=e.role,size:"mini",placeholder:"请选择"},model:{value:e.batchEditBatteryForm.bps,callback:function(t){e.$set(e.batchEditBatteryForm,"bps",t)},expression:"batchEditBatteryForm.bps"}},e._l(e.baudList,function(e,t){return n("el-option",{key:e,attrs:{label:e,value:e}})}))],1):e._e(),e._v(" "),12320==e.userInfo.user_id?n("el-form-item",{attrs:{label:"设备用途",prop:"used "}},[n("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:e.batchEditBatteryForm.used,callback:function(t){e.$set(e.batchEditBatteryForm,"used",t)},expression:"batchEditBatteryForm.used"}},[n("el-option",{attrs:{label:"储能",value:"1"}}),e._v(" "),n("el-option",{attrs:{label:"动力",value:"2"}})],1)],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"电芯",prop:"cell_type"}},[n("el-autocomplete",{attrs:{"fetch-suggestions":e.cellQuerySearch,placeholder:""},model:{value:e.batchEditBatteryForm.cell_type,callback:function(t){e.$set(e.batchEditBatteryForm,"cell_type",t)},expression:"batchEditBatteryForm.cell_type"}})],1),e._v(" "),-1==e.userInfo.role?n("el-form-item",{attrs:{label:"BMS保护板",prop:"bms_type"}},[n("el-autocomplete",{attrs:{"fetch-suggestions":e.bmsQuerySearch,placeholder:""},model:{value:e.batchEditBatteryForm.bms_type,callback:function(t){e.$set(e.batchEditBatteryForm,"bms_type",t)},expression:"batchEditBatteryForm.bms_type"}})],1):n("el-form-item",{attrs:{label:"BMS保护板"}},[n("label",[e._v(" "+e._s(e.batchEditBatteryForm.bms_type)+" ")])]),e._v(" "),-1==e.userInfo.role?n("el-form-item",{attrs:{label:"保护板属性",prop:"bms_hard_attr"}},[n("el-cascader",{attrs:{options:e.bmsHardAttrList,props:{expandTrigger:"hover"},clearable:""},model:{value:e.batchEditBatteryForm.bms_hard_attr,callback:function(t){e.$set(e.batchEditBatteryForm,"bms_hard_attr",t)},expression:"batchEditBatteryForm.bms_hard_attr"}})],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"生产日期",prop:"product_time"}},[n("el-date-picker",{attrs:{size:"mini",type:"datetime",placeholder:"选择日期"},model:{value:e.batchEditBatteryForm.product_time,callback:function(t){e.$set(e.batchEditBatteryForm,"product_time",t)},expression:"batchEditBatteryForm.product_time"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"\n ",prop:"voltage_quantity"}},[n("el-checkbox",{attrs:{value:null!=e.batchEditBatteryForm.voltage_quantity},on:{change:function(t){e.batchEditBatteryForm.voltage_quantity=t?{bunch:1,list:[]}:null}}},[e._v("\n 电量校准")]),e._v(" "),null!=e.batchEditBatteryForm.voltage_quantity?n("div",[e._v("\n 电池串数 \n "),n("el-input-number",{staticStyle:{width:"120px"},attrs:{min:1,label:"",size:"mini","controls-position":"right"},model:{value:e.batchEditBatteryForm.voltage_quantity.bunch,callback:function(t){e.$set(e.batchEditBatteryForm.voltage_quantity,"bunch",t)},expression:"batchEditBatteryForm.voltage_quantity.bunch"}}),e._v(" "),n("el-button",{attrs:{icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.batchEditBatteryForm.voltage_quantity.list.push({quantity:0,voltage:""})}}},[e._v("添加校准值")]),e._v(" "),e._l(e.batchEditBatteryForm.voltage_quantity.list,function(t,a){return n("div",{key:a,staticStyle:{"margin-top":"5px"}},[n("el-input-number",{staticStyle:{width:"90px"},attrs:{min:0,max:100,size:"mini","controls-position":"right"},model:{value:t.quantity,callback:function(a){e.$set(t,"quantity",a)},expression:"item.quantity"}}),e._v(" % = \n "),n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:t.voltage,callback:function(a){e.$set(t,"voltage",a)},expression:"item.voltage"}}),e._v(" V \n "),n("el-button",{attrs:{icon:"el-icon-delete",size:"mini",round:""},on:{click:function(t){e.batchEditBatteryForm.voltage_quantity.list.splice(a,1)}}})],1)})],2):e._e()],1),e._v(" "),n("el-form-item",{attrs:{label:"剩余里程校准",prop:"quantity_mil_config"}},[n("el-checkbox",{attrs:{value:null!=e.batchEditBatteryForm.quantity_mil_config},on:{change:function(t){e.batchEditBatteryForm.quantity_mil_config=t?[]:null}}},[e._v("\n 里程校准")]),e._v(" "),null!=e.batchEditBatteryForm.quantity_mil_config?n("div",[n("el-button",{attrs:{icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.batchEditBatteryForm.quantity_mil_config.push({quantity:0,mil:""})}}},[e._v("添加校准值 (电量=里程)")]),e._v(" "),e._l(e.batchEditBatteryForm.quantity_mil_config,function(t,a){return n("div",{key:a,staticStyle:{"margin-top":"5px"}},[n("el-input-number",{staticStyle:{width:"90px"},attrs:{min:0,max:100,size:"mini","controls-position":"right"},model:{value:t.quantity,callback:function(a){e.$set(t,"quantity",a)},expression:"item.quantity"}}),e._v(" % = \n "),n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:t.mil,callback:function(a){e.$set(t,"mil",a)},expression:"item.mil"}}),e._v(" Km \n "),n("el-button",{attrs:{icon:"el-icon-delete",size:"mini",round:""},on:{click:function(t){e.batchEditBatteryForm.quantity_mil_config.splice(a,1)}}})],1)})],2):e._e()],1),e._v(" "),n("el-form-item",{attrs:{label:"里程修正比例",prop:"cell_type"}},[n("el-input-number",{attrs:{step:1,min:-99,max:99,"step-strictly":""},model:{value:e.batchEditBatteryForm.mil_ratio,callback:function(t){e.$set(e.batchEditBatteryForm,"mil_ratio",t)},expression:"batchEditBatteryForm.mil_ratio"}}),e._v(" %\n ")],1),e._v(" "),e.selectedShopInfo.business_type<2?n("div",[n("el-form-item",{attrs:{label:"租赁类型",prop:"hire_type"}},[n("el-radio-group",{model:{value:e.batchEditBatteryForm.hire_type,callback:function(t){e.$set(e.batchEditBatteryForm,"hire_type",t)},expression:"batchEditBatteryForm.hire_type"}},[n("el-radio",{attrs:{label:1}},[e._v("普通租赁")]),e._v(" "),n("el-radio",{attrs:{label:2}},[e._v("以租代售")])],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"业务类型",prop:"battery_business_type"}},[n("el-radio-group",{on:{change:e.change_hire_duration_unit},model:{value:e.batchEditBatteryForm.battery_business_type,callback:function(t){e.$set(e.batchEditBatteryForm,"battery_business_type",t)},expression:"batchEditBatteryForm.battery_business_type"}},[n("el-radio",{attrs:{label:"0"}},[e._v("租电")]),e._v(" "),n("el-radio",{attrs:{label:"1"}},[e._v("租车")])],1)],1),e._v(" "),0==e.batchEditBatteryForm.battery_business_type?n("el-form-item",{attrs:{label:"是否收取换电功能费用",prop:"exchange_function_status"}},[n("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini"},model:{value:e.batchEditBatteryForm.exchange_function_status,callback:function(t){e.$set(e.batchEditBatteryForm,"exchange_function_status",t)},expression:"batchEditBatteryForm.exchange_function_status"}},[n("el-option",{attrs:{label:"不收取",value:"0"}}),e._v(" "),n("el-option",{attrs:{label:"收取",value:"1"}})],1),e._v(" "),n("span",{staticStyle:{color:"#f56c6c","margin-left":"5px"}},[e._v("请升级微信小程序至4.1.20220114以后版本")])],1):e._e(),e._v(" "),1==e.batchEditBatteryForm.exchange_function_status&&0==e.batchEditBatteryForm.battery_business_type?n("el-form-item",{staticClass:"function1",staticStyle:{"margin-left":"70px"},attrs:{label:"收取费用",prop:"pledge_money"}},[n("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入换电功能费",size:"mini"},model:{value:e.batchEditBatteryForm.exchange_function_fee,callback:function(t){e.$set(e.batchEditBatteryForm,"exchange_function_fee",t)},expression:"batchEditBatteryForm.exchange_function_fee"}}),e._v(" 元\n ")],1):e._e(),e._v(" "),1==e.batchEditBatteryForm.hire_type?n("el-form-item",{attrs:{label:"合同时长",prop:"hire_sell_duration"}},[n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0",size:"mini"},model:{value:e.batchEditBatteryForm.hire_normal_duration,callback:function(t){e.$set(e.batchEditBatteryForm,"hire_normal_duration",t)},expression:"batchEditBatteryForm.hire_normal_duration"}}),e._v("\n 月 "),n("span",{staticClass:"tips"})],1):e._e(),e._v(" "),2==e.batchEditBatteryForm.hire_type?n("el-form-item",{attrs:{label:"以租代售时长",prop:"hire_sell_duration"}},[n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0",size:"mini"},model:{value:e.batchEditBatteryForm.hire_sell_duration,callback:function(t){e.$set(e.batchEditBatteryForm,"hire_sell_duration",t)},expression:"batchEditBatteryForm.hire_sell_duration"}}),e._v("\n 月\n "),n("span",{staticClass:"tips"},[e._v("如,租满12个月后归用户所有")])],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"押金",prop:"pledge_money"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.batchEditBatteryForm.pledge_money,callback:function(t){e.$set(e.batchEditBatteryForm,"pledge_money",t)},expression:"batchEditBatteryForm.pledge_money"}}),e._v("\n 元\n ")],1),e._v(" "),n("el-form-item",{attrs:{label:"单价",prop:"hire_price"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.batchEditBatteryForm.hire_price,callback:function(t){e.$set(e.batchEditBatteryForm,"hire_price",t)},expression:"batchEditBatteryForm.hire_price"}}),e._v(" "),n("span",[e._v("元 / ")]),e._v(" "),n("el-input",{staticStyle:{width:"80px"},attrs:{oninput:"if(value<=0)value=1",placeholder:"",size:"mini"},model:{value:e.batchEditBatteryForm.hire_cycle,callback:function(t){e.$set(e.batchEditBatteryForm,"hire_cycle",t)},expression:"batchEditBatteryForm.hire_cycle"}}),e._v(" "),0==e.batchEditBatteryForm.battery_business_type?n("el-select",{staticStyle:{width:"80px"},attrs:{filterable:"",size:"mini"},model:{value:e.batchEditBatteryForm.hire_duration_unit,callback:function(t){e.$set(e.batchEditBatteryForm,"hire_duration_unit",t)},expression:"batchEditBatteryForm.hire_duration_unit"}},[n("el-option",{attrs:{label:"天",value:"1"}}),e._v(" "),n("el-option",{attrs:{label:"个月",value:"2"}}),e._v(" "),n("el-option",{attrs:{label:"年",value:"3"}}),e._v(" "),n("el-option",{attrs:{label:"小时",value:"4"}}),e._v(" "),n("el-option",{attrs:{label:"分钟",value:"5"}}),e._v(" "),n("el-option",{attrs:{label:"周",value:"6"}})],1):e._e(),e._v(" "),1==e.batchEditBatteryForm.battery_business_type?n("el-select",{staticStyle:{width:"80px"},attrs:{filterable:"",size:"mini"},on:{change:e.change_hire_duration_unit},model:{value:e.batchEditBatteryForm.hire_duration_unit,callback:function(t){e.$set(e.batchEditBatteryForm,"hire_duration_unit",t)},expression:"batchEditBatteryForm.hire_duration_unit"}},[n("el-option",{attrs:{label:"天",value:"1"}}),e._v(" "),n("el-option",{attrs:{label:"个月",value:"2"}}),e._v(" "),n("el-option",{attrs:{label:"年",value:"3"}}),e._v(" "),n("el-option",{attrs:{label:"小时",value:"4"}}),e._v(" "),n("el-option",{attrs:{label:"分钟",value:"5"}}),e._v(" "),n("el-option",{attrs:{label:"周",value:"6"}})],1):e._e(),e._v(" "),2==e.batchEditBatteryForm.hire_type?n("span",{staticClass:"tips"},[e._v(" 以租代售时,每个付款周期支付的费用")]):e._e()],1),e._v(" "),0==e.batchEditBatteryForm.battery_business_type?n("el-form-item",{attrs:{label:"换电原价",prop:"originate_exchange_price"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.batchEditBatteryForm.originate_exchange_price,callback:function(t){e.$set(e.batchEditBatteryForm,"originate_exchange_price",t)},expression:"batchEditBatteryForm.originate_exchange_price"}}),e._v(" "),n("span",[e._v("元")]),n("span",{staticClass:"minfondsize"},[e._v("(页面展示初始换电原价)")]),e._v(" "),n("span",{staticStyle:{color:"#f56c6c"}},[e._v(" 需要升级小程序至最新版本")])],1):e._e(),e._v(" "),0==e.batchEditBatteryForm.battery_business_type?n("el-form-item",{attrs:{label:"换电优惠价",prop:"exchange_price"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.batchEditBatteryForm.exchange_price,callback:function(t){e.$set(e.batchEditBatteryForm,"exchange_price",t)},expression:"batchEditBatteryForm.exchange_price"}}),e._v(" "),n("span",[e._v("元")]),n("span",{staticClass:"minfondsize"},[e._v("(客户实际支付的换电优惠价)")]),e._v(" "),n("span",{staticStyle:{color:"#f56c6c"}},[e._v(" 需要升级小程序至最新版本")])],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"换电时匹对价格",prop:"is_price_same"}},[n("el-radio-group",{model:{value:e.batchEditBatteryForm.is_price_same,callback:function(t){e.$set(e.batchEditBatteryForm,"is_price_same",t)},expression:"batchEditBatteryForm.is_price_same"}},[n("el-radio",{attrs:{label:1}},[e._v("匹对")]),e._v(" "),n("el-radio",{attrs:{label:2}},[e._v("不匹对")])],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"优惠价",prop:"hire_discount"}},[n("el-button",{attrs:{disabled:!e.batchEditHireDiscountchecked,icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.batchEditBatteryForm.hire_discount.push({num:1,price:e.batchEditBatteryForm.hire_price})}}},[e._v("添加优惠价\n ")]),e._v(" "),e.batchEditBatteryForm.hire_discount&&0!=e.batchEditBatteryForm.hire_discount.length?n("el-form-item",{staticStyle:{"margin-top":"10px"},attrs:{label:"",prop:"hire_discount_only_new","label-width":"0px"}},[n("el-checkbox",{model:{value:e.batchEditBatteryForm.hire_discount_only_new,callback:function(t){e.$set(e.batchEditBatteryForm,"hire_discount_only_new",t)},expression:"batchEditBatteryForm.hire_discount_only_new"}},[e._v("仅对首租优惠")]),e._v(" "),n("span",{staticStyle:{color:"#f56c6c"}},[e._v(" 需要升级小程序至4.1.20220704版本")])],1):e._e(),e._v(" "),n("el-checkbox",{on:{change:function(t){e.batchEditBatteryForm.hire_discount=[]}},model:{value:e.batchEditHireDiscountchecked,callback:function(t){e.batchEditHireDiscountchecked=t},expression:"batchEditHireDiscountchecked"}},[e._v("修改\n ")]),e._v(" "),e.batchEditBatteryForm.hire_discount&&0!=e.batchEditBatteryForm.hire_discount.length?n("el-popover",{attrs:{placement:"right",trigger:"click"}},[e.batchEditBatteryForm.hire_price&&/^\d+\.?\d{0,2}$/.test(e.batchEditBatteryForm.hire_price)?e.payTestChecked?n("el-form",{attrs:{"label-position":"right","label-width":"120px",size:"small"}},[n("el-form-item",{attrs:{label:"用户预租赁时长"}},[n("el-input",{staticStyle:{width:"100px"},attrs:{placeholder:"0.00",maxlength:"5",size:"mini"},model:{value:e.payNum,callback:function(t){e.payNum=t},expression:"payNum"}}),e._v("\n 个周期\n ")],1),e._v(" "),n("el-form-item",{attrs:{label:"用户租赁金额"}},[e._v("\n "+e._s(e.payTest(e.payNum,e.batchEditBatteryForm.hire_price,e.batchEditBatteryForm.hire_discount).toFixed(2))+"\n 元\n ")]),e._v(" "),n("el-form-item",{attrs:{label:"相当于"}},[e._v("\n "+e._s((e.payTest(e.payNum,e.batchEditBatteryForm.hire_price,e.batchEditBatteryForm.hire_discount)/e.payNum).toFixed(2))+"\n 元/周期\n ")]),e._v(" "),n("el-form-item",{attrs:{label:"立省"}},[e._v("\n "+e._s((e.batchEditBatteryForm.hire_price*e.payNum-e.payTest(e.payNum,e.batchEditBatteryForm.hire_price,e.batchEditBatteryForm.hire_discount)).toFixed(2))+"\n 元\n ")]),e._v(" "),n("div",{staticStyle:{width:"100%",color:"#FF0000"}},[e._v("注意:小程序更新至3.4.8版本后,")]),e._v(" "),n("div",{staticStyle:{width:"100%",color:"#FF0000"}},[e._v("\n 才可使用优惠价付款")])],1):n("el-tag",{attrs:{type:"danger"}},[e._v("优惠价设置有误")]):n("el-tag",{attrs:{type:"danger"}},[e._v("单价设置有误")]),e._v(" "),n("el-button",{staticStyle:{"margin-bottom":"10px"},attrs:{slot:"reference",type:"primary",size:"mini"},on:{click:function(t){e.payTest(0,0,e.batchEditBatteryForm.hire_discount)}},slot:"reference"},[e._v("用户租金计算器")])],1):e._e(),e._v(" "),e.batchEditBatteryForm.hire_discount&&0!=e.batchEditBatteryForm.hire_discount.length?n("div",[n("label",[e._v("截止时间")]),e._v(" "),n("el-date-picker",{attrs:{size:"mini",type:"datetime",placeholder:"选择截止时间"},model:{value:e.batchEditBatteryForm.hire_discount_end_time,callback:function(t){e.$set(e.batchEditBatteryForm,"hire_discount_end_time",t)},expression:"batchEditBatteryForm.hire_discount_end_time"}})],1):e._e(),e._v(" "),e._l(e.batchEditBatteryForm.hire_discount,function(t,a){return n("div",{key:a},[n("el-input-number",{staticStyle:{width:"80px"},attrs:{min:1,size:"mini","controls-position":"right"},model:{value:t.num,callback:function(a){e.$set(t,"num",a)},expression:"item.num"}}),e._v("\n 个周期\n "),n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:t.price,callback:function(a){e.$set(t,"price",a)},expression:"item.price"}}),e._v(" 元\n "),n("el-tag",{attrs:{type:"danger"}},[e._v("相当于"+e._s((t.price/t.num).toFixed(2))+"元/周期")]),e._v(" "),n("el-button",{attrs:{icon:"el-icon-delete",size:"mini",round:""},on:{click:function(t){e.batchEditBatteryForm.hire_discount.splice(a,1)}}})],1)})],2),e._v(" "),n("el-form-item",{attrs:{label:"续费优惠",prop:"renew_discount"}},[n("el-button",{attrs:{disabled:!e.batchEditRenewDiscountchecked,icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.batchEditBatteryForm.renew_discount.push({day:1,dis:0})}}},[e._v("添加续费优惠")]),e._v(" "),n("el-checkbox",{on:{change:function(t){e.batchEditBatteryForm.renew_discount=[]}},model:{value:e.batchEditRenewDiscountchecked,callback:function(t){e.batchEditRenewDiscountchecked=t},expression:"batchEditRenewDiscountchecked"}},[e._v("修改\n ")]),e._v(" "),e.batchEditBatteryForm.renew_discount&&0!=e.batchEditBatteryForm.renew_discount.length?n("div",[n("label",[e._v("截止时间")]),e._v(" "),n("el-date-picker",{attrs:{size:"mini",type:"datetime",placeholder:"选择截止时间"},model:{value:e.batchEditBatteryForm.renew_discount_end_time,callback:function(t){e.$set(e.batchEditBatteryForm,"renew_discount_end_time",t)},expression:"batchEditBatteryForm.renew_discount_end_time"}})],1):e._e(),e._v(" "),e._l(e.batchEditBatteryForm.renew_discount,function(t,a){return n("div",{key:a,staticStyle:{"margin-top":"5px"}},[e._v("\n 提前\n "),n("el-input-number",{staticStyle:{width:"100px"},attrs:{min:1,size:"mini","controls-position":"right"},model:{value:t.day,callback:function(a){e.$set(t,"day",a)},expression:"item.day"}}),e._v("\n 天续费优惠\n "),n("el-input-number",{staticStyle:{width:"100px"},attrs:{min:0,max:100,precision:2,step:.1,size:"mini","controls-position":"right"},model:{value:t.dis,callback:function(a){e.$set(t,"dis",a)},expression:"item.dis"}}),e._v(" %\n "),n("el-button",{attrs:{icon:"el-icon-delete",size:"mini",round:""},on:{click:function(t){e.batchEditBatteryForm.renew_discount.splice(a,1)}}})],1)})],2),e._v(" "),-1!=e.roles.indexOf("change_device_pay_with_pledge")?n("el-form-item",{attrs:{label:"支付方式",prop:"pay_with_pledge"}},[n("el-select",{attrs:{disabled:!("device"in e.authList&&e.authList.device.list.change_device_pay_with_pledge.value||e.authList.device.list.device_edit.value),filterable:"",size:"mini"},model:{value:e.batchEditBatteryForm.pay_with_pledge,callback:function(t){e.$set(e.batchEditBatteryForm,"pay_with_pledge",t)},expression:"batchEditBatteryForm.pay_with_pledge"}},[n("el-option",{attrs:{label:"仅支付租金",value:"1"}}),e._v(" "),n("el-option",{attrs:{label:"同时支付租金和押金",value:"2"}})],1)],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"合作伙伴分账",prop:"is_share_member"}},[n("el-checkbox",{model:{value:e.batchEditBatteryForm.is_share_member,callback:function(t){e.$set(e.batchEditBatteryForm,"is_share_member",t)},expression:"batchEditBatteryForm.is_share_member"}},[e._v("是")])],1),e._v(" "),e.batchEditBatteryForm.is_share_member?n("el-form-item",{attrs:{label:"分账类型",prop:"share_member_type"}},[n("el-radio-group",{model:{value:e.batchEditBatteryForm.share_member_type,callback:function(t){e.$set(e.batchEditBatteryForm,"share_member_type",t)},expression:"batchEditBatteryForm.share_member_type"}},[n("el-radio",{attrs:{label:1}},[e._v("按比例分账")]),e._v(" "),n("el-radio",{attrs:{label:2}},[e._v("按固定金额")])],1)],1):e._e(),e._v(" "),1===e.batchEditBatteryForm.share_member_type&&e.batchEditBatteryForm.is_share_member?[n("el-form-item",{attrs:{label:"租金分账比例",prop:"member_hire_price_ratio"}},[n("el-input-number",{attrs:{min:0,max:100,size:"mini"},model:{value:e.batchEditBatteryForm.member_hire_price_ratio,callback:function(t){e.$set(e.batchEditBatteryForm,"member_hire_price_ratio",t)},expression:"batchEditBatteryForm.member_hire_price_ratio"}}),e._v("\n %\n ")],1)]:e._e(),e._v(" "),2===e.batchEditBatteryForm.share_member_type&&e.batchEditBatteryForm.is_share_member?[n("el-form-item",{attrs:{label:"租金分账金额",prop:"member_hire_money"}},[n("el-input-number",{attrs:{min:0,max:2e4,size:"mini"},model:{value:e.batchEditBatteryForm.member_hire_money,callback:function(t){e.$set(e.batchEditBatteryForm,"member_hire_money",t)},expression:"batchEditBatteryForm.member_hire_money"}}),e._v(" 元\n ")],1)]:e._e()],2):2==e.selectedShopInfo.business_type?n("div",[n("el-form-item",{attrs:{label:"业务类型",prop:"battery_business_type"}},[n("el-radio-group",{model:{value:e.batchEditBatteryForm.battery_business_type,callback:function(t){e.$set(e.batchEditBatteryForm,"battery_business_type",t)},expression:"batchEditBatteryForm.battery_business_type"}},[n("el-radio",{attrs:{label:"0"}},[e._v("租电")]),e._v(" "),n("el-radio",{attrs:{label:"1"}},[e._v("租车")])],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"计费方式",prop:"last_minutes"}},[e._v("\n 前 \n "),n("el-input",{staticStyle:{width:"60px"},attrs:{placeholder:"0",size:"mini"},model:{value:e.batchEditBatteryForm.last_minutes,callback:function(t){e.$set(e.batchEditBatteryForm,"last_minutes",t)},expression:"batchEditBatteryForm.last_minutes"}}),e._v("\n "+e._s(1==e.batchEditBatteryForm.share_unit?"小时":"分钟")+"\n "),n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.batchEditBatteryForm.last_price,callback:function(t){e.$set(e.batchEditBatteryForm,"last_price",t)},expression:"batchEditBatteryForm.last_price"}}),e._v(" 元,\n 超出后 \n "),n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.batchEditBatteryForm.minute_price,callback:function(t){e.$set(e.batchEditBatteryForm,"minute_price",t)},expression:"batchEditBatteryForm.minute_price"}}),e._v("\n 元每\n "),n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"",size:"mini"},model:{value:e.batchEditBatteryForm.share_cycle,callback:function(t){e.$set(e.batchEditBatteryForm,"share_cycle",t)},expression:"batchEditBatteryForm.share_cycle"}}),e._v(" "),n("el-select",{staticStyle:{width:"80px"},attrs:{filterable:"",size:"mini"},model:{value:e.batchEditBatteryForm.share_unit,callback:function(t){e.$set(e.batchEditBatteryForm,"share_unit",t)},expression:"batchEditBatteryForm.share_unit"}},[n("el-option",{attrs:{value:0,label:"分钟"}}),e._v(" "),n("el-option",{attrs:{value:1,label:"小时"}})],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"计费上限",prop:"share_discount"}},[n("el-button",{attrs:{disabled:!e.batchEditShareDiscountchecked,icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.batchEditBatteryForm.share_discount.push({num:1,price:""})}}},[e._v("添加上限")]),e._v(" "),n("el-checkbox",{on:{change:function(t){e.batchEditBatteryForm.share_discount=[]}},model:{value:e.batchEditShareDiscountchecked,callback:function(t){e.batchEditShareDiscountchecked=t},expression:"batchEditShareDiscountchecked"}},[e._v("修改\n ")]),e._v(" "),e._l(e.batchEditBatteryForm.share_discount,function(t,a){return n("div",{key:a,staticStyle:{"margin-top":"5px"}},[n("el-input-number",{staticStyle:{width:"150px"},attrs:{min:1,size:"mini","controls-position":"right"},model:{value:t.num,callback:function(a){e.$set(t,"num",a)},expression:"item.num"}}),e._v("\n "+e._s(1==e.batchEditBatteryForm.share_unit?"小时":"分钟")+"\n "),n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:t.price,callback:function(a){e.$set(t,"price",a)},expression:"item.price"}}),e._v(" 元\n "),n("el-button",{attrs:{icon:"el-icon-delete",size:"mini",round:""},on:{click:function(t){e.batchEditBatteryForm.share_discount.splice(a,1)}}})],1)})],2)],1):e._e(),e._v(" "),n("div",[n("el-form-item",{attrs:{label:"出售价格",prop:"sell_price"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.batchEditBatteryForm.sell_price,callback:function(t){e.$set(e.batchEditBatteryForm,"sell_price",t)},expression:"batchEditBatteryForm.sell_price"}}),e._v(" "),n("span",[e._v("元")]),e._v(" "),n("span",[e._v(" 需要开通锂助手")])],1),e._v(" "),n("el-form-item",{attrs:{label:"出售保修期",prop:"guarantee_day"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.batchEditBatteryForm.guarantee_day,callback:function(t){e.$set(e.batchEditBatteryForm,"guarantee_day",t)},expression:"batchEditBatteryForm.guarantee_day"}}),e._v(" "),n("el-select",{staticStyle:{width:"80px"},attrs:{filterable:"",size:"mini"},model:{value:e.batchEditBatteryForm.guarantee_unit,callback:function(t){e.$set(e.batchEditBatteryForm,"guarantee_unit",t)},expression:"batchEditBatteryForm.guarantee_unit"}},[n("el-option",{attrs:{label:"天",value:"1"}}),e._v(" "),n("el-option",{attrs:{label:"个月",value:"2"}}),e._v(" "),n("el-option",{attrs:{label:"年",value:"3"}})],1)],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"备注",prop:"remark"}},[n("el-input",{staticStyle:{width:"250px"},attrs:{rows:2,type:"textarea",placeholder:"备注信息",mini:"size"},model:{value:e.batchEditBatteryForm.remark,callback:function(t){e.$set(e.batchEditBatteryForm,"remark",t)},expression:"batchEditBatteryForm.remark"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"图标",prop:"car_icon"}},[n("el-radio-group",{model:{value:e.batchEditBatteryForm.car_icon,callback:function(t){e.$set(e.batchEditBatteryForm,"car_icon",t)},expression:"batchEditBatteryForm.car_icon"}},e._l(e.iconList,function(e,t){return n("el-radio",{key:t,attrs:{label:t}},[n("img",{staticStyle:{width:"28px","vertical-align":"center"},attrs:{src:e.local}})])}))],1),e._v(" "),n("el-form-item",{attrs:{label:"满充耗电量",prop:"full_charge_kwh"}},[n("el-input",{staticStyle:{width:"250px"},model:{value:e.batchEditBatteryForm.full_charge_kwh,callback:function(t){e.$set(e.batchEditBatteryForm,"full_charge_kwh",t)},expression:"batchEditBatteryForm.full_charge_kwh"}},[n("template",{slot:"append"},[e._v("KWh")])],2)],1)],1),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogBatchEditBatteryFormVisible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.handBatchEditBattery}},[e._v("保存")])],1)],1),e._v(" "),n("el-dialog",{attrs:{visible:e.dialogEditBatteryInfoFormVisible,"close-on-click-modal":!1,title:"device"in e.authList&&e.authList.device.list.device_edit.value?"设备修改":"设备信息",top:"5vh",width:"90%"},on:{"update:visible":function(t){e.dialogEditBatteryInfoFormVisible=t}}},[n("el-form",{ref:"editBatteryInfoForm",staticClass:"smart-form-wrap",staticStyle:{"margin-left":"0px"},attrs:{model:e.editBatteryInfoForm,rules:e.batteryFormRules,disabled:!("device"in e.authList&&e.authList.device.list.device_edit.value&&e.authList.device.list.change_device_pay_with_pledge.value),"label-position":"right","label-width":"160px",size:"mini"}},[n("el-row",[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"所属门店",prop:"admin_id"}},[n("span",[e._v(e._s(e.editBatteryInfoForm.shop_name))])]),e._v(" "),n("el-form-item",{attrs:{label:"设备编号",prop:"battery_sn"}},[n("span",[e._v(e._s(e.editBatteryInfoForm.battery_sn))])]),e._v(" "),e.authList.device.list.bms.value?[n("el-form-item",{attrs:{label:"设备名称",prop:"gpsbms_name"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"",size:"mini"},model:{value:e.editBatteryInfoForm.gpsbms_name,callback:function(t){e.$set(e.editBatteryInfoForm,"gpsbms_name",t)},expression:"editBatteryInfoForm.gpsbms_name"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"品牌",prop:"battery_brand"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"",size:"mini"},model:{value:e.editBatteryInfoForm.battery_brand,callback:function(t){e.$set(e.editBatteryInfoForm,"battery_brand",t)},expression:"editBatteryInfoForm.battery_brand"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"型号",prop:"battery_type_v"}},[n("el-input-number",{staticStyle:{width:"100px"},attrs:{min:1,max:1e3,label:"",size:"mini","controls-position":"right"},model:{value:e.editBatteryInfoForm.battery_type_v,callback:function(t){e.$set(e.editBatteryInfoForm,"battery_type_v",t)},expression:"editBatteryInfoForm.battery_type_v"}}),e._v(" V\n "),n("el-input-number",{staticStyle:{width:"100px"},attrs:{min:1,max:1e3,label:"",size:"mini","controls-position":"right"},model:{value:e.editBatteryInfoForm.battery_type_a,callback:function(t){e.$set(e.editBatteryInfoForm,"battery_type_a",t)},expression:"editBatteryInfoForm.battery_type_a"}}),e._v(" AH\n ")],1),e._v(" "),n("el-form-item",{attrs:{label:"设备类型",prop:"third_device_type"}},[n("el-select",{attrs:{disabled:!(1==e.userInfo.user_id),size:"mini",placeholder:"请选择"},model:{value:e.editBatteryInfoForm.third_device_type,callback:function(t){e.$set(e.editBatteryInfoForm,"third_device_type",t)},expression:"editBatteryInfoForm.third_device_type"}},e._l(e.thirdDeviceTypeList,function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})}))],1),e._v(" "),n("el-form-item",{attrs:{label:"蓝牙类型",prop:"bt_type"}},[n("el-select",{attrs:{disabled:-1!=e.role,size:"mini",placeholder:"请选择"},model:{value:e.editBatteryInfoForm.bt_type,callback:function(t){e.$set(e.editBatteryInfoForm,"bt_type",t)},expression:"editBatteryInfoForm.bt_type"}},e._l(e.btList,function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})}))],1),e._v(" "),"ZXBTS"==e.editBatteryInfoForm.bt_type||"LSBTS"==e.editBatteryInfoForm.bt_type?n("el-form-item",{attrs:{label:"波特率",prop:"bt_type"}},[n("el-select",{attrs:{disabled:-1!=e.role,size:"mini",placeholder:"请选择"},model:{value:e.editBatteryInfoForm.bps,callback:function(t){e.$set(e.editBatteryInfoForm,"bps",t)},expression:"editBatteryInfoForm.bps"}},e._l(e.baudList,function(e,t){return n("el-option",{key:e,attrs:{label:e,value:e}})}))],1):e._e(),e._v(" "),12320==e.userInfo.user_id?n("el-form-item",{attrs:{label:"设备用途",prop:"used "}},[n("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:e.editBatteryInfoForm.used,callback:function(t){e.$set(e.editBatteryInfoForm,"used",t)},expression:"editBatteryInfoForm.used"}},[n("el-option",{attrs:{label:"储能",value:"1"}}),e._v(" "),n("el-option",{attrs:{label:"动力",value:"2"}})],1)],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"电芯",prop:"cell_type"}},[n("el-autocomplete",{attrs:{"fetch-suggestions":e.cellQuerySearch,placeholder:""},model:{value:e.editBatteryInfoForm.cell_type,callback:function(t){e.$set(e.editBatteryInfoForm,"cell_type",t)},expression:"editBatteryInfoForm.cell_type"}})],1),e._v(" "),-1==e.userInfo.role?n("el-form-item",{attrs:{label:"BMS保护板",prop:"bms_type"}},[n("el-autocomplete",{attrs:{"fetch-suggestions":e.bmsQuerySearch,placeholder:""},model:{value:e.editBatteryInfoForm.bms_type,callback:function(t){e.$set(e.editBatteryInfoForm,"bms_type",t)},expression:"editBatteryInfoForm.bms_type"}})],1):n("el-form-item",{attrs:{label:"BMS保护板"}},[n("label",[e._v(" "+e._s(e.editBatteryInfoForm.bms_type)+" ")])]),e._v(" "),-1==e.userInfo.role&&"无"!=e.editBatteryInfoForm.bms_type?n("el-form-item",{attrs:{label:"保护板属性",prop:"bms_hard_attr"}},[n("el-cascader",{attrs:{options:e.bmsHardAttrList,props:{expandTrigger:"hover"},clearable:""},model:{value:e.editBatteryInfoForm.bms_hard_attr,callback:function(t){e.$set(e.editBatteryInfoForm,"bms_hard_attr",t)},expression:"editBatteryInfoForm.bms_hard_attr"}})],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"生产日期",prop:"product_time"}},[n("el-date-picker",{attrs:{size:"mini",type:"datetime",placeholder:"选择日期"},model:{value:e.product_time_,callback:function(t){e.product_time_=t},expression:"product_time_"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"电量校准",prop:"voltage_quantity"}},[n("el-checkbox",{attrs:{value:null!=e.editBatteryInfoForm.voltage_quantity},on:{change:function(t){e.editBatteryInfoForm.voltage_quantity=t?{bunch:1,list:[]}:null}}},[e._v("\n 电量校准")]),e._v(" "),null!=e.editBatteryInfoForm.voltage_quantity?n("div",[e._v("\n 电池串数 \n "),n("el-input-number",{staticStyle:{width:"120px"},attrs:{min:1,label:"",size:"mini","controls-position":"right"},model:{value:e.editBatteryInfoForm.voltage_quantity.bunch,callback:function(t){e.$set(e.editBatteryInfoForm.voltage_quantity,"bunch",t)},expression:"editBatteryInfoForm.voltage_quantity.bunch"}}),e._v(" "),n("el-button",{attrs:{icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.editBatteryInfoForm.voltage_quantity.list.push({quantity:0,voltage:""})}}},[e._v("添加校正值\n ")]),e._v(" "),e._l(e.editBatteryInfoForm.voltage_quantity.list,function(t,a){return n("div",{key:a,staticStyle:{"margin-top":"5px"}},[n("el-input-number",{staticStyle:{width:"90px"},attrs:{min:0,max:100,size:"mini","controls-position":"right"},model:{value:t.quantity,callback:function(a){e.$set(t,"quantity",a)},expression:"item.quantity"}}),e._v(" % = \n "),n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:t.voltage,callback:function(a){e.$set(t,"voltage",a)},expression:"item.voltage"}}),e._v(" V \n "),n("el-button",{attrs:{icon:"el-icon-delete",size:"mini",round:""},on:{click:function(t){e.editBatteryInfoForm.voltage_quantity.list.splice(a,1)}}})],1)})],2):e._e()],1),e._v(" "),n("el-form-item",{attrs:{label:"剩余里程校准",prop:"quantity_mil_config"}},[n("el-checkbox",{attrs:{value:null!=e.editBatteryInfoForm.quantity_mil_config},on:{change:function(t){e.editBatteryInfoForm.quantity_mil_config=t?[]:null}}},[e._v("\n 里程校准")]),e._v(" "),null!=e.editBatteryInfoForm.quantity_mil_config?n("div",[n("el-button",{attrs:{icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.editBatteryInfoForm.quantity_mil_config.push({quantity:0,mil:""})}}},[e._v("添加校准值 (电量=里程)\n ")]),e._v(" "),e._l(e.editBatteryInfoForm.quantity_mil_config,function(t,a){return n("div",{key:a,staticStyle:{"margin-top":"5px"}},[n("el-input-number",{staticStyle:{width:"90px"},attrs:{min:0,max:100,size:"mini","controls-position":"right"},model:{value:t.quantity,callback:function(a){e.$set(t,"quantity",a)},expression:"item.quantity"}}),e._v(" % = \n "),n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:t.mil,callback:function(a){e.$set(t,"mil",a)},expression:"item.mil"}}),e._v(" Km \n "),n("el-button",{attrs:{icon:"el-icon-delete",size:"mini",round:""},on:{click:function(t){e.editBatteryInfoForm.quantity_mil_config.splice(a,1)}}})],1)})],2):e._e()],1),e._v(" "),e.authList.device.list.mil_ratio.value?n("el-form-item",{attrs:{label:"里程修正比例",prop:"cell_type"}},[n("el-input-number",{attrs:{step:1,min:-99,max:99,"step-strictly":""},model:{value:e.editBatteryInfoForm.mil_ratio,callback:function(t){e.$set(e.editBatteryInfoForm,"mil_ratio",t)},expression:"editBatteryInfoForm.mil_ratio"}}),e._v("\n %\n ")],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"备注",prop:"remark"}},[n("el-input",{staticStyle:{width:"250px"},attrs:{rows:2,type:"textarea",placeholder:"备注信息",mini:"size"},model:{value:e.editBatteryInfoForm.remark,callback:function(t){e.$set(e.editBatteryInfoForm,"remark",t)},expression:"editBatteryInfoForm.remark"}})],1)]:e._e(),e._v(" "),n("el-form-item",{attrs:{label:"图标",prop:"car_icon"}},[n("el-radio-group",{model:{value:e.editBatteryInfoForm.car_icon,callback:function(t){e.$set(e.editBatteryInfoForm,"car_icon",t)},expression:"editBatteryInfoForm.car_icon"}},e._l(e.iconList,function(e,t){return n("el-radio",{key:t,attrs:{label:t}},[n("img",{staticStyle:{width:"28px","vertical-align":"center"},attrs:{src:e.local}})])}))],1),e._v(" "),-1!=e.roles.indexOf("is_liniu")?n("el-form-item",{attrs:{label:"满充耗电量",prop:"full_charge_kwh"}},[n("el-input",{staticStyle:{width:"150px"},model:{value:e.editBatteryInfoForm.full_charge_kwh,callback:function(t){e.$set(e.editBatteryInfoForm,"full_charge_kwh",t)},expression:"editBatteryInfoForm.full_charge_kwh"}},[n("template",{slot:"append"},[e._v("KWh")])],2)],1):e._e()],2),e._v(" "),n("el-col",{attrs:{span:12}},[e.selectedShopInfo.business_type<2?n("div",[n("el-form-item",{attrs:{label:"租赁类型",prop:"hire_type"}},[n("el-radio-group",{model:{value:e.editBatteryInfoForm.hire_type,callback:function(t){e.$set(e.editBatteryInfoForm,"hire_type",t)},expression:"editBatteryInfoForm.hire_type"}},[n("el-radio",{attrs:{label:1}},[e._v("普通租赁")]),e._v(" "),n("el-radio",{attrs:{label:2}},[e._v("以租代售")])],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"业务类型",prop:"battery_business_type"}},[n("el-radio-group",{on:{change:e.click_hire_duration_unit},model:{value:e.editBatteryInfoForm.battery_business_type,callback:function(t){e.$set(e.editBatteryInfoForm,"battery_business_type",t)},expression:"editBatteryInfoForm.battery_business_type"}},[n("el-radio",{attrs:{label:"0"}},[e._v("租电")]),e._v(" "),n("el-radio",{attrs:{label:"1"}},[e._v("租车")])],1)],1),e._v(" "),0==e.editBatteryInfoForm.battery_business_type?n("el-form-item",{attrs:{label:"是否收取换电功能费用",prop:"exchange_function_status"}},[n("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini"},model:{value:e.editBatteryInfoForm.exchange_function_status,callback:function(t){e.$set(e.editBatteryInfoForm,"exchange_function_status",t)},expression:"editBatteryInfoForm.exchange_function_status"}},[n("el-option",{attrs:{label:"不收取",value:"0"}}),e._v(" "),n("el-option",{attrs:{label:"收取",value:"1"}})],1),e._v(" "),n("span",{staticStyle:{color:"#f56c6c","margin-left":"5px"}},[e._v("请升级微信小程序至4.1.20220114以后版本")])],1):e._e(),e._v(" "),1==e.editBatteryInfoForm.exchange_function_status&&0==e.editBatteryInfoForm.battery_business_type?n("el-form-item",{staticClass:"function2",staticStyle:{"margin-left":"70px"},attrs:{label:"收取费用",prop:"pledge_money"}},[n("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入换电功能费",size:"mini"},model:{value:e.editBatteryInfoForm.exchange_function_fee,callback:function(t){e.$set(e.editBatteryInfoForm,"exchange_function_fee",t)},expression:"editBatteryInfoForm.exchange_function_fee"}}),e._v(" 元\n ")],1):e._e(),e._v(" "),1==e.editBatteryInfoForm.hire_type?n("el-form-item",{attrs:{label:"合同时长",prop:"hire_sell_duration"}},[n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0",size:"mini"},model:{value:e.editBatteryInfoForm.hire_normal_duration,callback:function(t){e.$set(e.editBatteryInfoForm,"hire_normal_duration",t)},expression:"editBatteryInfoForm.hire_normal_duration"}}),e._v(" 月 "),n("span",{staticClass:"tips"})],1):e._e(),e._v(" "),2==e.editBatteryInfoForm.hire_type?n("el-form-item",{attrs:{label:"以租代售时长",prop:"hire_sell_duration"}},[n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0",size:"mini"},model:{value:e.editBatteryInfoForm.hire_sell_duration,callback:function(t){e.$set(e.editBatteryInfoForm,"hire_sell_duration",t)},expression:"editBatteryInfoForm.hire_sell_duration"}}),e._v(" 月 "),n("span",{staticClass:"tips"},[e._v("如,租满12个月后归用户所有")])],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"押金",prop:"pledge_money"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.editBatteryInfoForm.pledge_money,callback:function(t){e.$set(e.editBatteryInfoForm,"pledge_money",t)},expression:"editBatteryInfoForm.pledge_money"}}),e._v("\n 元\n ")],1),e._v(" "),n("el-form-item",{attrs:{label:"单价",prop:"hire_price"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.editBatteryInfoForm.hire_price,callback:function(t){e.$set(e.editBatteryInfoForm,"hire_price",t)},expression:"editBatteryInfoForm.hire_price"}}),e._v(" "),n("span",[e._v("元 / ")]),e._v(" "),n("el-input",{staticStyle:{width:"80px"},attrs:{disabled:4==e.editBatteryInfoForm.hire_duration_unit,oninput:"if(value<=0)value=1",placeholder:"",size:"mini"},model:{value:e.editBatteryInfoForm.hire_cycle,callback:function(t){e.$set(e.editBatteryInfoForm,"hire_cycle",t)},expression:"editBatteryInfoForm.hire_cycle"}}),e._v(" "),0==e.editBatteryInfoForm.battery_business_type?n("el-select",{staticStyle:{width:"80px"},attrs:{filterable:"",size:"mini"},model:{value:e.editBatteryInfoForm.hire_duration_unit,callback:function(t){e.$set(e.editBatteryInfoForm,"hire_duration_unit",t)},expression:"editBatteryInfoForm.hire_duration_unit"}},[n("el-option",{attrs:{label:"天",value:"1"}}),e._v(" "),n("el-option",{attrs:{label:"个月",value:"2"}}),e._v(" "),n("el-option",{attrs:{label:"年",value:"3"}}),e._v(" "),n("el-option",{attrs:{label:"小时",value:"4"}}),e._v(" "),n("el-option",{attrs:{label:"分钟",value:"5"}}),e._v(" "),n("el-option",{attrs:{label:"周",value:"6"}})],1):e._e(),e._v(" "),1==e.editBatteryInfoForm.battery_business_type?n("el-select",{staticStyle:{width:"80px"},attrs:{filterable:"",size:"mini"},on:{change:e.click_hire_duration_unit_1},model:{value:e.editBatteryInfoForm.hire_duration_unit,callback:function(t){e.$set(e.editBatteryInfoForm,"hire_duration_unit",t)},expression:"editBatteryInfoForm.hire_duration_unit"}},[n("el-option",{attrs:{label:"天",value:"1"}}),e._v(" "),n("el-option",{attrs:{label:"个月",value:"2"}}),e._v(" "),n("el-option",{attrs:{label:"年",value:"3"}}),e._v(" "),n("el-option",{attrs:{label:"小时",value:"4"}}),e._v(" "),n("el-option",{attrs:{label:"分钟",value:"5"}}),e._v(" "),n("el-option",{attrs:{label:"周",value:"6"}})],1):e._e(),e._v(" "),2==e.editBatteryInfoForm.hire_type?n("span",{staticClass:"tips"},[e._v(" 以租代售时,每个付款周期支付的费用")]):e._e()],1),e._v(" "),0==e.editBatteryInfoForm.battery_business_type?n("el-form-item",{attrs:{label:"换电原价",prop:"originate_exchange_price"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.editBatteryInfoForm.originate_exchange_price,callback:function(t){e.$set(e.editBatteryInfoForm,"originate_exchange_price",t)},expression:"editBatteryInfoForm.originate_exchange_price"}}),e._v(" "),n("span",[e._v("元")]),n("span",{staticClass:"minfondsize"},[e._v("(页面展示初始换电原价)")]),e._v(" "),n("span",{staticStyle:{color:"#f56c6c"}},[e._v(" 需要升级小程序至最新版本")])],1):e._e(),e._v(" "),0==e.editBatteryInfoForm.battery_business_type?n("el-form-item",{attrs:{label:"换电优惠价",prop:"exchange_price"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.editBatteryInfoForm.exchange_price,callback:function(t){e.$set(e.editBatteryInfoForm,"exchange_price",t)},expression:"editBatteryInfoForm.exchange_price"}}),e._v(" "),n("span",[e._v("元")]),n("span",{staticClass:"minfondsize"},[e._v("(客户实际支付的换电优惠价)")]),e._v(" "),n("span",{staticStyle:{color:"#f56c6c"}},[e._v(" 需要升级小程序至最新版本")])],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"换电时匹对价格",prop:"is_price_same"}},[n("el-radio-group",{model:{value:e.editBatteryInfoForm.is_price_same,callback:function(t){e.$set(e.editBatteryInfoForm,"is_price_same",t)},expression:"editBatteryInfoForm.is_price_same"}},[n("el-radio",{attrs:{label:1}},[e._v("匹对")]),e._v(" "),n("el-radio",{attrs:{label:2}},[e._v("不匹对")])],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"优惠价",prop:"hire_discount"}},[n("el-button",{attrs:{icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.editBatteryInfoForm.hire_discount.push({num:1,price:e.editBatteryInfoForm.hire_price})}}},[e._v("\n 添加优惠价\n ")]),e._v(" "),e.editBatteryInfoForm.hire_discount&&0!=e.editBatteryInfoForm.hire_discount.length?n("el-form-item",{staticStyle:{"margin-top":"10px"},attrs:{label:"",prop:"hire_discount_only_new","label-width":"0px"}},[n("el-checkbox",{model:{value:e.editBatteryInfoForm.hire_discount_only_new,callback:function(t){e.$set(e.editBatteryInfoForm,"hire_discount_only_new",t)},expression:"editBatteryInfoForm.hire_discount_only_new"}},[e._v("仅对首租优惠")]),e._v(" "),n("span",{staticStyle:{color:"#f56c6c"}},[e._v(" 需要升级小程序至4.1.20220704版本")])],1):e._e(),e._v(" "),e.editBatteryInfoForm.hire_discount&&0!=e.editBatteryInfoForm.hire_discount.length?n("el-popover",{attrs:{placement:"right",trigger:"click"}},[e.editBatteryInfoForm.hire_price&&/^\d+\.?\d{0,2}$/.test(e.editBatteryInfoForm.hire_price)?e.payTestChecked?n("el-form",{attrs:{"label-position":"right","label-width":"120px",size:"small"}},[n("el-form-item",{attrs:{label:"用户预租赁时长"}},[n("el-input",{staticStyle:{width:"100px"},attrs:{placeholder:"0.00",maxlength:"5",size:"mini"},model:{value:e.payNum,callback:function(t){e.payNum=t},expression:"payNum"}}),e._v("\n 个周期\n ")],1),e._v(" "),n("el-form-item",{attrs:{label:"用户租赁金额"}},[e._v("\n "+e._s(e.payTest(e.payNum,e.editBatteryInfoForm.hire_price,e.editBatteryInfoForm.hire_discount).toFixed(2))+"\n 元\n ")]),e._v(" "),n("el-form-item",{attrs:{label:"相当于"}},[e._v("\n "+e._s((e.payTest(e.payNum,e.editBatteryInfoForm.hire_price,e.editBatteryInfoForm.hire_discount)/e.payNum).toFixed(2))+"\n 元/周期\n ")]),e._v(" "),n("el-form-item",{attrs:{label:"立省"}},[e._v("\n "+e._s((e.editBatteryInfoForm.hire_price*e.payNum-e.payTest(e.payNum,e.editBatteryInfoForm.hire_price,e.editBatteryInfoForm.hire_discount)).toFixed(2))+"\n 元\n ")]),e._v(" "),n("div",{staticStyle:{width:"100%",color:"#FF0000"}},[e._v("注意:小程序更新至3.4.8版本后,")]),e._v(" "),n("div",{staticStyle:{width:"100%",color:"#FF0000"}},[e._v("\n 才可使用优惠价付款")])],1):n("el-tag",{attrs:{type:"danger"}},[e._v("优惠价设置有误")]):n("el-tag",{attrs:{type:"danger"}},[e._v("单价设置有误")]),e._v(" "),n("el-button",{staticStyle:{"margin-bottom":"10px"},attrs:{slot:"reference",type:"primary",size:"mini"},on:{click:function(t){e.payTest(0,0,e.editBatteryInfoForm.hire_discount)}},slot:"reference"},[e._v("用户租金计算器")])],1):e._e(),e._v(" "),e.editBatteryInfoForm.hire_discount&&0!=e.editBatteryInfoForm.hire_discount.length?n("div",[n("label",[e._v("截止时间")]),e._v(" "),n("el-date-picker",{attrs:{size:"mini",type:"datetime",placeholder:"选择截止时间"},model:{value:e.editBatteryInfoForm.hire_discount_end_time,callback:function(t){e.$set(e.editBatteryInfoForm,"hire_discount_end_time",t)},expression:"editBatteryInfoForm.hire_discount_end_time"}})],1):e._e(),e._v(" "),e._l(e.editBatteryInfoForm.hire_discount,function(t,a){return n("div",{key:a,staticStyle:{"margin-top":"5px"}},[n("el-input-number",{staticStyle:{width:"80px"},attrs:{min:1,size:"mini","controls-position":"right"},model:{value:t.num,callback:function(a){e.$set(t,"num",a)},expression:"item.num"}}),e._v("\n 个周期\n "),n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:t.price,callback:function(a){e.$set(t,"price",a)},expression:"item.price"}}),e._v(" 元\n "),n("el-tag",{attrs:{type:"danger"}},[e._v("相当于"+e._s((t.price/t.num).toFixed(2))+"元/周期")]),e._v(" "),n("el-button",{attrs:{icon:"el-icon-delete",size:"mini",round:""},on:{click:function(t){e.editBatteryInfoForm.hire_discount.splice(a,1)}}})],1)})],2),e._v(" "),n("el-form-item",{attrs:{label:"续费优惠",prop:"renew_discount"}},[n("el-button",{attrs:{icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.editBatteryInfoForm.renew_discount.push({day:1,dis:0})}}},[e._v("添加续费优惠")]),e._v(" "),e.editBatteryInfoForm.renew_discount&&0!=e.editBatteryInfoForm.renew_discount.length?n("div",[n("label",[e._v("截止时间")]),e._v(" "),n("el-date-picker",{attrs:{size:"mini",type:"datetime",placeholder:"选择截止时间"},model:{value:e.editBatteryInfoForm.renew_discount_end_time,callback:function(t){e.$set(e.editBatteryInfoForm,"renew_discount_end_time",t)},expression:"editBatteryInfoForm.renew_discount_end_time"}})],1):e._e(),e._v(" "),e._l(e.editBatteryInfoForm.renew_discount,function(t,a){return n("div",{key:a,staticStyle:{"margin-top":"5px"}},[e._v("\n 提前\n "),n("el-input-number",{staticStyle:{width:"100px"},attrs:{min:1,size:"mini","controls-position":"right"},model:{value:t.day,callback:function(a){e.$set(t,"day",a)},expression:"item.day"}}),e._v("\n 天续费优惠\n "),n("el-input-number",{staticStyle:{width:"100px"},attrs:{min:0,max:100,precision:2,step:.1,size:"mini","controls-position":"right"},model:{value:t.dis,callback:function(a){e.$set(t,"dis",a)},expression:"item.dis"}}),e._v(" %\n "),n("el-button",{attrs:{icon:"el-icon-delete",size:"mini",round:""},on:{click:function(t){e.editBatteryInfoForm.renew_discount.splice(a,1)}}})],1)})],2),e._v(" "),n("el-form",{staticStyle:{"margin-left":"0px"},attrs:{model:e.editBatteryInfoForm,"label-position":"right","label-width":"160px",size:"mini"}},[-1!=e.roles.indexOf("change_device_pay_with_pledge")?n("el-form-item",{attrs:{label:"支付方式",prop:"pay_with_pledge"}},[n("el-select",{attrs:{disabled:!("device"in e.authList&&e.authList.device.list.change_device_pay_with_pledge.value||e.authList.device.list.device_edit.value),filterable:"",size:"mini"},model:{value:e.editBatteryInfoForm.pay_with_pledge,callback:function(t){e.$set(e.editBatteryInfoForm,"pay_with_pledge",t)},expression:"editBatteryInfoForm.pay_with_pledge"}},[n("el-option",{attrs:{label:"仅支付租金",value:"1"}}),e._v(" "),n("el-option",{attrs:{label:"同时支付租金和押金",value:"2"}})],1)],1):e._e()],1),e._v(" "),n("el-form-item",{attrs:{label:"合作伙伴分账",prop:"is_share_member"}},[n("el-checkbox",{model:{value:e.editBatteryInfoForm.is_share_member,callback:function(t){e.$set(e.editBatteryInfoForm,"is_share_member",t)},expression:"editBatteryInfoForm.is_share_member"}},[e._v("是")])],1),e._v(" "),e.editBatteryInfoForm.is_share_member?n("el-form-item",{attrs:{label:"分账类型",prop:"share_member_type"}},[n("el-radio-group",{model:{value:e.editBatteryInfoForm.share_member_type,callback:function(t){e.$set(e.editBatteryInfoForm,"share_member_type",t)},expression:"editBatteryInfoForm.share_member_type"}},[n("el-radio",{attrs:{label:1}},[e._v("按比例分账")]),e._v(" "),n("el-radio",{attrs:{label:2}},[e._v("按固定金额")])],1)],1):e._e(),e._v(" "),1===e.editBatteryInfoForm.share_member_type&&e.editBatteryInfoForm.is_share_member?[n("el-form-item",{attrs:{label:"租金分账比例",prop:"member_hire_price_ratio"}},[n("el-input-number",{attrs:{min:0,max:100,size:"mini"},model:{value:e.editBatteryInfoForm.member_hire_price_ratio,callback:function(t){e.$set(e.editBatteryInfoForm,"member_hire_price_ratio",t)},expression:"editBatteryInfoForm.member_hire_price_ratio"}}),e._v("\n %\n ")],1)]:e._e(),e._v(" "),2===e.editBatteryInfoForm.share_member_type&&e.editBatteryInfoForm.is_share_member?[n("el-form-item",{attrs:{label:"租金分账金额",prop:"member_hire_money"}},[n("el-input-number",{attrs:{min:0,max:2e4,size:"mini"},model:{value:e.editBatteryInfoForm.member_hire_money,callback:function(t){e.$set(e.editBatteryInfoForm,"member_hire_money",t)},expression:"editBatteryInfoForm.member_hire_money"}}),e._v("\n 元\n ")],1)]:e._e()],2):2==e.selectedShopInfo.business_type?n("div",[n("el-form-item",{attrs:{label:"业务类型",prop:"battery_business_type"}},[n("el-radio-group",{model:{value:e.editBatteryInfoForm.battery_business_type,callback:function(t){e.$set(e.editBatteryInfoForm,"battery_business_type",t)},expression:"editBatteryInfoForm.battery_business_type"}},[n("el-radio",{attrs:{label:"0"}},[e._v("租电")]),e._v(" "),n("el-radio",{attrs:{label:"1"}},[e._v("租车")])],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"计费方式",prop:"last_minutes"}},[e._v("\n 前 \n "),n("el-input",{staticStyle:{width:"60px"},attrs:{placeholder:"0",size:"mini"},model:{value:e.editBatteryInfoForm.last_minutes,callback:function(t){e.$set(e.editBatteryInfoForm,"last_minutes",t)},expression:"editBatteryInfoForm.last_minutes"}}),e._v("\n "+e._s(1==e.editBatteryInfoForm.share_unit?"小时":"分钟")+"\n "),n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.editBatteryInfoForm.last_price,callback:function(t){e.$set(e.editBatteryInfoForm,"last_price",t)},expression:"editBatteryInfoForm.last_price"}}),e._v("\n 元,\n 超出后 \n "),n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.editBatteryInfoForm.minute_price,callback:function(t){e.$set(e.editBatteryInfoForm,"minute_price",t)},expression:"editBatteryInfoForm.minute_price"}}),e._v("\n 元每\n "),n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"",size:"mini"},model:{value:e.editBatteryInfoForm.share_cycle,callback:function(t){e.$set(e.editBatteryInfoForm,"share_cycle",t)},expression:"editBatteryInfoForm.share_cycle"}}),e._v(" "),n("el-select",{staticStyle:{width:"80px"},attrs:{filterable:"",size:"mini"},model:{value:e.editBatteryInfoForm.share_unit,callback:function(t){e.$set(e.editBatteryInfoForm,"share_unit",t)},expression:"editBatteryInfoForm.share_unit"}},[n("el-option",{attrs:{value:0,label:"分钟"}}),e._v(" "),n("el-option",{attrs:{value:1,label:"小时"}})],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"计费上限",prop:"share_discount"}},[n("el-button",{attrs:{icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.editBatteryInfoForm.share_discount.push({num:1,price:""})}}},[e._v("添加上限")]),e._v(" "),e._l(e.editBatteryInfoForm.share_discount,function(t,a){return n("div",{key:a,staticStyle:{"margin-top":"5px"}},[n("el-input-number",{staticStyle:{width:"150px"},attrs:{min:1,size:"mini","controls-position":"right"},model:{value:t.num,callback:function(a){e.$set(t,"num",a)},expression:"item.num"}}),e._v("\n "+e._s(1==e.editBatteryInfoForm.share_unit?"小时":"分钟")+"\n "),n("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:t.price,callback:function(a){e.$set(t,"price",a)},expression:"item.price"}}),e._v(" 元\n "),n("el-button",{attrs:{icon:"el-icon-delete",size:"mini",round:""},on:{click:function(t){e.editBatteryInfoForm.share_discount.splice(a,1)}}})],1)})],2)],1):e._e(),e._v(" "),n("div",[n("el-form-item",{attrs:{label:"出售价格",prop:"sell_price"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.editBatteryInfoForm.sell_price,callback:function(t){e.$set(e.editBatteryInfoForm,"sell_price",t)},expression:"editBatteryInfoForm.sell_price"}}),e._v(" "),n("span",[e._v("元")]),e._v(" "),n("span",[e._v(" 需要开通锂助手")])],1),e._v(" "),n("el-form-item",{attrs:{label:"出售保修期",prop:"guarantee_day"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"0.00",size:"mini"},model:{value:e.editBatteryInfoForm.guarantee_day,callback:function(t){e.$set(e.editBatteryInfoForm,"guarantee_day",t)},expression:"editBatteryInfoForm.guarantee_day"}}),e._v(" "),n("el-select",{staticStyle:{width:"80px"},attrs:{filterable:"",size:"mini"},model:{value:e.editBatteryInfoForm.guarantee_unit,callback:function(t){e.$set(e.editBatteryInfoForm,"guarantee_unit",t)},expression:"editBatteryInfoForm.guarantee_unit"}},[n("el-option",{attrs:{label:"天",value:"1"}}),e._v(" "),n("el-option",{attrs:{label:"个月",value:"2"}}),e._v(" "),n("el-option",{attrs:{label:"年",value:"3"}})],1)],1)],1),e._v(" "),n("div",{staticClass:"flex-row"},[n("el-form-item",{attrs:{label:"品牌",prop:"pledge_money"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"品牌",size:"mini"},model:{value:e.editBatteryInfoForm.car_brand,callback:function(t){e.$set(e.editBatteryInfoForm,"car_brand",t)},expression:"editBatteryInfoForm.car_brand"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"车辆型号",prop:"pledge_money"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"车辆型号",size:"mini"},model:{value:e.editBatteryInfoForm.car_model,callback:function(t){e.$set(e.editBatteryInfoForm,"car_model",t)},expression:"editBatteryInfoForm.car_model"}})],1)],1),e._v(" "),n("div",{staticClass:"flex-row"},[n("el-form-item",{attrs:{label:"车架号码",prop:"pledge_money"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"车架号码",size:"mini"},model:{value:e.editBatteryInfoForm.car_frame_no,callback:function(t){e.$set(e.editBatteryInfoForm,"car_frame_no",t)},expression:"editBatteryInfoForm.car_frame_no"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"保险单号",prop:"pledge_money"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"保险单号",size:"mini"},model:{value:e.editBatteryInfoForm.car_insurance_bill,callback:function(t){e.$set(e.editBatteryInfoForm,"car_insurance_bill",t)},expression:"editBatteryInfoForm.car_insurance_bill"}})],1)],1),e._v(" "),n("div",{staticClass:"flex-row"},[n("el-form-item",{attrs:{label:"车牌号码",prop:"license_plate_number"}},[n("el-input",{staticStyle:{width:"180px"},attrs:{placeholder:"车牌号码",size:"mini"},model:{value:e.editBatteryInfoForm.license_plate_number,callback:function(t){e.$set(e.editBatteryInfoForm,"license_plate_number",t)},expression:"editBatteryInfoForm.license_plate_number"}})],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"保险起始日期",prop:"pledge_money"}},[n("el-date-picker",{attrs:{size:"mini",type:"date",placeholder:"选择日期"},model:{value:e.editBatteryInfoForm.car_insurance_begin,callback:function(t){e.$set(e.editBatteryInfoForm,"car_insurance_begin",t)},expression:"editBatteryInfoForm.car_insurance_begin"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"保险结束日期",prop:"pledge_money"}},[n("el-date-picker",{attrs:{size:"mini",type:"date",placeholder:"选择日期"},model:{value:e.editBatteryInfoForm.car_inserance_end,callback:function(t){e.$set(e.editBatteryInfoForm,"car_inserance_end",t)},expression:"editBatteryInfoForm.car_inserance_end"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"车辆图片",prop:"pledge_money"}},[e.dialogEditBatteryInfoFormVisible?n("div",{staticClass:"flex-row"},[n("up-image2",{staticStyle:{"margin-right":"15px"},model:{value:e.editBatteryInfoForm.car_images[0],callback:function(t){e.$set(e.editBatteryInfoForm.car_images,0,t)},expression:"editBatteryInfoForm.car_images[0]"}}),e._v(" "),n("up-image2",{staticStyle:{"margin-right":"15px"},model:{value:e.editBatteryInfoForm.car_images[1],callback:function(t){e.$set(e.editBatteryInfoForm.car_images,1,t)},expression:"editBatteryInfoForm.car_images[1]"}}),e._v(" "),n("up-image2",{staticStyle:{"margin-right":"15px"},model:{value:e.editBatteryInfoForm.car_images[2],callback:function(t){e.$set(e.editBatteryInfoForm.car_images,2,t)},expression:"editBatteryInfoForm.car_images[2]"}}),e._v(" "),n("up-image2",{staticStyle:{"margin-right":"15px"},model:{value:e.editBatteryInfoForm.car_images[3],callback:function(t){e.$set(e.editBatteryInfoForm.car_images,3,t)},expression:"editBatteryInfoForm.car_images[3]"}}),e._v(" "),n("up-image2",{model:{value:e.editBatteryInfoForm.car_images[4],callback:function(t){e.$set(e.editBatteryInfoForm.car_images,4,t)},expression:"editBatteryInfoForm.car_images[4]"}})],1):e._e()])],1)],1)],1),e._v(" "),"device"in e.authList&&(e.authList.device.list.device_edit.value||e.authList.device.list.change_device_pay_with_pledge.value)?n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogEditBatteryInfoFormVisible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.handleEditBatteryInfo}},[e._v("保存")])],1):e._e()],1),e._v(" "),n("el-dialog",{attrs:{visible:e.dialogSearchClientInfoFormVisible,title:"搜索用户",top:"20vh",width:"40%"},on:{"update:visible":function(t){e.dialogSearchClientInfoFormVisible=t}}},[n("el-form",{ref:"searchClientInfoForm",staticStyle:{"margin-left":"50px"},attrs:{model:e.searchClientInfoForm,"label-position":"left","label-width":"70px",mini:"size"}},[n("el-form-item",{attrs:{label:"手机号码",prop:"admin_id"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"手机号码",size:"mini"},model:{value:e.searchClientInfoForm.phone,callback:function(t){e.$set(e.searchClientInfoForm,"phone",t)},expression:"searchClientInfoForm.phone"}}),e._v(" "),n("el-button",{attrs:{type:"success",size:"mini"},on:{click:e.handSearchClientInfo}},[e._v("搜索")])],1),e._v(" "),e.searchClientInfoForm.user_id?n("el-form-item",{attrs:{label:"搜索结果",prop:"admin_id"}},[n("div",{staticStyle:{"line-height":"2"}},[n("div",[e._v("用户ID: "),n("span",{staticStyle:{color:"red"}},[e._v(e._s(e.searchClientInfoForm.user_id))])]),e._v(" "),n("div",[e._v("用户所属总店: "),n("span",{staticStyle:{color:"red"}},[e._v(e._s(e.searchClientInfoForm.shop_name))])]),e._v(" "),n("div",[e._v("用户名: "+e._s(e.searchClientInfoForm.user_name))]),e._v(" "),n("div",[e._v("手机: "+e._s(e.searchClientInfoForm.phone))]),e._v(" "),n("div",[e._v("微信昵称: "+e._s(e.searchClientInfoForm.nickname))])])]):e._e()],1),e._v(" "),e.searchClientInfoForm.user_id?n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogSearchClientInfoFormVisible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.handleEditClientInfo}},[e._v("确定")])],1):e._e()],1),e._v(" "),n("el-dialog",{attrs:{visible:e.dialogRentClientInfoFormVisible,"close-on-click-modal":!1,title:"device"in e.authList&&e.authList.device.list.device_edit.value?"用户修改":"用户信息",top:"5vh",width:"700px"},on:{"update:visible":function(t){e.dialogRentClientInfoFormVisible=t}}},[n("el-form",[5!=e.selectedShopInfo.business_type?n("el-form-item",{attrs:{label:"租赁用户",prop:"user_name"}},[n("span",[e._v(e._s(e.editBatteryInfoForm.user_name)+" "+e._s(e.editBatteryInfoForm.phone))]),e._v(" "),n("el-button",{staticStyle:{"margin-left":"15px"},attrs:{type:"primary",size:"mini"},on:{click:e.showSearchClientInfoForm}},[e._v("编辑\n ")])],1):e._e(),e._v(" "),e.editBatteryInfoForm.user_id-0>0?n("el-form-item",{attrs:{label:"起租时间",prop:"hire_price"}},[n("el-date-picker",{attrs:{disabled:1==e.editBatteryInfoForm.shopInfo.is_day_cost&&""==e.searchClientInfoForm.user_id,size:"mini",type:"datetime",placeholder:"选择日期"},model:{value:e.editBatteryInfoForm.hire_time,callback:function(t){e.$set(e.editBatteryInfoForm,"hire_time",t)},expression:"editBatteryInfoForm.hire_time"}})],1):e._e(),e._v(" "),e.editBatteryInfoForm.user_id-0>0?n("el-form-item",{attrs:{label:"到期时间",prop:"hire_price"}},[n("el-date-picker",{attrs:{disabled:1==e.editBatteryInfoForm.shopInfo.is_day_cost&&""==e.searchClientInfoForm.user_id,size:"mini",type:"datetime",placeholder:"选择日期"},model:{value:e.editBatteryInfoForm.hire_expire_time,callback:function(t){e.$set(e.editBatteryInfoForm,"hire_expire_time",t)},expression:"editBatteryInfoForm.hire_expire_time"}})],1):e._e(),e._v(" "),e.editBatteryInfoForm.user_id-0>0&&e.isShowFreezeOrderTime?n("div",[n("span",{staticStyle:{color:"#F56C6C"}},[e._v("免押金时间范围:"+e._s(e.freeze_order_begin_time)+"至"+e._s(e.freeze_order_end_time))])]):e._e(),e._v(" "),e.editBatteryInfoForm.user_id-0>0&&e.isShowFreezeOrderTime?n("div",[n("span",{staticStyle:{color:"#F56C6C"}},[e._v("*为了避免造成押金的丢失,请注意不要选择超过免押金时间范围的时间段。在选择时间时,请确保所选的时间在 "),n("div",{staticClass:"timeStyle"},[e._v("\n "+e._s(e.freeze_order_begin_time)+"\n ")]),e._v("至"),n("div",{staticClass:"timeStyle"},[e._v(e._s(e.freeze_order_end_time))]),e._v("\n 之间。超出该范围的时间段支付宝会自动退回用户信用导致押金丢失。谢谢合作!")])]):e._e(),e._v(" "),1==e.editBatteryInfoForm.shopInfo.is_day_cost&&e.editBatteryInfoForm.user_id-0>0&&""==e.searchClientInfoForm.user_id?n("el-form-item",{attrs:{label:"修改天数",prop:"hire_sell_duration"}},[n("el-input",{staticStyle:{width:"120px"},attrs:{placeholder:"0",size:"mini"},on:{input:e.handleLimitEdit},model:{value:e.editBatteryInfoForm.days,callback:function(t){e.$set(e.editBatteryInfoForm,"days",t)},expression:"editBatteryInfoForm.days"}}),e._v(" "),n("span",{staticStyle:{color:"#DCDFE6"}},[e._v("负数则为扣除天数")])],1):e._e()],1),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogRentClientInfoFormVisible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.handleEditRentInfo}},[e._v("确定")])],1)],1),e._v(" "),n("el-dialog",{attrs:{visible:e.dialogTransferShopVisible,"close-on-click-modal":!1,title:"门店转移",top:"5vh"},on:{"update:visible":function(t){e.dialogTransferShopVisible=t}}},[n("div",{staticClass:"group-form"},[n("div",{staticClass:"form-item"},[n("div",{staticClass:"f-item-label"},[e._v("转移门店")]),e._v(" "),n("div",{staticClass:"f-item-value"},[n("span",{staticStyle:{color:"#DD4A68","font-weight":"bold"}},[e._v(e._s(e.selectedShopInfo.shop_name))])])]),e._v(" "),n("div",{staticClass:"form-item"},[n("div",{staticClass:"f-item-label"},[e._v("到")]),e._v(" "),n("div",{staticClass:"f-item-value user-list-tree"},[n("el-row",{staticClass:"flex-row flex-between"},[n("el-input",{directives:[{name:"loading",rawName:"v-loading",value:e.mainShopTreeLoading,expression:"mainShopTreeLoading"}],staticStyle:{width:"100%"},attrs:{placeholder:"输入门店名",size:"mini",clearable:""},on:{clear:function(t){e.transferUserInfo={}},focus:function(t){e.clickInputSelectShop()}},model:{value:e.filterTransferShopName,callback:function(t){e.filterTransferShopName=t},expression:"filterTransferShopName"}}),e._v(" "),n("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"success",size:"mini",icon:"el-icon-search"},on:{click:e.handleSearchTransferShopNameList}},[e._v("搜索\n ")])],1),e._v(" "),n("div",{staticClass:"tree-pannel",style:e.userTreeShow?"visibility:visible":"visibility:hidden"},[n("el-tree",{directives:[{name:"loading",rawName:"v-loading",value:e.transferShopLoading,expression:"transferShopLoading"}],ref:"treeData",attrs:{data:e.showTransferShopData,load:e.loadNode,"expand-on-click-node":!1,props:e.defaultProps,"highlight-current":!0,"default-expanded-keys":e.treeDataIds,"filter-node-method":e.filterShopTreeNode,"element-loading-spinner":"el-icon-loading","node-key":"shop_id",draggable:""},on:{"node-click":e.selectedTransferShop,"node-expand":e.handleShopNodeExpand},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.node,i=t.data;return n("span",{staticClass:"custom-tree-node"},[n("span",[e._v(e._s(a.label)+"["+e._s(i.direct-0)+"/"+e._s(i.total-0)+"]")])])}}])})],1)],1)])]),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogTransferShopVisible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.handleTransferShop}},[e._v("确定")])],1)]),e._v(" "),n("el-dialog",{attrs:{visible:e.dialogUserAuthVisible,"close-on-click-modal":!1,title:"门店权限",top:"5vh"},on:{"update:visible":function(t){e.dialogUserAuthVisible=t}}},[n("div",{staticClass:"group-form"},[n("div",{staticClass:"form-item"},[n("div",{staticClass:"f-item-label"},[e._v("设置门店")]),e._v(" "),n("div",{staticClass:"f-item-value"},[n("span",{staticStyle:{color:"#DD4A68","font-weight":"bold"}},[e._v(e._s(e.selectedShopInfo.shop_name))])])]),e._v(" "),e._l(e.authList,function(t,a){return n("div",{key:a},[t.value&&-1!==t.use_business_type.indexOf(parseInt(e.selectedShopInfo.business_type))?n("div",{staticClass:"form-item"},[n("div",{staticClass:"f-item-label"},[e._v(e._s(t.type))]),e._v(" "),n("div",{staticClass:"f-item-value"},e._l(t.list,function(t,a){return n("div",{key:a,staticStyle:{display:"inline-block"}},[t.value?n("el-checkbox",{staticStyle:{"margin-right":"15px"},attrs:{value:-1!=e.UserAuthList.indexOf(t.auth+"")},on:{change:function(a){e.changeAuth(a,t.auth)}}},[e._v("\n "+e._s(t.name)+"\n ")]):e._e()],1)}))]):e._e()])})],2),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogUserAuthVisible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.handleUserAuth}},[e._v("确定")])],1)]),e._v(" "),n("el-dialog",{attrs:{visible:e.dialogAppAuthVisible,"close-on-click-modal":!1,title:"用户权限",top:"5vh"},on:{"update:visible":function(t){e.dialogAppAuthVisible=t}}},[n("div",{staticClass:"group-form"},[n("div",{staticClass:"form-item"},[n("div",{staticClass:"f-item-label"},[e._v("设置门店")]),e._v(" "),n("div",{staticClass:"f-item-value"},[n("span",{staticStyle:{color:"#DD4A68","font-weight":"bold"}},[e._v(e._s(e.selectedShopInfo.shop_name))])])]),e._v(" "),n("div",{staticClass:"form-item"},[n("div",{staticClass:"f-item-label"},[e._v("用户权限")]),e._v(" "),n("div",{staticClass:"f-item-value"},[n("el-checkbox",{model:{value:e.AppAuth,callback:function(t){e.AppAuth=t},expression:"AppAuth"}},[e._v("用户通断电")])],1)])]),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogAppAuthVisible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.handleAppAuth}},[e._v("确定")])],1)]),e._v(" "),n("el-dialog",{attrs:{visible:e.userReturnVisible,"close-on-click-modal":!1,title:"用户退租记录",top:"5vh"},on:{"update:visible":function(t){e.userReturnVisible=t}}},[n("el-form",{staticStyle:{"margin-left":"50px"},attrs:{model:e.userReturnForm,"label-position":"left","label-width":"100px",size:"small"}},[n("el-form-item",{attrs:{label:"设备号",prop:"battery_sn"}},[n("span",[e._v(e._s(e.userReturnForm.battery_sn))])]),e._v(" "),0!=e.userReturnStatusList.length?n("el-form-item",{attrs:{label:"退换货状态",prop:"return_status"}},[n("el-checkbox-group",{attrs:{size:"mini"},model:{value:e.userReturnForm.return_status,callback:function(t){e.$set(e.userReturnForm,"return_status",t)},expression:"userReturnForm.return_status"}},e._l(e.userReturnStatusList,function(e,t){return n("el-checkbox",{key:t,attrs:{label:e,border:""}})}))],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"补充描述",prop:"description"}},[n("el-input",{attrs:{autosize:{minRows:3},type:"textarea",placeholder:"请输入补充描述"},model:{value:e.userReturnForm.description,callback:function(t){e.$set(e.userReturnForm,"description",t)},expression:"userReturnForm.description"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"上传图片",prop:"image_list"}},[n("up-imag-wall",{staticClass:"width",on:{removeImg:e.removeReturnImg},model:{value:e.userReturnForm.image_list,callback:function(t){e.$set(e.userReturnForm,"image_list",t)},expression:"userReturnForm.image_list"}})],1),e._v(" "),e.userReturnForm.rt_pledge_money>0?n("el-form-item",{attrs:{label:"解绑后退押金",prop:"return_pledge_money"}},[n("el-checkbox",{attrs:{label:.01*e.userReturnForm.rt_pledge_money},model:{value:e.userReturnForm.is_return_pledge_money,callback:function(t){e.$set(e.userReturnForm,"is_return_pledge_money",t)},expression:"userReturnForm.is_return_pledge_money"}})],1):e._e()],1),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.userReturnVisible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.userReturnSave}},[e._v("确定")])],1)],1),e._v(" "),n("el-dialog",{attrs:{visible:e.replaceBatteryVisible,"close-on-click-modal":!1,title:"退换货申请",top:"5vh"},on:{"update:visible":function(t){e.replaceBatteryVisible=t}}},[n("el-form",{staticStyle:{"margin-left":"50px"},attrs:{model:e.replaceBatteryForm,"label-position":"left","label-width":"100px",size:"small"}},[n("el-form-item",{attrs:{label:"设备号",prop:"battery_sn"}},[n("span",[e._v(e._s(e.replaceBatteryForm.battery_sn))])]),e._v(" "),n("el-form-item",{attrs:{label:"类型",prop:"type"}},[n("el-select",{attrs:{placeholder:"请选择类型"},model:{value:e.replaceBatteryForm.type,callback:function(t){e.$set(e.replaceBatteryForm,"type",t)},expression:"replaceBatteryForm.type"}},[n("el-option",{attrs:{value:1,label:"退货"}}),e._v(" "),n("el-option",{attrs:{value:2,label:"换货"}})],1)],1),e._v(" "),0!=e.replaceStatusList.length?n("el-form-item",{attrs:{label:"退换货状态",prop:"return_status"}},[n("el-checkbox-group",{attrs:{size:"mini"},model:{value:e.replaceBatteryForm.return_status,callback:function(t){e.$set(e.replaceBatteryForm,"return_status",t)},expression:"replaceBatteryForm.return_status"}},e._l(e.replaceStatusList,function(e,t){return n("el-checkbox",{key:t,attrs:{label:e,border:""}})}))],1):e._e(),e._v(" "),2==e.replaceBatteryForm.type?n("el-form-item",{attrs:{label:"换货型号"}},[n("el-input-number",{staticStyle:{width:"100px"},attrs:{min:1,max:100,label:"",size:"mini","controls-position":"right"},model:{value:e.replaceBatteryForm.exchange_type_v,callback:function(t){e.$set(e.replaceBatteryForm,"exchange_type_v",t)},expression:"replaceBatteryForm.exchange_type_v"}}),e._v(" V\n "),n("el-input-number",{staticStyle:{width:"100px"},attrs:{min:1,max:360,label:"",size:"mini","controls-position":"right"},model:{value:e.replaceBatteryForm.exchange_type_a,callback:function(t){e.$set(e.replaceBatteryForm,"exchange_type_a",t)},expression:"replaceBatteryForm.exchange_type_a"}}),e._v(" AH\n ")],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"补充描述",prop:"description"}},[n("el-input",{attrs:{autosize:{minRows:3},type:"textarea",placeholder:"请输入补充描述"},model:{value:e.replaceBatteryForm.description,callback:function(t){e.$set(e.replaceBatteryForm,"description",t)},expression:"replaceBatteryForm.description"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"上传图片",prop:"image_list"}},[n("up-imag-wall",{staticClass:"width",on:{removeImg:e.removeReplaceImg},model:{value:e.replaceBatteryForm.image_list,callback:function(t){e.$set(e.replaceBatteryForm,"image_list",t)},expression:"replaceBatteryForm.image_list"}})],1)],1),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.replaceBatteryVisible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.replaceBatterySave}},[e._v("确定")])],1)],1),e._v(" "),n("el-dialog",{attrs:{visible:e.additionalVisible,title:"附加信息",top:"5vh"},on:{"update:visible":function(t){e.additionalVisible=t}}},[n("el-form",{ref:"additionalForm",staticStyle:{"margin-left":"50px"},attrs:{model:e.additionalForm,"label-position":"left","label-width":"100px",size:"small"}},e._l(e.additionalForm.data_info,function(t,a){return n("el-form-item",{key:a,attrs:{label:t.key_1}},["是否新电池"!=t.key_1?n("el-input",{attrs:{type:"textarea",placeholder:"请输入"},on:{input:function(t){e.changeInput(t)}},model:{value:t.value_1,callback:function(a){e.$set(t,"value_1",a)},expression:"item.value_1"}}):n("el-select",{attrs:{placeholder:"请选择"},on:{change:function(t){e.changeInput(t)}},model:{value:t.value_1,callback:function(a){e.$set(t,"value_1",a)},expression:"item.value_1"}},[n("el-option",{attrs:{value:"1",label:"全新电池"}}),e._v(" "),n("el-option",{attrs:{value:"2",label:"售后电池"}})],1)],1)})),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.additionalVisible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.clickSaveAdditional}},[e._v("确定")])],1)],1),e._v(" "),n("el-dialog",{attrs:{visible:e.configDialogBindFormVisible},on:{"update:visible":function(t){e.configDialogBindFormVisible=t}}},[n("el-form",{attrs:{model:e.configBindForm,"label-width":"120px"}},[n("el-form-item",{attrs:{label:"换绑前"}},[n("el-input",{staticStyle:{width:"50%"},attrs:{disabled:"",autocomplete:"off"},model:{value:e.configBindForm.old_battery_sn,callback:function(t){e.$set(e.configBindForm,"old_battery_sn",t)},expression:"configBindForm.old_battery_sn"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"换绑后"}},[n("el-input",{staticStyle:{width:"50%"},attrs:{autocomplete:"off"},model:{value:e.configBindForm.battery_sn,callback:function(t){e.$set(e.configBindForm,"battery_sn",t)},expression:"configBindForm.battery_sn"}})],1)],1),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(){e.configDialogBindFormVisible=!1,e.configBindForm.battery_sn=""}}},[e._v("取 消\n ")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.handleSetBindConfig}},[e._v("确 定")])],1)],1),e._v(" "),n("el-dialog",{attrs:{visible:e.dialogSameCabinetBatterySnVisible,title:"重复电池编号",top:"5vh"},on:{"update:visible":function(t){e.dialogSameCabinetBatterySnVisible=t}}},[n("div",{staticClass:"group-form same-battery-list"},e._l(e.saveCabineteBaterySnList,function(t){return n("span",{key:t.battery_sn,staticStyle:{color:"#DD4A68","margin-right":"10px"}},[e._v(e._s(t.battery_sn))])}))]),e._v(" "),n("el-dialog",{attrs:{visible:e.smsVisible,title:"短信批量通知用户续费",top:"5vh"},on:{"update:visible":function(t){e.smsVisible=t}}},[n("div",[n("div",{staticClass:"item-label"},[e._v("该功能会产生短信费用,请确保您的账号有余额")])]),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:e.clickRemindSmsCancel}},[e._v("取消")]),e._v(" "),n("el-button",{on:{click:e.clickRemindSmsList}},[e._v("查看发送短信")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.clickRemindSms}},[e._v("发送")])],1)]),e._v(" "),n("el-dialog",{attrs:{visible:e.batchMoreInfoFormVisible,title:"批量修改附加信息",top:"5vh"},on:{"update:visible":function(t){e.batchMoreInfoFormVisible=t}}},[n("el-form",{ref:"additionalForm",staticStyle:{"margin-left":"50px"},attrs:{"label-position":"left","label-width":"100px",size:"small"}},e._l(e.moreInfoList,function(t,a){return n("el-form-item",{key:a,attrs:{label:t.key}},["是否新电池"!=t.key?n("el-input",{attrs:{type:"textarea",placeholder:"请输入"},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"item.value"}}):n("el-select",{attrs:{placeholder:"请选择"},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"item.value"}},[n("el-option",{attrs:{value:"1",label:"全新电池"}}),e._v(" "),n("el-option",{attrs:{value:"2",label:"售后电池"}})],1)],1)})),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.batchMoreInfoFormVisible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.clickSaveBatchMoreInfo}},[e._v("确定")])],1)],1),e._v(" "),n("el-dialog",{attrs:{visible:e.configDialogFormVisible,title:"修改"},on:{"update:visible":function(t){e.configDialogFormVisible=t}}},[n("el-form",{attrs:{"label-width":"120px"}},[n("el-form-item",{attrs:{label:"极速电池编号"}},[n("el-input",{staticStyle:{width:"50%"},model:{value:e.extra_sn_info.extra_sn,callback:function(t){e.$set(e.extra_sn_info,"extra_sn",t)},expression:"extra_sn_info.extra_sn"}})],1)],1),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.configDialogFormVisible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.handleSetConfig}},[e._v("确 定")])],1)],1),e._v(" "),n("el-dialog",{attrs:{visible:e.menuDialogVisible,"close-on-click-modal":!1,title:"编辑列",top:"5vh"},on:{"update:visible":function(t){e.menuDialogVisible=t}}},[n("div",{staticClass:"group-form"},e._l(e.headerShopList,function(t){return n("el-checkbox",{key:t,attrs:{label:t.label},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"item.value"}})})),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.menuDialogVisible=!1}}},[e._v("取消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.clickSubmitMenuData}},[e._v("确定")])],1)]),e._v(" "),n("el-dialog",{staticStyle:{"text-align":"center",margin:"0 auto"},attrs:{visible:e.visibleStoreCode,"close-on-click-modal":!1,title:"门店二维码",width:"250px"},on:{"update:visible":function(t){e.visibleStoreCode=t}}},[n("img",{staticStyle:{width:"200px",height:"200px"},attrs:{src:e.storeCode,alt:""}}),e._v(" "),n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.refreshQRCode}},[e._v("刷新")])],1)]),e._v(" "),n("batch-day",{attrs:{battery_sns:e.batchEditBatteryForm.batList,visible:e.batchDayDialogVisible},on:{"update:visible":function(t){e.batchDayDialogVisible=t},handleRefreshData:e.handleRefreshData}}),e._v(" "),e.$refs.table&&e.$refs.table.layout.scrollX?n("scrollbar",{attrs:{size:e.$refs.table?e.$refs.table.layout.bodyWidth:0,page:e.$refs.table?e.$refs.table.$el.offsetWidth:0},on:{input:function(t){e.$refs.table.bodyWrapper.scrollLeft=t}}}):e._e()],1)},[],!1,null,"673e0034",null));Ve.options.__file="ShopList.vue";t.default=Ve.exports},Wy7p:function(e,t,a){"use strict";var n=a("526o");a.n(n).a},XZVw:function(e,t,a){"use strict";var n=a("E1y3");a.n(n).a},XuQd:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])},"Y/yz":function(e,t,a){var n=a("Y9O+");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,a("SZ7m").default)("5018eb88",n,!0,{})},Y3Pe:function(e,t,a){var n=a("Rase");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,a("SZ7m").default)("33e5611c",n,!0,{})},"Y9O+":function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,"\n.autoAddressClass {\nli {\ni.el-icon-search {\n margin-top: 11px;\n}\n.mgr10 {\n margin-right: 10px;\n}\n.title {\n text-overflow: ellipsis;\n overflow: hidden;\n}\n.address {\n line-height: 1;\n font-size: 12px;\n color: #b4b4b4;\n margin-bottom: 5px;\n}\n}\n}\n",""])},YM9J:function(e,t,a){var n=a("hGRF");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,a("SZ7m").default)("17cfabad",n,!0,{})},a3IR:function(e,t,a){"use strict";var n=a("4FMy");a.n(n).a},bCxp:function(e,t,a){var n=a("3GZP");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,a("SZ7m").default)("b17ea0cc",n,!0,{})},bIh1:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABsElEQVQ4T41SMUsjURicee6prY2Fgq1gVhQOdnNioVb+AbVQEBsRC8/uduHgEhDdw0ItLQ5EODjsLQKCaZQkCqJZBfFa4aorRTF5n+yabPbWyOXBwnuz88338c0QTY57mba1AYta21DUAjlpo3GyPnDqJ+mMA+6V9UkU1wBMNBMW8IdG9eumefan/j8ScMr2AYipZoVvMJGsN1jKBHgo4N7Yq6Kx9Q9ROA7KcQ3LQ5iNvSGQye9mKcfM75Hux6fqBQQ9cQHPLNLxbXlPAILbjk5YdH1rXsC9ZHdvsJB3yumxN+M3pgIo00GXbQCfE8S8NoxZVakcRbhwGZRvAGKidPjFty8IDCc7acPoVZXKfQ2/hXApvoMavhdM8BdAV2SLVmGHaru600/PHXX8A9v66ndROh/eBYeBwC8AMy3ZlyCRXKdbTq8IZScpkHTBM4vj4VLjS9RcoHNlf4TCeYsTxPPwAKrRMEiOb+8CWGxR5JVGyXipUrYR5UZo/qtDILdhFiejKNcrnLKVARl4/f4h57xU4WfkWpLpXKdnoWUCRH/4aRGQ1wBuWOX+xlChGK95AZ0YpH9U8Nc6AAAAAElFTkSuQmCC"},clrU:function(e,t,a){"use strict";var n=a("4d7F"),i=a.n(n),o=a("vDqi"),r=a.n(o),s=a("XJYT"),l=a("Q2AE"),c=a("X4fA"),d=r.a.create({baseURL:"https://bmsapi.bms16.com/",timeout:15e3});d.interceptors.request.use(function(e){return l.a.getters.token&&(e.headers["X-Token"]=Object(c.b)(),e.params={token:Object(c.a)()}),e},function(e){i.a.reject(e)}),d.interceptors.response.use(function(e){return e},function(e){return Object(s.Message)({message:e.message,type:"error",duration:5e3}),i.a.reject(e)}),t.a=d},dcuZ:function(e,t,a){"use strict";var n=a("zE5f");a.n(n).a},eAUQ:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])},erK2:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])},f8G5:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])},gVFR:function(e,t,a){var n=a("f8G5");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,a("SZ7m").default)("5d48199a",n,!0,{})},hGRF:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".tips[data-v-2c54d822] {\n color: red;\n}\n.mark[data-v-2c54d822] {\n color: #e6a23c;\n font-size: 12px;\n}\n.blue[data-v-2c54d822] {\n color: #409EFF;\n}\n.expire_notice[data-v-2c54d822] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.selectAll[data-v-2c54d822] {\n line-height: 36px;\n margin-right: 15px;\n}\n.hireChangeShop[data-v-2c54d822] {\n color: #606266;\n}\n.text-style[data-v-2c54d822] {\n color: #606266;\n font-size: 14px;\n}\n.charge-form-item[data-v-2c54d822] {\n margin-top: 20px;\n}\n.charge-form-item[data-v-2c54d822] .el-form-item__content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n",""])},iJd5:function(e,t,a){"use strict";a.d(t,"d",function(){return r}),a.d(t,"c",function(){return s}),a.d(t,"a",function(){return l}),a.d(t,"f",function(){return c}),a.d(t,"b",function(){return d}),a.d(t,"e",function(){return p});var n=a("EJiy"),i=a.n(n),o=function(e){var t={},a=[];return e.forEach(function(e){var n=e,o=e,r=e;"object"===(void 0===e?"undefined":i()(e))&&(n=e.v,o=e.t,r=e.e),a.push({value:n,text:o,type:r}),t[n]=o}),{arr:a,obj:t}},r=10,s=o([{t:"计时",v:"1"},{t:"计量",v:"2"},{t:"按功率",v:"3"}]),l=o([{t:"空闲",v:"NORMAL"},{t:"禁用",v:"DISABLED"},{t:"充电中",v:"CHARGING"},{t:"故障",v:"FAULT"}]),c=o([{t:"微信支付",v:0},{t:"线下支付",v:1},{t:"支付宝支付",v:2},{t:"钱客多支付",v:3},{t:"富友支付",v:4},{t:"支付宝周期扣款",v:5},{t:"泰隆支付",v:6},{t:"拉卡拉支付",v:7},{t:"paypal支付",v:8},{t:"钱包支付",v:9},{t:"充电座钱包",v:10},{t:"订单逾期续费",v:11},{t:"蚂蚁代扣",v:14},{t:"充电桩钱包",v:15}]),d=o([{t:"全部",v:-1},{t:"未开始",v:0},{t:"开启充电操作中",v:1},{t:"充电中",v:2},{t:"开启充电失败",v:3},{t:"停止充电操作中",v:4},{t:"停止充电失败",v:5},{t:"充电结束",v:6}]),p=o([{t:"待支付",v:"WAIT_PAY",e:"warning"},{t:"已支付",v:"SUCCESS_PAY",e:"success"},{t:"支付失败",v:"FAIL_PAY",e:"danger"},{t:"取消支付",v:"CANCEL_PAY",e:"info"}])},otB3:function(e,t,a){"use strict";var n=a("Pc0J");a.n(n).a},p6wo:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAB40lEQVQ4T6WTTWjUQBTH/y8fu7IIYhGl1xY9KqI3ERWSFGnrxQ8UBMGTeiitTerF0i16sUlt6aF6EgRB8eNiFWkSUBFviuhRqdeiSEWQ4u5O8mQSV5Lu1ItzmZk3//8vb968EP5zkMrP9cFaq/brBIB9f85fm6sb7lN9YXWtvgPQnLZ2I8UDAvUWxQxegobjldH4XTFeArDvbBXgL1LAxLcAbT4XpxeI6axcGaBt5IVf25ASQPjOQwYfJdApwwvvFb8kfOckg+8S6JHhhceUgJZv/yDgpeFFR1S1Eb79mIEDphdt6gA0A2cPMb8BY9oci1wpEIFzJ0vbDU/LuTVlByCMMtHeihu+lbG/V+Ape7sgfATw1PSigcwQWAtyNt14MNv79hMA/QZjB41Fn8qAucPVpCE+M7DF0LVuuri4UnqF631dIkmXCfimV40eGnrWKAHkpnHNqmsaTYBo3HTDq0VAK3Aug/lKmvJk9VJcVxaRZ/q6E8GvGNzL4JGKF89KYdO3hgk0Q6Al3aD9NLK4rATk97QOAvQ8S4+1M3lPpLdzAx8yvfjFuo3UPmhD6GfeubyxpjR31KBIToZ2ncPK9xtZrGvzeX3u/U1Vbyh/prYwGd45Idf67IdJlfmfGaxnWBv/DcNhqhFKQFrPAAAAAElFTkSuQmCC"},"pfo/":function(e,t,a){"use strict";var n=a("z3Yh");a.n(n).a},pt9l:function(e,t,a){"use strict";var n=a("gVFR");a.n(n).a},qF71:function(e,t,a){"use strict";var n=a("5Slb");a.n(n).a},qlWw:function(e,t,a){"use strict";var n=a("66h/");a.n(n).a},vIPk:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])},wTOG:function(e,t,a){"use strict";var n=a("Y/yz");a.n(n).a},wd6L:function(e,t,a){"use strict";a.d(t,"j",function(){return i}),a.d(t,"i",function(){return o}),a.d(t,"c",function(){return r}),a.d(t,"b",function(){return s}),a.d(t,"a",function(){return l}),a.d(t,"h",function(){return c}),a.d(t,"d",function(){return d}),a.d(t,"f",function(){return p}),a.d(t,"e",function(){return _}),a.d(t,"g",function(){return m});var n=a("t3Un");function i(e){return Object(n.a)({url:"?r=bms-warning/get-device-setting",method:"post",data:e})}function o(e){return Object(n.a)({url:"?r=bms-warning/device-setting",method:"post",data:e})}function r(e){return Object(n.a)({url:"?r=bms-warning/coin-product",method:"post",data:e})}function s(e){return Object(n.a)({url:"?r=bms-warning/coin-credit",method:"post",data:e})}function l(e){return Object(n.a)({url:"?r=bms-warning/alarm-summary",method:"post",data:e})}function c(e){return Object(n.a)({url:"?r=bms-warning/alarm-list",method:"post",data:e})}function d(e){return Object(n.a)({url:"?r=bms-warning/coin",method:"post",data:e})}function p(e){return Object(n.a)({url:"?r=bms-warning/coin-order",method:"post",data:e})}function _(e){return Object(n.a)({url:"?r=bms-warning/coin-history",method:"post",data:e})}function m(e){return Object(n.a)({url:"?r=bms-warning/order-query",method:"post",data:e})}},xLwT:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABKklEQVQ4T6WTP0/CUBTFz21lEwMFmRyI9hn4BDrqF3AxcTPGsW0k0cXZ0UUTY8viZnQi+hHkW2B4DpI4KS1E3GrfNWA6kNQ/pW+97/zOPXnvEDIeyqjHjwDDlWcgHE4MGOeBI46SzKYA5dPHvMrrHYBDZiwRkTbRMysivACU00ZRvX9cG8WwKYDhSWbAJcBJchvPOEJreCDavwHaA1tsxhfKTbnRt74FRU8+cISTfwMKntzSgSvfFpXUgEX3dV7RYB2gbd9etVIDSpfdNWhaTYH3iKgXWOZ+qghFV9pEVFVz+q0eqmXfWblLBRivXPLkDYhavmXep44QC8JP7Hw0xNtMAONCLgQN8R4/6Z8RCs1OVePcExjXiR0h7CoKzaFVf078SLMUK3MbvwBTGsERDw+ogwAAAABJRU5ErkJggg=="},z3Yh:function(e,t,a){var n=a("AMIE");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,a("SZ7m").default)("5cf99f11",n,!0,{})},zE5f:function(e,t,a){var n=a("Gi9F");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,a("SZ7m").default)("aef59054",n,!0,{})},zgit:function(e,t,a){var n=a("7zbF");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,a("SZ7m").default)("7e66c81c",n,!0,{})}}]);
|