9a050e3a by 杨炀

1.0.4 36库 修复12.18bug 及 修改意见

1 parent e17cf320
...@@ -31,9 +31,13 @@ function carUrl(data, type) { ...@@ -31,9 +31,13 @@ function carUrl(data, type) {
31 url: `${config.baseUrl_api}/person/info/getPersonInfoFromCert/${type}`, 31 url: `${config.baseUrl_api}/person/info/getPersonInfoFromCert/${type}`,
32 header: { 32 header: {
33 'Authorization': uni.getStorageSync('token'), 33 'Authorization': uni.getStorageSync('token'),
34 'Content-Language': 'zh_CN',
35 'Accept-Language': 'zh-CN,zh',
34 }, 36 },
35 name: 'pic', 37 name: 'pic',
36 filePath: data 38 filePath: data
39 }).then(res => {
40 return JSON.parse(res.data)
37 }) 41 })
38 // return request({ 42 // return request({
39 // url: `/person/info/getPersonInfoFromCert/${type}`, 43 // url: `/person/info/getPersonInfoFromCert/${type}`,
...@@ -226,7 +230,12 @@ function addTransferToRange(data) { ...@@ -226,7 +230,12 @@ function addTransferToRange(data) {
226 params: data 230 params: data
227 }) 231 })
228 } 232 }
229 233 function deltransferRange(rids) {
234 return request({
235 url: `/person/transfer/${rids}`,
236 method: 'delete'
237 })
238 }
230 function commit(rangeIds) { 239 function commit(rangeIds) {
231 return request({ 240 return request({
232 url: `/person/transferRange/commit/${rangeIds}`, 241 url: `/person/transferRange/commit/${rangeIds}`,
...@@ -241,6 +250,14 @@ function mobilizeAudit(data) { ...@@ -241,6 +250,14 @@ function mobilizeAudit(data) {
241 params: data 250 params: data
242 }) 251 })
243 } 252 }
253 function delMobilize(rids) {
254 return request({
255 url: `/person/transferRange/${rids}`,
256 method: 'delete'
257 })
258 }
259
260
244 //文件上传 261 //文件上传
245 function uploadFile(e) { 262 function uploadFile(e) {
246 const fileUrl = e.tempFilePaths[0] 263 const fileUrl = e.tempFilePaths[0]
...@@ -1059,4 +1076,5 @@ export { ...@@ -1059,4 +1076,5 @@ export {
1059 getChangeGroupByRangeId,groupInfoMod,addGroupInfoModeToRange, 1076 getChangeGroupByRangeId,groupInfoMod,addGroupInfoModeToRange,
1060 groupChangeEditMod,groupChangeAudit,extractInfoFromChinaIdCard 1077 groupChangeEditMod,groupChangeAudit,extractInfoFromChinaIdCard
1061 ,certifiedwithDraw,certifiedunMerge,getRemindCount,getGroupMemberInfoById 1078 ,certifiedwithDraw,certifiedunMerge,getRemindCount,getGroupMemberInfoById
1079 ,delMobilize,deltransferRange
1062 } 1080 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -123,7 +123,7 @@ function getMyOwnMemberInfo() { ...@@ -123,7 +123,7 @@ function getMyOwnMemberInfo() {
123 const app = getApp() 123 const app = getApp()
124 app.globalData.authenticationStatus = res.data.authenticationStatus 124 app.globalData.authenticationStatus = res.data.authenticationStatus
125 app.globalData.memberInfo = res.data.memberInfo 125 app.globalData.memberInfo = res.data.memberInfo
126 app.globalData.isExam = res.data?.dept?.isExam 126 app.globalData.isExam = res.data?.memberInfo?.isPoints
127 }) 127 })
128 } 128 }
129 export { 129 export {
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
5 // staging 会员系统 5 // staging 会员系统
6 // const baseUrl_api = "http://22yidpjzjifv.ngrok.xiaomiqiu123.top/stage-api/"; 6 // const baseUrl_api = "http://22yidpjzjifv.ngrok.xiaomiqiu123.top/stage-api/";
7 // const baseUrl_api = "http://123.60.96.243/stage-api/"; 7 // const baseUrl_api = "http://123.60.96.243/stage-api/";
8 // const baseUrl_api = 'http://192.168.1.131:8787' 8 // const baseUrl_api = 'http://192.168.1.11:8787'
9 // const baseUrl_api = 'https://ztx.itechtop.cn/stage-api' 9 // const baseUrl_api = 'https://ztx.itechtop.cn/stage-api'
10 // const baseUrl_api = 'https://tkcn.19wk.cn:8443/stage-api' 10 const baseUrl_api = 'https://tkcn.19wk.cn:8443/stage-api'
11 11
12 const baseUrl_api = 'https://newsystem.taekwondo.org.cn/stage-api' 12 // const baseUrl_api = 'https://newsystem.taekwondo.org.cn/stage-api'
13 export default { 13 export default {
14 baseUrl_api 14 baseUrl_api
15 } 15 }
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
41 <button class="btn-red-kx mini w100" @click="chooseOnline"> 41 <button class="btn-red-kx mini w100" @click="chooseOnline">
42 <uni-icons type="personadd" size="16" color="#AD181F"></uni-icons> 42 <uni-icons type="personadd" size="16" color="#AD181F"></uni-icons>
43 在线选择</button> 43 在线选择</button>
44 <!-- <button class="btn-red-kx mini w45" @click="handleUpdate"> 44 <!-- <button class="btn-red-kx mini w45" @click="handleUpdate">
45 <uni-icons type="upload" size="16" color="#AD181F"></uni-icons> 45 <uni-icons type="upload" size="16" color="#AD181F"></uni-icons>
46 上传成绩单</button> --> 46 上传成绩单</button> -->
47 </view> 47 </view>
...@@ -52,13 +52,13 @@ ...@@ -52,13 +52,13 @@
52 </view> 52 </view>
53 </view> 53 </view>
54 <view class="userlist"> 54 <view class="userlist">
55 <view class="item" v-for="(n,index) in infoList" :key="index" style="background-color: #fffafa;"> 55 <view class="item" v-for="(n,index) in infoList" :key="index"
56 style="background-color: #fffafa;">
56 <view class="w100"> 57 <view class="w100">
57 <view class="del" @click="handleDelete(n)">删除</view> 58 <view class="del" @click="handleDelete(n)">删除</view>
58 <view style="display: flex;"> 59 <view style="display: flex;">
59 <view class="photobox"> 60 <view class="photobox">
60 <image class="photo" v-if="n.photo" :src="n.photo" 61 <image class="photo" v-if="n.photo" :src="n.photo" mode='aspectFill'></image>
61 mode='aspectFill'></image>
62 <view class="colorful" v-else>{{n.realName?.slice(0,1)}}</view> 62 <view class="colorful" v-else>{{n.realName?.slice(0,1)}}</view>
63 </view> 63 </view>
64 <view> 64 <view>
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
74 <view style="width: 40%;"> 74 <view style="width: 40%;">
75 考试级别 75 考试级别
76 <text style="padding: 15rpx 0;">{{ szToHz(n.levelNew) }}</text> 76 <text style="padding: 15rpx 0;">{{ szToHz(n.levelNew) }}</text>
77 <!-- <view @click="changeLevelfather(n)"> 77 <!-- <view @click="changeLevelfather(n)">
78 <uni-data-select v-model="n.levelNew" :localdata="levelArr" 78 <uni-data-select v-model="n.levelNew" :localdata="levelArr"
79 @change="changeLevel"></uni-data-select> 79 @change="changeLevel"></uni-data-select>
80 </view> --> 80 </view> -->
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
84 <view style="width: 30%;"> 84 <view style="width: 30%;">
85 是否通过 85 是否通过
86 <view> 86 <view>
87 <uni-data-select v-model="n.isPass" :localdata="range"></uni-data-select> 87 <uni-data-select :clear="false" v-model="n.isPass" :localdata="range"></uni-data-select>
88 </view> 88 </view>
89 </view> 89 </view>
90 </view> 90 </view>
...@@ -112,10 +112,16 @@ ...@@ -112,10 +112,16 @@
112 112
113 <uni-popup ref="choseStudent" type="bottom" background-color="#fff" animation> 113 <uni-popup ref="choseStudent" type="bottom" background-color="#fff" animation>
114 <view class="popBody"> 114 <view class="popBody">
115 <view class="userlist" style="max-height:80vh;overflow: auto;"> 115 <view class="searchbar">
116 <uni-easyinput placeholderStyle="font-size:30rpx" :input-border="false" prefixIcon="search"
117 v-model="studentQuery.name" placeholder="搜索姓名" @blur="chooseOnline" @clear="chooseOnline">
118 </uni-easyinput>
119 </view>
120 <view class="userlist" style="height:80vh;overflow: auto;">
116 <view class="item" v-for=" (n,index) in studentList" :key="index"> 121 <view class="item" v-for=" (n,index) in studentList" :key="index">
117 <view @click="checkThis(n)"> 122 <view @click="checkThis(n)">
118 <image class="icon" v-if="n.checked" :src="config.baseUrl_api+'/fs/static/member/dx_dwn.png'" /> 123 <image class="icon" v-if="n.checked"
124 :src="config.baseUrl_api+'/fs/static/member/dx_dwn.png'" />
119 <image class="icon" v-else :src="config.baseUrl_api+'/fs/static/member/dx.png'" /> 125 <image class="icon" v-else :src="config.baseUrl_api+'/fs/static/member/dx.png'" />
120 </view> 126 </view>
121 <view class="photobox"> 127 <view class="photobox">
...@@ -189,6 +195,9 @@ ...@@ -189,6 +195,9 @@
189 const ids = ref([]) 195 const ids = ref([])
190 const tablePersonInfo = ref({}) 196 const tablePersonInfo = ref({})
191 const transcript = ref([]) 197 const transcript = ref([])
198 const studentQuery = ref({
199 name:''
200 })
192 const levelArr = ref([{ 201 const levelArr = ref([{
193 value: '10', 202 value: '10',
194 text: '十级' 203 text: '十级'
...@@ -366,8 +375,8 @@ ...@@ -366,8 +375,8 @@
366 // form.value.examId 下一步 375 // form.value.examId 下一步
367 active.value = 1 376 active.value = 1
368 getChosedStudentList() 377 getChosedStudentList()
369 if(form.value.examId){ 378 if (form.value.examId) {
370 api.getLevelApplyInfo(form.value.examId).then(res=>{ 379 api.getLevelApplyInfo(form.value.examId).then(res => {
371 if (res.data.transcript) { 380 if (res.data.transcript) {
372 transcript.value = JSON.parse(res.data.transcript) 381 transcript.value = JSON.parse(res.data.transcript)
373 } 382 }
...@@ -399,19 +408,20 @@ ...@@ -399,19 +408,20 @@
399 408
400 function chooseOnline() { 409 function chooseOnline() {
401 uni.showLoading({ 410 uni.showLoading({
402 title:'加载中', 411 title: '加载中',
403 icon:'none' 412 icon: 'none'
404 }) 413 })
405 var obj = { 414 var obj = {
406 memId: memberInfo.memId, 415 memId: memberInfo.memId,
407 examId: form.value.examId, 416 examId: form.value.examId,
408 examType: form.value.type 417 examType: form.value.type,
418 name:studentQuery.value.name
409 } 419 }
410 api.chooseStudentsList(obj).then(response => { 420 api.chooseStudentsList(obj).then(response => {
411 studentList.value = response.rows 421 studentList.value = response.rows
412 for (var s of studentList.value) { 422 for (var s of studentList.value) {
413 s.checked = false 423 s.checked = false
414 if(s.photo&&s.photo.indexOf('http')==-1){ 424 if (s.photo && s.photo.indexOf('http') == -1) {
415 s.photo = config.baseUrl_api + s.photo 425 s.photo = config.baseUrl_api + s.photo
416 } 426 }
417 427
...@@ -474,7 +484,7 @@ ...@@ -474,7 +484,7 @@
474 if (!d.isPass) { 484 if (!d.isPass) {
475 d.isPass = '1' 485 d.isPass = '1'
476 } 486 }
477 if(d.photo&&d.photo.indexOf('http')==-1){ 487 if (d.photo && d.photo.indexOf('http') == -1) {
478 d.photo = config.baseUrl_api + d.photo 488 d.photo = config.baseUrl_api + d.photo
479 } 489 }
480 }) 490 })
...@@ -652,9 +662,9 @@ ...@@ -652,9 +662,9 @@
652 content: `确定删除${row.realName}?`, 662 content: `确定删除${row.realName}?`,
653 success: function(res) { 663 success: function(res) {
654 if (res.confirm) { 664 if (res.confirm) {
655 api.dellevelPerson(row.id).then(res=>{ 665 api.dellevelPerson(row.id).then(res => {
656 uni.showToast({ 666 uni.showToast({
657 title:`操作成功` 667 title: `操作成功`
658 }) 668 })
659 getChosedStudentList() 669 getChosedStudentList()
660 }) 670 })
...@@ -668,12 +678,16 @@ ...@@ -668,12 +678,16 @@
668 :deep(.uni-progress-bar) { 678 :deep(.uni-progress-bar) {
669 display: none; 679 display: none;
670 } 680 }
671 .item{ 681
672 .del{ color: #AD181F; 682 .item {
683 .del {
684 color: #AD181F;
673 position: absolute; 685 position: absolute;
674 right: 30rpx; 686 right: 30rpx;
675 font-size: 28rpx;} 687 font-size: 28rpx;
688 }
676 } 689 }
690
677 .wBox { 691 .wBox {
678 width: 700rpx; 692 width: 700rpx;
679 padding: 30rpx; 693 padding: 30rpx;
...@@ -690,10 +704,21 @@ ...@@ -690,10 +704,21 @@
690 .popBody { 704 .popBody {
691 padding: 40rpx 30rpx; 705 padding: 40rpx 30rpx;
692 } 706 }
693 .maskbox{position:relative; 707
694 .mask{position: absolute;width:calc(100% - 34px);height: 100%;z-index: 10; 708 .maskbox {
695 background-color: red;opacity: 0; 709 position: relative;
710
711 .mask {
712 position: absolute;
713 width: calc(100% - 34px);
714 height: 100%;
715 z-index: 10;
716 background-color: red;
717 opacity: 0;
718 }
696 } 719 }
720
721 :deep(.file-picker__progress) {
722 opacity: 0;
697 } 723 }
698 :deep(.file-picker__progress){opacity:0;}
699 </style> 724 </style>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -199,6 +199,27 @@ ...@@ -199,6 +199,27 @@
199 uni.navigateBack() 199 uni.navigateBack()
200 }) 200 })
201 } 201 }
202 function handleDelete(row){
203 uni.showModal({
204 title: '提示',
205 content: `确定删除吗`,
206 success: function(res) {
207 if (res.confirm) {
208 api.deltransferRange([row.id]).then(Response=>{
209 uni.showToast({
210 icon:"none",
211 title:'删除成功!'
212 })
213 if (total.value == 1) {
214 baseFormData.value.rangeId = '-1'
215 queryParams.value.rangeId = '-1'
216 }
217 getList()
218 })
219 }
220 }
221 })
222 }
202 </script> 223 </script>
203 224
204 <style scoped lang="scss"> 225 <style scoped lang="scss">
......
...@@ -13,15 +13,17 @@ ...@@ -13,15 +13,17 @@
13 v-model="baseFormData.name" placeholder="请输入姓名" /> 13 v-model="baseFormData.name" placeholder="请输入姓名" />
14 </uni-forms-item> 14 </uni-forms-item>
15 <uni-forms-item label="证件类型" required name="idcType"> 15 <uni-forms-item label="证件类型" required name="idcType">
16 <uni-data-select v-model="baseFormData.idcType" @change="changeIdcType" :clearable="false" :disabled="current === 0" :localdata="idcTypeList"></uni-data-select> 16 <uni-data-select v-model="baseFormData.idcType" @change="changeIdcType" :clearable="false"
17 :disabled="current === 0" :localdata="idcTypeList"></uni-data-select>
17 </uni-forms-item> 18 </uni-forms-item>
18 <uni-forms-item label="证件照" required name="card" v-show="current === 1"> 19 <uni-forms-item label="证件照" required v-show="current === 1">
19 <view class="upCard"> 20 <view class="upCard">
20 <uni-file-picker :class="baseFormData.card?'':'op0'" v-model="baseFormData.cardObj" 21 <uni-file-picker v-model="cardObj" @delete="delimgFont" return-type="object" limit="1"
21 @delete="delimgFont" return-type="object" limit="1" @select="upIdCardImgFront" 22 @select="upIdCardImgFront" :image-styles="imageStylesZJ">
22 :image-styles="imageStylesZJ"></uni-file-picker> 23 <image v-if="!baseFormData.card" class="sfz"
23 <!-- <image v-if="!baseFormData.card" class="sfz" src="@/static/login/sfz.png"> 24 :src="config.baseUrl_api+'/fs/static/login/sfz.png'">
24 </image> --> 25 </image>
26 </uni-file-picker>
25 </view> 27 </view>
26 </uni-forms-item> 28 </uni-forms-item>
27 <uni-forms-item label="姓名" required name="name" v-show="current === 1"> 29 <uni-forms-item label="姓名" required name="name" v-show="current === 1">
...@@ -133,6 +135,7 @@ ...@@ -133,6 +135,7 @@
133 const perId = ref() 135 const perId = ref()
134 const photoArr = ref({}) 136 const photoArr = ref({})
135 const regionsList = ref([]) 137 const regionsList = ref([])
138 const cardObj = ref({})
136 const baseFormData = ref({ 139 const baseFormData = ref({
137 photo: '', 140 photo: '',
138 sex: '0', 141 sex: '0',
...@@ -151,7 +154,7 @@ ...@@ -151,7 +154,7 @@
151 { 154 {
152 value: '3', 155 value: '3',
153 text: "外国护照" 156 text: "外国护照"
154 },{ 157 }, {
155 value: '5', 158 value: '5',
156 text: '户口本' 159 text: '户口本'
157 } 160 }
...@@ -201,15 +204,23 @@ ...@@ -201,15 +204,23 @@
201 if (current.value != e.currentIndex) { 204 if (current.value != e.currentIndex) {
202 current.value = e.currentIndex 205 current.value = e.currentIndex
203 } 206 }
207
208 photoArr.value = {}
209 if (current.value == 0) {
204 baseFormData.value = { 210 baseFormData.value = {
205 photo: '', 211 photo: '',
206 sex: '0', 212 sex: '0',
207 idcType: '0', 213 idcType: '0',
208 perType: '1' 214 perType: '1'
209 } 215 }
210 photoArr.value = {} 216 } else {
211 if(current.value==0){ 217 baseFormData.value = {
212 baseFormData.value.idcType = '0' 218 photo: '',
219 sex: '0',
220 idcType: '0',
221 perType: '1',
222 sourceFlag: 1
223 }
213 } 224 }
214 } 225 }
215 226
...@@ -224,28 +235,32 @@ ...@@ -224,28 +235,32 @@
224 // const formData = new FormData() 235 // const formData = new FormData()
225 // formData.append('pic', e.tempFiles[0].file) 236 // formData.append('pic', e.tempFiles[0].file)
226 api.carUrl(e.tempFilePaths[0], baseFormData.value.idcType).then(res => { 237 api.carUrl(e.tempFilePaths[0], baseFormData.value.idcType).then(res => {
227 baseFormData.value.idcUrl = res.data.url 238 console.log(res)
239 if(res.data){
228 baseFormData.value.sex = res.data.sex 240 baseFormData.value.sex = res.data.sex
229 baseFormData.value.birth = res.data.birth 241 baseFormData.value.birth = res.data.birth
230 baseFormData.value.idcCode = res.data.code 242 baseFormData.value.idcCode = res.data.code
243 baseFormData.value.name = res.data.name
244 baseFormData.value.uuid = res.data.uuid
231 baseFormData.value.cityId = res.data.cityId 245 baseFormData.value.cityId = res.data.cityId
232 baseFormData.value.address = res.data.address 246 baseFormData.value.address = res.data.address
233 photoArr.value = {} 247 photoArr.value = {}
234 if(res.data.photo){ 248 getExtractInfo({
235 baseFormData.value.photo = res.data.photo 249 idcCode: baseFormData.value.idcCode,
236 let obj = { 250 idcType: baseFormData.value.idcType,
237 url: config.baseUrl_api + res.data.photo, 251 perType: baseFormData.value.perType
238 name:'头像', 252 })
239 extname:'jpg' 253
254 } else {
255 uni.showModal({
256 content: res.msg,
257 success: function(res) {
258
240 } 259 }
241 photoArr.value=obj 260 })
242 } 261 }
243 baseFormData.value.name = res.data.name 262
244 baseFormData.value.picUUid = res.data.picUUid
245 }) 263 })
246 // api.uploadImg(e).then(data => {
247 // baseFormData.value.card = data.data;
248 // });
249 } 264 }
250 265
251 function upPhoto(e) { 266 function upPhoto(e) {
...@@ -271,7 +286,12 @@ ...@@ -271,7 +286,12 @@
271 } 286 }
272 287
273 function delimgFont(n) { 288 function delimgFont(n) {
274 baseFormData.value.card = ''; 289 baseFormData.value = {
290 photo: '',
291 sex: '0',
292 idcType: '0',
293 perType: '1',
294 };
275 } 295 }
276 296
277 function delPhoto(n) { 297 function delPhoto(n) {
...@@ -279,6 +299,47 @@ ...@@ -279,6 +299,47 @@
279 baseFormData.value.photo = ''; 299 baseFormData.value.photo = '';
280 } 300 }
281 301
302 function getExtractInfo(obj) {
303 //如果老会员
304 api.extractInfoFromChinaIdCard(obj).then(res => {
305 if (res.data.perCode) {
306 perId.value = res.data.perId
307 baseFormData.value.sex = res.data.sex
308 baseFormData.value.birth = res.data.birth
309 baseFormData.value.phone = res.data.phone
310 baseFormData.value.cityId = res.data.cityId
311 baseFormData.value.address = res.data.address
312 photoArr.value = {}
313 if (res.data.photo) {
314 console.log(res.data.photo)
315 if (res.data.photo.indexOf('http') == -1) {
316 baseFormData.value.photo = res.data.photo
317 let obj = {
318 url: config.baseUrl_api + res.data.photo,
319 name: '头像',
320 extname: 'jpg'
321 }
322 photoArr.value = obj
323 } else {
324 baseFormData.value.photo = res.data.photo
325 let obj = {
326 url: res.data.photo,
327 name: '头像',
328 extname: 'jpg'
329 }
330 photoArr.value = obj
331 }
332
333 }
334 baseFormData.value.name = res.data.name
335 baseFormData.value.perId = res.data.perId
336 console.log(res.data.photo, baseFormData.value.photo)
337 } else {
338 return
339 }
340 })
341 }
342
282 function giveBirthDay() { 343 function giveBirthDay() {
283 // 判断身份证正确性/赋值生日 344 // 判断身份证正确性/赋值生日
284 if (baseFormData.value.idcType == 0) { 345 if (baseFormData.value.idcType == 0) {
...@@ -312,41 +373,18 @@ ...@@ -312,41 +373,18 @@
312 // baseFormData.value.sex = '0' 373 // baseFormData.value.sex = '0'
313 // } 374 // }
314 // } 375 // }
315 376 getExtractInfo({
316 //如果老会员 377 idcCode: baseFormData.value.idcCode,
317 api.extractInfoFromChinaIdCard({ 378 idcType: baseFormData.value.idcType,
318 idcCode:baseFormData.value.idcCode, 379 perType: baseFormData.value.perType
319 idcType:baseFormData.value.idcType,
320 perType:baseFormData.value.perType,
321 }).then(res=>{
322 perId.value = res.data.perId
323 baseFormData.value.sex = res.data.sex
324 baseFormData.value.birth = res.data.birth
325 baseFormData.value.phone = res.data.phone
326 baseFormData.value.cityId = res.data.cityId
327 baseFormData.value.address = res.data.address
328 photoArr.value = {}
329 if(res.data.photo){
330 baseFormData.value.photo = res.data.photo
331 let obj = {
332 url: config.baseUrl_api + res.data.photo,
333 name:'头像',
334 extname:'jpg'
335 }
336 photoArr.value=obj
337 }
338 baseFormData.value.name = res.data.name
339 baseFormData.value.perId = res.data.perId
340 console.log(res.data.photo,baseFormData.value.photo)
341 }) 380 })
342
343 } 381 }
344 } 382 }
345 if (baseFormData.value.idcType == 1||baseFormData.value.idcType == 3||baseFormData.value.idcType == 4){ 383 if (baseFormData.value.idcType == 1 || baseFormData.value.idcType == 3 || baseFormData.value.idcType == 4) {
346 //转换为大写并判断位数12 384 //转换为大写并判断位数12
347 baseFormData.value.idcCode = baseFormData.value.idcCode.toUpperCase() 385 baseFormData.value.idcCode = baseFormData.value.idcCode.toUpperCase()
348 // var regex = /^[a-zA-Z]/ 386 // var regex = /^[a-zA-Z]/
349 if(baseFormData.value.idcCode.length>12){ 387 if (baseFormData.value.idcCode.length > 12) {
350 uni.showToast({ 388 uni.showToast({
351 icon: 'none', 389 icon: 'none',
352 title: '请输入正确的证件号', 390 title: '请输入正确的证件号',
...@@ -369,16 +407,19 @@ ...@@ -369,16 +407,19 @@
369 agree.value = true 407 agree.value = true
370 popup.value.close() 408 popup.value.close()
371 } 409 }
372 function changeIdcType(e){ 410
411 function changeIdcType(e) {
373 console.log(e) 412 console.log(e)
374 // 切换证件照类型把当前页面数据清空 413 // 切换证件照类型把当前页面数据清空
375 // baseFormData.value = { 414 baseFormData.value = {
376 // photo: '', 415 photo: '',
377 // sex: '0', 416 sex: '0',
378 // idcType: '0', 417 idcType: e,
379 // perType: '1', 418 perType: '1',
380 // } 419 sourceFlag: 1
381 } 420 }
421 }
422
382 function goSubmit() { 423 function goSubmit() {
383 if (!agree.value) { 424 if (!agree.value) {
384 uni.showToast({ 425 uni.showToast({
...@@ -411,11 +452,11 @@ ...@@ -411,11 +452,11 @@
411 }) 452 })
412 return 453 return
413 } 454 }
414 if (baseFormData.value.idcType == 1||baseFormData.value.idcType == 3||baseFormData.value.idcType == 4){ 455 if (baseFormData.value.idcType == 1 || baseFormData.value.idcType == 3 || baseFormData.value.idcType == 4) {
415 //转换为大写并判断位数12 456 //转换为大写并判断位数12
416 baseFormData.value.idcCode = baseFormData.value.idcCode.toUpperCase() 457 baseFormData.value.idcCode = baseFormData.value.idcCode.toUpperCase()
417 // var regex = /^[a-zA-Z]/ 458 // var regex = /^[a-zA-Z]/
418 if(baseFormData.value.idcCode.length>12){ 459 if (baseFormData.value.idcCode.length > 12) {
419 uni.showToast({ 460 uni.showToast({
420 icon: 'none', 461 icon: 'none',
421 title: '请输入正确的证件号', 462 title: '请输入正确的证件号',
...@@ -438,8 +479,8 @@ ...@@ -438,8 +479,8 @@
438 if (res.data * 1 < 0) { 479 if (res.data * 1 < 0) {
439 // 会员调入弹出 480 // 会员调入弹出
440 uni.showModal({ 481 uni.showModal({
441 content:'该会员已存在其他道馆,如需添加,请发起会员调动', 482 content: '该会员已存在其他道馆,如需添加,请发起会员调动',
442 title:'提示', 483 title: '提示',
443 success: function(res) {} 484 success: function(res) {}
444 }) 485 })
445 return 486 return
...@@ -469,7 +510,8 @@ ...@@ -469,7 +510,8 @@
469 function getUserInfo() { 510 function getUserInfo() {
470 api.getInfo(perId.value).then(res => { 511 api.getInfo(perId.value).then(res => {
471 baseFormData.value = res.data 512 baseFormData.value = res.data
472 if (baseFormData.areaAssName) baseFormData.ancestorNameList = baseFormData.value.ancestorNameList.join(',').replaceAll(',', 513 if (baseFormData.areaAssName) baseFormData.ancestorNameList = baseFormData.value.ancestorNameList.join(
514 ',').replaceAll(',',
473 '/') 515 '/')
474 }) 516 })
475 } 517 }
...@@ -532,11 +574,11 @@ ...@@ -532,11 +574,11 @@
532 } 574 }
533 575
534 .sfz { 576 .sfz {
535 width: 500rpx; 577 width: 476rpx;
536 position: absolute; 578 position: absolute;
537 top: 0; 579 top: 0;
538 left: 0; 580 left: 0;
539 height: 316rpx; 581 height: 293rpx;
540 } 582 }
541 } 583 }
542 584
...@@ -548,5 +590,4 @@ ...@@ -548,5 +590,4 @@
548 :deep(.item-text-overflow) { 590 :deep(.item-text-overflow) {
549 text-align: left; 591 text-align: left;
550 } 592 }
551
552 </style> 593 </style>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -65,8 +65,9 @@ ...@@ -65,8 +65,9 @@
65 <button @click="audit(item.id,'1')">同意</button> 65 <button @click="audit(item.id,'1')">同意</button>
66 </view> 66 </view>
67 <view class="func" v-if="(deptType == 6&&(item.status == 0 || item.status == 2))"> 67 <view class="func" v-if="(deptType == 6&&(item.status == 0 || item.status == 2))">
68 <button @click="del(item)">删除</button>
68 <button @click="editThis(item)">编辑</button> 69 <button @click="editThis(item)">编辑</button>
69 <button>提交审核</button> 70 <button v-if="item.status == 0 || item.status == 2" @click="handleSubmit(item)">提交审核</button>
70 </view> 71 </view>
71 </view> 72 </view>
72 </view> 73 </view>
...@@ -128,12 +129,12 @@ ...@@ -128,12 +129,12 @@
128 if (deptType.value == 1) { 129 if (deptType.value == 1) {
129 queryParams.value.dgId = -2 130 queryParams.value.dgId = -2
130 queryParams.value.ztxRes = '0' 131 queryParams.value.ztxRes = '0'
131 navs.value = ['审核中', '审核通过', '审核拒绝', '撤销申请'] 132 navs.value = ['审核中', '审核通过', '审核拒绝']
132 } 133 }
133 if (deptType.value == 6) { 134 if (deptType.value == 6) {
134 queryParams.value.dgId = 1 135 queryParams.value.dgId = 1
135 queryParams.value.status = '0' 136 queryParams.value.status = '0'
136 navs.value = ['未提交', '审核中', '审核拒绝', '审核通过', '已撤回'] 137 navs.value = ['未提交', '审核中', '审核拒绝', '审核通过']
137 } 138 }
138 getList() 139 getList()
139 } 140 }
...@@ -204,9 +205,42 @@ ...@@ -204,9 +205,42 @@
204 url: path 205 url: path
205 }); 206 });
206 } 207 }
207 208 function handleSubmit(row){
209 uni.showModal({
210 title: '提示',
211 content: `确定提交吗`,
212 success: function(res) {
213 if (res.confirm) {
214 api.commit([row.id]).then(Response=>{
215 uni.showToast({
216 icon:"none",
217 title:'提交成功!'
218 })
219 getList()
220 })
221 }
222 }
223 })
224 }
225 function del(row){
226 uni.showModal({
227 title: '提示',
228 content: `确定删除吗`,
229 success: function(res) {
230 if (res.confirm) {
231 api.delMobilize(row.id).then(Response=>{
232 uni.showToast({
233 icon:"none",
234 title:'删除成功!'
235 })
236 getList()
237 })
238 }
239 }
240 })
241 }
208 function audit(rangeId, flag) { 242 function audit(rangeId, flag) {
209 if (flag == '0') { 243 if (flag == '2') {
210 // 拒绝 244 // 拒绝
211 // 弹出框填写理由 245 // 弹出框填写理由
212 uni.showModal({ 246 uni.showModal({
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
38 </view> 38 </view>
39 </view> 39 </view>
40 40
41 <view class="fixedBottom" v-if="(deptType == 1)&&form.ztxRes == 0"> 41 <!-- <view class="fixedBottom" v-if="(deptType == 1)&&form.ztxRes == 0">
42 <button class="btn-red-kx" @click="audit(form.id,'2')">拒绝</button> 42 <button class="btn-red-kx" @click="audit(form.id,'2')">拒绝</button>
43 <button class="btn-red" @click="audit(form.id,'1')">同意</button> 43 <button class="btn-red" @click="audit(form.id,'1')">同意</button>
44 </view> 44 </view>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
46 <view class="fixedBottom" v-if="(deptType == 2 || deptType == 3)&&form.shenRes == 0"> 46 <view class="fixedBottom" v-if="(deptType == 2 || deptType == 3)&&form.shenRes == 0">
47 <button class="btn-red-kx" @click="audit(form.id,'2')">拒绝</button> 47 <button class="btn-red-kx" @click="audit(form.id,'2')">拒绝</button>
48 <button class="btn-red" @click="audit(form.id,'1')">同意</button> 48 <button class="btn-red" @click="audit(form.id,'1')">同意</button>
49 </view> 49 </view> -->
50 50
51 </view> 51 </view>
52 </template> 52 </template>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!