Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
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
周健威
rs-cloud-platform-ui
Commits
350eaf52
Commit
350eaf52
authored
Jan 19, 2021
by
rencs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update index.vue
parent
7f81c760
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
128 additions
and
109 deletions
+128
-109
index.vue
src/views/orderManagement/orderList/index.vue
+128
-109
No files found.
src/views/orderManagement/orderList/index.vue
View file @
350eaf52
...
@@ -807,116 +807,135 @@ export default {
...
@@ -807,116 +807,135 @@ export default {
);
);
}
}
});
});
},
});
/**
},
* 选择数据-关闭弹窗
/**
*/
* 选择数据-关闭弹窗
selectDataEvent
(
e
){
*/
if
(
e
){
selectDataEvent
(
e
)
{
this
.
getList
()
if
(
e
)
{
}
this
.
selectDataVisible
=
false
},
/**
* 查看
*/
handleSee
(
row
){
this
.
oneRow
=
row
this
.
orderSendDetailVisible
=
true
;
},
/**
* 发货弹窗关闭
*/
sendEvent
(
e
){
if
(
e
){
this
.
getList
()
}
this
.
sendVisible
=
false
},
/**
* 开票发货
*/
handleInvoice
(
row
){
this
.
oneRow
=
row
this
.
title
=
'发票发货'
this
.
sendVisible
=
true
},
/**
* 发货
*/
handleSend
(
row
){
this
.
oneRow
=
row
this
.
title
=
'订单发货'
this
.
sendVisible
=
true
},
/**
* 选择数据
*/
handleData
(
row
){
this
.
oneRow
=
row
this
.
selectDataVisible
=
true
},
/**
* 商品品牌列表
*/
getList
()
{
let
_this
=
this
this
.
listLoading
=
true
;
if
(
this
.
times
&&
this
.
times
.
length
>
0
){
this
.
listQuery
.
startTime
=
this
.
times
[
0
]
this
.
listQuery
.
endTime
=
this
.
times
[
1
]
}
getOrderList
(
this
.
listQuery
).
then
((
response
)
=>
{
let
a
=
response
.
data
.
data
a
.
map
(
function
(
item
)
{
if
(
item
.
orderItemList
){
item
.
orderItemList
.
map
(
function
(
iitem
){
iitem
.
detailJson
=
iitem
.
detailJson
?
JSON
.
parse
(
iitem
.
detailJson
)
:
{}
if
(
iitem
.
type
==
2
){
// 影像图库-尺寸
iitem
.
fileWidth
=
iitem
.
detailJson
.
imageInfoRelationList
&&
iitem
.
detailJson
.
imageInfoRelationList
.
length
>
0
?
iitem
.
detailJson
.
imageInfoRelationList
[
0
].
fileWidth
:
''
}
if
(
iitem
.
type
==
3
){
// 行业应用-类别
iitem
.
firstTitle
=
iitem
.
detailJson
.
firstTitle
?
iitem
.
detailJson
.
firstTitle
:
''
}
if
(
iitem
.
type
==
1
)
{
// 标准数据
iitem
.
imageResolutionStr
=
iitem
.
detailJson
.
imageResolution
?
iitem
.
detailJson
.
imageResolution
.
replace
(
/{/g
,
""
):
''
iitem
.
imageResolutionStr
=
iitem
.
imageResolutionStr
?
iitem
.
imageResolutionStr
.
replace
(
/}/g
,
""
):
''
}
})
}
if
(
item
.
customerJson
){
item
.
customerJson
=
JSON
.
parse
(
item
.
customerJson
)
item
.
customerJson
.
startTimeStr
=
timestamp2DateAuto
(
item
.
customerJson
.
startTime
,
"yyyy-MM-dd"
);
item
.
customerJson
.
endTimeStr
=
timestamp2DateAuto
(
item
.
customerJson
.
endTime
,
"yyyy-MM-dd"
);
}
})
_this
.
list
=
a
;
_this
.
total
=
response
.
data
.
totalCount
;
_this
.
listLoading
=
false
;
});
},
/**
* 清空筛选条件
*/
clear_search
()
{
this
.
times
=
[]
this
.
listQuery
=
{
name
:
undefined
,
// 商品名称
page
:
1
,
limit
:
10
,
startTime
:
undefined
,
// 下单时间
endTime
:
undefined
,
// 下单时间
payStatus
:
undefined
,
// 支付状态: 1、已支付,2、未支付
keywords
:
undefined
,
// 订单搜索
status
:
undefined
,
// 订单状态:0、定制订单无价格 1--创建订单,2--待付款,3--已支付,4--已发货, 5--已收货, 6、已完成 -1、删除,-2、取消, -3 退款
invoiceStatus
:
undefined
,
// 发票状态: 1、未开发票,2、已开发票, 3、已发货, 4、已收货、5、退回, 6、已完成
type
:
undefined
,
// 1、普通订单,2、定制订单
sendType
:
undefined
,
// 配送方式:1、线上配送,2、快递配送
};
this
.
getList
();
this
.
getList
();
},
}
this
.
selectDataVisible
=
false
;
},
/**
* 查看
*/
handleSee
(
row
)
{
this
.
oneRow
=
row
;
this
.
orderSendDetailVisible
=
true
;
},
/**
* 发货弹窗关闭
*/
sendEvent
(
e
)
{
if
(
e
)
{
this
.
getList
();
}
this
.
sendVisible
=
false
;
},
/**
* 开票发货
*/
handleInvoice
(
row
)
{
this
.
oneRow
=
row
;
this
.
title
=
"发票发货"
;
this
.
sendVisible
=
true
;
},
/**
* 发货
*/
handleSend
(
row
)
{
this
.
oneRow
=
row
;
this
.
title
=
"订单发货"
;
this
.
sendVisible
=
true
;
},
/**
* 选择数据
*/
handleData
(
row
)
{
this
.
oneRow
=
row
;
this
.
selectDataVisible
=
true
;
},
/**
* 商品品牌列表
*/
getList
()
{
let
_this
=
this
;
this
.
listLoading
=
true
;
if
(
this
.
times
&&
this
.
times
.
length
>
0
)
{
this
.
listQuery
.
startTime
=
this
.
times
[
0
];
this
.
listQuery
.
endTime
=
this
.
times
[
1
];
}
getOrderList
(
this
.
listQuery
).
then
((
response
)
=>
{
let
a
=
response
.
data
.
data
;
a
.
map
(
function
(
item
)
{
if
(
item
.
orderItemList
)
{
item
.
orderItemList
.
map
(
function
(
iitem
)
{
iitem
.
detailJson
=
iitem
.
detailJson
?
JSON
.
parse
(
iitem
.
detailJson
)
:
{};
if
(
iitem
.
type
==
2
)
{
// 影像图库-尺寸
iitem
.
fileWidth
=
iitem
.
detailJson
.
imageInfoRelationList
&&
iitem
.
detailJson
.
imageInfoRelationList
.
length
>
0
?
iitem
.
detailJson
.
imageInfoRelationList
[
0
].
fileWidth
:
""
;
}
if
(
iitem
.
type
==
3
)
{
// 行业应用-类别
iitem
.
firstTitle
=
iitem
.
detailJson
.
firstTitle
?
iitem
.
detailJson
.
firstTitle
:
""
;
}
if
(
iitem
.
type
==
1
)
{
// 标准数据
iitem
.
imageResolutionStr
=
iitem
.
detailJson
.
imageResolution
?
iitem
.
detailJson
.
imageResolution
.
replace
(
/{/g
,
""
)
:
""
;
iitem
.
imageResolutionStr
=
iitem
.
imageResolutionStr
?
iitem
.
imageResolutionStr
.
replace
(
/}/g
,
""
)
:
""
;
}
});
}
if
(
item
.
customerJson
)
{
item
.
customerJson
=
JSON
.
parse
(
item
.
customerJson
);
item
.
customerJson
.
startTimeStr
=
timestamp2DateAuto
(
item
.
customerJson
.
startTime
,
"yyyy-MM-dd"
);
item
.
customerJson
.
endTimeStr
=
timestamp2DateAuto
(
item
.
customerJson
.
endTime
,
"yyyy-MM-dd"
);
}
});
_this
.
list
=
a
;
_this
.
total
=
response
.
data
.
totalCount
;
_this
.
listLoading
=
false
;
});
},
/**
* 清空筛选条件
*/
clear_search
()
{
this
.
times
=
[];
this
.
listQuery
=
{
name
:
undefined
,
// 商品名称
page
:
1
,
limit
:
10
,
startTime
:
undefined
,
// 下单时间
endTime
:
undefined
,
// 下单时间
payStatus
:
undefined
,
// 支付状态: 1、已支付,2、未支付
keywords
:
undefined
,
// 订单搜索
status
:
undefined
,
// 订单状态:0、定制订单无价格 1--创建订单,2--待付款,3--已支付,4--已发货, 5--已收货, 6、已完成 -1、删除,-2、取消, -3 退款
invoiceStatus
:
undefined
,
// 发票状态: 1、未开发票,2、已开发票, 3、已发货, 4、已收货、5、退回, 6、已完成
type
:
undefined
,
// 1、普通订单,2、定制订单
sendType
:
undefined
,
// 配送方式:1、线上配送,2、快递配送
};
this
.
getList
();
},
},
},
},
};
};
...
...
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