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
4835c646
Commit
4835c646
authored
Oct 14, 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
9acc8f28
a1f4c886
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
33 deletions
+41
-33
index.vue
src/views/customers/customers-add/index.vue
+41
-33
No files found.
src/views/customers/customers-add/index.vue
View file @
4835c646
...
@@ -48,18 +48,10 @@ export default {
...
@@ -48,18 +48,10 @@ export default {
Name
:
{
Name
:
{
type
:
'lov'
,
type
:
'lov'
,
label
:
'公司全称'
,
label
:
'公司全称'
,
layout
:
24
,
layout
:
16
,
code
:
'qcc'
,
code
:
'qcc'
,
displayKey
:
'Name'
,
returnFn
:
function
(
row
)
{
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
{
return
{
Name
:
row
.
Name
,
Name
:
row
.
Name
,
ExtSocialUnifiedCreditCode_SDK
:
row
.
CreditCode
,
ExtSocialUnifiedCreditCode_SDK
:
row
.
CreditCode
,
...
@@ -70,27 +62,28 @@ export default {
...
@@ -70,27 +62,28 @@ export default {
ExtSecondName_SDK
:
{
ExtSecondName_SDK
:
{
type
:
'input'
,
type
:
'input'
,
label
:
'公司全称曾用名'
,
label
:
'公司全称曾用名'
,
layout
:
1
2
,
layout
:
1
0
,
},
},
ExtSocialUnifiedCreditCode_SDK
:
{
ExtSocialUnifiedCreditCode_SDK
:
{
type
:
'input'
,
type
:
'input'
,
label
:
'社会统一信用代码'
,
label
:
'社会统一信用代码'
,
layout
:
1
2
layout
:
1
0
},
},
ExtRegisteredCapital_SDK
:
{
ExtRegisteredCapital_SDK
:
{
type
:
'input'
,
type
:
'input'
,
label
:
'注册资本(万元)'
,
label
:
'注册资本(万元)'
,
layout
:
12
,
layout
:
10
,
default
:
''
},
},
ExtCorporateName_SDK
:
{
ExtCorporateName_SDK
:
{
type
:
'input'
,
type
:
'input'
,
label
:
'法人'
,
label
:
'法人'
,
layout
:
1
2
,
layout
:
1
0
,
},
},
// Ext_QuoteOppotunity_KUT: {
// Ext_QuoteOppotunity_KUT: {
// type: 'input',
// type: 'input',
// label: '税务登记编号',
// label: '税务登记编号',
// layout: 1
2
// layout: 1
0
// },
// },
}
}
},
},
...
@@ -100,7 +93,7 @@ export default {
...
@@ -100,7 +93,7 @@ export default {
ExtProvince_SDK
:
{
ExtProvince_SDK
:
{
type
:
'select'
,
type
:
'select'
,
label
:
'省份'
,
label
:
'省份'
,
layout
:
1
2
,
layout
:
1
0
,
options
:
async
data
=>
{
options
:
async
data
=>
{
const
res
=
await
provinceSearch
({})
const
res
=
await
provinceSearch
({})
var
result
=
res
.
results
.
map
(
item
=>
{
var
result
=
res
.
results
.
map
(
item
=>
{
...
@@ -115,7 +108,7 @@ export default {
...
@@ -115,7 +108,7 @@ export default {
ExtCity_SDK
:
{
ExtCity_SDK
:
{
type
:
'select'
,
type
:
'select'
,
label
:
'地市'
,
label
:
'地市'
,
layout
:
1
2
,
layout
:
1
0
,
isOptions
:
true
,
isOptions
:
true
,
optionsLinkageFields
:
[
'ExtProvince_SDK'
],
optionsLinkageFields
:
[
'ExtProvince_SDK'
],
options
:
async
data
=>
{
options
:
async
data
=>
{
...
@@ -137,7 +130,7 @@ export default {
...
@@ -137,7 +130,7 @@ export default {
ExtDistrict_SDK
:
{
ExtDistrict_SDK
:
{
type
:
'select'
,
type
:
'select'
,
label
:
'县市'
,
label
:
'县市'
,
layout
:
1
2
,
layout
:
1
0
,
isOptions
:
true
,
isOptions
:
true
,
optionsLinkageFields
:
[
'ExtProvince_SDK'
,
'ExtCity_SDK'
],
optionsLinkageFields
:
[
'ExtProvince_SDK'
,
'ExtCity_SDK'
],
options
:
async
data
=>
{
options
:
async
data
=>
{
...
@@ -159,7 +152,7 @@ export default {
...
@@ -159,7 +152,7 @@ export default {
ExtAddressDetail_SDK
:
{
ExtAddressDetail_SDK
:
{
type
:
'input'
,
type
:
'input'
,
label
:
'详细经营地址'
,
label
:
'详细经营地址'
,
layout
:
1
2
,
layout
:
1
0
,
},
},
}
}
},
},
...
@@ -169,47 +162,47 @@ export default {
...
@@ -169,47 +162,47 @@ export default {
ExtLeader_SDK
:
{
ExtLeader_SDK
:
{
type
:
'input'
,
type
:
'input'
,
label
:
'公司负责人姓名'
,
label
:
'公司负责人姓名'
,
layout
:
1
2
layout
:
1
0
},
},
ExtLeaderPhone_SDK
:
{
ExtLeaderPhone_SDK
:
{
type
:
'input'
,
type
:
'input'
,
label
:
'公司负责人联系方式'
,
label
:
'公司负责人联系方式'
,
layout
:
1
2
layout
:
1
0
},
},
ExtLeaderEmail_SDK
:
{
ExtLeaderEmail_SDK
:
{
type
:
'input'
,
type
:
'input'
,
label
:
'公司负责人邮箱'
,
label
:
'公司负责人邮箱'
,
layout
:
1
2
layout
:
1
0
},
},
ExtUnis_SDK
:
{
ExtUnis_SDK
:
{
type
:
'input'
,
type
:
'input'
,
layout
:
1
2
,
layout
:
1
0
,
label
:
'Unis业务负责人姓名'
label
:
'Unis业务负责人姓名'
},
},
ExtUnisPhone_SDK
:
{
ExtUnisPhone_SDK
:
{
type
:
'input'
,
type
:
'input'
,
layout
:
1
2
,
layout
:
1
0
,
label
:
'Unis业务负责人联系方式'
label
:
'Unis业务负责人联系方式'
},
},
ExtUnisEmail_SDK
:
{
ExtUnisEmail_SDK
:
{
type
:
'input'
,
type
:
'input'
,
label
:
'Unis业务负责人邮箱'
,
label
:
'Unis业务负责人邮箱'
,
layout
:
1
2
layout
:
1
0
},
},
ExtBusiness_SDK
:
{
ExtBusiness_SDK
:
{
type
:
'input'
,
type
:
'input'
,
layout
:
1
2
,
layout
:
1
0
,
label
:
'商务负责人姓名'
label
:
'商务负责人姓名'
},
},
ExtBusinessPhone_SDK
:
{
ExtBusinessPhone_SDK
:
{
type
:
'input'
,
type
:
'input'
,
layout
:
1
2
,
layout
:
1
0
,
label
:
'商务负责人联系方式'
label
:
'商务负责人联系方式'
},
},
ExtBusinessEmail_SDK
:
{
ExtBusinessEmail_SDK
:
{
type
:
'input'
,
type
:
'input'
,
label
:
'商务负责人邮箱'
,
label
:
'商务负责人邮箱'
,
layout
:
1
2
layout
:
1
0
},
},
}
}
}
}
...
@@ -223,16 +216,31 @@ export default {
...
@@ -223,16 +216,31 @@ export default {
ExtProvince_SDK
:
{
required
:
true
,
message
:
'省份必填'
},
ExtProvince_SDK
:
{
required
:
true
,
message
:
'省份必填'
},
ExtDistrict_SDK
:
{
required
:
true
,
message
:
'城市必填'
},
ExtDistrict_SDK
:
{
required
:
true
,
message
:
'城市必填'
},
ExtCity_SDK
:
{
required
:
true
,
message
:
'县区必填'
},
ExtCity_SDK
:
{
required
:
true
,
message
:
'县区必填'
},
ExtLeader_SDK
:
{
required
:
true
,
message
:
'公司负责人姓名'
},
ExtLeaderPhone_SDK
:
{
required
:
true
,
message
:
'公司负责人联系方式'
},
ExtLeaderEmail_SDK
:
{
required
:
true
,
message
:
'公司负责人邮箱'
},
ExtUnis_SDK
:
{
required
:
true
,
message
:
'Unis业务负责人姓名'
},
ExtUnisPhone_SDK
:
{
required
:
true
,
message
:
'Unis业务负责人联系方式'
},
ExtUnisEmail_SDK
:
{
required
:
true
,
message
:
'Unis业务负责人邮箱'
},
}
}
}
}
},
},
watch
:
{
'formData.ExtSocialUnifiedCreditCode_SDK'
:
{
handler
(
newValue
)
{
console
.
log
(
"单个属性监听"
,
newValue
)
this
.
sections
[
0
].
formDesc
.
ExtRegisteredCapital_SDK
.
default
=
qccGetOne
({
searchKey
:
newValue
}).
then
(
res
=>
{
this
.
sections
[
0
].
formDesc
.
ExtRegisteredCapital_SDK
.
default
=
res
.
results
.
Result
.
RegistCapi
})
}
}
},
methods
:
{
methods
:
{
handleSubmit
(
data
)
{
handleSubmit
(
data
)
{
data
.
extCustomerType_SDK
=
'101'
data
.
extCustomerType_SDK
=
'101'
console
.
log
(
data
)
// this.addBtnStart = true
// this.addBtnStart = true
customerCreate
(
this
.
paramsToFormData
(
data
)).
then
(
res
=>
{
customerCreate
(
this
.
paramsToFormData
(
data
)).
then
(
res
=>
{
// console.log(res)
this
.
addBtnStart
=
true
this
.
addBtnStart
=
true
this
.
objectId
=
res
.
results
this
.
objectId
=
res
.
results
const
objectID
=
res
.
results
const
objectID
=
res
.
results
...
@@ -268,18 +276,18 @@ export default {
...
@@ -268,18 +276,18 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
::v-deep
.el-row--flex
{
::v-deep
.el-row--flex
{
display
:
-
webkit-box
;
display
:
-
webkit-box
;
.el-col-1
4
{
.el-col-1
6
{
width
:
90%
;
width
:
90%
;
}
}
}
}
.basic-info
{
.basic-info
{
::v-deep
.ele-form-btns
{
::v-deep
.ele-form-btns
{
.el-form-item__content
{
.el-form-item__content
{
margin-left
:
4
5
%
!
important
;
margin-left
:
4
0
%
!
important
;
}
}
}
}
}
}
.btn
{
.btn
{
margin-left
:
4
5%
;
margin-left
:
3
5%
;
}
}
</
style
>
</
style
>
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