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
7ca7b1fb
Commit
7ca7b1fb
authored
Sep 13, 2024
by
yujinyao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
异常订单去掉文本框空格
parent
262bb6af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
11 deletions
+19
-11
index.vue
src/views/ecw/order/exception/index.vue
+8
-4
index.vue
src/views/ecw/order/index.vue
+11
-7
No files found.
src/views/ecw/order/exception/index.vue
View file @
7ca7b1fb
...
...
@@ -14,7 +14,7 @@
:placeholder=
"$t('请输入订单号')"
clearable
@
keyup.enter.native=
"handleQuery"
@
input=
"
queryParams.orderNo=queryParams.orderNo.replace(/\s+/g, '
')"
@
input=
"
replaceSpace(queryParams, 'orderNo
')"
>
<template
slot=
"prepend"
>
<dict-selector
...
...
@@ -199,7 +199,7 @@
:placeholder=
"$t('发货人')"
clearable
@
keyup.enter.native=
"handleQuery"
@
input=
"
queryParams.consignorText=queryParams.consignorText.replace(/\s+/g, '
')"
@
input=
"
replaceSpace(queryParams, 'consignorText
')"
/>
</el-form-item>
<el-form-item
:label=
"$t('收货人')"
prop=
"consigneeText"
>
...
...
@@ -208,7 +208,7 @@
:placeholder=
"$t('收货人')"
clearable
@
keyup.enter.native=
"handleQuery"
@
input=
"
queryParams.consigneeText=queryParams.consigneeText.replace(/\s+/g, '
')"
@
input=
"
replaceSpace(queryParams, 'consigneeText
')"
/>
</el-form-item>
<el-form-item
:label=
"$t('唛头') + ':'"
v-show=
"showSearch"
>
...
...
@@ -217,7 +217,7 @@
:placeholder=
"$t('请输入唛头')"
clearable
@
keyup.enter.native=
"handleQuery"
@
input=
"
queryParams.marks=queryParams.marks.replace(/\s+/g, '
')"
@
input=
"
replaceSpace(queryParams, 'marks
')"
>
<
template
slot=
"prepend"
>
<dict-selector
...
...
@@ -1170,6 +1170,10 @@ export default {
this
.
AddressTown
=
data
;
})
}
},
// 自动去除空格
replaceSpace
(
obj
,
field
){
obj
[
field
]
=
obj
[
field
].
replace
(
/
\s
+/g
,
''
);
}
},
};
...
...
src/views/ecw/order/index.vue
View file @
7ca7b1fb
...
...
@@ -1758,14 +1758,18 @@ export default {
// 增值服务文本
getTypeText
(){
return
type
=>
{
const
arr
=
[]
if
(
type
.
indexOf
(
'
1
'
)
>
-
1
){
arr
.
push
(
this
.
$t
(
'
集运
'
))
}
if
(
type
.
indexOf
(
'
2
'
)
>
-
1
){
arr
.
push
(
this
.
$t
(
'
海外仓
'
))
if
(
type
)
{
const
arr
=
[]
if
(
type
.
indexOf
(
'
1
'
)
>
-
1
){
arr
.
push
(
this
.
$t
(
'
集运
'
))
}
if
(
type
.
indexOf
(
'
2
'
)
>
-
1
){
arr
.
push
(
this
.
$t
(
'
海外仓
'
))
}
return
arr
.
join
(
"
,
"
)
}
else
{
return
null
}
return
arr
.
join
(
"
、
"
)
}
}
},
...
...
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