Browse Source

2024-10-29

优化
master
fengyuan_yang 1 year ago
parent
commit
1812a31744
  1. 14
      src/views/modules/qc/DoInspectionBySeqNo.vue
  2. 14
      src/views/modules/qc/FQASResultEntry.vue
  3. 23
      src/views/modules/qc/IPQCResultEntry.vue
  4. 14
      src/views/modules/qc/IQCResultEntry.vue
  5. 14
      src/views/modules/qc/OQCResultEntry.vue

14
src/views/modules/qc/DoInspectionBySeqNo.vue

@ -65,6 +65,8 @@
:height="height" :height="height"
:data="dataList" :data="dataList"
border border
:row-style="rowStyle"
@row-click="clickRow"
style="width: 100%;"> style="width: 100%;">
<el-table-column <el-table-column
v-for="(item,index) in columnList" :key="index" v-for="(item,index) in columnList" :key="index"
@ -754,6 +756,7 @@
templateModelFlag: false, templateModelFlag: false,
saveLoading: false, saveLoading: false,
typeOptions: [], typeOptions: [],
currentRow: {}
} }
}, },
@ -1014,6 +1017,17 @@
this.templateModelFlag = false this.templateModelFlag = false
}, },
//
clickRow (row) {
this.currentRow = JSON.parse(JSON.stringify(row))
},
rowStyle ({row}) {
if (this.currentRow.seqNo === row.seqNo) {
return { 'background-color': '#E8F7F6', cursor: 'pointer' };
}
},
// IPQC // IPQC
checkOutToIPQC (no) { checkOutToIPQC (no) {
this.$router.push({name: "qc-IPQCResultEntry", params: {inspectionNo: no}}) this.$router.push({name: "qc-IPQCResultEntry", params: {inspectionNo: no}})

14
src/views/modules/qc/FQASResultEntry.vue

@ -306,6 +306,8 @@
:height="500" :height="500"
:data="detailList" :data="detailList"
border border
:row-style="rowDetailStyle"
@row-click="FQASDetailClickRow"
style="width: 100%;"> style="width: 100%;">
<el-table-column <el-table-column
prop="" prop=""
@ -1715,6 +1717,7 @@
inspectionTypeNo: '' inspectionTypeNo: ''
}, },
currentRow: {}, currentRow: {},
currentDetailRow: {},
changeData: { changeData: {
site: '', site: '',
buNo: '', buNo: '',
@ -2094,6 +2097,17 @@
} }
}, },
//
FQASDetailClickRow (row) {
this.currentDetailRow = JSON.parse(JSON.stringify(row))
},
rowDetailStyle ({row}) {
if (this.currentDetailRow.itemNo === row.itemNo) {
return { 'background-color': '#E8F7F6', cursor: 'pointer' };
}
},
// //
getFileContentData (row) { getFileContentData (row) {
this.fileData = { this.fileData = {

23
src/views/modules/qc/IPQCResultEntry.vue

@ -428,6 +428,8 @@
:height="400" :height="400"
:data="detailList" :data="detailList"
border border
:row-style="rowDetailStyle"
@row-click="IPQCDetailClickRow"
style="width: 100%;"> style="width: 100%;">
<el-table-column <el-table-column
prop="" prop=""
@ -967,9 +969,13 @@
} }
}, },
$route (newVal, oldVal) { $route (newVal, oldVal) {
console.log(111)
if (newVal.path !== oldVal.path) { if (newVal.path !== oldVal.path) {
console.log(222)
if (!this.authSearch) { if (!this.authSearch) {
console.log(333)
if (this.$route.params.inspectionNo) { if (this.$route.params.inspectionNo) {
console.log(444)
this.searchData.inspectionNo = this.$route.params.inspectionNo this.searchData.inspectionNo = this.$route.params.inspectionNo
this.getDataList2() this.getDataList2()
} }
@ -2366,6 +2372,7 @@
inspectionTypeNo: '' inspectionTypeNo: ''
}, },
currentRow: {}, currentRow: {},
currentDetailRow: {},
saveLoading: false, saveLoading: false,
} }
}, },
@ -2407,6 +2414,11 @@
} }
// //
this.getUserRoleList() this.getUserRoleList()
if (this.$route.params.inspectionNo) {
this.searchData.inspectionNo = this.$route.params.inspectionNo
this.getDataList2()
}
}, },
activated () { activated () {
@ -2857,6 +2869,17 @@
} }
}, },
//
IPQCDetailClickRow (row) {
this.currentDetailRow = JSON.parse(JSON.stringify(row))
},
rowDetailStyle ({row}) {
if (this.currentDetailRow.itemNo === row.itemNo) {
return { 'background-color': '#E8F7F6', cursor: 'pointer' };
}
},
// //
getFileContentData (row) { getFileContentData (row) {
this.fileData = { this.fileData = {

14
src/views/modules/qc/IQCResultEntry.vue

@ -323,6 +323,8 @@
:height="500" :height="500"
:data="detailList" :data="detailList"
border border
:row-style="rowDetailStyle"
@row-click="IQCDetailClickRow"
style="width: 100%;"> style="width: 100%;">
<el-table-column <el-table-column
prop="" prop=""
@ -2089,6 +2091,7 @@
], ],
batchIndex: '', batchIndex: '',
currentRow: {}, currentRow: {},
currentDetailRow: {},
changeData: { changeData: {
site: '', site: '',
buNo: '', buNo: '',
@ -2688,6 +2691,17 @@
} }
}, },
//
IQCDetailClickRow (row) {
this.currentDetailRow = JSON.parse(JSON.stringify(row))
},
rowDetailStyle ({row}) {
if (this.currentDetailRow.itemNo === row.itemNo) {
return { 'background-color': '#E8F7F6', cursor: 'pointer' };
}
},
// //
getFileContentData (row) { getFileContentData (row) {
this.fileData = { this.fileData = {

14
src/views/modules/qc/OQCResultEntry.vue

@ -299,6 +299,8 @@
:height="500" :height="500"
:data="detailList" :data="detailList"
border border
:row-style="rowDetailStyle"
@row-click="OQCDetailClickRow"
style="width: 100%;"> style="width: 100%;">
<el-table-column <el-table-column
prop="" prop=""
@ -1689,6 +1691,7 @@
inspectionTypeNo: '' inspectionTypeNo: ''
}, },
currentRow: {}, currentRow: {},
currentDetailRow: {},
changeData: { changeData: {
site: '', site: '',
buNo: '', buNo: '',
@ -2068,6 +2071,17 @@
} }
}, },
//
OQCDetailClickRow (row) {
this.currentDetailRow = JSON.parse(JSON.stringify(row))
},
rowDetailStyle ({row}) {
if (this.currentDetailRow.itemNo === row.itemNo) {
return { 'background-color': '#E8F7F6', cursor: 'pointer' };
}
},
// //
getFileContentData (row) { getFileContentData (row) {
this.fileData = { this.fileData = {

Loading…
Cancel
Save