|
@@ -1,12 +1,12 @@
|
|
|
<template>
|
|
|
<view class="uni-column" style="padding: 24rpx;">
|
|
|
- <view v-for="(item, index) in listData" :key="index" class="list-item">
|
|
|
+ <view v-for="(item, index) in listData" :key="index" @click="handleToBatchReporting" class="list-item">
|
|
|
<view class="title-container uni-row">
|
|
|
<view class="title uni-row">
|
|
|
<text class="label">生产计划单号</text>
|
|
|
<text class="label code">{{ item['productionPlanNo'] }}</text>
|
|
|
</view>
|
|
|
- <view v-if="item['status']" class="tag"><text class="label">进行中</text></view>
|
|
|
+ <view v-if="item['dayWorkList'].length > 0" class="tag"><text class="label">进行中</text></view>
|
|
|
<view v-else type="default" class="tag not-start"><text class="label">未开始</text></view>
|
|
|
</view>
|
|
|
<!-- <view class="item-info uni-row">
|
|
@@ -19,7 +19,7 @@
|
|
|
</view>
|
|
|
<view class="item-info uni-row">
|
|
|
<text class="label">总批数</text>
|
|
|
- <text class="label right">{{ item['batchNumber'] }}</text>
|
|
|
+ <text class="label right">{{ item['lotNumber'] }}</text>
|
|
|
</view>
|
|
|
<view class="item-info uni-row">
|
|
|
<text class="label">完成批数</text>
|
|
@@ -27,11 +27,11 @@
|
|
|
</view>
|
|
|
<view class="item-info uni-row">
|
|
|
<text class="label">投产数/合格数</text>
|
|
|
- <text class="label right">{{ item['qualifiedQuantity'] }}/{{item['invest']}}</text>
|
|
|
+ <text class="label right">{{ item['productionQuantity'] }}/{{item['invest']}}</text>
|
|
|
</view>
|
|
|
<view class="item-info uni-row">
|
|
|
<text class="label">设备</text>
|
|
|
- <text class="label right">{{ item['equiment']}}</text>
|
|
|
+ <text class="label right">{{ item['equipmentName']}}</text>
|
|
|
</view>
|
|
|
<!-- <view class="item-info uni-row">
|
|
|
<text class="label">操作人</text>
|
|
@@ -56,13 +56,14 @@
|
|
|
|
|
|
|
|
|
const listData = ref([])
|
|
|
+
|
|
|
onLoad(() => {
|
|
|
init();
|
|
|
})
|
|
|
|
|
|
function init(){
|
|
|
getSubPlanDetailsList({}).then(res => {
|
|
|
- console.log(res)
|
|
|
+ console.log(res.rows)
|
|
|
listData.value = res.rows;
|
|
|
})
|
|
|
|
|
@@ -82,6 +83,12 @@
|
|
|
// })
|
|
|
}
|
|
|
|
|
|
+ function handleToBatchReporting(){
|
|
|
+ uni.navigateTo({
|
|
|
+ url:"/pages/batchReporting/index"
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|