技术中心

This commit is contained in:
Vergil
2020-04-01 11:25:11 +08:00
parent fe24717ca6
commit 1e7803fe5a
3 changed files with 28 additions and 24 deletions

View File

@@ -1,17 +1,17 @@
<template>
<div>
<el-card>
<div style="width: 900px;margin: 3px auto">
<span>机床名称</span>
<el-select v-model="machineValue" filterable clearable size="small" style="width: 200px;" placeholder="机床名称" @change="getGroups">
<div style="width: 900px;margin-left: 375px">
<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"
:label="item.label"
:value="item.value"/>
</el-select>
<span style="margin-left: 10px">分组名称</span>
<el-select v-model="groupValue" filterable clearable size="small" style="width: 200px;" placeholder="分组名称">
<span>分组名称:</span>
<el-select v-model="groupValue" filterable clearable size="small" placeholder="分组名称" style="width: 100px;">
<el-option
v-for="item in groupsNames"
:key="item.value"
@@ -21,14 +21,14 @@
<el-tooltip :open-delay="1000" effect="dark" content="将系统中的三表信息传递到零件分配" placement="top">
<el-button :loading="listLoading" :disabled="disabled" type="primary" plain icon="el-icon-d-caret" size="small" style="margin-left: 10px" @click="transferData">传递</el-button>
</el-tooltip>
<el-tooltip :open-delay="1000" effect="dark" content="删除三表中该组下的所有零件" placement="top">
<el-button type="danger" plain icon="el-icon-delete" size="small" style="margin-left: 10px" @click="allDelete">一键删除</el-button>
</el-tooltip>
<el-row style="margin-top: 10px">
<span>机床名称</span>
<el-input v-model="machineName" readonly size="small" placeholder="机床名称" style="width: 200px;"/>
<span style="margin-left: 10px">机床数量</span>
<el-input v-model="machineNum" readonly size="small" placeholder="机床数量" style="width: 200px;"/>
<el-row style="margin-top: 5px;margin-bottom: 3px">
<span>机床名称:</span>
<el-input v-model="machineName" readonly size="small" placeholder="机床名称" style="width: 200px;margin-right: 10px"/>
<span>机床数量:</span>
<el-input v-model="machineNum" readonly size="small" placeholder="机床数量" style="width: 100px;"/>
<el-tooltip :open-delay="1000" effect="dark" content="删除三表中该组下的所有零件" placement="top">
<el-button type="danger" icon="el-icon-delete" plain size="small" @click="allDelete">一键删除</el-button>
</el-tooltip>
</el-row>
</div>
</el-card>

View File

@@ -133,7 +133,7 @@
</div>
</el-card>
</el-col>
<el-col style="width: 39%">
<el-col style="width: 40%">
<el-card>
<el-table
:data="tableData10"
@@ -635,6 +635,10 @@ export default {
const groupIndex = this.machineNames.indexOf(this.machineValue)
this.machineNames.splice(groupIndex, 1)
}
this.machineValue = ''
this.groupValue = ''
this.machineName = ''
this.machineNum = ''
this.$message.success(`传递成功`)
this.tableDataAll = []
this.tableData = []