21.f5c0e3e21a43cabec0a5.js 32 KB

1
  1. webpackJsonp([21],{CkOy:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("fZjL"),o=n.n(i),a=n("Dd8w"),r=n.n(a),s=n("G+dR"),l=n("38N9"),d=n.n(l),h=n("hky6"),u=(n("jQQ7"),n("MJLE")),c=n.n(u),f={name:"goodsLend",data:function(){return{warehouseSn:"",warehouseList:[],loading:!1,params:{page_no:1,page_size:10},advancedForm:{},tableData:"",dialogVisible:!1,multipleSelection:[],goodsLendForm:{},codeList:[],title:"",dialogVisibleForm:!1,addLendForm:{},rules:{warehouse_id:[{required:!0,message:"请选择仓库",trigger:"change"}],name:[{required:!0,message:"请选择输入仓库名称",trigger:"blur"}],code:[{required:!0,message:"请选择输入库位号",trigger:"blur"}],type:[{required:!0,message:"请选择仓库类型",trigger:"change"}]},typeList:[]}},mounted:function(){this.GET_GoodsLendList(),this.GET_DeptList()},watch:{$route:{immediate:!0,handler:function(t){t.query.status&&(this.params.status=t.query.status,this.advancedForm.status=t.query.status),this.params.page_no=1,this.GET_GoodsLendList()}}},methods:{gowareHouse:function(){this.dialogVisibleForm=!1,this.$router.push({name:"warehouseList"})},selWarehouse:function(t){var e=this.warehouseList.filter(function(e){return e.id===t})[0];this.warehouseSn=e.sn},lendCommit:function(){var t=this;this.$refs.addLendForm.validate(function(e){if(!e)return t.$message.error("提交失败"),!1;"新增"===t.title?(t.addLendForm.code=t.warehouseSn+"-"+t.addLendForm.code,s.c(t.addLendForm).then(function(e){t.$message.success("添加成功!"),t.dialogVisibleForm=!1,t.warehouseSn="",t.addLendForm={},t.GET_GoodsLendList()})):"编辑"===t.title&&s.m(t.addLendForm).then(function(e){t.$message.success("修改成功!"),t.dialogVisibleForm=!1,t.addLendForm={},t.GET_GoodsLendList()})})},addHandleCancle:function(){this.dialogVisibleForm=!1,this.addLendForm={}},handleCancle:function(){this.dialogVisible=!1,this.codeList=[]},creatQrCode:function(){var t=this;this.$nextTick(function(){t.codeList.forEach(function(e,n){t.$refs.codeItem[n].innerHTML="";new c.a(t.$refs.codeItem[n],{text:e,width:100,height:100,render:"table",colorDark:"#333333",colorLight:"#ffffff",correctLevel:c.a.CorrectLevel.H})})},500)},handleEditGoodsLend:function(t){console.log(t),this.title="编辑",this.addLendForm=t,this.dialogVisibleForm=!0},handleReturnGoodsLend:function(t){var e=this;this.$confirm("确定要删除吗?","提示",{type:"warning"}).then(function(){s.f({id:t.id}).then(function(){e.$message.success("删除成功!"),e.GET_GoodsLendList()})}).catch(function(){})},statusFilter:function(t){var e=this.typeList.filter(function(e){return e.value===t});return 0!==e.length?e[0].label:""},handleConfirmGoodsLend:function(){if(!this.multipleSelection||!this.multipleSelection.length)return this.$message.error("请先选择!");var t=this.multipleSelection.map(function(t){return t.id});this.codeList=t,this.dialogVisible=!0,this.creatQrCode()},GET_DeptList:function(){var t=this;h.u().then(function(e){t.warehouseList=e,console.log(e)}),h.v({dictType:"Warehouse_location_type",page_no:1,page_size:50}).then(function(e){t.typeList=e.data})},handlePrintGoodsLend:function(){d()({printable:"deliverySheet",type:"html",targetStyles:["*"],ignoreElements:["no-logs","goods-image","no-btn"]})},handleDeleteGoodsLend:function(){var t=this;if(!this.multipleSelection||!this.multipleSelection.length)return this.$message.error("请先选择!");this.$confirm("确定要删除这些借出单吗?","提示",{type:"warning"}).then(function(){var e=t.multipleSelection.map(function(t){return t.id});s.e(e).then(function(){t.$message.success("删除成功!"),t.GET_GoodsLendList()})}).catch(function(){})},handleSelectionChange:function(t){this.multipleSelection=t},handlePageSizeChange:function(t){this.params.page_size=t,this.GET_GoodsLendList()},handlePageCurrentChange:function(t){this.params.page_no=t,this.GET_GoodsLendList()},handleAddGoodsLend:function(){this.title="新增",this.dialogVisibleForm=!0},handlePrintGoodsLendDialog:function(t){this.dialogVisible=!0,this.codeList.push(t.id),this.creatQrCode()},GET_GoodsLendDetail:function(t){var e=this;s.h(t).then(function(t){if(e.goodsLendForm=t,t.product_list&&t.product_list.length){var n="";t.product_list.forEach(function(t){n+=t.product_name+"、"})}e.goodsLendForm.illustrate=n})},searchEvent:function(t){var e=this;this.params=r()({},this.params,{sn:t}),o()(this.advancedForm).forEach(function(t){return delete e.params[t]}),this.params.page_no=1,this.GET_GoodsLendList()},advancedSearchEvent:function(){this.params=r()({},this.params,this.advancedForm),delete this.params.start_time,delete this.params.end_time,this.advancedForm.goodsLend_time_range&&(this.params.start_time=parseInt(Number(this.advancedForm.goodsLend_time_range[0])/1e3),this.params.end_time=parseInt(Number(this.advancedForm.goodsLend_time_range[1])/1e3)),delete this.params.goodsLend_time_range,this.params.page_no=1,this.GET_GoodsLendList()},GET_GoodsLendList:function(){var t=this;this.loading=!0,s.k(this.params).then(function(e){t.loading=!1,t.tableData=e}).catch(function(){t.loading=!1})}}},g=n("XyMi");var p=function(t){n("uR03")},m=Object(g.a)(f,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("en-table-layout",{attrs:{tableData:t.tableData.data,loading:t.loading},on:{"selection-change":t.handleSelectionChange}},[n("div",{staticClass:"inner-toolbar",attrs:{slot:"toolbar"},slot:"toolbar"},[n("div",{staticClass:"toolbar-btns"},[t.checkPermission(["goodsLend:add"])?n("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.handleAddGoodsLend}},[t._v("新增")]):t._e(),t._v(" "),t.checkPermission(["goodsLend:del"])?n("el-button",{attrs:{size:"mini",type:"danger",disabled:0===t.multipleSelection.length},on:{click:function(e){return t.handleDeleteGoodsLend()}}},[t._v("删除")]):t._e(),t._v(" "),t.checkPermission(["goodsLend:confirm"])?n("el-button",{attrs:{type:"success",size:"mini",disabled:0===t.multipleSelection.length},on:{click:t.handleConfirmGoodsLend}},[t._v("打印")]):t._e()],1),t._v(" "),n("div",{staticClass:"toolbar-search"},[n("en-table-search",{attrs:{placeholder:"请输入借出单编号",advanced:"",advancedWidth:"465"},on:{search:t.searchEvent,advancedSearch:t.advancedSearchEvent}},[n("template",{slot:"advanced-content"},[n("el-form",{ref:"advancedForm",attrs:{model:t.advancedForm,"label-width":"90px"}},[n("el-form-item",{attrs:{label:"仓库"}},[n("el-cascader",{attrs:{options:t.warehouseList,props:{label:"name",value:"id",emitPath:!1,checkStrictly:!0},clearable:""},model:{value:t.advancedForm.dept_id,callback:function(e){t.$set(t.advancedForm,"dept_id",e)},expression:"advancedForm.dept_id"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"状态"}},[n("el-select",{model:{value:t.advancedForm.status,callback:function(e){t.$set(t.advancedForm,"status",e)},expression:"advancedForm.status"}},[n("el-option",{key:"NEW",attrs:{label:"新创建",value:"NEW"}}),t._v(" "),n("el-option",{key:"CONFIRMED",attrs:{label:"已确认",value:"CONFIRMED"}}),t._v(" "),n("el-option",{key:"RETURNED",attrs:{label:"已归还",value:"RETURNED"}})],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"时间"}},[n("el-date-picker",{attrs:{type:"daterange",align:"center",editable:!1,"unlink-panels":"",clearable:!1,"default-time":["00:00:00","23:59:59"],"range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"timestamp","picker-options":{disabledDate:function(t){return t.getTime()-1>=new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()).getTime()+864e5-1},shortcuts:t.MixinPickerShortcuts}},model:{value:t.advancedForm.goodsLend_time_range,callback:function(e){t.$set(t.advancedForm,"goodsLend_time_range",e)},expression:"advancedForm.goodsLend_time_range"}})],1)],1)],1)],2)],1)]),t._v(" "),n("template",{slot:"table-columns"},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),t._v(" "),n("el-table-column",{attrs:{prop:"warehouse.sn",label:"仓库编号"}}),t._v(" "),n("el-table-column",{attrs:{prop:"warehouse.name",label:"仓库名称"}}),t._v(" "),n("el-table-column",{attrs:{prop:"code",label:"库位号"}}),t._v(" "),n("el-table-column",{attrs:{prop:"type",label:"库位区域"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t.statusFilter(e.row.type)))]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"intro",label:"库位说明"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作",width:"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.checkPermission(["goodsLend:edit"])?n("el-button",{attrs:{size:"mini"},on:{click:function(n){return t.handleEditGoodsLend(e.row)}}},[t._v("编辑")]):t._e(),t._v(" "),t.checkPermission(["goodsLend:del"])?n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(n){return t.handleReturnGoodsLend(e.row)}}},[t._v("删除")]):t._e(),t._v(" "),t.checkPermission(["goodsLend:print"])?n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(n){return t.handlePrintGoodsLendDialog(e.row)}}},[t._v("打印")]):t._e()]}}])})],1),t._v(" "),t.tableData?n("el-pagination",{attrs:{slot:"pagination","current-page":t.tableData.page_no,"page-sizes":[10,20,50,100],"page-size":t.tableData.page_size,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.data_total},on:{"size-change":t.handlePageSizeChange,"current-change":t.handlePageCurrentChange},slot:"pagination"}):t._e()],2),t._v(" "),n("el-dialog",{attrs:{title:"打印预览",visible:t.dialogVisible,width:"940px",center:""},on:{"update:visible":function(e){t.dialogVisible=e},close:t.handleCancle}},[n("el-button",{staticClass:"print",attrs:{size:"mini",type:"primary"},on:{click:t.handlePrintGoodsLend}},[t._v("打印")]),t._v(" "),n("div",{staticStyle:{width:"900px"},attrs:{id:"deliverySheet"}},t._l(t.codeList,function(e,i){return n("div",{key:i,staticClass:"tips-t"},[n("div",[n("div",{ref:"codeItem",refInFor:!0,staticClass:"qrcode-pic"}),t._v(" "),n("div",{staticStyle:{"margin-top":"10px","font-size":"12px"}},[t._v(t._s(e))])])])}),0)],1),t._v(" "),n("el-dialog",{attrs:{title:t.title,visible:t.dialogVisibleForm,width:"940px",center:""},on:{"update:visible":function(e){t.dialogVisibleForm=e},close:t.addHandleCancle}},[n("el-form",{ref:"addLendForm",attrs:{model:t.addLendForm,rules:t.rules,"label-width":"90px"}},[n("el-form-item",{attrs:{label:"仓库",prop:"warehouse_id"}},[n("el-select",{attrs:{clearable:""},on:{change:t.selWarehouse},model:{value:t.addLendForm.warehouse_id,callback:function(e){t.$set(t.addLendForm,"warehouse_id",e)},expression:"addLendForm.warehouse_id"}},t._l(t.warehouseList,function(t){return n("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1),t._v(" "),0==t.warehouseList.length?n("span",{staticStyle:{color:"red","margin-left":"20px",cursor:"pointer","text-decoration":"underline"},on:{click:t.gowareHouse}},[t._v("新增仓库")]):t._e()],1),t._v(" "),n("el-form-item",{attrs:{label:"库位号",prop:"code"}},[n("el-input",{staticStyle:{width:"270px"},attrs:{maxlength:"12",placeholder:"请输入库位号"},model:{value:t.addLendForm.code,callback:function(e){t.$set(t.addLendForm,"code",e)},expression:"addLendForm.code"}},[n("template",{slot:"prepend"},[t._v(t._s(t.warehouseSn)+"-")])],2)],1),t._v(" "),n("el-form-item",{attrs:{label:"库位区域",prop:"type"}},[n("el-select",{attrs:{clearable:""},model:{value:t.addLendForm.type,callback:function(e){t.$set(t.addLendForm,"type",e)},expression:"addLendForm.type"}},t._l(t.typeList,function(t){return n("el-option",{key:t.id,attrs:{label:t.label,value:t.value}})}),1)],1),t._v(" "),n("el-form-item",{attrs:{label:"库位说明"}},[n("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入内容"},model:{value:t.addLendForm.intro,callback:function(e){t.$set(t.addLendForm,"intro",e)},expression:"addLendForm.intro"}})],1)],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:t.addHandleCancle}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.lendCommit}},[t._v("确 定")])],1)],1)],1)},[],!1,p,"data-v-a7f5ece0",null);e.default=m.exports},MJLE:function(t,e,n){var i,o;o=function(){function t(t){this.mode=n.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,i=this.data.length;e<i;e++){var o=[],a=this.data.charCodeAt(e);a>65536?(o[0]=240|(1835008&a)>>>18,o[1]=128|(258048&a)>>>12,o[2]=128|(4032&a)>>>6,o[3]=128|63&a):a>2048?(o[0]=224|(61440&a)>>>12,o[1]=128|(4032&a)>>>6,o[2]=128|63&a):a>128?(o[0]=192|(1984&a)>>>6,o[1]=128|63&a):o[0]=a,this.parsedData.push(o)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function e(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}t.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,n=this.parsedData.length;e<n;e++)t.put(this.parsedData[e],8)}},e.prototype={addData:function(e){var n=new t(e);this.dataList.push(n),this.dataCache=null},isDark:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,n){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++){this.modules[i]=new Array(this.moduleCount);for(var o=0;o<this.moduleCount;o++)this.modules[i][o]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,n),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=e.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,n)},setupPositionProbePattern:function(t,e){for(var n=-1;n<=7;n++)if(!(t+n<=-1||this.moduleCount<=t+n))for(var i=-1;i<=7;i++)e+i<=-1||this.moduleCount<=e+i||(this.modules[t+n][e+i]=0<=n&&n<=6&&(0==i||6==i)||0<=i&&i<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=i&&i<=4)},getBestMaskPattern:function(){for(var t=0,e=0,n=0;n<8;n++){this.makeImpl(!0,n);var i=f.getLostPoint(this);(0==n||t>i)&&(t=i,e=n)}return e},createMovieClip:function(t,e,n){var i=t.createEmptyMovieClip(e,n);this.make();for(var o=0;o<this.modules.length;o++)for(var a=1*o,r=0;r<this.modules[o].length;r++){var s=1*r;this.modules[o][r]&&(i.beginFill(0,100),i.moveTo(s,a),i.lineTo(s+1,a),i.lineTo(s+1,a+1),i.lineTo(s,a+1),i.endFill())}return i},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)},setupPositionAdjustPattern:function(){for(var t=f.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var n=0;n<t.length;n++){var i=t[e],o=t[n];if(null==this.modules[i][o])for(var a=-2;a<=2;a++)for(var r=-2;r<=2;r++)this.modules[i+a][o+r]=-2==a||2==a||-2==r||2==r||0==a&&0==r}},setupTypeNumber:function(t){for(var e=f.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var i=!t&&1==(e>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=i}for(n=0;n<18;n++){i=!t&&1==(e>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=i}},setupTypeInfo:function(t,e){for(var n=this.errorCorrectLevel<<3|e,i=f.getBCHTypeInfo(n),o=0;o<15;o++){var a=!t&&1==(i>>o&1);o<6?this.modules[o][8]=a:o<8?this.modules[o+1][8]=a:this.modules[this.moduleCount-15+o][8]=a}for(o=0;o<15;o++){a=!t&&1==(i>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=a:o<9?this.modules[8][15-o-1+1]=a:this.modules[8][15-o-1]=a}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var n=-1,i=this.moduleCount-1,o=7,a=0,r=this.moduleCount-1;r>0;r-=2)for(6==r&&r--;;){for(var s=0;s<2;s++)if(null==this.modules[i][r-s]){var l=!1;a<t.length&&(l=1==(t[a]>>>o&1)),f.getMask(e,i,r-s)&&(l=!l),this.modules[i][r-s]=l,-1==--o&&(a++,o=7)}if((i+=n)<0||this.moduleCount<=i){i-=n,n=-n;break}}}},e.PAD0=236,e.PAD1=17,e.createData=function(t,n,i){for(var o=_.getRSBlocks(t,n),a=new v,r=0;r<i.length;r++){var s=i[r];a.put(s.mode,4),a.put(s.getLength(),f.getLengthInBits(s.mode,t)),s.write(a)}var l=0;for(r=0;r<o.length;r++)l+=o[r].dataCount;if(a.getLengthInBits()>8*l)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+8*l+")");for(a.getLengthInBits()+4<=8*l&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=8*l||(a.put(e.PAD0,8),a.getLengthInBits()>=8*l));)a.put(e.PAD1,8);return e.createBytes(a,o)},e.createBytes=function(t,e){for(var n=0,i=0,o=0,a=new Array(e.length),r=new Array(e.length),s=0;s<e.length;s++){var l=e[s].dataCount,d=e[s].totalCount-l;i=Math.max(i,l),o=Math.max(o,d),a[s]=new Array(l);for(var h=0;h<a[s].length;h++)a[s][h]=255&t.buffer[h+n];n+=l;var u=f.getErrorCorrectPolynomial(d),c=new m(a[s],u.getLength()-1).mod(u);r[s]=new Array(u.getLength()-1);for(h=0;h<r[s].length;h++){var g=h+c.getLength()-r[s].length;r[s][h]=g>=0?c.get(g):0}}var p=0;for(h=0;h<e.length;h++)p+=e[h].totalCount;var _=new Array(p),v=0;for(h=0;h<i;h++)for(s=0;s<e.length;s++)h<a[s].length&&(_[v++]=a[s][h]);for(h=0;h<o;h++)for(s=0;s<e.length;s++)h<r[s].length&&(_[v++]=r[s][h]);return _};for(var n={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},o={L:1,M:0,Q:3,H:2},a=0,r=1,s=2,l=3,d=4,h=5,u=6,c=7,f={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;f.getBCHDigit(e)-f.getBCHDigit(f.G15)>=0;)e^=f.G15<<f.getBCHDigit(e)-f.getBCHDigit(f.G15);return(t<<10|e)^f.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;f.getBCHDigit(e)-f.getBCHDigit(f.G18)>=0;)e^=f.G18<<f.getBCHDigit(e)-f.getBCHDigit(f.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return f.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,n){switch(t){case a:return(e+n)%2==0;case r:return e%2==0;case s:return n%3==0;case l:return(e+n)%3==0;case d:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case h:return e*n%2+e*n%3==0;case u:return(e*n%2+e*n%3)%2==0;case c:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new m([1],0),n=0;n<t;n++)e=e.multiply(new m([1,g.gexp(n)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case n.MODE_NUMBER:return 10;case n.MODE_ALPHA_NUM:return 9;case n.MODE_8BIT_BYTE:case n.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case n.MODE_NUMBER:return 12;case n.MODE_ALPHA_NUM:return 11;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case n.MODE_NUMBER:return 14;case n.MODE_ALPHA_NUM:return 13;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),n=0,i=0;i<e;i++)for(var o=0;o<e;o++){for(var a=0,r=t.isDark(i,o),s=-1;s<=1;s++)if(!(i+s<0||e<=i+s))for(var l=-1;l<=1;l++)o+l<0||e<=o+l||0==s&&0==l||r==t.isDark(i+s,o+l)&&a++;a>5&&(n+=3+a-5)}for(i=0;i<e-1;i++)for(o=0;o<e-1;o++){var d=0;t.isDark(i,o)&&d++,t.isDark(i+1,o)&&d++,t.isDark(i,o+1)&&d++,t.isDark(i+1,o+1)&&d++,0!=d&&4!=d||(n+=3)}for(i=0;i<e;i++)for(o=0;o<e-6;o++)t.isDark(i,o)&&!t.isDark(i,o+1)&&t.isDark(i,o+2)&&t.isDark(i,o+3)&&t.isDark(i,o+4)&&!t.isDark(i,o+5)&&t.isDark(i,o+6)&&(n+=40);for(o=0;o<e;o++)for(i=0;i<e-6;i++)t.isDark(i,o)&&!t.isDark(i+1,o)&&t.isDark(i+2,o)&&t.isDark(i+3,o)&&t.isDark(i+4,o)&&!t.isDark(i+5,o)&&t.isDark(i+6,o)&&(n+=40);var h=0;for(o=0;o<e;o++)for(i=0;i<e;i++)t.isDark(i,o)&&h++;return n+=10*(Math.abs(100*h/e/e-50)/5)}},g={glog:function(t){if(t<1)throw new Error("glog("+t+")");return g.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return g.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},p=0;p<8;p++)g.EXP_TABLE[p]=1<<p;for(p=8;p<256;p++)g.EXP_TABLE[p]=g.EXP_TABLE[p-4]^g.EXP_TABLE[p-5]^g.EXP_TABLE[p-6]^g.EXP_TABLE[p-8];for(p=0;p<255;p++)g.LOG_TABLE[g.EXP_TABLE[p]]=p;function m(t,e){if(void 0==t.length)throw new Error(t.length+"/"+e);for(var n=0;n<t.length&&0==t[n];)n++;this.num=new Array(t.length-n+e);for(var i=0;i<t.length-n;i++)this.num[i]=t[i+n]}function _(t,e){this.totalCount=t,this.dataCount=e}function v(){this.buffer=[],this.length=0}m.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),n=0;n<this.getLength();n++)for(var i=0;i<t.getLength();i++)e[n+i]^=g.gexp(g.glog(this.get(n))+g.glog(t.get(i)));return new m(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=g.glog(this.get(0))-g.glog(t.get(0)),n=new Array(this.getLength()),i=0;i<this.getLength();i++)n[i]=this.get(i);for(i=0;i<t.getLength();i++)n[i]^=g.gexp(g.glog(t.get(i))+e);return new m(n,0).mod(t)}},_.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],_.getRSBlocks=function(t,e){var n=_.getRsBlockTable(t,e);if(void 0==n)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var i=n.length/3,o=[],a=0;a<i;a++)for(var r=n[3*a+0],s=n[3*a+1],l=n[3*a+2],d=0;d<r;d++)o.push(new _(s,l));return o},_.getRsBlockTable=function(t,e){switch(e){case o.L:return _.RS_BLOCK_TABLE[4*(t-1)+0];case o.M:return _.RS_BLOCK_TABLE[4*(t-1)+1];case o.Q:return _.RS_BLOCK_TABLE[4*(t-1)+2];case o.H:return _.RS_BLOCK_TABLE[4*(t-1)+3];default:return}},v.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var n=0;n<e;n++)this.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var L=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function b(){var t=!1,e=navigator.userAgent;if(/android/i.test(e)){t=!0;var n=e.toString().match(/android ([0-9]\.[0-9])/i);n&&n[1]&&(t=parseFloat(n[1]))}return t}var w=function(){var t=function(t,e){this._el=t,this._htOption=e};return t.prototype.draw=function(t){var e=this._htOption,n=this._el,i=t.getModuleCount();Math.floor(e.width/i),Math.floor(e.height/i);function o(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg",t);for(var i in e)e.hasOwnProperty(i)&&n.setAttribute(i,e[i]);return n}this.clear();var a=o("svg",{viewBox:"0 0 "+String(i)+" "+String(i),width:"100%",height:"100%",fill:e.colorLight});a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),n.appendChild(a),a.appendChild(o("rect",{fill:e.colorLight,width:"100%",height:"100%"})),a.appendChild(o("rect",{fill:e.colorDark,width:"1",height:"1",id:"template"}));for(var r=0;r<i;r++)for(var s=0;s<i;s++)if(t.isDark(r,s)){var l=o("use",{x:String(s),y:String(r)});l.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),a.appendChild(l)}},t.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},t}(),y="svg"===document.documentElement.tagName.toLowerCase()?w:"undefined"==typeof CanvasRenderingContext2D?function(){var t=function(t,e){this._el=t,this._htOption=e};return t.prototype.draw=function(t){for(var e=this._htOption,n=this._el,i=t.getModuleCount(),o=Math.floor(e.width/i),a=Math.floor(e.height/i),r=['<table style="border:0;border-collapse:collapse;">'],s=0;s<i;s++){r.push("<tr>");for(var l=0;l<i;l++)r.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+o+"px;height:"+a+"px;background-color:"+(t.isDark(s,l)?e.colorDark:e.colorLight)+';"></td>');r.push("</tr>")}r.push("</table>"),n.innerHTML=r.join("");var d=n.childNodes[0],h=(e.width-d.offsetWidth)/2,u=(e.height-d.offsetHeight)/2;h>0&&u>0&&(d.style.margin=u+"px "+h+"px")},t.prototype.clear=function(){this._el.innerHTML=""},t}():function(){function t(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}if(this._android&&this._android<=2.1){var e=1/window.devicePixelRatio,n=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(t,i,o,a,r,s,l,d,h){if("nodeName"in t&&/img/i.test(t.nodeName))for(var u=arguments.length-1;u>=1;u--)arguments[u]=arguments[u]*e;else void 0===d&&(arguments[1]*=e,arguments[2]*=e,arguments[3]*=e,arguments[4]*=e);n.apply(this,arguments)}}var i=function(t,e){this._bIsPainted=!1,this._android=b(),this._htOption=e,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=e.width,this._elCanvas.height=e.height,t.appendChild(this._elCanvas),this._el=t,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null};return i.prototype.draw=function(t){var e=this._elImage,n=this._oContext,i=this._htOption,o=t.getModuleCount(),a=i.width/o,r=i.height/o,s=Math.round(a),l=Math.round(r);e.style.display="none",this.clear();for(var d=0;d<o;d++)for(var h=0;h<o;h++){var u=t.isDark(d,h),c=h*a,f=d*r;n.strokeStyle=u?i.colorDark:i.colorLight,n.lineWidth=1,n.fillStyle=u?i.colorDark:i.colorLight,n.fillRect(c,f,a,r),n.strokeRect(Math.floor(c)+.5,Math.floor(f)+.5,s,l),n.strokeRect(Math.ceil(c)-.5,Math.ceil(f)-.5,s,l)}this._bIsPainted=!0},i.prototype.makeImage=function(){this._bIsPainted&&function(t,e){var n=this;if(n._fFail=e,n._fSuccess=t,null===n._bSupportDataURI){var i=document.createElement("img"),o=function(){n._bSupportDataURI=!1,n._fFail&&n._fFail.call(n)};return i.onabort=o,i.onerror=o,i.onload=function(){n._bSupportDataURI=!0,n._fSuccess&&n._fSuccess.call(n)},void(i.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==")}!0===n._bSupportDataURI&&n._fSuccess?n._fSuccess.call(n):!1===n._bSupportDataURI&&n._fFail&&n._fFail.call(n)}.call(this,t)},i.prototype.isPainted=function(){return this._bIsPainted},i.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},i.prototype.round=function(t){return t?Math.floor(1e3*t)/1e3:t},i}();function C(t,e){for(var n=1,i=function(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t?3:0)}(t),a=0,r=L.length;a<=r;a++){var s=0;switch(e){case o.L:s=L[a][0];break;case o.M:s=L[a][1];break;case o.Q:s=L[a][2];break;case o.H:s=L[a][3]}if(i<=s)break;n++}if(n>L.length)throw new Error("Too long data");return n}return(i=function(t,e){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:o.H},"string"==typeof e&&(e={text:e}),e)for(var n in e)this._htOption[n]=e[n];"string"==typeof t&&(t=document.getElementById(t)),this._htOption.useSVG&&(y=w),this._android=b(),this._el=t,this._oQRCode=null,this._oDrawing=new y(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)}).prototype.makeCode=function(t){this._oQRCode=new e(C(t,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(t),this._oQRCode.make(),this._el.title=t,this._oDrawing.draw(this._oQRCode),this.makeImage()},i.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},i.prototype.clear=function(){this._oDrawing.clear()},i.CorrectLevel=o,i},t.exports=o()},cDVG:function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"\n.print[data-v-a7f5ece0] {\n margin-left: 790px;\n}\n.tips-t[data-v-a7f5ece0] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n padding: 10px 0;\n}\n.tips-t div[data-v-a7f5ece0] {\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-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.tips-f[data-v-a7f5ece0] {\n padding: 20px 0;\n}\n.face-image[data-v-a7f5ece0] {\n display: block;\n width: 50px;\n height: 50px;\n margin: 0 auto;\n}\n[data-v-a7f5ece0] .el-dialog__body {\n padding: 10px 20px;\n}\n[data-v-a7f5ece0].el-form .el-form-item__content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n",""])},uR03:function(t,e,n){var i=n("cDVG");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n("rjj0")("32fe8acd",i,!0)}});