优化
This commit is contained in:
@@ -104,7 +104,6 @@ export default {
|
||||
report.query4().then(res => {
|
||||
this.XLList = res
|
||||
})
|
||||
this.queryStruct()
|
||||
},
|
||||
/**
|
||||
* 接受父组件传值
|
||||
|
||||
@@ -103,7 +103,6 @@ export default {
|
||||
report.query4().then(res => {
|
||||
this.XLList = res
|
||||
})
|
||||
this.queryStruct()
|
||||
},
|
||||
/**
|
||||
* 接受父组件传值
|
||||
|
||||
@@ -100,7 +100,6 @@ export default {
|
||||
report.query4().then(res => {
|
||||
this.XLList = res
|
||||
})
|
||||
this.queryStruct()
|
||||
},
|
||||
/**
|
||||
* 接受父组件传值
|
||||
|
||||
@@ -52,7 +52,8 @@
|
||||
<el-table-column v-if="col.prop !== 'first'" :prop="col.prop" :label="col.label" width="120px" />
|
||||
<el-table-column v-if="col.prop === 'first'" :prop="col.prop" :label="col.label" width="120px" fixed>
|
||||
<template slot-scope="scope">
|
||||
<el-link type="warning" @click="open2(scope.$index, scope.row)">{{ scope.row.first }}</el-link>
|
||||
<span v-show="!isshow(scope.row)">{{ scope.row.first }}</span>
|
||||
<el-link v-show="isshow(scope.row)" type="warning" @click="open2(scope.$index, scope.row)">{{ scope.row.first }}</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</template>
|
||||
@@ -183,6 +184,17 @@ export default {
|
||||
this.structshow3 = true
|
||||
}
|
||||
},
|
||||
isshow(row) {
|
||||
if (row.first === '库存现存量') {
|
||||
return true
|
||||
} else if (row.first === '待检入库量') {
|
||||
return true
|
||||
} else if (row.first === '合同在途') {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
},
|
||||
hand(value) {
|
||||
this.crud.toQuery()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user