e6c6de8d by lttnew

级位考试

1 parent a7c5fca8
...@@ -157,18 +157,18 @@ function groupMemberRegister(data) { ...@@ -157,18 +157,18 @@ function groupMemberRegister(data) {
157 } 157 }
158 158
159 // 获取道馆信息 159 // 获取道馆信息
160 function getMyOwnMemberInfo() { 160 function getMyOwnMemberInfo() {
161 return request({ 161 return request({
162 url: '/member/info/getMyOwnMemberInfo', 162 url: '/member/info/getMyOwnMemberInfo',
163 method: 'get' 163 method: 'get'
164 }).then(res => { 164 }).then(res => {
165 const app = getApp() 165 const app = getApp()
166 app.globalData.authenticationStatus = res.data.authenticationStatus 166 app.globalData.authenticationStatus = res.data.authenticationStatus
167 app.globalData.memberInfo = res.data.memberInfo 167 app.globalData.memberInfo = res.data.memberInfo
168 app.globalData.isExam = res.data?.memberInfo?.isPoints 168 app.globalData.isExam = res.data?.memberInfo?.isPoints
169 return res 169 return res
170 }) 170 })
171 } 171 }
172 172
173 function pcLoginOpenId() { 173 function pcLoginOpenId() {
174 uni.login({ 174 uni.login({
...@@ -179,11 +179,11 @@ function pcLoginOpenId() { ...@@ -179,11 +179,11 @@ function pcLoginOpenId() {
179 } 179 }
180 }, 180 },
181 fail: (res) => { 181 fail: (res) => {
182 uni.showToast({ 182 // uni.showToast({
183 title: '获取用户信息失败', 183 // title: '获取用户信息失败',
184 icon: 'none', 184 // icon: 'none',
185 duration: 2000 185 // duration: 2000
186 }) 186 // })
187 } 187 }
188 }) 188 })
189 } 189 }
......
...@@ -199,6 +199,25 @@ ...@@ -199,6 +199,25 @@
199 </view> 199 </view>
200 </uni-popup> 200 </uni-popup>
201 201
202 <!-- 调动确认弹框 -->
203 <uni-popup ref="transferPopup" type="center" :mask-click="false" style="z-index: 999999">
204 <view class="add-popup">
205 <view class="popup-title">系统提示</view>
206 <view class="popup-content">
207 <view class="transfer-tip">
208 该人员已在其他机构登记,是否申请调入?
209 </view>
210 <view class="transfer-tip sub-tip">
211 如仅办理业务,请前往业务页面,点击【添加】直接办理。
212 </view>
213 </view>
214 <view class="popup-btns">
215 <view class="popup-btn cancel" @click="handleTransfer">调动</view>
216 <view class="popup-btn confirm" @click="handleAddFromTransfer">添加</view>
217 </view>
218 </view>
219 </uni-popup>
220
202 </view> 221 </view>
203 </template> 222 </template>
204 223
...@@ -266,6 +285,7 @@ const range = ref([{ ...@@ -266,6 +285,7 @@ const range = ref([{
266 285
267 // 添加考生弹框相关 286 // 添加考生弹框相关
268 const addPopup = ref(null) 287 const addPopup = ref(null)
288 const transferPopup = ref(null)
269 const addForm = ref({ 289 const addForm = ref({
270 name: '', 290 name: '',
271 idcType: '0', 291 idcType: '0',
...@@ -480,6 +500,26 @@ function closeAddPopup() { ...@@ -480,6 +500,26 @@ function closeAddPopup() {
480 addPopup.value?.close() 500 addPopup.value?.close()
481 } 501 }
482 502
503 // 关闭调动确认弹框
504 function closeTransferPopup() {
505 transferPopup.value?.close()
506 }
507
508 // 跳转调动页面
509 function handleTransfer() {
510 closeTransferPopup()
511 addPopup.value?.close()
512 uni.navigateTo({
513 url: `/personalVip/mobilize`
514 })
515 }
516
517 // 从调动弹框点击添加
518 async function handleAddFromTransfer() {
519 closeTransferPopup()
520 await handelAddPerson()
521 }
522
483 // 证件类型选择 523 // 证件类型选择
484 function onIdcTypeChange(e) { 524 function onIdcTypeChange(e) {
485 idcTypeIndex.value = e.detail.value 525 idcTypeIndex.value = e.detail.value
...@@ -503,23 +543,8 @@ async function confirmAdd() { ...@@ -503,23 +543,8 @@ async function confirmAdd() {
503 // 人员已存在,直接添加 543 // 人员已存在,直接添加
504 await handelAddPerson() 544 await handelAddPerson()
505 } else { 545 } else {
506 // 人员不在本机构,弹出确认框 546 // 人员不在本机构,显示自定义确认弹框(不关闭添加弹框,保留表单数据)
507 uni.showModal({ 547 transferPopup.value?.open()
508 title: '系统提示',
509 content: '该人员已在其他机构登记,是否申请调入?如仅办理业务,请前往业务页面,点击【添加】直接办理。',
510 confirmText: '添加',
511 cancelText: '调动',
512 success: async function (res) {
513 if (res.confirm) {
514 await handelAddPerson()
515 } else if (res.cancel) {
516 // 跳转调动页面
517 uni.navigateTo({
518 url: '/personal/memberTransfer'
519 })
520 }
521 }
522 })
523 } 548 }
524 } catch (err) { 549 } catch (err) {
525 uni.hideLoading() 550 uni.hideLoading()
...@@ -1240,4 +1265,17 @@ function handleDelete(row) { ...@@ -1240,4 +1265,17 @@ function handleDelete(row) {
1240 color: #C4121B; 1265 color: #C4121B;
1241 font-weight: 500; 1266 font-weight: 500;
1242 } 1267 }
1268
1269 .transfer-tip {
1270 font-size: 28rpx;
1271 color: #333;
1272 line-height: 1.6;
1273 text-align: center;
1274 }
1275
1276 .sub-tip {
1277 color: #999;
1278 font-size: 28rpx;
1279 margin-top: 16rpx;
1280 }
1243 </style> 1281 </style>
......
...@@ -5,14 +5,14 @@ ...@@ -5,14 +5,14 @@
5 5
6 <!-- 顶部添加考官按钮 --> 6 <!-- 顶部添加考官按钮 -->
7 <view class="add-btn-box"> 7 <view class="add-btn-box">
8 <!-- <button class="btn-red-kx mini" @click="openAddExaminer"> 8 <button class="btn-red-kx mini" @click="openAddExaminer">
9 <uni-icons type="personadd" size="14" color="#AD181F"></uni-icons> 9 <uni-icons type="personadd" size="14" color="#AD181F"></uni-icons>
10 选择考官 10 选择考官
11 </button> --> 11 </button>
12 <button class="btn-red-kx mini" @click="addExaminer"> 12 <!-- <button class="btn-red-kx mini" @click="addExaminer">
13 <uni-icons type="personadd" size="14" color="#AD181F"></uni-icons> 13 <uni-icons type="personadd" size="14" color="#AD181F"></uni-icons>
14 添加考官 14 添加考官
15 </button> 15 </button> -->
16 </view> 16 </view>
17 17
18 <view class="indexboxre"> 18 <view class="indexboxre">
......
...@@ -58,7 +58,7 @@ console.log('222',chosen.value) ...@@ -58,7 +58,7 @@ console.log('222',chosen.value)
58 async function getList() { 58 async function getList() {
59 loading.value = true 59 loading.value = true
60 try { 60 try {
61 const res = await api.listApi({memId: app.globalData.memberInfo.memId}) 61 const res = await api.listApi({chooseFlag: 1})
62 infoList.value = res.rows || [] 62 infoList.value = res.rows || []
63 } catch (err) { 63 } catch (err) {
64 console.error('获取考官列表失败:', err) 64 console.error('获取考官列表失败:', err)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!