纸通宝SAAS仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

42 lines
2.6 KiB

<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">员工资料</view>
</cu-custom>
<van-notice-bar color="#1989fa" background="#008AFF" left-icon="info-o" text="{{ cardNo ? '选择员工进行绑定' : '点击可以修改员工信息' }}" wx:if="{{form.enterpriseMemberId || cardNo }}" mode="{{ cardNo ? 'link' : '' }}" bind:click="chooseMember"/>
<van-field value="{{ form.enterpriseMemberId }}" label="员工编号:" disabled wx:if="{{ form.enterpriseMemberId }}" />
<van-field value="{{ form.cardNo }}" label="卡号:" disabled wx:if="{{ cardNo }}"/>
<van-field value="{{ form.enterpriseMemberName || form.applicantName }}" label="员工姓名:" disabled placeholder="请输入员工姓名" bind:input="bindInput" />
<van-field value="{{ form.mobile || form.applicationMobile }}" type="number" label="手机号码:" disabled placeholder="请输入手机号码" />
<van-field value="{{ form.enterpriseRoleNames }}" placeholder="请选择角色" label="员工角色:" clickable readonly disabled="{{ !form.enterpriseMemberId }}" is-link bindtap="chooseMethod" />
<van-cell wx:if="{{form.enterpriseMemberId}}">
<view slot="title" class="flex flex-justify">
<view class="text-black">员工状态:</view>
<van-radio-group value="{{ form.status }}" bind:change="onChange" direction="horizontal">
<view class="flex flex-center">
<van-radio name="{{0}}" icon-size="18px">启用</van-radio>
<van-radio name="{{1}}" icon-size="18px" style="margin-left: 32rpx">停用</van-radio>
</view>
</van-radio-group>
</view>
</van-cell>
<view style="height:32rpx"></view>
<view style="margin-top:20rpx;padding:48rpx 32rpx" wx:if="{{ cardNo }}">
<!-- <van-button block type="default" bind:click="chooseMember">选择员工进行绑定</van-button>
<view style="height:36rpx"></view> -->
<van-button block type="info" bind:click="submitForm">保存</van-button>
</view>
<view style="margin-top:20rpx;padding:48rpx 32rpx" wx:elif="{{ form.enterpriseMemberId }}">
<van-button block type="danger" bind:click="deleteForm">删除</van-button>
<view style="height:36rpx"></view>
<van-button block type="info" bind:click="submitForm">保存</van-button>
</view>
<view style="margin-top:20rpx;padding:48rpx 32rpx" wx:else>
<van-button block type="info" bind:click="agreeForm">同意</van-button>
</view>
<van-dialog id="van-dialog" />
<van-popup position="bottom" show="{{ visible }}" bind:close="onHide" z-index="29">
<van-checker show-toolbar title="选择角色" columns="{{ roleList }}" active-id="{{ form.enterpriseRoleIds }}" bind:cancel="onHide" bind:confirm="onConfirm" />
</van-popup>
<notification id="qn-notification" />