|
|
@@ -1,178 +1,111 @@
|
|
|
<view class="{{stopClick}}" style="padding:10px">
|
|
|
- <card>
|
|
|
- <view slot="content">
|
|
|
- {{mainData.workpresetjson.workname}}
|
|
|
- <view class="stuta">
|
|
|
- <view class="tag" style="background-color:{{sColors['未完成']}};" wx:if="{{mainData.status == '0'}}">未完成</view>
|
|
|
- <view class="tag" style="background-color:{{sColors['已完成']}};" wx:if="{{mainData.status == '1'}}">已完成</view>
|
|
|
- <view class="tag" style="background-color:{{sColors['进行中']}};" wx:if="{{mainData.status == '2'}}">进行中</view>
|
|
|
- <view class="tag" style="background-color:#0052D9;" wx:if="{{mainData.finishby}}" >{{mainData.finishby}}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </card>
|
|
|
- <view style="margin-bottom: 5px;" class="small"><text class="label">{{language['工序说明']||'工序说明'}}</text></view>
|
|
|
- <card>
|
|
|
- <view slot="content">
|
|
|
- {{mainData.workpresetjson.remarks?mainData.workpresetjson.remarks:language['暂无说明']||'暂无说明'}}
|
|
|
+ <!-- 工序名称 + 状态 -->
|
|
|
+ <view class="panel">
|
|
|
+ {{mainData.sequence}}.{{mainData.workpresetjson.workname}}
|
|
|
+ <view class="status-tag">
|
|
|
+ <view class="tag" style="background-color:{{sColors['待开始']}};" wx:if="{{mainData.status == '0'}}">待开始</view>
|
|
|
+ <view class="tag" style="background-color:{{sColors['已完成']}};" wx:if="{{mainData.status == '1'}}">已完成</view>
|
|
|
+ <view class="tag" style="background-color:{{sColors['进行中']}};" wx:if="{{mainData.status == '2'}}">进行中</view>
|
|
|
+ <view class="tag" style="background-color:#0052D9;" wx:if="{{mainData.finishby}}">{{mainData.finishby}}</view>
|
|
|
</view>
|
|
|
- </card>
|
|
|
- <view style="margin-bottom: 5px;" class="small"><text class="label">{{language['参与人']||'参与人'}}</text></view>
|
|
|
- <card bindtap="showTeamDialog">
|
|
|
- <text class="label">{{language['参与人']||'参与人'}}:</text>
|
|
|
- <view slot="content">
|
|
|
- <view wx:if="{{mainData.team.length === 0}}">
|
|
|
- <text class="small">{{language['暂无参与人']||'暂无参与人'}}</text>
|
|
|
- </view>
|
|
|
- <view wx:else>
|
|
|
- <t-tag class="mr-5 mt-5" wx:for="{{mainData.team}}" wx:key="userid" variant="{{item.isleader === 1?'dark':'outline'}}" theme="{{item.isleader === 1?'primary':''}}">{{item.name}}</t-tag>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </card>
|
|
|
- <t-dialog visible="{{showTeams}}" title="{{language['参与成员']||'参与成员'}}" confirm-btn="{{language['确定']||'确定'}}" cancel-btn="{{language['取消']||'取消'}}" bind:confirm="addUser" bind:cancel="showTeamDialog">
|
|
|
- <view slot="content">
|
|
|
- <view style="height: 40rpx;" />
|
|
|
- <view>
|
|
|
- <block wx:for="{{workers}}" wx:key="userid">
|
|
|
- <t-tag class="mr-5 mt-5" variant="{{wqp.query(teams,item.userid)?'dark':'outline'}}" theme="primary" data-item="{{item}}" bindtap="selectTeams">{{ item.position?item.position + '-':'' }}{{ item.name }}</t-tag>
|
|
|
- </block>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
+ <!-- 操作说明 -->
|
|
|
+ <view class="panel">
|
|
|
+ <view class="section-title">{{language['操作说明']||'操作说明'}}</view>
|
|
|
+ <view class="section-text"> {{mainData.workpresetjson.remarks ? mainData.workpresetjson.remarks : language['暂无说明']||'暂无说明'}}</view>
|
|
|
+ </view>
|
|
|
+ <!-- 操作人员 -->
|
|
|
+ <view class="panel">
|
|
|
+ <view class="section-title">{{language['操作人员']||'操作人员'}}</view>
|
|
|
+ <view wx:if="{{mainData.team.length === 0}}">
|
|
|
+ <text class="small">{{language['暂无操作人员']||'暂无操作人员'}}</text>
|
|
|
</view>
|
|
|
- </t-dialog>
|
|
|
- <wxs src="../../utils/wxmlQueryPer.wxs" module="wqp" />
|
|
|
-
|
|
|
- <!-- 是否确认 -->
|
|
|
- <view wx:if="{{mainData.workpresetjson.confirm}}">
|
|
|
- <view style="margin-bottom: 5px;" class="small">
|
|
|
- <text class="label">{{language['是否确认']||'是否确认'}}</text>
|
|
|
- <text wx:if="{{mainData.workpresetjson.confirm == 11}}" style="color:#e34d59">*</text>
|
|
|
+ <view wx:else>
|
|
|
+ <van-radio-group value="{{selectedTeamUserid}}" bind:change="onTeamRadioChange" direction="horizontal">
|
|
|
+ <van-radio wx:for="{{mainData.team}}" wx:key="userid" name="{{item.userid}}" icon-size="16px" class="team-radio-item">
|
|
|
+ {{item.position ? item.position + '-' : ''}}{{item.name}}
|
|
|
+ </van-radio>
|
|
|
+ </van-radio-group>
|
|
|
</view>
|
|
|
- <card>
|
|
|
- <view style="flex:1" slot="content">
|
|
|
- <t-tag bindtap="confirmValue" data-item="{{item}}" class="mr-5 mt-5" wx:for="{{mainData.workpresetjson.confirm_options}}" variant="{{item === form.confirm_value?'dark':'outline'}}" theme="{{item === form.confirm_value?'primary':''}}">{{language[item]||item}}</t-tag>
|
|
|
- </view>
|
|
|
- </card>
|
|
|
</view>
|
|
|
<!-- 上传附件 -->
|
|
|
<view wx:if="{{mainData.workpresetjson.fileupload !== 0}}">
|
|
|
- <view style="margin-bottom: 5px;" class="small">
|
|
|
- <text class="label">{{language['上传附件']||'上传附件'}}</text>
|
|
|
- <text wx:if="{{mainData.workpresetjson.fileupload == 11}}" style="color:#e34d59">*</text>
|
|
|
- </view>
|
|
|
- <card>
|
|
|
- <view style="flex:1" slot="content">
|
|
|
- <upload id="fileUpload" bindData="{{bindNormalData}}"></upload>
|
|
|
- <!-- <image-viewer list="{{list}}"></image-viewer> -->
|
|
|
+ <view class="panel">
|
|
|
+ <view class="section-title">
|
|
|
+ <text wx:if="{{mainData.workpresetjson.fileupload == 11}}" class="required-star">*</text>
|
|
|
+ <text>{{language['上传附件']||'上传附件'}}</text>
|
|
|
</view>
|
|
|
- </card>
|
|
|
- </view>
|
|
|
- <!-- 文本信息 -->
|
|
|
- <view wx:if="{{mainData.workpresetjson.textedit !== 0}}">
|
|
|
- <view style="margin-bottom: 5px;" class="small">
|
|
|
- <text class="label">{{language['文本信息']||'文本信息'}}</text>
|
|
|
- <text wx:if="{{mainData.workpresetjson.textedit == 11}}" style="color:#e34d59">*</text>
|
|
|
+ <!-- <Files ownertable="sa_workorder_node" ownerid="{{mainData.sa_workorder_nodeid}}" disabled="{{stopClick != 'stopClick'}}" /> -->
|
|
|
+ <upload id="fileUpload" bindData="{{bindNormalData}}"></upload>
|
|
|
</view>
|
|
|
- <card>
|
|
|
- <view style="flex:1" slot="content">
|
|
|
- <t-textarea custom-style="padding:0" disabled="{{stopClick == 'stopClick'}}" value="{{form.textcontent}}" t-class="external-class" placeholder="{{language['请输入']||'请输入文字'}}" disableDefaultPadding="{{true}}" bind:blur="textContent" autosize />
|
|
|
- </view>
|
|
|
- </card>
|
|
|
</view>
|
|
|
- <!-- 上传合同 -->
|
|
|
- <view wx:if="{{mainData.workpresetjson.contractupload !== 0}}">
|
|
|
- <view style="margin-bottom: 5px;" class="small">
|
|
|
- <text class="label">{{language['上传合同']||'上传合同'}}</text>
|
|
|
- <text wx:if="{{mainData.workpresetjson.contractupload == 11}}" style="color:#e34d59">*</text>
|
|
|
+ <!-- 物料添加 -->
|
|
|
+ <view class="panel" style="display:flex;justify-content: space-between;align-items: center;">
|
|
|
+ <view class="wl-title">
|
|
|
+ {{language['物料添加']||'物料添加'}}
|
|
|
</view>
|
|
|
- <card>
|
|
|
- <view style="flex:1" slot="content">
|
|
|
- <upload id="contractUpload" source="messageFile" bindData="{{bindContractData}}"></upload>
|
|
|
- </view>
|
|
|
- </card>
|
|
|
- </view>
|
|
|
- <!-- 是否有偿 -->
|
|
|
- <view wx:if="{{mainData.workpresetjson.amountpay !== 0}}">
|
|
|
- <view style="margin-bottom: 5px;" class="small">
|
|
|
- <text class="label">{{language['是否有偿']||'是否有偿'}}</text>
|
|
|
- <text wx:if="{{mainData.workpresetjson.amountpay == 11}}" style="color:#e34d59">*</text>
|
|
|
+ <view class="wl-btn">
|
|
|
+ {{language['添加物料']||'添加物料'}}
|
|
|
</view>
|
|
|
- <card>
|
|
|
- <view style="flex:1" slot="content">
|
|
|
- <t-input default-value="{{form.amount}}" value='{{form.amount||0}}' label="{{language['输入金额']||'输入金额'}}" placeholder="{{language['输入金额']||'输入金额'}}" bind:blur="amountPay" borderless></t-input>
|
|
|
+ </view>
|
|
|
+ <!-- 全景影像 -->
|
|
|
+ <view wx:if="{{mainData.workpresetjson.panorama !== 0}}">
|
|
|
+ <view class="panel">
|
|
|
+ <view class="section-title">
|
|
|
+ <text wx:if="{{mainData.workpresetjson.panorama == 11}}" class="required-star">*</text>
|
|
|
+ <text>{{language['全景影像']||'全景影像'}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="section-label" >
|
|
|
+ {{ language['全景影像链接']||'全景影像链接'}}:
|
|
|
</view>
|
|
|
- </card>
|
|
|
+ <input value="{{form.panoramaurl || ''}}" placeholder="{{language['请填写全景影像链接']||'请填写全景影像链接'}}" bind:blur="amountPay" class="input-box" />
|
|
|
+ <view class="section-label">
|
|
|
+ {{ language['全景影像二维码']||'全景影像二维码'}}:
|
|
|
+ </view>
|
|
|
+ <input value="{{form.amount || ''}}" placeholder="{{language['输入金额']||'输入金额'}}" bind:blur="amountPay" class="input-box" />
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <!-- 客户签字 -->
|
|
|
- <view wx:if="{{mainData.workpresetjson.signature !== 0 && SignName}}">
|
|
|
- <view style="margin-bottom: 5px;" class="small">
|
|
|
- <text class="label">{{language['客户签字']||'客户签字'}}</text>
|
|
|
- <text wx:if="{{mainData.workpresetjson.signature == 11}}" style="color:#e34d59">*</text>
|
|
|
+ <!-- 是否合格 -->
|
|
|
+ <view class="panel" style="display:flex;justify-content: space-between;align-items: center;">
|
|
|
+ <view class="wl-title">
|
|
|
+ <text wx:if="{{mainData.workpresetjson.passcheck == 1}}" class="required-star">*</text>
|
|
|
+ {{language['是否合格']||'是否合格'}}
|
|
|
</view>
|
|
|
- <card>
|
|
|
- <view style="flex:1" slot="content">
|
|
|
- <!-- <upload id="upload"></upload> -->
|
|
|
- <sign-name id='signName' bindData="{{bindSignNameData}}"></sign-name>
|
|
|
+ <van-radio-group direction='horizontal' value="{{ form.ispasscheck }}" bind:change="changeIspasscheck">
|
|
|
+ <van-radio icon-size='14px' custom-class='label-class' name="1">{{language['合格']||'合格'}}</van-radio>
|
|
|
+ <van-radio icon-size='14px' custom-class='label-class' name="0">{{language['不合格']||'不合格'}}</van-radio>
|
|
|
+ </van-radio-group>
|
|
|
+ <view wx:if="{{form.ispasscheck== 1}}">
|
|
|
+ <view class="section-label">
|
|
|
+ {{ language['不合格原因']||'不合格原因'}}:
|
|
|
</view>
|
|
|
- </card>
|
|
|
+ <input value="{{form.amount || ''}}" placeholder="{{language['请填写不合格原因']||'请填写不合格原因'}}" bind:blur="amountPay" class="input-box" />
|
|
|
+ <view class="section-label">
|
|
|
+ <text class="required-star">*</text>
|
|
|
+ {{ language['上传不合格附件']||'上传不合格附件'}}:
|
|
|
+ </view>
|
|
|
+ <input value="{{form.amount || ''}}" placeholder="{{language['请填写不合格原因']||'请填写不合格原因'}}" bind:blur="amountPay" class="input-box" />
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
- <!-- 物料及人员 -->
|
|
|
- <view wx:if="{{mainData.workpresetjson.additem !== 0 || mainData.workpresetjson.addperson !== 0}}">
|
|
|
- <view style="margin-bottom: 5px;" class="small"><text class="label">{{language['物料及人员']||'物料及人员'}}</text></view>
|
|
|
- <card>
|
|
|
- <view style="flex:1" slot="content">
|
|
|
- <view class="custom-tab-header">
|
|
|
- <view
|
|
|
- class="custom-tab-item {{activeTab === 0 ? 'active' : ''}}"
|
|
|
- wx:if="{{mainData.workpresetjson.addperson !== 0}}"
|
|
|
- bindtap="onTabChange"
|
|
|
- data-value="0"
|
|
|
- >
|
|
|
- <text>{{language['培训人员']||'培训人员'}}</text>
|
|
|
- <text wx:if="{{mainData.workpresetjson.addperson == 11}}" style="color:#e34d59;margin-left:4rpx">*</text>
|
|
|
- </view>
|
|
|
- <view
|
|
|
- class="custom-tab-item {{activeTab === 1 ? 'active' : ''}}"
|
|
|
- wx:if="{{mainData.workpresetjson.additem !== 0}}"
|
|
|
- bindtap="onTabChange"
|
|
|
- data-value="1"
|
|
|
- >
|
|
|
- <text>{{language['工单物料']||'工单物料'}}</text>
|
|
|
- <text wx:if="{{mainData.workpresetjson.additem == 11}}" style="color:#e34d59;margin-left:4rpx">*</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="custom-tab-content">
|
|
|
- <view wx:if="{{activeTab === 0 && mainData.workpresetjson.addperson !== 0}}">
|
|
|
- <card wx:for="{{mainData.trainers}}">
|
|
|
- <menber-card style="flex:1" slot="content" data="{{item}}" bind:delete="deleteMenber"></menber-card>
|
|
|
- </card>
|
|
|
- <view class="flex-align-center flex-around panel">
|
|
|
- <t-button size="extra-small" variant="primary" bind:tap="addTrainers">{{language['添加人员']||'添加人员'}}</t-button>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view wx:if="{{activeTab === 1 && mainData.workpresetjson.additem !== 0}}">
|
|
|
- <card style="margin-top:10px" wx:for="{{titems}}" wx:key="itemid">
|
|
|
- <product-card isdelete="{{stopClick != 'stopClick'}}" changeQty="{{stopClick != 'stopClick'}}" style="flex:1" slot="content" data="{{item}}" bind:delete="deleteMaterial" bind:input="qtyChange"></product-card>
|
|
|
- </card>
|
|
|
- <view class="flex-align-center flex-around panel">
|
|
|
- <t-button size="extra-small" variant="primary" bind:tap="addProduct">{{language['添加物料']||'添加物料'}}</t-button>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <!-- 客户签名 -->
|
|
|
+ <view wx:if="{{mainData.workpresetjson.signature !== 0 && SignName}}">
|
|
|
+ <view class="panel">
|
|
|
+ <view class="section-title">
|
|
|
+ <text wx:if="{{mainData.workpresetjson.signature == 11}}" class="required-star">*</text>
|
|
|
+ <text>{{language['客户签名']||'客户签名'}}</text>
|
|
|
</view>
|
|
|
- </card>
|
|
|
+ <sign-name id='signName' bindData="{{bindSignNameData}}"></sign-name>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
-
|
|
|
<!-- 备注 -->
|
|
|
- <view>
|
|
|
- <view style="margin-bottom: 5px;" class="small"><text class="label">{{language['备注']||'备注'}}</text></view>
|
|
|
- <card>
|
|
|
- <view style="flex:1" slot="content">
|
|
|
- <t-textarea custom-style="padding:0" disabled="{{stopClick == 'stopClick'}}" value="{{form.remarks}}" t-class="external-class" placeholder="{{language['请输入备注']||'请输入备注'}}" disableDefaultPadding="{{true}}" bind:blur="remarkEdit" autosize />
|
|
|
- </view>
|
|
|
- </card>
|
|
|
+ <view class="panel">
|
|
|
+ <view class="section-title">{{language['备注']||'备注'}}</view>
|
|
|
+ <textarea disabled="{{stopClick == 'stopClick'}}" value="{{form.remarks}}" placeholder="{{language['请输入备注']||'请输入备注'}}" bind:blur="remarkEdit" auto-height style="width:100%;min-height:80rpx;padding:10rpx 0;" />
|
|
|
</view>
|
|
|
+ <!-- 操作按钮 -->
|
|
|
<view wx:if="{{stopClick != 'stopClick'}}">
|
|
|
- <t-button style="margin-bottom:10px" theme="primary" size="large" bind:tap="confirmBill" block>{{language['确认完成']||'确认完成'}}</t-button>
|
|
|
- <t-button theme="primary" size="large" bind:tap="saveNode" data-info="needBack" block>{{language['保存']||'保存'}}</t-button>
|
|
|
+ <van-button type="primary" size="large" bind:tap="saveNode" data-info="needBack" block>{{language['保存']||'保存'}}</van-button>
|
|
|
+ <van-button style="margin-bottom:10px" type="primary" size="large" bind:tap="confirmBill" block>{{language['确认完成']||'确认完成'}}</van-button>
|
|
|
</view>
|
|
|
</view>
|