金工样式

This commit is contained in:
zhangdingyu
2019-11-28 11:28:49 +08:00
parent f7c3b8229f
commit 76b3e57e9e
5 changed files with 64 additions and 30 deletions

View File

@@ -24,7 +24,7 @@
</el-select>
<el-button type="primary" size="small" icon="el-icon-bangzhu" style="margin-left: 10px" @click="selectAll(tableData)">全选</el-button>
<el-button type="baocun" size="small" icon="el-icon-upload" style="margin-left: 10px" @click="save">保存</el-button>
<el-button type="baocun" size="small" icon="el-icon-upload" style="margin-left: 10px" @click="save">保存</el-button>
<el-button type="baocun" size="small" icon="el-icon-upload" style="margin-left: 10px" @click="currency">保存</el-button>
</el-card>
<el-card>
<el-table
@@ -160,7 +160,10 @@ export default {
PageCurrent: 1,
PageSize: 50,
total: 0,
Craftsmens: [] // 工艺员
Craftsmens: [], // 工艺员
通用件图号: [],
通用件规格: [],
工艺员: []
}
},
created() {
@@ -293,6 +296,7 @@ export default {
工艺结束时间: response.data.rows[i].工艺计划结束时间,
数量: response.data.rows[i].批次数量,
投产时间: response.data.rows[i].操作时间,
规格: response.data.rows[i].规格,
工艺员: '',
人员编号: '',
工艺计划流水号: response.data.rows[i].工艺计划流水号
@@ -357,7 +361,6 @@ export default {
},
handleSelectionChange(val) {
this.multipleSelection = val
console.log(val)
},
save() {
for (let i = 0; i < this.multipleSelection.length; i++) {
@@ -377,6 +380,22 @@ export default {
})
}
}
},
// 直接保存工艺
currency() {
this.通用件图号 = []
this.通用件规格 = []
this.工艺员 = []
this.multipleSelection.map(v => {
if (!v.工艺员) {
return false
}
console.log(111)
this.通用件图号.push(v.零件号)
this.通用件规格.push(v.规格)
this.工艺员.push(v.工艺员)
})
console.log(this.通用件图号, this.通用件规格, this.工艺员)
}
}
}