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
adf8c792
Commit
adf8c792
authored
Apr 01, 2023
by
houjn@hikoon.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
恢复合并前代码
parent
30439487
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
8 deletions
+68
-8
detail.vue
src/views/ecw/order/detail.vue
+68
-8
No files found.
src/views/ecw/order/detail.vue
View file @
adf8c792
...
@@ -200,9 +200,21 @@
...
@@ -200,9 +200,21 @@
</
template
>
</
template
>
</template>
</template>
</el-table-column>
</el-table-column>
<el-table-column
prop=
""
:label=
"$t('
填单快递单号
')"
>
<el-table-column
prop=
""
:label=
"$t('
储位
')"
>
<
template
slot-scope=
"{row}"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
expressNo
}}
<!--
<warehouse-area-select
v-if=
"row.warehouseInInfoVO"
v-model=
"row.warehouseInInfoVO.orderLocationBackVOList"
readonly
:order-id=
"orderId"
></warehouse-area-select>
-->
<template
v-if=
"row.warehouseInInfoVO"
>
{{
getLocationName
(
row
.
warehouseInInfoVO
.
orderLocationMergeVOSet
)
}}
</
template
>
</template>
</el-table-column>
<el-table-column
prop=
""
:label=
"$t('快递单号')"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
warehouseInInfoVO
.
expressNo
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -270,6 +282,29 @@
...
@@ -270,6 +282,29 @@
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</el-tab-pane>
</el-tab-pane>
<!-- 这个地方v-hasPermi不生效,所以换checkPermi函数检查 -->
<el-tab-pane
:label=
"$t('操作日志')"
name=
"five"
v-if=
"checkPermi(['ecw:order:logs'])"
>
<el-table
:data=
"logs"
>
<el-table-column
:label=
"$t('时间')"
width=
"150"
>
<
template
slot-scope=
"{row}"
>
{{
parseTime
(
row
.
createTime
)
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('操作人')"
prop=
"creatorName"
width=
"150"
>
</el-table-column>
<el-table-column
:label=
"$t('操作人类型')"
width=
"100"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
userType
==
1
?
$t
(
'
会员
'
)
:
$t
(
'
管理员
'
)
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('操作类型')"
prop=
"type"
width=
"150"
></el-table-column>
<el-table-column
:label=
"$t('操作描述')"
prop=
"msg"
width=
"300"
></el-table-column>
<el-table-column
:label=
"$t('备注')"
prop=
"note"
>
<
template
slot-scope=
"{row}"
>
<div
v-if=
"row.note"
>
<div
v-for=
"item in parseLogNote(row.note)"
>
{{
$t
(
'
【{name
}
】从【{orgValue
}
】修改为【{newValue
}
】
'
,
item
)
}}
<
/div
>
<
/div
>
<
/template
>
<
/el-table-column
>
<
/el-table
>
<
/el-tab-pane
>
<
/el-tabs
>
<
/el-tabs
>
<
/el-card
>
<
/el-card
>
...
@@ -344,7 +379,7 @@
...
@@ -344,7 +379,7 @@
<
/template
>
<
/template
>
<
script
>
<
script
>
import
{
getOrder
}
from
'
@/api/ecw/order
'
import
{
getOrder
,
operateLogPage
}
from
'
@/api/ecw/order
'
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
PrintWarehouseReceipt
from
'
./components/PrintWarehouseReceipt
'
import
PrintWarehouseReceipt
from
'
./components/PrintWarehouseReceipt
'
import
PrintLadingBill
from
'
./components/PrintLadingBill
'
import
PrintLadingBill
from
'
./components/PrintLadingBill
'
...
@@ -356,11 +391,12 @@ import {listByIds} from '@/api/ecw/region'
...
@@ -356,11 +391,12 @@ import {listByIds} from '@/api/ecw/region'
import
WarehouseDetail
from
'
./components/WarehouseDetail
'
;
import
WarehouseDetail
from
'
./components/WarehouseDetail
'
;
import
{
getProductBrank
}
from
'
@/api/ecw/productBrank
'
import
{
getProductBrank
}
from
'
@/api/ecw/productBrank
'
import
{
parseTime
}
from
'
@/utils/ruoyi
'
;
import
{
parseTime
}
from
'
@/utils/ruoyi
'
;
import
WarehouseAreaSelect
from
"
@/components/WarehouseAreaSelect
"
import
{
checkPermi
}
from
'
@/utils/permission
'
export
default
{
export
default
{
name
:
"
detail
"
,
name
:
"
detail
"
,
components
:
{
components
:
{
PrintWarehouseReceipt
,
PrintLadingBill
,
WarehouseDetail
PrintWarehouseReceipt
,
PrintLadingBill
,
WarehouseDetail
,
WarehouseAreaSelect
}
,
}
,
filters
:
{
filters
:
{
customsTypeFilter
(
e
,
customsTypeList
)
{
customsTypeFilter
(
e
,
customsTypeList
)
{
...
@@ -398,6 +434,8 @@ export default {
...
@@ -398,6 +434,8 @@ export default {
showWarehouseInItemId
:
null
,
// 当前显示的入仓
showWarehouseInItemId
:
null
,
// 当前显示的入仓
showFeeDetailDialog
:
null
,
// 是否显示费用详情弹层
showFeeDetailDialog
:
null
,
// 是否显示费用详情弹层
feeDetail
:
null
,
// 费用详情
feeDetail
:
null
,
// 费用详情
logs
:
[],
// 操作日志
}
}
}
,
}
,
computed
:{
computed
:{
...
@@ -433,6 +471,9 @@ export default {
...
@@ -433,6 +471,9 @@ export default {
if
(
!
this
.
feeList
.
length
&&
val
==
'
four
'
){
if
(
!
this
.
feeList
.
length
&&
val
==
'
four
'
){
this
.
loadFeeList
()
this
.
loadFeeList
()
}
}
if
(
!
this
.
logs
.
length
&&
val
==
'
five
'
){
this
.
loadLogs
()
}
}
,
}
,
'
order.channelId
'
(){
'
order.channelId
'
(){
this
.
getChannel
()
this
.
getChannel
()
...
@@ -457,10 +498,18 @@ export default {
...
@@ -457,10 +498,18 @@ export default {
getCurrencyList
().
then
(
res
=>
this
.
currencyList
=
res
.
data
)
getCurrencyList
().
then
(
res
=>
this
.
currencyList
=
res
.
data
)
getUnitList
().
then
(
res
=>
this
.
unitList
=
res
.
data
)
getUnitList
().
then
(
res
=>
this
.
unitList
=
res
.
data
)
console
.
log
(
'
2023-01-14 23:23 看到此消息则表示代码最新
'
)
}
,
}
,
methods
:
{
methods
:
{
checkPermi
,
// 检查权限
// 获取储位名称
getLocationName
(
locationArr
){
if
(
!
locationArr
||
!
locationArr
.
length
)
return
''
let
arr
=
[]
locationArr
.
forEach
(
item
=>
{
arr
.
push
(
`${item.areaName
}
${item.locationName || ''
}
`
)
}
)
return
Array
.
from
(
new
Set
(
arr
)).
join
(
"
,
"
)
}
,
// 显示费用详情
// 显示费用详情
showFeeDetail
(
row
,
type
){
showFeeDetail
(
row
,
type
){
this
.
showFeeDetailDialog
=
true
this
.
showFeeDetailDialog
=
true
...
@@ -582,6 +631,12 @@ export default {
...
@@ -582,6 +631,12 @@ export default {
this
.
feeList
=
res
.
data
this
.
feeList
=
res
.
data
}
)
}
)
}
,
}
,
// 加载操作日志
loadLogs
(){
operateLogPage
({
orderId
:
this
.
orderId
,
page
:
1
,
rows
:
10000
}
).
then
(
res
=>
{
this
.
logs
=
res
.
data
.
list
}
)
}
,
downloadPackingList
(){
downloadPackingList
(){
window
.
open
(
this
.
order
.
packingListUrl
)
window
.
open
(
this
.
order
.
packingListUrl
)
}
,
}
,
...
@@ -593,6 +648,11 @@ export default {
...
@@ -593,6 +648,11 @@ export default {
getOrderWarehouseIn
(
this
.
order
.
id
).
then
(
res
=>
{
getOrderWarehouseIn
(
this
.
order
.
id
).
then
(
res
=>
{
this
.
orderWarehouseIn
=
res
.
data
this
.
orderWarehouseIn
=
res
.
data
}
)
}
)
}
,
// 解析日志node字段
parseLogNote
(
note
){
if
(
!
note
)
return
[]
return
JSON
.
parse
(
note
)
}
}
}
}
}
;
}
;
...
...
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