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
b24e46ff
Commit
b24e46ff
authored
Nov 20, 2019
by
anxixi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务记录校验问题
parent
ef3d000a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
73 additions
and
56 deletions
+73
-56
submitfive.vue
src/views/innovatecompany/submitprojects/submitfive.vue
+0
-1
editOnlyproject.vue
src/views/mobile/servicerecord/editOnlyproject.vue
+24
-7
editplanmentaion.vue
src/views/mobile/servicerecord/editplanmentaion.vue
+49
-48
editproject.vue
src/views/mobile/servicerecord/editproject.vue
+0
-0
No files found.
src/views/innovatecompany/submitprojects/submitfive.vue
View file @
b24e46ff
...
...
@@ -118,7 +118,6 @@
},
methods
:{
valuespace
(
rule
,
value
,
callback
)
{
console
.
log
(
rule
)
if
(
this
.
ispone
==
2
)
{
callback
(
new
Error
(
this
.
$t
(
'Otherjson.contact'
)))
}
...
...
src/views/mobile/servicerecord/editOnlyproject.vue
View file @
b24e46ff
...
...
@@ -5,7 +5,7 @@
</div>
<div>
<div
class=
"project_content"
>
<el-form
label-position=
"top"
label-width=
"80px"
:model=
"projectjson"
class=
"contnetform"
>
<el-form
label-position=
"top"
label-width=
"80px"
:
rules=
"rules"
ref=
"projectjson"
:
model=
"projectjson"
class=
"contnetform"
>
<el-form-item
v-if=
"subprojectjson.projectProgressArea===null"
label=
"项目潜在落地区域"
>
<el-select
style=
"width:100%;"
v-model=
"projectjson.projectProgressArea"
@
change=
"inputchange()"
placeholder=
"请选择项目潜在落地区域"
>
<el-option
v-for=
"item in projectareaData"
:key=
"item.dictKey"
:label=
"item.dictValue"
:value=
"item.dictKey"
>
...
...
@@ -34,19 +34,19 @@
<el-form-item
v-if=
"subprojectjson.contactEmpName===null"
label=
"项目联系人"
>
<el-input
@
input=
"inputchange()"
v-model=
"projectjson.contactEmpName"
maxlength=
"36"
placeholder=
"请输入项目联系人"
></el-input>
</el-form-item>
<el-form-item
v-if=
"subprojectjson.contactEmpPhone===null"
label=
"项目联系人手机"
>
<el-form-item
v-if=
"subprojectjson.contactEmpPhone===null"
label=
"项目联系人手机"
prop=
"contactEmpPhone"
:rules=
"[
{required: false, validator:contactEmpPhonespace, trigger: 'blur'}]"
>
<el-input
@
input=
"inputchange()"
v-model=
"projectjson.contactEmpPhone"
maxlength=
"36"
placeholder=
"请输入项目联系人手机"
></el-input>
</el-form-item>
<el-form-item
v-if=
"subprojectjson.contactEmpMail===null"
label=
"项目联系人邮箱"
>
<el-form-item
v-if=
"subprojectjson.contactEmpMail===null"
label=
"项目联系人邮箱"
prop=
"contactEmpMail"
:rules=
"[
{required: false, validator:contactEmpMailspace, trigger: 'blur'}]"
>
<el-input
@
input=
"inputchange()"
v-model=
"projectjson.contactEmpMail"
maxlength=
"36"
placeholder=
"请输入项目联系人邮箱"
></el-input>
</el-form-item>
<div
v-if=
"subprojectjson.stockRight===null"
>
<el-form-item
label=
"股权结构"
>
<el-form-item
label=
"股权结构
(占比单位:%)
"
>
</el-form-item>
<div
v-for=
"item in stockRight"
style=
"margin-top: -0.2rem;"
>
<el-form-item
label=
""
style=
"position: relative;"
>
<el-input
v-model=
"item.stockHolder"
maxlength=
"36"
placeholder=
"请输入股权人"
style=
"width: 47%;margin-top: 0.2rem;"
></el-input>
<el-input
v-model=
"item.stockProportion"
maxlength=
"36"
placeholder=
"请输入占比
"
style=
"width: 47%;margin-top: 0.2rem;position: absolute;right: 0px;top: 0px;"
></el-input>
<el-input
v-model=
"item.stockProportion"
maxlength=
"36"
type=
"number"
placeholder=
"请输入占比 (单位:%)
"
style=
"width: 47%;margin-top: 0.2rem;position: absolute;right: 0px;top: 0px;"
></el-input>
</el-form-item>
</div>
<div>
...
...
@@ -81,8 +81,8 @@
<el-form-item
v-if=
"subprojectjson.companyAdvantage===null"
label=
"竞争优势"
>
<el-input
@
input=
"inputchange()"
v-model=
"projectjson.companyAdvantage"
maxlength=
"300"
placeholder=
"请输入竞争优势"
type=
"textarea"
:rows=
"6"
></el-input>
</el-form-item>
<el-form-item
v-if=
"subprojectjson.lastSalesAmount===null"
label=
"最近一年年销售额"
>
<el-input
@
input=
"inputchange()"
v-model=
"projectjson.lastSalesAmount"
maxlength=
"36"
placeholder=
"请输入最近一年年销售额"
></el-input>
<el-form-item
v-if=
"subprojectjson.lastSalesAmount===null"
label=
"最近一年年销售额
(单位:万)
"
>
<el-input
@
input=
"inputchange()"
v-model=
"projectjson.lastSalesAmount"
type=
"number"
maxlength=
"36"
placeholder=
"请输入最近一年年销售额"
></el-input>
</el-form-item>
</el-form>
</div>
...
...
@@ -104,6 +104,7 @@
},
data
(){
return
{
rules
:
{},
data
:
[],
//条件查询组织结构数据
defaultProps
:
{
children
:
'orgStructurelist'
,
...
...
@@ -131,6 +132,22 @@
}
},
methods
:{
contactEmpMailspace
(
rule
,
value
,
callback
)
{
var
reg
=
/^
[
A-Za-z
\d]
+
([
-_.
][
A-Za-z
\d]
+
)
*@
([
A-Za-z
\d]
+
[
-.
])
+
[
A-Za-z
]{2,5}
$/
;
if
(
!
reg
.
test
(
this
.
projectjson
.
contactEmpMail
)
&&
this
.
projectjson
.
contactEmpMail
!=
''
&&
this
.
projectjson
.
contactEmpMail
!=
null
){
callback
(
new
Error
(
'请输入正确的邮箱'
));
}
else
{
callback
();
}
},
contactEmpPhonespace
(
rule
,
value
,
callback
)
{
var
reg
=
/^
((
13
[
0-9
])
|
(
14
([
0
]
|
[
5-9
]))
|
(
15
([
0-3
]
|
[
5-9
]))
|
(
16
([
2
]
|
[
5-7
]))
|
(
17
[
0-9
])
|
(
18
[
0-9
])
|
(
19
([
1
]
|
[
8,9
])))\d{8}
$/
;
if
(
!
reg
.
test
(
this
.
projectjson
.
contactEmpPhone
)
&&
this
.
projectjson
.
contactEmpPhone
!=
''
&&
this
.
projectjson
.
contactEmpPhone
!=
null
){
callback
(
new
Error
(
'请输入正确的手机号'
));
}
else
{
callback
();
}
},
addedit
(){
for
(
let
i
in
this
.
stockRight
){
if
(
this
.
stockRight
[
i
].
stockHolder
!=
''
&&
this
.
stockRight
[
i
].
stockProportion
!=
''
){
...
...
src/views/mobile/servicerecord/editplanmentaion.vue
View file @
b24e46ff
...
...
@@ -386,61 +386,65 @@
}
}
}
else
if
(
this
.
statechange
==
'SRT02'
){
for
(
let
i
in
this
.
companyLabel
){
if
(
this
.
companyLabel
[
i
].
companyLabel
!=
''
){
if
(
this
.
projectjson
.
companyLabel
==
null
){
this
.
projectjson
.
companyLabel
=
''
;
if
(
this
.
projectjson
.
explication
){
for
(
let
i
in
this
.
companyLabel
){
if
(
this
.
companyLabel
[
i
].
companyLabel
!=
''
){
if
(
this
.
projectjson
.
companyLabel
==
null
){
this
.
projectjson
.
companyLabel
=
''
;
}
this
.
projectjson
.
companyLabel
+=
this
.
companyLabel
[
i
].
companyLabel
+
','
;
}
this
.
projectjson
.
companyLabel
+=
this
.
companyLabel
[
i
].
companyLabel
+
','
;
}
}
for
(
let
i
in
this
.
projectLightspot
){
if
(
this
.
projectLightspot
[
i
].
projectLightspot
!=
''
){
if
(
this
.
projectjson
.
projectLightspot
==
null
){
this
.
projectjson
.
projectLightspot
=
''
;
for
(
let
i
in
this
.
projectLightspot
){
if
(
this
.
projectLightspot
[
i
].
projectLightspot
!=
''
){
if
(
this
.
projectjson
.
projectLightspot
==
null
){
this
.
projectjson
.
projectLightspot
=
''
;
}
this
.
projectjson
.
projectLightspot
+=
this
.
projectLightspot
[
i
].
projectLightspot
+
','
;
}
this
.
projectjson
.
projectLightspot
+=
this
.
projectLightspot
[
i
].
projectLightspot
+
','
;
}
}
for
(
let
i
in
this
.
customerLabel
){
if
(
this
.
customerLabel
[
i
].
customerLabel
!=
''
){
if
(
this
.
projectjson
.
customerLabel
==
null
){
this
.
projectjson
.
customerLabel
=
''
;
}
else
this
.
projectjson
.
customerLabel
+=
this
.
customerLabel
[
i
].
customerLabel
+
','
;
for
(
let
i
in
this
.
customerLabel
){
if
(
this
.
customerLabel
[
i
].
customerLabel
!=
''
){
if
(
this
.
projectjson
.
customerLabel
==
null
){
this
.
projectjson
.
customerLabel
=
''
;
}
else
this
.
projectjson
.
customerLabel
+=
this
.
customerLabel
[
i
].
customerLabel
+
','
;
}
}
}
if
(
this
.
projectjson
.
companyNation
){
this
.
projectjson
.
companyAddress
=
{};
this
.
projectjson
.
companyAddress
.
companyNation
=
this
.
projectjson
.
companyNation
;
this
.
projectjson
.
companyNation
=
undefined
;
}
if
(
this
.
projectjson
.
companyProvince
){
this
.
projectjson
.
companyAddress
.
companyProvince
=
this
.
projectjson
.
companyProvince
;
this
.
projectjson
.
companyProvince
=
undefined
;
}
if
(
this
.
projectjson
.
companyCity
){
this
.
projectjson
.
companyAddress
.
companyCity
=
this
.
projectjson
.
companyCity
;
this
.
projectjson
.
companyCity
=
undefined
;
}
if
(
this
.
projectjson
.
companyIndustry
){
if
(
this
.
projectjson
.
companyIndustry
[
0
].
industryId
){
let
companyIndustryId
=
[];
for
(
let
s
in
this
.
projectjson
.
companyIndustry
){
companyIndustryId
.
push
(
this
.
projectjson
.
companyIndustry
[
s
].
industryId
)
if
(
this
.
projectjson
.
companyNation
){
this
.
projectjson
.
companyAddress
=
{};
this
.
projectjson
.
companyAddress
.
companyNation
=
this
.
projectjson
.
companyNation
;
this
.
projectjson
.
companyNation
=
undefined
;
}
if
(
this
.
projectjson
.
companyProvince
){
this
.
projectjson
.
companyAddress
.
companyProvince
=
this
.
projectjson
.
companyProvince
;
this
.
projectjson
.
companyProvince
=
undefined
;
}
if
(
this
.
projectjson
.
companyCity
){
this
.
projectjson
.
companyAddress
.
companyCity
=
this
.
projectjson
.
companyCity
;
this
.
projectjson
.
companyCity
=
undefined
;
}
if
(
this
.
projectjson
.
companyIndustry
){
if
(
this
.
projectjson
.
companyIndustry
[
0
].
industryId
){
let
companyIndustryId
=
[];
for
(
let
s
in
this
.
projectjson
.
companyIndustry
){
companyIndustryId
.
push
(
this
.
projectjson
.
companyIndustry
[
s
].
industryId
)
}
this
.
projectjson
.
companyIndustry
=
companyIndustryId
;
this
.
projectjson
.
companyIndustry
=
this
.
projectjson
.
companyIndustry
.
join
(
','
);
}
else
{
this
.
projectjson
.
companyIndustry
=
this
.
projectjson
.
companyIndustry
.
join
(
','
);
}
this
.
projectjson
.
companyIndustry
=
companyIndustryId
;
this
.
projectjson
.
companyIndustry
=
this
.
projectjson
.
companyIndustry
.
join
(
','
);
}
else
{
this
.
projectjson
.
companyIndustry
=
this
.
projectjson
.
companyIndustry
.
join
(
','
);
}
}
if
(
this
.
projectjson
.
customerIndustry
){
this
.
projectjson
.
customerIndustry
=
this
.
projectjson
.
customerIndustry
.
join
(
','
);
if
(
this
.
projectjson
.
customerIndustry
){
this
.
projectjson
.
customerIndustry
=
this
.
projectjson
.
customerIndustry
.
join
(
','
);
}
}
else
{
this
.
$toast
(
"请完善备注信息"
);
return
}
}
if
(
this
.
response
){
if
(
this
.
projectjson
.
explication
){
let
params
=
{
params
:
this
.
projectjson
,
phaseId
:
this
.
ServicephasesId
,
...
...
@@ -459,9 +463,6 @@
console
.
log
(
"提交出错"
);
return
false
;
})
}
else
{
this
.
$toast
(
"请完善备注信息"
);
}
}
else
{
if
(
this
.
projectjson
.
explication
){
...
...
src/views/mobile/servicerecord/editproject.vue
View file @
b24e46ff
This diff is collapsed.
Click to expand it.
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