王飞
2025-01-23 99365608dec6eade7d645a91fb0f2205a332d1f1
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!-- 当前值周人 -->
<view style="margin: 20px; width: 90%; overflow: hidden; height: 100%; display: block; box-sizing: border-box">
    <view>
        <span>作业票类型:{{name}} </span>
    </view>
    <span> 作业票号: {{number}} </span>
  
    <!-- 特殊情况开关 -->
    <view class="box">
        <span> 是否批准:</span>
        <van-radio-group value="{{ radio }}" bind:change="onChange">
            <view style="display: flex;">
                <van-radio name="1" style="margin-left: 10px;">同意</van-radio>
                <van-radio name="2" style="margin-left: 10px;">不同意</van-radio>
                <van-radio wx:if="{{bumen=='完工验收负责人'}}" name="3" style="margin-left: 10px;">验收</van-radio>
            </view>
        </van-radio-group>
    </view>
    <view  style="margin-bottom: 10px;margin-top: 10px;" >
            <div>安全措施:</div>
            <div style="color: dodgerblue;text-decoration: underline;" bindtap="processing" data-num="{{item.number}}" data-type="{{item.type}}" data-handle="{{item.handle}}">处理</div>
        </view>
    <!-- <span> 安全措施:</span> -->
    <!-- <van-cell is-link title="安全措施处理" link-type="navigateTo" url="/pages/fireSafetymeasure/fireSafetymeasure" /> -->
 
    <!-- 特殊情况备注 -->
    <view wx:if="{{ radio==1 || radio==2}}" style="margin-top: 10px;">
        <span> 处理意见: </span>
        <van-cell-group style="color: aquamarine;">
            <van-field custom-style="border: #ddd 1px solid;" value="{{reason}}" type="textarea" autosize border="{{ false }}" bind:input="reasonBindInput" use-button-slot>
            </van-field>
        </van-cell-group>
    </view>
    <!-- 各个区域完成情况 -->
    <!-- <van-cell title="手动签字" is-link bind:click="showPopup" /> -->
    <view wx:if="{{ radio==1 || radio==3}}" style="margin-top: 10px;display: flex; ">
        <view style=" margin-right: 30%; width: 35%; height:60%;  border: 1px solid rgb(199, 194, 194);">
            <view wx:if="{{!tempFilePaths}}">
                <view style="margin-left: 8%;" bindtap='camera'>
                    <image style="width: 100px;height: 100px; align-items: center;  " src="../statis/img/camera.png" />
                </view>
                <text style=" font-size: 26rpx; margin-left: 35px; color: rgb(202, 188, 188);">点击拍照</text>
            </view>
            <view wx:else>
                <image class="delete-image" src="../statis/img/delete.png" bindtap='deleteImage' />
                <image style="width: 100%; height: 120px; " src="{{tempFilePaths}}" bindtap='previewImage' />
            </view>
        </view>
 
        <view style=" width: 35%; height:60%;  border: 1px solid rgb(199, 194, 194);">
            <view wx:if="{{!signtempFilePaths}}">
                <view style="margin-left: 8%;" bindtap='showPopup'>
                    <image style="width: 100px;height: 80px; align-items: center;margin-top: 10px; margin-bottom: 10px; " src="../statis/img/sign.png" />
                </view>
                <text style=" font-size: 26rpx; margin-left: 25px; color: rgb(202, 188, 188);">点击手动签字</text>
            </view>
            <view wx:else>
                <image class="delete-image" src="../statis/img/delete.png" bindtap='deletesign' />
                <image style="width: 100%; height: 120px; " src="{{signtempFilePaths}}" bindtap='previewsign' />
            </view>
        </view>
    </view>
    <view class="row" style="display: flex; margin-top: 50px;">
        <button type="primary" size="mini" bindtap="submitForm" style="background-color: #0294e9;">提交</button>
        <button type="primary" size="mini" bindtap="bindViewTap" style="background-color: #0294e9;">取消</button>
    </view>
 
    <!-- <van-popup
  show="{{ show }}"
  closeable
  position="bottom"
  custom-style="height: 20%"
  bind:close="onClose"
/> -->
</view>