Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
22145abe
Commit
22145abe
authored
Aug 27, 2020
by
王悦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix校验流程
parent
955b9d82
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
31 deletions
+36
-31
fqboss/app/front/vues/pages/automatictmsubmitedit/automatictmsubmitedit.html
+4
-3
fqboss/app/front/vues/pages/automatictmsubmitedit/automatictmsubmitedit.js
+10
-8
fqboss/app/front/vues/pages/automatictmsubmitinside/automatictmsubmitinside.html
+3
-3
fqboss/app/front/vues/pages/automatictmsubmitinside/automatictmsubmitinside.js
+19
-17
No files found.
fqboss/app/front/vues/pages/automatictmsubmitedit/automatictmsubmitedit.html
View file @
22145abe
...
@@ -27,12 +27,13 @@
...
@@ -27,12 +27,13 @@
<el-form-item
label=
"商标名称"
style=
"width:450px;float:left"
prop=
"tmName"
>
<el-form-item
label=
"商标名称"
style=
"width:450px;float:left"
prop=
"tmName"
>
<el-input
v-model=
"form.tmName"
></el-input>
<el-input
v-model=
"form.tmName"
></el-input>
</el-form-item>
</el-form-item>
<div
style=
"float:left;padding-left:10px"
>
<el-button
@
click=
"checkname"
>
阿里验证
</el-button>
</div>
<div
style=
"float:left;padding-left:10px"
v-if=
"form.tmFormType==3"
>
<div
style=
"float:left;padding-left:10px"
v-if=
"form.tmFormType==3"
>
<el-button
@
click=
"word2pic"
>
文字商标在线生成
</el-button>
<el-button
@
click=
"word2pic"
>
文字商标在线生成
</el-button>
</div>
</div>
<div
style=
"float:left;padding-left:10px"
v-if=
"form.tmFormType==3"
>
<el-button
@
click=
"checkname"
>
阿里验证
</el-button>
</div>
<div
style=
"clear:both;"
></div>
<div
style=
"clear:both;"
></div>
<el-form-item
style=
"width:350px;float:left"
label=
"商标图样_黑白"
prop=
"picUrl"
>
<el-form-item
style=
"width:350px;float:left"
label=
"商标图样_黑白"
prop=
"picUrl"
>
<img
width=
"120px"
height=
"120px"
style=
"border:2px dashed #e9e9e9"
v-if=
"form.picUrl"
<img
width=
"120px"
height=
"120px"
style=
"border:2px dashed #e9e9e9"
v-if=
"form.picUrl"
...
...
fqboss/app/front/vues/pages/automatictmsubmitedit/automatictmsubmitedit.js
View file @
22145abe
...
@@ -811,23 +811,21 @@
...
@@ -811,23 +811,21 @@
});
});
},
},
checkname
()
async
checkname
()
{
{
if
(
!
this
.
form
.
tmName
)
{
if
(
!
this
.
form
.
tmName
)
{
return
this
.
$message
.
error
(
'商标名称不能为空!'
);
return
this
.
$message
.
error
(
'商标名称不能为空!'
);
}
}
this
.
$root
.
showMask
();
let
d
=
await
this
.
$root
.
getReq
(
"/web/calculatepriceCtl/checkname"
,
{
name
:
this
.
form
.
tmName
});
this
.
$root
.
getReq
(
"/web/calculatepriceCtl/checkname"
,
{
name
:
this
.
form
.
tmName
}).
then
(
d
=>
{
console
.
log
(
d
);
console
.
log
(
d
);
if
(
d
.
data
.
data
.
Result
===
"PASS"
)
{
if
(
d
.
data
.
data
.
Result
===
"PASS"
)
{
this
.
$message
.
success
(
`名称可以使用`
);
this
.
$message
.
success
(
`名称可以使用`
);
return
true
;
}
else
if
(
d
.
data
.
data
.
Result
===
"BLOCK"
)
{
}
else
if
(
d
.
data
.
data
.
Result
===
"BLOCK"
)
{
this
.
form
.
tmName
=
""
;
this
.
form
.
tmName
=
""
;
this
.
$message
.
warning
(
d
.
data
.
data
.
Message
)
this
.
$message
.
warning
(
d
.
data
.
data
.
Message
);
return
false
;
}
}
}).
finally
(()
=>
{
this
.
$root
.
hideMask
();
});
},
},
updatePrice
(){
updatePrice
(){
this
.
form
.
totalSum
=
0
;
this
.
form
.
totalSum
=
0
;
...
@@ -924,8 +922,12 @@
...
@@ -924,8 +922,12 @@
}
}
return
{
code
:
1
};
return
{
code
:
1
};
},
},
submitForm
(
formName
)
{
async
submitForm
(
formName
)
{
var
that
=
this
;
var
that
=
this
;
if
(
formName
==
"form"
){
let
pass
=
await
this
.
checkname
();
if
(
!
pass
)
return
;
}
if
(
formName
==
"form"
||
formName
==
"apply"
)
{
if
(
formName
==
"form"
||
formName
==
"apply"
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
...
...
fqboss/app/front/vues/pages/automatictmsubmitinside/automatictmsubmitinside.html
View file @
22145abe
...
@@ -26,12 +26,12 @@
...
@@ -26,12 +26,12 @@
<el-form-item
label=
"商标名称"
style=
"width:450px;float:left"
prop=
"tmName"
>
<el-form-item
label=
"商标名称"
style=
"width:450px;float:left"
prop=
"tmName"
>
<el-input
v-model=
"form.tmName"
></el-input>
<el-input
v-model=
"form.tmName"
></el-input>
</el-form-item>
</el-form-item>
<div
style=
"float:left;padding-left:10px"
>
<el-button
@
click=
"checkname"
>
阿里验证
</el-button>
</div>
<div
style=
"float:left;padding-left:10px"
v-if=
"form.tmFormType==3"
>
<div
style=
"float:left;padding-left:10px"
v-if=
"form.tmFormType==3"
>
<el-button
@
click=
"word2pic"
>
文字商标在线生成
</el-button>
<el-button
@
click=
"word2pic"
>
文字商标在线生成
</el-button>
</div>
</div>
<div
style=
"float:left;padding-left:10px"
v-if=
"form.tmFormType==3"
>
<el-button
@
click=
"checkname"
>
阿里验证
</el-button>
</div>
<div
style=
"clear:both;"
></div>
<div
style=
"clear:both;"
></div>
<el-form-item
style=
"width:350px;float:left"
label=
"商标图样_黑白"
prop=
"picUrl"
>
<el-form-item
style=
"width:350px;float:left"
label=
"商标图样_黑白"
prop=
"picUrl"
>
...
...
fqboss/app/front/vues/pages/automatictmsubmitinside/automatictmsubmitinside.js
View file @
22145abe
...
@@ -739,23 +739,21 @@
...
@@ -739,23 +739,21 @@
});
});
},
},
checkname
()
async
checkname
()
{
{
if
(
!
this
.
form
.
tmName
)
{
if
(
!
this
.
form
.
tmName
)
{
return
this
.
$message
.
error
(
'商标名称不能为空!'
);
return
this
.
$message
.
error
(
'商标名称不能为空!'
);
}
}
this
.
$root
.
showMask
();
let
d
=
await
this
.
$root
.
getReq
(
"/web/calculatepriceCtl/checkname"
,
{
name
:
this
.
form
.
tmName
});
this
.
$root
.
getReq
(
"/web/calculatepriceCtl/checkname"
,
{
name
:
this
.
form
.
tmName
}).
then
(
d
=>
{
console
.
log
(
d
);
console
.
log
(
d
);
if
(
d
.
data
.
data
.
Result
===
"PASS"
)
{
if
(
d
.
data
.
data
.
Result
===
"PASS"
)
{
this
.
$message
.
success
(
`名称可以使用`
);
this
.
$message
.
success
(
`名称可以使用`
);
return
true
;
}
else
if
(
d
.
data
.
data
.
Result
===
"BLOCK"
)
{
}
else
if
(
d
.
data
.
data
.
Result
===
"BLOCK"
)
{
this
.
form
.
tmName
=
""
;
this
.
form
.
tmName
=
""
;
this
.
$message
.
warning
(
d
.
data
.
data
.
Message
)
this
.
$message
.
warning
(
d
.
data
.
data
.
Message
);
}
return
false
;
}).
finally
(()
=>
{
}
this
.
$root
.
hideMask
();
});
},
},
updatePrice
(){
updatePrice
(){
this
.
form
.
totalSum
=
0
;
this
.
form
.
totalSum
=
0
;
...
@@ -791,12 +789,16 @@
...
@@ -791,12 +789,16 @@
selfclear
(){
selfclear
(){
this
.
nclOne
=
[];
this
.
nclOne
=
[];
},
},
submitForm
(
formName
)
{
async
submitForm
(
formName
)
{
var
that
=
this
;
var
that
=
this
;
if
(
that
.
orderErrorMsg
&&
that
.
orderErrorMsg
.
code
&&
that
.
orderErrorMsg
.
code
!=
1
)
{
if
(
that
.
orderErrorMsg
&&
that
.
orderErrorMsg
.
code
&&
that
.
orderErrorMsg
.
code
!=
1
)
{
that
.
$message
.
warning
(
that
.
orderErrorMsg
.
msg
);
that
.
$message
.
warning
(
that
.
orderErrorMsg
.
msg
);
return
false
;
return
false
;
}
}
if
(
formName
==
"form"
){
let
pass
=
await
this
.
checkname
();
if
(
!
pass
)
return
;
}
var
channelCode
=
this
.
$store
.
state
.
channelCode
;
var
channelCode
=
this
.
$store
.
state
.
channelCode
;
if
(
formName
==
"form"
||
formName
==
"apply"
)
{
if
(
formName
==
"form"
||
formName
==
"apply"
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
...
...
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