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"
:data="dataList"
border
:row-style="rowStyle"
@row-click="clickRow"
style="width: 100%;">
<el-table-column
v-for="(item,index) in columnList" :key="index"
@ -754,6 +756,7 @@
templateModelFlag: false,
saveLoading: false,
typeOptions: [],
currentRow: {}
}
},
@ -1014,6 +1017,17 @@
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
checkOutToIPQC (no) {
this.$router.push({name: "qc-IPQCResultEntry", params: {inspectionNo: no}})

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

@ -306,6 +306,8 @@
:height="500"
:data="detailList"
border
:row-style="rowDetailStyle"
@row-click="FQASDetailClickRow"
style="width: 100%;">
<el-table-column
prop=""
@ -1715,6 +1717,7 @@
inspectionTypeNo: ''
},
currentRow: {},
currentDetailRow: {},
changeData: {
site: '',
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) {
this.fileData = {

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

@ -428,6 +428,8 @@
:height="400"
:data="detailList"
border
:row-style="rowDetailStyle"
@row-click="IPQCDetailClickRow"
style="width: 100%;">
<el-table-column
prop=""
@ -967,9 +969,13 @@
}
},
$route (newVal, oldVal) {
console.log(111)
if (newVal.path !== oldVal.path) {
console.log(222)
if (!this.authSearch) {
console.log(333)
if (this.$route.params.inspectionNo) {
console.log(444)
this.searchData.inspectionNo = this.$route.params.inspectionNo
this.getDataList2()
}
@ -2366,6 +2372,7 @@
inspectionTypeNo: ''
},
currentRow: {},
currentDetailRow: {},
saveLoading: false,
}
},
@ -2407,6 +2414,11 @@
}
//
this.getUserRoleList()
if (this.$route.params.inspectionNo) {
this.searchData.inspectionNo = this.$route.params.inspectionNo
this.getDataList2()
}
},
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) {
this.fileData = {

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

@ -323,6 +323,8 @@
:height="500"
:data="detailList"
border
:row-style="rowDetailStyle"
@row-click="IQCDetailClickRow"
style="width: 100%;">
<el-table-column
prop=""
@ -2089,6 +2091,7 @@
],
batchIndex: '',
currentRow: {},
currentDetailRow: {},
changeData: {
site: '',
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) {
this.fileData = {

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

@ -299,6 +299,8 @@
:height="500"
:data="detailList"
border
:row-style="rowDetailStyle"
@row-click="OQCDetailClickRow"
style="width: 100%;">
<el-table-column
prop=""
@ -1689,6 +1691,7 @@
inspectionTypeNo: ''
},
currentRow: {},
currentDetailRow: {},
changeData: {
site: '',
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) {
this.fileData = {

Loading…
Cancel
Save