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
e290f8a3
Commit
e290f8a3
authored
May 13, 2024
by
liuzeheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下拉自动刷新
parent
d3eb5c5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
14 deletions
+66
-14
index.vue
src/views/ecw/productPrice/index.vue
+66
-14
No files found.
src/views/ecw/productPrice/index.vue
View file @
e290f8a3
...
...
@@ -16,59 +16,59 @@
</el-form-item>
<el-form-item
:label=
"$t('商品类型')"
prop=
"typeId"
v-if=
"!$route.query.product_id"
>
<el-select
v-model=
"queryParams.typeId"
:placeholder=
"$t('选择商品类型')"
clearable
>
<el-select
v-model=
"queryParams.typeId"
:placeholder=
"$t('选择商品类型')"
clearable
@
change=
"handleQuery"
>
<el-option
v-for=
"type in typeList"
:key=
"type.id"
:label=
"$l(type, 'titleZh')"
:value=
"type.id"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('商品属性')"
prop=
"typeId"
v-if=
"!$route.query.product_id"
>
<el-select
v-model=
"queryParams.attrId"
:placeholder=
"$t('选择商品类型')"
clearable
>
<el-select
v-model=
"queryParams.attrId"
:placeholder=
"$t('选择商品类型')"
clearable
@
change=
"handleQuery"
>
<el-option
v-for=
"attr in attrList"
:key=
"attr.id"
:label=
"$l(attr, 'attrName')"
:value=
"attr.id"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('运输方式')"
prop=
"transportType"
v-if=
"!transportType"
>
<dict-selector
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
v-model=
"queryParams.transportType"
formatter=
"number"
clearable
/>
<dict-selector
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
v-model=
"queryParams.transportType"
formatter=
"number"
clearable
@
change=
"handleQuery"
/>
</el-form-item>
<!--海运不显示渠道-->
<el-form-item
:label=
"$t('出货渠道')"
prop=
"shippingChannelId"
v-if=
"type !== 'sea'"
>
<el-select
v-model=
"queryParams.shippingChannelId"
clearable
>
<el-select
v-model=
"queryParams.shippingChannelId"
clearable
@
change=
"handleQuery"
>
<el-option
v-for=
"item in channelList"
:key=
"item.id"
:label=
"$l(item, 'name')"
:value=
"item.channelId"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('始发地')"
prop=
"startCityId"
>
<el-select
v-model=
"queryParams.startCityId"
clearable
>
<el-select
v-model=
"queryParams.startCityId"
clearable
@
change=
"handleQuery"
>
<el-option
v-for=
"city in startCityList"
:key=
"city.id"
:label=
"$l(city, 'title')"
:value=
"city.id"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('目的地')"
prop=
"destCityId"
>
<el-select
v-model=
"queryParams.destCityId"
clearable
>
<el-select
v-model=
"queryParams.destCityId"
clearable
@
change=
"handleQuery"
>
<el-option
v-for=
"city in destCityList"
:key=
"city.id"
:label=
"$l(city, 'title')"
:value=
"city.id"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('是否预付')"
prop=
"needPay"
>
<el-select
v-model=
"queryParams.needPay"
:placeholder=
"$t('请选择')"
clearable
>
<el-select
v-model=
"queryParams.needPay"
:placeholder=
"$t('请选择')"
clearable
@
change=
"handleQuery"
>
<el-option
:label=
"$t('是')"
value=
"1"
></el-option>
<el-option
:label=
"$t('否')"
value=
"0"
></el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('上架状态')"
prop=
"auditStatus"
>
<dict-selector
:type=
"DICT_TYPE.ECW_PRICE_AUDIT_STATUS"
v-model=
"queryParams.auditStatus"
clearable
/>
<dict-selector
:type=
"DICT_TYPE.ECW_PRICE_AUDIT_STATUS"
v-model=
"queryParams.auditStatus"
clearable
@
change=
"handleQuery"
/>
</el-form-item>
<el-form-item
:label=
"$t('状态')"
prop=
"combStatus"
>
<el-select
v-model=
"queryParams.combStatus"
:placeholder=
"$t('请选择状态')"
clearable
>
<el-select
v-model=
"queryParams.combStatus"
:placeholder=
"$t('请选择状态')"
clearable
@
change=
"handleQuery"
>
<el-option
:label=
"$t('未设置价格')"
value=
"setPrice_1"
></el-option>
<el-option
:label=
"$t('未过期')"
value=
"setPrice_2"
></el-option>
<el-option
:label=
"$t('黑名单')"
value=
"blacklist_1"
></el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('是否单询')"
prop=
"needOrderInquiry"
>
<el-select
v-model=
"queryParams.needOrderInquiry"
:placeholder=
"$t('请选择')"
clearable
>
<el-select
v-model=
"queryParams.needOrderInquiry"
:placeholder=
"$t('请选择')"
clearable
@
change=
"handleQuery"
>
<el-option
:label=
"$t('是')"
value=
"1"
></el-option>
<el-option
:label=
"$t('否')"
value=
"0"
></el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('单价模式')"
prop=
"priceType"
>
<el-select
v-model=
"queryParams.priceType"
:placeholder=
"$t('请选择')"
clearable
>
<el-select
v-model=
"queryParams.priceType"
:placeholder=
"$t('请选择')"
clearable
@
change=
"handleQuery"
>
<el-option
:label=
"$t('运费+清关费')"
value=
"0"
></el-option>
<el-option
:label=
"$t('全包价')"
value=
"1"
></el-option>
</el-select>
...
...
@@ -168,9 +168,61 @@
<el-table-column
prop=
"price"
:label=
"$t('价格')"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<template
v-if=
"scope.row.stepPrice == 1"
>
<template
v-if=
"scope.row.needOrderInquiry==1"
>
<div
v-if=
"scope.row.needOrderInquiry==1"
>
{{
$t
(
'
单询无价格,请联系市场部
'
)
}}
</div>
</
template
>
<
template
v-else
>
<template
v-if=
"scope.row.stepPrice == 1"
>
<!--全包价-->
<div
v-if=
"scope.row.priceType"
>
<div
v-if=
"!scope.row.fullPriceStepList || !scope.row.fullPriceStepList.length"
>
{{
$t
(
'
未设置全包价阶梯价
'
)
}}
</div>
<div
v-else
>
{{
$t
(
"
第{no
}
阶梯({start
}
~{end
}
{weightUnit
}
)
"
,
{
no
:
1
,
start
:
scope
.
row
.
fullPriceStepList
[
0
].
startNum
,
end
:
scope
.
row
.
fullPriceStepList
[
0
].
endNum
,
weightUnit
:
getUnitTitle
(
scope
.
row
.
fullPriceStepList
[
0
].
weightUnit
),
}
)
}}
<
br
/>
{{
$t
(
'
全包价
'
)
}}
:{{
getCurrencySymbol
(
scope
.
row
.
fullPriceStepList
[
0
].
allPriceUnit
)
+
scope
.
row
.
fullPriceStepList
[
0
].
allPrice
}}
&
nbsp
;
{{
getCurrencyTitle
(
scope
.
row
.
fullPriceStepList
[
0
].
allPriceUnit
)
+
'
/
'
+
getUnitTitle
(
scope
.
row
.
fullPriceStepList
[
0
].
allVolumeUnit
)
}}
<
/div
>
<
/div
>
<
template
v
-
else
>
<
div
v
-
if
=
"
!scope.row.freightPriceStepList || !scope.row.freightPriceStepList.length
"
>
{{
$t
(
'
未设置运费阶梯价
'
)
}}
<
/div
>
<
div
v
-
else
>
{{
$t
(
"
第{no
}
阶梯({start
}
~{end
}
{weightUnit
}
)
"
,
{
no
:
1
,
start
:
scope
.
row
.
freightPriceStepList
[
0
].
startNum
,
end
:
scope
.
row
.
freightPriceStepList
[
0
].
endNum
,
weightUnit
:
getUnitTitle
(
scope
.
row
.
freightPriceStepList
[
0
].
weightUnit
),
}
)
}}
<
br
/>
<
div
>
{{
$t
(
'
运费
'
)
}}
:{{
getCurrencySymbol
(
scope
.
row
.
freightPriceStepList
[
0
].
transportPriceUnit
)
+
scope
.
row
.
freightPriceStepList
[
0
].
transportPrice
}}
&
nbsp
;
{{
getCurrencyTitle
(
scope
.
row
.
freightPriceStepList
[
0
].
transportPriceUnit
)
+
'
/
'
+
getUnitTitle
(
scope
.
row
.
freightPriceStepList
[
0
].
transportVolumeUnit
)
}}
<
/div
>
<
/div
>
<
/template
>
<
el
-
button
type
=
"
text
"
@
click
=
"
showMoreStepPriceItem=scope.row
"
>
{{
$t
(
'
查看更多
'
)
}}
<
/el-button
>
<
/template
>
<
template
v
-
else
>
<
div
v
-
if
=
"
scope.row.priceType == 0
"
>
{{
$t
(
'
运费
'
)
}}
:{{
getCurrencySymbol
(
scope
.
row
.
transportPriceUnit
)
+
scope
.
row
.
transportPrice
}}
&
nbsp
;
{{
getCurrencyTitle
(
scope
.
row
.
transportPriceUnit
)
+
'
/
'
+
getUnitTitle
(
scope
.
row
.
transportVolumeUnit
)
}}
<
br
/>
{{
$t
(
'
清关费
'
)
}}
:{{
getCurrencySymbol
(
scope
.
row
.
clearancePriceUnit
)
+
scope
.
row
.
clearancePrice
}}
&
nbsp
;
{{
getCurrencyTitle
(
scope
.
row
.
clearancePriceUnit
)
+
'
/
'
+
getUnitTitle
(
scope
.
row
.
clearanceVolumeUnit
)
}}
<
/div
>
<
div
v
-
if
=
"
scope.row.priceType == 1
"
>
{{
$t
(
'
全包价
'
)
}}
:{{
getCurrencySymbol
(
scope
.
row
.
allPriceUnit
)
+
scope
.
row
.
allPrice
}}
&
nbsp
;
{{
getCurrencyTitle
(
scope
.
row
.
allPriceUnit
)
+
'
/
'
+
getUnitTitle
(
scope
.
row
.
allVolumeUnit
)
}}
<
/div
>
<
/template
>
<
/template
>
<!--
<
template
v
-
if
=
"
scope.row.stepPrice == 1
"
>
<!--
全包价
-->
<div
v-if=
"scope.row.priceType"
>
<
!--
<
div
v
-
if
=
"
scope.row.priceType
"
>
<
div
v
-
if
=
"
!scope.row.fullPriceStepList || !scope.row.fullPriceStepList.length
"
>
{{
$t
(
'
未设置全包价阶梯价
'
)
}}
<
/div
>
<
div
v
-
else
>
{{
$t
(
"
第{no
}
阶梯({start
}
~{end
}
{weightUnit
}
)
"
,
{
...
...
@@ -214,7 +266,7 @@
{{
$t
(
'
全包价
'
)
}}
:{{
getCurrencySymbol
(
scope
.
row
.
allPriceUnit
)
+
scope
.
row
.
allPrice
}}
&
nbsp
;
{{
getCurrencyTitle
(
scope
.
row
.
allPriceUnit
)
+
'
/
'
+
getUnitTitle
(
scope
.
row
.
allVolumeUnit
)
}}
<
/div
>
<
/template
>
<
/template>
--
>
<
/template
>
<
/el-table-column
>
...
...
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