123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <import-sjs from="../../../util/formateFuc.sjs" name="formate"></import-sjs>
- <view class="common-page-padding">
- <!-- 客户列表 -->
- <view a:if="{{listShow}}">
- <view class="customer-list">
- <view class="customer-item common-card" a:for="{{customerList}}" key="{{index}}">
- <view class="main-info">
- <text class="customer-name">{{item.employerName}}</text>
- <text class="link-text" data-id="{{index}}" onTap="editCustomer" data-emReNo="{{item.employRelationNo}}" data-emName="{{item.employerName}}">编辑信息</text>
- </view>
- <view class="work-day">
- {{item.servantTaskPeriod.workDay}}
- </view>
- <view>
- 保姆工种:{{formate.serviceType(item.servantType)}}
- </view>
- <view class="bind-dashboard">
- <view>关联时间:{{formate.bindTime(item.relationTime)}}</view>
- <view class="link-text" onTap="enterServantCenter" data-emReNo="{{item.employRelationNo}}">进入工作台 > </view>
- </view>
- </view>
- </view>
-
- <view class="common-button-wrapper">
- <button type="primary" class="common-button" hover-class="active-button" onTap="bindNewCustomer">添加客户</button>
- </view>
- <modal
- show="{{editModalShow}}"
- showClose="{{false}}"
- onButtonClick="onModalClose"
- buttons="{{buttonFooter}}"
- >
- <view slot="header">编辑雇主信息</view>
- <input class="input" maxlength="10" placeholder="请输入雇主称呼" onInput="bindKeyInput" value="{{customerName}}"/>
-
- </modal>
- </view>
- <!-- 暂无保姆 -->
- <view a:if="{{noCustomerList}}">
- <view class="no-content-wrapper">
- <image mode="aspectFill" src="/image/no-content.png"/>
- </view>
- <view class="no-add">您还未关联客户</view>
- <view class="no-add-tips">关联客户,沟通更轻松</view>
- <view class="mini-button-wrapper">
- <button type="primary" class="common-button" hover-class="active-button" size="mini" onTap="bindNewCustomer">现在关联</button>
- </view>
- <view class="switch-role" onTap="switchRole">角色选择错啦,去切换 >> </view>
- <modal
- show="{{unSetModal}}"
- showClose="{{false}}"
- onButtonClick="onSetButtonClick"
- buttonsLayout="vertical"
- buttons="{{unSetBtn}}"
- >
- <view slot="header">您尚未设置雇主哦</view>
- 快向雇主索要关联码吧
- </modal>
- </view>
- <!-- 关联雇主 -->
- <modal
- show="{{bindModalShow}}"
- showClose="{{false}}"
- onButtonClick="onBindModalClose"
- buttons="{{buttonFooter}}"
- >
- <view slot="header">关联雇主</view>
- <view class="bind-input-wrapper">
- <input class="input" maxlength="9" placeholder="请输入关联码" onInput="bindCodeInput" value="{{bindCode}}" type="number"/>
- <input class="input" maxlength="10" placeholder="请输入雇主称呼" onInput="bindNameInput" value="{{bindName}}" />
-
- </view>
-
- </modal>
- </view>
|