|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <ele-modal :visible.sync="visible" type="工单打印" width="80vw">
|
|
|
+ <ele-modal :visible.sync="visible" type="工单打印" width="1200px">
|
|
|
<div class="print-container" ref="pagesRef">
|
|
|
<el-row class="main-data mb-16">
|
|
|
<el-col :span="6">
|
|
|
@@ -26,8 +26,8 @@
|
|
|
<div class="value">{{ infoData.formingNum }}PCS</div>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <!-- <div class="bg">要求成型日期</div>
|
|
|
- <div class="value">2023/08/20</div> -->
|
|
|
+ <div class="bg">工单状态</div>
|
|
|
+ <div class="value">{{ statusList[infoData.status] }}</div>
|
|
|
<div class="bg">要求成型重量</div>
|
|
|
<div class="value">{{ infoData.formingWeight }}KG</div>
|
|
|
</el-col>
|
|
|
@@ -39,14 +39,14 @@
|
|
|
:key="index"
|
|
|
v-if="item.taskTypeName === '挤压成型'"
|
|
|
>
|
|
|
- <el-col :span="14" class="bg top"
|
|
|
+ <el-col :span="24" class="bg top"
|
|
|
><div class="title">{{ index + 1 }}0 挤压成型</div></el-col
|
|
|
>
|
|
|
- <el-col :span="10" class="bg top">备注:</el-col>
|
|
|
+ <!-- <el-col :span="10" class="bg top">备注:</el-col> -->
|
|
|
<template v-for="(itm, idx) in item.list || []">
|
|
|
<el-col
|
|
|
:span="t.span"
|
|
|
- :class="t.class"
|
|
|
+ class="border-dashed-right border-dashed-bottom"
|
|
|
v-for="(t, i) in extrusion"
|
|
|
:key="i + '-' + idx"
|
|
|
>
|
|
|
@@ -65,14 +65,14 @@
|
|
|
:key="index"
|
|
|
v-else-if="item.taskTypeName === '自然干燥'"
|
|
|
>
|
|
|
- <el-col :span="14" class="bg top"
|
|
|
+ <el-col :span="24" class="bg top"
|
|
|
><div class="title">{{ index + 1 }}0 自然干燥</div></el-col
|
|
|
>
|
|
|
- <el-col :span="10" class="bg top">备注:</el-col>
|
|
|
+ <!-- <el-col :span="10" class="bg top">备注:</el-col> -->
|
|
|
<template v-for="(itm, idx) in item.list || []">
|
|
|
<el-col
|
|
|
:span="t.span"
|
|
|
- :class="t.class"
|
|
|
+ class="border-dashed-right border-dashed-bottom"
|
|
|
v-for="(t, i) in drying"
|
|
|
:key="i + '-' + idx"
|
|
|
>
|
|
|
@@ -90,15 +90,15 @@
|
|
|
:key="index"
|
|
|
v-else-if="item.taskTypeName === '升温干燥'"
|
|
|
>
|
|
|
- <el-col :span="14" class="bg top"
|
|
|
+ <el-col :span="24" class="bg top"
|
|
|
><div class="title">{{ index + 1 }}0 升温干燥</div></el-col
|
|
|
>
|
|
|
- <el-col :span="10" class="bg top">备注:</el-col>
|
|
|
+ <!-- <el-col :span="10" class="bg top">备注:</el-col> -->
|
|
|
|
|
|
<template v-for="(itm, idx) in item.list || []">
|
|
|
<el-col
|
|
|
:span="t.span"
|
|
|
- :class="t.class"
|
|
|
+ class="border-dashed-right border-dashed-bottom"
|
|
|
v-for="(t, i) in temperature"
|
|
|
:key="i + '-' + idx"
|
|
|
>
|
|
|
@@ -116,14 +116,14 @@
|
|
|
:key="index"
|
|
|
v-else-if="item.taskTypeName.includes('定长')"
|
|
|
>
|
|
|
- <el-col :span="14" class="bg top"
|
|
|
+ <el-col :span="24" class="bg top"
|
|
|
><div class="title">{{ index + 1 }}0 半加定长</div></el-col
|
|
|
>
|
|
|
- <el-col :span="10" class="bg top">备注:</el-col>
|
|
|
+ <!-- <el-col :span="10" class="bg top">备注:</el-col> -->
|
|
|
<template v-for="(itm, idx) in item.list || []">
|
|
|
<el-col
|
|
|
:span="t.span"
|
|
|
- :class="t.class"
|
|
|
+ class="border-dashed-right border-dashed-bottom"
|
|
|
v-for="(t, i) in halflong"
|
|
|
:key="i + '-' + idx"
|
|
|
>
|
|
|
@@ -141,14 +141,14 @@
|
|
|
:key="index"
|
|
|
v-else-if="item.taskTypeName === '备炉'"
|
|
|
>
|
|
|
- <el-col :span="14" class="bg top"
|
|
|
+ <el-col :span="24" class="bg top"
|
|
|
><div class="title">{{ index + 1 }}0 备炉</div></el-col
|
|
|
>
|
|
|
- <el-col :span="10" class="bg top">备注:</el-col>
|
|
|
+ <!-- <el-col :span="10" class="bg top">备注:</el-col> -->
|
|
|
<template v-for="(itm, idx) in item.list || []">
|
|
|
<el-col
|
|
|
:span="t.span"
|
|
|
- :class="t.class"
|
|
|
+ class="border-dashed-right border-dashed-bottom"
|
|
|
v-for="(t, i) in furnace"
|
|
|
:key="i + '-' + idx"
|
|
|
>
|
|
|
@@ -166,14 +166,14 @@
|
|
|
:key="index"
|
|
|
v-else-if="item.taskTypeName === '烧结'"
|
|
|
>
|
|
|
- <el-col :span="14" class="bg top"
|
|
|
+ <el-col :span="24" class="bg top"
|
|
|
><div class="title">{{ index + 1 }}0 烧结</div></el-col
|
|
|
>
|
|
|
- <el-col :span="10" class="bg top">备注:</el-col>
|
|
|
+ <!-- <el-col :span="10" class="bg top">备注:</el-col> -->
|
|
|
<template v-for="(itm, idx) in item.list || []">
|
|
|
<el-col
|
|
|
:span="t.span"
|
|
|
- :class="t.class"
|
|
|
+ class="border-dashed-right border-dashed-bottom"
|
|
|
v-for="(t, i) in sinter"
|
|
|
:key="i + '-' + idx"
|
|
|
>
|
|
|
@@ -191,14 +191,14 @@
|
|
|
:key="index"
|
|
|
v-else-if="item.taskTypeName === '质检'"
|
|
|
>
|
|
|
- <el-col :span="14" class="bg top"
|
|
|
+ <el-col :span="24" class="bg top"
|
|
|
><div class="title">{{ index + 1 }}0 质检</div></el-col
|
|
|
>
|
|
|
- <el-col :span="10" class="bg top">备注:</el-col>
|
|
|
+ <!-- <el-col :span="10" class="bg top">备注:</el-col> -->
|
|
|
<template v-for="(itm, idx) in item.list || []">
|
|
|
<el-col
|
|
|
:span="t.span"
|
|
|
- :class="t.class"
|
|
|
+ class="border-dashed-right border-dashed-bottom"
|
|
|
v-for="(t, i) in quality"
|
|
|
:key="i + '-' + idx"
|
|
|
>
|
|
|
@@ -216,14 +216,14 @@
|
|
|
:key="index"
|
|
|
v-else-if="item.taskTypeName === '包装'"
|
|
|
>
|
|
|
- <el-col :span="14" class="bg top"
|
|
|
+ <el-col :span="24" class="bg top"
|
|
|
><div class="title">{{ index + 1 }}0 包装</div></el-col
|
|
|
>
|
|
|
- <el-col :span="10" class="bg top">备注:</el-col>
|
|
|
+ <!-- <el-col :span="10" class="bg top">备注:</el-col> -->
|
|
|
<template v-for="(itm, idx) in item.list || []">
|
|
|
<el-col
|
|
|
:span="t.span"
|
|
|
- :class="t.class"
|
|
|
+ class="border-dashed-right border-dashed-bottom"
|
|
|
v-for="(t, i) in packageOpt"
|
|
|
:key="i + '-' + idx"
|
|
|
>
|
|
|
@@ -231,6 +231,30 @@
|
|
|
(item.formatter && item.formatter(itm)) || itm[t.key]
|
|
|
}}
|
|
|
</el-col>
|
|
|
+ <el-col
|
|
|
+ v-for="material in itm.workReportCategoryList.filter(
|
|
|
+ (i) => i.rootCategoryLevelId == 10
|
|
|
+ )"
|
|
|
+ :span="24"
|
|
|
+ style="padding-left: 0"
|
|
|
+ :key="material.code"
|
|
|
+ >
|
|
|
+ <el-col :span="8" class="border-dashed-right border-dashed-bottom"
|
|
|
+ >物料名称:{{ material.name }}
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4" class="border-dashed-right border-dashed-bottom"
|
|
|
+ >物料编号:{{ material.code }}
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4" class="border-dashed-right border-dashed-bottom"
|
|
|
+ >数量:{{ material.number }}
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4" class="border-dashed-right border-dashed-bottom"
|
|
|
+ >批次号:{{ material.batchNo }}
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4" class="border-dashed-right border-dashed-bottom"
|
|
|
+ >数量:{{ material.number }}
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
</template>
|
|
|
<el-col :span="24" v-if="!(item.list && item.list.length)">
|
|
|
<div class="no-data">暂无数据</div>
|
|
|
@@ -241,14 +265,14 @@
|
|
|
class="processes-data"
|
|
|
v-else-if="item.taskTypeName.includes('库')"
|
|
|
>
|
|
|
- <el-col :span="14" class="bg top"
|
|
|
+ <el-col :span="24" class="bg top"
|
|
|
><div class="title">{{ index + 1 }}0 预缴库</div></el-col
|
|
|
>
|
|
|
- <el-col :span="10" class="bg top">备注:</el-col>
|
|
|
+ <!-- <el-col :span="10" class="bg top">备注:</el-col> -->
|
|
|
<template v-for="(itm, idx) in item.list || []">
|
|
|
<el-col
|
|
|
:span="t.span"
|
|
|
- :class="t.class"
|
|
|
+ class="border-dashed-right border-dashed-bottom"
|
|
|
v-for="(t, i) in preStorage"
|
|
|
:key="i + '-' + idx"
|
|
|
>
|
|
|
@@ -262,7 +286,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row class="processes-data" :key="index" v-else>
|
|
|
- <el-col :span="14" class="bg top"
|
|
|
+ <el-col :span="24" class="bg top"
|
|
|
><div class="title"
|
|
|
>{{ index + 1 }}0
|
|
|
{{
|
|
|
@@ -272,11 +296,11 @@
|
|
|
}}</div
|
|
|
></el-col
|
|
|
>
|
|
|
- <el-col :span="10" class="bg top">备注:</el-col>
|
|
|
+ <!-- <el-col :span="10" class="bg top">备注:</el-col> -->
|
|
|
<template v-for="(itm, idx) in item.list || []">
|
|
|
<el-col
|
|
|
:span="t.span"
|
|
|
- :class="t.class"
|
|
|
+ class="border-dashed-right border-dashed-bottom"
|
|
|
v-for="(t, i) in deepProcesse"
|
|
|
:key="i + '-' + idx"
|
|
|
>
|
|
|
@@ -324,6 +348,12 @@
|
|
|
2: '外销订单',
|
|
|
3: '预制订单'
|
|
|
},
|
|
|
+ statusList: {
|
|
|
+ 4: '待生产',
|
|
|
+ 5: '生产中',
|
|
|
+ 6: '已完成',
|
|
|
+ 7: '已延期'
|
|
|
+ },
|
|
|
// 挤压成型
|
|
|
extrusion: [
|
|
|
{
|
|
|
@@ -425,7 +455,7 @@
|
|
|
label: '冲压次数',
|
|
|
key: 'stampingTimes',
|
|
|
span: 4,
|
|
|
- class: 'border-dashed-right',
|
|
|
+ class: 'border-dashed-right border-dashed-bottom',
|
|
|
formatter (itm) {
|
|
|
const obj = itm.workReportDeviceList.find(
|
|
|
(i) => i.rootCategoryLevelId == 5
|
|
|
@@ -437,19 +467,19 @@
|
|
|
label: '员工号',
|
|
|
key: 'executorJobNum',
|
|
|
span: 4,
|
|
|
- class: 'border-dashed-right'
|
|
|
+ class: 'border-dashed-right border-dashed-bottom'
|
|
|
},
|
|
|
{
|
|
|
label: '日期',
|
|
|
key: 'executeTime',
|
|
|
span: 4,
|
|
|
- class: 'border-dashed-right'
|
|
|
+ class: 'border-dashed-right border-dashed-bottom'
|
|
|
},
|
|
|
{
|
|
|
label: '备注',
|
|
|
key: 'remark',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right'
|
|
|
+ span: 12,
|
|
|
+ class: 'border-dashed-right border-dashed-bottom'
|
|
|
}
|
|
|
// {
|
|
|
// label: '清缸时长',
|
|
|
@@ -533,14 +563,20 @@
|
|
|
label: '升温曲线',
|
|
|
key: 'temperatureRamp',
|
|
|
span: 8,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '干燥时长(分钟)',
|
|
|
- key: 'xxx',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ class: 'border-dashed-right border-dashed-bottom',
|
|
|
+ formatter (itm) {
|
|
|
+ const obj = itm.workReportDeviceList.find(
|
|
|
+ (i) => i.rootCategoryLevelId == 4
|
|
|
+ );
|
|
|
+ return obj?.extraField?.temperatureRamp;
|
|
|
+ }
|
|
|
},
|
|
|
+ // {
|
|
|
+ // label: '干燥时长(分钟)',
|
|
|
+ // key: 'xxx',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ // },
|
|
|
{
|
|
|
label: '合格数',
|
|
|
key: 'standardNum',
|
|
|
@@ -573,10 +609,16 @@
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- label: '周转车编码',
|
|
|
+ label: '舟皿编码',
|
|
|
key: 'xxx',
|
|
|
span: 8,
|
|
|
- class: 'border-dashed-right'
|
|
|
+ class: 'border-dashed-right',
|
|
|
+ formatter (itm) {
|
|
|
+ const obj = itm.workReportDeviceList.find(
|
|
|
+ (i) => i.rootCategoryLevelId == 8
|
|
|
+ );
|
|
|
+ return obj?.code;
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
label: '员工号',
|
|
|
@@ -599,12 +641,12 @@
|
|
|
],
|
|
|
// 半加定长
|
|
|
halflong: [
|
|
|
- {
|
|
|
- label: '长度(mm)',
|
|
|
- key: 'xxx',
|
|
|
- span: 8,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // label: '长度(mm)',
|
|
|
+ // key: 'xxx',
|
|
|
+ // span: 8,
|
|
|
+ // class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ // },
|
|
|
{
|
|
|
label: '合格数',
|
|
|
key: 'standardNum',
|
|
|
@@ -685,7 +727,13 @@
|
|
|
label: '产品数量',
|
|
|
key: 'xxx',
|
|
|
span: 8,
|
|
|
- class: 'border-dashed-right'
|
|
|
+ class: 'border-dashed-right',
|
|
|
+ formatter (itm) {
|
|
|
+ const obj = itm.workReportCategoryList.find(
|
|
|
+ (i) => i.rootCategoryLevelId == 9
|
|
|
+ );
|
|
|
+ return obj?.number;
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
label: '设备号',
|
|
|
@@ -720,12 +768,12 @@
|
|
|
],
|
|
|
// 烧结
|
|
|
sinter: [
|
|
|
- {
|
|
|
- label: '烧结曲线',
|
|
|
- key: 'sinteringCurve',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // label: '烧结曲线',
|
|
|
+ // key: 'sinteringCurve',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ // },
|
|
|
{
|
|
|
label: '合格数',
|
|
|
key: 'standardNum',
|
|
|
@@ -739,7 +787,7 @@
|
|
|
label: '不合格数',
|
|
|
key: 'noStandardNum',
|
|
|
span: 4,
|
|
|
- class: 'border-dashed-bottom',
|
|
|
+ class: 'border-dashed-bottom border-dashed-right',
|
|
|
formatter (itm) {
|
|
|
return itm.productInfo?.noStandardNum;
|
|
|
}
|
|
|
@@ -747,7 +795,7 @@
|
|
|
{
|
|
|
label: '设备号',
|
|
|
key: 'deviceCode',
|
|
|
- span: 8,
|
|
|
+ span: 4,
|
|
|
class: 'border-dashed-right border-dashed-bottom',
|
|
|
formatter (itm) {
|
|
|
const obj = itm.workReportDeviceList.find(
|
|
|
@@ -760,149 +808,8 @@
|
|
|
label: '员工号',
|
|
|
key: 'executorJobNum',
|
|
|
span: 4,
|
|
|
- class: 'border-dashed-right'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '日期',
|
|
|
- key: 'executeTime',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '备注',
|
|
|
- key: 'remark',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right'
|
|
|
- }
|
|
|
- ],
|
|
|
- // 质检
|
|
|
- quality: [
|
|
|
- {
|
|
|
- label: '半检结果',
|
|
|
- key: 'xxx',
|
|
|
- span: 12,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '员工号',
|
|
|
- key: 'executorJobNum',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '日期',
|
|
|
- key: 'executeTime',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '成检结果',
|
|
|
- key: 'xxx',
|
|
|
- span: 12,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '员工号',
|
|
|
- key: 'executorJobNum',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '日期',
|
|
|
- key: 'executeTime',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '外径',
|
|
|
- key: 'xxx',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '长度',
|
|
|
- key: 'xxx',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '垂直度',
|
|
|
- key: 'xxx',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '圆度',
|
|
|
- key: 'xxx',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '跳动',
|
|
|
- key: 'xxx',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-bottom'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '抗拆/损伤',
|
|
|
- key: 'xxx',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '直线度',
|
|
|
- key: 'xxx',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '粗糙度',
|
|
|
- key: 'xxx',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '其它',
|
|
|
- key: 'xxx',
|
|
|
- span: 4,
|
|
|
- class: ' border-dashed-bottom border-dashed-right '
|
|
|
- },
|
|
|
- {
|
|
|
- label: '合格数',
|
|
|
- key: 'standardNum',
|
|
|
- span: 4,
|
|
|
class: 'border-dashed-right border-dashed-bottom'
|
|
|
},
|
|
|
- {
|
|
|
- label: '合格数',
|
|
|
- key: 'noStandardNum',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '待处理',
|
|
|
- key: 'xxx',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '让步',
|
|
|
- key: 'xxx',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '可修',
|
|
|
- key: 'xxx',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-bottom'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '员工号',
|
|
|
- key: 'executorJobNum',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right'
|
|
|
- },
|
|
|
{
|
|
|
label: '日期',
|
|
|
key: 'executeTime',
|
|
|
@@ -916,6 +823,147 @@
|
|
|
class: 'border-dashed-right'
|
|
|
}
|
|
|
],
|
|
|
+ // 质检
|
|
|
+ // quality: [
|
|
|
+ // {
|
|
|
+ // label: '半检结果',
|
|
|
+ // key: 'xxx',
|
|
|
+ // span: 12,
|
|
|
+ // class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '员工号',
|
|
|
+ // key: 'executorJobNum',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-right'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '日期',
|
|
|
+ // key: 'executeTime',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-right'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '成检结果',
|
|
|
+ // key: 'xxx',
|
|
|
+ // span: 12,
|
|
|
+ // class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '员工号',
|
|
|
+ // key: 'executorJobNum',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-right'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '日期',
|
|
|
+ // key: 'executeTime',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-right'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '外径',
|
|
|
+ // key: 'xxx',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '长度',
|
|
|
+ // key: 'xxx',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '垂直度',
|
|
|
+ // key: 'xxx',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '圆度',
|
|
|
+ // key: 'xxx',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '跳动',
|
|
|
+ // key: 'xxx',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-bottom'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '抗拆/损伤',
|
|
|
+ // key: 'xxx',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '直线度',
|
|
|
+ // key: 'xxx',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '粗糙度',
|
|
|
+ // key: 'xxx',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '其它',
|
|
|
+ // key: 'xxx',
|
|
|
+ // span: 4,
|
|
|
+ // class: ' border-dashed-bottom border-dashed-right '
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '合格数',
|
|
|
+ // key: 'standardNum',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '合格数',
|
|
|
+ // key: 'noStandardNum',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '待处理',
|
|
|
+ // key: 'xxx',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '让步',
|
|
|
+ // key: 'xxx',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '可修',
|
|
|
+ // key: 'xxx',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-bottom'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '员工号',
|
|
|
+ // key: 'executorJobNum',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-right'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '日期',
|
|
|
+ // key: 'executeTime',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-right'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '备注',
|
|
|
+ // key: 'remark',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-right'
|
|
|
+ // }
|
|
|
+ // ],
|
|
|
// 深加工
|
|
|
deepProcesse: [
|
|
|
{
|
|
|
@@ -972,80 +1020,65 @@
|
|
|
{
|
|
|
label: '包装要求',
|
|
|
key: 'xxx',
|
|
|
- span: 24,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ span: 4,
|
|
|
+ class: 'border-dashed-right border-dashed-bottom',
|
|
|
+ formatter (itm) {
|
|
|
+ return itm?.packInfo?.packDemand;
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
label: '包装单位',
|
|
|
key: 'xxx',
|
|
|
span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ class: 'border-dashed-right border-dashed-bottom',
|
|
|
+ formatter (itm) {
|
|
|
+ return itm?.packInfo?.packUnit;
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
label: '包装数量',
|
|
|
key: 'xxx',
|
|
|
span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ class: 'border-dashed-right border-dashed-bottom',
|
|
|
+ formatter (itm) {
|
|
|
+ return itm?.packInfo?.packNum;
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
label: '最小包装单元',
|
|
|
key: 'xxx',
|
|
|
span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ class: 'border-dashed-right border-dashed-bottom',
|
|
|
+ formatter (itm) {
|
|
|
+ return `PCS/${itm.packInfo.packUnit}`;
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
label: '净重',
|
|
|
key: 'xxx',
|
|
|
span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ class: 'border-dashed-right border-dashed-bottom',
|
|
|
+ formatter (itm) {
|
|
|
+ return itm?.packInfo?.netWeight;
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
label: '毛重',
|
|
|
key: 'xxx',
|
|
|
span: 4,
|
|
|
- class: ' border-dashed-bottom'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '物料编码',
|
|
|
- key: 'xxx',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '物料名称',
|
|
|
- key: 'xxx',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '物料数量',
|
|
|
- key: 'xxx',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ class: ' border-dashed-bottom',
|
|
|
+ formatter (itm) {
|
|
|
+ return itm?.packInfo?.roughWeight;
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
label: '尾料',
|
|
|
key: 'xxx',
|
|
|
- span: 8,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '物料编码',
|
|
|
- key: 'xxx',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '物料名称',
|
|
|
- key: 'xxx',
|
|
|
span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '物料数量',
|
|
|
- key: 'xxx',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ class: 'border-dashed-right border-dashed-bottom',
|
|
|
+ formatter (itm) {
|
|
|
+ return itm?.packInfo?.surplusNum;
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
label: '员工号',
|
|
|
@@ -1062,7 +1095,7 @@
|
|
|
{
|
|
|
label: '备注',
|
|
|
key: 'remark',
|
|
|
- span: 4,
|
|
|
+ span: 12,
|
|
|
class: 'border-dashed-right'
|
|
|
}
|
|
|
],
|
|
|
@@ -1072,7 +1105,13 @@
|
|
|
label: '产品数量',
|
|
|
key: 'xxx',
|
|
|
span: 4,
|
|
|
- class: 'border-dashed-right border-dashed-bottom'
|
|
|
+ class: 'border-dashed-right border-dashed-bottom',
|
|
|
+ formatter (itm) {
|
|
|
+ const obj = itm.workReportDeviceList.find(
|
|
|
+ (i) => i.rootCategoryLevelId == 9
|
|
|
+ );
|
|
|
+ return obj?.number;
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
label: '员工号',
|
|
|
@@ -1089,7 +1128,7 @@
|
|
|
{
|
|
|
label: '备注',
|
|
|
key: 'remark',
|
|
|
- span: 4,
|
|
|
+ span: 12,
|
|
|
class: 'border-dashed-right'
|
|
|
}
|
|
|
]
|
|
|
@@ -1102,12 +1141,14 @@
|
|
|
this.init();
|
|
|
},
|
|
|
init () {
|
|
|
+ for (const p of this.processList) {
|
|
|
+ this.$set(p, 'list', []);
|
|
|
+ }
|
|
|
printWorkOrderInfo(this.workOrderId).then((res) => {
|
|
|
for (const t of res.taskInfo) {
|
|
|
for (const p of this.processList) {
|
|
|
- if (!p.list) {
|
|
|
- this.$set(p, 'list', t || []);
|
|
|
- } else if (t.taskName === p.taskTypeName) {
|
|
|
+ if (t.taskName === p.taskTypeName) {
|
|
|
+ console.log(t.taskName, p.taskTypeName);
|
|
|
p.list.push(t);
|
|
|
}
|
|
|
}
|
|
|
@@ -1172,7 +1213,7 @@
|
|
|
border-top: $border;
|
|
|
border-left: $border;
|
|
|
border-right: $border;
|
|
|
- font-size: 20px;
|
|
|
+ font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.processes-data {
|