45081927 by 杨炀

+ loading

1 parent 6becca11
...@@ -150,7 +150,11 @@ ...@@ -150,7 +150,11 @@
150 rangeIds: rangeIds 150 rangeIds: rangeIds
151 } 151 }
152 console.log(obj) 152 console.log(obj)
153 uni.showLoading({
154 title: '加载中'
155 })
153 api.mobilizeAudit(obj).then((res) => { 156 api.mobilizeAudit(obj).then((res) => {
157 uni.hideLoading()
154 uni.showToast({ 158 uni.showToast({
155 title: '操作成功', 159 title: '操作成功',
156 icon: 'none' 160 icon: 'none'
......
...@@ -157,7 +157,8 @@ ...@@ -157,7 +157,8 @@
157 157
158 function getList() { 158 function getList() {
159 uni.showLoading({ 159 uni.showLoading({
160 title: '加载中' 160 title: '加载中',
161 mask: true
161 }) 162 })
162 if (deptType.value == 2 || deptType.value == 3) { 163 if (deptType.value == 2 || deptType.value == 3) {
163 // 省 164 // 省
...@@ -224,7 +225,12 @@ ...@@ -224,7 +225,12 @@
224 } 225 }
225 obj.recordIds.push(recordId) 226 obj.recordIds.push(recordId)
226 console.log(obj) 227 console.log(obj)
228 uni.showLoading({
229 title: '加载中',
230 mask: true
231 })
227 api.groupAudit(obj).then((res) => { 232 api.groupAudit(obj).then((res) => {
233 uni.hideLoading()
228 uni.showToast({ 234 uni.showToast({
229 title: '操作成功', 235 title: '操作成功',
230 icon: 'none' 236 icon: 'none'
......
...@@ -93,15 +93,17 @@ ...@@ -93,15 +93,17 @@
93 }) 93 })
94 94
95 function init() { 95 function init() {
96 uni.showLoading({ 96
97 title: '加载中'
98 })
99 deptType.value = app.globalData.deptType 97 deptType.value = app.globalData.deptType
100 getList() 98 getList()
101 } 99 }
102 100
103 101
104 function getList() { 102 function getList() {
103 uni.showLoading({
104 title: '加载中',
105 mask: true
106 })
105 api.getGroupList(queryParams.value).then(response => { 107 api.getGroupList(queryParams.value).then(response => {
106 infoList.value = response.rows 108 infoList.value = response.rows
107 infoList.value.forEach(item => { 109 infoList.value.forEach(item => {
......
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
19 <text v-if="item.status == 3" class="text-warning">审核撤回</text> 19 <text v-if="item.status == 3" class="text-warning">审核撤回</text>
20 </view> 20 </view>
21 <view class="date">提交日期:{{item.content.commitTime}}</view> 21 <view class="date">提交日期:{{item.content.commitTime}}</view>
22 <view class="date" v-if="item.content.validityTime">原有效期:{{item.content.validityTime?.slice(0,10)}}</view> 22 <view class="date" v-if="item.content.validityTime">原有效期:{{item.content.validityTime?.slice(0,10)}}
23 </view>
23 <view class="text-primary" v-if="item.content?.wfCode">{{item.content?.wfCode}}</view> 24 <view class="text-primary" v-if="item.content?.wfCode">{{item.content?.wfCode}}</view>
24 <view class="name mt0" style="width: 100%;" @click="goDetail(item)">{{item.content?.certName}}</view> 25 <view class="name mt0" style="width: 100%;" @click="goDetail(item)">{{item.content?.certName}}</view>
25 <view class="flexbox" @click="goDetail(item)"> 26 <view class="flexbox" @click="goDetail(item)">
...@@ -29,7 +30,8 @@ ...@@ -29,7 +30,8 @@
29 </view> 30 </view>
30 <view> 31 <view>
31 会员/新会员 32 会员/新会员
32 <view>{{item.content.allCount}}/<text class="text-danger">{{item.content.newCount}}</text></view> 33 <view>{{item.content.allCount}}/<text class="text-danger">{{item.content.newCount}}</text>
34 </view>
33 </view> 35 </view>
34 <view> 36 <view>
35 费用合计 37 费用合计
...@@ -55,29 +57,29 @@ ...@@ -55,29 +57,29 @@
55 </template> 57 </template>
56 58
57 <script setup> 59 <script setup>
58 import * as api from '@/common/api.js' 60 import * as api from '@/common/api.js'
59 import config from '@/config.js' 61 import config from '@/config.js'
60 import { 62 import {
61 onMounted, 63 onMounted,
62 ref 64 ref
63 } from 'vue' 65 } from 'vue'
64 import { 66 import {
65 onLoad 67 onLoad
66 } from '@dcloudio/uni-app' 68 } from '@dcloudio/uni-app'
67 const app = getApp(); 69 const app = getApp();
68 const queryParams = ref({ 70 const queryParams = ref({
69 // pageNum: 1, 71 // pageNum: 1,
70 // pageSize: 10 72 // pageSize: 10
71 mergeFlag: 100, 73 mergeFlag: 100,
72 statusFlag: '101' 74 statusFlag: '101'
73 }) 75 })
74 const navs = ref(['待提交','审核中', '审核通过', '审核拒绝', '已撤回']) 76 const navs = ref(['待提交', '审核中', '审核通过', '审核拒绝', '已撤回'])
75 const current = ref() 77 const current = ref()
76 const list = ref([]) 78 const list = ref([])
77 const total = ref(0) 79 const total = ref(0)
78 const deptType = ref('') 80 const deptType = ref('')
79 const userType = ref('') 81 const userType = ref('')
80 onLoad(() => { 82 onLoad(() => {
81 if (app.globalData.isLogin) { 83 if (app.globalData.isLogin) {
82 init() 84 init()
83 } else { 85 } else {
...@@ -86,18 +88,18 @@ onLoad(() => { ...@@ -86,18 +88,18 @@ onLoad(() => {
86 init() 88 init()
87 }; 89 };
88 } 90 }
89 }) 91 })
90 92
91 function init() { 93 function init() {
92 deptType.value = app.globalData.deptType 94 deptType.value = app.globalData.deptType
93 userType.value = app.globalData.userType 95 userType.value = app.globalData.userType
94 // console.log(userType.value) 96 // console.log(userType.value)
95 getList() 97 getList()
96 } 98 }
97 99
98 function onClickItem(e) { 100 function onClickItem(e) {
99 console.log(e) 101 console.log(e)
100 switch(e.currentIndex){ 102 switch (e.currentIndex) {
101 case 0: 103 case 0:
102 queryParams.value.statusFlag = 101 104 queryParams.value.statusFlag = 101
103 break; 105 break;
...@@ -115,11 +117,12 @@ function onClickItem(e) { ...@@ -115,11 +117,12 @@ function onClickItem(e) {
115 break; 117 break;
116 } 118 }
117 getList() 119 getList()
118 } 120 }
119 121
120 function getList() { 122 function getList() {
121 uni.showLoading({ 123 uni.showLoading({
122 title:'加载中' 124 title: '加载中',
125 mask: true
123 }) 126 })
124 if (queryParams.value.statusFlag == '') { 127 if (queryParams.value.statusFlag == '') {
125 queryParams.value.mergeFlag = 100 128 queryParams.value.mergeFlag = 100
...@@ -154,9 +157,9 @@ function getList() { ...@@ -154,9 +157,9 @@ function getList() {
154 }) 157 })
155 total.value = res.total 158 total.value = res.total
156 }) 159 })
157 } 160 }
158 161
159 function handleAudit(item){ 162 function handleAudit(item) {
160 uni.showModal({ 163 uni.showModal({
161 title: '提示', 164 title: '提示',
162 content: `确定提交${item.content.certName}吗`, 165 content: `确定提交${item.content.certName}吗`,
...@@ -166,38 +169,41 @@ function handleAudit(item){ ...@@ -166,38 +169,41 @@ function handleAudit(item){
166 flag: '1', 169 flag: '1',
167 recordIds: [item.recordId], 170 recordIds: [item.recordId],
168 reason: null 171 reason: null
169 }).then(res=>{ 172 }).then(res => {
170 getList() 173 getList()
171 uni.showToast({ 174 uni.showToast({
172 title:`操作成功!` 175 title: `操作成功!`
173 }) 176 })
174 }) 177 })
175 } 178 }
176 } 179 }
177 }) 180 })
178 } 181 }
179 182
180 function goDetail(item) { 183 function goDetail(item) {
181 const form = encodeURIComponent(JSON.stringify(item)) 184 const form = encodeURIComponent(JSON.stringify(item))
182 // 查看 185 // 查看
183 let path = `/group/apply/mergeUpDetail?&form=${form}` 186 let path = `/group/apply/mergeUpDetail?&form=${form}`
184 uni.navigateTo({ 187 uni.navigateTo({
185 url: path 188 url: path
186 }); 189 });
187 } 190 }
188 function goMerge(){ 191
192 function goMerge() {
189 let path = `/group/apply/merge` 193 let path = `/group/apply/merge`
190 uni.redirectTo({ 194 uni.redirectTo({
191 url: path 195 url: path
192 }); 196 });
193 } 197 }
194 function goApply(){ 198
199 function goApply() {
195 let path = `/group/apply/applyList` 200 let path = `/group/apply/applyList`
196 uni.redirectTo({ 201 uni.redirectTo({
197 url: path 202 url: path
198 }); 203 });
199 } 204 }
200 function sendBack(row){ 205
206 function sendBack(row) {
201 uni.showModal({ 207 uni.showModal({
202 title: '提示', 208 title: '提示',
203 content: `确定撤回${row.content.certName}吗`, 209 content: `确定撤回${row.content.certName}吗`,
...@@ -217,8 +223,9 @@ function sendBack(row){ ...@@ -217,8 +223,9 @@ function sendBack(row){
217 } 223 }
218 } 224 }
219 }) 225 })
220 } 226 }
221 function resolution(row){ 227
228 function resolution(row) {
222 uni.showModal({ 229 uni.showModal({
223 title: '提示', 230 title: '提示',
224 content: `确定拆分${row.content.certName}吗`, 231 content: `确定拆分${row.content.certName}吗`,
...@@ -235,10 +242,16 @@ function resolution(row){ ...@@ -235,10 +242,16 @@ function resolution(row){
235 } 242 }
236 } 243 }
237 }) 244 })
238 } 245 }
239 </script> 246 </script>
240 247
241 <style scoped> 248 <style scoped>
242 .mt0{margin-top: 0!important;} 249 .mt0 {
243 .appList .appItem .name{width: 80%;word-break: break-all;} 250 margin-top: 0 !important;
251 }
252
253 .appList .appItem .name {
254 width: 80%;
255 word-break: break-all;
256 }
244 </style> 257 </style>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -218,7 +218,11 @@ ...@@ -218,7 +218,11 @@
218 rangeIds: rangeIds 218 rangeIds: rangeIds
219 } 219 }
220 console.log(obj) 220 console.log(obj)
221 uni.showLoading({
222 title: '加载中'
223 })
221 api.mobilizeAudit(obj).then((res) => { 224 api.mobilizeAudit(obj).then((res) => {
225 uni.hideLoading()
222 uni.showToast({ 226 uni.showToast({
223 title: '操作成功', 227 title: '操作成功',
224 icon: 'none' 228 icon: 'none'
......
...@@ -153,7 +153,11 @@ ...@@ -153,7 +153,11 @@
153 ids: [id] 153 ids: [id]
154 } 154 }
155 console.log(obj) 155 console.log(obj)
156 uni.showLoading({
157 title: '加载中'
158 })
156 api.groupChangeAudit(obj).then((res) => { 159 api.groupChangeAudit(obj).then((res) => {
160 uni.hideLoading()
157 uni.showToast({ 161 uni.showToast({
158 title: '操作成功', 162 title: '操作成功',
159 icon: 'none' 163 icon: 'none'
......
...@@ -10,8 +10,7 @@ ...@@ -10,8 +10,7 @@
10 <view class="userlist"> 10 <view class="userlist">
11 <view class="item" v-for=" (n,index) in studentList" :key="index"> 11 <view class="item" v-for=" (n,index) in studentList" :key="index">
12 <view @click="checkThis(n)"> 12 <view @click="checkThis(n)">
13 <image class="icon" v-if="n.checked" 13 <image class="icon" v-if="n.checked" :src="config.baseUrl_api+'/fs/static/member/dx_dwn.png'" />
14 :src="config.baseUrl_api+'/fs/static/member/dx_dwn.png'" />
15 <image class="icon" v-else :src="config.baseUrl_api+'/fs/static/member/dx.png'" /> 14 <image class="icon" v-else :src="config.baseUrl_api+'/fs/static/member/dx.png'" />
16 </view> 15 </view>
17 <view class="w100"> 16 <view class="w100">
...@@ -45,84 +44,90 @@ ...@@ -45,84 +44,90 @@
45 </template> 44 </template>
46 45
47 <script setup> 46 <script setup>
48 import { 47 import {
49 ref 48 ref
50 } from 'vue' 49 } from 'vue'
51 import { 50 import {
52 onLoad, 51 onLoad,
53 onShow 52 onShow
54 } from '@dcloudio/uni-app' 53 } from '@dcloudio/uni-app'
55 import * as api from '@/common/api.js' 54 import * as api from '@/common/api.js'
56 import _ from 'lodash' 55 import _ from 'lodash'
57 import config from '/config.js' 56 import config from '/config.js'
58 const query = ref({ 57 const query = ref({
59 pageNum:1, 58 pageNum: 1,
60 pageSize:10, 59 pageSize: 10,
61 paymentRangeId:-1, 60 paymentRangeId: -1,
62 }) 61 })
63 const total = ref(0) 62 const total = ref(0)
64 const list = ref([]) 63 const list = ref([])
65 const studentList = ref([]) 64 const studentList = ref([])
66 const type = ref('') 65 const type = ref('')
67 const form = ref({}) 66 const form = ref({})
68 const status = ref('no-more') 67 const status = ref('no-more')
69 const contentText = ref({contentdown: "点击加载更多",contentrefresh: "正在加载...",contentnomore: "没有更多数据了"}) 68 const contentText = ref({
70 69 contentdown: "点击加载更多",
71 onLoad((option) => { 70 contentrefresh: "正在加载...",
71 contentnomore: "没有更多数据了"
72 })
73
74 onLoad((option) => {
72 if (option.rangeId) { 75 if (option.rangeId) {
73 query.value.paymentRangeId = option.rangeId 76 query.value.paymentRangeId = option.rangeId
74 } 77 }
75 getList() 78 getList()
76 }) 79 })
77 onShow(() => {}) 80 onShow(() => {})
78 81
79 function clickLoadMore(){ 82 function clickLoadMore() {
80 getList() 83 getList()
81 } 84 }
82 function getList() { 85
83 if(total.value>0&&total.value>studentList.value.length){ 86 function getList() {
87 if (total.value > 0 && total.value > studentList.value.length) {
84 uni.showLoading({ 88 uni.showLoading({
85 title: '加载中', 89 title: '加载中',
86 icon: 'none' 90 mask: true
87 }) 91 })
88 status.value = 'loading' 92 status.value = 'loading'
89 query.value.pageNum += 1 93 query.value.pageNum += 1
90 api.getMySonList(query.value).then(res => { 94 api.getMySonList(query.value).then(res => {
91 studentList.value = _.concat(studentList.value,res.data.rows) 95 studentList.value = _.concat(studentList.value, res.data.rows)
92 total.value = res.data.total 96 total.value = res.data.total
93 if(total.value>studentList.value.length){ 97 if (total.value > studentList.value.length) {
94 status.value = 'more' 98 status.value = 'more'
95 } else { 99 } else {
96 status.value = 'no-more' 100 status.value = 'no-more'
97 } 101 }
98 uni.hideLoading() 102 uni.hideLoading()
99 }) 103 })
100 }else if(total.value==0){ 104 } else if (total.value == 0) {
101 getSonList() 105 getSonList()
102 } 106 }
103 } 107 }
104 function getSonList(){ 108
109 function getSonList() {
105 query.value.pageNum = 1 110 query.value.pageNum = 1
106 api.getMySonList(query.value).then(res => { 111 api.getMySonList(query.value).then(res => {
107 studentList.value = res.data.rows 112 studentList.value = res.data.rows
108 total.value = res.data.total 113 total.value = res.data.total
109 if(total.value>studentList.value.length){ 114 if (total.value > studentList.value.length) {
110 status.value = 'more' 115 status.value = 'more'
111 } else { 116 } else {
112 status.value = 'no-more' 117 status.value = 'no-more'
113 } 118 }
114 }) 119 })
115 } 120 }
116 121
117 function checkThis(n) { 122 function checkThis(n) {
118 if (n.checked) { 123 if (n.checked) {
119 n.checked = false 124 n.checked = false
120 } else { 125 } else {
121 n.checked = true 126 n.checked = true
122 } 127 }
123 } 128 }
124 129
125 function handleImport() { 130 function handleImport() {
126 var arr = [] 131 var arr = []
127 for (var n of studentList.value) { 132 for (var n of studentList.value) {
128 if (n.checked) { 133 if (n.checked) {
...@@ -138,19 +143,19 @@ function handleImport() { ...@@ -138,19 +143,19 @@ function handleImport() {
138 prevPage.onShow(res.data) 143 prevPage.onShow(res.data)
139 uni.navigateBack() 144 uni.navigateBack()
140 }) 145 })
141 } 146 }
142
143 </script> 147 </script>
144 <style scoped lang="scss"> 148 <style scoped lang="scss">
145 .searchbar { 149 .searchbar {
146 display: flex; 150 display: flex;
147 align-items: center; 151 align-items: center;
148 padding:25rpx; 152 padding: 25rpx;
149 box-sizing: border-box; 153 box-sizing: border-box;
150 154
151 :deep(.uni-easyinput .uni-easyinput__content) { 155 :deep(.uni-easyinput .uni-easyinput__content) {
152 border-radius: 35rpx; 156 border-radius: 35rpx;
153 height: 66rpx; border: 1px solid #AD181F!important; 157 height: 66rpx;
158 border: 1px solid #AD181F !important;
154 } 159 }
155 160
156 :deep(.uni-easyinput__content-input) { 161 :deep(.uni-easyinput__content-input) {
...@@ -158,14 +163,19 @@ function handleImport() { ...@@ -158,14 +163,19 @@ function handleImport() {
158 } 163 }
159 164
160 .invertedbtn-red { 165 .invertedbtn-red {
161 border-radius: 50px; margin-left: 20rpx; 166 border-radius: 50px;
167 margin-left: 20rpx;
162 background-color: #fff; 168 background-color: #fff;
163 169
164 font-size: 30rpx; 170 font-size: 30rpx;
165 padding: 10rpx 20rpx; 171 padding: 10rpx 20rpx;
166 } 172 }
167 } 173 }
168 .userlist {padding: 0 25rpx;} 174
175 .userlist {
176 padding: 0 25rpx;
177 }
178
169 .flexbox { 179 .flexbox {
170 padding: 30rpx 30rpx 0 180 padding: 30rpx 30rpx 0
171 } 181 }
...@@ -203,5 +213,8 @@ function handleImport() { ...@@ -203,5 +213,8 @@ function handleImport() {
203 border-radius: 50px; 213 border-radius: 50px;
204 font-size: 28rpx; 214 font-size: 28rpx;
205 } 215 }
206 :deep(.file-picker__progress){opacity: 0;} 216
217 :deep(.file-picker__progress) {
218 opacity: 0;
219 }
207 </style> 220 </style>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -90,7 +90,8 @@ ...@@ -90,7 +90,8 @@
90 90
91 function init() { 91 function init() {
92 uni.showLoading({ 92 uni.showLoading({
93 title: '加载中' 93 title: '加载中',
94 mask: true
94 }) 95 })
95 deptType.value = app.globalData.deptType 96 deptType.value = app.globalData.deptType
96 userType.value = app.globalData.userType 97 userType.value = app.globalData.userType
......
...@@ -98,9 +98,6 @@ ...@@ -98,9 +98,6 @@
98 }) 98 })
99 99
100 function init() { 100 function init() {
101 uni.showLoading({
102 title: '加载中'
103 })
104 deptType.value = app.globalData.deptType 101 deptType.value = app.globalData.deptType
105 userType.value = app.globalData.userType 102 userType.value = app.globalData.userType
106 getList() 103 getList()
...@@ -108,6 +105,10 @@ ...@@ -108,6 +105,10 @@
108 105
109 106
110 function getList() { 107 function getList() {
108 uni.showLoading({
109 title: '加载中',
110 mask: true
111 })
111 api.getVerityList(queryParams.value).then(res => { 112 api.getVerityList(queryParams.value).then(res => {
112 uni.hideLoading() 113 uni.hideLoading()
113 const list = [] 114 const list = []
...@@ -131,9 +132,6 @@ ...@@ -131,9 +132,6 @@
131 132
132 function onClickItem(e) { 133 function onClickItem(e) {
133 console.log(e) 134 console.log(e)
134 uni.showLoading({
135 title: '加载中'
136 })
137 queryParams.value.status = e.currentIndex 135 queryParams.value.status = e.currentIndex
138 getList() 136 getList()
139 } 137 }
......
...@@ -111,7 +111,8 @@ ...@@ -111,7 +111,8 @@
111 111
112 function getList() { 112 function getList() {
113 uni.showLoading({ 113 uni.showLoading({
114 title: '加载中' 114 title: '加载中',
115 mask: true
115 }) 116 })
116 totalCost.value = 0 117 totalCost.value = 0
117 api.getVerityMergeList(queryParams.value).then(response => { 118 api.getVerityMergeList(queryParams.value).then(response => {
...@@ -138,9 +139,6 @@ ...@@ -138,9 +139,6 @@
138 139
139 function onClickItem(e) { 140 function onClickItem(e) {
140 console.log(e) 141 console.log(e)
141 uni.showLoading({
142 title: '加载中'
143 })
144 queryParams.value.status = e.currentIndex 142 queryParams.value.status = e.currentIndex
145 getList() 143 getList()
146 } 144 }
...@@ -198,7 +196,11 @@ ...@@ -198,7 +196,11 @@
198 196
199 function doApproval(obj) { 197 function doApproval(obj) {
200 console.log(obj) 198 console.log(obj)
199 uni.showLoading({
200 title: '加载中'
201 })
201 api.doMergeFlows(obj).then((res) => { 202 api.doMergeFlows(obj).then((res) => {
203 uni.hideLoading()
202 uni.showToast({ 204 uni.showToast({
203 title: '操作成功', 205 title: '操作成功',
204 icon: 'none' 206 icon: 'none'
......
...@@ -95,22 +95,20 @@ ...@@ -95,22 +95,20 @@
95 }) 95 })
96 96
97 function init() { 97 function init() {
98 uni.showLoading({
99 title: '加载中'
100 })
101 deptType.value = app.globalData.deptType 98 deptType.value = app.globalData.deptType
102 getList() 99 getList()
103 } 100 }
104 101
105 function onClickItem(e) { 102 function onClickItem(e) {
106 uni.showLoading({
107 title: '加载中'
108 })
109 queryParams.value.status = e.currentIndex 103 queryParams.value.status = e.currentIndex
110 getList() 104 getList()
111 } 105 }
112 106
113 function getList() { 107 function getList() {
108 uni.showLoading({
109 title: '加载中',
110 mask: true
111 })
114 examApi.getRankScoreList(queryParams.value).then(res => { 112 examApi.getRankScoreList(queryParams.value).then(res => {
115 113
116 infoList.value = res.rows 114 infoList.value = res.rows
...@@ -163,7 +161,11 @@ ...@@ -163,7 +161,11 @@
163 } 161 }
164 162
165 function doApproval(obj) { 163 function doApproval(obj) {
164 uni.showLoading({
165 title: '加载中'
166 })
166 examApi.doMergeFlows(obj).then((res) => { 167 examApi.doMergeFlows(obj).then((res) => {
168 uni.hideLoading()
167 uni.showToast({ 169 uni.showToast({
168 title: '操作成功', 170 title: '操作成功',
169 icon: 'none' 171 icon: 'none'
......
...@@ -81,22 +81,20 @@ onShow(() => { ...@@ -81,22 +81,20 @@ onShow(() => {
81 }) 81 })
82 82
83 function init(){ 83 function init(){
84 uni.showLoading({
85 title: '加载中'
86 })
87 deptType.value = app.globalData.deptType 84 deptType.value = app.globalData.deptType
88 getList() 85 getList()
89 } 86 }
90 87
91 function onClickItem(e) { 88 function onClickItem(e) {
92 uni.showLoading({
93 title: '加载中'
94 })
95 queryParams.value.status = e.currentIndex 89 queryParams.value.status = e.currentIndex
96 getList() 90 getList()
97 } 91 }
98 92
99 function getList() { 93 function getList() {
94 uni.showLoading({
95 title: '加载中',
96 mask: true
97 })
100 examApi.getVerityList(queryParams.value).then(res => { 98 examApi.getVerityList(queryParams.value).then(res => {
101 uni.hideLoading() 99 uni.hideLoading()
102 const list = [] 100 const list = []
...@@ -165,7 +163,11 @@ function audit(item, flag) { ...@@ -165,7 +163,11 @@ function audit(item, flag) {
165 } 163 }
166 164
167 function doApproval(obj) { 165 function doApproval(obj) {
166 uni.showLoading({
167 title: '加载中'
168 })
168 examApi.doMergeFlows(obj).then((res) => { 169 examApi.doMergeFlows(obj).then((res) => {
170 uni.hideLoading()
169 uni.showToast({ 171 uni.showToast({
170 title: '操作成功', 172 title: '操作成功',
171 icon: 'none' 173 icon: 'none'
......
...@@ -77,22 +77,20 @@ onShow(() => { ...@@ -77,22 +77,20 @@ onShow(() => {
77 }) 77 })
78 78
79 function init(){ 79 function init(){
80 uni.showLoading({
81 title: '加载中'
82 })
83 deptType.value = app.globalData.deptType 80 deptType.value = app.globalData.deptType
84 getList() 81 getList()
85 } 82 }
86 83
87 function onClickItem(e) { 84 function onClickItem(e) {
88 uni.showLoading({
89 title: '加载中'
90 })
91 queryParams.value.certStatus = e.currentIndex 85 queryParams.value.certStatus = e.currentIndex
92 getList() 86 getList()
93 } 87 }
94 88
95 function getList() { 89 function getList() {
90 uni.showLoading({
91 title: '加载中',
92 mask: true
93 })
96 examApi.certsLList(queryParams.value).then(res => { 94 examApi.certsLList(queryParams.value).then(res => {
97 uni.hideLoading() 95 uni.hideLoading()
98 infoList.value = res.rows 96 infoList.value = res.rows
......
...@@ -186,7 +186,12 @@ ...@@ -186,7 +186,12 @@
186 } 186 }
187 187
188 function doApproval(obj) { 188 function doApproval(obj) {
189 uni.showLoading({
190 title: '加载中',
191 mask: true
192 })
189 examApi.doMergeFlows(obj).then((res) => { 193 examApi.doMergeFlows(obj).then((res) => {
194 uni.hideLoading()
190 uni.showToast({ 195 uni.showToast({
191 title: '操作成功', 196 title: '操作成功',
192 icon: 'none' 197 icon: 'none'
......
...@@ -29,7 +29,8 @@ ...@@ -29,7 +29,8 @@
29 <uni-icons type="calendar-filled" size="16" color="#AD181F"></uni-icons> 29 <uni-icons type="calendar-filled" size="16" color="#AD181F"></uni-icons>
30 {{item.content.commitTime}} 提交 30 {{item.content.commitTime}} 提交
31 </view> 31 </view>
32 <view class="text-primary" v-if="item.content?.wfCode" @click="goDetail(item)">{{item.content?.wfCode}}</view> 32 <view class="text-primary" v-if="item.content?.wfCode" @click="goDetail(item)">{{item.content?.wfCode}}
33 </view>
33 <view class="name" @click="goDetail(item)">{{item.content.name}}</view> 34 <view class="name" @click="goDetail(item)">{{item.content.name}}</view>
34 <view class="flexbox" @click="goDetail(item)"> 35 <view class="flexbox" @click="goDetail(item)">
35 <view> 36 <view>
...@@ -68,29 +69,29 @@ ...@@ -68,29 +69,29 @@
68 </template> 69 </template>
69 70
70 <script setup> 71 <script setup>
71 import * as api from '@/common/api.js' 72 import * as api from '@/common/api.js'
72 import config from '@/config.js' 73 import config from '@/config.js'
73 import { 74 import {
74 onMounted, 75 onMounted,
75 ref 76 ref
76 } from 'vue' 77 } from 'vue'
77 import { 78 import {
78 onShow 79 onShow
79 } from '@dcloudio/uni-app' 80 } from '@dcloudio/uni-app'
80 const app = getApp(); 81 const app = getApp();
81 const queryParams = ref({ 82 const queryParams = ref({
82 // pageNum: 1, 83 // pageNum: 1,
83 // pageSize: 10 84 // pageSize: 10
84 auditStatus: '0' 85 auditStatus: '0'
85 }) 86 })
86 const navs = ref(['待审核', '审核通过', '审核拒绝', '撤回']) 87 const navs = ref(['待审核', '审核通过', '审核拒绝', '撤回'])
87 const current = ref(0) 88 const current = ref(0)
88 const list = ref([]) 89 const list = ref([])
89 const statistical = ref({}) 90 const statistical = ref({})
90 const total = ref(0) 91 const total = ref(0)
91 const deptType = ref('') 92 const deptType = ref('')
92 const userType = ref('') 93 const userType = ref('')
93 onShow(() => { 94 onShow(() => {
94 if (app.globalData.isLogin) { 95 if (app.globalData.isLogin) {
95 init() 96 init()
96 } else { 97 } else {
...@@ -98,23 +99,24 @@ onShow(() => { ...@@ -98,23 +99,24 @@ onShow(() => {
98 init() 99 init()
99 }; 100 };
100 } 101 }
101 }) 102 })
102 103
103 function init() { 104 function init() {
104 userType.value = app.globalData.userType 105 userType.value = app.globalData.userType
105 deptType.value = app.globalData.deptType 106 deptType.value = app.globalData.deptType
106 getList() 107 getList()
107 } 108 }
108 109
109 function onClickItem(e) { 110 function onClickItem(e) {
110 console.log(e) 111 console.log(e)
111 queryParams.value.auditStatus = e.currentIndex 112 queryParams.value.auditStatus = e.currentIndex
112 getList() 113 getList()
113 } 114 }
114 115
115 function getList() { 116 function getList() {
116 uni.showLoading({ 117 uni.showLoading({
117 title: `加载中` 118 title: `加载中`,
119 mask: true
118 }) 120 })
119 statistical.value = { 121 statistical.value = {
120 personCount: 0, 122 personCount: 0,
...@@ -138,24 +140,29 @@ function getList() { ...@@ -138,24 +140,29 @@ function getList() {
138 total.value = res.total 140 total.value = res.total
139 uni.hideLoading() 141 uni.hideLoading()
140 }) 142 })
141 } 143 }
142 function handleDelete(row){ 144
145 function handleDelete(row) {
143 uni.showModal({ 146 uni.showModal({
144 title: '提示', 147 title: '提示',
145 content: `确定撤回 ${row.content.name}?`, 148 content: `确定撤回 ${row.content.name}?`,
146 success: function(res) { 149 success: function(res) {
147 if (res.confirm) { 150 if (res.confirm) {
148 api.withDraw({recordId: row.recordId, reason: row.reason}).then(res=>{ 151 api.withDraw({
152 recordId: row.recordId,
153 reason: row.reason
154 }).then(res => {
149 uni.showToast({ 155 uni.showToast({
150 title:`操作成功` 156 title: `操作成功`
151 }) 157 })
152 getList() 158 getList()
153 }) 159 })
154 } 160 }
155 } 161 }
156 }) 162 })
157 } 163 }
158 function audit(recordId, flag) { 164
165 function audit(recordId, flag) {
159 if (flag == '0') { 166 if (flag == '0') {
160 // 拒绝 167 // 拒绝
161 // 弹出框填写理由 168 // 弹出框填写理由
...@@ -187,9 +194,9 @@ function audit(recordId, flag) { ...@@ -187,9 +194,9 @@ function audit(recordId, flag) {
187 } 194 }
188 }) 195 })
189 } 196 }
190 } 197 }
191 198
192 function doApproval(recordId, flag, reason) { 199 function doApproval(recordId, flag, reason) {
193 var obj = { 200 var obj = {
194 flag: flag, 201 flag: flag,
195 reason: reason || '', 202 reason: reason || '',
...@@ -197,16 +204,21 @@ function doApproval(recordId, flag, reason) { ...@@ -197,16 +204,21 @@ function doApproval(recordId, flag, reason) {
197 } 204 }
198 obj.recordIds.push(recordId) 205 obj.recordIds.push(recordId)
199 console.log(obj) 206 console.log(obj)
207 uni.showLoading({
208 title: '加载中',
209 mask: true
210 })
200 api.audit(obj).then((res) => { 211 api.audit(obj).then((res) => {
212 uni.hideLoading()
201 uni.showToast({ 213 uni.showToast({
202 title: '操作成功', 214 title: '操作成功',
203 icon: 'none' 215 icon: 'none'
204 }) 216 })
205 getList() 217 getList()
206 }) 218 })
207 } 219 }
208 220
209 function goDetail(item) { 221 function goDetail(item) {
210 const form = encodeURIComponent(JSON.stringify(item)) 222 const form = encodeURIComponent(JSON.stringify(item))
211 // console.log(userType.value) 223 // console.log(userType.value)
212 224
...@@ -217,20 +229,21 @@ function goDetail(item) { ...@@ -217,20 +229,21 @@ function goDetail(item) {
217 }); 229 });
218 230
219 231
220 } 232 }
221 233
222 function goMerge() { 234 function goMerge() {
223 let path = `/personalVip/sheng/merge` 235 let path = `/personalVip/sheng/merge`
224 uni.redirectTo({ 236 uni.redirectTo({
225 url: path 237 url: path
226 }); 238 });
227 } 239 }
228 function goMergeUp() { 240
241 function goMergeUp() {
229 let path = `/personalVip/sheng/mergeUp` 242 let path = `/personalVip/sheng/mergeUp`
230 uni.redirectTo({ 243 uni.redirectTo({
231 url: path 244 url: path
232 }); 245 });
233 } 246 }
234 </script> 247 </script>
235 248
236 <style> 249 <style>
......
...@@ -184,7 +184,12 @@ function doApproval(recordId, flag, reason) { ...@@ -184,7 +184,12 @@ function doApproval(recordId, flag, reason) {
184 } 184 }
185 obj.recordIds.push(recordId) 185 obj.recordIds.push(recordId)
186 console.log(obj) 186 console.log(obj)
187 uni.showLoading({
188 title: '加载中',
189 mask: true
190 })
187 api.audit(obj).then((res) => { 191 api.audit(obj).then((res) => {
192 uni.hideLoading()
188 uni.showToast({ 193 uni.showToast({
189 title: '操作成功', 194 title: '操作成功',
190 icon: 'none' 195 icon: 'none'
......
...@@ -156,7 +156,11 @@ ...@@ -156,7 +156,11 @@
156 ids: [id] 156 ids: [id]
157 } 157 }
158 console.log(obj) 158 console.log(obj)
159 uni.showLoading({
160 title: '加载中'
161 })
159 api.changeLevelAudit(obj).then((res) => { 162 api.changeLevelAudit(obj).then((res) => {
163 uni.hideLoading()
160 uni.showToast({ 164 uni.showToast({
161 title: '操作成功', 165 title: '操作成功',
162 icon: 'none' 166 icon: 'none'
......
...@@ -151,7 +151,12 @@ ...@@ -151,7 +151,12 @@
151 ids: [id] 151 ids: [id]
152 } 152 }
153 console.log(obj) 153 console.log(obj)
154 uni.showLoading({
155 title: '加载中',
156 mask: true
157 })
154 api.personChangeAudit(obj).then((res) => { 158 api.personChangeAudit(obj).then((res) => {
159 uni.hideLoading()
155 uni.showToast({ 160 uni.showToast({
156 title: '操作成功', 161 title: '操作成功',
157 icon: 'none' 162 icon: 'none'
......
...@@ -81,7 +81,8 @@ ...@@ -81,7 +81,8 @@
81 } 81 }
82 function getList(){ 82 function getList(){
83 uni.showLoading({ 83 uni.showLoading({
84 title:'加载中' 84 title: '加载中',
85 mask: true
85 }) 86 })
86 api.infoMergeRangeList(queryParams.value).then(res=>{ 87 api.infoMergeRangeList(queryParams.value).then(res=>{
87 list.value = res.rows 88 list.value = res.rows
......
...@@ -74,7 +74,8 @@ ...@@ -74,7 +74,8 @@
74 }) 74 })
75 function getList(){ 75 function getList(){
76 uni.showLoading({ 76 uni.showLoading({
77 title:'加载中' 77 title: '加载中',
78 mask: true
78 }) 79 })
79 api.infoMergeRangeList(queryParams.value).then(res=>{ 80 api.infoMergeRangeList(queryParams.value).then(res=>{
80 list.value = res.rows 81 list.value = res.rows
...@@ -149,7 +150,12 @@ ...@@ -149,7 +150,12 @@
149 ids: [id] 150 ids: [id]
150 } 151 }
151 console.log(obj) 152 console.log(obj)
153 uni.showLoading({
154 title: '加载中',
155 mask:true
156 })
152 api.mergerVipAudit(obj).then((res) => { 157 api.mergerVipAudit(obj).then((res) => {
158 uni.hideLoading()
153 uni.showToast({ 159 uni.showToast({
154 title: '操作成功', 160 title: '操作成功',
155 icon: 'none' 161 icon: 'none'
......
...@@ -123,9 +123,6 @@ ...@@ -123,9 +123,6 @@
123 }) 123 })
124 124
125 function init() { 125 function init() {
126 uni.showLoading({
127 title: '加载中'
128 })
129 deptType.value = app.globalData.deptType 126 deptType.value = app.globalData.deptType
130 if (deptType.value == 2 || deptType.value == 3) { 127 if (deptType.value == 2 || deptType.value == 3) {
131 queryParams.value.dgId = -1 128 queryParams.value.dgId = -1
...@@ -147,9 +144,6 @@ ...@@ -147,9 +144,6 @@
147 144
148 function onClickItem(e) { 145 function onClickItem(e) {
149 console.log(e) 146 console.log(e)
150 uni.showLoading({
151 title: '加载中'
152 })
153 if (deptType.value == 2 || deptType.value == 3) { 147 if (deptType.value == 2 || deptType.value == 3) {
154 queryParams.value.dgId = -1 148 queryParams.value.dgId = -1
155 queryParams.value.shenRes = e.currentIndex 149 queryParams.value.shenRes = e.currentIndex
...@@ -167,7 +161,8 @@ ...@@ -167,7 +161,8 @@
167 161
168 function getList() { 162 function getList() {
169 uni.showLoading({ 163 uni.showLoading({
170 title: '加载中' 164 title: '加载中',
165 mask: true
171 }) 166 })
172 api.getMobilizelist(queryParams.value).then(res => { 167 api.getMobilizelist(queryParams.value).then(res => {
173 uni.hideLoading() 168 uni.hideLoading()
...@@ -286,7 +281,12 @@ ...@@ -286,7 +281,12 @@
286 rangeIds: rangeId 281 rangeIds: rangeId
287 } 282 }
288 console.log(obj) 283 console.log(obj)
284 uni.showLoading({
285 title: '加载中',
286 mask: true
287 })
289 api.mobilizeAudit(obj).then((res) => { 288 api.mobilizeAudit(obj).then((res) => {
289 uni.hideLoading()
290 uni.showToast({ 290 uni.showToast({
291 title: '操作成功', 291 title: '操作成功',
292 icon: 'none' 292 icon: 'none'
......
...@@ -152,7 +152,11 @@ ...@@ -152,7 +152,11 @@
152 rangeIds: rangeIds 152 rangeIds: rangeIds
153 } 153 }
154 console.log(obj) 154 console.log(obj)
155 uni.showLoading({
156 title: '加载中'
157 })
155 api.mobilizeAudit(obj).then((res) => { 158 api.mobilizeAudit(obj).then((res) => {
159 uni.hideLoading()
156 uni.showToast({ 160 uni.showToast({
157 title: '操作成功', 161 title: '操作成功',
158 icon: 'none' 162 icon: 'none'
......
...@@ -125,7 +125,8 @@ ...@@ -125,7 +125,8 @@
125 if (res.confirm) { 125 if (res.confirm) {
126 uni.showLoading({ 126 uni.showLoading({
127 icon: 'none', 127 icon: 'none',
128 title: '提交中' 128 title: '提交中',
129 mask: true
129 }) 130 })
130 api.personalCommit(row.rangId).then(res => { 131 api.personalCommit(row.rangId).then(res => {
131 uni.hideLoading() 132 uni.hideLoading()
......
...@@ -189,15 +189,20 @@ ...@@ -189,15 +189,20 @@
189 content: `确认合并已选中的数据?`, 189 content: `确认合并已选中的数据?`,
190 success: function(res) { 190 success: function(res) {
191 if (res.confirm) { 191 if (res.confirm) {
192 api.mergePayMentApi({ recordIds: ids}).then(res => { 192 uni.showLoading({
193 title: '加载中',
194 mask: true
195 })
196 api.mergePayMentApi({ recordIds: ids}).then(resp => {
193 // uni.showToast({ 197 // uni.showToast({
194 // title: `操作成功` 198 // title: `操作成功`
195 // }) 199 // })
200 uni.hideLoading()
196 uni.showModal({ 201 uni.showModal({
197 title: '提示', 202 title: '提示',
198 content: `合并完成,是否进行审核数据提交?`, 203 content: `合并完成,是否进行审核数据提交?`,
199 success: function(res) { 204 success: function(resp) {
200 if (res.confirm) { 205 if (resp.confirm) {
201 goMergeUp() 206 goMergeUp()
202 } 207 }
203 } 208 }
......
...@@ -111,19 +111,22 @@ ...@@ -111,19 +111,22 @@
111 switch (e.currentIndex) { 111 switch (e.currentIndex) {
112 case 0: 112 case 0:
113 queryParams.value.mergeFlag = 101 113 queryParams.value.mergeFlag = 101
114 queryParams.value.status = null 114 queryParams.value.statusFlag = 101
115 break; 115 break;
116 case 1: 116 case 1:
117 queryParams.value.mergeFlag = 1 117 queryParams.value.mergeFlag = 1
118 queryParams.value.status = 0 118 queryParams.value.status = 0
119 queryParams.value.statusFlag = 102
119 break; 120 break;
120 case 2: 121 case 2:
121 queryParams.value.mergeFlag = 1 122 queryParams.value.mergeFlag = 1
122 queryParams.value.status = 1 123 queryParams.value.status = 1
124 queryParams.value.statusFlag = 103
123 break; 125 break;
124 case 3: 126 case 3:
125 queryParams.value.mergeFlag = 1 127 queryParams.value.mergeFlag = 1
126 queryParams.value.status = 2 128 queryParams.value.status = 2
129 queryParams.value.statusFlag = 104
127 break; 130 break;
128 } 131 }
129 getList() 132 getList()
...@@ -162,11 +165,15 @@ ...@@ -162,11 +165,15 @@
162 content: `确定提交${item.content.name}?`, 165 content: `确定提交${item.content.name}?`,
163 success: function(res) { 166 success: function(res) {
164 if (res.confirm) { 167 if (res.confirm) {
168 uni.showLoading({
169 title: '加载中'
170 })
165 api.doMergeFlowsPer({ 171 api.doMergeFlowsPer({
166 recordIds: [item.recordId], 172 recordIds: [item.recordId],
167 flag: '1', 173 flag: '1',
168 reason: null 174 reason: null
169 }).then(res => { 175 }).then(res => {
176 uni.hideToast()
170 uni.showToast({ 177 uni.showToast({
171 title: `操作成功!` 178 title: `操作成功!`
172 }) 179 })
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!