1 line
1.7 KiB
JavaScript
1 line
1.7 KiB
JavaScript
webpackJsonp([4],{"6uZH":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-card",{staticClass:"box-card"},[n("div",{staticStyle:{"text-align":"center"},attrs:{slot:"header"},slot:"header"},[n("el-input",{ref:"input",staticStyle:{width:"300px"},attrs:{placeholder:"请输入内容",autofocus:""},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.dataFormSubmit()}},model:{value:t.scancode,callback:function(e){t.scancode=e},expression:"scancode"}})],1),t._v(" "),n("img",{attrs:{src:a("T/qG")}})])},staticRenderFns:[]};var s=a("VU/8")({data:function(){return{scancode:"",tableData:[]}},created:function(){var t=this;this.$nextTick(function(){t.$refs.input.focus()})},methods:{dataFormSubmit:function(){var t=this,e={};e.code=this.scancode,this.$http({url:this.$http.adornUrl("/work/scancode/instock"),method:"post",data:this.$http.adornData({task:this.scancode})}).then(function(a){var n=a.data;n&&0===n.code?(e.status="成功",t.scancode="",t.$message({message:"操作成功",type:"success",duration:1500})):(e.status="失败",t.scancode="",t.$message.error(n.msg))}),this.tableData.push(e)}}},n,!1,function(t){a("PEVO")},"data-v-556751e6",null);e.default=s.exports},I3h5:function(t,e,a){(t.exports=a("FZ+f")(!1)).push([t.i,"\n.box-card[data-v-556751e6] .el-card__header {\n background-color: #eee8aa;\n padding: none;\n}\n",""])},PEVO:function(t,e,a){var n=a("I3h5");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("51788986",n,!0)},"T/qG":function(t,e,a){t.exports=a.p+"static/img/instock.d11e9a5.png"}}); |