id number verify

This commit is contained in:
caoqianming 2020-09-02 08:56:16 +08:00
parent 449ace26e2
commit 0053c1d52e
3 changed files with 40 additions and 3 deletions

View File

@ -122,6 +122,12 @@ export const asyncRoutes = [
component: () => import('@/views/crm/claim.vue'),
meta: { title: '认领学员', icon: '', perms: ['consumer_view'] }
},
{
path: 'candidate',
name: 'Candidate',
component: () => import('@/views/analyse/candidate.vue'),
meta: { title: '成绩单查询', icon: '', perms: ['candidate_view'] }
},
{
path: 'consumerrule',
name: 'ConsumerRule',

View File

@ -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>

View File

@ -337,8 +337,6 @@ class ConsumerViewSet(ModelViewSet):
return Response({"error":"工作类别列错误!"})
if sheet['e2'].value != '角色':
return Response({"error":"角色列错误!"})
if sheet['f2'].value != '身份证号':
return Response({"error":"身份证号列错误!"})
m = 3
while sheet['B'+str(m)].value:
name = sheet['A'+str(m)].value
@ -367,6 +365,7 @@ class ConsumerViewSet(ModelViewSet):
obj.create_admin = request.user
obj.name = name
obj.company = companyobj
if ID_number1:
obj.ID_number1 = ID_number1
obj.save()
if workscope: