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
2713e0f4
Commit
2713e0f4
authored
Aug 17, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
阶梯定价,总量单位和币种统一
parent
a3a387e7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
8 deletions
+31
-8
currency-select.vue
src/views/ecw/channel/componrnts/currency-select.vue
+5
-1
packaging-type.vue
src/views/ecw/channel/componrnts/packaging-type.vue
+21
-6
weight-select.vue
src/views/ecw/channel/componrnts/weight-select.vue
+5
-1
No files found.
src/views/ecw/channel/componrnts/currency-select.vue
View file @
2713e0f4
<
template
>
<div
style=
"width: 100%;min-width: 100px"
>
<el-select
v-model=
"val"
>
<el-select
@
change=
"(e) =>
{$emit('change', e)}" :disabled="disabled"
v-model="val">
<el-option
:value=
"item.id"
:label=
"$l(item, 'title') + item.fuhao"
v-for=
"(item) in options"
></el-option>
</el-select>
</div>
...
...
@@ -10,6 +10,10 @@
export
default
{
name
:
"
currency-select
"
,
props
:{
disabled
:{
type
:
Boolean
,
default
:
false
},
options
:{
type
:
Array
,
default
:()
=>
[]
...
...
src/views/ecw/channel/componrnts/packaging-type.vue
View file @
2713e0f4
...
...
@@ -29,7 +29,7 @@
<el-col
:span=
"9"
>
<div
style=
"display: flex;align-items: center;"
>
<el-input
v-model=
"item.startNum"
></el-input>
-
<el-input
v-model=
"item.endNum"
></el-input
>
/
<weight-select
v-model=
"item.weightUnit"
:options=
"unitList"
></weight-select>
<weight-select
@
change=
"changeWeight"
:disabled=
"index > 0"
v-model=
"item.weightUnit"
:options=
"unitList"
></weight-select>
</div>
</el-col>
</el-row>
...
...
@@ -40,8 +40,8 @@
<el-col
:span=
"9"
>
<div
style=
"display: flex;align-items: center;"
>
<el-input
v-model=
"item.clearancePrice"
></el-input>
<currency-select
:options=
"currencyList"
v-model=
"item.clearancePriceUnit"
></currency-select>
/
<weight-select
:options=
"unitList"
v-model=
"item.clearanceVolumeUnit"
></weight-select>
<currency-select
@
change=
"setCurrency"
:disabled=
"index > 0"
:options=
"currencyList"
v-model=
"item.clearancePriceUnit"
></currency-select>
/
<weight-select
:
disabled=
"index > 0"
@
change=
"setAirFreightWeight"
:
options=
"unitList"
v-model=
"item.clearanceVolumeUnit"
></weight-select>
</div>
</el-col>
</el-row>
...
...
@@ -91,16 +91,31 @@ export default {
})
},
methods
:{
changeWeight
(
e
){
this
.
value1
[
this
.
keyArr
].
forEach
(
item
=>
{
item
.
weightUnit
=
e
})
},
setCurrency
(
e
){
this
.
value1
[
this
.
keyArr
].
forEach
(
item
=>
{
item
.
clearancePriceUnit
=
e
})
},
setAirFreightWeight
(
e
){
this
.
value1
[
this
.
keyArr
].
forEach
(
item
=>
{
item
.
clearanceVolumeUnit
=
e
})
},
addInterval
(){
let
p
=
{
"
channelId
"
:
''
,
"
clearancePrice
"
:
''
,
"
clearancePriceUnit
"
:
''
,
"
clearanceVolumeUnit
"
:
6
,
"
clearancePriceUnit
"
:
this
.
value1
[
this
.
keyArr
].
length
&&
this
.
value1
[
this
.
keyArr
][
0
].
clearancePriceUnit
?
this
.
value1
[
this
.
keyArr
][
0
].
clearancePriceUnit
:
''
,
"
clearanceVolumeUnit
"
:
this
.
value1
[
this
.
keyArr
].
length
?
this
.
value1
[
this
.
keyArr
][
0
].
clearanceVolumeUnit
:
6
,
"
endNum
"
:
''
,
"
packagingId
"
:
''
,
"
startNum
"
:
''
,
"
weightUnit
"
:
6
"
weightUnit
"
:
this
.
value1
[
this
.
keyArr
].
length
?
this
.
value1
[
this
.
keyArr
][
0
].
weightUnit
:
6
}
this
.
value1
[
this
.
keyArr
].
push
(
p
)
this
.
$forceUpdate
();
...
...
src/views/ecw/channel/componrnts/weight-select.vue
View file @
2713e0f4
<
template
>
<div
style=
"min-width: 100px;width: 100%;"
>
<el-select
v-model=
"val"
>
<el-select
@
change=
"(e) =>
{$emit('change',e)}" :disabled="disabled"
v-model="val">
<el-option
v-for=
"(item, index) in options"
:value=
"item.id"
:key=
"index"
:label=
"$l(item ,'title')"
></el-option>
</el-select>
</div>
...
...
@@ -10,6 +10,10 @@
export
default
{
name
:
"
weight-select
"
,
props
:{
disabled
:{
type
:
Boolean
,
default
:
false
},
options
:{
type
:
Array
,
default
:()
=>
[]
...
...
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