id number verify
This commit is contained in:
parent
449ace26e2
commit
0053c1d52e
|
@ -122,6 +122,12 @@ export const asyncRoutes = [
|
||||||
component: () => import('@/views/crm/claim.vue'),
|
component: () => import('@/views/crm/claim.vue'),
|
||||||
meta: { title: '认领学员', icon: '', perms: ['consumer_view'] }
|
meta: { title: '认领学员', icon: '', perms: ['consumer_view'] }
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'candidate',
|
||||||
|
name: 'Candidate',
|
||||||
|
component: () => import('@/views/analyse/candidate.vue'),
|
||||||
|
meta: { title: '成绩单查询', icon: '', perms: ['candidate_view'] }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: 'consumerrule',
|
path: 'consumerrule',
|
||||||
name: 'ConsumerRule',
|
name: 'ConsumerRule',
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { genTree, deepClone } from "@/utils";
|
||||||
|
import checkPermission from "@/utils/permission";
|
||||||
|
import Pagination from "@/components/Pagination"; // secondary package based on el-pagination
|
||||||
|
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { Pagination },
|
||||||
|
watch: {
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
formData:{}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {},
|
||||||
|
watch: {
|
||||||
|
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
|
@ -337,8 +337,6 @@ class ConsumerViewSet(ModelViewSet):
|
||||||
return Response({"error":"工作类别列错误!"})
|
return Response({"error":"工作类别列错误!"})
|
||||||
if sheet['e2'].value != '角色':
|
if sheet['e2'].value != '角色':
|
||||||
return Response({"error":"角色列错误!"})
|
return Response({"error":"角色列错误!"})
|
||||||
if sheet['f2'].value != '身份证号':
|
|
||||||
return Response({"error":"身份证号列错误!"})
|
|
||||||
m = 3
|
m = 3
|
||||||
while sheet['B'+str(m)].value:
|
while sheet['B'+str(m)].value:
|
||||||
name = sheet['A'+str(m)].value
|
name = sheet['A'+str(m)].value
|
||||||
|
@ -367,7 +365,8 @@ class ConsumerViewSet(ModelViewSet):
|
||||||
obj.create_admin = request.user
|
obj.create_admin = request.user
|
||||||
obj.name = name
|
obj.name = name
|
||||||
obj.company = companyobj
|
obj.company = companyobj
|
||||||
obj.ID_number1 = ID_number1
|
if ID_number1:
|
||||||
|
obj.ID_number1 = ID_number1
|
||||||
obj.save()
|
obj.save()
|
||||||
if workscope:
|
if workscope:
|
||||||
workscope = workscope.replace(' ', '')
|
workscope = workscope.replace(' ', '')
|
||||||
|
|
Loading…
Reference in New Issue