祖安之光
2025-08-07 ad5c4cc086a40708e66040574ff1d465b66304b6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<view class="box">
  <!-- 自定义导航栏 -->
  <view class="navBarBox">
    <!-- 状态栏占位 -->
    <view class="statusBar" style="padding-top: {{statusBarHeight}}px;"></view>
    <!-- 真正的导航栏内容 -->
    <view style="display: flex; flex-direction: column;">
      <view class="navBar">
        <!-- <icon type="arrowleft" color="black" size="17" style="margin-left: 8px;" bindtap="goBack" /> -->
        <text bindtap="goBack" class="iconfont icon-fanhui" style="font-size: 36rpx;"></text>
        <view class="barText">危化品操作记录</view>
      </view>
    </view>
  </view>
 
  <view class="m-p-15">
    <view class="card-list">
      <scroll-view wx:if="{{examList && examList.length>0}}" scroll-y="true" class="scroll-Y" bindscrolltoupper="upper" bindscrolltolower="lower" lower-threshold="150" bindscroll="scrollView" style="height:100%">
        <view class="paper-card" wx:for="{{examList}}" wx:key="index">
          <view class="paper-card-l">
            <view class="dot"></view>
            <view class="line"></view>
          </view>
          <view class="paper-card-box">
            <view class="paper-card-r">
              <view class="paper-card-t">
                <icon type="waiting" color="#2979ff" size="18" style="margin-right: 4px"></icon>
                {{item.updateTime}}
              </view>
              <view class="paper-card-c">
                <text style="margin-right: 4px">对</text>
                <span style="font-weight: bold" wx:if="{{item.hazmatBasic}}">
                  {{item.hazmatBasic.companyName?item.hazmatBasic.companyName + '的':''}}{{item.hazmatBasic.name}}({{item.hazmatBasic.productSn}})
                </span>
                <span style="font-weight: bold" wx:if="{{item.productBasic}}">
                  {{item.productBasic.companyName?item.productBasic.companyName + '的':''}}{{item.productBasic.name}}({{item.productBasic.productSn}})
                </span>
                进行
                <span class="{{item.num>=0?'green':'red'}}" style="font-weight: bold;margin: 0 4px">
                  {{item.state==0?'入库 ':item.state==1?'取用 ':item.state==2?'归还 ':item.state==3?'标签作废 ':item.state==4?'用尽登记 ':item.state==5?'销售 ':item.state==6?'零头入库 ':'-- '}}
                </span>
              </view>
              <view wx:if="{{item.hazmatBasic}}" class="{{item.num>=0?'green':'red'}}" style="font-size: 28rpx">
                <text wx:if="{{item.num > 0}}">+</text>{{item.num}}{{item.hazmatBasic.unit}}
              </view>
              <view wx:if="{{item.productBasic}}" class="{{item.num>=0?'green':'red'}}" style="font-size: 28rpx">
                <text wx:if="{{item.num > 0}}">+</text>{{item.num}}{{item.productBasic.unit}}
              </view>
            </view>
          </view>
        </view>
      </scroll-view>
      <view wx:else style="display: flex;flex-direction: column;align-items: center;color: #999;">
        <text class="iconfont icon-kongbai" style="font-size: 160rpx;margin-bottom: 40rpx;"></text>
        暂无记录
      </view>
    </view>
  </view>
</view>