|
|
|
|
@ -10,7 +10,7 @@
|
|
|
|
|
<view class="search-row">
|
|
|
|
|
<view class="search small">
|
|
|
|
|
<view class="input-content">
|
|
|
|
|
<u-input :clearable="false" :value="select.keyword" placeholder="请输入要搜索的内容" height="30" :custom-style="inputStyle"
|
|
|
|
|
<u-input :clearable="false" :value="select.keyword" placeholder="关键词" height="30" :custom-style="inputStyle"
|
|
|
|
|
@input="searchInput"></u-input>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="icon">
|
|
|
|
|
@ -20,12 +20,12 @@
|
|
|
|
|
|
|
|
|
|
<view class="search small">
|
|
|
|
|
<view class="input-content">
|
|
|
|
|
<u-input :clearable="true" :value="select.village_name" placeholder="请输入村/社区名称" height="30" :custom-style="inputStyle"
|
|
|
|
|
<u-input :clearable="true" :value="select.village_name" placeholder="市/区/社区街道/镇/村" height="30" :custom-style="inputStyle"
|
|
|
|
|
@input="villageInput"></u-input>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="icon">
|
|
|
|
|
<!-- <view class="icon">
|
|
|
|
|
<u-icon name="home" size="46" color="#ABAEBE"></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
</view> -->
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
@ -37,6 +37,13 @@
|
|
|
|
|
</u-dropdown>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<!-- 产品类型 下拉 -->
|
|
|
|
|
<view class="drop-down" style="padding: 0 24rpx; margin-top: 16rpx;">
|
|
|
|
|
<u-dropdown>
|
|
|
|
|
<u-dropdown-item v-model="select.product_type_id" title="产品类型" :options="productTypeOptions" />
|
|
|
|
|
</u-dropdown>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<!-- 护理列表 -->
|
|
|
|
|
<view class="nursing-list">
|
|
|
|
|
<view v-if="nursingList && nursingList.length > 0">
|
|
|
|
|
@ -143,6 +150,9 @@ export default {
|
|
|
|
|
{ label: '正常', value: 0 },
|
|
|
|
|
{ label: '死亡', value: 1 },
|
|
|
|
|
],
|
|
|
|
|
productTypeOptions: [
|
|
|
|
|
{ label: '全部', value: 'all' }
|
|
|
|
|
],
|
|
|
|
|
optionsStatus: [{
|
|
|
|
|
label: '全部',
|
|
|
|
|
value: ''
|
|
|
|
|
@ -191,12 +201,24 @@ export default {
|
|
|
|
|
has_quality_callbacks: 'all',
|
|
|
|
|
is_dead: 'all',
|
|
|
|
|
lat: '',
|
|
|
|
|
lng: ''
|
|
|
|
|
lng: '',
|
|
|
|
|
product_type_id: 'all'
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getAgeByIdcard,
|
|
|
|
|
async loadProductTypes() {
|
|
|
|
|
try {
|
|
|
|
|
const res = await this.$u.api.adminProductTypeList({ page: 1, page_size: 99,sort_type:'desc',sort_name:'sortnumber' })
|
|
|
|
|
const list = (res && res.data && res.data.data) ? res.data.data : (res && res.data ? res.data : [])
|
|
|
|
|
this.productTypeOptions = [{ label: '全部', value: 'all' }].concat(
|
|
|
|
|
(list || []).map(it => ({ label: it.name, value: it.id }))
|
|
|
|
|
)
|
|
|
|
|
} catch (e) {
|
|
|
|
|
// ignore
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
refresh(){
|
|
|
|
|
this.select = {
|
|
|
|
|
page_size: 10,
|
|
|
|
|
@ -206,7 +228,8 @@ export default {
|
|
|
|
|
has_quality_callbacks: 'all',
|
|
|
|
|
is_dead: 'all',
|
|
|
|
|
lat: '',
|
|
|
|
|
lng: ''
|
|
|
|
|
lng: '',
|
|
|
|
|
product_type_id: 'all'
|
|
|
|
|
}
|
|
|
|
|
this.nursingList = []
|
|
|
|
|
this.getList()
|
|
|
|
|
@ -250,6 +273,7 @@ export default {
|
|
|
|
|
const params = { ...this.select }
|
|
|
|
|
if (params.has_quality_callbacks === 'all') params.has_quality_callbacks = ''
|
|
|
|
|
if (params.is_dead === 'all') params.is_dead = ''
|
|
|
|
|
if (params.product_type_id === 'all') params.product_type_id = ''
|
|
|
|
|
const response = await this.$u.api.adminCustomerList(params)
|
|
|
|
|
console.log("response",response)
|
|
|
|
|
let res = response.data
|
|
|
|
|
@ -304,6 +328,11 @@ export default {
|
|
|
|
|
this.nursingList = []
|
|
|
|
|
this.select.page = 1
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
'select.product_type_id'(val) {
|
|
|
|
|
this.nursingList = []
|
|
|
|
|
this.select.page = 1
|
|
|
|
|
this.getList()
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onReachBottom() {
|
|
|
|
|
@ -314,6 +343,7 @@ export default {
|
|
|
|
|
onShow() {
|
|
|
|
|
this.select.page = 1
|
|
|
|
|
this.nursingList = []
|
|
|
|
|
this.loadProductTypes()
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
onPageScroll(e) {
|
|
|
|
|
|