|
|
@ -510,6 +510,14 @@ export default { |
|
|
this.$message.error(error) |
|
|
this.$message.error(error) |
|
|
this.queryLoading = false |
|
|
this.queryLoading = false |
|
|
}) |
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
handleClick(row){ |
|
|
|
|
|
if (this.$router.resolve(`/quotation-sellForQuotation`).resolved.name === '404'){ |
|
|
|
|
|
this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',}); |
|
|
|
|
|
}else { |
|
|
|
|
|
this.$router.push({name:`quotation-sellForQuotation`,params:{quotationNo:row.quotationNo},}) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
watch:{ |
|
|
watch:{ |
|
|
@ -535,8 +543,14 @@ export default { |
|
|
:min-width="item.columnWidth" |
|
|
:min-width="item.columnWidth" |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope" > |
|
|
<template slot-scope="scope" > |
|
|
<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> |
|
|
|
|
|
|
|
|
<div v-if="item.columnProp === 'quotationNo'"> |
|
|
|
|
|
<el-link v-if="!item.columnHidden" @click="handleClick(scope.row)"> {{ `${scope.row[item.columnProp]}` }}</el-link> |
|
|
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div 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> |
|
|
|
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
|