webpackJsonp([47],{398:function(t,a,e){function s(t){e(593)}var i=e(1)(e(491),e(650),s,"data-v-02ae99ad",null);t.exports=i.exports},491:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e(7),i=e.n(s);a.default={data:function(){return{total:0,inventoryId:"",inventoryNo:"",items:[],isLoading:!0,loading:!1}},computed:{},watch:{},created:function(){this.$hotKey.setScenes("盘点差异详情"),this.inventoryId=parseInt(this.$route.query.id),this.inventoryNo=parseInt(this.$route.query.inventoryNo),this.getDetail()},mounted:function(){},methods:{getDetail:function(){this.isLoading=!0,this.items=[];var t={inventoryId:this.inventoryId};this.$http.post(this.$appConfig.api.inventory.invDetailDiffList,t).then(function(t){200==t.data.code?this.items=t.data.data:this.$toast({type:"danger",content:t.data.message}),this.isLoading=!1}.bind(this),function(t){throw this.isLoading=!1,new Error(i()(t))}.bind(this))},submitAdjust:function(){var t=this,a=this.items;this.loading=!0,this.$http.post(this.$appConfig.api.inventory.adjustAdd,a).then(function(a){t.loading=!1,200==a.data.code?(t.$toast({type:"success",content:"盘点调整单生成成功"}),t.items=[]):t.$toast({type:"danger",content:a.message})}).catch(function(a){t.$toast({type:"danger",content:a.message}),t.loading=!1})}},beforeDestroy:function(){}}},537:function(t,a,e){a=t.exports=e(378)(!1),a.push([t.i,".table-warp2[data-v-02ae99ad]{height:81vh;position:relative;background-color:#fff}.m-page[data-v-02ae99ad]{margin:0}.pagination[data-v-02ae99ad]{border-radius:0!important}.win[data-v-02ae99ad]{color:#28a745}.lose[data-v-02ae99ad]{color:#dc3545}.page-goods .table-warp2 .footer[data-v-02ae99ad]{position:absolute;bottom:.5rem;left:1rem;right:1rem}.divleft[data-v-02ae99ad]{float:left;vertical-align:middle}.divright[data-v-02ae99ad]{float:right}",""])},593:function(t,a,e){var s=e(537);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);e(379)("3a770a1e",s,!0)},650:function(t,a){t.exports={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"page-inventory-new"},[e("nav",{staticClass:"navbar navbar-expand-lg navbar-dark bg-primary drag-hander",on:{dblclick:function(a){a.stopPropagation(),t.$root.toggleFullscreen(a)}}},[e("a",{staticClass:"navbar-brand align-middle d-block",attrs:{href:"#"},on:{click:function(a){a.preventDefault(),a.stopPropagation(),t.$router.push({path:"/inventory"})}}},[e("span",{staticClass:"material-icons"},[t._v("chevron_left")])]),t._v(" "),e("h3",{staticClass:"text-white",domProps:{textContent:t._s(t.$route.meta.title)}})]),t._v(" "),[e("div",{staticClass:"page-goods"},[e("hr",{staticClass:"m-0"}),t._v(" "),e("div",{staticClass:"table-warp2"},[e("v-dataTable",{attrs:{table:"","empty-text":"暂无盘点差异详情","header-cell-style":{color:"#212529"},size:"medium",data:t.items,stripe:""},scopedSlots:t._u([{key:"tbody",fn:function(a){return[e("td",[e("span",[t._v(t._s(a.cell.goodsName))]),t._v(" "),e("span",{staticStyle:{"margin-left":"15px"}},[t._v(t._s(a.cell.styleNumber))]),t._v(" "),e("span",{staticStyle:{"margin-left":"15px"}},[t._v(t._s(a.cell.goodsColor))]),t._v(" "),e("span",{staticStyle:{"margin-left":"15px"}},[t._v(t._s(a.cell.goodsSize))])]),t._v(" "),e("td",{staticClass:"text-center",attrs:{width:"8%"}},[e("span",[t._v(t._s(a.cell.qty))])]),t._v(" "),e("td",{staticClass:"text-center",attrs:{width:"8%"}},[e("span",[t._v(t._s(a.cell.inventoryQty))])]),t._v(" "),e("td",{staticClass:"text-center",attrs:{width:"8%"}},[e("span",[t._v(t._s(a.cell.plQty))])]),t._v(" "),e("td",{staticClass:"text-center",attrs:{width:"8%"}},[e("span",[t._v(t._s(a.cell.plQty))])]),t._v(" "),e("td",{attrs:{width:"25%"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:a.cell.remark,expression:"scope.cell.remark"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:a.cell.remark},on:{input:function(e){e.target.composing||t.$set(a.cell,"remark",e.target.value)}}})])]}}])},[e("template",{attrs:{slot:"thead"},slot:"thead"},[e("th",[t._v("款名/款号/颜色/尺寸")]),t._v(" "),e("th",{staticClass:"text-center",attrs:{width:"8%"}},[t._v("应有库存")]),t._v(" "),e("th",{staticClass:"text-center",attrs:{width:"8%"}},[t._v("实有库存")]),t._v(" "),e("th",{staticClass:"text-center",attrs:{width:"8%"}},[t._v("库存差")]),t._v(" "),e("th",{staticClass:"text-center",attrs:{width:"8%"}},[t._v("库存调整数")]),t._v(" "),e("th",{attrs:{width:"25%"}},[t._v("附带说明")])])],2)],1)]),t._v(" "),e("div",{staticClass:"in-stock-footer p-2 bg-grey-15",staticStyle:{"margin-top":"0.5rem",height:"5rem"}},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-9"}),t._v(" "),e("div",{staticClass:"col-3"},[e("button",{staticClass:"btn btn-primary btn-block btn-lg",attrs:{disabled:t.loading},on:{click:function(a){a.stopPropagation(),a.preventDefault(),t.submitAdjust(a)}}},[t._v(t._s(t.loading?"提交中...":"生成盘点调整单"))])])]),t._v(" "),e("div",{staticClass:"more-btn",class:{"btn-group":t.btnMore}})])]],2)},staticRenderFns:[]}}});