提交代码
This commit is contained in:
parent
0d439c842f
commit
60ec364439
@ -70,10 +70,10 @@
|
||||
<image class="moudle-icon" src="/static/safeMange/danger_project.png"></image>
|
||||
<text>危大工程</text>
|
||||
</view>
|
||||
<!-- <view class="moudle-item flex" @click="jumpPage(7)" v-if="COMPANY != 'sanjiang'">-->
|
||||
<!-- <image class="moudle-icon" src="/static/safeMange/danger_check.png"></image>-->
|
||||
<!-- <text>危大验收</text>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="moudle-item flex" @click="jumpPage(7)" v-if="COMPANY != 'sanjiang'">
|
||||
<image class="moudle-icon" src="/static/safeMange/danger_check.png"></image>
|
||||
<text>危大验收</text>
|
||||
</view> -->
|
||||
<!-- <view class="moudle-item flex" @click="jumpPage(6)">
|
||||
<image class="moudle-icon" src="/static/safeMange/enterprise_examine.png"></image>
|
||||
<text>企业检查</text>
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
<!-- @click="jobLookDetails(item.id)" 暂时不跳详情页 -->
|
||||
<view class="ukashList-what">
|
||||
<span style="font-size: 14px;font-weight: 700;">材料名称: {{item.name}}</span>
|
||||
<span class="ukashList-look">查看明细</span>
|
||||
<!-- <span class="ukashList-look">查看明细</span> -->
|
||||
</view>
|
||||
<view class="ukashList-time">型号: {{item.model}}</view>
|
||||
<view class="ukashList-time">规格: {{item.specifications}}</view>
|
||||
@ -40,12 +40,10 @@
|
||||
id: ''
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.queryList()
|
||||
},
|
||||
onLoad(vai) {
|
||||
console.log(vai.itemS);
|
||||
this.id = vai.itemS
|
||||
this.queryList()
|
||||
},
|
||||
onReachBottom() {
|
||||
console.log(99999);
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
<span style="font-size: 14px;font-weight: 700;">{{item.name}}</span>
|
||||
<span class="ukashList-look">查看明细</span>
|
||||
</view>
|
||||
<view class="ukashList-time">企业: {{item.enterpriseName}}</view>
|
||||
<view class="ukashList-time">入场时间: {{item.entryTime}}</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -32,10 +33,11 @@
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
isLoadMore: false,
|
||||
dataList: []
|
||||
dataList: [],
|
||||
isFinished: false
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
onLoad() {
|
||||
this.queryList()
|
||||
},
|
||||
onReachBottom() {
|
||||
@ -52,13 +54,13 @@
|
||||
this.pageNo = 1
|
||||
this.dataList = []
|
||||
this.queryList()
|
||||
this.isFinished = false
|
||||
},
|
||||
methods: {
|
||||
queryList(name = null) {
|
||||
queryList() {
|
||||
let data = {
|
||||
pageNo: this.pageNo,
|
||||
pageSize: this.pageSize,
|
||||
name: name ? name : null
|
||||
}
|
||||
let _this = this
|
||||
this.sendRequest({
|
||||
@ -67,12 +69,14 @@
|
||||
data: data,
|
||||
success: res => {
|
||||
console.log(res);
|
||||
this.dataList=this.dataList.concat(res.result.records)
|
||||
// this.dataList = this.dataList.concat(res.result.records)
|
||||
|
||||
this.dataList = [...this.dataList, ...res.result.records]
|
||||
// console.log(this.dataList , res.result.total);
|
||||
// this.dataList = res.result.records
|
||||
if (res.result.records.length < this.pageSize) {
|
||||
//判断接口返回数据量小于请求数据量,则表示此为最后一页
|
||||
this.isLoadMore = true
|
||||
this.loadStatus = 'nomore'
|
||||
} else {
|
||||
this.isLoadMore = false
|
||||
// that.loadStatus='more'
|
||||
@ -88,9 +92,35 @@
|
||||
})
|
||||
},
|
||||
handleInput(e) {
|
||||
console.log(e);
|
||||
this.dataList = null
|
||||
this.queryList(e.detail.value)
|
||||
this.dataList = []
|
||||
let data = {
|
||||
pageNo: this.pageNo,
|
||||
pageSize: this.pageSize,
|
||||
name: e.detail.value ? e.detail.value : null
|
||||
}
|
||||
let _this = this
|
||||
this.sendRequest({
|
||||
url: 'xmgl/xzMaterial/page',
|
||||
method: 'post',
|
||||
data: data,
|
||||
success: res => {
|
||||
console.log(res);
|
||||
// this.dataList = this.dataList.concat(res.result.records)
|
||||
|
||||
this.dataList = [...this.dataList, ...res.result.records]
|
||||
// console.log(this.dataList , res.result.total);
|
||||
// this.dataList = res.result.records
|
||||
if (res.result.records.length < this.pageSize) {
|
||||
//判断接口返回数据量小于请求数据量,则表示此为最后一页
|
||||
this.isLoadMore = true
|
||||
} else {
|
||||
this.isLoadMore = false
|
||||
// that.loadStatus='more'
|
||||
}
|
||||
uni.stopPullDownRefresh()
|
||||
// console.log(res.result)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -134,7 +164,7 @@
|
||||
}
|
||||
|
||||
.ukashList-time {
|
||||
margin-top: 20px;
|
||||
margin-top: 10px;
|
||||
margin-left: 20px;
|
||||
font-size: 12px;
|
||||
color: #b9bbc9;
|
||||
|
||||
@ -8,34 +8,34 @@
|
||||
<view class="details">
|
||||
<view class="details-item">
|
||||
<span>访客姓名</span>
|
||||
<span>{{result.name}}</span>
|
||||
<span>{{result.visitName}}</span>
|
||||
</view>
|
||||
<view class="details-item">
|
||||
<span>访客身份证号</span>
|
||||
<span>{{result.model}}</span>
|
||||
<span>{{result.idCard}}</span>
|
||||
</view>
|
||||
<view class="details-item">
|
||||
<span>预约人姓名</span>
|
||||
<span>{{result.specifications}}</span>
|
||||
<span>{{result.appointmentName}}</span>
|
||||
</view>
|
||||
<view class="details-item">
|
||||
<span>预约结果</span>
|
||||
<span>{{result.unit}}</span>
|
||||
<span>{{ result.isSuccess === 0 ? '预约成功' : '预约失败'}}</span>
|
||||
</view>
|
||||
<view class="details-item">
|
||||
<span>预约有效开始时间</span>
|
||||
<span>{{result.num}}</span>
|
||||
<span>{{result.beginTime}}</span>
|
||||
</view>
|
||||
<view class="details-item">
|
||||
<span>预约有效结束时间</span>
|
||||
<span>{{result.num}}</span>
|
||||
<span>{{result.endTime}}</span>
|
||||
</view>
|
||||
<view class="details-state" style="height: 100px;">
|
||||
<span>当前状态</span>
|
||||
<span>{{result.remark}}</span>
|
||||
<span>{{ result.isEnable === 0 ? '预约有效' : '预约已失效'}}</span>
|
||||
</view>
|
||||
</view>
|
||||
<view class="delete">删除</view>
|
||||
<view class="delete" @click="deleteEvent">删除</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -68,7 +68,7 @@
|
||||
}
|
||||
let _this = this
|
||||
this.sendRequest({
|
||||
url: 'xmgl/xzMaterialDetail/queryById',
|
||||
url: 'xmgl/xzVisitorManageRecord/queryById',
|
||||
method: 'post',
|
||||
data: data,
|
||||
success: res => {
|
||||
@ -76,6 +76,34 @@
|
||||
this.result = res.result
|
||||
}
|
||||
})
|
||||
},
|
||||
deleteEvent(){
|
||||
let data = {
|
||||
id: this.id
|
||||
}
|
||||
let _this = this
|
||||
this.sendRequest({
|
||||
url: 'xmgl/xzVisitorManageRecord/delete',
|
||||
method: 'post',
|
||||
data: data,
|
||||
success: res => {
|
||||
console.log(res);
|
||||
// this.result = res.result
|
||||
if(res.code=== 200){
|
||||
uni.showToast({
|
||||
title: '删除成功',
|
||||
duration: 2000,
|
||||
icon: 'none',
|
||||
mask: true,
|
||||
})
|
||||
setTimeout(() => {
|
||||
uni.navigateBack({
|
||||
url:'visitorsManage'
|
||||
})
|
||||
}, 1000)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -111,8 +139,8 @@
|
||||
padding: 0 15px;
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.delete{
|
||||
|
||||
.delete {
|
||||
position: absolute;
|
||||
bottom: 60px;
|
||||
left: 0;
|
||||
|
||||
@ -6,25 +6,25 @@
|
||||
</view>
|
||||
</headers>
|
||||
<input class="uni-input" name="searchName" v-model="search" placeholder="请搜索访客姓名" @input="handleInput" />
|
||||
<view>
|
||||
<view class="visitors" @click="jobMaterials('ooooooo')">
|
||||
<view v-if="dataList.length > 0">
|
||||
<view class="visitors" @click="jobMaterials(item.id)" v-for="item in dataList" :key="item.id">
|
||||
<view class="ukashList-what">
|
||||
<span>访客姓名:浏览</span>
|
||||
<span :class="['ukashList-look',state === 0 ? 'green' : 'red']">访客姓名:浏览</span>
|
||||
<span>访客姓名: {{item.visitName}}</span>
|
||||
<span :class="['ukashList-look',item.isSuccess === 1 ? 'green' : 'red']">{{item.isSuccess===1?'预约成功':'预约失败'}}</span>
|
||||
</view>
|
||||
<view class="ukashList-time">访客身份证号:</view>
|
||||
<view class="ukashList-time">预约人姓名:</view>
|
||||
<view class="ukashList-time">预约开始时间:</view>
|
||||
<view class="ukashList-time">访客身份证号: {{item.idCard}}</view>
|
||||
<view class="ukashList-time">预约人姓名: {{ item.appointmentName }}</view>
|
||||
<view class="ukashList-time">预约开始时间: {{ item.beginTime }}</view>
|
||||
<view class="ukashList-what" style="font-size: 12px;color: #b9bbc9;">
|
||||
<span>预约结束时间:</span>
|
||||
<span :class="['ukashList-look',isBrowsing === 0 ? 'blue' : 'grey']">访客姓名:浏览</span>
|
||||
<span>预约结束时间: {{ item.endTime }}</span>
|
||||
<span :class="['ukashList-look',item.isEnable === 1 ? 'blue' : 'grey']" v-if="item.isSuccess === 1">{{ item.isEnable === 1 ? '预约有效' : '预约已失效' }}</span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="no-data" v-else>
|
||||
<view class="no-data" v-else>
|
||||
<image class="img" src="/static/noData.png"></image>
|
||||
<text class="txt">暂无数据</text>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
isBrowsing : 0
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
onLoad() {
|
||||
this.queryList()
|
||||
},
|
||||
onReachBottom() {
|
||||
@ -68,12 +68,12 @@
|
||||
}
|
||||
let _this = this
|
||||
this.sendRequest({
|
||||
url: 'xmgl/visitorManageRecord/list',
|
||||
url: 'xmgl/xzVisitorManageRecord/page',
|
||||
method: 'post',
|
||||
data: data,
|
||||
success: res => {
|
||||
console.log(res);
|
||||
this.dataList = res.result.records
|
||||
this.dataList = this.dataList.concat(res.result.records)
|
||||
if (res.result.records.length < this.pageSize) {
|
||||
//判断接口返回数据量小于请求数据量,则表示此为最后一页
|
||||
this.isLoadMore = true
|
||||
@ -94,8 +94,32 @@
|
||||
},
|
||||
handleInput(e) {
|
||||
console.log(e);
|
||||
this.dataList = null
|
||||
this.queryList(e.detail.value)
|
||||
this.dataList = []
|
||||
let data = {
|
||||
pageNo: this.pageNo,
|
||||
pageSize: this.pageSize,
|
||||
visitName: e.detail.value ? e.detail.value : null
|
||||
}
|
||||
let _this = this
|
||||
this.sendRequest({
|
||||
url: 'xmgl/xzVisitorManageRecord/page',
|
||||
method: 'post',
|
||||
data: data,
|
||||
success: res => {
|
||||
console.log(res);
|
||||
this.dataList = this.dataList.concat(res.result.records)
|
||||
if (res.result.records.length < this.pageSize) {
|
||||
//判断接口返回数据量小于请求数据量,则表示此为最后一页
|
||||
this.isLoadMore = true
|
||||
this.loadStatus = 'nomore'
|
||||
} else {
|
||||
this.isLoadMore = false
|
||||
// that.loadStatus='more'
|
||||
}
|
||||
uni.stopPullDownRefresh()
|
||||
// console.log(res.result)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user