更细腻
This commit is contained in:
@@ -66,7 +66,7 @@ export function getExport(num) {
|
|||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '3',
|
type: '3',
|
||||||
name: `select 机床流水号,组件流水号,车间生产管理工艺_零件工艺计划.工艺计划流水号,车间生产管理工艺_零件工艺计划.零件图号_零件工艺计划,车间生产管理工艺_零件工序_视图.零件名称,待加工工序顺序,车间生产管理工艺_零件工序.工序流水号,车间生产管理工艺_零件工序.工艺编号,车间生产管理工艺_基础表_工艺名称.工艺名称,批次数量,材料
|
name: `select 机床流水号,机床图号,组件流水号,组号,车间生产管理工艺_零件工艺计划.工艺计划流水号,车间生产管理工艺_零件工艺计划.零件图号_零件工艺计划,车间生产管理工艺_零件工序_视图.零件名称,待加工工序顺序,车间生产管理工艺_零件工序.工序流水号,车间生产管理工艺_零件工序.工艺编号,车间生产管理工艺_基础表_工艺名称.工艺名称,批次数量,材料
|
||||||
from ( select 工艺计划流水号,min(工序顺序) as 待加工工序顺序
|
from ( select 工艺计划流水号,min(工序顺序) as 待加工工序顺序
|
||||||
from 车间生产管理工艺_零件工序_视图
|
from 车间生产管理工艺_零件工序_视图
|
||||||
where 完成日期_短 is null and 考核状态 = 6
|
where 完成日期_短 is null and 考核状态 = 6
|
||||||
|
|||||||
@@ -398,8 +398,8 @@ export default {
|
|||||||
getExport(this.Group).then(res => {
|
getExport(this.Group).then(res => {
|
||||||
console.log(res.data)
|
console.log(res.data)
|
||||||
import('@/vendor/Export2Excel').then(excel => {
|
import('@/vendor/Export2Excel').then(excel => {
|
||||||
const tHeader = ['图号及规格', '制品名称', '计划数', '材料', '当前工序名']
|
const tHeader = ['机床', '组号', '图号及规格', '制品名称', '计划数', '材料', '当前工序名']
|
||||||
const filterVal = ['零件图号_零件工艺计划', '零件名称', '批次数量', '材料', '工艺名称']
|
const filterVal = ['机床图号', '组号', '零件图号_零件工艺计划', '零件名称', '批次数量', '材料', '工艺名称']
|
||||||
const list = res.data
|
const list = res.data
|
||||||
const data = this.formatJson(filterVal, list)
|
const data = this.formatJson(filterVal, list)
|
||||||
excel.export_json_to_excel({
|
excel.export_json_to_excel({
|
||||||
|
|||||||
@@ -176,7 +176,7 @@
|
|||||||
{{ scope.row.任务名称 }}
|
{{ scope.row.任务名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="开始时间" align="center" min-width="100px">
|
<el-table-column label="计划开始时间" align="center" min-width="100px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.任务开始时间 }}
|
{{ scope.row.任务开始时间 }}
|
||||||
</template>
|
</template>
|
||||||
@@ -216,7 +216,7 @@
|
|||||||
{{ scope.row.任务名称 }}
|
{{ scope.row.任务名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="开始时间" align="center" min-width="100px">
|
<el-table-column label="计划开始时间" align="center" min-width="100px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.任务开始时间 }}
|
{{ scope.row.任务开始时间 }}
|
||||||
</template>
|
</template>
|
||||||
@@ -261,7 +261,7 @@
|
|||||||
{{ scope.row.任务名称 }}
|
{{ scope.row.任务名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="开始时间" align="center" min-width="100px">
|
<el-table-column label="计划开始时间" align="center" min-width="100px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.任务开始时间 }}
|
{{ scope.row.任务开始时间 }}
|
||||||
</template>
|
</template>
|
||||||
@@ -306,7 +306,7 @@
|
|||||||
{{ scope.row.任务名称 }}
|
{{ scope.row.任务名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="开始时间" align="center" min-width="100px">
|
<el-table-column label="计划开始时间" align="center" min-width="100px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.任务开始时间 }}
|
{{ scope.row.任务开始时间 }}
|
||||||
</template>
|
</template>
|
||||||
@@ -351,7 +351,7 @@
|
|||||||
{{ scope.row.任务名称 }}
|
{{ scope.row.任务名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="开始时间" align="center" min-width="100px">
|
<el-table-column label="计划开始时间" align="center" min-width="100px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.任务开始时间 }}
|
{{ scope.row.任务开始时间 }}
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user