完成日期补录正在加工零件

This commit is contained in:
bryan sun
2019-10-30 18:39:43 +08:00
parent 95794ba703
commit 59ed8e2d4d
9 changed files with 504 additions and 51 deletions

View File

@@ -62,7 +62,8 @@
<el-col style="width:600px">
<el-row>
<el-card class="box-card" style="min-height: 400px">
<div style="min-height: 650px">
<div>机床图号{{ MachineLabel }} 机床名称{{ MachineName }}</div>
<div style="min-height: 400px;margin-left: 50px;">
<el-tree
:data="departmentData"
:props="defaultProps"
@@ -96,6 +97,8 @@ export default {
Group: '', // 组号
Groups: [],
number: '', // 零件图号
tableData1: [],
Complete: '',
Completes: [{
value: 1,
label: '完成'
@@ -104,7 +107,9 @@ export default {
label: '在制'
}],
departmentData: [], // 树状数据
MachineDrawingNumber: [] // 获取树状机床信息
MachineDrawingNumber: [], // 获取树状机床信息
MachineLabel: '', // 机床图号
MachineName: '' // 机床名称
}
},
created() {
@@ -122,7 +127,7 @@ export default {
this.Machines.push({
label: response.data[i].机床图号,
value: response.data[i].机床流水号,
value2: response.data[i].项目名称
value2: response.data[i].机床名称
})
}
if (Cookie.get('group') !== undefined) {
@@ -149,7 +154,7 @@ export default {
this.Machines.push({
label: response.data[i].机床图号,
value: response.data[i].机床流水号,
value2: response.data[i].项目名称
value2: response.data[i].机床名称
})
}
})
@@ -169,11 +174,17 @@ export default {
})
}, // 获取树状数据
getTreeData() {
for (let i = 0; i < this.Machines.length; i++) {
if (this.Machine === this.Machines[i].value) {
this.MachineLabel = this.Machines[i].label
this.MachineName = this.Machines[i].value2
}
}
getGroups(this.Machine).then(response => { // 初始化机床图号分类
this.options = []
for (let i = 0; i < response.data.length; i++) {
this.options.push({
label: response.data[i].组号 + '●●●' + response.data[i].组件名称,
label: response.data[i].组号 + '..........' + response.data[i].组件名称,
value: response.data[i].组件流水号,
father: true,
children: []