|
|
|
|
@ -22,55 +22,55 @@
|
|
|
|
|
<view v-if="nursingList && nursingList.length > 0">
|
|
|
|
|
<view v-for="(item,index) in nursingList" :key="index" class="list-item">
|
|
|
|
|
<view class="top">
|
|
|
|
|
<view v-if="item.customer.quality_callbacks_count>0" @click="pageTo('/package_sub/pages/quality/qualityHistory?customer_id='+item.customer_id)" class="time">
|
|
|
|
|
回访次数 <text style="color:#2979ff">{{ item.customer.quality_callbacks_count }}</text> 次</view>
|
|
|
|
|
<view v-if="item.quality_callbacks_count>0" @click="pageTo('/package_sub/pages/quality/qualityHistory?customer_id='+item.id)" class="time">
|
|
|
|
|
回访次数 <text style="color:#2979ff">{{ item.quality_callbacks_count }}</text> 次</view>
|
|
|
|
|
<view v-else class="time">回访次数 {{ 0 }} 次</view>
|
|
|
|
|
<view class="status">
|
|
|
|
|
<view class="status-text">{{ item.product.product_type.name }}</view>
|
|
|
|
|
<view class="status-text">{{ item.product_type.name }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="line"></view>
|
|
|
|
|
<view class="center">
|
|
|
|
|
<view class="avatar">
|
|
|
|
|
<u-image :src="item.customer.sex === '男' ? vuex_male_img : vuex_female_img" height="104"
|
|
|
|
|
<u-image :src="item.sex === '男' ? vuex_male_img : vuex_female_img" height="104"
|
|
|
|
|
width="104" shape="circle"></u-image>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="user-info">
|
|
|
|
|
<view class="name">{{item.customer.name}}</view>
|
|
|
|
|
<view class="name">{{item.name}}</view>
|
|
|
|
|
<view class="tel">
|
|
|
|
|
<view>
|
|
|
|
|
<u-icon name="phone" size="28" color="#1479FF"></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="text">{{item.customer.phone || '无'}}</view>
|
|
|
|
|
<view class="text">{{item.phone || '无'}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="address">
|
|
|
|
|
<view>
|
|
|
|
|
<u-icon name="map" size="28" color="#1479FF"></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="text">{{defaultAddress(item.customer.customer_address).address || '无'}}</view>
|
|
|
|
|
<view class="text">{{defaultAddress(item.customer_address).address || '无'}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="age">
|
|
|
|
|
<view>
|
|
|
|
|
<u-icon name="calendar" size="28" color="#1479FF"></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="text">{{getAgeByIdcard(item.customer.idcard) || '-'}}岁</view>
|
|
|
|
|
<view class="text">{{getAgeByIdcard(item.idcard) || '-'}}岁</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="dislevel">
|
|
|
|
|
<view>
|
|
|
|
|
<u-icon name="eye-off" size="28" color="#1479FF"></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="text">失能等级{{ item.customer.level_type_detail ? item.customer.level_type_detail.value : '' }} {{ item.customer.level_detail ? item.customer.level_detail.value : '' }}</view>
|
|
|
|
|
<view class="text">失能等级{{ item.level_type_detail ? item.level_type_detail.value : '' }} {{ item.level_detail ? item.level_detail.value : '' }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="contact">
|
|
|
|
|
<view>
|
|
|
|
|
<u-icon name="man-add-fill" size="28" color="#1479FF"></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="text">联系人 {{ item.customer.contact_name }}</view>
|
|
|
|
|
<view class="text">联系人 {{ item.contact_name }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="sex">
|
|
|
|
|
<view class="sex-text">
|
|
|
|
|
{{item.customer.sex || '无'}}
|
|
|
|
|
{{item.sex || '无'}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
@ -79,7 +79,7 @@
|
|
|
|
|
<u-button style="width: 90%;margin: 10rpx auto 0;"
|
|
|
|
|
type="primary"
|
|
|
|
|
ripple
|
|
|
|
|
@click="pageTo('/package_sub/pages/addQuality/addQuality?customer_id='+item.customer_id+'&customer_name='+item.customer.name)">质控回访</u-button>
|
|
|
|
|
@click="pageTo('/package_sub/pages/addQuality/addQuality?customer_id='+item.id+'&customer_name='+item.name)">质控回访</u-button>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
@ -176,9 +176,9 @@ export default {
|
|
|
|
|
this.$u.debounce(this.getList, 1000)
|
|
|
|
|
},
|
|
|
|
|
async getList() {
|
|
|
|
|
const response = await this.$u.api.adminQualityCustomer(this.select)
|
|
|
|
|
const response = await this.$u.api.adminCustomerList(this.select)
|
|
|
|
|
console.log("response",response)
|
|
|
|
|
let res = response.list
|
|
|
|
|
let res = response.data
|
|
|
|
|
if (res.data.length > 0 && res.data) {
|
|
|
|
|
this.nursingList.push(...res.data)
|
|
|
|
|
this.status = 'loadmore'
|
|
|
|
|
|