|
@@ -51,11 +51,11 @@
|
|
|
<oneJobQualityBom
|
|
<oneJobQualityBom
|
|
|
v-if='objData.semiProductList && objData.semiProductList.length != 0 && taskType == 6 && clientEnvironmentId == 3 && objData.singleReport == 1'
|
|
v-if='objData.semiProductList && objData.semiProductList.length != 0 && taskType == 6 && clientEnvironmentId == 3 && objData.singleReport == 1'
|
|
|
:item='objData' :list='objData.semiProductList'></oneJobQualityBom>
|
|
:item='objData' :list='objData.semiProductList'></oneJobQualityBom>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<oneJobQualityBomPL
|
|
<oneJobQualityBomPL
|
|
|
v-if='objData.semiProductList && objData.semiProductList.length != 0 && taskType == 6 && clientEnvironmentId == 3 && objData.singleReport == 0'
|
|
v-if='objData.semiProductList && objData.semiProductList.length != 0 && taskType == 6 && clientEnvironmentId == 3 && objData.singleReport == 0'
|
|
|
:item='objData' :list='objData.semiProductList'></oneJobQualityBomPL>
|
|
:item='objData' :list='objData.semiProductList'></oneJobQualityBomPL>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
<byProductBom v-if='objData.productRecycleList.length != 0' :list='objData.productRecycleList'
|
|
<byProductBom v-if='objData.productRecycleList.length != 0' :list='objData.productRecycleList'
|
|
|
@penalize='penalize'>
|
|
@penalize='penalize'>
|
|
@@ -74,7 +74,7 @@
|
|
|
|
|
|
|
|
<packingTgBom
|
|
<packingTgBom
|
|
|
v-if='objData.pickOutInList && objData.pickOutInList.length != 0 && taskType == 4 && clientEnvironmentId == 3'
|
|
v-if='objData.pickOutInList && objData.pickOutInList.length != 0 && taskType == 4 && clientEnvironmentId == 3'
|
|
|
- :list='objData.pickOutInList' :item='objData' ></packingTgBom>
|
|
|
|
|
|
|
+ :list='objData.pickOutInList' :item='objData'></packingTgBom>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -216,7 +216,7 @@
|
|
|
|
|
|
|
|
import oneJobQualityBom from '../components/oneJobQualityBom.vue'
|
|
import oneJobQualityBom from '../components/oneJobQualityBom.vue'
|
|
|
import oneJobQualityBomPL from '../components/oneJobQualityBomPL.vue'
|
|
import oneJobQualityBomPL from '../components/oneJobQualityBomPL.vue'
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -462,7 +462,7 @@
|
|
|
getByIdReport(this.id, this.taskId).then(res => {
|
|
getByIdReport(this.id, this.taskId).then(res => {
|
|
|
|
|
|
|
|
this.objData = res
|
|
this.objData = res
|
|
|
- console.log(22,res)
|
|
|
|
|
|
|
+ console.log(22, res)
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!this.objData.hasOwnProperty('turnover')) {
|
|
if (!this.objData.hasOwnProperty('turnover')) {
|
|
@@ -522,13 +522,18 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
- if (this.clientEnvironmentId == 3 && this.objData.singleReport == 0 && this.taskType != 6 ) {
|
|
|
|
|
- this.objData.semiProductList.map(a => {
|
|
|
|
|
- a.extInfo.batchReportInfo = [ { allFeedQuantity: '', allReportWeight: '', taskId: '', taskName: '' }]
|
|
|
|
|
- return {
|
|
|
|
|
- a
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ if (this.clientEnvironmentId == 3 && this.objData.singleReport == 0 && this.taskType != 6) {
|
|
|
|
|
+ this.objData.semiProductList.map(a => {
|
|
|
|
|
+ a.extInfo.batchReportInfo = [{
|
|
|
|
|
+ allFeedQuantity: '',
|
|
|
|
|
+ allReportWeight: '',
|
|
|
|
|
+ taskId: '',
|
|
|
|
|
+ taskName: ''
|
|
|
|
|
+ }]
|
|
|
|
|
+ return {
|
|
|
|
|
+ a
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
this.objData.semiProductList = this.objData.semiProductList
|
|
this.objData.semiProductList = this.objData.semiProductList
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -650,7 +655,7 @@
|
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
|
title: '加载中'
|
|
title: '加载中'
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
console.log(this.objData)
|
|
console.log(this.objData)
|
|
|
|
|
|
|
|
if (!this.objData.workReportInfo['formedNum'] && this.objData.workReportInfo['formedNum'] != 0) {
|
|
if (!this.objData.workReportInfo['formedNum'] && this.objData.workReportInfo['formedNum'] != 0) {
|
|
@@ -668,7 +673,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
// 预制体
|
|
// 预制体
|
|
|
- if (this.objData.semiProductList.length > 0 && this.taskType != 4 && this.objData.singleReport == 1 && type == 2) {
|
|
|
|
|
|
|
+ if (this.objData.semiProductList.length > 0 && this.taskType != 4 && this.objData.singleReport == 1 &&
|
|
|
|
|
+ type == 2) {
|
|
|
let bol
|
|
let bol
|
|
|
let _i
|
|
let _i
|
|
|
bol = this.objData.semiProductList.every((e, i) => {
|
|
bol = this.objData.semiProductList.every((e, i) => {
|
|
@@ -692,11 +698,9 @@
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- // if(this.objData.singleReport == 0 && type == 2) {
|
|
|
|
|
-
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -725,7 +729,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- if (this.objData.currentTaskDiagram.isFirstTask == 0 ) { // isFirstTask 1是 判断是否首工序
|
|
|
|
|
|
|
+ if (this.objData.currentTaskDiagram.isFirstTask == 0) { // isFirstTask 1是 判断是否首工序
|
|
|
|
|
|
|
|
const isFirstTask = await this.checkFirstTask()
|
|
const isFirstTask = await this.checkFirstTask()
|
|
|
if (!isFirstTask) {
|
|
if (!isFirstTask) {
|
|
@@ -744,7 +748,9 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ if (this.clientEnvironmentId == 3 && type == 2 && this.taskType == 6 && this.objData.singleReport ==0) {
|
|
|
|
|
+ this.objData.semiProductList = []
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
jobSave(this.objData).then(res => {
|
|
jobSave(this.objData).then(res => {
|
|
@@ -937,7 +943,7 @@
|
|
|
this.objData['turnover'] = res.extInfo.turnover
|
|
this.objData['turnover'] = res.extInfo.turnover
|
|
|
this.objData['productRecycleList'] = res.extInfo.productRecycleList
|
|
this.objData['productRecycleList'] = res.extInfo.productRecycleList
|
|
|
this.objData['semiProductList'] = res.extInfo.semiProductList
|
|
this.objData['semiProductList'] = res.extInfo.semiProductList
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
this.objData['modelList'] = res.extInfo.modelList
|
|
this.objData['modelList'] = res.extInfo.modelList
|
|
|
|
|
|
|
|
|
|
|