Commit ad6de0e8 authored by 张伯涛's avatar 张伯涛

限制首页packing类型的单子不可以点击SN编码查看SN编码关联

parent 43bef3fc
...@@ -107,7 +107,8 @@ ...@@ -107,7 +107,8 @@
<div>SN</div> <div>SN</div>
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<span style="cursor: pointer; color: #D20A10;" @click="getRelationSnTable(scope.row)">{{ scope.row.materSn || '-' }}</span> <span v-if="showType === true" style="cursor: pointer; color: #D20A10;" @click="getRelationSnTable(scope.row)">{{ scope.row.materSn || '-' }}</span>
<span v-else>{{ scope.row.materSn || '-' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" prop="createDate" min-width="45%" :show-overflow-tooltip="true"> <el-table-column align="center" prop="createDate" min-width="45%" :show-overflow-tooltip="true">
...@@ -629,6 +630,7 @@ export default { ...@@ -629,6 +630,7 @@ export default {
name: 'HomePageTable', name: 'HomePageTable',
data() { data() {
return { return {
showType: true,
intercal: undefined, intercal: undefined,
intercalType: false, intercalType: false,
queryParams1: { queryParams1: {
...@@ -902,6 +904,11 @@ export default { ...@@ -902,6 +904,11 @@ export default {
}) })
}, },
openModel(row, item, data) { openModel(row, item, data) {
if (row.modelType === '3') {
this.showType = false
} else {
this.showType = true
}
if (item.label === 'Scan0') { if (item.label === 'Scan0') {
this.queryParams.type = 'scan0' this.queryParams.type = 'scan0'
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment