| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- <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>
- </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>
- </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>
- <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>
- </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>
- </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>
- <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>
- <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>
- </card>
- </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>
- <card>
- <view style="flex:1" slot="content">
- <!-- <upload id="upload"></upload> -->
- <sign-name id='signName' bindData="{{bindSignNameData}}"></sign-name>
- </view>
- </card>
- </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>
- </card>
- </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>
- <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>
- </view>
- </view>
|