This commit is contained in:
Vergil
2020-05-18 14:33:43 +08:00
parent 7fb1360f32
commit cb49f12609

View File

@@ -1,7 +1,6 @@
<template> <template>
<div> <div>
<el-card> <el-card>
<!--<el-button :disabled="isShow" type="info" size="small" style="margin: 0px 180px;float: right" @click="EditData">补录完成日期</el-button>-->
<el-select v-model="Machine" filterable clearable size="small" style="margin:0px 10px 0px 10px;width: 185px;" placeholder="机床号" @change="getGroup"> <el-select v-model="Machine" filterable clearable size="small" style="margin:0px 10px 0px 10px;width: 185px;" placeholder="机床号" @change="getGroup">
<el-option <el-option
v-for="item in Machines" v-for="item in Machines"
@@ -22,11 +21,9 @@
<el-input v-model="number" placeholder="零件号" clearable size="small" style="width: 170px;margin:0px 10px;"/> <el-input v-model="number" placeholder="零件号" clearable size="small" style="width: 170px;margin:0px 10px;"/>
<el-button type="primary" class="el-icon-search" size="small" plain style="margin: 0px 10px;" @click="pageCurrent = 1;pageSize = 100;getTableData()">查询</el-button> <el-button type="primary" class="el-icon-search" size="small" plain style="margin: 0px 10px;" @click="pageCurrent = 1;pageSize = 100;getTableData()">查询</el-button>
<el-button v-positive="'loading'" :disabled="false" type="warning" class="el-icon-download" size="small" plain style="margin: 10px 0 0 10px" @click="exportExcel">导出</el-button> <el-button v-positive="'loading'" :disabled="false" type="warning" class="el-icon-download" size="small" plain style="margin: 10px 0 0 10px" @click="exportExcel">导出</el-button>
<!--<el-button :disabled="isDisabled" type="info" size="small" style="margin: 10px 10px;float: right" @click="EditConfirmNum">修改完成数量</el-button>-->
<!--<el-button :disabled="isDisabled" type="info" size="small" style="margin: 10px 10px;float: right" @click="EditWorkingHours">修补加工工时</el-button>-->
</el-card> </el-card>
<el-row> <el-row>
<el-col style="width: 37%"> <el-col style="width: 49%">
<el-card> <el-card>
<el-table v-loading="loading2" :data="tableData1" :row-class-name="tableRowClassName1" class="table" height="660" style="max-height: 830px" highlight-current-row empty-text=" " border @row-click="getRow"> <el-table v-loading="loading2" :data="tableData1" :row-class-name="tableRowClassName1" class="table" height="660" style="max-height: 830px" highlight-current-row empty-text=" " border @row-click="getRow">
<el-table-column align="center" label="工序" show-overflow-tooltip width="50"> <el-table-column align="center" label="工序" show-overflow-tooltip width="50">
@@ -34,27 +31,27 @@
{{ scope.row.工序顺序 }} {{ scope.row.工序顺序 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="工艺名" show-overflow-tooltip min-width="70"> <el-table-column align="center" label="工艺名" show-overflow-tooltip width="70">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.工艺名称 }} {{ scope.row.工艺名称 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="投产数" width="80"> <el-table-column align="center" label="投产数" width="65">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.批次数量 }} {{ scope.row.批次数量 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="完成数" width="80"> <el-table-column align="center" label="完成数" width="65">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.完成数量 }} {{ scope.row.完成数量 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="质检数" width="80"> <el-table-column align="center" label="质检数" width="65">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.检验数量 }} {{ scope.row.检验数量 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="不良数" width="80"> <el-table-column align="center" label="不良数" width="65">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.不合格数量 }} {{ scope.row.不合格数量 }}
</template> </template>
@@ -77,7 +74,7 @@
</el-table> </el-table>
</el-card> </el-card>
</el-col> </el-col>
<el-col style="width: 63%"> <el-col style="width: 49%">
<el-card> <el-card>
<el-table v-loading="loading" ref="singleTable" :data="tableData" :row-class-name="tableRowClassName" class="table" highlight-current-row border height="630" @row-click="getCurrentRow"> <el-table v-loading="loading" ref="singleTable" :data="tableData" :row-class-name="tableRowClassName" class="table" highlight-current-row border height="630" @row-click="getCurrentRow">
<el-table-column align="center" label="跟单号" show-overflow-tooltip width="160"> <el-table-column align="center" label="跟单号" show-overflow-tooltip width="160">
@@ -100,11 +97,6 @@
{{ scope.row.投产数量 }} {{ scope.row.投产数量 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="报废数" width="70">
<template slot-scope="scope">
{{ scope.row.报废数量 }}
</template>
</el-table-column>
<el-table-column align="center" label="质检数" width="70"> <el-table-column align="center" label="质检数" width="70">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.检验数量 }} {{ scope.row.检验数量 }}
@@ -115,14 +107,29 @@
{{ scope.row.不合格数量 }} {{ scope.row.不合格数量 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="报废数" width="70">
<template slot-scope="scope">
{{ scope.row.报废数量 }}
</template>
</el-table-column>
<el-table-column align="center" label="加工完成" width="100"> <el-table-column align="center" label="加工完成" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.机加工实际完成时间 }} {{ scope.row.机加工实际完成时间 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="计划完成" width="100"> <el-table-column align="center" label="加工完成" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.机加工结束时间 }} {{ scope.row.机加工实际完成时间 }}
</template>
</el-table-column>
<el-table-column align="center" label="机床图号" width="100">
<template slot-scope="scope">
{{ scope.row.机床图号 }}
</template>
</el-table-column>
<el-table-column align="center" label="组号" width="100">
<template slot-scope="scope">
{{ scope.row.组号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="用户名称" show-overflow-tooltip min-width="110"> <el-table-column align="center" label="用户名称" show-overflow-tooltip min-width="110">