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
a0ad0fbf
Commit
a0ad0fbf
authored
Oct 17, 2021
by
jiangqihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
省市县
parent
4336e2dd
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
112 additions
and
68 deletions
+112
-68
EleFormSelect.vue
src/components/EleForm/components/EleFormSelect.vue
+24
-24
index.vue
src/views/customers/customers-add/index.vue
+26
-11
area.vue
src/views/customers/customers-details/area.vue
+6
-2
index.vue
...ers/personal-customers/conponents/personal-info/index.vue
+23
-8
index.vue
src/views/customers/personal-customers/index.vue
+3
-2
index.vue
src/views/public/file-info/index.vue
+2
-4
upload-btn.vue
src/views/public/file-info/upload-btn.vue
+28
-17
No files found.
src/components/EleForm/components/EleFormSelect.vue
View file @
a0ad0fbf
...
@@ -68,30 +68,30 @@ export default {
...
@@ -68,30 +68,30 @@ export default {
},
},
methods
:
{
methods
:
{
// 变化处理
// 变化处理
handleChange
(
value
)
{
//
handleChange(value) {
var
result
=
{}
//
var result = {}
if
(
!
this
.
attrs
.
multiple
)
{
//
if (!this.attrs.multiple) {
this
.
options
.
forEach
(
item
=>
{
//
this.options.forEach(item => {
if
(
item
.
value
===
value
)
{
//
if (item.value === value) {
result
=
item
// result = item.value
}
//
}
})
//
})
}
else
{
//
} else {
result
=
{
//
result = {
value
:
[],
//
value: [],
text
:
[]
//
text: []
}
//
}
this
.
options
.
forEach
(
item
=>
{
//
this.options.forEach(item => {
value
.
forEach
(
jtem
=>
{
//
value.forEach(jtem => {
if
(
item
.
value
===
jtem
)
{
//
if (item.value === jtem) {
result
.
value
.
push
(
item
.
value
)
//
result.value.push(item.value)
result
.
text
.
push
(
item
.
text
)
//
result.text.push(item.text)
}
//
}
})
//
})
})
//
})
}
//
}
this
.
$emit
(
'input'
,
result
)
//
this.$emit('input', result)
},
//
},
changeOptions
(
q
)
{
changeOptions
(
q
)
{
if
(
this
.
remoteMethod
)
{
if
(
this
.
remoteMethod
)
{
this
.
loading
=
true
this
.
loading
=
true
...
...
src/views/customers/customers-add/index.vue
View file @
a0ad0fbf
...
@@ -55,6 +55,7 @@ export default {
...
@@ -55,6 +55,7 @@ export default {
code
:
'qcc'
,
code
:
'qcc'
,
displayKey
:
'Name'
,
displayKey
:
'Name'
,
btnTitle
:
'获取企查查信息'
,
btnTitle
:
'获取企查查信息'
,
disabled
:
false
,
returnFn
:
function
(
row
)
{
returnFn
:
function
(
row
)
{
return
{
return
{
Name
:
row
.
Name
,
Name
:
row
.
Name
,
...
@@ -67,6 +68,7 @@ export default {
...
@@ -67,6 +68,7 @@ export default {
type
:
'input'
,
type
:
'input'
,
label
:
'公司全称曾用名'
,
label
:
'公司全称曾用名'
,
layout
:
12
,
layout
:
12
,
disabled
:
false
,
},
},
ExtSocialUnifiedCreditCode_SDK
:
{
ExtSocialUnifiedCreditCode_SDK
:
{
type
:
'input'
,
type
:
'input'
,
...
@@ -111,6 +113,7 @@ export default {
...
@@ -111,6 +113,7 @@ export default {
})
})
return
result
return
result
},
},
disabled
:
false
,
},
},
ExtCity_SDK
:
{
ExtCity_SDK
:
{
type
:
'select'
,
type
:
'select'
,
...
@@ -123,7 +126,7 @@ export default {
...
@@ -123,7 +126,7 @@ export default {
return
[]
return
[]
}
}
const
res
=
await
citySearch
({
const
res
=
await
citySearch
({
provinceCode
:
data
.
ExtProvince_SDK
.
value
provinceCode
:
data
.
ExtProvince_SDK
})
})
var
result
=
res
.
results
.
map
(
item
=>
{
var
result
=
res
.
results
.
map
(
item
=>
{
return
{
return
{
...
@@ -133,6 +136,7 @@ export default {
...
@@ -133,6 +136,7 @@ export default {
})
})
return
result
return
result
},
},
disabled
:
false
,
},
},
ExtDistrict_SDK
:
{
ExtDistrict_SDK
:
{
type
:
'select'
,
type
:
'select'
,
...
@@ -145,7 +149,7 @@ export default {
...
@@ -145,7 +149,7 @@ export default {
return
[]
return
[]
}
}
const
res
=
await
districtSearch
({
const
res
=
await
districtSearch
({
cityCode
:
data
.
ExtCity_SDK
.
value
cityCode
:
data
.
ExtCity_SDK
})
})
var
result
=
res
.
results
.
map
(
item
=>
{
var
result
=
res
.
results
.
map
(
item
=>
{
return
{
return
{
...
@@ -155,11 +159,13 @@ export default {
...
@@ -155,11 +159,13 @@ export default {
})
})
return
result
return
result
},
},
disabled
:
false
,
},
},
ExtAddressDetail_SDK
:
{
ExtAddressDetail_SDK
:
{
type
:
'input'
,
type
:
'input'
,
label
:
'详细经营地址'
,
label
:
'详细经营地址'
,
layout
:
12
,
layout
:
12
,
disabled
:
false
,
},
},
}
}
},
},
...
@@ -169,47 +175,56 @@ export default {
...
@@ -169,47 +175,56 @@ export default {
ExtLeader_SDK
:
{
ExtLeader_SDK
:
{
type
:
'input'
,
type
:
'input'
,
label
:
'公司负责人姓名'
,
label
:
'公司负责人姓名'
,
layout
:
12
layout
:
12
,
disabled
:
false
,
},
},
ExtLeaderPhone_SDK
:
{
ExtLeaderPhone_SDK
:
{
type
:
'input'
,
type
:
'input'
,
label
:
'公司负责人联系方式'
,
label
:
'公司负责人联系方式'
,
layout
:
12
layout
:
12
,
disabled
:
false
,
},
},
ExtLeaderEmail_SDK
:
{
ExtLeaderEmail_SDK
:
{
type
:
'input'
,
type
:
'input'
,
label
:
'公司负责人邮箱'
,
label
:
'公司负责人邮箱'
,
layout
:
12
layout
:
12
,
disabled
:
false
,
},
},
ExtUnis_SDK
:
{
ExtUnis_SDK
:
{
type
:
'input'
,
type
:
'input'
,
layout
:
12
,
layout
:
12
,
label
:
'Unis业务负责人姓名'
label
:
'Unis业务负责人姓名'
,
disabled
:
false
,
},
},
ExtUnisPhone_SDK
:
{
ExtUnisPhone_SDK
:
{
type
:
'input'
,
type
:
'input'
,
layout
:
12
,
layout
:
12
,
label
:
'Unis业务负责人联系方式'
label
:
'Unis业务负责人联系方式'
,
disabled
:
false
,
},
},
ExtUnisEmail_SDK
:
{
ExtUnisEmail_SDK
:
{
type
:
'input'
,
type
:
'input'
,
label
:
'Unis业务负责人邮箱'
,
label
:
'Unis业务负责人邮箱'
,
layout
:
12
layout
:
12
,
disabled
:
false
,
},
},
ExtBusiness_SDK
:
{
ExtBusiness_SDK
:
{
type
:
'input'
,
type
:
'input'
,
layout
:
12
,
layout
:
12
,
label
:
'商务负责人姓名'
label
:
'商务负责人姓名'
,
disabled
:
false
,
},
},
ExtBusinessPhone_SDK
:
{
ExtBusinessPhone_SDK
:
{
type
:
'input'
,
type
:
'input'
,
layout
:
12
,
layout
:
12
,
label
:
'商务负责人联系方式'
label
:
'商务负责人联系方式'
,
disabled
:
false
,
},
},
ExtBusinessEmail_SDK
:
{
ExtBusinessEmail_SDK
:
{
type
:
'input'
,
type
:
'input'
,
label
:
'商务负责人邮箱'
,
label
:
'商务负责人邮箱'
,
layout
:
12
layout
:
12
,
disabled
:
false
,
},
},
}
}
}
}
...
...
src/views/customers/customers-details/area.vue
View file @
a0ad0fbf
...
@@ -21,7 +21,10 @@
...
@@ -21,7 +21,10 @@
认 证
认 证
</el-button>
</el-button>
</div>
</div>
<PersonalInFo
:addBtnStart=
'addBtnStart'
:dedeleBtnStart=
"dedeleBtnStart"
:type-code=
"typeCode"
:isShowEditBtn=
'btn'
/>
<div>
<PersonalInFo
:addBtnStart=
'addBtnStart'
:dedeleBtnStart=
"dedeleBtnStart"
:type-code=
"typeCode"
:isShowBtn=
'isShowBtn'
:isShowEditBtn=
"isShowEditBtn"
/>
</div>
<!--
<PersonalInFo
:addBtnStart=
'addBtnStart'
:dedeleBtnStart=
"dedeleBtnStart"
:type-code=
"typeCode"
:isShowEditBtn=
'btn'
/>
-->
</div>
</div>
</
template
>
</
template
>
...
@@ -51,7 +54,8 @@ export default {
...
@@ -51,7 +54,8 @@ export default {
title
:
'城市代理商详情'
,
title
:
'城市代理商详情'
,
addBtnStart
:
true
,
addBtnStart
:
true
,
dedeleBtnStart
:
true
,
dedeleBtnStart
:
true
,
btn
:
false
,
isShowBtn
:
true
,
isShowEditBtn
:
false
,
objectID
:
''
,
objectID
:
''
,
btnStart
:
true
,
btnStart
:
true
,
formData
:
{},
formData
:
{},
...
...
src/views/customers/personal-customers/conponents/personal-info/index.vue
View file @
a0ad0fbf
...
@@ -94,6 +94,10 @@ export default {
...
@@ -94,6 +94,10 @@ export default {
dedeleBtnStart
:
{
dedeleBtnStart
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
,
default
:
true
,
},
isShowBtn
:
{
type
:
Boolean
,
default
:
true
,
}
}
},
},
data
()
{
data
()
{
...
@@ -115,18 +119,30 @@ export default {
...
@@ -115,18 +119,30 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
isShowEditBtn
(
val
)
{
isShowEditBtn
:
{
this
.
tableConfig
.
columns
.
handle
.
vif
=
val
handler
(
val
){},
deep
:
true
,
immediate
:
true
// this.tableConfig.columns.handle.vif = val
},
addBtnStart
:
{
handler
(
val
){},
deep
:
true
,
immediate
:
true
,
},
},
btnStart
:
{
dedeleBtnStart
:
{
handler
(
val
){},
deep
:
true
,
immediate
:
true
,
},
isShowBtn
:
{
handler
(
val
){},
handler
(
val
){},
deep
:
true
,
deep
:
true
,
immediate
:
true
,
immediate
:
true
,
}
}
},
},
created
()
{
created
()
{
this
.
tableConfig
.
columns
.
handle
.
vif
=
this
.
isShow
Edit
Btn
this
.
tableConfig
.
columns
.
handle
.
vif
=
this
.
isShowBtn
constant
.
tableConfig
.
initialParams
=
{
constant
.
tableConfig
.
initialParams
=
{
BusinessObjectID
:
this
.
objectID
||
this
.
$route
.
query
.
objectID
,
BusinessObjectID
:
this
.
objectID
||
this
.
$route
.
query
.
objectID
,
TypeCode
:
this
.
typeCode
TypeCode
:
this
.
typeCode
...
@@ -190,11 +206,11 @@ export default {
...
@@ -190,11 +206,11 @@ export default {
if
(
!
this
.
formData
.
ObjectID
)
{
if
(
!
this
.
formData
.
ObjectID
)
{
const
businessObjectID
=
const
businessObjectID
=
this
.
$route
.
query
.
objectID
||
this
.
tableConfig
.
initialParams
.
objectID
this
.
$route
.
query
.
objectID
||
this
.
tableConfig
.
initialParams
.
objectID
console
.
log
(
businessObjectID
)
formData
.
append
(
'businessObjectID'
,
businessObjectID
)
formData
.
append
(
'businessObjectID'
,
businessObjectID
)
formData
.
delete
(
'objectID'
)
formData
.
delete
(
'objectID'
)
this
.
loading
=
true
this
.
loading
=
true
this
.
$request
(
file
.
createUrl
,
formData
).
then
(
res
=>
{
this
.
$request
(
file
.
createUrl
,
formData
).
then
(()
=>
{
console
.
log
(
res
)
this
.
loading
=
false
this
.
loading
=
false
this
.
dialogFormVisible
=
false
this
.
dialogFormVisible
=
false
this
.
fileList
=
[]
this
.
fileList
=
[]
...
@@ -203,7 +219,6 @@ export default {
...
@@ -203,7 +219,6 @@ export default {
this
.
$refs
.
eleTable
.
handleSearch
()
this
.
$refs
.
eleTable
.
handleSearch
()
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
// this.tableConfig.url = file.searchUrl
})
})
}
else
{
}
else
{
formData
.
append
(
'typeCode'
,
this
.
typeCode
)
formData
.
append
(
'typeCode'
,
this
.
typeCode
)
...
...
src/views/customers/personal-customers/index.vue
View file @
a0ad0fbf
...
@@ -309,8 +309,9 @@ export default {
...
@@ -309,8 +309,9 @@ export default {
});
});
return
formData
;
return
formData
;
},
},
getOneData
()
{
async
getOneData
()
{
const
dataId
=
JSON
.
parse
(
localStorage
.
getItem
(
'USERINFO'
)).
ExtCustomerObjectID_SDK
const
dataId
=
await
JSON
.
parse
(
localStorage
.
getItem
(
'USERINFO'
)).
ExtCustomerObjectID_SDK
// console.log(dataId)
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/Personal-customers'
,
path
:
'/Personal-customers'
,
query
:
{
objectID
:
dataId
}
query
:
{
objectID
:
dataId
}
...
...
src/views/public/file-info/index.vue
View file @
a0ad0fbf
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
<upload-btn
<upload-btn
:objectID=
"formData.ObjectID"
:objectID=
"formData.ObjectID"
:fileDetails=
"formData.FileDetails"
:fileDetails=
"formData.FileDetails"
:file-list=
"fileList"
@
change=
"changeFileList"
@
change=
"changeFileList"
/>
/>
</
template
>
</
template
>
...
@@ -187,15 +188,12 @@ export default {
...
@@ -187,15 +188,12 @@ export default {
this
.
$request
(
file
.
createUrl
,
formData
).
then
(()
=>
{
this
.
$request
(
file
.
createUrl
,
formData
).
then
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
this
.
dialogFormVisible
=
false
this
.
dialogFormVisible
=
false
this
.
fileList
=
[]
this
.
$message
.
success
(
'添加成功!'
)
this
.
$message
.
success
(
'添加成功!'
)
// this.tableConfig.url = file.searchUrl
// console.log(this.$refs.eleTable.url)
this
.
$refs
.
eleTable
.
url
=
file
.
searchUrl
this
.
$refs
.
eleTable
.
url
=
file
.
searchUrl
// this.url = file.searchUrl
this
.
$refs
.
eleTable
.
handleSearch
()
this
.
$refs
.
eleTable
.
handleSearch
()
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
// this.tableConfig.url = file.searchUrl
})
})
}
else
{
}
else
{
formData
.
append
(
'typeCode'
,
this
.
typeCode
)
formData
.
append
(
'typeCode'
,
this
.
typeCode
)
...
...
src/views/public/file-info/upload-btn.vue
View file @
a0ad0fbf
...
@@ -13,11 +13,11 @@
...
@@ -13,11 +13,11 @@
>
>
<el-button
size=
"small"
type=
"primary"
>
上传文件
</el-button>
<el-button
size=
"small"
type=
"primary"
>
上传文件
</el-button>
</el-upload>
</el-upload>
<upload-list
<
!--
<
upload-list
v-if=
"objectID"
v-if=
"objectID"
v-bind=
"config"
v-bind=
"config"
:files=
"fileDetails"
:files=
"fileDetails"
@
remove=
"handleRemoveReq"
/>
@
remove=
"handleRemoveReq"
/>
-->
</div>
</div>
</
template
>
</
template
>
...
@@ -48,22 +48,33 @@ export default {
...
@@ -48,22 +48,33 @@ export default {
default
:
true
default
:
true
},
},
// 已上传到服务器的文件列表
// 已上传到服务器的文件列表
fileDetails
:
{
//
fileDetails: {
type
:
Array
,
//
type: Array,
default
:
function
()
{
//
default: function() {
return
[]
//
return []
}
//
}
},
//
},
config
:
{
config
:
{
type
:
Object
,
type
:
Object
,
default
:
function
()
{
default
:
function
()
{
return
{}
return
{}
}
}
},
fileList
:
{
type
:
Array
,
default
:
function
()
{
return
[]
}
}
}
},
},
data
()
{
data
()
{
return
{
return
{}
fileList
:
[],
},
watch
:
{
fileList
:
{
handler
(
newVal
){},
deep
:
true
,
immediate
:
true
}
}
},
},
created
()
{
created
()
{
...
@@ -80,13 +91,13 @@ export default {
...
@@ -80,13 +91,13 @@ export default {
this
.
$emit
(
'change'
,
fileList
)
this
.
$emit
(
'change'
,
fileList
)
},
},
// 删除文件
// 删除文件
handleRemoveReq
(
index
,
item
)
{
//
handleRemoveReq(index, item) {
this
.
$request
(
file
.
deleteDetailUrl
,
[{
objectID
:
item
.
ObjectID
}]).
then
(()
=>
{
//
this.$request(file.deleteDetailUrl, [{ objectID: item.ObjectID }]).then(() => {
this
.
$message
.
success
(
'删除成功!'
)
//
this.$message.success('删除成功!')
this
.
fileDetails
.
splice
(
index
,
1
)
//
this.fileDetails.splice(index, 1)
}
//
}
)
//
)
}
//
}
}
}
}
}
</
script
>
</
script
>
...
...
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