'单位信息、从业人员管理、申请人员、申请人员、保安待培训人员管理、保安培训项目管理、保安考试管理页面对接处理'
This commit is contained in:
@ -9,11 +9,9 @@
|
||||
</div>
|
||||
<div class="cntinfo">
|
||||
<FormMessage ref="FormRef" :disabled="disabled" v-model="formData" :rules="rules" :formList="formList" :labelWidth='120'>
|
||||
<!-- <template #zb>
|
||||
<el-input v-model="formData.zb" placeholder="请选择巡逻路线">
|
||||
<template #append><el-button type="primary" @click="chackLat">开始绘制</el-button></template>
|
||||
</el-input>
|
||||
</template> -->
|
||||
<template #lzsj>
|
||||
<el-input v-model="formData.lzsj" disabled placeholder="请选择离职时间"></el-input>
|
||||
</template>
|
||||
</FormMessage>
|
||||
</div>
|
||||
</div>
|
||||
@ -25,6 +23,7 @@ import { qcckPost } from "@/api/qcckApi.js";
|
||||
import FormMessage from '@/components/aboutTable/FormMessage.vue'
|
||||
|
||||
const { proxy } = getCurrentInstance()
|
||||
const { D_BZ_WHCD } = proxy.$dict("D_BZ_WHCD");
|
||||
const title = ref('新增从业人员')
|
||||
const loading = ref(false)
|
||||
const disabled = ref(false)
|
||||
@ -35,10 +34,6 @@ const props = defineProps({
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
dic: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
}
|
||||
})
|
||||
|
||||
const emits = defineEmits(['update:modelValue'])
|
||||
@ -61,39 +56,74 @@ const formList = reactive([
|
||||
],
|
||||
[
|
||||
{ label: "入职时间", prop: "rzsj", type: "date" },
|
||||
{ label: "离职时间", prop: "lzsj", type: "input" },
|
||||
{ label: "文化程度", prop: "ssbmdm", type: "select" },
|
||||
{ label: "离职时间", prop: "lzsj", type: "slot" },
|
||||
{ label: "文化程度", prop: "whcd", type: "select", options: D_BZ_WHCD },
|
||||
{ label: "资格证编号", prop: "zgzbh", type: "input" },
|
||||
],
|
||||
[
|
||||
{ label: "资格证类型", prop: "zgzlx", type: "input" },
|
||||
{ label: "资格证起始日期", prop: "zgzKssj", type: "date" },
|
||||
{ label: "资格证截至日期", prop: "zgzJssj", type: "date" },
|
||||
{ label: "岗位", prop: "ssbmdm", type: "input" },
|
||||
{ label: "岗位", prop: "gw", type: "input" },
|
||||
],
|
||||
[
|
||||
{ label: "外派单位", prop: "ssbmdm", type: "input" },
|
||||
{ label: "外派单位", prop: "wpdw", type: "input" },
|
||||
],
|
||||
{ label: "从业人员照片", prop: "ssbmdm", type: "upload" },
|
||||
{ label: "从业人员照片", prop: "", type: "upload", limit: 2 },
|
||||
{ label: "保安证件", prop: "bazzp", type: "upload", limit: 1 },
|
||||
])
|
||||
|
||||
const rules = {
|
||||
xm: [{ required: true, message: "请输入姓名", trigger: "change" }],
|
||||
sfzh: [{ required: true, message: "请输入证件号码", trigger: "change" }],
|
||||
lxdh: [{ required: true, message: "请输入联系电话", trigger: "change" }],
|
||||
sfzh: [
|
||||
{ required: true, message: "请输入证件号码", trigger: "change" },
|
||||
{
|
||||
validator: (rule, value, callback) => {
|
||||
if (!value) {
|
||||
callback()
|
||||
} else {
|
||||
const reg = /^(\d{15}|\d{17}[\dXx])$/;
|
||||
if (!reg.test(value)) {
|
||||
callback(new Error("请输入正确的身份证号码"))
|
||||
} else {
|
||||
callback()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
lxdh: [
|
||||
{ required: true, message: "请输入联系电话", trigger: "change" },
|
||||
{
|
||||
validator: (rule, value, callback) => {
|
||||
if (!value) {
|
||||
callback()
|
||||
} else {
|
||||
const reg = /^1[34578]\d{9}$/
|
||||
if (!reg.test(value)) {
|
||||
callback(new Error("请输入正确的手机号"))
|
||||
} else {
|
||||
callback()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
jzdz: [{ required: true, message: "请输入居住地址", trigger: "change" }],
|
||||
rzsj: [{ required: true, message: "请选择入职时间", trigger: "change" }],
|
||||
zgzbh: [{ required: true, message: "请输入资格证编号", trigger: "change" }],
|
||||
|
||||
gw: [{ required: true, message: "请输入岗位", trigger: "change" }],
|
||||
wpdw: [{ required: true, message: "请输入外派单位", trigger: "change" }],
|
||||
zgzlx: [{ required: true, message: "请输入资格证类型", trigger: "change" }],
|
||||
zgzKssj: [{ required: true, message: "请选择资格证起始日期", trigger: "change" }],
|
||||
zgzJssj: [{ required: true, message: "请选择资格证截至日期", trigger: "blur" }],
|
||||
whcd: [{ required: true, message: "请选择文化程度", trigger: "change" }],
|
||||
}
|
||||
|
||||
const formData = ref({})
|
||||
|
||||
const close = () => {
|
||||
FormRef.value?.reset();
|
||||
dialogVisible.value = false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user