(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["2d0ce7b2"],{6046:function(t,a,n){"use strict";n.r(a);var i=function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"full-height page-content content bg-white padding-20"},[n("printj",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"printj",attrs:{tableData:t.printData,type:"1"}}),n("div",{ref:"print",staticClass:"scrollbar overflow-auto",staticStyle:{height:"calc(100% - 43px)"}},[n("stock-detail-common",{ref:"STOCKDETAILCOMMON"})],1),n("div",{staticClass:"q-mt-md"},[n("q-separator",{staticClass:"qa-line"})],1),n("q-inner-loading",{staticStyle:{"z-index":"99"},attrs:{showing:t.isLoading}},[n("q-spinner-gears",{attrs:{size:"50px",color:"primary"}})],1),n("div",{staticClass:"dialog-footer text-center margin-t-10"},[n("q-btn",{staticClass:"qa-btn q-mr-md",attrs:{outline:"",label:"返回",color:"primary"},on:{click:t.onBcak}}),2===t.status?n("q-btn",{staticClass:"qa-btn",attrs:{label:"打印",color:"primary"},on:{click:t.onPrintj}}):t._e(),1===t.status?n("q-btn",{staticClass:"qa-btn",attrs:{label:"入库",color:"primary"},on:{click:t.onStockIn}}):t._e()],1)],1)},e=[],s=(n("7f7f"),n("091b")),o=n("2560"),r=n("7cde"),c=n("b924"),l=n("48e1"),d={name:"detail-stock-in",mixins:[o["a"],r["a"]],components:{stockDetailCommon:s["a"],printj:c["a"]},data:function(){return{isLoading:!1,printData:{},status:null}},mounted:function(){},beforeRouteEnter:function(t,a,n){"detailStockIn"===t.name&&n((function(t){t.getDetail()}))},methods:{onBcak:function(){this.goPathName("detail-stock-in","stockIn",{goodsCategoryCode:this.$route.query.goodsCategoryCode})},onPrintj:function(){var t=this,a=this.$refs.STOCKDETAILCOMMON.getPrintData();this.printData=a,setTimeout((function(){t.$refs.printj.getPrintJS()}))},onStockIn:function(){var t=this;this.isLoading=!0,Object(l["v"])(this.$route.query.id).then((function(a){t.isLoading=!1,a.code+""==="1200"&&(a.success&&t.$message.success("入库成功"),t.onBcak())})).catch((function(a){t.isLoading=!1}))}}},u=d,p=n("2877"),f=Object(p["a"])(u,i,e,!1,null,"b37dd126",null);a["default"]=f.exports}}]);