45081927 by 杨炀

+ loading

1 parent 6becca11
......@@ -149,8 +149,12 @@
reason: reason || '',
rangeIds: rangeIds
}
console.log(obj)
api.mobilizeAudit(obj).then((res) => {
console.log(obj)
uni.showLoading({
title: '加载中'
})
api.mobilizeAudit(obj).then((res) => {
uni.hideLoading()
uni.showToast({
title: '操作成功',
icon: 'none'
......
......@@ -157,7 +157,8 @@
function getList() {
uni.showLoading({
title: '加载中'
title: '加载中',
mask: true
})
if (deptType.value == 2 || deptType.value == 3) {
// 省
......@@ -223,8 +224,13 @@
recordIds: []
}
obj.recordIds.push(recordId)
console.log(obj)
api.groupAudit(obj).then((res) => {
console.log(obj)
uni.showLoading({
title: '加载中',
mask: true
})
api.groupAudit(obj).then((res) => {
uni.hideLoading()
uni.showToast({
title: '操作成功',
icon: 'none'
......
......@@ -93,15 +93,17 @@
})
function init() {
uni.showLoading({
title: '加载中'
})
deptType.value = app.globalData.deptType
getList()
}
function getList() {
function getList() {
uni.showLoading({
title: '加载中',
mask: true
})
api.getGroupList(queryParams.value).then(response => {
infoList.value = response.rows
infoList.value.forEach(item => {
......
......@@ -217,8 +217,12 @@
reason: reason || '',
rangeIds: rangeIds
}
console.log(obj)
api.mobilizeAudit(obj).then((res) => {
console.log(obj)
uni.showLoading({
title: '加载中'
})
api.mobilizeAudit(obj).then((res) => {
uni.hideLoading()
uni.showToast({
title: '操作成功',
icon: 'none'
......
......@@ -152,8 +152,12 @@
reason: reason || '',
ids: [id]
}
console.log(obj)
api.groupChangeAudit(obj).then((res) => {
console.log(obj)
uni.showLoading({
title: '加载中'
})
api.groupChangeAudit(obj).then((res) => {
uni.hideLoading()
uni.showToast({
title: '操作成功',
icon: 'none'
......
<template>
<view class="hasfixedbottom">
<view class="searchbar">
<uni-easyinput placeholderStyle="font-size:30rpx" :input-border="false" prefixIcon="search"
v-model="query.name" placeholder="搜索团体会员名称" @blur="getSonList" @clear="getSonList">
</uni-easyinput>
<view class="invertedbtn-red" @click="getSonList">搜索</view>
</view>
<view class="userlist">
<view class="item" v-for=" (n,index) in studentList" :key="index">
<view @click="checkThis(n)">
<image class="icon" v-if="n.checked"
:src="config.baseUrl_api+'/fs/static/member/dx_dwn.png'" />
<image class="icon" v-else :src="config.baseUrl_api+'/fs/static/member/dx.png'" />
</view>
<view class="w100">
<view class="name">{{n.name}} <text v-if="n.memCode">({{n.memCode}})</text></view>
<view class="flexbox" style="padding: 0">
<view class="date">到期时间
<text v-if="n.validityDate">{{n.validityDate?.slice(0,10)}}</text>
<text v-else>--</text>
</view>
<view class="date w50">团体类型
<text v-if="n.deptType == 2">一级协会</text>
<text v-if="n.deptType == 3">直属协会</text>
<text v-if="n.deptType == 4">二级协会</text>
<text v-if="n.deptType == 5">三级协会</text>
<text v-if="n.deptType == 6">职业性团体会员</text>
</view>
</view>
</view>
</view>
<view class="nodata" v-if="studentList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<text>无可变更会员</text>
</view>
</view>
<uni-load-more @clickLoadMore="clickLoadMore" :contentText="contentText" :status="status"></uni-load-more>
<view class="fixedBottom" v-if="studentList.length!=0">
<button class="btn-red" @click="handleImport">批量添加</button>
</view>
</view>
<view class="hasfixedbottom">
<view class="searchbar">
<uni-easyinput placeholderStyle="font-size:30rpx" :input-border="false" prefixIcon="search"
v-model="query.name" placeholder="搜索团体会员名称" @blur="getSonList" @clear="getSonList">
</uni-easyinput>
<view class="invertedbtn-red" @click="getSonList">搜索</view>
</view>
<view class="userlist">
<view class="item" v-for=" (n,index) in studentList" :key="index">
<view @click="checkThis(n)">
<image class="icon" v-if="n.checked" :src="config.baseUrl_api+'/fs/static/member/dx_dwn.png'" />
<image class="icon" v-else :src="config.baseUrl_api+'/fs/static/member/dx.png'" />
</view>
<view class="w100">
<view class="name">{{n.name}} <text v-if="n.memCode">({{n.memCode}})</text></view>
<view class="flexbox" style="padding: 0">
<view class="date">到期时间
<text v-if="n.validityDate">{{n.validityDate?.slice(0,10)}}</text>
<text v-else>--</text>
</view>
<view class="date w50">团体类型
<text v-if="n.deptType == 2">一级协会</text>
<text v-if="n.deptType == 3">直属协会</text>
<text v-if="n.deptType == 4">二级协会</text>
<text v-if="n.deptType == 5">三级协会</text>
<text v-if="n.deptType == 6">职业性团体会员</text>
</view>
</view>
</view>
</view>
<view class="nodata" v-if="studentList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<text>无可变更会员</text>
</view>
</view>
<uni-load-more @clickLoadMore="clickLoadMore" :contentText="contentText" :status="status"></uni-load-more>
<view class="fixedBottom" v-if="studentList.length!=0">
<button class="btn-red" @click="handleImport">批量添加</button>
</view>
</view>
</template>
<script setup>
import {
ref
} from 'vue'
import {
onLoad,
onShow
} from '@dcloudio/uni-app'
import * as api from '@/common/api.js'
import _ from 'lodash'
import config from '/config.js'
const query = ref({
pageNum:1,
pageSize:10,
paymentRangeId:-1,
})
const total = ref(0)
const list = ref([])
const studentList = ref([])
const type = ref('')
const form = ref({})
const status = ref('no-more')
const contentText = ref({contentdown: "点击加载更多",contentrefresh: "正在加载...",contentnomore: "没有更多数据了"})
onLoad((option) => {
if (option.rangeId) {
query.value.paymentRangeId = option.rangeId
}
getList()
})
onShow(() => {})
function clickLoadMore(){
getList()
}
function getList() {
if(total.value>0&&total.value>studentList.value.length){
uni.showLoading({
title: '加载中',
icon: 'none'
})
status.value = 'loading'
query.value.pageNum += 1
api.getMySonList(query.value).then(res => {
studentList.value = _.concat(studentList.value,res.data.rows)
total.value = res.data.total
if(total.value>studentList.value.length){
status.value = 'more'
} else {
status.value = 'no-more'
}
uni.hideLoading()
})
}else if(total.value==0){
getSonList()
import {
ref
} from 'vue'
import {
onLoad,
onShow
} from '@dcloudio/uni-app'
import * as api from '@/common/api.js'
import _ from 'lodash'
import config from '/config.js'
const query = ref({
pageNum: 1,
pageSize: 10,
paymentRangeId: -1,
})
const total = ref(0)
const list = ref([])
const studentList = ref([])
const type = ref('')
const form = ref({})
const status = ref('no-more')
const contentText = ref({
contentdown: "点击加载更多",
contentrefresh: "正在加载...",
contentnomore: "没有更多数据了"
})
onLoad((option) => {
if (option.rangeId) {
query.value.paymentRangeId = option.rangeId
}
getList()
})
onShow(() => {})
function clickLoadMore() {
getList()
}
}
function getSonList(){
query.value.pageNum = 1
api.getMySonList(query.value).then(res => {
studentList.value = res.data.rows
total.value = res.data.total
if(total.value>studentList.value.length){
status.value = 'more'
} else {
status.value = 'no-more'
}
})
}
function checkThis(n) {
if (n.checked) {
n.checked = false
} else {
n.checked = true
}
}
function handleImport() {
var arr = []
for (var n of studentList.value) {
if (n.checked) {
arr.push(n.memId)
}
}
api.addGroupInfoModeToRange({
memId: arr,
rangeIdStr: query.value.paymentRangeId
}).then(res => {
var pages = getCurrentPages()
var prevPage = pages[pages.length - 2]
prevPage.onShow(res.data)
uni.navigateBack()
})
}
function getList() {
if (total.value > 0 && total.value > studentList.value.length) {
uni.showLoading({
title: '加载中',
mask: true
})
status.value = 'loading'
query.value.pageNum += 1
api.getMySonList(query.value).then(res => {
studentList.value = _.concat(studentList.value, res.data.rows)
total.value = res.data.total
if (total.value > studentList.value.length) {
status.value = 'more'
} else {
status.value = 'no-more'
}
uni.hideLoading()
})
} else if (total.value == 0) {
getSonList()
}
}
function getSonList() {
query.value.pageNum = 1
api.getMySonList(query.value).then(res => {
studentList.value = res.data.rows
total.value = res.data.total
if (total.value > studentList.value.length) {
status.value = 'more'
} else {
status.value = 'no-more'
}
})
}
function checkThis(n) {
if (n.checked) {
n.checked = false
} else {
n.checked = true
}
}
function handleImport() {
var arr = []
for (var n of studentList.value) {
if (n.checked) {
arr.push(n.memId)
}
}
api.addGroupInfoModeToRange({
memId: arr,
rangeIdStr: query.value.paymentRangeId
}).then(res => {
var pages = getCurrentPages()
var prevPage = pages[pages.length - 2]
prevPage.onShow(res.data)
uni.navigateBack()
})
}
</script>
<style scoped lang="scss">
.searchbar {
display: flex;
align-items: center;
padding:25rpx;
box-sizing: border-box;
:deep(.uni-easyinput .uni-easyinput__content) {
border-radius: 35rpx;
height: 66rpx; border: 1px solid #AD181F!important;
}
:deep(.uni-easyinput__content-input) {
font-size: 26rpx;
}
.invertedbtn-red {
border-radius: 50px; margin-left: 20rpx;
background-color: #fff;
font-size: 30rpx;
padding: 10rpx 20rpx;
}
}
.userlist {padding: 0 25rpx;}
<style scoped lang="scss">
.searchbar {
display: flex;
align-items: center;
padding: 25rpx;
box-sizing: border-box;
:deep(.uni-easyinput .uni-easyinput__content) {
border-radius: 35rpx;
height: 66rpx;
border: 1px solid #AD181F !important;
}
:deep(.uni-easyinput__content-input) {
font-size: 26rpx;
}
.invertedbtn-red {
border-radius: 50px;
margin-left: 20rpx;
background-color: #fff;
font-size: 30rpx;
padding: 10rpx 20rpx;
}
}
.userlist {
padding: 0 25rpx;
}
.flexbox {
padding: 30rpx 30rpx 0
}
......@@ -202,6 +212,9 @@ function handleImport() {
.text-center .btn-red-kx {
border-radius: 50px;
font-size: 28rpx;
}
:deep(.file-picker__progress){opacity: 0;}
}
:deep(.file-picker__progress) {
opacity: 0;
}
</style>
\ No newline at end of file
......
......@@ -90,7 +90,8 @@
function init() {
uni.showLoading({
title: '加载中'
title: '加载中',
mask: true
})
deptType.value = app.globalData.deptType
userType.value = app.globalData.userType
......
......@@ -98,9 +98,6 @@
})
function init() {
uni.showLoading({
title: '加载中'
})
deptType.value = app.globalData.deptType
userType.value = app.globalData.userType
getList()
......@@ -108,6 +105,10 @@
function getList() {
uni.showLoading({
title: '加载中',
mask: true
})
api.getVerityList(queryParams.value).then(res => {
uni.hideLoading()
const list = []
......@@ -131,9 +132,6 @@
function onClickItem(e) {
console.log(e)
uni.showLoading({
title: '加载中'
})
queryParams.value.status = e.currentIndex
getList()
}
......
......@@ -111,7 +111,8 @@
function getList() {
uni.showLoading({
title: '加载中'
title: '加载中',
mask: true
})
totalCost.value = 0
api.getVerityMergeList(queryParams.value).then(response => {
......@@ -138,9 +139,6 @@
function onClickItem(e) {
console.log(e)
uni.showLoading({
title: '加载中'
})
queryParams.value.status = e.currentIndex
getList()
}
......@@ -198,7 +196,11 @@
function doApproval(obj) {
console.log(obj)
uni.showLoading({
title: '加载中'
})
api.doMergeFlows(obj).then((res) => {
uni.hideLoading()
uni.showToast({
title: '操作成功',
icon: 'none'
......
......@@ -95,22 +95,20 @@
})
function init() {
uni.showLoading({
title: '加载中'
})
deptType.value = app.globalData.deptType
getList()
}
function onClickItem(e) {
uni.showLoading({
title: '加载中'
})
queryParams.value.status = e.currentIndex
getList()
}
function getList() {
function getList() {
uni.showLoading({
title: '加载中',
mask: true
})
examApi.getRankScoreList(queryParams.value).then(res => {
infoList.value = res.rows
......@@ -162,8 +160,12 @@
}
}
function doApproval(obj) {
examApi.doMergeFlows(obj).then((res) => {
function doApproval(obj) {
uni.showLoading({
title: '加载中'
})
examApi.doMergeFlows(obj).then((res) => {
uni.hideLoading()
uni.showToast({
title: '操作成功',
icon: 'none'
......
......@@ -81,22 +81,20 @@ onShow(() => {
})
function init(){
uni.showLoading({
title: '加载中'
})
deptType.value = app.globalData.deptType
getList()
}
function onClickItem(e) {
uni.showLoading({
title: '加载中'
})
queryParams.value.status = e.currentIndex
getList()
}
function getList() {
uni.showLoading({
title: '加载中',
mask: true
})
examApi.getVerityList(queryParams.value).then(res => {
uni.hideLoading()
const list = []
......@@ -165,7 +163,11 @@ function audit(item, flag) {
}
function doApproval(obj) {
uni.showLoading({
title: '加载中'
})
examApi.doMergeFlows(obj).then((res) => {
uni.hideLoading()
uni.showToast({
title: '操作成功',
icon: 'none'
......
......@@ -77,22 +77,20 @@ onShow(() => {
})
function init(){
uni.showLoading({
title: '加载中'
})
deptType.value = app.globalData.deptType
getList()
}
function onClickItem(e) {
uni.showLoading({
title: '加载中'
})
queryParams.value.certStatus = e.currentIndex
getList()
}
function getList() {
uni.showLoading({
title: '加载中',
mask: true
})
examApi.certsLList(queryParams.value).then(res => {
uni.hideLoading()
infoList.value = res.rows
......
......@@ -185,8 +185,13 @@
}
}
function doApproval(obj) {
examApi.doMergeFlows(obj).then((res) => {
function doApproval(obj) {
uni.showLoading({
title: '加载中',
mask: true
})
examApi.doMergeFlows(obj).then((res) => {
uni.hideLoading()
uni.showToast({
title: '操作成功',
icon: 'none'
......
......@@ -183,8 +183,13 @@ function doApproval(recordId, flag, reason) {
recordIds: []
}
obj.recordIds.push(recordId)
console.log(obj)
api.audit(obj).then((res) => {
console.log(obj)
uni.showLoading({
title: '加载中',
mask: true
})
api.audit(obj).then((res) => {
uni.hideLoading()
uni.showToast({
title: '操作成功',
icon: 'none'
......
......@@ -155,8 +155,12 @@
reason: reason || '',
ids: [id]
}
console.log(obj)
api.changeLevelAudit(obj).then((res) => {
console.log(obj)
uni.showLoading({
title: '加载中'
})
api.changeLevelAudit(obj).then((res) => {
uni.hideLoading()
uni.showToast({
title: '操作成功',
icon: 'none'
......
......@@ -150,8 +150,13 @@
reason: reason || '',
ids: [id]
}
console.log(obj)
api.personChangeAudit(obj).then((res) => {
console.log(obj)
uni.showLoading({
title: '加载中',
mask: true
})
api.personChangeAudit(obj).then((res) => {
uni.hideLoading()
uni.showToast({
title: '操作成功',
icon: 'none'
......
......@@ -81,7 +81,8 @@
}
function getList(){
uni.showLoading({
title:'加载中'
title: '加载中',
mask: true
})
api.infoMergeRangeList(queryParams.value).then(res=>{
list.value = res.rows
......
......@@ -74,7 +74,8 @@
})
function getList(){
uni.showLoading({
title:'加载中'
title: '加载中',
mask: true
})
api.infoMergeRangeList(queryParams.value).then(res=>{
list.value = res.rows
......@@ -148,8 +149,13 @@
reason: reason || '',
ids: [id]
}
console.log(obj)
api.mergerVipAudit(obj).then((res) => {
console.log(obj)
uni.showLoading({
title: '加载中',
mask:true
})
api.mergerVipAudit(obj).then((res) => {
uni.hideLoading()
uni.showToast({
title: '操作成功',
icon: 'none'
......
......@@ -123,9 +123,6 @@
})
function init() {
uni.showLoading({
title: '加载中'
})
deptType.value = app.globalData.deptType
if (deptType.value == 2 || deptType.value == 3) {
queryParams.value.dgId = -1
......@@ -147,9 +144,6 @@
function onClickItem(e) {
console.log(e)
uni.showLoading({
title: '加载中'
})
if (deptType.value == 2 || deptType.value == 3) {
queryParams.value.dgId = -1
queryParams.value.shenRes = e.currentIndex
......@@ -167,7 +161,8 @@
function getList() {
uni.showLoading({
title: '加载中'
title: '加载中',
mask: true
})
api.getMobilizelist(queryParams.value).then(res => {
uni.hideLoading()
......@@ -285,8 +280,13 @@
reason: reason || '',
rangeIds: rangeId
}
console.log(obj)
api.mobilizeAudit(obj).then((res) => {
console.log(obj)
uni.showLoading({
title: '加载中',
mask: true
})
api.mobilizeAudit(obj).then((res) => {
uni.hideLoading()
uni.showToast({
title: '操作成功',
icon: 'none'
......
......@@ -151,8 +151,12 @@
reason: reason || '',
rangeIds: rangeIds
}
console.log(obj)
api.mobilizeAudit(obj).then((res) => {
console.log(obj)
uni.showLoading({
title: '加载中'
})
api.mobilizeAudit(obj).then((res) => {
uni.hideLoading()
uni.showToast({
title: '操作成功',
icon: 'none'
......
......@@ -125,7 +125,8 @@
if (res.confirm) {
uni.showLoading({
icon: 'none',
title: '提交中'
title: '提交中',
mask: true
})
api.personalCommit(row.rangId).then(res => {
uni.hideLoading()
......
......@@ -188,16 +188,21 @@
title: '提示',
content: `确认合并已选中的数据?`,
success: function(res) {
if (res.confirm) {
api.mergePayMentApi({ recordIds: ids}).then(res => {
if (res.confirm) {
uni.showLoading({
title: '加载中',
mask: true
})
api.mergePayMentApi({ recordIds: ids}).then(resp => {
// uni.showToast({
// title: `操作成功`
// })
uni.hideLoading()
uni.showModal({
title: '提示',
content: `合并完成,是否进行审核数据提交?`,
success: function(res) {
if (res.confirm) {
success: function(resp) {
if (resp.confirm) {
goMergeUp()
}
}
......
......@@ -111,19 +111,22 @@
switch (e.currentIndex) {
case 0:
queryParams.value.mergeFlag = 101
queryParams.value.status = null
queryParams.value.statusFlag = 101
break;
case 1:
queryParams.value.mergeFlag = 1
queryParams.value.status = 0
queryParams.value.status = 0
queryParams.value.statusFlag = 102
break;
case 2:
queryParams.value.mergeFlag = 1
queryParams.value.status = 1
queryParams.value.status = 1
queryParams.value.statusFlag = 103
break;
case 3:
queryParams.value.mergeFlag = 1
queryParams.value.status = 2
queryParams.value.status = 2
queryParams.value.statusFlag = 104
break;
}
getList()
......@@ -161,12 +164,16 @@
title: '提示',
content: `确定提交${item.content.name}?`,
success: function(res) {
if (res.confirm) {
if (res.confirm) {
uni.showLoading({
title: '加载中'
})
api.doMergeFlowsPer({
recordIds: [item.recordId],
flag: '1',
reason: null
}).then(res => {
}).then(res => {
uni.hideToast()
uni.showToast({
title: `操作成功!`
})
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!