Browse Source

2025-04-14

master
qiezi 9 months ago
parent
commit
c4392bdaa9
  1. 13
      src/views/modules/quote/detail/quoteDetail.vue
  2. 13
      src/views/modules/quote/detail/quoteGroupDetail.vue

13
src/views/modules/quote/detail/quoteDetail.vue

@ -904,6 +904,13 @@ export default {
createExportData() {
return this.dataList;
},
toPartMenu (partNo) {
if (this.$router.resolve(`/part-partInformation`).resolved.name === '404') {
this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',})
} else {
this.$router.push({name:`part-partInformation`,params:{partNo:partNo},})
}
},
},
watch:{
quote(newVal,oldVal){
@ -992,10 +999,16 @@ export default {
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<template v-if="item.columnProp === 'partNo'">
<el-link style="cursor:pointer;" v-if="!item.columnHidden" @click="toPartMenu(scope.row.partNo)"> {{ scope.row[item.columnProp] }}</el-link>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</template>
<template v-else>
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</template>
</template>
</el-table-column>
<el-table-column label="操作" v-if="!authFlag" fixed="right" align="center" width="160">
<template slot-scope="{row,$index}">

13
src/views/modules/quote/detail/quoteGroupDetail.vue

@ -900,6 +900,13 @@ export default {
this.drawerVisible = false;
this.saveVisible = false;
},
toPartMenu (partNo) {
if (this.$router.resolve(`/part-partInformation`).resolved.name === '404') {
this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',})
} else {
this.$router.push({name:`part-partInformation`,params:{partNo:partNo},})
}
},
},
watch:{
quote(newVal,oldVal){
@ -945,10 +952,16 @@ export default {
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<template v-if="item.columnProp === 'partNo'">
<el-link style="cursor:pointer;" v-if="!item.columnHidden" @click="toPartMenu(scope.row.partNo)"> {{ scope.row[item.columnProp] }}</el-link>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</template>
<template v-else>
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</template>
</template>
</el-table-column>
<el-table-column label="操作" v-if="!authFlag" fixed="right" align="center" width="120">
<template slot-scope="{row,$index}">

Loading…
Cancel
Save