|
|
@@ -39,9 +39,9 @@
|
|
|
:key="index"
|
|
|
v-if="item.taskTypeName === '挤压成型'"
|
|
|
>
|
|
|
- <el-col :span="24" class="bg top"
|
|
|
- ><div class="title">{{ index + 1 }}0 挤压成型</div></el-col
|
|
|
- >
|
|
|
+ <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> -->
|
|
|
<template v-for="(itm, idx) in item.list || []">
|
|
|
<el-col
|
|
|
@@ -51,7 +51,7 @@
|
|
|
:key="i + '-' + idx"
|
|
|
>
|
|
|
{{ t.label }}:{{
|
|
|
- (item.formatter && item.formatter(itm)) || itm[t.key]
|
|
|
+ (t.formatter && t.formatter(itm)) || itm[t.key]
|
|
|
}}
|
|
|
</el-col>
|
|
|
</template>
|
|
|
@@ -65,9 +65,9 @@
|
|
|
:key="index"
|
|
|
v-else-if="item.taskTypeName === '自然干燥'"
|
|
|
>
|
|
|
- <el-col :span="24" class="bg top"
|
|
|
- ><div class="title">{{ index + 1 }}0 自然干燥</div></el-col
|
|
|
- >
|
|
|
+ <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> -->
|
|
|
<template v-for="(itm, idx) in item.list || []">
|
|
|
<el-col
|
|
|
@@ -77,7 +77,7 @@
|
|
|
:key="i + '-' + idx"
|
|
|
>
|
|
|
{{ t.label }}:{{
|
|
|
- (item.formatter && item.formatter(itm)) || itm[t.key]
|
|
|
+ (t.formatter && t.formatter(itm)) || itm[t.key]
|
|
|
}}
|
|
|
</el-col>
|
|
|
</template>
|
|
|
@@ -90,9 +90,9 @@
|
|
|
:key="index"
|
|
|
v-else-if="item.taskTypeName === '升温干燥'"
|
|
|
>
|
|
|
- <el-col :span="24" class="bg top"
|
|
|
- ><div class="title">{{ index + 1 }}0 升温干燥</div></el-col
|
|
|
- >
|
|
|
+ <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> -->
|
|
|
|
|
|
<template v-for="(itm, idx) in item.list || []">
|
|
|
@@ -103,7 +103,7 @@
|
|
|
:key="i + '-' + idx"
|
|
|
>
|
|
|
{{ t.label }}:{{
|
|
|
- (item.formatter && item.formatter(itm)) || itm[t.key]
|
|
|
+ (t.formatter && t.formatter(itm)) || itm[t.key]
|
|
|
}}
|
|
|
</el-col>
|
|
|
</template>
|
|
|
@@ -116,9 +116,9 @@
|
|
|
:key="index"
|
|
|
v-else-if="item.taskTypeName.includes('定长')"
|
|
|
>
|
|
|
- <el-col :span="24" class="bg top"
|
|
|
- ><div class="title">{{ index + 1 }}0 半加定长</div></el-col
|
|
|
- >
|
|
|
+ <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> -->
|
|
|
<template v-for="(itm, idx) in item.list || []">
|
|
|
<el-col
|
|
|
@@ -128,7 +128,7 @@
|
|
|
:key="i + '-' + idx"
|
|
|
>
|
|
|
{{ t.label }}:{{
|
|
|
- (item.formatter && item.formatter(itm)) || itm[t.key]
|
|
|
+ (t.formatter && t.formatter(itm)) || itm[t.key]
|
|
|
}}
|
|
|
</el-col>
|
|
|
</template>
|
|
|
@@ -141,9 +141,9 @@
|
|
|
:key="index"
|
|
|
v-else-if="item.taskTypeName === '备炉'"
|
|
|
>
|
|
|
- <el-col :span="24" class="bg top"
|
|
|
- ><div class="title">{{ index + 1 }}0 备炉</div></el-col
|
|
|
- >
|
|
|
+ <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> -->
|
|
|
<template v-for="(itm, idx) in item.list || []">
|
|
|
<el-col
|
|
|
@@ -153,7 +153,7 @@
|
|
|
:key="i + '-' + idx"
|
|
|
>
|
|
|
{{ t.label }}:{{
|
|
|
- (item.formatter && item.formatter(itm)) || itm[t.key]
|
|
|
+ (t.formatter && t.formatter(itm)) || itm[t.key]
|
|
|
}}
|
|
|
</el-col>
|
|
|
</template>
|
|
|
@@ -166,9 +166,9 @@
|
|
|
:key="index"
|
|
|
v-else-if="item.taskTypeName === '烧结'"
|
|
|
>
|
|
|
- <el-col :span="24" class="bg top"
|
|
|
- ><div class="title">{{ index + 1 }}0 烧结</div></el-col
|
|
|
- >
|
|
|
+ <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> -->
|
|
|
<template v-for="(itm, idx) in item.list || []">
|
|
|
<el-col
|
|
|
@@ -178,7 +178,7 @@
|
|
|
:key="i + '-' + idx"
|
|
|
>
|
|
|
{{ t.label }}:{{
|
|
|
- (item.formatter && item.formatter(itm)) || itm[t.key]
|
|
|
+ (t.formatter && t.formatter(itm)) || itm[t.key]
|
|
|
}}
|
|
|
</el-col>
|
|
|
</template>
|
|
|
@@ -191,9 +191,9 @@
|
|
|
:key="index"
|
|
|
v-else-if="item.taskTypeName === '质检'"
|
|
|
>
|
|
|
- <el-col :span="24" class="bg top"
|
|
|
- ><div class="title">{{ index + 1 }}0 质检</div></el-col
|
|
|
- >
|
|
|
+ <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> -->
|
|
|
<template v-for="(itm, idx) in item.list || []">
|
|
|
<el-col
|
|
|
@@ -203,7 +203,7 @@
|
|
|
:key="i + '-' + idx"
|
|
|
>
|
|
|
{{ t.label }}:{{
|
|
|
- (item.formatter && item.formatter(itm)) || itm[t.key]
|
|
|
+ (t.formatter && t.formatter(itm)) || itm[t.key]
|
|
|
}}
|
|
|
</el-col>
|
|
|
</template>
|
|
|
@@ -216,9 +216,9 @@
|
|
|
:key="index"
|
|
|
v-else-if="item.taskTypeName === '包装'"
|
|
|
>
|
|
|
- <el-col :span="24" class="bg top"
|
|
|
- ><div class="title">{{ index + 1 }}0 包装</div></el-col
|
|
|
- >
|
|
|
+ <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> -->
|
|
|
<template v-for="(itm, idx) in item.list || []">
|
|
|
<el-col
|
|
|
@@ -228,7 +228,7 @@
|
|
|
:key="i + '-' + idx"
|
|
|
>
|
|
|
{{ t.label }}:{{
|
|
|
- (item.formatter && item.formatter(itm)) || itm[t.key]
|
|
|
+ (t.formatter && t.formatter(itm)) || itm[t.key]
|
|
|
}}
|
|
|
</el-col>
|
|
|
<el-col
|
|
|
@@ -246,14 +246,11 @@
|
|
|
>物料编号:{{ material.code }}
|
|
|
</el-col>
|
|
|
<el-col :span="4" class="border-dashed-right border-dashed-bottom"
|
|
|
- >数量:{{ material.number }}
|
|
|
+ >物料数量:{{ material.number }}
|
|
|
</el-col>
|
|
|
- <el-col :span="4" class="border-dashed-right border-dashed-bottom"
|
|
|
+ <el-col :span="8" 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)">
|
|
|
@@ -265,9 +262,9 @@
|
|
|
class="processes-data"
|
|
|
v-else-if="item.taskTypeName.includes('库')"
|
|
|
>
|
|
|
- <el-col :span="24" class="bg top"
|
|
|
- ><div class="title">{{ index + 1 }}0 预缴库</div></el-col
|
|
|
- >
|
|
|
+ <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> -->
|
|
|
<template v-for="(itm, idx) in item.list || []">
|
|
|
<el-col
|
|
|
@@ -277,7 +274,7 @@
|
|
|
:key="i + '-' + idx"
|
|
|
>
|
|
|
{{ t.label }}:{{
|
|
|
- (item.formatter && item.formatter(itm)) || itm[t.key]
|
|
|
+ (t.formatter && t.formatter(itm)) || itm[t.key]
|
|
|
}}
|
|
|
</el-col>
|
|
|
</template>
|
|
|
@@ -286,16 +283,16 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row class="processes-data" :key="index" v-else>
|
|
|
- <el-col :span="24" class="bg top"
|
|
|
- ><div class="title"
|
|
|
+ <el-col :span="24" class="bg top">
|
|
|
+ <div class="title"
|
|
|
>{{ index + 1 }}0
|
|
|
{{
|
|
|
item.taskTypeName === '深加工'
|
|
|
? '深加工(精磨)'
|
|
|
: item.taskTypeName
|
|
|
}}</div
|
|
|
- ></el-col
|
|
|
- >
|
|
|
+ >
|
|
|
+ </el-col>
|
|
|
<!-- <el-col :span="10" class="bg top">备注:</el-col> -->
|
|
|
<template v-for="(itm, idx) in item.list || []">
|
|
|
<el-col
|
|
|
@@ -305,7 +302,7 @@
|
|
|
:key="i + '-' + idx"
|
|
|
>
|
|
|
{{ t.label }}:{{
|
|
|
- (item.formatter && item.formatter(itm)) || itm[t.key]
|
|
|
+ (t.formatter && t.formatter(itm)) || itm[t.key]
|
|
|
}}
|
|
|
</el-col>
|
|
|
</template>
|
|
|
@@ -386,7 +383,10 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-right border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- return itm.workReportCategoryList[0]?.number;
|
|
|
+ return (
|
|
|
+ itm.workReportCategoryList[0]?.number ||
|
|
|
+ itm.workReportCategoryList[0]?.totalWeight
|
|
|
+ );
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -395,7 +395,7 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-right border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- return itm.productInfo?.standardNum;
|
|
|
+ return itm.productInfo?.standardNum + '';
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -404,7 +404,7 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- return itm.productInfo?.noStandardNum;
|
|
|
+ return itm.productInfo?.noStandardNum || '0';
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -414,7 +414,7 @@
|
|
|
span: 8,
|
|
|
class: 'border-dashed-right border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- const obj = itm.workReportDeviceList.find(
|
|
|
+ const obj = (itm.workReportDeviceList || []).find(
|
|
|
(i) => i.rootCategoryLevelId == 4
|
|
|
);
|
|
|
return obj?.code;
|
|
|
@@ -426,10 +426,10 @@
|
|
|
span: 8,
|
|
|
class: 'border-dashed-right border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- const obj = itm.workReportDeviceList.find(
|
|
|
+ const obj = (itm.workReportDeviceList || []).find(
|
|
|
(i) => i.rootCategoryLevelId == 5
|
|
|
);
|
|
|
- return obj?.code + '/' + obj?.model;
|
|
|
+ return obj && obj.code + '/' + obj.model;
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -438,7 +438,7 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-right border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- const obj = itm.workReportDeviceList.find(
|
|
|
+ const obj = (itm.workReportDeviceList || []).find(
|
|
|
(i) => i.rootCategoryLevelId == 8
|
|
|
);
|
|
|
return obj?.name;
|
|
|
@@ -450,10 +450,10 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- const obj = itm.workReportDeviceList.find(
|
|
|
+ const obj = (itm.workReportDeviceList || []).find(
|
|
|
(i) => i.rootCategoryLevelId == 8
|
|
|
);
|
|
|
- return obj?.extraField?.boatNum;
|
|
|
+ return obj?.extraField?.boatNum || '0';
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -463,7 +463,7 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-right border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- const obj = itm.workReportDeviceList.find(
|
|
|
+ const obj = (itm.workReportDeviceList || []).find(
|
|
|
(i) => i.rootCategoryLevelId == 5
|
|
|
);
|
|
|
return obj?.extraField?.stampingTimes;
|
|
|
@@ -510,7 +510,7 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-right border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- return itm.productInfo?.standardNum;
|
|
|
+ return itm.productInfo?.standardNum + '';
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -519,7 +519,7 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- return itm.productInfo?.noStandardNum;
|
|
|
+ return itm.productInfo?.noStandardNum || '0';
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -538,7 +538,7 @@
|
|
|
span: 8,
|
|
|
class: 'border-dashed-right ',
|
|
|
formatter(itm) {
|
|
|
- const obj = itm.workReportDeviceList.find(
|
|
|
+ const obj = (itm.workReportDeviceList || []).find(
|
|
|
(i) => i.rootCategoryLevelId == 8
|
|
|
);
|
|
|
return obj?.code;
|
|
|
@@ -571,7 +571,7 @@
|
|
|
span: 8,
|
|
|
class: 'border-dashed-right border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- const obj = itm.workReportDeviceList.find(
|
|
|
+ const obj = (itm.workReportDeviceList || []).find(
|
|
|
(i) => i.rootCategoryLevelId == 4
|
|
|
);
|
|
|
return obj?.extraField?.temperatureRamp;
|
|
|
@@ -589,7 +589,7 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-right border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- return itm.productInfo?.standardNum;
|
|
|
+ return itm.productInfo?.standardNum + '';
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -598,16 +598,16 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- return itm.productInfo?.noStandardNum;
|
|
|
+ return itm.productInfo?.noStandardNum || '0';
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
label: '设备号',
|
|
|
key: 'deviceCode',
|
|
|
- span: 4,
|
|
|
+ span: 8,
|
|
|
class: ' border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- const obj = itm.workReportDeviceList.find(
|
|
|
+ const obj = (itm.workReportDeviceList || []).find(
|
|
|
(i) => i.rootCategoryLevelId == 4
|
|
|
);
|
|
|
return obj?.code;
|
|
|
@@ -620,7 +620,7 @@
|
|
|
span: 8,
|
|
|
class: 'border-dashed-right',
|
|
|
formatter(itm) {
|
|
|
- const obj = itm.workReportDeviceList.find(
|
|
|
+ const obj = (itm.workReportDeviceList || []).find(
|
|
|
(i) => i.rootCategoryLevelId == 8
|
|
|
);
|
|
|
return obj?.code;
|
|
|
@@ -641,7 +641,7 @@
|
|
|
{
|
|
|
label: '备注',
|
|
|
key: 'remark',
|
|
|
- span: 4,
|
|
|
+ span: 8,
|
|
|
class: 'border-dashed-right'
|
|
|
}
|
|
|
],
|
|
|
@@ -659,7 +659,7 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-right border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- return itm.productInfo?.standardNum;
|
|
|
+ return itm.productInfo?.standardNum + '';
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -668,7 +668,7 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- return itm.productInfo?.noStandardNum;
|
|
|
+ return itm.productInfo?.noStandardNum || '0';
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -677,7 +677,7 @@
|
|
|
span: 8,
|
|
|
class: ' border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- const obj = itm.workReportDeviceList.find(
|
|
|
+ const obj = (itm.workReportDeviceList || []).find(
|
|
|
(i) => i.rootCategoryLevelId == 4
|
|
|
);
|
|
|
return obj?.code;
|
|
|
@@ -690,7 +690,7 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-right',
|
|
|
formatter(itm) {
|
|
|
- const obj = itm.workReportDeviceList.find(
|
|
|
+ const obj = (itm.workReportDeviceList || []).find(
|
|
|
(i) => i.rootCategoryLevelId == 8
|
|
|
);
|
|
|
return obj?.name;
|
|
|
@@ -702,10 +702,10 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-right',
|
|
|
formatter(itm) {
|
|
|
- const obj = itm.workReportDeviceList.find(
|
|
|
+ const obj = (itm.workReportDeviceList || []).find(
|
|
|
(i) => i.rootCategoryLevelId == 8
|
|
|
);
|
|
|
- return obj?.extraField?.boatNum;
|
|
|
+ return obj?.extraField?.boatNum || '0';
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -747,7 +747,7 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-right',
|
|
|
formatter(itm) {
|
|
|
- const obj = itm.workReportDeviceList.find(
|
|
|
+ const obj = (itm.workReportDeviceList || []).find(
|
|
|
(i) => i.rootCategoryLevelId == 4
|
|
|
);
|
|
|
return obj?.code;
|
|
|
@@ -762,15 +762,15 @@
|
|
|
{
|
|
|
label: '日期',
|
|
|
key: 'executeTime',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '备注',
|
|
|
- key: 'remark',
|
|
|
- span: 4,
|
|
|
+ span: 8,
|
|
|
class: 'border-dashed-right'
|
|
|
}
|
|
|
+ // {
|
|
|
+ // label: '备注',
|
|
|
+ // key: 'remark',
|
|
|
+ // span: 4,
|
|
|
+ // class: 'border-dashed-right'
|
|
|
+ // }
|
|
|
],
|
|
|
// 烧结
|
|
|
sinter: [
|
|
|
@@ -786,7 +786,7 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-right border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- return itm.productInfo?.standardNum;
|
|
|
+ return itm.productInfo?.standardNum + '';
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -795,7 +795,7 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-bottom border-dashed-right',
|
|
|
formatter(itm) {
|
|
|
- return itm.productInfo?.noStandardNum;
|
|
|
+ return itm.productInfo?.noStandardNum || '0';
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -804,7 +804,7 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-right border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- const obj = itm.workReportDeviceList.find(
|
|
|
+ const obj = (itm.workReportDeviceList || []).find(
|
|
|
(i) => i.rootCategoryLevelId == 4
|
|
|
);
|
|
|
return obj?.code;
|
|
|
@@ -978,7 +978,7 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-right border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- return itm.productInfo?.standardNum;
|
|
|
+ return itm.productInfo?.standardNum + '';
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -987,7 +987,7 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- return itm.productInfo?.noStandardNum;
|
|
|
+ return itm.productInfo?.noStandardNum || '0';
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -996,7 +996,7 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-right',
|
|
|
formatter(itm) {
|
|
|
- const obj = itm.workReportDeviceList.find(
|
|
|
+ const obj = (itm.workReportDeviceList || []).find(
|
|
|
(i) => i.rootCategoryLevelId == 4
|
|
|
);
|
|
|
return obj?.code;
|
|
|
@@ -1026,7 +1026,7 @@
|
|
|
{
|
|
|
label: '包装要求',
|
|
|
key: 'xxx',
|
|
|
- span: 4,
|
|
|
+ span: 8,
|
|
|
class: 'border-dashed-right border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
return itm?.packInfo?.packDemand;
|
|
|
@@ -1056,7 +1056,7 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-right border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- return `PCS/${itm.packInfo.packUnit}`;
|
|
|
+ return `${itm.packInfo.minPackNum}PCS/${itm.packInfo.packUnit}`;
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -1095,15 +1095,15 @@
|
|
|
{
|
|
|
label: '日期',
|
|
|
key: 'executeTime',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '备注',
|
|
|
- key: 'remark',
|
|
|
span: 12,
|
|
|
class: 'border-dashed-right'
|
|
|
}
|
|
|
+ // {
|
|
|
+ // label: '备注',
|
|
|
+ // key: 'remark',
|
|
|
+ // span: 12,
|
|
|
+ // class: 'border-dashed-right'
|
|
|
+ // }
|
|
|
],
|
|
|
// 预缴库
|
|
|
preStorage: [
|
|
|
@@ -1113,7 +1113,7 @@
|
|
|
span: 4,
|
|
|
class: 'border-dashed-right border-dashed-bottom',
|
|
|
formatter(itm) {
|
|
|
- const obj = itm.workReportDeviceList.find(
|
|
|
+ const obj = (itm.workReportDeviceList || []).find(
|
|
|
(i) => i.rootCategoryLevelId == 9
|
|
|
);
|
|
|
return obj?.number;
|
|
|
@@ -1122,18 +1122,12 @@
|
|
|
{
|
|
|
label: '员工号',
|
|
|
key: 'executorJobNum',
|
|
|
- span: 4,
|
|
|
+ span: 8,
|
|
|
class: 'border-dashed-right'
|
|
|
},
|
|
|
{
|
|
|
label: '日期',
|
|
|
key: 'executeTime',
|
|
|
- span: 4,
|
|
|
- class: 'border-dashed-right'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '备注',
|
|
|
- key: 'remark',
|
|
|
span: 12,
|
|
|
class: 'border-dashed-right'
|
|
|
}
|
|
|
@@ -1153,8 +1147,7 @@
|
|
|
printWorkOrderInfo(this.workOrderId).then((res) => {
|
|
|
for (const t of res.taskInfo) {
|
|
|
for (const p of this.processList) {
|
|
|
- if (t.taskName === p.taskTypeName) {
|
|
|
- console.log(t.taskName, p.taskTypeName);
|
|
|
+ if (t.taskName === p.taskTypeName && t.taskCode === p.taskCode) {
|
|
|
p.list.push(t);
|
|
|
}
|
|
|
}
|
|
|
@@ -1168,6 +1161,7 @@
|
|
|
handlePrint() {
|
|
|
this.PrintLoading = true;
|
|
|
const page = this.$refs.pagesRef;
|
|
|
+
|
|
|
const pHeight = page.offsetHeight;
|
|
|
const pWidth = page.offsetWidth;
|
|
|
|
|
|
@@ -1202,9 +1196,11 @@
|
|
|
<style scoped lang="scss">
|
|
|
$heihgt: 36px;
|
|
|
$border: 1px solid #ddd;
|
|
|
+
|
|
|
* {
|
|
|
box-sizing: border-box !important;
|
|
|
}
|
|
|
+
|
|
|
.bg {
|
|
|
background-color: #f1f1f1;
|
|
|
line-height: $heihgt - 2px;
|
|
|
@@ -1214,9 +1210,11 @@
|
|
|
.border-dashed-right {
|
|
|
border-right: $border;
|
|
|
}
|
|
|
+
|
|
|
.border-dashed-bottom {
|
|
|
border-bottom: $border;
|
|
|
}
|
|
|
+
|
|
|
.main-data {
|
|
|
.bg {
|
|
|
text-align: center;
|
|
|
@@ -1231,12 +1229,15 @@
|
|
|
border-bottom: $border;
|
|
|
padding-left: 10px;
|
|
|
}
|
|
|
+
|
|
|
.code {
|
|
|
line-height: 2 * $heihgt;
|
|
|
height: 2 * $heihgt;
|
|
|
border-right: $border;
|
|
|
border-bottom: $border;
|
|
|
text-align: center;
|
|
|
+ color: rgba(0, 0, 0, 0.3);
|
|
|
+ font-size: 18px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1252,11 +1253,13 @@
|
|
|
color: #000;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
+
|
|
|
:deep(.el-col) {
|
|
|
line-height: $heihgt - 2px;
|
|
|
height: $heihgt;
|
|
|
padding-left: 10px;
|
|
|
}
|
|
|
+
|
|
|
.top {
|
|
|
border-top: $border;
|
|
|
border-bottom: $border;
|