yxk_pc_mdh/gyhl/static/js/337.9b90f10161c1b462da9d.js

1 line
12 KiB
JavaScript
Raw Normal View History

2025-08-28 15:26:35 +08:00
webpackJsonp([337],{iMfK:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("BO1k"),i=a.n(s),l=a("d7EF"),o=a.n(l),n=a("//Fk"),r=a.n(n),c=a("mvHQ"),u=a.n(c),h=a("Dd8w"),p=a.n(h),d=a("ysqt"),m=a("NYxO"),b=a("OG67"),f=(a("t4zo"),a("bzuE")),g={components:{btnInput:d.a,dialogChooseSingleParts:b.a},data:function(){return{total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:20},countTotal:0,config:f.a,accountNumberList:[],settlementTypeList:[],tableData:[],paymentReceivedIds:[],btndisable:!0,prDate:"",dialogTitle:"",time:"",selectDeptId:"",formDataTime:"",auditSignList:[],companyList:[],createByList:[],depOptions:[],usingList:[],typeList:[],btnDelDisabled:!0,btnOtherDisabled:!0,chooseClientrVisible:!1,dialogLoading:!1,chooseUserVisible:!1,chooseMaterielVisible:!1,columnSetDialogVisible:!1,advanceQueryDialogVisible:!1,chooseSupplierVisible:!1,columnSetDialogTitle:"设置显示字段列表",tableId:"qualityTraceability_table",pictLoading:!1,showTableColumnsDefault:[{title:"追溯方向",prop_:"way",select:!0},{title:"单据类型",prop_:"typeName",select:!0},{title:"单据日期",prop_:"time",select:!0},{title:"物料代码",prop_:"serialNo",select:!0},{title:"物料名称",prop_:"materielName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"批号",prop_:"batch",select:!0},{title:"数量",prop_:"count",select:!0},{title:"仓库",prop_:"facilityName",select:!0},{title:"仓位",prop_:"locationName",select:!0},{title:"源单类型",prop_:"sourceTypeName",select:!0},{title:"源单单号",prop_:"sourceCode",select:!0}],showTableColumns:[{title:"追溯方向",prop_:"way",select:!0},{title:"单据类型",prop_:"typeName",select:!0},{title:"单据日期",prop_:"time",select:!0},{title:"物料代码",prop_:"serialNo",select:!0},{title:"物料名称",prop_:"materielName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"批号",prop_:"batch",select:!0},{title:"数量",prop_:"count",select:!0},{title:"仓库",prop_:"facilityName",select:!0},{title:"仓位",prop_:"locationName",select:!0},{title:"源单类型",prop_:"sourceTypeName",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(m.c)({userInfo:"user/getUserInfo"})),mounted:function(){this.showTableColumns=JSON.parse(u()(this.showTableColumns)),this.showTableColumnsTemp=JSON.parse(u()(this.showTableColumns)),this.getShowColumns(),this.initData()},methods:{getSummaries:function(e){var t=this,a=e.columns,s=e.data,i=[];return a.forEach(function(e,a){if(0!==a)if("count"==e.property){var l=s.map(function(t){return Number(t[e.property])});l.every(function(e){return isNaN(e)})?i[a]="":i[a]=l.reduce(function(e,t){var a=Number(t);return isNaN(a)?e:e+t},0),"count"!=e.property||i[a]&&(i[a]=t.countTotal)}else i[a]="";else i[a]="合计"}),i},qualityManagementAPI:function(){this.$api.qualityManagementAPI.qualityTraceabilityGetOut(this.search_data).then(function(e){console.log(e)})},getPart:function(e){console.log(e),e?(this.$set(this.search_data,"materielSerialNo",e.serialNo),this.$set(this.search_data,"materielId",e.id)):this.$set(this.search_data,"materielSerialNo","")},setDefaultDept:function(){if(this.depOptions.length>0&&this.search_data.deptId){var e=u()(this.search_data.deptId),t=this.treeFindPath(this.depOptions,function(t){return t.id===e});this.selectDeptId=JSON.parse(u()(t))}},handleChange:function(e){this.search_data.deptId=e[e.length-1],this.selectDeptId=e},initData:function(){var e=this;r.a.all([this.$api.dictAPI.getDictsByType("device_type"),this.$api.commonAPI.getDeptsTree(),this.$api.dictAPI.getDictsByType("device_status")]).then(function(t){var a=o()(t,3),s=a[0],i=a[1],l=a[2];0===s.code&&(e.typeList=s.datas),0===l.code&&(console.log(l),e.usingList=l.datas),0===i.code&&(e.depOptions=i.data.children,e.setDeptList(e.depOptions))}).catch(function(e){console.log(e)})},setDeptList:function(e){var t=!0,a=!1,s=void 0;try{for(var l,o=