技术中心

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

@@ -349,13 +349,13 @@
<el-button v-show="title==='编辑'" type="primary" @click="submitEdit('form')">确定</el-button> <el-button v-show="title==='编辑'" type="primary" @click="submitEdit('form')">确定</el-button>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisible3" title="更改数量" center style="min-height: 300px" width="400px"> <el-dialog v-el-drag-dialog :visible.sync="dialogFormVisible3" title="零件数量" center style="min-height: 300px" width="400px">
<el-form ref="form3" :model="form3" :rules="rules3" label-position="left" label-width="110px" class="demo-ruleForm"> <el-form ref="form3" :model="form3" :rules="rules3" label-position="left" label-width="110px" class="demo-ruleForm">
<el-form-item label="数量" prop="数量"> <el-form-item label="数量" prop="数量">
<el-input <el-input
v-model="form3.数量" v-model="form3.数量"
size="small" size="small"
style="width:200px"/> style="width:150px"/>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@@ -378,7 +378,7 @@
:visible.sync="dialogFormVisible1" :visible.sync="dialogFormVisible1"
title="基本件打回信息" title="基本件打回信息"
center center
width="70%" width="60%"
style="min-height: 400px"> style="min-height: 400px">
<el-input v-model="partNumber" size="small" placeholder="零件图号及名称" style="width: 200px" clearable @change="PartCallbackInformation"/> <el-input v-model="partNumber" size="small" placeholder="零件图号及名称" style="width: 200px" clearable @change="PartCallbackInformation"/>
<el-date-picker <el-date-picker
@@ -401,7 +401,7 @@
<el-table <el-table
:data="tableData9" :data="tableData9"
size="mini" size="mini"
style="width: 97%;max-height: 300px" style="width: 100%;max-height: 300px"
height="400" height="400"
highlight-current-row highlight-current-row
border border
@@ -422,9 +422,9 @@
{{ scope.row.材料 }} {{ scope.row.材料 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="零件数量" width="120"> <el-table-column align="center" label="零件数量" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input-number v-model="scope.row.零件数量" :min="0" size="mini" style="width: 95px"/> <el-input-number v-model="scope.row.零件数量" :min="0" size="mini" style="width: 120px"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="项目名称"> <el-table-column align="center" label="项目名称">
@@ -468,7 +468,7 @@
:visible.sync="dialogFormVisible2" :visible.sync="dialogFormVisible2"
title="外购件和标准件打回信息" title="外购件和标准件打回信息"
center center
width="70%" width="60%"
style="min-height: 400px"> style="min-height: 400px">
<el-input v-model="partNumber1" size="small" placeholder="零件图号及名称" style="width: 200px" clearable @change="PartCallbackInformation1"/> <el-input v-model="partNumber1" size="small" placeholder="零件图号及名称" style="width: 200px" clearable @change="PartCallbackInformation1"/>
<el-date-picker <el-date-picker
@@ -491,7 +491,7 @@
<el-table <el-table
:data="tableData10" :data="tableData10"
size="mini" size="mini"
style="width: 97%;max-height: 300px" style="width: 100%;max-height: 300px"
height="400" height="400"
highlight-current-row highlight-current-row
border border
@@ -512,9 +512,9 @@
{{ scope.row.物料型号 }} {{ scope.row.物料型号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="零件数量" width="120"> <el-table-column align="center" label="零件数量" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input-number v-model="scope.row.零件数量" :min="0" size="mini" style="width: 95px"/> <el-input-number v-model="scope.row.零件数量" :min="0" size="mini" style="width: 120px"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="项目名称"> <el-table-column align="center" label="项目名称">

View File

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

View File

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