|
|
@@ -323,13 +323,18 @@
|
|
|
></semiProductJobBom>
|
|
|
</div> -->
|
|
|
|
|
|
- <div
|
|
|
+ <packingTgBom
|
|
|
v-if="
|
|
|
- item &&
|
|
|
- item.currentTaskDiagram.type == 4 &&
|
|
|
- clientEnvironmentId != 3
|
|
|
+ item.semiProductList &&
|
|
|
+ item.semiProductList.length != 0 &&
|
|
|
+ taskObj.type == 4 &&
|
|
|
+ clientEnvironmentId == 3
|
|
|
"
|
|
|
- >
|
|
|
+ :list="item.semiProductList"
|
|
|
+ :item="item"
|
|
|
+ ></packingTgBom>
|
|
|
+
|
|
|
+ <div v-if="item && item.currentTaskDiagram.type == 4">
|
|
|
<!-- <packagingGrouping
|
|
|
ref="packagingGroupingRef"
|
|
|
:objData="item"
|
|
|
@@ -368,12 +373,12 @@
|
|
|
|
|
|
<!-- <packingTgBom
|
|
|
v-if="
|
|
|
- item.pickOutInList &&
|
|
|
- item.pickOutInList.length != 0 &&
|
|
|
+ item.semiProductList &&
|
|
|
+ item.semiProductList.length != 0 &&
|
|
|
taskObj.type == 4 &&
|
|
|
clientEnvironmentId == 3
|
|
|
"
|
|
|
- :list="item.pickOutInList"
|
|
|
+ :list="item.semiProductList"
|
|
|
:item="item"
|
|
|
></packingTgBom> -->
|
|
|
<semiProductJobBom
|
|
|
@@ -437,7 +442,7 @@
|
|
|
import turnoverBom from './components/turnoverBom.vue';
|
|
|
import aridRegion from '../feeding/components/aridRegion.vue';
|
|
|
import packingBom from './components/packingBom.vue';
|
|
|
- import packingTgBom from './components/packingTgBom';
|
|
|
+ import packingTgBom from './components/packingTgBom.vue';
|
|
|
import { timestampToDateTime } from '@/utils/index.js';
|
|
|
import { parameterGetByCode } from '@/api/system/dictionary-data';
|
|
|
import { getTeam } from '@/api/produce/job.js';
|
|
|
@@ -716,10 +721,37 @@
|
|
|
this.taskObj.type != 6
|
|
|
) {
|
|
|
obj.semiProductList.map((a) => {
|
|
|
+ let feedQuantity = 0;
|
|
|
+ let reportWeight = 0;
|
|
|
+ let unFeedQuantity = 0;
|
|
|
+ let unReportWeight = 0;
|
|
|
+ if (
|
|
|
+ a.extInfo &&
|
|
|
+ a.extInfo.batchReportInfo &&
|
|
|
+ a.extInfo.batchReportInfo.length != 0
|
|
|
+ ) {
|
|
|
+ a.extInfo.batchReportInfo.forEach((it) => {
|
|
|
+ console.log(it, '1111111111');
|
|
|
+ feedQuantity += Number(it.allFeedQuantity);
|
|
|
+ reportWeight += Number(it.allReportWeight);
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ if (
|
|
|
+ a.extInfo &&
|
|
|
+ a.extInfo.notBatchReportInfo &&
|
|
|
+ a.extInfo.notBatchReportInfo.length != 0
|
|
|
+ ) {
|
|
|
+ a.extInfo.notBatchReportInfo.forEach((it) => {
|
|
|
+ unFeedQuantity += Number(it.allFeedQuantity);
|
|
|
+ unReportWeight += Number(it.allReportWeight);
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
a.extInfo.batchReportInfo = [
|
|
|
{
|
|
|
- allFeedQuantity: '',
|
|
|
- allReportWeight: '',
|
|
|
+ allFeedQuantity: feedQuantity,
|
|
|
+ allReportWeight: reportWeight,
|
|
|
taskId: '',
|
|
|
taskName: ''
|
|
|
}
|
|
|
@@ -727,7 +759,8 @@
|
|
|
|
|
|
a.extInfo.notBatchReportInfo = [
|
|
|
{
|
|
|
- allFeedQuantity: '',
|
|
|
+ allFeedQuantity: unFeedQuantity,
|
|
|
+ allReportWeight: unReportWeight,
|
|
|
notType: '',
|
|
|
taskId: '',
|
|
|
taskName: '',
|
|
|
@@ -827,12 +860,6 @@
|
|
|
obj.workReportInfo.notFormedNum = notFormedNum;
|
|
|
}
|
|
|
|
|
|
- // if(this.clientEnvironmentId == 3) {
|
|
|
- // if(obj.semiProductList && obj.semiProductList.length != 0) {
|
|
|
-
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
obj.workReportInfo.formingNum = obj.formingNum;
|
|
|
obj.workReportInfo.formingWeight = obj.formingWeight;
|
|
|
obj.workReportInfo.unit = obj.unit;
|
|
|
@@ -862,6 +889,16 @@
|
|
|
...obj
|
|
|
};
|
|
|
});
|
|
|
+ if (this.clientEnvironmentId == 3) {
|
|
|
+ this.List.forEach((item, index) => {
|
|
|
+ if (
|
|
|
+ item.semiProductList.length != 0 &&
|
|
|
+ item.singleReport == 0
|
|
|
+ ) {
|
|
|
+ this.countNumPl(item.semiProductList, index);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
})
|
|
|
.finally(() => {
|
|
|
this.isLoad = true;
|
|
|
@@ -967,7 +1004,7 @@
|
|
|
});
|
|
|
|
|
|
this.List = this.List.map((item) => {
|
|
|
- item.executorList = executorList;
|
|
|
+ item.workReportInfo.executorList = executorList;
|
|
|
return item;
|
|
|
});
|
|
|
|
|
|
@@ -1174,7 +1211,7 @@
|
|
|
}
|
|
|
|
|
|
console.log(this.item, '9999999999');
|
|
|
- if (this.taskObj.type == 4 && this.clientEnvironmentId != 3) {
|
|
|
+ if (this.taskObj.type == 4) {
|
|
|
this.checkPack();
|
|
|
|
|
|
// if (!isPack) {
|