yxk_pc_mdh/gyhl/static/js/384.6405c9430969d4367dbd.js

1 line
3.0 KiB
JavaScript

webpackJsonp([384],{DKKF:function(e,t){},jxMT:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"sys-box"},[s("div",{staticClass:"sys-search"},[e._v("出库成本的核算帮助企业完成当月所有出库类单据成本的计算 ,目前存货计价方法支持加权平均法和分批认定法。\n\n 加权平均法出库成本的算法:(月初结存金额+本月入库金额)/(月初结存数量+本月入库数量),算出当月加权平均\n\n 成本,以此作为本月出库类单据的单价。\n\n 分批认定法:物料属性中需要设置批次管理,入库时入库单需要录入批号,出库时出库单的单价以入库时相同批号\n\n 的单价作为出库单价。当同一批次有多次入库时,同一批次按加权平均计算,以此更新本批次本月出库类单据的单价。\n ")]),e._v(" "),s("div",{staticClass:"sys-operate"},[s("el-button",{attrs:{type:"primary"},on:{click:e.calculate}},[e._v("开始计算")])],1),e._v(" "),s("div",{staticClass:"sys-form"},[s("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"form",attrs:{"label-width":"120px","inline-message":!0,model:e.formData,rules:e.ruleForm}},[s("el-form-item",{staticClass:"form-inline",attrs:{label:"选择出库核算期间",prop:"outTime",disabled:""}},[s("el-date-picker",{attrs:{type:"month",disabled:"",placeholder:"选择月"},model:{value:e.formData.outTime,callback:function(t){e.$set(e.formData,"outTime",t)},expression:"formData.outTime"}})],1)],1)],1)])},staticRenderFns:[]};var n=s("VU/8")({data:function(){return{formData:{outTime:""},loading:!1,ruleForm:{outTime:[{required:!0,message:"请选择出库核算时间",trigger:"change"}]}}},mounted:function(){this.stockAnalysisTime()},methods:{stockAnalysisTime:function(){var e=this;this.$api.stockAPI.stockAnalysisTime().then(function(t){0==t.code?e.formData.outTime=t.period:e.formData.outTime=""})},calculate:function(){var e=this;this.$api.stockAPI.stockOutAccountingCheck({period:this.formData.outTime}).then(function(t){if(0==t.code)e.$confirm("确认还要继续进行计算吗?","提示",{type:"warning"}).then(function(){e.$api.stockAPI.stockOutAccounting({period:e.formData.outTime}).then(function(t){0==t.code?e.$message({message:t.msg,type:"success"}):e.$message({message:t.msg,type:"error"})})});else{var s=[t.msg,"确认还要继续进行计算吗?"],a=[],n=e.$createElement;for(var o in s)a.push(n("p",null,s[o]));e.$confirm("提示",{title:"提示",message:n("div",null,a),showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$api.stockAPI.stockOutAccounting({period:e.formData.outTime}).then(function(t){0==t.code?e.$message({message:t.msg,type:"success"}):e.$message({message:t.msg,type:"error"})})})}})}}},a,!1,function(e){s("DKKF")},"data-v-479c3c33",null);t.default=n.exports}});