|
@@ -1,324 +1,329 @@
|
|
|
<template>
|
|
|
<view style="height: 100%;">
|
|
|
- <view class="tab-container">
|
|
|
- <view :class="['tab-item', isActiveId === 1 ? 'active': '']" @click="handleClickTab(1)">批次信息</view>
|
|
|
- <view :class="['tab-item', isActiveId === 2 ? 'active': '']" @click="handleClickTab(2)">领料信息</view>
|
|
|
- <view :class="['tab-item', isActiveId === 3 ? 'active': '']" @click="handleClickTab(3)">历史报工</view>
|
|
|
- <view :class="['tab-item', isActiveId === 4 ? 'active': '']" @click="handleClickTab(4)">检查信息</view>
|
|
|
- <view :class="['tab-item', isActiveId === 5 ? 'active': '']" @click="handleClickTab(5)">分选信息</view>
|
|
|
- </view>
|
|
|
- <scroll-view class="scroll-container" scroll-y scroll-with-animation :scroll-into-view="scrollToId"
|
|
|
- :scroll-top="scrollTop" @scrolltoupper="handleScrollToUpper" @scrolltolower="handleScrollToLower"
|
|
|
- @scroll="handleScroll">
|
|
|
- <!-- 批次信息 -->
|
|
|
- <view id="item1" class="scroll-item">
|
|
|
- <view> <text style="font-size: 32rpx;display: flex;justify-content: center;">批次信息</text>
|
|
|
- </view>
|
|
|
- <view v-if="lotData==null" class="no-date">
|
|
|
- <text>暂无数据</text>
|
|
|
- </view>
|
|
|
- <view v-else>
|
|
|
- <view class="item-info uni-row" style="margin-top: 16rpx;"> <text class="label">批次号:</text>
|
|
|
- <text class="label right" style="font-size: 30rpx;color: black;">{{ lotData['lotCode'] }}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row"> <text class="label">产品描述:</text>
|
|
|
- <text class="label right ">{{ lotData['productDescription'] }}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">箱号:</text>
|
|
|
- <text class="label right">{{ lotData['carrierName']}}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">投产量:</text>
|
|
|
- <text
|
|
|
- class="label right">{{ lotData['prevProcess'] ? lotData['processQualifiedNum'] : lotData['productionQuantity']}}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">合格数量:</text>
|
|
|
- <text class="label right">{{ lotData['totalQuantityNum']}}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">上道工序:</text>
|
|
|
- <text
|
|
|
- class="label right">{{ lotData.prevProcess && lotData['prevProcess'] != "" ? lotData['prevProcess'].processAlias : '-'}}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">当前工序:</text>
|
|
|
- <view class="label right uni-row">
|
|
|
+ <view class="tab-container">
|
|
|
+ <view :class="['tab-item', isActiveId === 1 ? 'active': '']" @click="handleClickTab(1)">批次信息</view>
|
|
|
+ <view :class="['tab-item', isActiveId === 2 ? 'active': '']" @click="handleClickTab(2)">领料信息</view>
|
|
|
+ <view :class="['tab-item', isActiveId === 3 ? 'active': '']" @click="handleClickTab(3)">历史报工</view>
|
|
|
+ <view :class="['tab-item', isActiveId === 4 ? 'active': '']" @click="handleClickTab(4)">检查信息</view>
|
|
|
+ <view :class="['tab-item', isActiveId === 5 ? 'active': '']" @click="handleClickTab(5)">分选信息</view>
|
|
|
+ </view>
|
|
|
+ <scroll-view class="scroll-container" scroll-y scroll-with-animation :scroll-into-view="scrollToId"
|
|
|
+ :scroll-top="scrollTop" @scrolltoupper="handleScrollToUpper" @scrolltolower="handleScrollToLower"
|
|
|
+ @scroll="handleScroll">
|
|
|
+ <!-- 批次信息 -->
|
|
|
+ <view id="item1" class="scroll-item">
|
|
|
+ <view> <text style="font-size: 32rpx;display: flex;justify-content: center;">批次信息</text>
|
|
|
+ </view>
|
|
|
+ <view v-if="lotData==null" class="no-date">
|
|
|
+ <text>暂无数据</text>
|
|
|
+ </view>
|
|
|
+ <view v-else>
|
|
|
+ <view class="item-info uni-row" style="margin-top: 16rpx;"> <text class="label">批次号:</text>
|
|
|
+ <text class="label right" style="font-size: 30rpx;color: black;">{{ lotData['lotCode'] }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row"> <text class="label">产品描述:</text>
|
|
|
+ <text class="label right ">{{ lotData['productDescription'] }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">箱号:</text>
|
|
|
+ <text class="label right">{{ lotData['carrierName']}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">投产量:</text>
|
|
|
<text
|
|
|
- class="label right">{{ lotData.currentProcess && lotData['currentProcess'] != "" ? lotData['currentProcess'].processAlias : '-'}}</text>
|
|
|
- (<view style="color: #1684fc;" @click.stop="handleClickProcessList(lotData)"> 工艺列表
|
|
|
- </view>)
|
|
|
+ class="label right">{{ lotData['prevProcess'] ? lotData['processQualifiedNum'] : lotData['productionQuantity']}}</text>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">下道工序:</text>
|
|
|
- <text
|
|
|
- class="label right">{{ lotData.nextProcess && lotData['nextProcess'] != "" ? lotData['nextProcess'].processAlias : '-'}}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">当前设备:</text>
|
|
|
- <text
|
|
|
- class="label right">{{ lotData['currentEquipmentCode'] && lotData['currentEquipmentCode'] != "" ? lotData['currentEquipmentCode'] : '-'}}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">当前操作者:</text>
|
|
|
- <text class="label right">{{ lotData['currentNickName']}}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">批次状态:</text>
|
|
|
- <text
|
|
|
- class="label right">{{ lotData['status'] == 1 ?"进行中":lotData['status'] == 3?"周转中":lotData['status'] == 2?"待领取":lotData['status'] == 4?"已送达":lotData['status'] == 5?"已完成":"未开始"}}</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <!-- 领料信息 -->
|
|
|
- <view id="item2" class="scroll-item">
|
|
|
- <view> <text style="font-size: 32rpx;display: flex;justify-content: center;">领料信息</text></view>
|
|
|
- <view v-if="furnaceData==null" class="no-date">
|
|
|
- <text>暂无数据</text>
|
|
|
- </view>
|
|
|
- <view v-else>
|
|
|
- <view class="item-info uni-row" style="margin-top: 16rpx;">
|
|
|
- <text class="label">炉号</text>
|
|
|
- <text id="manufacturer"
|
|
|
- class="label right">{{furnaceData['furnaceNumber'] ? furnaceData['furnaceNumber'] : '-'}}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">计划单号</text>
|
|
|
- <text id="manufacturer"
|
|
|
- class="label right">{{ furnaceData['productionPlanNo'] ? furnaceData['productionPlanNo'] : '-'}}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">序号</text>
|
|
|
- <text class="label right">{{ furnaceData['lineNumber'] ? furnaceData['lineNumber'] : '-'}}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">厂家</text>
|
|
|
- <text class="label right">{{ furnaceData['factory'] ? furnaceData['factory'] : '-'}}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">牌号</text>
|
|
|
- <text class="label right">{{ furnaceData['brandNumber'] ?furnaceData['brandNumber'] : '-' }}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">规格</text>
|
|
|
- <text class="label right">{{ furnaceData['spec'] ?furnaceData['spec'] : '-' }}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">形状</text>
|
|
|
- <text class="label right">{{ furnaceData['shape'] ?furnaceData['shape'] : '-'}}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">材料直径</text>
|
|
|
- <text class="label right">{{ furnaceData['diameter'] ? furnaceData['diameter'] : '-' }}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">原料编码</text>
|
|
|
- <text
|
|
|
- class="label right">{{ furnaceData['rawMaterialCode'] ? furnaceData['rawMaterialCode'] : '-' }}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">来料日期</text>
|
|
|
- <text
|
|
|
- class="label right">{{ furnaceData['incomingDate'] ? furnaceData['incomingDate'] : '-' }}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">技术要求1</text>
|
|
|
- <text
|
|
|
- class="label right">{{ furnaceData['firstTechnicalRequirement'] ? furnaceData['firstTechnicalRequirement'] : '-' }}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">技术要求2</text>
|
|
|
- <text
|
|
|
- class="label right">{{ furnaceData['secondTechnicalRequirement'] ?furnaceData['secondTechnicalRequirement'] : '-' }}</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <!-- 历史报工 -->
|
|
|
- <view id="item3" class="scroll-item">
|
|
|
- <view> <text style="font-size: 32rpx;display: flex;justify-content: center;">历史报工</text></view>
|
|
|
- <view v-if="historyData.length == 0" class="no-date">
|
|
|
- <text>暂无数据</text>
|
|
|
- </view>
|
|
|
- <view v-for="(item, index) in historyData" :key="index" class="list-item" id="historyData">
|
|
|
- <view class="item-info uni-row" style="margin-top: 16rpx;"> <text class="label ">工序:</text>
|
|
|
- <text class="label right">{{ item['processAlias'] }}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row"> <text class="label">投产量:</text>
|
|
|
- <text class="label right ">{{ item['prodNum'] }}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">合格数量:</text>
|
|
|
- <text class="label right">{{ item['qualifiedNum']}}</text>
|
|
|
- </view>
|
|
|
- <view v-for="(info, index) in item.rejectList" :key="index">
|
|
|
<view class="item-info uni-row">
|
|
|
- <text class="label">废品信息:</text>
|
|
|
- <text class="label right">{{ info['reason']!=""?info['reason']:'-'}}</text>
|
|
|
+ <text class="label">合格数量:</text>
|
|
|
+ <text class="label right">{{ lotData['totalQuantityNum']}}</text>
|
|
|
</view>
|
|
|
<view class="item-info uni-row">
|
|
|
- <text class="label">废品数量:</text>
|
|
|
- <text class="label right">{{ info['rejectNum']}}</text>
|
|
|
+ <text class="label">上道工序:</text>
|
|
|
+ <text
|
|
|
+ class="label right">{{ lotData.prevProcess && lotData['prevProcess'] != "" ? lotData['prevProcess'].processAlias : '-'}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">当前工序:</text>
|
|
|
+ <view class="label right uni-row">
|
|
|
+ <text
|
|
|
+ class="label right">{{ lotData.currentProcess && lotData['currentProcess'] != "" ? lotData['currentProcess'].processAlias : '-'}}</text>
|
|
|
+ (<view style="color: #1684fc;" @click.stop="handleClickProcessList(lotData)">
|
|
|
+ 工艺列表
|
|
|
+ </view>)
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">下道工序:</text>
|
|
|
+ <text
|
|
|
+ class="label right">{{ lotData.nextProcess && lotData['nextProcess'] != "" ? lotData['nextProcess'].processAlias : '-'}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">当前设备:</text>
|
|
|
+ <text
|
|
|
+ class="label right">{{ lotData['currentEquipmentCode'] && lotData['currentEquipmentCode'] != "" ? lotData['currentEquipmentCode'] : '-'}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">当前操作者:</text>
|
|
|
+ <text class="label right">{{ lotData['currentNickName']}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">批次状态:</text>
|
|
|
+ <text
|
|
|
+ class="label right">{{ lotData['status'] == 1 ?"进行中":lotData['status'] == 3?"周转中":lotData['status'] == 2?"待领取":lotData['status'] == 4?"已送达":lotData['status'] == 5?"已完成":"未开始"}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">设备:</text>
|
|
|
- <text class="label right">{{ item['equipmentDetailCode'] ?item['equipmentDetailCode']:'-'}}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">操作者:</text>
|
|
|
- <text class="label right">{{ item['nickName']}}</text>
|
|
|
- </view>
|
|
|
- <view v-if="index!=historyData.length-1" class='middle'>
|
|
|
- <view class='segment'></view>
|
|
|
- <view class='segment'></view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <!-- 检查信息 -->
|
|
|
- <view id="item4" class="scroll-item">
|
|
|
- <view> <text style="font-size: 32rpx;display: flex;justify-content: center;">检查信息</text></view>
|
|
|
- <view v-if="inspectionData.length == 0" class="no-date">
|
|
|
- <text>暂无数据</text>
|
|
|
</view>
|
|
|
- <view v-else v-for="(item, index) in inspectionData" :key="index" class="list-item" id="inspectionData">
|
|
|
- <view class="item-info uni-row" style="margin-top: 16rpx;"> <text class="label ">检查类型:</text>
|
|
|
- <text class="label right">{{ getType(item.type) }}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row" style="margin-top: 16rpx;"> <text class="label ">工序:</text>
|
|
|
- <text class="label right">{{ item['processAlias'] }}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row"> <text class="label">检查员:</text>
|
|
|
- <text class="label right ">{{ item['reviewerName'] }}</text>
|
|
|
- </view>
|
|
|
- <view v-if="item.processInspectionDetails && item.processInspectionDetails.length>0"
|
|
|
- v-for="(info, index) in item.processInspectionDetails" :key="index">
|
|
|
+ <!-- 领料信息 -->
|
|
|
+ <view id="item2" class="scroll-item">
|
|
|
+ <view> <text style="font-size: 32rpx;display: flex;justify-content: center;">领料信息</text></view>
|
|
|
+ <view v-if="furnaceData==null" class="no-date">
|
|
|
+ <text>暂无数据</text>
|
|
|
+ </view>
|
|
|
+ <view v-else>
|
|
|
+ <view class="item-info uni-row" style="margin-top: 16rpx;">
|
|
|
+ <text class="label">炉号</text>
|
|
|
+ <text id="manufacturer"
|
|
|
+ class="label right">{{furnaceData['furnaceNumber'] ? furnaceData['furnaceNumber'] : '-'}}</text>
|
|
|
+ </view>
|
|
|
<view class="item-info uni-row">
|
|
|
- <text class="label">检测项目:</text>
|
|
|
- <text class="label right">{{ info['checkStandard']}}</text>
|
|
|
+ <text class="label">计划单号</text>
|
|
|
+ <text id="manufacturer"
|
|
|
+ class="label right">{{ furnaceData['productionPlanNo'] ? furnaceData['productionPlanNo'] : '-'}}</text>
|
|
|
</view>
|
|
|
<view class="item-info uni-row">
|
|
|
- <text class="label">检测结果:</text>
|
|
|
- <text class="label right">{{ info['checkResult'] !=""?info['checkResult'] :'-'}}</text>
|
|
|
+ <text class="label">序号</text>
|
|
|
+ <text
|
|
|
+ class="label right">{{ furnaceData['lineNumber'] ? furnaceData['lineNumber'] : '-'}}</text>
|
|
|
</view>
|
|
|
- <view v-if="item.type =='outsourcedInspection '" class="item-info uni-row">
|
|
|
- <text class="label">废品数量:</text>
|
|
|
- <text class="label right">{{ info['rejectNum']}}</text>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">厂家</text>
|
|
|
+ <text class="label right">{{ furnaceData['factory'] ? furnaceData['factory'] : '-'}}</text>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <!-- 拍照上传部分 -->
|
|
|
- <view v-if="item.processInspectionPictureList && item.processInspectionPictureList.length>0"
|
|
|
- class="item-info uni-row">
|
|
|
- <text class="label">拍照上传:</text>
|
|
|
- <text class=" label right">
|
|
|
- <uni-file-picker v-model="item.processInspectionPictureList" :readonly="true"
|
|
|
- return-type="array" :image-styles="imageStyles" file-mediatype="image"
|
|
|
- class="my-files"></uni-file-picker>
|
|
|
- </text>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view v-for="(data, index) in item.dayworkItemConsults" :key="index">
|
|
|
<view class="item-info uni-row">
|
|
|
- <text class="label">咨询信息:</text>
|
|
|
- <text class="label right">{{ data['content']}}</text>
|
|
|
+ <text class="label">牌号</text>
|
|
|
+ <text
|
|
|
+ class="label right">{{ furnaceData['brandNumber'] ?furnaceData['brandNumber'] : '-' }}</text>
|
|
|
</view>
|
|
|
<view class="item-info uni-row">
|
|
|
- <text class="label">咨询结果:</text>
|
|
|
- <text class="label right">{{ data['status'] == 0?"未回复":data['result']}}</text>
|
|
|
+ <text class="label">规格</text>
|
|
|
+ <text class="label right">{{ furnaceData['spec'] ?furnaceData['spec'] : '-' }}</text>
|
|
|
</view>
|
|
|
<view class="item-info uni-row">
|
|
|
- <text class="label">技术人员:</text>
|
|
|
- <text class="label right">{{ data['technicianName']}}</text>
|
|
|
+ <text class="label">形状</text>
|
|
|
+ <text class="label right">{{ furnaceData['shape'] ?furnaceData['shape'] : '-'}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">材料直径</text>
|
|
|
+ <text class="label right">{{ furnaceData['diameter'] ? furnaceData['diameter'] : '-' }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">原料编码</text>
|
|
|
+ <text
|
|
|
+ class="label right">{{ furnaceData['rawMaterialCode'] ? furnaceData['rawMaterialCode'] : '-' }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">来料日期</text>
|
|
|
+ <text
|
|
|
+ class="label right">{{ furnaceData['incomingDate'] ? furnaceData['incomingDate'] : '-' }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">技术要求1</text>
|
|
|
+ <text
|
|
|
+ class="label right">{{ furnaceData['firstTechnicalRequirement'] ? furnaceData['firstTechnicalRequirement'] : '-' }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">技术要求2</text>
|
|
|
+ <text
|
|
|
+ class="label right">{{ furnaceData['secondTechnicalRequirement'] ?furnaceData['secondTechnicalRequirement'] : '-' }}</text>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">备注:</text>
|
|
|
- <text class="label right">{{ item['remark'] !="" ?item['remark']:'-'}}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">检查结果:</text>
|
|
|
- <text class="label right">{{ item['status'] == 0?"待确认":item['status'] == 1?"合格":"不合格"}}</text>
|
|
|
- </view>
|
|
|
- <view v-if="index!=inspectionData.length -1" class='middle'>
|
|
|
- <view class='segment'></view>
|
|
|
- <view class='segment'></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <!-- 分选信息 -->
|
|
|
- <view id="item5" class="scroll-item">
|
|
|
- <view> <text style="font-size: 32rpx;display: flex;justify-content: center;">分选信息</text></view>
|
|
|
- <view v-if="sortData.length == 0" class="no-date">
|
|
|
- <text>暂无数据</text>
|
|
|
- </view>
|
|
|
- <view v-else v-for="(item, index) in sortData" :key="index" class="list-item" id="sortData">
|
|
|
-
|
|
|
- <view class="item-info uni-row" style="margin-top: 16rpx;"> <text class="label ">工序:</text>
|
|
|
- <text class="label right">{{ item['processAlias'] }}</text>
|
|
|
- </view>
|
|
|
- <view class="item-info uni-row"> <text class="label">分选人员:</text>
|
|
|
- <text class="label right ">{{ item['nickName'] }}</text>
|
|
|
- </view>
|
|
|
- <view v-for="(info, index) in item.rejectList" :key="index">
|
|
|
+ <!-- 历史报工 -->
|
|
|
+ <view id="item3" class="scroll-item">
|
|
|
+ <view> <text style="font-size: 32rpx;display: flex;justify-content: center;">历史报工</text></view>
|
|
|
+ <view v-if="historyData.length == 0" class="no-date">
|
|
|
+ <text>暂无数据</text>
|
|
|
+ </view>
|
|
|
+ <view v-for="(item, index) in historyData" :key="index" class="list-item" id="historyData">
|
|
|
+ <view class="item-info uni-row" style="margin-top: 16rpx;"> <text class="label ">工序:</text>
|
|
|
+ <text class="label right">{{ item['processAlias'] }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row"> <text class="label">投产量:</text>
|
|
|
+ <text class="label right ">{{ item['prodNum'] }}</text>
|
|
|
+ </view>
|
|
|
<view class="item-info uni-row">
|
|
|
- <text class="label">检测项目:</text>
|
|
|
- <text class="label right">{{ info['checkStandard']}}</text>
|
|
|
+ <text class="label">合格数量:</text>
|
|
|
+ <text class="label right">{{ item['qualifiedNum']}}</text>
|
|
|
+ </view>
|
|
|
+ <view v-for="(info, index) in item.rejectList" :key="index">
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">废品信息:</text>
|
|
|
+ <text class="label right">{{ info['reason']!=""?info['reason']:'-'}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">废品数量:</text>
|
|
|
+ <text class="label right">{{ info['rejectNum']}}</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="item-info uni-row">
|
|
|
- <text class="label">检测结果:</text>
|
|
|
- <text class="label right">{{ info['reason'] !=""?info['reason'] :'-'}}</text>
|
|
|
+ <text class="label">设备:</text>
|
|
|
+ <text
|
|
|
+ class="label right">{{ item['equipmentDetailCode'] ?item['equipmentDetailCode']:'-'}}</text>
|
|
|
</view>
|
|
|
<view class="item-info uni-row">
|
|
|
- <text class="label">废品数量:</text>
|
|
|
- <text class="label right">{{ info['rejectNum']}}</text>
|
|
|
+ <text class="label">操作者:</text>
|
|
|
+ <text class="label right">{{ item['nickName']}}</text>
|
|
|
+ </view>
|
|
|
+ <view v-if="index!=historyData.length-1" class='middle'>
|
|
|
+ <view class='segment'></view>
|
|
|
+ <view class='segment'></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-for="(data, index) in item.consults" :key="index">
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">咨询信息:</text>
|
|
|
- <text class="label right">{{ data['content']}}</text>
|
|
|
+ </view>
|
|
|
+ <!-- 检查信息 -->
|
|
|
+ <view id="item4" class="scroll-item">
|
|
|
+ <view> <text style="font-size: 32rpx;display: flex;justify-content: center;">检查信息</text></view>
|
|
|
+ <view v-if="inspectionData.length == 0" class="no-date">
|
|
|
+ <text>暂无数据</text>
|
|
|
+ </view>
|
|
|
+ <view v-else v-for="(item, index) in inspectionData" :key="index" class="list-item" id="inspectionData">
|
|
|
+ <view class="item-info uni-row" style="margin-top: 16rpx;"> <text class="label ">检查类型:</text>
|
|
|
+ <text class="label right">{{ getType(item.type) }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row" style="margin-top: 16rpx;"> <text class="label ">工序:</text>
|
|
|
+ <text class="label right">{{ item['processAlias'] }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row"> <text class="label">检查员:</text>
|
|
|
+ <text class="label right ">{{ item['reviewerName'] }}</text>
|
|
|
+ </view>
|
|
|
+ <view v-if="item.processInspectionDetails && item.processInspectionDetails.length>0"
|
|
|
+ v-for="(info, index) in item.processInspectionDetails" :key="index">
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">检测项目:</text>
|
|
|
+ <text class="label right">{{ info['checkStandard']}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">检测结果:</text>
|
|
|
+ <text class="label right">{{ info['checkResult'] !=""?info['checkResult'] :'-'}}</text>
|
|
|
+ </view>
|
|
|
+ <view v-if="item.type =='outsourcedInspection '" class="item-info uni-row">
|
|
|
+ <text class="label">废品数量:</text>
|
|
|
+ <text class="label right">{{ info['rejectNum']}}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <!-- 拍照上传部分 -->
|
|
|
+ <view v-if="item.processInspectionPictureList && item.processInspectionPictureList.length>0"
|
|
|
+ class="item-info uni-row">
|
|
|
+ <text class="label">拍照上传:</text>
|
|
|
+ <text class=" label right">
|
|
|
+ <uni-file-picker v-model="item.processInspectionPictureList" :readonly="true"
|
|
|
+ return-type="array" :image-styles="imageStyles" file-mediatype="image"
|
|
|
+ class="my-files"></uni-file-picker>
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view v-for="(data, index) in item.dayworkItemConsults" :key="index">
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">咨询信息:</text>
|
|
|
+ <text class="label right">{{ data['content']}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">咨询结果:</text>
|
|
|
+ <text class="label right">{{ data['status'] == 0?"未回复":data['result']}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">技术人员:</text>
|
|
|
+ <text class="label right">{{ data['technicianName']}}</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="item-info uni-row">
|
|
|
- <text class="label">咨询结果:</text>
|
|
|
- <text class="label right">{{ data['status'] == 0?"未回复":data['result']}}</text>
|
|
|
+ <text class="label">备注:</text>
|
|
|
+ <text class="label right">{{ item['remark'] !="" ?item['remark']:'-'}}</text>
|
|
|
</view>
|
|
|
<view class="item-info uni-row">
|
|
|
- <text class="label">技术人员:</text>
|
|
|
- <text class="label right">{{ data['technicianName']}}</text>
|
|
|
+ <text class="label">检查结果:</text>
|
|
|
+ <text class="label right">{{ item['status'] == 0?"待确认":item['status'] == 1?"合格":"不合格"}}</text>
|
|
|
+ </view>
|
|
|
+ <view v-if="index!=inspectionData.length -1" class='middle'>
|
|
|
+ <view class='segment'></view>
|
|
|
+ <view class='segment'></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="item-info uni-row">
|
|
|
- <text class="label">备注:</text>
|
|
|
- <text class="label right">{{ item['remark'] !="" ?item['remark']:'-'}}</text>
|
|
|
+ </view>
|
|
|
+ <!-- 分选信息 -->
|
|
|
+ <view id="item5" class="scroll-item">
|
|
|
+ <view> <text style="font-size: 32rpx;display: flex;justify-content: center;">分选信息</text></view>
|
|
|
+ <view v-if="sortData.length == 0" class="no-date">
|
|
|
+ <text>暂无数据</text>
|
|
|
</view>
|
|
|
- <view v-if="index!=sortData.length -1" class='middle'>
|
|
|
- <view class='segment'></view>
|
|
|
- <view class='segment'></view>
|
|
|
+ <view v-else v-for="(item, index) in sortData" :key="index" class="list-item" id="sortData">
|
|
|
+
|
|
|
+ <view class="item-info uni-row" style="margin-top: 16rpx;"> <text class="label ">工序:</text>
|
|
|
+ <text class="label right">{{ item['processAlias'] }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row"> <text class="label">分选人员:</text>
|
|
|
+ <text class="label right ">{{ item['nickName'] }}</text>
|
|
|
+ </view>
|
|
|
+ <view v-for="(info, index) in item.rejectList" :key="index">
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">检测项目:</text>
|
|
|
+ <text class="label right">{{ info['checkStandard']}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">检测结果:</text>
|
|
|
+ <text class="label right">{{ info['reason'] !=""?info['reason'] :'-'}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">废品数量:</text>
|
|
|
+ <text class="label right">{{ info['rejectNum']}}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view v-for="(data, index) in item.consults" :key="index">
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">咨询信息:</text>
|
|
|
+ <text class="label right">{{ data['content']}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">咨询结果:</text>
|
|
|
+ <text class="label right">{{ data['status'] == 0?"未回复":data['result']}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">技术人员:</text>
|
|
|
+ <text class="label right">{{ data['technicianName']}}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="item-info uni-row">
|
|
|
+ <text class="label">备注:</text>
|
|
|
+ <text class="label right">{{ item['remark'] !="" ?item['remark']:'-'}}</text>
|
|
|
+ </view>
|
|
|
+ <view v-if="index!=sortData.length -1" class='middle'>
|
|
|
+ <view class='segment'></view>
|
|
|
+ <view class='segment'></view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <uni-drawer ref="showRight" mode="right" :mask-click="true">
|
|
|
+
|
|
|
+ </scroll-view>
|
|
|
+ <uni-drawer ref="showRight" mode="right" :mask-click="true" style="height: 100%;">
|
|
|
<view style="text-align: center; font-size: 48rpx; padding: 48rpx 0 24rpx 0;">工艺列表</view>
|
|
|
<view style="font-size: 24rpx;text-align: center;color: red; margin-bottom: 16rpx;">
|
|
|
蓝色工序为当前工序
|
|
|
</view>
|
|
|
- <scroll-view scroll-y="true" style="height: 82%;" @touchmove.stop>
|
|
|
+ <scroll-view scroll-y="true" style="height: 83%;" @touchmove.stop>
|
|
|
<view v-for="(item,index) in curProcessAfte" :key="index"
|
|
|
style="padding: 8rpx 5% 8rpx 14%; border-top: 1px solid #cccccc">
|
|
|
<text :style="{ color: showStatusColor(item) }">{{ index + 1 }}.{{item.processAlias}}</text>
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
</uni-drawer>
|
|
|
- </scroll-view>
|
|
|
- <!-- <view class="bottom-btn-container uni-row">
|
|
|
+ <!-- <view class="bottom-btn-container uni-row">
|
|
|
<button class="bottom-btn" @click="init()">扫码查询</button>
|
|
|
</view>
|
|
|
<dialog-selectLot ref="selectLotDialog" @submit="handleDoIt" /> -->
|
|
|
|
|
|
- <view class="bottom-btn-container uni-row">
|
|
|
- <button class="bottom-btn" @click="init()">扫码查询</button>
|
|
|
- </view>
|
|
|
+ <view class="bottom-btn-container uni-row">
|
|
|
+ <button class="bottom-btn" @click="init()">扫码查询</button>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<dialog-selectLot ref="selectLotDialog" @submit="handleDoIt" />
|
|
|
<QrScanner v-if="showQrCodeReader" @decode="onDecodeHandler" @close="qrReaderClose" />
|
|
@@ -647,12 +652,14 @@
|
|
|
// isActiveId.value = val
|
|
|
// }
|
|
|
function handleClickTab(id) {
|
|
|
- isActiveId.value = id;
|
|
|
- const element = document.getElementById(`item${id}`);
|
|
|
- console.log(element)
|
|
|
- if (element) {
|
|
|
- element.scrollIntoView({ behavior: 'smooth' });
|
|
|
- }
|
|
|
+ isActiveId.value = id;
|
|
|
+ const element = document.getElementById(`item${id}`);
|
|
|
+ console.log(element)
|
|
|
+ if (element) {
|
|
|
+ element.scrollIntoView({
|
|
|
+ behavior: 'smooth'
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
const handleScrollToUpper = () => {
|
|
|
isActiveId.value = 1
|
|
@@ -674,16 +681,17 @@
|
|
|
|
|
|
<style lang="scss">
|
|
|
.tab-container {
|
|
|
- // display: flex;
|
|
|
- // flex-direction: row;
|
|
|
- // height: 32px;
|
|
|
- position: fixed;
|
|
|
- top: 0;
|
|
|
- height: 32px;
|
|
|
- display: flex;
|
|
|
- flex-direction: row;
|
|
|
- margin-top: 40px;
|
|
|
- width: 100%;
|
|
|
+ // display: flex;
|
|
|
+ // flex-direction: row;
|
|
|
+ // height: 32px;
|
|
|
+ position: fixed;
|
|
|
+ top: 0;
|
|
|
+ height: 32px;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ margin-top: 40px;
|
|
|
+ width: 100%;
|
|
|
+
|
|
|
.tab-item {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
@@ -696,12 +704,12 @@
|
|
|
}
|
|
|
|
|
|
.scroll-container {
|
|
|
- display: block;
|
|
|
- padding-bottom: 60px;
|
|
|
- height:80%;
|
|
|
- background-color: #f5f5f5;
|
|
|
- position: fixed;
|
|
|
- top:72px;
|
|
|
+ display: block;
|
|
|
+ padding-bottom: 60px;
|
|
|
+ height: 80%;
|
|
|
+ background-color: #f5f5f5;
|
|
|
+ position: fixed;
|
|
|
+ top: 72px;
|
|
|
}
|
|
|
|
|
|
.tab-item.active {
|
|
@@ -798,7 +806,7 @@
|
|
|
align-items: center;
|
|
|
background-color: #fff;
|
|
|
justify-content: space-evenly;
|
|
|
-
|
|
|
+
|
|
|
.bottom-btn {
|
|
|
flex: 1;
|
|
|
font-size: 28rpx;
|