This commit is contained in:
liushuai
2019-10-08 14:42:23 +08:00
parent e26a30f68a
commit 86989987e2
4 changed files with 80 additions and 38 deletions

View File

@@ -2,8 +2,8 @@
<div>
<el-card>
<div style="width: 900px;margin: 0 auto">
<span>机床名称</span>
<el-select v-model="machineValue" filterable clearable size="small" placeholder="机床名称" style="margin-top: 3px;width: 200px;" @change="getGroups">
<span>机床图号</span>
<el-select v-model="machineValue" filterable clearable size="small" placeholder="机床图号" style="margin-top: 3px;width: 200px;" @change="getGroups">
<el-option
v-for="item in machineNames"
:key="item.value"
@@ -465,6 +465,7 @@ export default {
},
getMachineNames() {
getMachineNames(this.machineValue).then(response => {
console.log(response.data, 1111)
this.machineName = response.data[0].机床名称
this.machineNum = response.data[0].机床数量
})
@@ -551,6 +552,7 @@ export default {
this.err = 0
if (this.groupValue) {
this.listLoading = true
alert(122)
if (this.groupName.indexOf('MX') > -1) {
for (let i = 0; i < this.tableDataAll.length; i++) {
const data = this.tableDataAll[i]