Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
front-end-dev
techbook
Commits
f9f379f0
Commit
f9f379f0
authored
Aug 14, 2020
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
第三阶段改为不必填
parent
28615c88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
9 deletions
+22
-9
addrecord.vue
src/components/sale/addrecord.vue
+22
-9
No files found.
src/components/sale/addrecord.vue
View file @
f9f379f0
...
...
@@ -32,12 +32,12 @@
<el-input
v-model=
"ruleForm.requirementContactUser"
style=
"width: 250px;"
:placeholder=
"$t('saleManage.contactForm.placeholderName')"
maxlength=
"36"
></el-input>
</el-form-item>
<el-form-item
:label=
"$t('recordManage.corporate')+
' '
+$t('saleRecordTitle.contactWay')+':'"
prop=
"requirementContactWay"
>
<el-form-item
:label=
"$t('recordManage.corporate')+
(lang==2?' ':'')
+$t('saleRecordTitle.contactWay')+':'"
prop=
"requirementContactWay"
>
<el-input
v-model=
"ruleForm.requirementContactWay"
style=
"width: 250px;"
:placeholder=
"$t('saleRecordTitle.contactWayTitle')"
autocomplete
maxlength=
"36"
></el-input>
</el-form-item>
<el-form-item
:label=
"$t('recordManage.corporate')+
' '
+$t('saleRecordTitle.position')+':'"
prop=
"requirementPosition"
>
<el-form-item
:label=
"$t('recordManage.corporate')+
(lang==2?' ':'')
+$t('saleRecordTitle.position')+':'"
prop=
"requirementPosition"
>
<el-input
v-model=
"ruleForm.requirementPosition"
style=
"width: 250px;"
:placeholder=
"$t('saleManage.contactForm.placeholderPosition')"
maxlength=
"36"
></el-input>
</el-form-item>
...
...
@@ -47,12 +47,12 @@
</el-form-item>
<el-form-item
:label=
"$t('recordManage.startup')+
' '
+$t('saleRecordTitle.contactWay')+':'"
prop=
"projectContactWay"
>
<el-form-item
:label=
"$t('recordManage.startup')+
(lang==2?' ':'')
+$t('saleRecordTitle.contactWay')+':'"
prop=
"projectContactWay"
>
<el-input
v-model=
"ruleForm.projectContactWay"
style=
"width: 250px;"
:placeholder=
"$t('saleRecordTitle.contactWayTitle')"
autocomplete
maxlength=
"36"
></el-input>
</el-form-item>
<el-form-item
:label=
"$t('recordManage.startup')+
' '
+$t('saleRecordTitle.position')+':'"
prop=
"projectPosition"
>
<el-form-item
:label=
"$t('recordManage.startup')+
(lang==2?' ':'')
+$t('saleRecordTitle.position')+':'"
prop=
"projectPosition"
>
<el-input
v-model=
"ruleForm.projectPosition"
style=
"width: 250px;"
:placeholder=
"$t('saleManage.contactForm.placeholderPosition')"
maxlength=
"36"
></el-input>
</el-form-item>
...
...
@@ -153,16 +153,16 @@
recordResult
:[{
required
:
true
,
message
:
this
.
$t
(
"saleRecordTitle.selectRecordTitle"
),
trigger
:
'change'
}],
contactTime
:[{
required
:
true
,
message
:
this
.
$t
(
"saleRecordTitle.selectTime"
),
trigger
:
'change'
}],
requirementContactUser
:[
{
required
:
true
,
validator
:
validate
.
checkRequireName
,
trigger
:
'blur'
},
{
required
:
false
,
validator
:
this
.
checkRequireName
,
trigger
:
'blur'
},
],
requirementContactWay
:[{
required
:
tru
e
,
message
:
this
.
$t
(
"saleRecordTitle.contactWayTitle"
),
trigger
:
'blur'
}],
requirementContactWay
:[{
required
:
fals
e
,
message
:
this
.
$t
(
"saleRecordTitle.contactWayTitle"
),
trigger
:
'blur'
}],
requirementPosition
:[
{
required
:
false
,
validator
:
validate
.
checkNotRequirePosition
,
trigger
:
'blur'
},
],
projectContactUser
:[
{
required
:
true
,
validator
:
validate
.
checkRequireName
,
trigger
:
'blur'
},
{
required
:
false
,
validator
:
this
.
checkRequireName
,
trigger
:
'blur'
},
],
projectContactWay
:[{
required
:
tru
e
,
message
:
this
.
$t
(
"saleRecordTitle.contactWayTitle"
),
trigger
:
'blur'
}],
projectContactWay
:[{
required
:
fals
e
,
message
:
this
.
$t
(
"saleRecordTitle.contactWayTitle"
),
trigger
:
'blur'
}],
projectPosition
:[
{
required
:
false
,
validator
:
validate
.
checkNotRequirePosition
,
trigger
:
'blur'
},
],
...
...
@@ -184,12 +184,25 @@
dictKey
:
1
,
dictValue
:
this
.
$t
(
"saleRecordTitle.no"
)
}],
disabledFlag
:
0
disabledFlag
:
0
,
lang
:
this
.
publicFun
.
getCookie
(
"language"
)
==
"zh-CN"
?
1
:
2
,
}
},
methods
:{
//验证需求联系人姓名
checkRequireName
(
rule
,
value
,
callback
){
var
reg
=
/^
[
a-zA-Z
\u
4e00-
\u
9fa5
]{2,36}
$/
,
reg1
=
/^
\s
+$/g
;
if
(
reg1
.
test
(
value
)){
callback
(
new
Error
(
this
.
$t
(
"saleManage.placeholderName"
)));
}
else
if
(
value
!=
''
&&!
reg
.
test
(
value
)){
callback
(
new
Error
(
this
.
$t
(
"saleManage.placeholderName"
)));
}
else
{
callback
();
}
},
validateContent
(
rule
,
value
,
callback
){
var
reg1
=
/^
\s
+$/g
;
if
(
value
===
""
||
reg1
.
test
(
value
)){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment