YZProjectCloud/yanzhu-ui-app/miniprogram/pages/project_subusers/add/index.wxml

235 lines
14 KiB
Plaintext

<view class="header_title">
<view class="header_title_row">
<van-row>
<van-col span="4">
<view class="header_img" bindtap="returnToPage">
<image src="/images/left.png"></image>
</view>
</van-col>
<van-col span="15">
<view class="header_name">{{form.id?'修改':'新增'}}班组人员</view>
</van-col>
</van-row>
</view>
</view>
<view class="max_content">
<van-steps steps="{{ flowNodes }}" active="{{ active }}" />
<view class="inspect_info">
<view class="module_title_2 module_title_padding">
<view>{{form.projectName}}</view>
</view>
<view class="inspect_info_list" wx:if="{{form.id}}">
<view class="markers inspect_info_title">参建单位
<text style="font-size: small; color: #ff711e;">[不可修改]</text>
</view>
<view class="inspect_info_content">
<input placeholder="请填写参建单位" placeholder-style="color:#6777aa;" model:value="{{form.subDeptName}}" disabled class="inspect_input_fill_out" />
</view>
</view>
<view class="inspect_info_list" wx:if="{{!form.id}}">
<view class="markers inspect_info_title">参建单位
<text style="font-size: small; color: #ff711e;">[不可修改]</text>
</view>
<view class="inspect_info_content">
<voucher-select columns="{{subDeptList}}" placeholder="请选择参建单位" bindchange="onSubDept" selectValue="{{form.subDeptId}}"></voucher-select>
</view>
</view>
<view class="inspect_info_list" wx:if="{{form.subDeptTypeName}}">
<view class="markers inspect_info_title">单位类型
<text style="font-size: small; color: #ff711e;">[不可修改]</text>
</view>
<view class="inspect_info_content">
<input placeholder="请填写单位类型" placeholder-style="color:#6777aa;" model:value="{{form.subDeptTypeName}}" disabled class="inspect_input_fill_out" />
</view>
</view>
<view class="inspect_info_list" wx:if="{{form.id}}">
<view class="markers inspect_info_title">所属班组
<text style="font-size: small; color: #ff711e;">[不可修改]</text>
</view>
<view class="inspect_info_content">
<input placeholder="请填写所属班组" placeholder-style="color:#6777aa;" model:value="{{form.subDeptGroupName}}" disabled class="inspect_input_fill_out" />
</view>
</view>
<view class="inspect_info_list" wx:if="{{!form.id}}">
<view class="markers inspect_info_title">所属班组</view>
<view class="inspect_info_content">
<voucher-select columns="{{subGroupList}}" placeholder="请选择所属班组" bindchange="onSubGroup" selectValue="{{form.subDeptGroup}}"></voucher-select>
</view>
</view>
<view class="inspect_info_list" wx:if="{{form.craftTypeName}}">
<view class="markers inspect_info_title">班组岗位
<text style="font-size: small; color: #ff711e;">[不可修改]</text>
</view>
<view class="inspect_info_content">
<input placeholder="请填写班组岗位" placeholder-style="color:#6777aa;" model:value="{{form.craftTypeName}}" disabled class="inspect_input_fill_out" />
</view>
</view>
<view class="inspect_info_list" wx:if="{{form.id}}">
<view class="markers inspect_info_title">工种岗位
<text wx:if="{{form.craftType=='3' || form.craftPost}}" style="font-size: small; color: #ff711e;">[不可修改]</text>
</view>
<view class="inspect_info_content" wx:if="{{form.craftType=='3' || form.userPost=='3'}}">
<input placeholder="请填写工种岗位" placeholder-style="color:#6777aa;" model:value="{{form.craftPostName}}" disabled class="inspect_input_fill_out" />
</view>
<view class="inspect_info_content" wx:else>
<!-- <voucher-select columns="{{userPostList}}" placeholder="请选择工种岗位" bindchange="onUserPost" selectValue="{{form._userPost}}"></voucher-select> -->
<input placeholder="请填写工种岗位" placeholder-style="color:#6777aa;" model:value="{{form.craftPostName}}" disabled class="inspect_input_fill_out" />
</view>
</view>
<view class="inspect_info_list" wx:if="{{!form.id}}">
<view class="markers inspect_info_title">工种岗位
<text wx:if="{{form.craftPost}}" style="font-size: small; color: #ff711e;">[不可修改]</text>
</view>
<view class="inspect_info_content" wx:if="{{form.craftPost}}">
<input placeholder="请填写工种岗位" placeholder-style="color:#6777aa;" model:value="{{form.craftPostName}}" disabled class="inspect_input_fill_out" />
</view>
<view class="inspect_info_content" wx:if="{{!form.craftPost}}">
<voucher-select columns="{{userPostList}}" placeholder="请选择工种岗位" bindchange="onUserPost" selectValue="{{form._userPost}}"></voucher-select>
</view>
</view>
<view class="safety_inspect_title module_title_flex" wx:if="{{form.userPost=='3'}}">
<text class="color_delete">班组长不能修改工种岗位。</text>
</view>
<view class="inspect_info_list">
<van-row>
<van-col span="12">
<view class="markers inspect_info_title">身份证正面
</view>
<view class="inspect_info_content" style="margin-left: 10px;">
<file-uploader bindimages="fileUploadCardImgPos" iconClass="in-zcard-click" limit="{{limit}}" fileUrlArray="{{form.cardImgPos}}"></file-uploader>
</view>
</van-col>
<van-col span="12">
<view class="markers inspect_info_title">身份证反面
</view>
<view class="inspect_info_content" style="margin-left: 10px;">
<file-uploader bindimages="fileUploadCardImgInv" iconClass="in-fcard-click" limit="{{limit}}" fileUrlArray="{{form.cardImgInv}}"></file-uploader>
</view>
</van-col>
</van-row>
</view>
<view class="inspect_info_list">
<view class="markers inspect_info_title">半身近照
<text style="font-size: small; color: #ff711e;">[进场扫脸,请上传清晰照片]</text>
</view>
<view class="inspect_info_content" style="margin-left: 10px;">
<file-uploader bindimages="fileUploadUserPicture" limit="{{limit}}" fileUrlArray="{{form.userPicture}}"></file-uploader>
</view>
</view>
<view class="inspect_info_list" wx:if="{{(form.subDeptType=='4' || form.subDeptType=='5') && (form._userPost=='2' || form._userPost=='6')}}">
<view class="markers inspect_info_title">劳务单位委托书
<text style="font-size: small; color: #ff711e;">[需加盖劳务单位的公章委托书照片]</text>
</view>
<view class="inspect_info_content" style="margin-left: 10px;">
<file-uploader bindimages="fileUploadDeptPower" limit="{{limit}}" fileUrlArray="{{form.subDeptPowerPath}}"></file-uploader>
</view>
</view>
<view class="inspect_info_list">
<view class="markers inspect_info_title">人员姓名
<text style="font-size: small; color: #ff711e;">[不可输入,证件自动识别]</text>
</view>
<view class="inspect_info_content">
<input placeholder="请填写姓名" placeholder-style="color:#6777aa;" bindinput="inputUserName" class="inspect_input_fill_in" disabled maxlength="30" model:value="{{form.userName}}" />
</view>
</view>
<view class="inspect_info_list">
<view class="markers inspect_info_title">身份证号
<text style="font-size: small; color: #ff711e;">[不可输入,证件自动识别]</text>
</view>
<view class="inspect_info_content">
<input placeholder="请填写身份证号" placeholder-style="color:#6777aa;" bindinput="inputUserCode" class="inspect_input_fill_in" disabled maxlength="30" model:value="{{form.cardCode}}" />
</view>
</view>
<view class="inspect_info_list">
<view class="markers inspect_info_title">联系电话
<text wx:if="{{form.id}}" style="font-size: small; color: #ff711e;">[不可修改]</text>
</view>
<view class="inspect_info_content" wx:if="{{form.id}}">
<input placeholder-style="color:#6777aa;" model:value="{{form.userPhone}}" disabled class="inspect_input_fill_out" disabled />
</view>
<view class="inspect_info_content" wx:if="{{!form.id}}">
<input placeholder="请填写联系电话" placeholder-style="color:#6777aa;" bindinput="inputUserPhone" model:value="{{form.userPhone}}" class="inspect_input_fill_in" maxlength="11"/>
</view>
</view>
<view class="inspect_info_list">
<view class="markers inspect_info_title">民族
<text style="font-size: small; color: #ff711e;">[不可输入,证件自动识别]</text>
</view>
<view class="inspect_info_content">
<input placeholder="请填写民族" placeholder-style="color:#6777aa;" bindinput="inputOriginNation" class="inspect_input_fill_in" disabled maxlength="30" model:value="{{form.nation}}" />
</view>
</view>
<view class="inspect_info_list">
<view class="markers inspect_info_title">籍贯
<text style="font-size: small; color: #ff711e;">[不可输入,证件自动识别]</text>
</view>
<view class="inspect_info_content">
<input placeholder="请填写籍贯" placeholder-style="color:#6777aa;" bindinput="inputOriginNative" class="inspect_input_fill_in" disabled maxlength="30" model:value="{{form.nativePlace}}" />
</view>
</view>
<view class="inspect_info_list">
<view class="markers inspect_info_title">地址
<text style="font-size: small; color: #ff711e;">[不可输入,证件自动识别]</text>
</view>
<view class="inspect_info_content">
<textarea class="add_textarea" placeholder="请填写地址" placeholder-style="color:#6777aa;" maxlength="64" disabled bindblur="inputOriginAddress" model:value="{{form.address}}" />
</view>
</view>
<view class="inspect_info_list">
<view class="markers inspect_info_title">紧急联系人</view>
<view class="inspect_info_content">
<input placeholder="请填写紧急联系人" placeholder-style="color:#6777aa;" bindinput="inputUrgentUser" class="inspect_input_fill_in" model:value="{{form.emergencyContact}}" maxlength="30" />
</view>
</view>
<view class="inspect_info_list">
<view class="markers inspect_info_title">紧急联系人电话</view>
<view class="inspect_info_content">
<input placeholder="请填写紧急联系人电话" placeholder-style="color:#6777aa;" bindinput="inputUrgentUserPhone" class="inspect_input_fill_in" maxlength="11" model:value="{{form.contactPhone}}" />
</view>
</view>
<view class="inspect_info_list">
<view class="markers inspect_info_title">文化程度</view>
<view class="inspect_info_content">
<voucher-select columns="{{eduCationalType}}" placeholder="请选择文化程度" bindchange="onDegreeGrade" selectValue="{{form.degreeGrade}}"></voucher-select>
</view>
</view>
<view class="inspect_info_list">
<view class="inspect_info_title">开户银行名称
<text style="font-size: small; color: antiquewhite;">[非必填]</text>
</view>
<view class="inspect_info_content">
<input placeholder="请填写开户银行名称" placeholder-style="color:#6777aa;" bindinput="inputBankName" class="inspect_input_fill_in" maxlength="30" model:value="{{form.bankName}}" />
</view>
</view>
<view class="inspect_info_list">
<view class="inspect_info_title">开户银行网点
<text style="font-size: small; color: antiquewhite;">[非必填,开户银行地址]</text>
</view>
<view class="inspect_info_content">
<input placeholder="请填写开户银行网点" placeholder-style="color:#6777aa;" bindinput="inputBankOffice" class="inspect_input_fill_in" maxlength="30" model:value="{{form.bankOffice}}" />
</view>
</view>
<view class="inspect_info_list">
<view class="inspect_info_title">工资银行卡号
<text style="font-size: small; color: antiquewhite;">[非必填]</text>
</view>
<view class="inspect_info_content">
<input placeholder="请填写工资银行卡号" placeholder-style="color:#6777aa;" bindinput="inputBankCardNo" class="inspect_input_fill_in" maxlength="30" model:value="{{form.bankCardNo}}" />
</view>
</view>
<view class="safety_inspect_title module_title_flex">
<text class="color_orange">{{form.id?'修改':'新增'}}人员信息不进入审核流程、{{form.id?'修改':'新增'}}后立即生效。</text>
</view>
</view>
<view class="problem_submit_to">
<view class="problem_submit_to_btn" bindtap="cancelSaveView">取消</view>
<view class="problem_submit_to_btn problem_submit_to_save" bindtap="submitSubUsers">提交保存</view>
</view>
</view>
<van-overlay show="{{loadShow}}">
<view class="gif">
<image src="/images/loding.gif"></image>
<view>数据处理中!请稍后...</view>
</view>
</van-overlay>