@@ -339,7 +339,7 @@
上传文件
-
+
@@ -353,7 +353,7 @@
prop=""
header-align="center"
align="center"
- min-width="40"
+ min-width="60"
label="操作">
@@ -665,6 +665,10 @@
queryPartList, // 查询物料集合
umSearch // 查询单位列表
} from "@/api/qc/qc.js";
+ import {
+ getTableDefaultListLanguage,
+ getTableUserListLanguage,
+ } from "@/api/table.js"
import Chooselist from '@/views/modules/common/Chooselist_eam';
import {getFileContentList, downLoadObjectFile} from '@/api/eam/eam_object_list.js';
import {deleteObjectFile} from '@/api/eam/eam.js';
@@ -747,8 +751,13 @@
umName: ''
},
// 展示列集
- columnList: [
+ columnList1: [
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1InspectionNo',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'inspectionNo',
headerAlign: "center",
align: "center",
@@ -762,6 +771,11 @@
columnWidth: 120,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1BatchRollNo',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'batchRollNo',
headerAlign: "center",
align: "center",
@@ -775,6 +789,11 @@
columnWidth: 100,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1RollNo',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'rollNo',
headerAlign: "center",
align: "center",
@@ -788,6 +807,11 @@
columnWidth: 100,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1InspectionResult',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'inspectionResult',
headerAlign: "center",
align: "center",
@@ -801,6 +825,11 @@
columnWidth: 80,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1DisposalMeasures',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'disposalMeasures',
headerAlign: "center",
align: "center",
@@ -814,6 +843,11 @@
columnWidth: 100,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1TaskDate',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'taskDate',
headerAlign: "center",
align: "center",
@@ -827,6 +861,11 @@
columnWidth: 120,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1InspectionCycle',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'inspectionCycle',
headerAlign: "center",
align: "right",
@@ -840,6 +879,11 @@
columnWidth: 80,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1OrderNo',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'orderNo',
headerAlign: "center",
align: "center",
@@ -853,6 +897,11 @@
columnWidth: 120,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1SeqNo',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'seqNo',
headerAlign: "center",
align: "center",
@@ -866,6 +915,11 @@
columnWidth: 150,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1OperationDesc',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'operationDesc',
headerAlign: "center",
align: "center",
@@ -879,6 +933,11 @@
columnWidth: 100,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1ResourceDesc',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'resourceDesc',
headerAlign: "center",
align: "center",
@@ -892,6 +951,11 @@
columnWidth: 100,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1PartNo',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'partNo',
headerAlign: "center",
align: "center",
@@ -905,6 +969,11 @@
columnWidth: 100,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1Spec',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'spec',
headerAlign: "center",
align: "center",
@@ -918,6 +987,11 @@
columnWidth: 150,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1CinvSourceCode',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'cinvSourceCode',
headerAlign: "center",
align: "center",
@@ -931,6 +1005,11 @@
columnWidth: 100,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1Sku',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'sku',
headerAlign: "center",
align: "center",
@@ -944,6 +1023,11 @@
columnWidth: 100,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1PartDesc',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'partDesc',
headerAlign: "center",
align: "center",
@@ -957,6 +1041,11 @@
columnWidth: 150,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1RollQty',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'rollQty',
headerAlign: "center",
align: "right",
@@ -970,6 +1059,11 @@
columnWidth: 80,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1SamplingQty',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'samplingQty',
headerAlign: "center",
align: "right",
@@ -983,6 +1077,11 @@
columnWidth: 80,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1UmName',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'umName',
headerAlign: "center",
align: "center",
@@ -996,6 +1095,11 @@
columnWidth: 80,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1InspectionRemark',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'inspectionRemark',
headerAlign: "center",
align: "center",
@@ -1009,6 +1113,11 @@
columnWidth: 120,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1DisposalRemark',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'disposalRemark',
headerAlign: "center",
align: "center",
@@ -1022,6 +1131,11 @@
columnWidth: 120,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1InspectorDate',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'inspectorDate',
headerAlign: "center",
align: "center",
@@ -1035,6 +1149,11 @@
columnWidth: 120,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1InspectorName',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'inspectorName',
headerAlign: "center",
align: "center",
@@ -1048,6 +1167,11 @@
columnWidth: 100,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301015,
+ serialNumber: '301015Table1SpecialRequirements',
+ tableId: "301015Table1",
+ tableName: "FQC检验记录表",
columnProp: 'specialRequirements',
headerAlign: "center",
align: "center",
@@ -1109,6 +1233,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 120,
},
{
columnProp: 'samplingLevelDesc',
@@ -1121,6 +1246,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 120,
},
{
columnProp: 'samplingProgrammeDesc',
@@ -1133,6 +1259,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 120,
},
{
columnProp: 'objectDesc',
@@ -1145,6 +1272,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 120,
},
{
columnProp: 'aql',
@@ -1157,6 +1285,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 80,
},
{
columnProp: 'ac',
@@ -1169,6 +1298,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 80,
},
{
columnProp: 're',
@@ -1181,6 +1311,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 80,
},
{
columnProp: 'defaultValue',
@@ -1193,6 +1324,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 100,
},
{
columnProp: 'maxValue',
@@ -1205,6 +1337,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 100,
},
{
columnProp: 'minValue',
@@ -1217,6 +1350,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 100,
},
{
columnProp: 'valueType',
@@ -1229,6 +1363,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 80,
},
],
fileColumnList: [
@@ -1476,6 +1611,8 @@
this.umSearch()
// 查看 质量任务生成规则控制 动控是否开启
this.queryController()
+ // 动态列
+ this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
},
methods: {
@@ -2495,8 +2632,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 + "\"" + ","
@@ -2506,6 +2643,75 @@
let s = eval("(" + json + ")")
return s
},
+
+ // 动态列开始 获取 用户保存的 格式列
+ async getTableUserColumn(tableId, columnId) {
+ let queryTableUser = {
+ userId: this.$store.state.user.name,
+ functionId: this.$route.meta.menuId,
+ tableId: tableId,
+ status: true,
+ languageCode: this.$i18n.locale
+ }
+ await getTableUserListLanguage(queryTableUser).then(({data}) => {
+ if (data.rows.length > 0) {
+ //this.columnList1 = []
+ switch (columnId) {
+ case 1:
+ this.columnList1 = data.rows
+ break;
+ // case 2:
+ // this.columnList1 = data.rows
+ // break;
+ // case 3:
+ // this.columnList2 = data.rows
+ // break;
+ // case 4:
+ // this.columnList3 = data.rows
+ // break;
+ }
+
+ } else {
+ this.getColumnList(tableId, columnId)
+ }
+ })
+
+ },
+
+ // 获取 tableDefault 列
+ async getColumnList(tableId, columnId) {
+ this.queryTable.tableId = tableId
+ let queryTable= {
+ functionId: this.$route.meta.menuId,
+ tableId: tableId,
+ languageCode: this.$i18n.locale
+ }
+ await getTableDefaultListLanguage(queryTable).then(({data}) => {
+ if (!data.rows.length == 0) {
+ switch (columnId) {
+ case 1:
+ this.columnList1 = data.rows
+ break;
+ // case 2:
+ // this.columnList1 = data.rows
+ // break;
+ // case 3:
+ // this.columnList2 = data.rows
+ // break;
+ // case 4:
+ // this.columnList3 = data.rows
+ // break;
+ }
+ } else {
+ // this.showDefault = true.
+ }
+ })
+
+ },
+ //动态列结束
+
+
+
}
}
diff --git a/src/views/modules/qc/IPQCResultEntry.vue b/src/views/modules/qc/IPQCResultEntry.vue
index 41bab55..1566186 100644
--- a/src/views/modules/qc/IPQCResultEntry.vue
+++ b/src/views/modules/qc/IPQCResultEntry.vue
@@ -102,7 +102,7 @@
-
+
@@ -374,7 +374,7 @@
prop=""
header-align="center"
align="center"
- min-width="40"
+ min-width="60"
label="操作">
@@ -683,6 +683,10 @@
queryPartList, // 查询物料集合
umSearch // 查询单位列表
} from "@/api/qc/qc.js"
+ import {
+ getTableDefaultListLanguage,
+ getTableUserListLanguage,
+ } from "@/api/table.js"
import Chooselist from '@/views/modules/common/Chooselist_eam'
import {getFileContentList, downLoadObjectFile} from '@/api/eam/eam_object_list.js'
import {deleteObjectFile} from '@/api/eam/eam.js'
@@ -773,8 +777,13 @@
umName: ''
},
// 展示列集
- columnList: [
+ columnList1: [
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1InspectionNo',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'inspectionNo',
headerAlign: "center",
align: "center",
@@ -788,6 +797,11 @@
columnWidth: 120,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1BatchRollNo',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'batchRollNo',
headerAlign: "center",
align: "center",
@@ -801,6 +815,11 @@
columnWidth: 100,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1RollNo',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'rollNo',
headerAlign: "center",
align: "center",
@@ -814,6 +833,11 @@
columnWidth: 100,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1InspectionResult',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'inspectionResult',
headerAlign: "center",
align: "center",
@@ -827,6 +851,11 @@
columnWidth: 80,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1DisposalMeasures',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'disposalMeasures',
headerAlign: "center",
align: "center",
@@ -840,6 +869,11 @@
columnWidth: 100,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1InspectionTypeNo',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'inspectionTypeNo',
headerAlign: "center",
align: "center",
@@ -853,6 +887,11 @@
columnWidth: 80,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1TaskDate',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'taskDate',
headerAlign: "center",
align: "center",
@@ -866,6 +905,11 @@
columnWidth: 120,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1InspectionCycle',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'inspectionCycle',
headerAlign: "center",
align: "right",
@@ -879,6 +923,11 @@
columnWidth: 80,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1OrderNo',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'orderNo',
headerAlign: "center",
align: "center",
@@ -892,6 +941,11 @@
columnWidth: 120,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1SeqNo',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'seqNo',
headerAlign: "center",
align: "center",
@@ -905,6 +959,11 @@
columnWidth: 150,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1OperationDesc',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'operationDesc',
headerAlign: "center",
align: "center",
@@ -918,6 +977,11 @@
columnWidth: 100,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1ResourceDesc',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'resourceDesc',
headerAlign: "center",
align: "center",
@@ -931,6 +995,11 @@
columnWidth: 100,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1PartNo',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'partNo',
headerAlign: "center",
align: "center",
@@ -944,6 +1013,11 @@
columnWidth: 100,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1Spec',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'spec',
headerAlign: "center",
align: "center",
@@ -957,6 +1031,11 @@
columnWidth: 150,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1cinvSourceCode',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'cinvSourceCode',
headerAlign: "center",
align: "center",
@@ -970,6 +1049,11 @@
columnWidth: 100,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1Sku',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'sku',
headerAlign: "center",
align: "center",
@@ -983,6 +1067,11 @@
columnWidth: 100,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1PartDesc',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'partDesc',
headerAlign: "center",
align: "center",
@@ -996,6 +1085,11 @@
columnWidth: 150,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1RollQty',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'rollQty',
headerAlign: "center",
align: "right",
@@ -1009,6 +1103,11 @@
columnWidth: 80,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1SamplingQty',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'samplingQty',
headerAlign: "center",
align: "right",
@@ -1022,6 +1121,11 @@
columnWidth: 80,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1UmName',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'umName',
headerAlign: "center",
align: "center",
@@ -1035,6 +1139,11 @@
columnWidth: 80,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1InspectionRemark',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'inspectionRemark',
headerAlign: "center",
align: "center",
@@ -1048,6 +1157,11 @@
columnWidth: 120,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1DisposalRemark',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'disposalRemark',
headerAlign: "center",
align: "center",
@@ -1061,6 +1175,11 @@
columnWidth: 120,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1InspectorDate',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'inspectorDate',
headerAlign: "center",
align: "center",
@@ -1074,6 +1193,11 @@
columnWidth: 120,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1InspectorName',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'inspectorName',
headerAlign: "center",
align: "center",
@@ -1087,6 +1211,11 @@
columnWidth: 100,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 301014,
+ serialNumber: '301014Table1SpecialRequirements',
+ tableId: "301014Table1",
+ tableName: "IPQC检验记录表",
columnProp: 'specialRequirements',
headerAlign: "center",
align: "center",
@@ -1148,6 +1277,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 120,
},
{
columnProp: 'samplingLevelDesc',
@@ -1160,6 +1290,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 120,
},
{
columnProp: 'samplingProgrammeDesc',
@@ -1172,6 +1303,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 120,
},
{
columnProp: 'objectDesc',
@@ -1184,6 +1316,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 120,
},
{
columnProp: 'aql',
@@ -1196,6 +1329,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 80,
},
{
columnProp: 'ac',
@@ -1208,6 +1342,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 80,
},
{
columnProp: 're',
@@ -1220,6 +1355,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 80,
},
{
columnProp: 'defaultValue',
@@ -1232,6 +1368,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 100,
},
{
columnProp: 'maxValue',
@@ -1244,6 +1381,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 100,
},
{
columnProp: 'minValue',
@@ -1256,6 +1394,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 100,
},
{
columnProp: 'valueType',
@@ -1268,6 +1407,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 80,
},
],
fileColumnList: [
@@ -1523,6 +1663,7 @@
this.umSearch()
// 查看 质量任务生成规则控制 动控是否开启
this.queryController()
+ this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
},
methods: {
// 查询单位
@@ -2538,8 +2679,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 + "\"" + ","
@@ -2549,6 +2690,74 @@
let s = eval("(" + json + ")")
return s
},
+
+
+ // 动态列开始 获取 用户保存的 格式列
+ async getTableUserColumn(tableId, columnId) {
+ let queryTableUser = {
+ userId: this.$store.state.user.name,
+ functionId: this.$route.meta.menuId,
+ tableId: tableId,
+ status: true,
+ languageCode: this.$i18n.locale
+ }
+ await getTableUserListLanguage(queryTableUser).then(({data}) => {
+ if (data.rows.length > 0) {
+ //this.columnList1 = []
+ switch (columnId) {
+ case 1:
+ this.columnList1 = data.rows
+ break;
+ // case 2:
+ // this.columnList1 = data.rows
+ // break;
+ // case 3:
+ // this.columnList2 = data.rows
+ // break;
+ // case 4:
+ // this.columnList3 = data.rows
+ // break;
+ }
+
+ } else {
+ this.getColumnList(tableId, columnId)
+ }
+ })
+
+ },
+
+ // 获取 tableDefault 列
+ async getColumnList(tableId, columnId) {
+ this.queryTable.tableId = tableId
+ let queryTable= {
+ functionId: this.$route.meta.menuId,
+ tableId: tableId,
+ languageCode: this.$i18n.locale
+ }
+ await getTableDefaultListLanguage(queryTable).then(({data}) => {
+ if (!data.rows.length == 0) {
+ switch (columnId) {
+ case 1:
+ this.columnList1 = data.rows
+ break;
+ // case 2:
+ // this.columnList1 = data.rows
+ // break;
+ // case 3:
+ // this.columnList2 = data.rows
+ // break;
+ // case 4:
+ // this.columnList3 = data.rows
+ // break;
+ }
+ } else {
+ // this.showDefault = true.
+ }
+ })
+
+ },
+ //动态列结束
+
}
}
diff --git a/src/views/modules/qc/IQCResultEntry.vue b/src/views/modules/qc/IQCResultEntry.vue
index a812663..83a4500 100644
--- a/src/views/modules/qc/IQCResultEntry.vue
+++ b/src/views/modules/qc/IQCResultEntry.vue
@@ -128,7 +128,7 @@
-
+
@@ -222,7 +222,7 @@
prop=""
header-align="center"
align="center"
- min-width="40"
+ min-width="60"
label="操作">
@@ -500,6 +500,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 120,
},
{
columnProp: 'inspectionResult',
@@ -512,6 +513,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 80,
},
{
columnProp: 'taskDate',
@@ -524,6 +526,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 120,
},
{
columnProp: 'inspectionCycle',
@@ -536,6 +539,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 80,
},
{
columnProp: 'rollNo',
@@ -548,6 +552,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 120,
},
{
columnProp: 'partNo',
@@ -560,6 +565,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 100,
},
{
columnProp: 'partDesc',
@@ -572,6 +578,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 150,
},
{
columnProp: 'umid',
@@ -584,6 +591,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 80,
},
{
columnProp: 'rollQty',
@@ -596,6 +604,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 80,
},
{
columnProp: 'samplingQty',
@@ -608,11 +617,12 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 80,
},
{
columnProp: 'poOrderNo',
headerAlign: "center",
- align: "right",
+ align: "center",
columnLabel: '单据号',
columnHidden: false,
columnImage: false,
@@ -620,6 +630,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 130,
},
{
columnProp: 'poItemNo',
@@ -632,6 +643,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 80,
},
{
columnProp: 'supplierDesc',
@@ -644,6 +656,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 150,
},
{
columnProp: 'inspectionRemark',
@@ -656,6 +669,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 150,
},
{
columnProp: 'disposalMeasures',
@@ -668,6 +682,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 120,
},
{
columnProp: 'disposalRemark',
@@ -680,6 +695,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 150,
},
{
columnProp: 'inspectorDate',
@@ -692,6 +708,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 130,
},
{
columnProp: 'inspectorNo',
@@ -704,6 +721,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 120,
},
],
detailColumnList: [
@@ -718,6 +736,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 120,
},
{
columnProp: 'samplingLevelDesc',
@@ -730,6 +749,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 120,
},
{
columnProp: 'samplingProgrammeDesc',
@@ -742,6 +762,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 120,
},
{
columnProp: 'objectDesc',
@@ -754,6 +775,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 120,
},
{
columnProp: 'aql',
@@ -766,6 +788,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 80,
},
{
columnProp: 'ac',
@@ -778,6 +801,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 80,
},
{
columnProp: 're',
@@ -790,6 +814,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 80,
},
{
columnProp: 'defaultValue',
@@ -802,6 +827,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 100,
},
{
columnProp: 'maxValue',
@@ -814,6 +840,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 100,
},
{
columnProp: 'minValue',
@@ -826,6 +853,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 100,
},
{
columnProp: 'valueType',
@@ -838,6 +866,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 80,
},
],
fileColumnList: [