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
3daf625d
Commit
3daf625d
authored
Oct 13, 2021
by
qinj
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://120.25.63.219:6088/rex/portalhtml
into dev
parents
032c2be0
c813fabf
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
36 deletions
+50
-36
lov-data.js
src/api/lov-data.js
+5
-0
qcc.js
src/api/qcc.js
+11
-1
index.vue
src/components/Lov/index.vue
+3
-2
index.vue
...customers-add/components/customersAdd-accessory/index.vue
+1
-12
index.vue
src/views/customers/customers-add/index.vue
+30
-21
No files found.
src/api/lov-data.js
View file @
3daf625d
...
...
@@ -192,6 +192,11 @@ export default {
label
:
'社会统一信用代码'
,
type
:
'input'
,
layout
:
12
},
Status
:
{
label
:
'状态'
,
type
:
'input'
,
layout
:
12
}
}
}
...
...
src/api/qcc.js
View file @
3daf625d
import
request
from
'@/utils/request'
export
const
Qcc
=
{
searchUrl
:
'/qcc/search'
,
detailUrl
:
'/qcc/getOne'
...
...
@@ -14,4 +16,12 @@ export const Customer = {
export
const
Common
=
{
searchUrl
:
'/commonSession/searchAll'
,
}
\ No newline at end of file
}
export
function
qccGetOne
(
data
)
{
return
request
({
url
:
'/qcc/getOne'
,
method
:
'post'
,
data
})
}
src/components/Lov/index.vue
View file @
3daf625d
...
...
@@ -197,7 +197,7 @@ export default {
tableData
:
[],
pageData
:
{
total
:
0
,
currentPage
:
0
,
pageIndex
:
0
,
pageSize
:
10
},
text
:
this
.
value
,
...
...
@@ -249,7 +249,8 @@ export default {
delete
params
.
total
this
.
$request
(
url
,
params
).
then
(
res
=>
{
this
.
tableData
=
res
.
results
.
Result
||
[]
this
.
pageData
.
total
=
Number
(
res
.
totalSize
||
0
)
this
.
pageData
.
total
=
Number
(
res
.
results
.
Paging
.
TotalRecords
||
0
)
// this.pageData.total = 100
this
.
loading
=
false
})
},
...
...
src/views/customers/customers-add/components/customersAdd-accessory/index.vue
View file @
3daf625d
...
...
@@ -24,8 +24,7 @@ export default {
},
data
()
{
return
{
typeCode
:
uploadCode
.
customer
,
objectId
:
'aaaaaa'
typeCode
:
uploadCode
.
customer
}
},
watch
:
{
...
...
@@ -45,16 +44,6 @@ export default {
immediate
:
true
,
deep
:
true
}
},
created
()
{
// 设置表单的初始搜索条件,该条件一般不会发生改变
if
(
this
.
$attrs
[
'form-data'
]
&&
this
.
$attrs
[
'form-data'
].
BusinessObjectID
)
{
config
.
tableConfig
.
initialParams
=
{
BusinessObjectID
:
this
.
$attrs
[
'form-data'
].
BusinessObjectID
,
}
}
else
{
config
.
tableConfig
.
url
=
''
}
}
}
</
script
>
...
...
src/views/customers/customers-add/index.vue
View file @
3daf625d
...
...
@@ -22,7 +22,7 @@ import Title from '@/components/Title'
import
{
customerCreate
,
provinceSearch
,
citySearch
,
districtSearch
}
from
'@/api/customers'
;
import
customerAddAddress
from
'./components/customersAdd-adress/index'
import
customerAddAccessory
from
'./components/customersAdd-accessory/index'
// import constant from '@/components/ExportBtn/constant';
import
{
qccGetOne
}
from
'@/api/qcc'
export
default
{
components
:
{
...
...
@@ -32,7 +32,8 @@ export default {
customerAddAccessory
,
provinceSearch
,
citySearch
,
districtSearch
districtSearch
,
qccGetOne
},
data
()
{
return
{
...
...
@@ -46,10 +47,19 @@ export default {
formDesc
:
{
Name
:
{
type
:
'lov'
,
label
:
'公司
企
称'
,
label
:
'公司
全
称'
,
layout
:
24
,
code
:
'qcc'
,
returnFn
:
function
(
row
)
{
// let resDate = await qccGetOne({searchKey:row.CreditCode})
// let resDates = {
// Name: resDate.results.Result.Name,
// ExtSocialUnifiedCreditCode_SDK: resDate.results.Result.CreditCode,
// ExtCorporateName_SDK: resDate.results.Result.OperName,
// ExtRegisteredCapital_SDK: resDate.results.Result.RegistCapi
// }
// console.log(resDates)
// return resDates
return
{
Name
:
row
.
Name
,
ExtSocialUnifiedCreditCode_SDK
:
row
.
CreditCode
,
...
...
@@ -59,7 +69,7 @@ export default {
},
ExtSecondName_SDK
:
{
type
:
'input'
,
label
:
'公司
企
称曾用名'
,
label
:
'公司
全
称曾用名'
,
layout
:
12
,
},
ExtSocialUnifiedCreditCode_SDK
:
{
...
...
@@ -87,7 +97,7 @@ export default {
{
title
:
'地址信息'
,
formDesc
:
{
ExtProvince
Code
_SDK
:
{
ExtProvince_SDK
:
{
type
:
'select'
,
label
:
'省份'
,
layout
:
12
,
...
...
@@ -102,18 +112,18 @@ export default {
return
result
},
},
ExtCity
Code
_SDK
:
{
ExtCity_SDK
:
{
type
:
'select'
,
label
:
'城市'
,
layout
:
12
,
isOptions
:
true
,
optionsLinkageFields
:
[
'ExtProvince
Code
_SDK'
],
optionsLinkageFields
:
[
'ExtProvince_SDK'
],
options
:
async
data
=>
{
if
(
!
data
.
ExtProvince
Code
_SDK
)
{
if
(
!
data
.
ExtProvince_SDK
)
{
return
[]
}
const
res
=
await
citySearch
({
provinceCode
:
data
.
ExtProvince
Code
_SDK
provinceCode
:
data
.
ExtProvince_SDK
})
var
result
=
res
.
results
.
map
(
item
=>
{
return
{
...
...
@@ -124,18 +134,18 @@ export default {
return
result
},
},
ExtDistrict
Code
_SDK
:
{
ExtDistrict_SDK
:
{
type
:
'select'
,
label
:
'县市'
,
layout
:
12
,
isOptions
:
true
,
optionsLinkageFields
:
[
'ExtProvince
Code_SDK'
,
'ExtCityCode
_SDK'
],
optionsLinkageFields
:
[
'ExtProvince
_SDK'
,
'ExtCity
_SDK'
],
options
:
async
data
=>
{
if
(
!
data
.
ExtCity
Code
_SDK
)
{
if
(
!
data
.
ExtCity_SDK
)
{
return
[]
}
const
res
=
await
districtSearch
({
cityCode
:
data
.
ExtCity
Code
_SDK
cityCode
:
data
.
ExtCity_SDK
})
var
result
=
res
.
results
.
map
(
item
=>
{
return
{
...
...
@@ -206,14 +216,13 @@ export default {
],
// 同 vue-ele-form
rules
:
{
Name
:
{
required
:
true
,
message
:
'名称必填'
},
ExtSocialUnifiedCreditCode_SDK
:
{
required
:
true
,
message
:
'名称必填'
},
ExtSocialUnifiedCreditCode_SDK
:
{
required
:
true
,
message
:
'名称必填'
},
ExtRegisteredCapital_SDK
:
{
required
:
true
,
message
:
'名称必填'
},
ExtCorporateName_SDK
:
{
required
:
true
,
message
:
'名称必填'
},
ExtProvinceCode_SDK
:
{
required
:
true
,
message
:
'名称必填'
},
ExtDistrictCode_SDK
:
{
required
:
true
,
message
:
'名称必填'
},
ExtCityCode_SDK
:
{
required
:
true
,
message
:
'名称必填'
},
Name
:
{
required
:
true
,
message
:
'公司名称必填'
},
ExtSocialUnifiedCreditCode_SDK
:
{
required
:
true
,
message
:
'社会统一信用代码必填'
},
ExtRegisteredCapital_SDK
:
{
required
:
true
,
message
:
'注册资本必填'
},
ExtCorporateName_SDK
:
{
required
:
true
,
message
:
'法人必填'
},
ExtProvince_SDK
:
{
required
:
true
,
message
:
'省份必填'
},
ExtDistrict_SDK
:
{
required
:
true
,
message
:
'城市必填'
},
ExtCity_SDK
:
{
required
:
true
,
message
:
'县区必填'
},
}
}
},
...
...
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