零件图维护
This commit is contained in:
@@ -201,7 +201,7 @@
|
||||
border
|
||||
style="width: 100%;min-height: 400px;"
|
||||
size="mini">
|
||||
<el-table-column prop="num" label="序号" width="50" align="center" type="index"/>
|
||||
<el-table-column prop="num" label="序号" width="45" align="center" type="index"/>
|
||||
<el-table-column prop="name" label="工艺名称" width="180" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-cascader
|
||||
@@ -213,7 +213,7 @@
|
||||
@change="handleChange(scope.row)"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="hard" label="难度等级" width="110" align="center">
|
||||
<el-table-column prop="hard" label="难度等级" width="90" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-select
|
||||
v-model="scope.row.工艺难度等级"
|
||||
@@ -238,17 +238,17 @@
|
||||
@select="blurRequest(scope.row)"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="singleton" label="单件" width="100" align="center">
|
||||
<el-table-column prop="单件定额工时" label="单件" width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="scope.row.单件定额工时" style="width:100%" placeholder="" @change="singleChange(scope.row)"/>
|
||||
<el-input v-direction="{x: 0, y: scope.$index}" v-model="scope.row.单件定额工时" style="width:100%" placeholder="" @change="singleChange(scope.row)"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="Settlement" label="准结" width="100" align="center">
|
||||
<el-table-column prop="准结定额工时" label="准结" width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="scope.row.准结定额工时" style="width:100%" placeholder="" @change="readyChange(scope.row)"/>
|
||||
<el-input v-direction="{x: 1, y: scope.$index}" v-model="scope.row.准结定额工时" style="width:100%" placeholder="" @change="readyChange(scope.row)"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="300" align="center" fixed="right">
|
||||
<el-table-column label="操作" width="300" align="center">
|
||||
<template slot-scope="scope">
|
||||
<div>
|
||||
<el-button
|
||||
@@ -699,6 +699,9 @@ export default {
|
||||
'token'
|
||||
])
|
||||
},
|
||||
created() {
|
||||
this.initDirection()
|
||||
},
|
||||
mounted() {
|
||||
this.fetchData()
|
||||
this.initPerson()
|
||||
@@ -706,6 +709,24 @@ export default {
|
||||
this.openCascader()
|
||||
},
|
||||
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()
|
||||
}
|
||||
})
|
||||
},
|
||||
// 保存已编制
|
||||
saveCompiled() {
|
||||
if (this.partNumValue) {
|
||||
|
||||
Reference in New Issue
Block a user