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
a79ac385
Commit
a79ac385
authored
Sep 30, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单详情增加特性
parent
a9b6fe15
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
detail.vue
src/views/ecw/order/detail.vue
+24
-1
No files found.
src/views/ecw/order/detail.vue
View file @
a79ac385
...
...
@@ -201,6 +201,11 @@
<dict-tag
v-else
:type=
"DICT_TYPE.ECW_IS_BRAND"
:value=
"row.brandType"
/>
</template>
</el-table-column>
<el-table-column
prop=
"brand"
:label=
"$t('特性')"
width=
"90px"
>
<
template
slot-scope=
"{row}"
>
{{
showAttrText
(
row
.
warehouseInInfoVO
?
row
.
warehouseInProdAttrIds
:
row
.
prodAttrIds
)
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"num"
:label=
"$t('填单件数')"
width=
"90px"
/>
<el-table-column
prop=
"sumNum"
:label=
"$t('入仓件数')"
width=
"90px"
>
<
template
slot-scope=
"{row}"
>
...
...
@@ -505,6 +510,7 @@ import PackHistory from './components/PackHistory';
import
PackHistoryDetail
from
'
./components/PackHistoryDetail
'
;
import
{
getSupplier
,
getSupplierPage
}
from
'
@/api/ecw/supplier
'
import
{
formatTime
}
from
"
@/utils
"
;
import
{
getProductAttrList
}
from
"
@/api/ecw/productAttr
"
;
export
default
{
name
:
"
detail
"
,
components
:
{
...
...
@@ -561,7 +567,9 @@ export default {
packAfterData
:
null
,
//显示打包历史详情
showDeclaration
:
false
,
//显示报关资料
showFeeSummary
:
false
,
// 是否显示费用汇总
offerData
:
''
//关联报价单
offerData
:
''
,
//关联报价单
// 特性列表
attrList
:
[]
}
}
,
computed
:{
...
...
@@ -593,6 +601,18 @@ export default {
return
JSON
.
parse
(
this
.
order
.
departureVO
.
departure
)
}
return
{
}
}
,
// 显示特性
showAttrText
(){
return
ids
=>
{
if
(
!
ids
)
return
''
ids
=
!
Array
.
isArray
(
ids
)
?
ids
.
split
(
'
,
'
)
:
ids
const
attrMap
=
{
}
this
.
attrList
.
forEach
(
item
=>
{
attrMap
[
item
.
id
]
=
this
.
$l
(
item
,
'
attrName
'
)
}
)
return
ids
.
map
(
id
=>
attrMap
[
id
]).
join
(
'
,
'
)
}
}
}
,
watch
:{
...
...
@@ -628,6 +648,9 @@ export default {
getCurrencyList
().
then
(
res
=>
this
.
currencyList
=
res
.
data
)
getUnitList
().
then
(
res
=>
this
.
unitList
=
res
.
data
)
getProductAttrList
().
then
(
response
=>
{
this
.
attrList
=
response
.
data
;
}
)
}
,
methods
:
{
parseTime
,
...
...
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