零件图维护
This commit is contained in:
@@ -517,7 +517,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="实际询价(采购)数量" align="center" width="130">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="scope.row.数量" size="mini" style="width:100%"/>
|
||||
<el-input v-direction="{x: 0, y: scope.$index}" v-model="scope.row.数量" size="mini" style="width:100%"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="单位" align="center" width="60">
|
||||
@@ -527,7 +527,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="询价备注" align="center" min-width="120">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="scope.row.备注" size="mini" style="width:100%"/>
|
||||
<el-input v-direction="{x: 1, y: scope.$index}" v-model="scope.row.备注" size="mini" style="width:100%"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="询价单编号" align="center" min-width="120">
|
||||
@@ -1038,8 +1038,27 @@ export default {
|
||||
this.searchTable2() // 查表2
|
||||
this.searchUnInquiryPartNumber()
|
||||
this.searchUnBuyPartNumber()
|
||||
this.initDirection()
|
||||
},
|
||||
methods: {
|
||||
initDirection() {
|
||||
const direction = this.$getDirection()
|
||||
direction.on('keyup', function(e, val) {
|
||||
console.log(val)
|
||||
if (e.keyCode === 39) {
|
||||
direction.next()
|
||||
}
|
||||
if (e.keyCode === 37) {
|
||||
direction.previous()
|
||||
}
|
||||
if (e.keyCode === 38) {
|
||||
direction.previousLine()
|
||||
}
|
||||
if (e.keyCode === 40) {
|
||||
direction.nextLine()
|
||||
}
|
||||
})
|
||||
},
|
||||
clickCard1(project, machine) {
|
||||
this.projectValue = project
|
||||
this.machine = []
|
||||
|
||||
Reference in New Issue
Block a user