Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f275e5bc
authored
Dec 31, 2024
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
寄售申请
parent
9c1c4ab5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
30 deletions
src/views/consignmentManagement/consignmentApplication.vue
src/views/consignmentManagement/consignmentApplication.vue
View file @
f275e5bc
...
...
@@ -2,19 +2,23 @@
<div
class=
"pagex"
>
<div
class=
"section-page"
>
<!--搜索区-->
<el-form
:inline=
"true"
:model=
"formParam"
ref=
"formParam"
label-width=
"80px"
>
<el-form-item
label=
"状态"
prop=
"status"
>
<el-select
v-model=
"formParam.status"
placeholder=
"全部"
clearable
>
<el-form
:inline=
"true"
:model=
"formParam"
ref=
"formParam"
label-width=
"96px"
>
<el-form-item
label=
"寄售召回单号"
prop=
"consignment_sn"
>
<el-input
v-model=
"formParam.consignment_sn"
placeholder=
"请输入寄售召回单号"
@
keyup
.
enter
.
native=
"submit"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"型号"
prop=
"goods_name"
>
<el-autocomplete
v-model=
"formParam.goods_name"
:trigger-on-focus=
"false"
@
keyup
.
enter
.
native=
"onSubmit"
:fetch-suggestions=
"querySearchAsync"
placeholder=
"请输入型号"
clearable
></el-autocomplete>
</el-form-item>
<el-form-item
label=
"状态"
prop=
"consignment_status"
>
<el-select
v-model=
"formParam.consignment_status"
placeholder=
"全部"
clearable
>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
"待处理"
value=
"1"
></el-option>
<el-option
label=
"处理中"
value=
"2"
></el-option>
<el-option
label=
"已处理"
value=
"3"
></el-option>
<el-option
label=
"失败"
value=
"4"
></el-option>
<el-option
label=
"待提审"
value=
"0"
></el-option>
<el-option
label=
"待审核"
value=
"1"
></el-option>
<el-option
label=
"进行中"
value=
"2"
></el-option>
<el-option
label=
"完成"
value=
"3"
></el-option>
<el-option
label=
"作废"
value=
"4"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"更新日期"
prop=
"create_time"
>
<el-date-picker
:unlink-panels=
true
style=
"width:193px"
prefix-icon=
"prefix-icon-time-style"
v-model=
"formParam.date"
value-format=
"yyyy-MM-dd"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"onSubmit"
>
搜索
</el-button>
<el-button
@
click=
"resetForm('formParam')"
>
重置
</el-button>
...
...
@@ -23,27 +27,35 @@
<!--操作区-->
<div
class=
"operation-area row verCenter bothSide"
>
<div
class=
"operation-button row verCenter"
>
<el-button
type=
"primary"
>
导入
</el-button>
<a
href=
"/寄售商品导入.csv"
download
style=
"text-decoration: none;margin-left: 10px;"
>
<el-button
type=
"primary"
>
下载模板
</el-button>
</a>
<el-button
type=
"primary"
>
提交审核
</el-button>
<el-button
type=
"primary"
>
作废
</el-button>
<el-button
type=
"primary"
>
关单
</el-button>
</div>
<div
class=
"text-tip row verCenter"
>
<i
class=
"el-icon-warning"
></i>
<span>
可选择“待审核”状态的数据提交寄售申请,每次最多可提交200条
</span>
</div>
</div>
<!--列表区-->
<div
class=
"data-box"
>
<el-table
:data=
"list"
border
max-height=
"600"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"40"
align=
"center"
fixed
></el-table-column>
<el-table-column
prop=
"
msg_sn"
label=
"单号
"
:show-overflow-tooltip=
"true"
align=
"center"
>
<el-table-column
prop=
"
consignment_sn"
label=
"寄售申请单号"
width=
"160
"
:show-overflow-tooltip=
"true"
align=
"center"
>
<template
slot-scope=
"scope"
>
<el-link
type=
"primary"
@
click=
"$router.push('/consignmentImportDetail')"
>
{{
scope
.
row
.
id
}}
</el-link>
<el-link
type=
"primary"
:underline=
"false"
@
click=
"$router.push('/consignmentImportDetail')"
style=
"font-size: 12px;"
>
{{
scope
.
row
.
consignment_sn
}}
</el-link>
</
template
>
</el-table-column>
<el-table-column
prop=
"msg_type"
label=
"文件名字"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"msg_type"
label=
"状态"
width=
"160"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"msg_type"
label=
"导入方式"
width=
"160"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"id"
label=
"导入成功"
width=
"160"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"id"
label=
"导入失败"
width=
"160"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"create_time"
label=
"上传时间"
width=
"160"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"consignment_status_val"
label=
"状态"
width=
"80"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"deliver_status_val"
label=
"发货状态"
width=
"90"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"stock_in_status_val"
label=
"入库状态"
width=
"90"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"order_uname"
label=
"订单人员"
width=
"100"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"update_time"
label=
"更新时间"
width=
"160"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"verify_uname"
label=
"审核人"
width=
"100"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"verify_time"
label=
"审核时间"
width=
"160"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"verify_remark"
label=
"审核说明"
min-width=
"160"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"create_uname"
label=
"创建人"
width=
"100"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"create_time"
label=
"创建时间"
width=
"160"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"consignment_type_val"
label=
"类型"
width=
"100"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
</el-table>
<el-pagination
layout=
"total, sizes, prev, pager, next, jumper"
:page-sizes=
"[10, 20, 50, 100, 200]"
:total=
"total"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"page"
></el-pagination>
</div>
...
...
@@ -70,8 +82,9 @@ export default {
limit
:
10
,
list
:
[],
formParam
:
{
status
:
''
,
date
:
''
consignment_sn
:
''
,
goods_name
:
''
,
consignment_status
:
''
}
};
},
...
...
@@ -80,12 +93,7 @@ export default {
},
methods
:
{
getData
()
{
var
params
=
Object
.
assign
({},
this
.
formParam
,
{
page
:
this
.
page
,
limit
:
this
.
limit
},
{
start_time
:
this
.
formParam
.
date
?
this
.
formParam
.
date
[
0
]
:
''
},
{
end_time
:
this
.
formParam
.
date
?
this
.
formParam
.
date
[
1
]
:
''
}
);
this
.
$http
(
'GET'
,
"/api/message/getMsgList"
,
params
).
then
(
res
=>
{
this
.
$http
(
'GET'
,
"/api/consignment/getConsignmentList"
,
this
.
formParam
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
list
=
res
.
data
.
list
||
[];
this
.
total
=
Number
(
res
.
data
.
total
)
||
0
;
...
...
@@ -98,6 +106,29 @@ export default {
})
},
/**
* 型号监听
* @param queryString
* @param cb
*/
querySearchAsync
(
queryString
,
cb
)
{
if
(
!
queryString
)
{
cb
([]);
return
;
}
this
.
$http
(
'GET'
,
"/api/search/getspu"
,
{
spu_name
:
queryString
}).
then
(
res
=>
{
if
(
res
.
code
==
0
&&
res
.
data
.
list
?.
length
)
{
const
arr
=
res
.
data
.
list
.
map
(
item
=>
({
value
:
item
.
spu_name
}));
cb
(
arr
);
}
else
{
cb
([]);
}
}).
catch
(()
=>
{
cb
([]);
});
},
/**
* 搜索
*/
onSubmit
()
{
...
...
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