Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
9d808430
Commit
9d808430
authored
Jan 18, 2024
by
邓春圆
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
637a4d64
09c1fdb9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
46 deletions
+19
-46
index.vue
src/components/UserSelector/index.vue
+17
-45
index.vue
src/views/ecw/order/index.vue
+2
-1
No files found.
src/components/UserSelector/index.vue
View file @
9d808430
<
template
>
<
template
>
<el-select
<el-select
v-model=
"
index
"
v-model=
"
valueSync
"
filterable
filterable
:clearable=
"clearable"
:clearable=
"clearable"
remote
remote
reserve-keyword
reserve-keyword
:placeholder=
"placeholder ? placeholder : $t('请选择')"
:placeholder=
"placeholder ? placeholder : $t('请选择')"
:loading=
"loading"
>
:loading=
"loading"
>
<el-option
v-if=
"prepend"
:label=
"`$
{prepend.nickname}`"
:value="prepend.id">
</el-option>
<el-option
<el-option
v-for=
"(item, index) in list"
v-for=
"(item, index) in list"
:key=
"item.id"
:key=
"item.id"
:label=
"`$
{item.nickname}`"
:label=
"`$
{item.nickname}`"
:value="i
ndex
">
:value="i
tem.id
">
</el-option>
</el-option>
</el-select>
</el-select>
</
template
>
</
template
>
...
@@ -26,26 +31,23 @@ export default {
...
@@ -26,26 +31,23 @@ export default {
manage
:{
manage
:{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
}
},
prepend
:
Object
},
},
data
(){
data
(){
return
{
return
{
index
:
null
,
list
:[],
list
:[],
loading
:
false
,
loading
:
false
,
size
:
20
size
:
20
,
valueSync
:
this
.
value
}
}
},
},
watch
:{
watch
:{
index
(
val
){
this
.
$emit
(
'
input
'
,
val
!==
null
&&
val
!==
undefined
&&
val
!=
''
?
this
.
list
[
val
].
id
:
null
)
this
.
$emit
(
'
change
'
,
val
!==
null
&&
val
!==
undefined
&&
val
!=
''
?
this
.
list
[
val
]:
null
)
},
value
(
val
){
value
(
val
){
this
.
resetIndex
()
this
.
valueSync
=
this
.
value
},
},
list
(
){
valueSync
(
val
){
this
.
resetIndex
(
)
this
.
$emit
(
'
input
'
,
val
)
}
}
},
},
created
(){
created
(){
...
@@ -60,39 +62,9 @@ export default {
...
@@ -60,39 +62,9 @@ export default {
this
.
list
=
res
.
data
this
.
list
=
res
.
data
})
})
}
}
if
(
this
.
value
){
// this.init()
this
.
valueSync
=
this
.
value
},
methods
:{
resetIndex
(){
let
index
=
this
.
list
.
findIndex
(
item
=>
item
.
id
==
this
.
value
)
if
(
index
<
0
)
this
.
index
=
null
else
this
.
index
=
index
}
/* init(){
console.log('初始化联系人选择', this.value)
if(!this.value) return
let index = this.list.findIndex(item => item.customerContactsId == this.value)
if(index < 0){
getCustomerContactsSelect({ids: this.value}).then(res => {
if(!res.data || !res.data.length){
return this.$message.error('联系人信息获取失败')
}
this.list.unshift(res.data[0])
this.index = 0
})
}
}, */
/* remoteMethod(keyword){
let params = {
size: this.size
}
}
params.searchKey = keyword
this.loading = true
getCustomerContactsSelect(params)
.then(res => this.list = res.data)
.finally(() => this.loading = false)
} */
}
}
}
}
</
script
>
</
script
>
src/views/ecw/order/index.vue
View file @
9d808430
...
@@ -72,7 +72,8 @@
...
@@ -72,7 +72,8 @@
<dict-selector
:type=
"DICT_TYPE.ECW_WAREHOUSING_TYPE"
v-model=
"queryParams.warehouseType"
clearable
/>
<dict-selector
:type=
"DICT_TYPE.ECW_WAREHOUSING_TYPE"
v-model=
"queryParams.warehouseType"
clearable
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('客户经理')"
>
<el-form-item
:label=
"$t('客户经理')"
>
<user-selector
manage
v-model=
"queryParams.salesmanId"
clearable
@
change=
"handleQuery"
/>
<user-selector
manage
v-model=
"queryParams.salesmanId"
clearable
@
change=
"handleQuery"
:prepend=
"{ id: 0, nickname: $t('未分配客户经理')}"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('订单状态')"
prop=
"status"
>
<el-form-item
:label=
"$t('订单状态')"
prop=
"status"
>
<dict-selector
:type=
"DICT_TYPE.ORDER_STATUS"
v-model=
"queryParams.status"
<dict-selector
:type=
"DICT_TYPE.ORDER_STATUS"
v-model=
"queryParams.status"
...
...
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