yxk_pc_mdh/gyhl/static/js/479.8785f7b0a9d8948b1c32.js

1 line
24 KiB
JavaScript
Raw Normal View History

2025-08-28 15:26:35 +08:00
webpackJsonp([479],{"3AWD":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("BO1k"),s=a.n(i),o=a("woOf"),l=a.n(o),r=a("d7EF"),n=a.n(r),c=a("//Fk"),p=a.n(c),h=a("mvHQ"),u=a.n(h),m=a("Dd8w"),d=a.n(m),f=a("NYxO"),g=(a("t4zo"),a("uXZL"),a("3MlD")),v=a("FnMF"),_=a("OG67"),b=a("lbHh"),y=a.n(b),D=a("bzuE"),C={name:"purchase_apply_index",components:{dialogChooseSingleUser:g.a,dialogChooseSingleSupplier:v.a,dialogChooseSingleParts:_.a},data:function(){return{totalAll:{},config:D.a,depOptions:[],selectDeptId:"",user_type:"",chooseSupplierVisible:!1,chooseMaterielVisible:!1,chooseUserVisible:!1,total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10},time:"",formDataTime:"",auditSignList:[],companyList:[],createByList:[],formData:{},showTableColumnsDefault:[{title:"开票日期",prop_:"invoiceDate",select:!0},{title:"供应商",prop_:"supplierName",select:!0},{title:"票据类型",prop_:"billTypeName",select:!0},{title:"发票号码",prop_:"invoiceNum",select:!0},{title:"物料代码",prop_:"serialNo",select:!0},{title:"物料名称",prop_:"materielName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"主计量单位",prop_:"unitUomName",select:!0},{title:"主单位数量",prop_:"count",select:!0},{title:"辅助单位",prop_:"supportUomName",select:!0},{title:"数量",prop_:"purchaseCount",select:!0},{title:"不含税单价(元)",prop_:"unitPrice",select:!0},{title:"税率(%",prop_:"taxRate",select:!0},{title:"不含税金额(元)",prop_:"amount",select:!0},{title:"税额(元)",prop_:"taxes",select:!0},{title:"价税合计(元)",prop_:"taxAmount",select:!0},{title:"审核状态",prop_:"auditSignName",select:!0},{title:"源单类型",prop_:"sourceTypeName",select:!0},{title:"源单单号",prop_:"sourceCode",select:!0}],showTableColumns:[{title:"开票日期",prop_:"invoiceDate",select:!0},{title:"供应商",prop_:"supplierName",select:!0},{title:"票据类型",prop_:"billTypeName",select:!0},{title:"发票号码",prop_:"invoiceNum",select:!0},{title:"物料代码",prop_:"serialNo",select:!0},{title:"物料名称",prop_:"materielName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"主计量单位",prop_:"unitUomName",select:!0},{title:"主单位数量",prop_:"count",select:!0},{title:"辅助单位",prop_:"supportUomName",select:!0},{title:"数量",prop_:"purchaseCount",select:!0},{title:"不含税单价(元)",prop_:"unitPrice",select:!0},{title:"税率(%",prop_:"taxRate",select:!0},{title:"不含税金额(元)",prop_:"amount",select:!0},{title:"税额(元)",prop_:"taxes",select:!0},{title:"价税合计(元)",prop_:"taxAmount",select:!0},{title:"审核状态",prop_:"auditSignName",select:!0},{title:"源单类型",prop_:"sourceTypeName",select:!0},{title:"源单单号",prop_:"sourceCode",select:!0}],showTableColumnsTemp:[],formTableData:[],tableData:[],btnDelDisabled:!0,btnOtherDisabled:!0,rowIds:[],advanceQueryDialogVisible:!1,dialogTitle:"",dialogLoading:!1,columnSetDialogVisible:!1,columnSetDialogTitle:"设置显示字段列表",pictLoading:!1,tableId:"purchase_invoice_table",userInfo:""}},created:function(){var e=this;document.onkeydown=function(t){"Enter"===t.key&&e.search()}},computed:d()({},Object(f.c)({})),mounted:function(){this.userInfo=JSON.parse(y.a.get("userInfo")),this.showTableColumns=JSON.parse(u()(this.showTableColumns)),this.showTableColumnsTemp=JSON.parse(u()(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:"/purchase/purchase_contract_add",query:{id:t,t:Date.now()}})},initialize:function(){var e=this;p.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.depO