yxk_pc_mdh/gyhl/static/js/355.13f9375b728e4b7fe47f.js

1 line
23 KiB
JavaScript
Raw Normal View History

2025-08-28 15:26:35 +08:00
webpackJsonp([355],{LiLz:function(e,t){},WX5v:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("BO1k"),o=a.n(i),s=a("woOf"),r=a.n(s),l=a("d7EF"),n=a.n(l),c=a("//Fk"),u=a.n(c),h=a("mvHQ"),m=a.n(h),d=a("Dd8w"),p=a.n(d),f=a("ysqt"),g=a("iGlD"),b=a("3MlD"),v=a("OG67"),y=a("NYxO"),_=(a("t4zo"),a("bzuE")),D={components:{btnInput:f.a,dialogChooseSingleUser:b.a,dialogChooseSingleParts:v.a,DialogChooseSingleClientr:g.a,dialogChooseSingleUser1:b.a},data:function(){return{total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10,startTime:"",endTime:"",outCode:"",materielName:"",clientName:""},config:_.a,tableData:[],otherStockOutIds:[],inOutTime:"",dialogTitle:"",time:"",formDataTime:"",selectDeptId:"",auditSignList:[],companyList:[],createByList:[],depOptions:[],formData:{createBy:"",createByName:""},summary:{},btnDelDisabled:!0,btnOtherDisabled:!0,chooseClientrVisible:!1,dialogLoading:!1,chooseUserVisible:!1,chooseUserVisible1:!1,chooseMaterielVisible:!1,columnSetDialogVisible:!1,advanceQueryDialogVisible:!1,chooseSupplierVisible:!1,columnSetDialogTitle:"设置显示字段列表",tableId:"other_stockOut_table",pictLoading:!1,showTableColumnsDefault:[{title:"出库日期",prop_:"outTime",select:!0},{title:"单据编号",prop_:"outCode",select:!0},{title:"客户名称",prop_:"clientName",select:!0},{title:"物料代码",prop_:"materielSerialNo",select:!0},{title:"物料名称",prop_:"materielName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"批号",prop_:"batch",select:!0},{title:"主计量单位",prop_:"unitUomName",select:!0},{title:"主单位数量",prop_:"count",select:!0},{title:"辅助单位",prop_:"supportUomName",select:!0},{title:"数量",prop_:"outCount",select:!0},{title:"单价(元)",prop_:"unitPrice",select:!0},{title:"金额(元)",prop_:"amount",select:!0},{title:"仓库",prop_:"facName",select:!0},{title:"仓位",prop_:"locationName",select:!0},{title:"审核状态",prop_:"auditSignName",select:!0}],showTableColumns:[{title:"出库日期",prop_:"outTime",select:!0},{title:"单据编号",prop_:"outCode",select:!0},{title:"客户名称",prop_:"clientName",select:!0},{title:"物料代码",prop_:"materielSerialNo",select:!0},{title:"物料名称",prop_:"materielName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"批号",prop_:"batch",select:!0},{title:"主计量单位",prop_:"unitUomName",select:!0},{title:"主单位数量",prop_:"count",select:!0},{title:"辅助单位",prop_:"supportUomName",select:!0},{title:"数量",prop_:"outCount",select:!0},{title:"单价(元)",prop_:"unitPrice",select:!0},{title:"金额(元)",prop_:"amount",select:!0},{title:"仓库",prop_:"facName",select:!0},{title:"仓位",prop_:"locationName",select:!0},{title:"审核状态",prop_:"auditSignName",select:!0}],showTableColumnsTemp:[],formTableData:[]}},created:function(){var e=this;document.onkeydown=function(t){"Enter"===t.key&&e.search()}},computed:p()({},Object(y.c)({userInfo:"user/getUserInfo"})),mounted:function(){this.showTableColumns=JSON.parse(m()(this.showTableColumns)),this.showTableColumnsTemp=JSON.parse(m()(this.showTableColumns)),this.formData.createBy=this.userInfo.userId,this.formData.createByName=this.userInfo.name;var e=new Date;this.$set(this.formData,"createTime",e.getFullYear()+"-"+this.settime(e.getMonth()+1)+"-"+this.settime(e.getDate())),this.getList(),this.getTypeList(),this.getShowColumns(),this.initialize()},methods:{viewDetail:function(e){var t=e.queryId;this.$router.push({path:"/warehouse/inventoryRecord",query:{id:t,t:Date.now()}})},initialize:function(){var e=this;u.a.all([this.$api.commonAPI.getDeptsTree()]).then(function(t){var a=n()(t,1)[0];0===a.code&&(e.depOptions=a.data.children,e.setDeptList(e.depOptions))}).catch(function(e){console.log(e)}),this.formData.userId&&(this.loading=!0,this.$api.userAPI.detail(this.formData.userId).then(function(t){e.loading=!1,0===t.code&&(e.formData=r()({},e.formData,t.user),e.setDefaultDept())}))},setDeptList:function(e){var t=!0,a=!1,i=void 0;try{for(var s,r=o(