|
@@ -36,7 +36,7 @@
|
|
|
</view>
|
|
|
<view class="item-info uni-row">
|
|
|
<text class="label">结束时间</text>
|
|
|
- <text class="label right">{{ item['endTime'] ? item['endTime'] : '-'}}</text>
|
|
|
+ <text class="label right">{{ item['endTime'] ? item['endTime'] : '-' }}</text>
|
|
|
</view>
|
|
|
<view class="item-info uni-row">
|
|
|
<text class="label">废品数</text>
|
|
@@ -45,7 +45,7 @@
|
|
|
<view class="item-info uni-row">
|
|
|
<text class="label">投入数</text>
|
|
|
<text
|
|
|
- class="label right">{{store.dayworkInfo['processQualifiedNum'] == 0 ? store.dayworkInfo['oneLotQuantity'] : store.dayworkInfo['processQualifiedNum']}}</text>
|
|
|
+ class="label right">{{store.dayworkInfo['processQualifiedNum'] == 0 ? store.dayworkInfo['isLast'] == 1 ? store.dayworkInfo['lastLotQuantity'] : store.dayworkInfo['oneLotQuantity'] : store.dayworkInfo['processQualifiedNum']}}</text>
|
|
|
</view>
|
|
|
<view class="item-info uni-row">
|
|
|
<text class="label">设备</text>
|
|
@@ -142,7 +142,7 @@
|
|
|
})
|
|
|
|
|
|
function init() {
|
|
|
- console.log(store.dayworkInfo.processSequence)
|
|
|
+ console.log(store.dayworkInfo)
|
|
|
userInfo.value = store.userInfo;
|
|
|
uni.showLoading({
|
|
|
title: '加载中'
|
|
@@ -172,7 +172,7 @@
|
|
|
}
|
|
|
})
|
|
|
|
|
|
- getEquipmentByUidAndDid(store.planDetails.id,store.curDeptDetails.deptId).then(equipmentRes => {
|
|
|
+ getEquipmentByUidAndDid(store.planDetails.id, store.curDeptDetails.deptId).then(equipmentRes => {
|
|
|
if (equipmentRes.code == 200) {
|
|
|
hasEquipment.value = equipmentRes.rows.length > 0 ? true : false;
|
|
|
}
|
|
@@ -320,8 +320,9 @@
|
|
|
productionPlanId: curPlan.value.productionPlanId,
|
|
|
productionPlanDetailId: curPlan.value.id,
|
|
|
technologicalProcessId: curPlan.value.technologicalProcessId,
|
|
|
- prodNum: store.dayworkInfo['processQualifiedNum'] == 0 ? store.dayworkInfo['oneLotQuantity'] : store
|
|
|
- .dayworkInfo['processQualifiedNum'],
|
|
|
+ prodNum: store.dayworkInfo['processQualifiedNum'] == 0 ?
|
|
|
+ store.dayworkInfo['isLast'] == 1 ? store.dayworkInfo['lastLotQuantity'] : store.dayworkInfo[
|
|
|
+ 'oneLotQuantity'] : store.dayworkInfo['processQualifiedNum'],
|
|
|
deptId: store.curDeptDetails.deptId,
|
|
|
deptName: store.curDeptDetails.deptName
|
|
|
}
|
|
@@ -333,8 +334,9 @@
|
|
|
productionPlanId: curPlan.value.productionPlanId,
|
|
|
productionPlanDetailId: curPlan.value.id,
|
|
|
technologicalProcessId: curPlan.value.technologicalProcessId,
|
|
|
- prodNum: store.dayworkInfo['processQualifiedNum'] == 0 ? store.dayworkInfo['oneLotQuantity'] : store
|
|
|
- .dayworkInfo['processQualifiedNum'],
|
|
|
+ prodNum: store.dayworkInfo['processQualifiedNum'] == 0 ?
|
|
|
+ store.dayworkInfo['isLast'] == 1 ? store.dayworkInfo['lastLotQuantity'] : store.dayworkInfo[
|
|
|
+ 'oneLotQuantity'] : store.dayworkInfo['processQualifiedNum'],
|
|
|
status: 1,
|
|
|
startTime: timestampToTime(new Date()),
|
|
|
deptId: store.curDeptDetails.deptId,
|