| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 | <view class="{{stopClick}}" style="padding:10px">  <card>    <view slot="content">      {{mainData.workpresetjson.workname}}      <view class="flex-align-center">        <t-tag variant="dark" class="mr-5" theme="{{mainData.status == 0?'danger':mainData.status == 1?'success':'primary'}}" size="small">{{mainData.status == 0?(language['未完成']||'未完成'):mainData.status == 1?(language['完成']||'完成'):(language['进行中']||'进行中')}}</t-tag>        <t-tag wx:if="{{mainData.finishby}}" variant="dark" theme="primary" size="small">{{mainData.finishby}}</t-tag>      </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_options !== 0}}">    <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="upload" 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" 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="upload" 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 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">        <t-tabs defaultValue="{{mainData.workpresetjson.addperson !== 0?0:1}}" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs">          <t-tab-panel wx:if="{{mainData.workpresetjson.addperson !== 0}}" label="{{language['培训人员']||'培训人员'}}" value="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>          </t-tab-panel>          <t-tab-panel wx:if="{{mainData.workpresetjson.additem !== 0}}" label="{{language['工单物料']||'工单物料'}}" value="1">            <card style="margin-top:10px" wx:for="{{titems}}" wx:key="itemid">              <product-card style="flex:1" slot="content" data="{{item}}" changeQty="{{true}}" 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>          </t-tab-panel>        </t-tabs>      </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" value="{{form.remarks}}" t-class="external-class" placeholder="{{language['请输入备注']||'请输入备注'}}" disableDefaultPadding="{{true}}" bind:blur="remarkEdit" autosize />      </view>    </card>  </view>  <view wx:if="{{mainData.status != 1}}">    <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="updateNode" data-info="needBack" block>{{language['保存']||'保存'}}</t-button>  </view></view>
 |