75 lines
3.4 KiB
Plaintext
75 lines
3.4 KiB
Plaintext
<view class="page safe-bottom result-page">
|
|
<view class="result-nav">
|
|
<text class="result-nav-title">报工结果</text>
|
|
</view>
|
|
|
|
<view class="header">
|
|
<text class="title">报工成功</text>
|
|
<text class="subtitle">已提交管理员审核</text>
|
|
</view>
|
|
|
|
<block wx:if="{{report}}">
|
|
<view class="card">
|
|
<text wx:if="{{report.hasMisc}}" class="misc-watermark">包含杂活</text>
|
|
<text wx:if="{{report.hasMultiPerson}}" class="multi-person-watermark {{report.hasMisc ? 'lower-watermark' : ''}}">多人协作</text>
|
|
<text wx:if="{{report.hasContinuousDie}}" class="continuous-die-watermark {{report.hasMisc || report.hasMultiPerson ? 'lower-watermark' : ''}} {{report.hasMisc && report.hasMultiPerson ? 'third-watermark' : ''}}">连续模</text>
|
|
<text class="label">报工日期</text>
|
|
<text class="value">{{report.reportDate}}</text>
|
|
<text class="subtitle">考勤点 {{report.attendancePointName || '-'}}</text>
|
|
<text class="subtitle">{{report.metrics.shiftDistributionText}}</text>
|
|
<view class="divider"></view>
|
|
<view
|
|
wx:for="{{report.itemResults}}"
|
|
wx:key="key"
|
|
wx:for-item="result"
|
|
class="result-item {{result.goodResult ? 'good' : (result.overStandardAbnormal ? 'danger' : 'warn')}} {{result.isMultiPerson || result.isContinuousDie ? 'marked-result' : ''}} {{result.isMultiPerson && result.isContinuousDie ? 'stacked-result' : ''}}"
|
|
>
|
|
<text wx:if="{{result.isMultiPerson}}" class="result-multi-stamp">多人协作</text>
|
|
<text wx:if="{{result.isContinuousDie}}" class="result-continuous-stamp {{result.isMultiPerson ? 'lower-result-stamp' : ''}}">连续模</text>
|
|
<text class="result-title">{{result.title}}</text>
|
|
<text class="result-subtitle">{{result.subtitle}}</text>
|
|
<text class="result-text">{{result.resultText}}</text>
|
|
<view wx:if="{{result.isMisc}}" class="result-metrics">
|
|
<view>
|
|
<text class="label">工时</text>
|
|
<text class="value">{{result.workTimeText}}</text>
|
|
</view>
|
|
</view>
|
|
<view wx:elif="{{result.isCleaning}}" class="result-metrics">
|
|
<view>
|
|
<text class="label">清洗数量</text>
|
|
<text class="value">{{result.goodQty}}</text>
|
|
</view>
|
|
</view>
|
|
<view wx:else class="result-metrics">
|
|
<view>
|
|
<text class="label">实际节拍</text>
|
|
<text class="value">{{result.actualBeat}} 秒/件</text>
|
|
</view>
|
|
<view>
|
|
<text class="label">标准节拍</text>
|
|
<text class="value">{{result.standardBeat}} 秒/件</text>
|
|
</view>
|
|
<view>
|
|
<text class="label">成品数量</text>
|
|
<text class="value">{{result.goodQty}}</text>
|
|
</view>
|
|
<view>
|
|
<text class="label">标准工作量</text>
|
|
<text class="value">{{result.standardWorkload}}</text>
|
|
</view>
|
|
<view wx:if="{{result.isContinuousDie}}">
|
|
<text class="label">换料次数</text>
|
|
<text class="value">{{result.changeoverCount || 0}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="button-row">
|
|
<button class="btn secondary full" bindtap="goRecords">查看记录</button>
|
|
<button class="btn primary full" bindtap="goHome">返回首页</button>
|
|
</view>
|
|
</block>
|
|
</view>
|