修改金工页面尺寸

This commit is contained in:
bryan sun
2019-11-02 12:37:37 +08:00
parent 137702851c
commit 839bb64eef
10 changed files with 118 additions and 119 deletions

View File

@@ -25,7 +25,7 @@ export const downloadFileMachine = `http://192.168.1.231:8411/submit/downloadFil
export const MESUploadFile = `http://192.168.1.231:8411/submit/MESUploadFile.ashx` export const MESUploadFile = `http://192.168.1.231:8411/submit/MESUploadFile.ashx`
export const MESDownloadFile = `http://192.168.1.231:8411/submit/MESDownloadFile.ashx` export const MESDownloadFile = `http://192.168.1.231:8411/submit/MESDownloadFile.ashx`
const service = axios.create({ const service = axios.create({
baseURL: `http://192.168.1.231:8411/submit/MESCommonBase.ashx`, baseURL: `http://192.168.0.110:8002/submit/MESCommonBase.ashx`,
timeout: 1500000 // 请求超时时间 timeout: 1500000 // 请求超时时间
}) })
export default service export default service

View File

@@ -86,12 +86,12 @@
</el-table-column> </el-table-column>
<el-table-column label="实际开始时间" align="center" min-width="160px"> <el-table-column label="实际开始时间" align="center" min-width="160px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.加工开始时间 || '—' }} {{ scope.row.加工开始时间 === '1900/1/1 0:00:00' ? '-' : scope.row.加工开始时间 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="实际完成时间" align="center" min-width="160px"> <el-table-column label="实际完成时间" align="center" min-width="160px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.加工完成时间 || '—' }} {{ scope.row.加工完成时间 === '1900/1/1 0:00:00' ? '-' : scope.row.加工完成时间 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="实际工时" align="center" min-width="70px"> <el-table-column label="实际工时" align="center" min-width="70px">
@@ -150,7 +150,7 @@
<div class="block"> <div class="block">
<el-pagination <el-pagination
:current-page="pageCurrent" :current-page="pageCurrent"
:page-sizes="[10, 20, 30, 40]" :page-sizes="[10, 20, 30, 40, 50]"
:page-size="pageSize" :page-size="pageSize"
:total="total" :total="total"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
@@ -271,7 +271,7 @@ export default {
startTime2: '', startTime2: '',
endTime2: '', endTime2: '',
pageCurrent: 1, pageCurrent: 1,
pageSize: 10, pageSize: 50,
total: 0, total: 0,
tableData: [], tableData: [],
dialogFormVisible: false, dialogFormVisible: false,
@@ -507,6 +507,7 @@ export default {
this.partNumber ? check4 = 1 : check4 = 0 this.partNumber ? check4 = 1 : check4 = 0
this.startTime2 && this.endTime2 ? check5 = 1 : check5 = 0 this.startTime2 && this.endTime2 ? check5 = 1 : check5 = 0
searchTable(this.technologyName, check1, this.workerName, check2, check3, this.endTime1, this.startTime1, this.partNumber, check4, check5, this.endTime2, this.startTime2, this.pageCurrent, this.pageSize).then(res => { searchTable(this.technologyName, check1, this.workerName, check2, check3, this.endTime1, this.startTime1, this.partNumber, check4, check5, this.endTime2, this.startTime2, this.pageCurrent, this.pageSize).then(res => {
console.log(res.data.rows, 898989)
this.tableData = res.data.rows this.tableData = res.data.rows
this.total = res.data.total this.total = res.data.total
this.tableData.map(v => { this.tableData.map(v => {

View File

@@ -1,12 +1,12 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-row> <el-row>
<el-col style="width: 850px"> <el-col style="width: 610px">
<el-card style="width: 800px"> <el-card style="width:610px">
<span>加工日期{{ dateTime }}</span> <span style="margin-left: 45%;font-size: 25px;">正在加工零件</span>
<span style="margin-left: 20%;font-size: 20px;">正在加工零件</span> <div>加工日期{{ dateTime }}</div>
<el-table :data="tableData" border size="mini" highlight-current-row style="width: 785px" stripe height="800px"> <el-table :data="tableData" border size="mini" highlight-current-row style="width: 610px" stripe height="640px">
<el-table-column label="机床图号" show-overflow-tooltip prop="机床图号" align="center" width="120px"> <el-table-column label="机床图号" show-overflow-tooltip prop="机床图号" align="center" width="80px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.机床图号 }} {{ scope.row.机床图号 }}
</template> </template>
@@ -16,12 +16,12 @@
<!-- {{ scope.row.机床名称 }}--> <!-- {{ scope.row.机床名称 }}-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<el-table-column label="组号" prop="组号" align="center" width="70px"> <el-table-column label="组号" prop="组号" align="center" width="50px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.组号 }} {{ scope.row.组号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="零件图号" show-overflow-tooltip prop="零件图号" align="center" width="180px"> <el-table-column label="零件图号" show-overflow-tooltip prop="零件图号" align="center" width="140px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.零件图号 }} {{ scope.row.零件图号 }}
</template> </template>
@@ -31,12 +31,12 @@
<!-- {{ scope.row.零件名称 }}--> <!-- {{ scope.row.零件名称 }}-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<el-table-column label="零件数" align="center" width="60px"> <el-table-column label="数" align="center" width="50px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.批次数量 }} {{ scope.row.批次数量 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="工序名称" show-overflow-tooltip prop="工艺名" align="center" width="70px"> <el-table-column label="工序" show-overflow-tooltip prop="工艺名" align="center" width="60px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.工艺名称 }} {{ scope.row.工艺名称 }}
</template> </template>
@@ -46,29 +46,28 @@
{{ scope.row.终端编号 }} {{ scope.row.终端编号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" prop="姓名" align="center" width="90px"> <el-table-column label="操作" prop="姓名" show-overflow-tooltip align="center" width="60px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.姓名 }} {{ scope.row.姓名 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="105px"> <el-table-column label="操作" align="center" width="70px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
type="primary" type="text"
plain
icon="el-icon-search" icon="el-icon-search"
@click="viewProcedures(scope.row)">查看工序</el-button> @click="viewProcedures(scope.row)">详情</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-card> </el-card>
</el-col> </el-col>
<el-col style="width: 800px"> <el-col style="width: 610px">
<el-card> <el-card>
<span style="margin-left: 45%;font-size: 20px">待加工零件</span> <div style="margin-left: 45%;margin-bottom: 20px; font-size: 25px">待加工零件</div>
<el-table :data="tableData3" border size="mini" highlight-current-row style="width: 785px" stripe height="800px"> <el-table :data="tableData3" border size="mini" highlight-current-row style="width: 610px" stripe height="640px">
<el-table-column label="机床图号" show-overflow-tooltip prop="机床图号" align="center" width="120px"> <el-table-column label="机床图号" show-overflow-tooltip prop="机床图号" align="center" width="80px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.机床图号 }} {{ scope.row.机床图号 }}
</template> </template>
@@ -78,12 +77,12 @@
<!-- {{ scope.row.机床名称 }}--> <!-- {{ scope.row.机床名称 }}-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<el-table-column label="组号" prop="组号" show-overflow-tooltip align="center" width="70px"> <el-table-column label="组号" prop="组号" show-overflow-tooltip align="center" width="60px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.组号 }} {{ scope.row.组号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="零件图号" show-overflow-tooltip prop="零件图号" align="center" width="180px"> <el-table-column label="零件图号" show-overflow-tooltip prop="零件图号" align="center" width="130px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.零件图号 }} {{ scope.row.零件图号 }}
</template> </template>
@@ -93,34 +92,33 @@
<!-- {{ scope.row.零件名称 }}--> <!-- {{ scope.row.零件名称 }}-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<el-table-column label="零件数" align="center" width="60px"> <el-table-column label="数" align="center" width="50px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.批次数量 }} {{ scope.row.批次数量 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="工序名称" prop="工艺名称" align="center" width="70px"> <el-table-column label="工序" prop="工艺名称" align="center" width="60px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.工艺名称 }} {{ scope.row.工艺名称 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="工位" prop="mes终端编号" align="center" width="70px"> <el-table-column label="工位" prop="mes终端编号" align="center" width="70px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.mes终端编号 }} {{ scope.row.MES终端编号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作工" prop="姓名" align="center" width="90px"> <el-table-column label="操作者" show-overflow-tooltip prop="姓名" align="center" width="60px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.姓名 }} {{ scope.row.姓名 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="105"> <el-table-column label="操作" align="center" width="70">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
type="primary" type="text"
plain
icon="el-icon-search" icon="el-icon-search"
@click="viewProcedures(scope.row)">查看工序</el-button> @click="viewProcedures(scope.row)">详情</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -128,18 +126,18 @@
</el-col> </el-col>
</el-row> </el-row>
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisible" title="工序完成情况" center style="min-height: 300px"> <el-dialog v-el-drag-dialog :visible.sync="dialogFormVisible" title="工序完成情况" center width="550px">
<el-row> <el-row>
<span>零件图号:</span> <span>零件图号:</span>
<el-input v-model="SparePartsNumber" style="width: 200px" size="small"/> <el-input v-model="SparePartsNumber" style="width: 150px" size="small"/>
<span>零件名称:</span> <span>零件名称:</span>
<el-input v-model="SparePartsName" style="width: 200px" size="small"/> <el-input v-model="SparePartsName" style="width: 150px" size="small"/>
</el-row> </el-row>
<el-table <el-table
:data="tableData2" :data="tableData2"
style="width: 100%;margin-top: 20px" style="width: 515px;margin-top: 20px"
size="mini" size="mini"
height="300" height="320"
stripe stripe
highlight-current-row highlight-current-row
border> border>
@@ -148,29 +146,29 @@
{{ 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="90">
<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="工艺要求"> <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="操作工"> <el-table-column align="center" label="操作工" 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="120"> <el-table-column align="center" label="工完成" width="80">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="parseInt(scope.row.工序状态)===4" type="success" size="small">已完成</el-tag> <el-tag v-if="parseInt(scope.row.工序状态)===4" type="success" size="small">已完成</el-tag>
<el-tag v-if="parseInt(scope.row.工序状态)===5" type="warning" size="small">报废</el-tag> <el-tag v-if="parseInt(scope.row.工序状态)===5" type="warning" size="small">报废</el-tag>
<el-tag v-if="parseInt(scope.row.工序状态)!==4 && parseInt(scope.row.工序状态)!==5" type="primary" size="small">未完成</el-tag> <el-tag v-if="parseInt(scope.row.工序状态)!==4 && parseInt(scope.row.工序状态)!==5" type="primary" size="small">未完成</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="工艺是否质检" width="120"> <el-table-column align="center" label="工质检" width="80">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="parseInt(scope.row.是否质检)===1" type="success" size="small">合格</el-tag> <el-tag v-if="parseInt(scope.row.是否质检)===1" type="success" size="small">合格</el-tag>
<el-tag v-if="parseInt(scope.row.是否质检)===2" type="warning" size="small">不合格</el-tag> <el-tag v-if="parseInt(scope.row.是否质检)===2" type="warning" size="small">不合格</el-tag>
@@ -209,6 +207,7 @@ export default {
}, },
fetchData1() { fetchData1() {
searchData1().then(response => { searchData1().then(response => {
console.log(response, 121212)
this.tableData3 = response.data this.tableData3 = response.data
}) })
}, },

View File

@@ -22,7 +22,7 @@
</el-tooltip> </el-tooltip>
</el-card> </el-card>
<el-card style="width: 585px"> <el-card style="width: 585px">
<el-table v-loading="loading" :data="tableData" size="mini" stripe style="width: 585px" border element-loading-text="拼命加载中"> <el-table v-loading="loading" :data="tableData" size="mini" stripe style="width: 585px" height="650px" border element-loading-text="拼命加载中">
<el-table-column label="操作者" align="center" width="110px"> <el-table-column label="操作者" align="center" width="110px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.姓名 }} {{ scope.row.姓名 }}

View File

@@ -110,37 +110,37 @@
<el-tab-pane label="外购件"> <el-tab-pane label="外购件">
<el-table :data="tableData2" border size="mini" style="width: 100%" height="300px" @selection-change="handleSelectionChange"> <el-table :data="tableData2" border size="mini" style="width: 100%" height="300px" @selection-change="handleSelectionChange">
<el-table-column align="center" width="50" type="selection"/> <el-table-column align="center" width="50" type="selection"/>
<el-table-column label="物料代码" align="center"> <el-table-column label="物料代码" align="center" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.物料代码 }} {{ scope.row.物料代码 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="物料名称" align="center"> <el-table-column label="物料名称" align="center" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.物料名称 }} {{ scope.row.物料名称 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="物料规格" align="center"> <el-table-column label="物料规格" align="center" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.物料规格 }} {{ scope.row.物料规格 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="物料型号" align="center"> <el-table-column label="物料型号" align="center" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.物料型号 }} {{ scope.row.物料型号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="零件数量" align="center"> <el-table-column label="零件数量" align="center" width="90">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.零件数量 }} {{ scope.row.零件数量 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="机床数量" align="center"> <el-table-column label="机床数量" align="center" width="90">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.机床数量 }} {{ scope.row.机床数量 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" align="center"> <el-table-column label="备注" align="center" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.备注 }} {{ scope.row.备注 }}
</template> </template>
@@ -150,37 +150,37 @@
<el-tab-pane label="标准件"> <el-tab-pane label="标准件">
<el-table :data="tableData3" border size="mini" style="width: 100%" height="300px" @selection-change="handleSelectionChange"> <el-table :data="tableData3" border size="mini" style="width: 100%" height="300px" @selection-change="handleSelectionChange">
<el-table-column align="center" width="50" type="selection"/> <el-table-column align="center" width="50" type="selection"/>
<el-table-column label="物料代码" align="center"> <el-table-column label="物料代码" align="center" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.物料代码 }} {{ scope.row.物料代码 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="物料名称" align="center"> <el-table-column label="物料名称" align="center" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.物料名称 }} {{ scope.row.物料名称 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="物料规格" align="center"> <el-table-column label="物料规格" align="center" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.物料规格 }} {{ scope.row.物料规格 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="物料型号" align="center"> <el-table-column label="物料型号" align="center" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.物料型号 }} {{ scope.row.物料型号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="零件数量" align="center"> <el-table-column label="零件数量" align="center" width="90">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.零件数量 }} {{ scope.row.零件数量 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="机床数量" align="center"> <el-table-column label="机床数量" align="center" width="90">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.机床数量 }} {{ scope.row.机床数量 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" align="center"> <el-table-column label="备注" align="center" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.备注 }} {{ scope.row.备注 }}
</template> </template>
@@ -216,25 +216,25 @@
</el-row> </el-row>
</el-card> </el-card>
<el-row> <el-row>
<el-col style="width: 490px"> <el-col style="width: 300px">
<el-card> <el-card>
<el-table :data="tableData4" border size="mini" style="width: 100%" height="300px" highlight-current-row @row-click="searchDetailed"> <el-table :data="tableData4" border size="mini" style="width: 100%" height="300px" highlight-current-row @row-click="searchDetailed">
<el-table-column label="请购单号" align="center" width="160px"> <el-table-column label="请购单号" show-overflow-tooltip align="center" width="120px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.请购单编号 }} {{ scope.row.请购单编号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="请购车间" align="center" width="100px"> <!-- <el-table-column label="请购车间" align="center" width="100px">-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
{{ scope.row.请购车间 }} <!-- {{ scope.row.请购车间 }}-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column label="请购人" align="center" width="100px"> <el-table-column label="请购人" align="center" show-overflow-tooltip width="60px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.请购人 }} {{ scope.row.请购人 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="请购时间" align="center" width="100px"> <el-table-column label="请购时间" align="center" width="90px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.请购时间 }} {{ scope.row.请购时间 }}
</template> </template>
@@ -248,30 +248,30 @@
</el-table> </el-table>
</el-card> </el-card>
</el-col> </el-col>
<el-col style="width: 1200px"> <el-col style="width: 900px">
<el-card> <el-card>
<el-table :data="tableData6" border size="mini" style="width: 100%" height="300px"> <el-table :data="tableData6" border size="mini" style="width: 100%" height="300px">
<el-table-column label="零件名称" align="center" width="90px"> <el-table-column label="零件名称" show-overflow-tooltip align="center" width="90px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.物料名称 }} {{ scope.row.物料名称 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="零件图号" align="center" width="140px"> <el-table-column label="零件图号" show-overflow-tooltip align="center" width="120px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.零件图号 }} {{ scope.row.零件图号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="材料" align="center" width="90px"> <el-table-column label="材料" show-overflow-tooltip align="center" width="50px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.材料 }} {{ scope.row.材料 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="零件数量" align="center" width="80px"> <el-table-column label="数量" align="center" width="50px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.零件数量 }} {{ scope.row.零件数量 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="零件类型" align="center" width="80px"> <el-table-column label="零件类型" align="center" width="70px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.零件类型 }} {{ scope.row.零件类型 }}
</template> </template>
@@ -281,22 +281,22 @@
{{ scope.row.物料计划到货时间 }} {{ scope.row.物料计划到货时间 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="项目名称" align="center" width="150px"> <!-- <el-table-column label="项目名称" align="center" width="150px">-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
{{ scope.row.项目名称 }} <!-- {{ scope.row.项目名称 }}-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column label="机床编号" align="center" width="100px"> <el-table-column label="机床编号" align="center" width="100px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.机床图号 }} {{ scope.row.机床图号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="组号" align="center" width="80px"> <el-table-column label="组号" align="center" width="50px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.组号 }} {{ scope.row.组号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" align="center" width="150px"> <el-table-column label="备注" align="center" width="120px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.备注 }} {{ scope.row.备注 }}
</template> </template>

View File

@@ -3,8 +3,8 @@
<el-card> <el-card>
<div> <div>
<el-row> <el-row>
<span style="margin-left: 10px">机床号</span> <!-- <span style="margin-left: 10px">机床号</span>-->
<el-select v-model="machineNumberValue" filterable placeholder="机床编号" size="small" style="margin-bottom: 10px" clearable @change="machineChange"> <el-select v-model="machineNumberValue" filterable placeholder="机床编号" size="small" style="margin:0px 10px" clearable @change="machineChange">
<el-option <el-option
v-for="item in machineNumber" v-for="item in machineNumber"
:key="item.value" :key="item.value"
@@ -14,27 +14,25 @@
<div style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</div> <div style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</div>
</el-option> </el-option>
</el-select> </el-select>
<span style="margin-left: 10px">组号</span> <!-- <span style="margin-left: 10px">组号</span>-->
<el-select v-model="groupNumberValue" placeholder="组号" size="small" clearable> <el-select v-model="groupNumberValue" placeholder="组号" style="margin:0px 10px" size="small" clearable>
<el-option <el-option
v-for="item in groupNumber" v-for="item in groupNumber"
: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 style="margin-left: 10px">零件号</span>-->
<el-input v-model="PrNum" size="small" placeholder="零件号" clearable style="width: 200px"/> <el-input v-model="PrNum" size="small" placeholder="零件号" clearable style="width: 200px; margin:0px 10px"/>
</el-row> <!-- <span style="margin-left: 10px">工艺员</span>-->
<el-row> <el-select v-model="personValue" placeholder="工艺员" size="small" style="margin:0px 10px" clearable >
<span style="margin-left: 10px">工艺员</span>
<el-select v-model="personValue" placeholder="工艺员" size="small" clearable >
<el-option <el-option
v-for="item in person" v-for="item in person"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value"/> :value="item.value"/>
</el-select> </el-select>
<el-button type="success" size="small" style="margin-left: 10px" icon="el-icon-search" @click="pageCurrent=1;pageSize=20;total=0;searchData()">查询</el-button> <el-button type="success" size="small" style="margin: 0px 10px" icon="el-icon-search" @click="pageCurrent=1;pageSize=20;total=0;searchData()">查询</el-button>
</el-row> </el-row>
</div> </div>
</el-card> </el-card>
@@ -53,7 +51,7 @@
type="selection" type="selection"
align="center" align="center"
width="55"/> width="55"/>
<el-table-column label="机床号" prop="机床图号" align="center"> <el-table-column label="机床号" prop="机床图号" align="center" width="150px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.机床图号 }} {{ scope.row.机床图号 }}
</template> </template>

View File

@@ -352,14 +352,15 @@ export default {
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val this.multipleSelection = val
console.log(val)
}, },
save() { save() {
for (let i = 0; i < this.multipleSelection.length; i++) { for (let i = 0; i < this.multipleSelection.length; i++) {
if (this.multipleSelection[i].人员编号 === '') { if (this.multipleSelection[i].工艺员 === '') {
this.$message.error('请选择工艺员') this.$message.error('请选择工艺员')
} else { } else {
this.result = 0 this.result = 0
save(this.multipleSelection[i].工艺计划流水号, this.multipleSelection[i].人员编号, this.multipleSelection[i].零件号).then(response => { save(this.multipleSelection[i].工艺计划流水号, this.multipleSelection[i].工艺员, this.multipleSelection[i].零件号).then(response => {
this.result += parseInt(response.data[0].result) this.result += parseInt(response.data[0].result)
if (this.result === this.multipleSelection.length) { if (this.result === this.multipleSelection.length) {
this.$message.success('保存成功') this.$message.success('保存成功')

View File

@@ -23,7 +23,7 @@
<el-button type="success" class="el-icon-search" size="small" style="margin: 0px 10px;" @click="pageCurrent = 1;pageSize = 100;getTableData()">查询</el-button> <el-button type="success" class="el-icon-search" size="small" style="margin: 0px 10px;" @click="pageCurrent = 1;pageSize = 100;getTableData()">查询</el-button>
</el-card> </el-card>
<el-row> <el-row>
<el-col style="width: 630px"> <el-col style="width: 550px">
<el-card> <el-card>
<el-table <el-table
:data="tableData1" :data="tableData1"
@@ -36,22 +36,22 @@
border border
@current-change="getRow"> @current-change="getRow">
<el-table-column type="index" label="序号" width="50"/> <el-table-column type="index" label="序号" width="50"/>
<el-table-column align="center" label="工艺名" width="90"> <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="90"> <el-table-column align="center" label="质检" width="60">
<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="90"> <el-table-column align="center" label="不合格数" width="80">
<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="操作者" show-overflow-tooltip width="90"> <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>
@@ -61,7 +61,7 @@
{{ 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="95">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.完成日期 }} {{ scope.row.完成日期 }}
</template> </template>
@@ -69,7 +69,7 @@
</el-table> </el-table>
</el-card> </el-card>
</el-col> </el-col>
<el-col style="width: 930px"> <el-col style="width: 670px">
<el-card> <el-card>
<el-table <el-table
:data="tableData" :data="tableData"
@@ -78,39 +78,39 @@
class="table" class="table"
highlight-current-row highlight-current-row
border border
height="800" height="630"
@current-change="getCurrentRow"> @current-change="getCurrentRow">
<el-table-column type="index" label="序号" width="80"> <el-table-column type="index" label="序号" width="80">
<template slot-scope="scope"> <template slot-scope="scope">
<el-radio :label="scope.row.序号" v-model="radio"/> <el-radio :label="scope.row.序号" v-model="radio"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="零件图号" show-overflow-tooltip width="200"> <el-table-column align="center" label="零件图号" show-overflow-tooltip width="130">
<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="零件名称" show-overflow-tooltip width="140"> <el-table-column align="center" label="零件名称" show-overflow-tooltip width="80">
<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="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="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="110"> <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="110"> <el-table-column align="center" label="计划完成" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.计划结束时间 }} {{ scope.row.计划结束时间 }}
</template> </template>

View File

@@ -31,7 +31,7 @@
size="mini" size="mini"
stripe stripe
style="width: 100%;" style="width: 100%;"
height="800px" height="700px"
border border
element-loading-text="拼命加载中" element-loading-text="拼命加载中"
@row-click="searchTable2"> @row-click="searchTable2">
@@ -66,15 +66,15 @@
</div> </div>
</el-card> </el-card>
</el-col> </el-col>
<el-col style="margin-left: 0px;width: 850px"> <el-col style="margin-left: 0px;width: 810px">
<el-card> <el-card>
<el-table v-loading="loading2" :data="tableData2" size="mini" stripe highlight-current-row style="width: 100%;" height="800px" border element-loading-text="拼命加载中"> <el-table v-loading="loading2" :data="tableData2" size="mini" stripe highlight-current-row style="width: 100%;" height="700px" border element-loading-text="拼命加载中">
<el-table-column label="零件图号" align="center" width="170px" show-overflow-tooltip> <el-table-column label="零件图号" align="center" width="170px" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.零件图号 }} {{ scope.row.零件图号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="零件名称" align="center" width="130px" show-overflow-tooltip> <el-table-column label="零件名称" align="center" width="90px" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.零件名称 }} {{ scope.row.零件名称 }}
</template> </template>

View File

@@ -1,8 +1,8 @@
<template> <template>
<div> <div>
<el-row> <el-row>
<el-col style="width: 650px"> <el-col style="width: 610px">
<el-card style="height: 800px"> <el-card style="height: 680px">
<el-row style="margin-top: 5px"> <el-row style="margin-top: 5px">
<el-input v-model="Parts" placeholder="零件图号" size="small" style="width: 150px" @keyup.enter.native="getParts"/> <el-input v-model="Parts" placeholder="零件图号" size="small" style="width: 150px" @keyup.enter.native="getParts"/>
<el-select v-model="PersonValue" filterable placeholder="操作者" size="small" style="width: 100px;float: right" @change="searchTableData2"> <el-select v-model="PersonValue" filterable placeholder="操作者" size="small" style="width: 100px;float: right" @change="searchTableData2">
@@ -19,7 +19,7 @@
type="index" type="index"
align="center" align="center"
width="50"/> width="50"/>
<el-table-column label="图号及规格" align="center" width="190px"> <el-table-column label="图号及规格" show-overflow-tooltip align="center" width="150px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.图号及规格 }} {{ scope.row.图号及规格 }}
</template> </template>
@@ -58,8 +58,8 @@
</div> </div>
</el-card> </el-card>
</el-col> </el-col>
<el-col style="width: 650px"> <el-col style="width: 600px">
<el-card style="height: 800px"> <el-card style="height: 680px">
<el-table :data="tableData2" height="380" highlight-current-row size="mini" style="width: 100%" border stripe @row-dblclick="XuanChu"> <el-table :data="tableData2" height="380" highlight-current-row size="mini" style="width: 100%" border stripe @row-dblclick="XuanChu">
<el-table-column label="零件图号" align="center" width="190px"> <el-table-column label="零件图号" align="center" width="190px">
<template slot-scope="scope"> <template slot-scope="scope">