积分审核

This commit is contained in:
liuye
2023-04-06 09:30:26 +08:00
parent 11de84e476
commit c52f00c7bf
3 changed files with 41 additions and 9 deletions

View File

@@ -3,7 +3,7 @@
<AiTopFixed> <AiTopFixed>
<div class="top-search"> <div class="top-search">
<div class="left"> <div class="left">
<u-search v-model="search.name" :clearabled="true" placeholder="请输入申请人审批人" :show-action="false" bg-color="#F5F5F5" <u-search v-model="search.name" :clearabled="true" placeholder="请输入申请人审批人" :show-action="false" bg-color="#F5F5F5"
search-icon-color="#999" color="#999" height="58" @search="getListInit" @clear="getListInit"> search-icon-color="#999" color="#999" height="58" @search="getListInit" @clear="getListInit">
</u-search> </u-search>
</div> </div>
@@ -12,12 +12,14 @@
<div class="item" @click="showDateSelect=true"> <div class="item" @click="showDateSelect=true">
<span v-if="!search.startTime" style="color:#999;">日期筛选</span> <span v-if="!search.startTime" style="color:#999;">日期筛选</span>
<span v-else>{{ search.startTime }}{{ search.endTime }}</span> <span v-else>{{ search.startTime }}{{ search.endTime }}</span>
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" /> <u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" v-if="!search.startTime" />
<img src="./img/del-icon.png" alt="" class="del-icon" v-else @click.stop="clearDate">
</div> </div>
<div class="item" @click="isShowType=true"> <div class="item" @click="isShowType=true">
<span style="color:#999;" v-if="!search.type">事件类型</span> <span style="color:#999;" v-if="!search.type">事件类型</span>
<span v-else>{{ search.typeName }}</span> <span v-else>{{ search.typeName }}</span>
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" /> <u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" v-if="!search.type"/>
<img src="./img/del-icon.png" alt="" class="del-icon" v-else @click.stop="clearType">
</div> </div>
</div> </div>
</AiTopFixed> </AiTopFixed>
@@ -86,6 +88,9 @@ export default {
this.getListInit() this.getListInit()
}) })
this.getTypeList() this.getTypeList()
uni.$on('updateList', () => {
this.getListInit()
})
}, },
methods: { methods: {
getListInit() { getListInit() {
@@ -103,7 +108,7 @@ export default {
}).then(res=> { }).then(res=> {
if(res?.data) { if(res?.data) {
res.data.records.map((item) => { res.data.records.map((item) => {
item.createTime = item.createTime.substring(0, 12) item.createTime = item.createTime.substring(0, 16)
}) })
this.list = this.current > 1 ? [...this.list, ...res.data.records]: res.data.records this.list = this.current > 1 ? [...this.list, ...res.data.records]: res.data.records
this.pages = Math.ceil(res.data.total / 10) this.pages = Math.ceil(res.data.total / 10)
@@ -141,6 +146,16 @@ export default {
this.getListInit() this.getListInit()
} }
}) })
},
clearDate() {
this.search.startTime = ''
this.search.endTime = ''
this.getListInit()
},
clearType() {
this.search.type = ''
this.search.typeName = ''
this.getListInit()
} }
}, },
onReachBottom() { onReachBottom() {
@@ -188,6 +203,12 @@ export default {
color: #666; color: #666;
line-height: 40px; line-height: 40px;
} }
.del-icon {
width: 32px;
height: 32px;
vertical-align: middle;
margin-left: 4px;
}
} }
} }
.list-content { .list-content {

View File

@@ -7,11 +7,11 @@
</div> </div>
<div class="user-flex"> <div class="user-flex">
<div>申请人{{info.createUserName}}</div> <div>申请人{{info.createUserName}}</div>
<div>电话号码{{info.phone}}</div> <div>电话号码<span style="color:#1365DD;" @click="callPhone(info.phone)">{{info.phone}}</span></div>
</div> </div>
<p class="text">{{info.content}}</p> <p class="text">{{info.content}}</p>
<div class="img-list" v-if="info.files && info.files.length"> <div class="img-list" v-if="info.files && info.files.length">
<img :src="item.accessUrl" alt="" v-for="(item, index) in info.files" :key="index"> <img :src="item.accessUrl" alt="" v-for="(item, index) in info.files" :key="index" @click="previewImages(info.files, item.accessUrl)">
</div> </div>
</div> </div>
<div class="pass-info" v-if="info.status == 2"> <div class="pass-info" v-if="info.status == 2">
@@ -65,7 +65,7 @@ export default {
}, },
confirm() { confirm() {
if(!this.value) { if(!this.value) {
return this.$u.toast('请输入不通过理由') return this.$u.toast('请输入不通过原因')
} }
this.submit(0) this.submit(0)
}, },
@@ -80,13 +80,24 @@ export default {
id: this.id, id: this.id,
auditStatus: status auditStatus: status
}).then(res=> { }).then(res=> {
if(res?.data) { if(res.code == 0) {
this.$u.toast('操作成功') this.$u.toast('操作成功')
uni.$emit('updateList')
this.show = false this.show = false
this.getDetail() this.getDetail()
} }
}) })
} },
previewImages(images, img) {
uni.previewImage({
urls: images.map(v => v.accessUrl),
current: img
})
},
callPhone(phone) {
uni.makePhoneCall({ phoneNumber: phone })
},
}, },
}; };
</script> </script>

Binary file not shown.

After

Width:  |  Height:  |  Size: 757 B