电子档案表单验证

main
cyl 1 year ago
parent 17c625e57c
commit fbab32c832

@ -298,7 +298,7 @@
>
<el-row>
<el-col :span="8">
<el-form-item label="业务实体名称" prop="company">
<el-form-item label="业务实体" prop="company">
<el-select
v-model="form.company"
placeholder="请选择业务实体"
@ -579,7 +579,17 @@ export default {
//
form: {},
//
rules: {},
rules: {
company: [
{ required: true, message: "业务实体不能为空", trigger: "change" },
],
deptName: [
{ required: true, message: "部门名称不能为空", trigger: "change" },
],
assetCode: [
{ required: true, message: "资产编号不能为空", trigger: "change" },
],
},
organizationList: [],
siteOptions: [], //
siteArray: [], //

@ -643,7 +643,19 @@ export default {
//
form: {},
//
rules: {},
rules: {
consultationId: [
{ required: true, message: "咨询编号不能为空", trigger: "change" },
{
required: true,
pattern: /^[_a-zA-Z0-9]+$/,
message: "请输入正确咨询编号",
},
],
company: [
{ required: true, message: "业务实体不能为空", trigger: "change" },
],
},
siteOptions: [], //
siteArray: [], //
organizationList: [],

@ -699,7 +699,19 @@ export default {
//
form: {},
//
rules: {},
rules: {
company: [
{ required: true, message: "业务实体不能为空", trigger: "change" },
],
contractCode: [
{ required: true, message: "合同编号不能为空", trigger: "change" },
{
required: true,
pattern: /^[_a-zA-Z0-9]+$/,
message: "请输入正确合同编号",
},
],
},
siteOptions: [], //
siteArray: [], //
organizationList: [],

@ -661,7 +661,19 @@ export default {
//
form: {},
//
rules: {},
rules: {
company: [
{ required: true, message: "业务实体不能为空", trigger: "change" },
],
complaintCode: [
{ required: true, message: "客诉编号不能为空", trigger: "change" },
{
required: true,
pattern: /^[_a-zA-Z0-9]+$/,
message: "请输入正确客诉编号",
},
],
},
siteOptions: [], //
siteArray: [], //
organizationList: [],

@ -621,8 +621,14 @@
</el-col>
<el-col :span="8">
<el-form-item label="纸档位置" prop="position">
<el-cascader v-model="siteArray" :options="siteOptions" :props="propName" placeholder="请选择纸档位置" clearable
@change="handleSiteChanged" />
<el-cascader
v-model="siteArray"
:options="siteOptions"
:props="propName"
placeholder="请选择纸档位置"
clearable
@change="handleSiteChanged"
/>
</el-form-item>
</el-col>
</el-row>
@ -735,6 +741,9 @@ export default {
form: {},
//
rules: {
company: [
{ required: true, message: "业务实体不能为空", trigger: "change" },
],
idCardNumber: [
{ required: true, trigger: "change", message: "身份证号不能为空" },
{

@ -210,7 +210,7 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="OA/ERP流程号 " prop="flowCode">
<el-form-item label="OA/ERP流程号 " prop="flowCode">
<el-input
v-model="form.flowCode"
placeholder="请输入OA/ERP流程编号 "
@ -309,13 +309,13 @@
</el-select>
</el-form-item> -->
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="流程号" prop="flowId">
<el-input v-model="form.flowId" placeholder="请输入流程号" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="所属部门" prop="deptName">
<treeselect
@ -434,7 +434,17 @@ export default {
//
form: {},
//
rules: {},
rules: {
name: [{ required: true, message: "表名不能为空", trigger: "change" }],
flowCode: [
{ required: true, message: "OA/流程编号不能为空", trigger: "change" },
{
required: true,
pattern: /^[_a-zA-Z0-9]+$/,
message: "请输入正确OA/流程编号",
},
],
},
siteOptions: [], //
siteArray: [], //
organizationList: [],

Loading…
Cancel
Save