From c89ad77ebf264a4ae9479b1808719db8833c5459 Mon Sep 17 00:00:00 2001 From: jiayang yue Date: Wed, 14 May 2025 21:24:25 +0800 Subject: [PATCH] =?UTF-8?q?2025.05.14=20FQAS=E4=BB=BB=E5=8A=A1=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=9D=A1=E4=BB=B6=E5=8A=A0=E5=85=A5=E9=80=81=E6=A3=80?= =?UTF-8?q?=E5=91=98=EF=BC=8C=E8=A6=81=E6=B1=82=E5=8F=AF=E4=BB=A5=E6=A8=A1?= =?UTF-8?q?=E7=B3=8A=E6=9F=A5=E6=89=BE=EF=BC=9B=E5=90=8C=E6=97=B6=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E5=85=B3=E8=81=94?= =?UTF-8?q?=E5=8D=95=E5=8F=B74=E3=80=815?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 基础-物料属性设置 导入导出功能,完善 --- src/views/modules/qc/FQASResultEntry.vue | 17 +- src/views/modules/qc/qcPartAttribute.vue | 225 ++++++++++++++++++++++- 2 files changed, 230 insertions(+), 12 deletions(-) diff --git a/src/views/modules/qc/FQASResultEntry.vue b/src/views/modules/qc/FQASResultEntry.vue index 0cba7ae..4b7a074 100644 --- a/src/views/modules/qc/FQASResultEntry.vue +++ b/src/views/modules/qc/FQASResultEntry.vue @@ -27,10 +27,7 @@ - - - - + @@ -51,12 +48,6 @@ - - - - - - 关联单号6 @@ -64,6 +55,12 @@ + + + + + + diff --git a/src/views/modules/qc/qcPartAttribute.vue b/src/views/modules/qc/qcPartAttribute.vue index 02113bb..6ca7899 100644 --- a/src/views/modules/qc/qcPartAttribute.vue +++ b/src/views/modules/qc/qcPartAttribute.vue @@ -860,6 +860,7 @@ familyName: '', buDesc: '', attributeType: 'A', + importFlag: false, page: 1, limit: 10, }, @@ -1099,6 +1100,224 @@ fixed: '', }, ], + columnList1: [ + { + userId: this.$store.state.user.name, + functionId: 301003, + serialNumber: '301003Table1BuDesc', + tableId: "301003Table1", + tableName: "物料属性设置表", + columnWidth: 100, + columnProp: 'buDesc', + headerAlign: "center", + align: "center", + columnLabel: 'BU', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + }, + { + userId: this.$store.state.user.name, + functionId: 301003, + serialNumber: '301003Table1PartNo', + tableId: "301003Table1", + tableName: "物料属性设置表", + columnWidth: 146, + columnProp: 'partNo', + headerAlign: "center", + align: "center", + columnLabel: '物料编码', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + }, + { + userId: this.$store.state.user.name, + functionId: 301003, + serialNumber: '301003Table1PartDesc', + tableId: "301003Table1", + tableName: "物料属性设置表", + columnWidth: 144, + columnProp: 'partDesc', + headerAlign: "center", + align: "left", + columnLabel: '物料名称', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + }, + { + userId: this.$store.state.user.name, + functionId: 301003, + serialNumber: '301003Table1FamilyName', + tableId: "301003Table1", + tableName: "物料属性设置表", + columnWidth: 144, + columnProp: 'familyName', + headerAlign: "center", + align: "center", + columnLabel: '物料类别', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + }, + { + userId: this.$store.state.user.name, + functionId: 301003, + serialNumber: '301003Table1Umid', + tableId: "301003Table1", + tableName: "物料属性设置表", + columnWidth: 144, + columnProp: 'umid', + headerAlign: "center", + align: "center", + columnLabel: '规格型号', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + }, + { + userId: this.$store.state.user.name, + functionId: 301003, + serialNumber: '301003Table1ExemptInspection', + tableId: "301003Table1", + tableName: "物料属性设置表", + columnWidth: 144, + columnProp: 'exemptInspection', + headerAlign: "center", + align: "center", + columnLabel: '是否免检', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + }, + { + userId: this.$store.state.user.name, + functionId: 301003, + serialNumber: '301003Table1TemplateIds', + tableId: "301003Table1", + tableName: "物料属性设置表", + columnWidth: 240, + columnProp: 'templateIds', + headerAlign: "center", + align: "left", + columnLabel: '模版编码', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + }, + { + userId: this.$store.state.user.name, + functionId: 301003, + serialNumber: '301003Table1AttributeRemark', + tableId: "301003Table1", + tableName: "物料属性设置表", + columnWidth: 144, + columnProp: 'attributeRemark', + headerAlign: "center", + align: "center", + columnLabel: '备注', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + }, + { + userId: this.$store.state.user.name, + functionId: 301003, + serialNumber: '301003Table1CreateTime', + tableId: "301003Table1", + tableName: "物料属性设置表", + columnWidth: 144, + columnProp: 'createTime', + headerAlign: "center", + align: "center", + columnLabel: '创建时间', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + }, + { + userId: this.$store.state.user.name, + functionId: 301003, + serialNumber: '301003Table1CreateBy', + tableId: "301003Table1", + tableName: "物料属性设置表", + columnWidth: 144, + columnProp: 'createBy', + headerAlign: "center", + align: "center", + columnLabel: '创建人', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + }, + { + userId: this.$store.state.user.name, + functionId: 301003, + serialNumber: '301003Table1UpdateDate', + tableId: "301003Table1", + tableName: "物料属性设置表", + columnWidth: 144, + columnProp: 'updateDate', + headerAlign: "center", + align: "center", + columnLabel: '更新时间', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + }, + { + userId: this.$store.state.user.name, + functionId: 301003, + serialNumber: '301003Table1UpdateBy', + tableId: "301003Table1", + tableName: "物料属性设置表", + columnWidth: 144, + columnProp: 'updateBy', + headerAlign: "center", + align: "center", + columnLabel: '更新人', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + }, + ], detailModelFlag: false, detailList: [], dataList: [], @@ -1968,9 +2187,11 @@ async createExportData() { this.searchData.limit = -1 this.searchData.page = 1 + this.searchData.importFlag = true await qcPartAttributeSearch(this.searchData).then(({data}) => { this.exportList= data.page.list }) + this.searchData.importFlag = false return this.exportList }, @@ -1980,8 +2201,8 @@ fields () { let json = "{" - this.columnList.forEach((item, index) => { - if (index == this.columnList.length - 1) { + this.columnList1.forEach((item, index) => { + if (index == this.columnList1.length - 1) { json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" } else { json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","