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
f740b967
Commit
f740b967
authored
Aug 31, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打包记录详情取值错误
parent
41b24638
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
PackHistoryDetail.vue
src/views/ecw/order/components/PackHistoryDetail.vue
+9
-5
No files found.
src/views/ecw/order/components/PackHistoryDetail.vue
View file @
f740b967
...
...
@@ -6,12 +6,13 @@
<el-descriptions-item
:label=
"$t('品名')"
>
{{
orderItem
.
prodTitleZh
}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('英文品名')"
>
{{
orderItem
.
prodTitleEn
}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('品牌')"
>
<dict-tag
:type=
"DICT_TYPE.ECW_IS_BRAND"
:value=
"orderItem.brandType"
/>
<template
v-if=
"orderItem.brandName"
>
{{
orderItem
.
brandName
}}
</
template
>
<dict-tag
v-else
:type=
"DICT_TYPE.ECW_IS_BRAND"
:value=
"orderItem.brandType"
/>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('箱数')"
>
{{orderItem.num+$t('箱')}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('体积')"
>
{{orderItem.warehouseInInfoVO ? orderItem.warehouseInInfoVO.volume : orderItem.volume}}m³
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('重量')"
>
{{orderItem.warehouseInInfoVO ? orderItem.warehouseInInfoVO.weight : orderItem.weight}}kg
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('
重
量')"
>
{{
orderItem
.
warehouseInInfoVO
?
orderItem
.
warehouseInInfoVO
.
quantityAll
:
orderItem
.
quantity
}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('
数
量')"
>
{{orderItem.warehouseInInfoVO ? orderItem.warehouseInInfoVO.quantityAll : orderItem.quantity}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('备货状态')"
>
{{airShipmentData[info.airShipment]}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('商品特性')"
>
{{productAttr}}
</el-descriptions-item>
</el-descriptions>
...
...
@@ -172,10 +173,13 @@ export default {
return
JSON
.
parse
(
this
.
packAfterData
.
orderWarehouseInContent
)
},
productAttr
(){
if
(
this
.
productAttrList
.
length
==
0
||!
this
.
orderItem
.
prodAttrIds
)
return
''
var
data
=
[]
if
(
this
.
productAttrList
.
length
==
0
||!
this
.
orderItem
.
warehouseInProdAttrIds
)
return
''
let
data
=
[]
// 要拆分成数组再用indexOf,字符串直接indexOf会有问题,"12,3".indexOf('1') > -1 为true
let
warehouseInProdAttrIds
=
this
.
orderItem
.
warehouseInProdAttrIds
.
split
(
'
,
'
)
console
.
log
({
warehouseInProdAttrIds
})
this
.
productAttrList
.
forEach
(
item
=>
{
if
(
this
.
orderItem
.
prodAttrIds
.
indexOf
(
item
.
id
)
>-
1
){
if
(
warehouseInProdAttrIds
.
indexOf
(
`
${
item
.
id
}
`
)
>-
1
){
data
.
push
(
this
.
$l
(
item
,
'
attrName
'
))
}
})
...
...
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