Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
portalhtml
Project
Project
Details
Activity
Releases
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
rex
portalhtml
Commits
2e4a3960
Commit
2e4a3960
authored
Oct 20, 2021
by
qinj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注册唯一性校验
parent
e81fb247
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
18 deletions
+27
-18
qcc.js
src/api/qcc.js
+2
-1
index.vue
src/views/login/city-register/index.vue
+7
-3
index.vue
src/views/login/prov-register/index.vue
+18
-14
No files found.
src/api/qcc.js
View file @
2e4a3960
...
...
@@ -3,7 +3,8 @@ import request from '@/utils/request'
export
const
Qcc
=
{
searchUrl
:
'/qcc/search'
,
detailUrl
:
'/qcc/getOne'
detailUrl
:
'/qcc/getOne'
,
onlyDetailUrl
:
'/customer/checkUniqueness'
,
}
export
const
Country
=
{
searchPro
:
'/province/searchAll'
,
...
...
src/views/login/city-register/index.vue
View file @
2e4a3960
...
...
@@ -458,23 +458,27 @@ export default {
this
.
dialogTableVisible
=
true
},
select
(
row
,
column
,
event
)
{
this
.
page
.
extSocialUnifiedCreditCode_SDK
=
row
.
CreditCode
this
.
page
.
searchKey
=
row
.
CreditCode
this
.
$request
(
Qcc
.
d
etailUrl
,
this
.
page
).
then
((
resp
)
=>
{
this
.
$request
(
Qcc
.
onlyD
etailUrl
,
this
.
page
).
then
((
resp
)
=>
{
this
.
formData
.
extCorporateName_SDK
=
row
.
OperName
this
.
formData
.
extSocialUnifiedCreditCode_SDK
=
row
.
CreditCode
this
.
formData
.
name
=
row
.
Name
this
.
formData
.
extRegisteredCapital_SDK
=
resp
.
results
.
Result
.
RegistCapi
this
.
dialogTableVisible
=
false
}).
catch
((
err
)
=>
{
})
},
handleApprove
()
{
this
.
$refs
.
formData
.
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
formData
.
extCustomerType_SDK
=
111
this
.
formData
.
extCustomerType_SDK
=
111
const
dataList
=
this
.
formData
this
.
btnloading
=
true
this
.
$request
(
Customer
.
searchUrl
,
this
.
paramsToFormData
(
this
.
formData
)).
then
((
resp
)
=>
{
this
.
$request
(
Customer
.
searchUrl
,
this
.
paramsToFormData
(
dataList
)).
then
((
resp
)
=>
{
this
.
btnloading
=
false
this
.
$message
.
success
(
'提交成功!'
)
this
.
isShow
=
false
...
...
src/views/login/prov-register/index.vue
View file @
2e4a3960
...
...
@@ -459,9 +459,9 @@ export default {
countryOptions
:
[],
cityOptions
:
[],
disOptions
:
[],
aOptions
:
''
,
bOptions
:
''
,
cOptions
:
''
,
aOptions
:
[]
,
bOptions
:
[]
,
cOptions
:
[]
,
supplierBaseRules
:
{
extSocialUnifiedCreditCode_SDK
:
[{
required
:
true
,
message
:
'请输入统一社会信用代码'
,
trigger
:
'blur'
}],
// extRegisteredCapital_SDK: [{ required: true, message: '请输入注册资本(万元)' }],
...
...
@@ -620,29 +620,33 @@ export default {
this
.
dialogTableVisible
=
true
},
select
(
row
,
column
,
event
)
{
this
.
page
.
searchKey
=
row
.
CreditCode
this
.
$request
(
Qcc
.
detailUrl
,
this
.
page
).
then
((
resp
)
=>
{
this
.
page
.
extSocialUnifiedCreditCode_SDK
=
row
.
CreditCode
this
.
page
.
searchKey
=
row
.
CreditCode
this
.
$request
(
Qcc
.
onlyDetailUrl
,
this
.
page
).
then
((
resp
)
=>
{
this
.
formData
.
extCorporateName_SDK
=
row
.
OperName
this
.
formData
.
extSocialUnifiedCreditCode_SDK
=
row
.
CreditCode
this
.
formData
.
name
=
row
.
Name
this
.
formData
.
extRegisteredCapital_SDK
=
resp
.
results
.
Result
.
RegistCapi
this
.
dialogTableVisible
=
false
}).
catch
((
err
)
=>
{
})
},
handleApprove
()
{
this
.
$refs
.
formData
.
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
formData
.
extCustomerType_SDK
=
101
const
ExtProductGroup_KUT
=
this
.
formData
.
extProductGroup_KUT
.
toString
()
const
ExtProductGroup_SDK
=
this
.
formData
.
extProductGroup_SDK
.
toString
()
const
ExtTotalAgent_KUT
=
this
.
formData
.
extTotalAgent_KUT
.
toString
()
const
ExtTotalAgent_SDK
=
this
.
formData
.
extTotalAgent_SDK
.
toString
()
this
.
formData
.
extProductGroup_KUT
=
ExtProductGroup_KUT
this
.
formData
.
extProductGroup_SDK
=
ExtProductGroup_SDK
this
.
formData
.
extTotalAgent_KUT
=
ExtTotalAgent_KUT
this
.
formData
.
extTotalAgent_SDK
=
ExtTotalAgent_SDK
let
dataList
=
this
.
formData
const
ExtProductGroup_KUT
=
this
.
formData
.
extProductGroup_KUT
const
ExtProductGroup_SDK
=
this
.
formData
.
extProductGroup_SDK
const
ExtTotalAgent_KUT
=
this
.
formData
.
extTotalAgent_KUT
const
ExtTotalAgent_SDK
=
this
.
formData
.
extTotalAgent_SDK
dataList
.
extProductGroup_KUT
=
ExtProductGroup_KUT
.
toString
()
dataList
.
extProductGroup_SDK
=
ExtProductGroup_SDK
.
toString
()
dataList
.
extTotalAgent_KUT
=
ExtTotalAgent_KUT
.
toString
()
dataList
.
extTotalAgent_SDK
=
ExtTotalAgent_SDK
.
toString
()
this
.
btnloading
=
true
this
.
$request
(
Customer
.
searchUrl
,
this
.
paramsToFormData
(
this
.
formData
)).
then
((
resp
)
=>
{
this
.
$request
(
Customer
.
searchUrl
,
this
.
paramsToFormData
(
dataList
)).
then
((
resp
)
=>
{
this
.
btnloading
=
false
this
.
$message
.
success
(
'提交成功!'
)
this
.
isShow
=
false
...
...
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