1 line
23 KiB
JavaScript
1 line
23 KiB
JavaScript
|
webpackJsonp([296],{AJ0U:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("BO1k"),s=a.n(i),o=a("woOf"),r=a.n(o),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("3MlD"),b=a("OG67"),v=a("NYxO"),_=a("bzuE"),y=(a("t4zo"),{components:{btnInput:f.a,dialogChooseSingleUser:g.a,dialogChooseSingleParts:b.a,dialogChooseSingleUser1:g.a},data:function(){return{total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10,startTime:"",endTime:"",inheadCode:"",materielName:"",deptId:""},summary:{},config:_.a,tableData:[],returnMaterielIds:[],inOutTime:"",dialogTitle:"",time:"",selectDeptId:"",formDataTime:"",auditSignList:[],companyList:[],createByList:[],depOptions:[],formData:{createBy:"",createByName:""},btnDelDisabled:!0,btnOtherDisabled:!0,chooseClientrVisible:!1,dialogLoading:!1,chooseUserVisible:!1,chooseUserVisible1:!1,chooseMaterielVisible:!1,columnSetDialogVisible:!1,advanceQueryDialogVisible:!1,chooseSupplierVisible:!1,columnSetDialogTitle:"设置显示字段列表",tableId:"return_materiel_table",pictLoading:!1,showTableColumnsDefault:[{title:"退料日期",prop_:"inOutTime",select:!0},{title:"单据编号",prop_:"inheadCode",select:!0},{title:"退料人",prop_:"operatorName",select:!0},{title:"物料代码",prop_:"serialno",select:!0},{title:"物料名称",prop_:"materielName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"批号",prop_:"batch",select:!0},{title:"主计量单位",prop_:"unitName",select:!0},{title:"主单位数量",prop_:"count",select:!0},{title:"辅助单位",prop_:"supportUomName",select:!0},{title:"退回数量",prop_:"backCount",select:!0},{title:"单价(元)",prop_:"unitPrice",select:!0},{title:"金额(元)",prop_:"amount",select:!0},{title:"仓库",prop_:"warehouseName",select:!0},{title:"仓位",prop_:"warehLocationName",select:!0},{title:"退料原因",prop_:"returnReason",select:!0},{title:"审核状态",prop_:"auditSignName",select:!0},{title:"源单类型",prop_:"sourceTypeName",select:!0},{title:"源单单号",prop_:"sourceCode",select:!0}],showTableColumns:[{title:"领料日期",prop_:"outTime",select:!0},{title:"单据编号",prop_:"inheadCode",select:!0},{title:"领料人",prop_:"operatorName",select:!0},{title:"物料代码",prop_:"serialno",select:!0},{title:"物料名称",prop_:"materielName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"批号",prop_:"batch",select:!0},{title:"主计量单位",prop_:"unitName",select:!0},{title:"主单位数量",prop_:"count",select:!0},{title:"辅助单位",prop_:"supportUomName",select:!0},{title:"退回数量",prop_:"backCount",select:!0},{title:"单价(元)",prop_:"unitPrice",select:!0},{title:"金额(元)",prop_:"amount",select:!0},{title:"仓库",prop_:"facName",select:!0},{title:"仓位",prop_:"locationName",select:!0},{title:"领料用途",prop_:"purposeName",select:!0},{title:"审核状态",prop_:"auditSignName",select:!0},{title:"源单类型",prop_:"sourceType",select:!0},{title:"源单单号",prop_:"sourceCode",select:!0}],showTableColumnsTemp:[],formTableData:[]}},created:function(){var e=this;document.onkeydown=function(t){"Enter"===t.key&&e.search()}},computed:p()({},Object(v.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/consumingStock_add",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){cons
|