|
|
|
@ -92,7 +92,7 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
v-for="(item,index) in columnList" :key="index" |
|
|
|
v-for="(item,index) in columnList1" :key="index" |
|
|
|
:sortable="item.columnSortable" |
|
|
|
:prop="item.columnProp" |
|
|
|
:header-align="item.headerAlign" |
|
|
|
@ -667,6 +667,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'; |
|
|
|
@ -749,8 +753,13 @@ |
|
|
|
umName: '' |
|
|
|
}, |
|
|
|
// 展示列集 |
|
|
|
columnList: [ |
|
|
|
columnList1: [ |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1InspectionNo', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FAI检验记录表", |
|
|
|
columnProp: 'inspectionNo', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -764,6 +773,11 @@ |
|
|
|
columnWidth: 120, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1BatchRollNo', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'batchRollNo', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -777,6 +791,11 @@ |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1RollNo', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'rollNo', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -790,6 +809,11 @@ |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1InspectionResult', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'inspectionResult', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -803,6 +827,11 @@ |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1DisposalMeasures', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'disposalMeasures', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -816,6 +845,11 @@ |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1TaskDate', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'taskDate', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -829,6 +863,11 @@ |
|
|
|
columnWidth: 120, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1InspectionCycle', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'inspectionCycle', |
|
|
|
headerAlign: "center", |
|
|
|
align: "right", |
|
|
|
@ -842,6 +881,11 @@ |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1OrderNo', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'orderNo', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -855,6 +899,11 @@ |
|
|
|
columnWidth: 120, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1SeqNo', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'seqNo', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -868,6 +917,11 @@ |
|
|
|
columnWidth: 150, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1OperationDesc', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'operationDesc', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -881,6 +935,11 @@ |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1ResourceDesc', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'resourceDesc', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -894,6 +953,11 @@ |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1PartNo', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'partNo', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -907,6 +971,11 @@ |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1Spec', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'spec', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -920,6 +989,11 @@ |
|
|
|
columnWidth: 150, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1CinvSourceCode', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'cinvSourceCode', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -933,6 +1007,11 @@ |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1Sku', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'sku', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -946,6 +1025,11 @@ |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1PartDesc', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'partDesc', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -959,6 +1043,11 @@ |
|
|
|
columnWidth: 150, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1RollQty', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'rollQty', |
|
|
|
headerAlign: "center", |
|
|
|
align: "right", |
|
|
|
@ -972,6 +1061,11 @@ |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1SamplingQty', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'samplingQty', |
|
|
|
headerAlign: "center", |
|
|
|
align: "right", |
|
|
|
@ -985,6 +1079,11 @@ |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1UmName', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'umName', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -998,6 +1097,11 @@ |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1InspectionRemark', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'inspectionRemark', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -1011,6 +1115,11 @@ |
|
|
|
columnWidth: 120, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1DisposalRemark', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'disposalRemark', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -1024,6 +1133,11 @@ |
|
|
|
columnWidth: 120, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1InspectorDate', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'inspectorDate', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -1037,6 +1151,11 @@ |
|
|
|
columnWidth: 120, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1InspectorName', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'inspectorName', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -1050,6 +1169,11 @@ |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301007, |
|
|
|
serialNumber: '301007Table1SpecialRequirements', |
|
|
|
tableId: "301007Table1", |
|
|
|
tableName: "FQC检验记录表", |
|
|
|
columnProp: 'specialRequirements', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -1478,6 +1602,8 @@ |
|
|
|
this.umSearch() |
|
|
|
// 查看 质量任务生成规则控制 动控是否开启 |
|
|
|
this.queryController() |
|
|
|
// 动态列 |
|
|
|
this.getTableUserColumn(this.$route.meta.menuId+'table1',1) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
@ -1764,7 +1890,6 @@ |
|
|
|
|
|
|
|
// 新增FAI巡检记录 |
|
|
|
saveData(){ |
|
|
|
console.log(this.modalData) |
|
|
|
if (this.modalData.seqNo === '' || this.modalData.seqNo == null) { |
|
|
|
this.$message.warning('请选择派工单!') |
|
|
|
return |
|
|
|
@ -2448,16 +2573,12 @@ |
|
|
|
userId: this.$store.state.user.id, |
|
|
|
languageCode: this.$i18n.locale |
|
|
|
} |
|
|
|
console.log(this.$route.meta.menuId) |
|
|
|
userFavoriteList(userFavorite).then(({data}) => { |
|
|
|
for (let i = 0; i < data.list.length; i++) { |
|
|
|
// let flag=false; |
|
|
|
if(this.$route.meta.menuId==data.list[i].menuId){ |
|
|
|
this.favorite = true |
|
|
|
// flag=true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
@ -2468,17 +2589,10 @@ |
|
|
|
functionId: this.$route.meta.menuId, |
|
|
|
} |
|
|
|
if (this.favorite) { |
|
|
|
// 取消收藏 |
|
|
|
// this.$confirm(`确定取消收藏`, '提示', { |
|
|
|
// confirmButtonText: '确定', |
|
|
|
// cancelButtonText: '取消', |
|
|
|
// type: 'warning' |
|
|
|
// }).then(() => { |
|
|
|
removeUserFavorite(userFavorite).then(({data}) => { |
|
|
|
this.$message.success(data.msg) |
|
|
|
this.favorite = false |
|
|
|
}) |
|
|
|
// }) |
|
|
|
} else { |
|
|
|
// 收藏 |
|
|
|
saveUserFavorite(userFavorite).then(({data}) => { |
|
|
|
@ -2495,23 +2609,17 @@ |
|
|
|
await qcFAIInspectionSearch(this.searchData).then(({data}) => { |
|
|
|
this.exportList= data.page.list; |
|
|
|
}) |
|
|
|
|
|
|
|
return this.exportList; |
|
|
|
}, |
|
|
|
|
|
|
|
startDownload() { |
|
|
|
// this.exportData = this.dataList |
|
|
|
|
|
|
|
}, |
|
|
|
startDownload() {}, |
|
|
|
|
|
|
|
finishDownload() { |
|
|
|
|
|
|
|
}, |
|
|
|
finishDownload() {}, |
|
|
|
|
|
|
|
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 + "\"" + "," |
|
|
|
@ -2522,7 +2630,74 @@ |
|
|
|
|
|
|
|
return s |
|
|
|
}, |
|
|
|
// 导出 end |
|
|
|
|
|
|
|
// 动态列开始 获取 用户保存的 格式列 |
|
|
|
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. |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
//动态列结束 |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|