1 line
18 KiB
JavaScript
1 line
18 KiB
JavaScript
|
webpackJsonp([278],{"6ApH":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("BO1k"),s=a.n(i),o=a("woOf"),l=a.n(o),n=a("d7EF"),r=a.n(n),c=a("//Fk"),h=a.n(c),u=a("mvHQ"),m=a.n(u),p=a("Dd8w"),d=a.n(p),f=a("OG67"),g=a("3MlD"),b=a("NYxO"),_=a("bzuE"),v=(a("t4zo"),{components:{dialogChooseSingleUser:g.a,dialogChooseSingleParts:f.a},data:function(){return{totalAll:{},total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10,startTime:"",endTime:"",allotCode:"",materielName:"",outFacility:"",inFacility:""},config:_.a,tableData:[],allotIds:[],allotTime:"",dialogTitle:"",time:"",selectDeptId:"",formDataTime:"",fac_type_list1:[],fac_type_list2:[],auditSignList:[],companyList:[],createByList:[],depOptions:[],formData:{},btnDelDisabled:!0,btnOtherDisabled:!0,chooseClientrVisible:!1,dialogLoading:!1,chooseUserVisible:!1,chooseMaterielVisible:!1,columnSetDialogVisible:!1,advanceQueryDialogVisible:!1,chooseSupplierVisible:!1,columnSetDialogTitle:"设置显示字段列表",tableId:"allot_table",pictLoading:!1,showTableColumnsDefault:[{title:"调拨日期",prop_:"allotTime",select:!0},{title:"调拨编号",prop_:"allotCode",select:!0},{title:"物料代码",prop_:"materielSerialno",select:!0},{title:"物料名称",prop_:"materielName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"批号",prop_:"batch",select:!0},{title:"主计量单位",prop_:"unitName",select:!0},{title:"主单位数量",prop_:"allotCount",select:!0},{title:"辅助单位",prop_:"supportUomName",select:!0},{title:"调拨数量",prop_:"subCount",select:!0},{title:"单价(元)",prop_:"materielPrice",select:!0},{title:"金额(元)",prop_:"amount",select:!0},{title:"调出仓库",prop_:"outFacilityName",select:!0},{title:"调出仓位",prop_:"outLocationName",select:!0},{title:"调入仓库",prop_:"inFacilityName",select:!0},{title:"调入仓位",prop_:"inLocationName",select:!0},{title:"调拨人",prop_:"allotUserName",select:!0},{title:"审核状态",prop_:"auditSignName",select:!0}],showTableColumns:[{title:"调拨日期",prop_:"allotTime",select:!0},{title:"调拨编号",prop_:"allotCode",select:!0},{title:"物料代码",prop_:"materielSerialno",select:!0},{title:"物料名称",prop_:"materielName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"批号",prop_:"batch",select:!0},{title:"主计量单位",prop_:"unitName",select:!0},{title:"主单位数量",prop_:"allotCount",select:!0},{title:"辅助单位",prop_:"supportUomName",select:!0},{title:"调拨数量",prop_:"subCount",select:!0},{title:"单价(元)",prop_:"materielPrice",select:!0},{title:"金额(元)",prop_:"amount",select:!0},{title:"调出仓库",prop_:"outFacilityName",select:!0},{title:"调出仓位",prop_:"outLocationName",select:!0},{title:"调入仓库",prop_:"inFacilityName",select:!0},{title:"调入仓位",prop_:"inLocationName",select:!0},{title:"调拨人",prop_:"allotUserName",select:!0},{title:"审核状态",prop_:"auditSignName",select:!0}],showTableColumnsTemp:[],formTableData:[]}},created:function(){var t=this;document.onkeydown=function(e){"Enter"===e.key&&t.search()}},computed:d()({},Object(b.c)({userInfo:"user/getUserInfo"})),mounted:function(){this.showTableColumns=JSON.parse(m()(this.showTableColumns)),this.showTableColumnsTemp=JSON.parse(m()(this.showTableColumns)),this.getList(),this.getTypeList(),this.getShowColumns(),this.initialize()},methods:{getSummaries:function(t){var e=this,a=t.columns,i=t.data,s=[];return a.forEach(function(t,a){if(0!==a)if("subCount"===t.property||"allotCount"==t.property||"amount"==t.property){var o=i.map(function(e){return Number(e[t.property])});o.every(function(t){return isNaN(t)})?s[a]="":s[a]=o.reduce(function(t,e){var a=Number(e);return isNaN(a)?t:t+e},0),"allotCount"!=t.property?"subCount"!==t.property?"amount"!=t.property||s[a]&&(s[a]=e.totalAll.totalAmount.toFixed(2)):s[a]&&(s[a]=e.totalAll.totalSubCount):s[a]&&(s[a]=e.totalAll.totalCount)}else s[a]="";else s[a]="合计"}),s},initialize:function(){var t=this;this.$api.gylInventoryAPI.facilityL
|