|
@@ -22,8 +22,8 @@
|
|
|
v-if="Object.prototype.hasOwnProperty.call(it, 'extInfo') && Object.prototype.hasOwnProperty.call(it.extInfo, 'productionTimes') && Object.prototype.hasOwnProperty.call(it.extInfo.productionTimes,item.currentTaskDiagram.taskId) ">
|
|
v-if="Object.prototype.hasOwnProperty.call(it, 'extInfo') && Object.prototype.hasOwnProperty.call(it.extInfo, 'productionTimes') && Object.prototype.hasOwnProperty.call(it.extInfo.productionTimes,item.currentTaskDiagram.taskId) ">
|
|
|
{{ it.extInfo.productionTimes[item.currentTaskDiagram.taskId]}}
|
|
{{ it.extInfo.productionTimes[item.currentTaskDiagram.taskId]}}
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -79,7 +79,6 @@
|
|
|
<view class="content content_num ">
|
|
<view class="content content_num ">
|
|
|
<view v-if='isDetails'>{{it.extInfo.engrave }}</view>
|
|
<view v-if='isDetails'>{{it.extInfo.engrave }}</view>
|
|
|
<input class="uni-input" v-else v-model="it.extInfo.engrave"></input>
|
|
<input class="uni-input" v-else v-model="it.extInfo.engrave"></input>
|
|
|
-
|
|
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -105,9 +104,12 @@
|
|
|
|
|
|
|
|
<view class="rx ww50">
|
|
<view class="rx ww50">
|
|
|
<view class="lable lable150 rx-cc ">炉次号</view>
|
|
<view class="lable lable150 rx-cc ">炉次号</view>
|
|
|
- <view class="content ">
|
|
|
|
|
- <view>{{it.extInfo.heatNumber }}</view>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <view class="content content_num ">
|
|
|
|
|
+ <view v-if='isDetails'>{{it.extInfo.heatNumber }}</view>
|
|
|
|
|
+ <input class="uni-input" v-else v-model="it.extInfo.heatNumber"></input>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -120,7 +122,8 @@
|
|
|
|
|
|
|
|
<view class="content_table2">
|
|
<view class="content_table2">
|
|
|
<view class="head row rx-sc">
|
|
<view class="head row rx-sc">
|
|
|
- <view class="item ww25" style="font-size: 20rpx;">{{it.extInfo.newWeight ? '上道工序重量' : '物料重量' }} {{it.extInfo.weightUnit}}
|
|
|
|
|
|
|
+ <view class="item ww25" style="font-size: 20rpx;">{{it.extInfo.newWeight ? '上道工序重量' : '物料重量' }}
|
|
|
|
|
+ {{it.extInfo.weightUnit}}
|
|
|
</view>
|
|
</view>
|
|
|
<view class="item ww25">报工重量{{it.extInfo.weightUnit}}</view>
|
|
<view class="item ww25">报工重量{{it.extInfo.weightUnit}}</view>
|
|
|
<view class="item ww25" v-if="isFirstTask == 1">质检结果
|
|
<view class="item ww25" v-if="isFirstTask == 1">质检结果
|
|
@@ -297,7 +300,12 @@
|
|
|
type: Boolean,
|
|
type: Boolean,
|
|
|
default: false
|
|
default: false
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ equipmentList: {
|
|
|
|
|
+ type: Array,
|
|
|
|
|
+ default: () => []
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -305,7 +313,16 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
watch: {
|
|
watch: {
|
|
|
|
|
+ equipmentList: {
|
|
|
|
|
+ immediate: true,
|
|
|
|
|
+ deep: true,
|
|
|
|
|
+ handler(newVal) {
|
|
|
|
|
+ this.deviceList = newVal
|
|
|
|
|
+ this.changeHeatNumber()
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
@@ -334,6 +351,8 @@
|
|
|
resultObj: {},
|
|
resultObj: {},
|
|
|
resultIdx: 0,
|
|
resultIdx: 0,
|
|
|
|
|
|
|
|
|
|
+ deviceList: []
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -512,13 +531,14 @@
|
|
|
this.setDataSave()
|
|
this.setDataSave()
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
- console.log(88,this.reportWeight)
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
for (let i = 1; i < this.paramList.length; i++) {
|
|
for (let i = 1; i < this.paramList.length; i++) {
|
|
|
console.log(i)
|
|
console.log(i)
|
|
|
- console.log(11,Number(this.paramList[i-1].CVIWeight), Number(this.reportWeight))
|
|
|
|
|
- if (Number(this.paramList[i-1].CVIWeight) < Number(this.reportWeight) && Number(this.reportWeight) < Number(this.paramList[i].CVIWeight)) {
|
|
|
|
|
|
|
+ console.log(11, Number(this.paramList[i - 1].CVIWeight), Number(this.reportWeight))
|
|
|
|
|
+ if (Number(this.paramList[i - 1].CVIWeight) < Number(this.reportWeight) && Number(this
|
|
|
|
|
+ .reportWeight) < Number(this.paramList[i].CVIWeight)) {
|
|
|
this.resultObj = this.paramList[i]
|
|
this.resultObj = this.paramList[i]
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
@@ -544,6 +564,20 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ changeHeatNumber() {
|
|
|
|
|
+ this.deviceList.forEach(f => {
|
|
|
|
|
+ this.list.forEach(o => {
|
|
|
|
|
+ if (o.deviceId && f.id == o.deviceId && this.deviceList.length > 1) {
|
|
|
|
|
+ o.extInfo.heatNumber = f.extInfo.heatNumber
|
|
|
|
|
+ } else if (this.deviceList.length == 1) {
|
|
|
|
|
+ o.extInfo.heatNumber = this.deviceList[0].extInfo.heatNumber
|
|
|
|
|
+ this.$forceUpdate()
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|