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
a681a5c7
Commit
a681a5c7
authored
Oct 14, 2021
by
jiangqihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
总代理商
parent
f07288a7
Changes
1
Show 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 @
a681a5c7
...
...
@@ -48,18 +48,10 @@ export default {
Name
:
{
type
:
'lov'
,
label
:
'公司全称'
,
layout
:
24
,
layout
:
16
,
code
:
'qcc'
,
displayKey
:
'Name'
,
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
,
...
...
@@ -70,27 +62,28 @@ export default {
ExtSecondName_SDK
:
{
type
:
'input'
,
label
:
'公司全称曾用名'
,
layout
:
1
2
,
layout
:
1
0
,
},
ExtSocialUnifiedCreditCode_SDK
:
{
type
:
'input'
,
label
:
'社会统一信用代码'
,
layout
:
1
2
layout
:
1
0
},
ExtRegisteredCapital_SDK
:
{
type
:
'input'
,
label
:
'注册资本(万元)'
,
layout
:
12
,
layout
:
10
,
default
:
''
},
ExtCorporateName_SDK
:
{
type
:
'input'
,
label
:
'法人'
,
layout
:
1
2
,
layout
:
1
0
,
},
// Ext_QuoteOppotunity_KUT: {
// type: 'input',
// label: '税务登记编号',
// layout: 1
2
// layout: 1
0
// },
}
},
...
...
@@ -100,7 +93,7 @@ export default {
ExtProvince_SDK
:
{
type
:
'select'
,
label
:
'省份'
,
layout
:
1
2
,
layout
:
1
0
,
options
:
async
data
=>
{
const
res
=
await
provinceSearch
({})
var
result
=
res
.
results
.
map
(
item
=>
{
...
...
@@ -115,7 +108,7 @@ export default {
ExtCity_SDK
:
{
type
:
'select'
,
label
:
'地市'
,
layout
:
1
2
,
layout
:
1
0
,
isOptions
:
true
,
optionsLinkageFields
:
[
'ExtProvince_SDK'
],
options
:
async
data
=>
{
...
...
@@ -137,7 +130,7 @@ export default {
ExtDistrict_SDK
:
{
type
:
'select'
,
label
:
'县市'
,
layout
:
1
2
,
layout
:
1
0
,
isOptions
:
true
,
optionsLinkageFields
:
[
'ExtProvince_SDK'
,
'ExtCity_SDK'
],
options
:
async
data
=>
{
...
...
@@ -159,7 +152,7 @@ export default {
ExtAddressDetail_SDK
:
{
type
:
'input'
,
label
:
'详细经营地址'
,
layout
:
1
2
,
layout
:
1
0
,
},
}
},
...
...
@@ -169,47 +162,47 @@ export default {
ExtLeader_SDK
:
{
type
:
'input'
,
label
:
'公司负责人姓名'
,
layout
:
1
2
layout
:
1
0
},
ExtLeaderPhone_SDK
:
{
type
:
'input'
,
label
:
'公司负责人联系方式'
,
layout
:
1
2
layout
:
1
0
},
ExtLeaderEmail_SDK
:
{
type
:
'input'
,
label
:
'公司负责人邮箱'
,
layout
:
1
2
layout
:
1
0
},
ExtUnis_SDK
:
{
type
:
'input'
,
layout
:
1
2
,
layout
:
1
0
,
label
:
'Unis业务负责人姓名'
},
ExtUnisPhone_SDK
:
{
type
:
'input'
,
layout
:
1
2
,
layout
:
1
0
,
label
:
'Unis业务负责人联系方式'
},
ExtUnisEmail_SDK
:
{
type
:
'input'
,
label
:
'Unis业务负责人邮箱'
,
layout
:
1
2
layout
:
1
0
},
ExtBusiness_SDK
:
{
type
:
'input'
,
layout
:
1
2
,
layout
:
1
0
,
label
:
'商务负责人姓名'
},
ExtBusinessPhone_SDK
:
{
type
:
'input'
,
layout
:
1
2
,
layout
:
1
0
,
label
:
'商务负责人联系方式'
},
ExtBusinessEmail_SDK
:
{
type
:
'input'
,
label
:
'商务负责人邮箱'
,
layout
:
1
2
layout
:
1
0
},
}
}
...
...
@@ -223,16 +216,31 @@ export default {
ExtProvince_SDK
:
{
required
:
true
,
message
:
'省份必填'
},
ExtDistrict_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
:
{
handleSubmit
(
data
)
{
data
.
extCustomerType_SDK
=
'101'
console
.
log
(
data
)
// this.addBtnStart = true
customerCreate
(
this
.
paramsToFormData
(
data
)).
then
(
res
=>
{
// console.log(res)
this
.
addBtnStart
=
true
this
.
objectId
=
res
.
results
const
objectID
=
res
.
results
...
...
@@ -268,18 +276,18 @@ export default {
<
style
lang=
"scss"
scoped
>
::v-deep
.el-row--flex
{
display
:
-
webkit-box
;
.el-col-1
4
{
.el-col-1
6
{
width
:
90%
;
}
}
.basic-info
{
::v-deep
.ele-form-btns
{
.el-form-item__content
{
margin-left
:
4
5
%
!
important
;
margin-left
:
4
0
%
!
important
;
}
}
}
.btn
{
margin-left
:
4
5%
;
margin-left
:
3
5%
;
}
</
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