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
f41e2ad9
Commit
f41e2ad9
authored
Jul 10, 2022
by
Marcus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
特价列表和详情字段翻译
parent
8a19e1b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
3 deletions
+34
-3
special.vue
src/views/ecw/offer/special.vue
+21
-2
specialDiscount.vue
src/views/ecw/offer/specialDiscount.vue
+13
-1
No files found.
src/views/ecw/offer/special.vue
View file @
f41e2ad9
...
...
@@ -19,12 +19,15 @@
<el-table-column
prop=
"prodAttrIds"
label=
"填单货物属性"
>
<
template
v-slot=
"{row}"
>
{{
getProductNamesByIds
(
row
.
prodAttrIds
)
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"address"
label=
"入库货物属性"
>
<
template
v-slot=
"{row}"
>
品牌:
<br>
品牌:
{{
row
.
brand
?
'
有
'
:
'
无
'
}}
<br>
箱数:
{{
row
.
num
}}
<br>
体积:
{{
row
.
volume
}}
m³
<br>
重量:
{{
row
.
weight
}}
Kg
...
...
@@ -33,6 +36,7 @@
<el-table-column
prop=
"address"
label=
"最后操作时间"
>
<!-- todo -->
</el-table-column>
<el-table-column
label=
"原价"
>
...
...
@@ -61,7 +65,8 @@
</
template
>
</el-table-column>
<el-table-column
prop=
"address"
prop=
"status"
:formatter=
"(v) => ['取消报价', '特价审批中', '需求确认(草稿)', '跟进中', '赢单', '输单', '报价完成', '审批通过', '审批拒绝'][v.status]"
label=
"审核状态"
>
</el-table-column>
<el-table-column
...
...
@@ -90,6 +95,7 @@ import {DICT_TYPE, getDictDataLabel} from '@/utils/dict'
import
{
getOffer
}
from
'
@/api/ecw/offer
'
import
{
getUnitList
}
from
"
@/api/ecw/unit
"
import
{
getCurrencyList
}
from
"
@/api/ecw/currency
"
import
{
getProductAttrList
}
from
"
@/api/ecw/productAttr
"
export
default
{
name
:
"
OfferSpecial
"
,
components
:
{
...
...
@@ -119,6 +125,7 @@ export default {
},
unitList
:[],
currencyList
:[],
productAttrList
:[],
};
},
created
()
{
...
...
@@ -128,6 +135,7 @@ export default {
}
getUnitList
().
then
(
res
=>
this
.
unitList
=
res
.
data
)
getCurrencyList
().
then
(
res
=>
this
.
currencyList
=
res
.
data
)
getProductAttrList
().
then
(
res
=>
this
.
productAttrList
=
res
.
data
)
},
methods
:
{
getOffer
(){
...
...
@@ -136,6 +144,17 @@ export default {
this
.
loading
=
false
this
.
offer
=
response
.
data
})
},
getProductNamesByIds
(
ids
){
const
result
=
[]
ids
.
split
(
'
,
'
).
forEach
(
e
=>
{
this
.
productAttrList
.
forEach
(
f
=>
{
if
(
parseInt
(
e
)
===
f
.
id
)
{
result
.
push
(
f
.
attrName
)
}
})
})
return
result
.
join
(
'
,
'
)
}
},
computed
:
{
...
...
src/views/ecw/offer/specialDiscount.vue
View file @
f41e2ad9
...
...
@@ -17,7 +17,7 @@
<el-input
v-model=
"form.prodTitleEn"
readonly
></el-input>
</el-form-item>
<el-form-item
label=
"选择线路"
>
{{
`【${getDictDataLabel(DICT_TYPE.TRANSPORT_TYPE, form.transportId)
}
】
【xxxx】
从【${form.departureName
}
】发往【${form.objectiveName
}
】`
}}
{{
`【${getDictDataLabel(DICT_TYPE.TRANSPORT_TYPE, form.transportId)
}
】
${ getChannelNameById(form.channelId)
}
从【${form.departureName
}
】发往【${form.objectiveName
}
】`
}}
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
是否预付
"
>
<
el
-
radio
-
group
v
-
model
=
"
form.isPayAdvance
"
disabled
>
...
...
@@ -114,6 +114,7 @@ import {createOfferSpecial, getOfferSpecial, getOfferSpecialByApproveId} from "@
import
{
DICT_TYPE
,
getDictDataLabel
}
from
"
@/utils/dict
"
import
DictSelector
from
"
@/components/DictSelector
"
import
{
getUnitList
}
from
"
@/api/ecw/unit
"
import
{
getChannelList
}
from
"
@/api/ecw/channel
"
export
default
{
name
:
"
specialDiscount
"
,
...
...
@@ -146,6 +147,7 @@ export default {
this
.
getOfferSpecialByApproveId
()
getUnitList
().
then
(
res
=>
this
.
unitList
=
res
.
data
)
getChannelList
().
then
(
res
=>
this
.
channelList
=
res
.
data
)
}
,
data
()
{
...
...
@@ -153,6 +155,7 @@ export default {
getDictDataLabel
,
DICT_TYPE
,
unitList
:[],
channelList
:[],
form
:
{
"
applyResult
"
:
""
,
"
applyStatus
"
:
0
,
...
...
@@ -220,6 +223,15 @@ export default {
this
.
form
=
r
.
data
}
)
}
}
,
computed
:
{
// 根据渠道id显示渠道名
getChannelNameById
(){
return
channelId
=>
{
const
s
=
this
.
channelList
.
find
(
item
=>
item
.
channelId
==
channelId
)
?.
nameZh
return
s
?
'
【
'
+
s
+
'
】
'
:
''
}
}
,
}
}
<
/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