webpackJsonp([29],{427:function(t,e,a){function o(t){a(613)}var s=a(1)(a(520),a(670),o,"data-v-36c21678",null);t.exports=s.exports},520:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a(15),s=a.n(o),n=a(10);e.default={data:function(){return{code:"",pageNum:1,pageTotal:1,categoryId:"",categoryList:[],warningList:[],status:"Y",vendorId:""}},computed:s()({},a.i(n.a)({business:function(t){return t.business}})),watch:{pageNum:function(t){this.getWarningList()}},mounted:function(){this.getCategory(),this.getWarningList()},methods:{getCategory:function(){var t=this;this.$http.get(this.$appConfig.api.goods.getCategory+"?isEnable=Y&shopId="+this.business.shop.id).then(function(e){if(200!==e.data.code)throw new Error(e.data.message);t.categoryList=e.data.data}).catch(function(e){t.$toast({type:"danger",content:e.message})})},getWarningList:function(){var t=this,e={categoryId:this.categoryId,code:this.code,pageNum:this.pageNum,pageSize:100,status:this.status,vendorId:this.vendorId};this.$http.post(this.$appConfig.api.stock.stockAlarm,e).then(function(e){200==e.data.code?(t.warningList=e.data.data.pageData,t.pageTotal=e.data.data.pages?e.data.data.pages:1):t.$toast({type:"danger",content:e.data.message})}).catch(function(e){t.$toast({type:"danger",content:e.message})})},btnSearch:function(){this.getWarningList()}}}},557:function(t,e,a){e=t.exports=a(378)(!1),e.push([t.i,".searchQuery[data-v-36c21678]{text-align:right;padding:10px 20px}.searchQuery select[data-v-36c21678]{height:2.2rem;width:8rem;border-radius:3px;border:1px solid #999}.searchQuery input[data-v-36c21678]{height:2.2rem;border-radius:3px;outline:none;border:1px solid #999}.searchQuery button[data-v-36c21678]{width:5rem;height:2.2rem;background:#2196f3;color:#fff;border:none;border-radius:3px;margin-left:-2px}.queryTable[data-v-36c21678]{position:absolute;top:10rem;bottom:3rem;right:0;left:0;overflow-y:auto}.queryTable .item[data-v-36c21678]{border-bottom:1px solid #dee6ef}.footer[data-v-36c21678]{position:absolute;bottom:.5rem;left:1rem;right:1rem}",""])},613:function(t,e,a){var o=a(557);"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);a(379)("384d796a",o,!0)},670:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("nav",{staticClass:"navbar navbar-expand-lg navbar-dark bg-primary drag-hander",on:{dblclick:function(e){e.stopPropagation(),t.$root.toggleFullscreen(e)}}},[a("a",{staticClass:"navbar-brand align-middle d-block",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),e.stopPropagation(),t.$router.push({path:"/cashier"})}}},[a("span",{staticClass:"material-icons"},[t._v("chevron_left")])]),t._v(" "),a("h3",{staticClass:"text-white mx-auto"},[t._v("补货参谋")])]),t._v(" "),a("div",{staticClass:"searchQuery"},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.categoryId,expression:"categoryId"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.categoryId=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:""}},[t._v("全部分类")]),t._v(" "),t._l(t.categoryList,function(e,o){return a("option",{key:o,domProps:{value:e.id}},[t._v("\n\t\t            "+t._s(e.name)+"\n\t            ")])})],2),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.code,expression:"code"}],attrs:{type:"text",placeholder:"条码/名称/简拼"},domProps:{value:t.code},on:{input:function(e){e.target.composing||(t.code=e.target.value)}}}),a("button",{on:{click:t.btnSearch}},[t._v("搜索")])]),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"queryTable"},t._l(t.warningList,function(e){return a("div",{staticClass:"no-gutters row no-gutters item py-2"},[a("div",{staticClass:"col-5 text-secondary text-left"},[t._v(t._s(e.goodName)+"("),a("small",[t._v(t._s(e.code)+")")])]),t._v(" "),a("div",{staticClass:"col-3 text-secondary text-center"},[t._v(t._s(e.categoryName))]),t._v(" "),a("div",{staticClass:"col-2 text-secondary text-center"},[t._v(t._s(e.qty))]),t._v(" "),a("div",{staticClass:"col-1 text-secondary text-center"},[t._v(t._s(e.maxQty))]),t._v(" "),a("div",{staticClass:"col-1 text-secondary text-center"},[t._v(t._s(e.minQty))])])})),t._v(" "),a("div",{staticClass:"footer"},[a("v-pagination",{attrs:{pageNo:t.pageTotal,current:t.pageNum},on:{"update:current":function(e){t.pageNum=e}}})],1)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"header row no-gutters bg-light font-weight-bold py-2"},[a("div",{staticClass:"col-5 text-left"},[t._v("品名")]),t._v(" "),a("div",{staticClass:"col-3 text-center"},[t._v("分类")]),t._v(" "),a("div",{staticClass:"col-2 text-center"},[t._v("当前库存")]),t._v(" "),a("div",{staticClass:"col-1 text-center"},[t._v("库存上线")]),t._v(" "),a("div",{staticClass:"col-1 text-center"},[t._v("库存下线")])])}]}}});