Commit 94f916ac authored by 旭艳's avatar 旭艳

指令标识维护-工序信息

parent 3a1c5d64
<template> <template>
<div class="TfMomWeb-tree"> <div class="TfMomWeb-tree">
<div class="search-area"> <!-- <div class="search-area">
<el-input v-model="inputVal" clearable size="small" class="search-input" placeholder="输入代号,在结构中快速定位" /> <el-input v-model="inputVal" clearable size="small" class="search-input" placeholder="输入代号,在结构中快速定位" />
<dee-tools :tools="tools" style="width:120px" mode="dual" /> <dee-tools :tools="tools" style="width:120px" mode="dual" />
</div> </div> -->
<el-tree <el-tree
v-show="AircraftName" v-show="AircraftName"
ref="tree" ref="tree"
......
<template>
<div class="dx-process-operations-com">
<div class="dee-table dee-table-dis-border">
<el-table
:data="tableData"
border
style="width:100%"
highlight-current-row
>
<el-table-column
show-overflow-tooltip
prop="target.code"
align="center"
label="工序号"
width="120"
fixed
/>
<el-table-column
show-overflow-tooltip
prop="target.name"
align="center"
label="工序名称"
width="120"
fixed
/>
<el-table-column
show-overflow-tooltip
align="center"
label="是否检验"
width="120"
fixed
>
<template v-slot="scope">
<span>{{ scope.row.target.checkFlag ? '是' : '否' }}</span>
</template>
</el-table-column>
<el-table-column
show-overflow-tooltip
align="center"
label="关键标识"
width="120"
fixed
>
<template v-slot="scope">
<span>{{ scope.row.target.keyOperation ? '是' : '否' }}</span>
</template>
</el-table-column>
<el-table-column
show-overflow-tooltip
align="center"
label="适航标识"
fixed
>
<template v-slot="scope">
<el-select
v-if="basicData.isView"
v-model="scope.row.target.airFlag"
placeholder="请选择"
clearable=""
@change="changeData(scope.row)"
>
<el-option :key="1" label="目击" value="目击" />
<el-option :key="2" label="AAD" value="AAD" />
</el-select>
<span v-else>{{ scope.row.target.airFlag }}</span>
</template>
</el-table-column>
<el-table-column
show-overflow-tooltip
align="center"
label="定额工时"
fixed
>
<template v-slot="scope">
<el-input v-if="basicData.isView" v-model="scope.row.target.workHour" size="mini" @change="changWorkData(scope.row)" />
<span v-else>{{ scope.row.target.workHour }}</span>
</template>
</el-table-column>
</el-table>
</div>
</div>
</template>
<script>
export default {
name: 'ProcessInformation',
components: { },
componentName: '工序信息',
props: {
basicData: {
type: Object,
default: () => null
},
from: {
type: Object,
default: () => null
},
item: {
type: Object,
default: () => null
},
value: {
type: Array,
default: () => null
}
},
data() {
return {
tableData: []
// isView: false
}
},
computed: {
id() {
return this.basicData.id
}
},
watch: {
// tableData: {
// handler(val) {
// this.$emit('input', val)
// console.log(val)
// console.log(1, this.basicData.sourceExtProcessUsageLink, this.tableData)
// this.basicData.sourceExtProcessUsageLink = val
// console.log(2, this.basicData.sourceExtProcessUsageLink)
// },
// deep: true
// },
id: {
immediate: true,
handler(newVal, oldVal) {
const user = localStorage.user || ''
this.basicData.isView = user === this.basicData.note && this.basicData.state === 'Apply'
this.tableData = this.basicData.sourceExtProcessUsageLink
}
}
},
mounted() {
},
methods: {
changeData(row) {
row.operator = 'MODIFY'
row.target.operator = 'MODIFY'
this.$emit('input', this.tableData)
},
changWorkData(row) {
// let workHour = 0
// this.tableData.forEach(element => {
// if (element.target.workHour) {
// workHour += Number(element.target.workHour)
// }
// })
// this.basicData.opWorkHour = (workHour / 60).toFixed(2)
row.operator = 'MODIFY'
row.target.operator = 'MODIFY'
this.$emit('input', this.tableData)
}
}
}
</script>
<style lang="scss" >
.dx-process-operations-com{
height: 100%;
.z-index10{
z-index: 10!important;
}
.el-switch{
margin: 10px 0;
}
.dee-table{
height:100%;
position: relative;
left:0;
right:0;
z-index: 0;
background: #fff;
.dee-table-body{
height: calc( 100% - 38px);
overflow-y: auto;
}
.el-table__cell{
padding: 0 0;
}
.table_handler_span{
cursor: pointer;
display: flex;
align-items: center;
&>img{
width:18px;
}
}
}
}
</style>
...@@ -21,6 +21,9 @@ ...@@ -21,6 +21,9 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="AO(号/名称):">
<el-input v-model="form.name" placeholder="AO(号/名称)" clearable @change="changeFrom" />
</el-form-item>
</el-form> </el-form>
</div> </div>
</template> </template>
......
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