255 lines
11 KiB
Plaintext
255 lines
11 KiB
Plaintext
<view class="container">
|
||
<!-- 新装工单 -->
|
||
<block wx:if="{{type == 0}}">
|
||
<!-- 产品信息 -->
|
||
<view class="section">
|
||
<view class="section-title">工单信息</view>
|
||
<view class="info-item">
|
||
<text class="label">产品名称:</text>
|
||
<text class="value">{{newOrderDesc.product_name || '暂无数据'}}</text>
|
||
</view>
|
||
|
||
<view class="info-item">
|
||
<text class="label">约定时间:</text>
|
||
<text class="value">{{newOrderDesc.appointment_time || '暂无数据'}}</text>
|
||
</view>
|
||
|
||
<view class="info-item">
|
||
<text class="label">客户姓名:</text>
|
||
<text class="value">{{newOrderDesc.customer_name || '暂无数据'}}</text>
|
||
</view>
|
||
|
||
<view class="info-item">
|
||
<text class="label">客户电话:</text>
|
||
<text class="value">{{newOrderDesc.customer_phone || '暂无数据'}}</text>
|
||
</view>
|
||
|
||
<view class="info-item">
|
||
<text class="label">客户地址:</text>
|
||
<text class="value">{{newOrderDesc.address || '暂无数据'}}</text>
|
||
</view>
|
||
|
||
<view class="info-item">
|
||
<text class="label">订单状态:</text>
|
||
<text class="value " wx:if="{{newOrderDesc.status == '1'}}">待分配</text>
|
||
<text class="value " wx:if="{{newOrderDesc.status == '2'}}">待分配</text>
|
||
<text class="value " wx:if="{{newOrderDesc.status == '3'}}">已安装</text>
|
||
</view>
|
||
<view class="info-item">
|
||
<text class="label">产品图片:</text>
|
||
</view>
|
||
<view class="product-image">
|
||
<image src="{{newOrderDesc.product_icon}}" mode="aspectFit" />
|
||
</view>
|
||
|
||
|
||
|
||
|
||
</view>
|
||
<view class="section">
|
||
<view class="section-title">安装说明</view>
|
||
<view class="info-item">
|
||
<text class="label">说明:</text>
|
||
<input class="value" value="{{msg}}" disabled="{{dis1}}" bindinput="updateInstructions" placeholder="请输入安装说明" />
|
||
</view>
|
||
|
||
<view class="info-item" wx:if="{{dis1}}">
|
||
<text class="label">安装时间:</text>
|
||
<input class="value" value="{{newOrderDesc.install_time}}" disabled />
|
||
</view>
|
||
|
||
<view class="info-item item2">
|
||
<text class="label">设备名称:</text>
|
||
|
||
<view class="value value2" wx:if="{{!deviceCode}}">
|
||
<view class="btn" bind:tap="scanQrcode">去扫码</view>
|
||
</view>
|
||
|
||
<view class="value value3" wx:if="{{deviceCode}}">
|
||
{{deviceInfo.product_name}}
|
||
<view class="btn" bind:tap="scanQrcode">重新扫码</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<!-- 安装图片 -->
|
||
<view class="section">
|
||
<view class="section-title">安装图片</view>
|
||
<view class="installation-images">
|
||
<block wx:for="{{imgList}}" wx:key="index">
|
||
<view class="image-container">
|
||
<image class="installation-image" src="{{item}}" mode="aspectFill" />
|
||
<view wx:if="{{!dis1}}" class="delete-icon" bindtap="deleteImage" data-index="{{index}}">×</view>
|
||
</view>
|
||
</block>
|
||
<view class="upload-btn" bindtap="uploadImage" wx:if="{{!dis1}}">
|
||
<text>+ 上传图片</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</block>
|
||
|
||
<!-- 维修工单 -->
|
||
<block wx:if="{{type == 1}}">
|
||
<!-- 产品信息 -->
|
||
<view class="section">
|
||
<view class="section-title">工单信息</view>
|
||
<view class="info-item">
|
||
<text class="label">产品名称:</text>
|
||
<text class="value">{{repairOrderDesc.product_name || '暂无数据'}}</text>
|
||
</view>
|
||
|
||
<view class="info-item">
|
||
<text class="label">约定时间:</text>
|
||
<text class="value">{{repairOrderDesc.appointment_time || '暂无数据'}}</text>
|
||
</view>
|
||
|
||
<view class="info-item">
|
||
<text class="label">客户姓名:</text>
|
||
<text class="value">{{repairOrderDesc.customer_name || '暂无数据'}}</text>
|
||
</view>
|
||
|
||
<view class="info-item">
|
||
<text class="label">客户电话:</text>
|
||
<text class="value">{{repairOrderDesc.customer_phone || '暂无数据'}}</text>
|
||
</view>
|
||
|
||
<view class="info-item">
|
||
<text class="label">客户地址:</text>
|
||
<text class="value">{{repairOrderDesc.address || '暂无数据'}}</text>
|
||
</view>
|
||
|
||
<view class="info-item">
|
||
<text class="label">故障说明:</text>
|
||
<text class="value">{{repairOrderDesc.fault_desc || '暂无数据'}}</text>
|
||
</view>
|
||
|
||
<view class="info-item">
|
||
<text class="label">订单状态:</text>
|
||
<text class="value " wx:if="{{repairOrderDesc.status == '1'}}">待分配</text>
|
||
<text class="value " wx:if="{{repairOrderDesc.status == '2'}}">待分配</text>
|
||
<text class="value " wx:if="{{repairOrderDesc.status == '3'}}">已安装</text>
|
||
</view>
|
||
|
||
<view class="info-item">
|
||
<text class="label">工单来源:</text>
|
||
<text class="value" wx:if="{{repairOrderDesc.order_source == 1}}">微信</text>
|
||
<text class="value" wx:if="{{repairOrderDesc.order_source == 2}}">线下</text>
|
||
</view>
|
||
|
||
<view class="info-item">
|
||
<text class="label">故障图片:</text>
|
||
</view>
|
||
<view class="product-image">
|
||
<image src="{{repairOrderDesc.fault_imgs}}" mode="aspectFit" />
|
||
</view>
|
||
</view>
|
||
<view class="section">
|
||
<view class="section-title">维修说明</view>
|
||
<view class="info-item">
|
||
<text class="label">说明:</text>
|
||
<input class="value" value="{{msg}}" disabled="{{dis2}}" bindinput="updateInstructions" placeholder="请输入安装说明" />
|
||
</view>
|
||
|
||
<view class="info-item" wx:if="{{dis2}}">
|
||
<text class="label">维修时间:</text>
|
||
<input class="value" value="{{repairOrderDesc.repair_time}}" disabled />
|
||
</view>
|
||
|
||
</view>
|
||
<!-- 安装图片 -->
|
||
<view class="section">
|
||
<view class="section-title">维修图片</view>
|
||
<view class="installation-images">
|
||
<block wx:for="{{imgList}}" wx:key="index">
|
||
<view class="image-container">
|
||
<image class="installation-image" src="{{item}}" mode="aspectFill" />
|
||
<view wx:if="{{!dis2}}" class="delete-icon" bindtap="deleteImage" data-index="{{index}}">×</view>
|
||
</view>
|
||
</block>
|
||
<view class="upload-btn" bindtap="uploadImage" wx:if="{{!dis2}}">
|
||
<text>+ 上传图片</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</block>
|
||
|
||
<!-- 滤芯更换 -->
|
||
<block wx:if="{{type == 2}}">
|
||
<!-- 产品信息 -->
|
||
<view class="section">
|
||
<view class="section-title">工单信息</view>
|
||
<view class="info-item">
|
||
<text class="label">配件名称:</text>
|
||
<text class="value">{{partOrderDesc.parts_name || '暂无数据'}}</text>
|
||
</view>
|
||
|
||
<view class="info-item">
|
||
<text class="label">约定时间:</text>
|
||
<text class="value">{{partOrderDesc.appointment_time || '暂无数据'}}</text>
|
||
</view>
|
||
|
||
<view class="info-item">
|
||
<text class="label">客户姓名:</text>
|
||
<text class="value">{{partOrderDesc.customer_name || '暂无数据'}}</text>
|
||
</view>
|
||
|
||
<view class="info-item">
|
||
<text class="label">客户电话:</text>
|
||
<text class="value">{{partOrderDesc.customer_phone || '暂无数据'}}</text>
|
||
</view>
|
||
|
||
<view class="info-item">
|
||
<text class="label">客户地址:</text>
|
||
<text class="value">{{partOrderDesc.region}} {{partOrderDesc.address}}</text>
|
||
</view>
|
||
|
||
<view class="info-item">
|
||
<text class="label">工单来源:</text>
|
||
<text class="value " wx:if="{{partOrderDesc.order_source == '1'}}">微信</text>
|
||
<text class="value " wx:if="{{partOrderDesc.order_source == '2'}}">线下</text>
|
||
</view>
|
||
|
||
|
||
<view class="info-item">
|
||
<text class="label">天数阈值:</text>
|
||
<text class="value">{{partOrderDesc.threshold}}天</text>
|
||
</view>
|
||
|
||
<view class="info-item">
|
||
<text class="label">水量阈值:</text>
|
||
<text class="value">{{partOrderDesc.threshold_volume}}升</text>
|
||
</view>
|
||
|
||
|
||
</view>
|
||
<view class="section">
|
||
<view class="section-title">安装说明</view>
|
||
<view class="info-item">
|
||
<text class="label">说明:</text>
|
||
<input class="value" disabled="{{dis3}}" value="{{msg}}" bindinput="updateInstructions" placeholder="请输入安装说明" />
|
||
</view>
|
||
<view class="info-item" wx:if="{{dis3}}">
|
||
<text class="label">安装时间:</text>
|
||
<input class="value" value="{{partOrderDesc.install_time}}" disabled />
|
||
</view>
|
||
</view>
|
||
|
||
|
||
</block>
|
||
|
||
<!-- 完成按钮 -->
|
||
<view class="complete-btn-container" wx:if="{{type == 0 && !dis1}}">
|
||
<button class="complete-btn cancel-btn" bindtap="completeNewOrder" data-type="4">撤销</button>
|
||
<button class="complete-btn" bindtap="completeNewOrder" data-type="3">完成</button>
|
||
</view>
|
||
|
||
<view class="complete-btn-container" wx:if="{{type == 1 && !dis2 }}">
|
||
<button class="complete-btn cancel-btn" bindtap="completeRepairOrder" data-type="4">撤销</button>
|
||
<button class="complete-btn" bindtap="completeRepairOrder" data-type="3">完成</button>
|
||
</view>
|
||
|
||
<view class="complete-btn-container" wx:if="{{type == 2 && !dis3 }}">
|
||
<button class="complete-btn cancel-btn" bindtap="completePartOrder" data-type="4">撤销</button>
|
||
<button class="complete-btn" bindtap="completePartOrder" data-type="3">完成</button>
|
||
</view>
|
||
</view> |