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
2ae2ec61
authored
May 13, 2021
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
x
parent
f401da2a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
33 deletions
src/views/Store/list.vue
src/views/Store/list.vue
View file @
2ae2ec61
...
...
@@ -6,20 +6,22 @@
<el-input
v-model=
"formInline.goods_name"
placeholder=
"请输入型号"
></el-input>
</el-form-item>
<el-form-item
label=
"品牌"
>
<el-select
v-model=
"formInline.brand"
placeholder=
"请选择"
>
<el-option
label=
"区域一"
value=
"shanghai"
></el-option>
<el-option
label=
"区域二"
value=
"beijing"
></el-option>
<el-select
v-model=
"formInline.brand_id"
placeholder=
"请选择"
>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
"品牌一"
value=
"1"
></el-option>
<el-option
label=
"品牌二"
value=
"2"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"状态"
>
<el-select
v-model=
"formInline.status"
placeholder=
"请选择"
>
<el-option
label=
"区域一"
value=
"shanghai"
></el-option>
<el-option
label=
"区域二"
value=
"beijing"
></el-option>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
"上架"
value=
"1"
></el-option>
<el-option
label=
"下架"
value=
"3"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"更新日期"
>
<el-date-picker
v-model=
"formInline.date"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期
"
end-placeholder=
"结束日期"
>
<el-date-picker
v-model=
"formInline.date"
type=
"daterange"
value-format=
"yyyy-MM-dd"
range-separator=
"至
"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
</el-date-picker>
</el-form-item>
...
...
@@ -47,30 +49,39 @@
<el-table-column
fixed
type=
"selection"
width=
"37"
>
</el-table-column>
<el-table-column
fixed
prop=
"goods_name"
label=
"型号"
width=
"
20
0"
>
<el-table-column
fixed
prop=
"goods_name"
label=
"型号"
width=
"
18
0"
>
</el-table-column>
<el-table-column
fixed
prop=
"
inquiry_sn"
label=
"供应商内部型号编码"
width=
"20
0"
>
<el-table-column
fixed
prop=
"
goods_sn"
label=
"供应商内部型号编码"
width=
"18
0"
>
</el-table-column>
<el-table-column
fixed
prop=
"brand_name"
label=
"品牌"
width=
"
20
0"
>
<el-table-column
fixed
prop=
"brand_name"
label=
"品牌"
width=
"
18
0"
>
</el-table-column>
<el-table-column
prop=
"batch
"
label=
"封装"
width=
"20
0"
>
<el-table-column
prop=
"batch
_sn"
label=
"封装"
width=
"18
0"
>
</el-table-column>
<el-table-column
prop=
"
batch"
label=
"起订量"
width=
"20
0"
>
<el-table-column
prop=
"
moq"
label=
"起订量"
width=
"15
0"
>
</el-table-column>
<el-table-column
prop=
"
inquiry_number"
label=
"库存数量"
width=
"20
0"
>
<el-table-column
prop=
"
mpq"
label=
"标准包装量"
width=
"15
0"
>
</el-table-column>
<el-table-column
prop=
"
inquiry_number"
label=
"国内含税价(¥)"
width=
"20
0"
>
<el-table-column
prop=
"
stock"
label=
"库存数量"
width=
"15
0"
>
</el-table-column>
<el-table-column
prop=
"
inquiry_number"
label=
"香港交货价($)"
width=
"20
0"
>
<el-table-column
prop=
"
cn_delivery_time"
label=
"国内含税价(¥)"
width=
"15
0"
>
</el-table-column>
<el-table-column
prop=
"
inquiry_number"
label=
"大陆交期"
width=
"20
0"
>
<el-table-column
prop=
"
hk_delivery_time"
label=
"香港交货价($)"
width=
"15
0"
>
</el-table-column>
<el-table-column
prop=
"
inquiry_number"
label=
"香港交期"
width=
"20
0"
>
<el-table-column
prop=
"
cn_delivery_time"
label=
"大陆交期"
width=
"15
0"
>
</el-table-column>
<el-table-column
prop=
"inquiry_number"
label=
"状态"
width=
"200"
>
<el-table-column
prop=
"hk_delivery_time"
label=
"香港交期"
width=
"150"
>
</el-table-column>
<el-table-column
prop=
"status"
label=
"状态"
width=
"150"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.status==1"
class=
"f-green"
>
上架
</span>
<span
v-else-if=
"scope.row.status==3"
>
下架
</span>
</
template
>
</el-table-column>
</el-table>
<el-pagination
layout=
"prev, pager, next,jumper"
:page-size=
"limit"
:total=
"total"
@
current-change=
"handleCurrentChange"
:current-page=
"page"
>
</el-pagination>
</div>
<!--修改库存弹窗-->
<el-dialog
title=
"修改库存"
:visible
.
sync=
"dialogVisible"
width=
"800px"
>
...
...
@@ -175,30 +186,37 @@
TableColumn
,
Message
,
MessageBox
,
Dialog
Dialog
,
Pagination
,
popover
}
from
'element-ui'
Vue
.
use
(
Button
).
use
(
Form
).
use
(
Select
).
use
(
Option
).
use
(
Input
).
use
(
FormItem
).
use
(
Dialog
)
Vue
.
use
(
DatePicker
).
use
(
Dropdown
).
use
(
DropdownMenu
).
use
(
DropdownItem
).
use
(
TableColumn
).
use
(
Table
)
Vue
.
use
(
Button
).
use
(
Form
).
use
(
Select
).
use
(
Option
).
use
(
Input
).
use
(
FormItem
).
use
(
Dialog
)
.
use
(
popover
)
Vue
.
use
(
DatePicker
).
use
(
Dropdown
).
use
(
DropdownMenu
).
use
(
DropdownItem
).
use
(
TableColumn
).
use
(
Table
)
.
use
(
Pagination
)
export
default
{
name
:
"list"
,
data
()
{
return
{
total
:
0
,
limit
:
1
,
page
:
1
,
dialogVisible
:
false
,
dialogVisible2
:
false
,
formInline
:
{
goods_name
:
''
,
status
:
''
,
brand
:
''
,
date
:
''
brand_id
:
''
,
date
:
''
,
},
multipleSelection
:
[],
updateKc
:
""
,
updateHq
:
""
,
updateHqdl
:
""
,
updateHqdldw
:
"天"
,
updateHqhk
:
""
,
updateHqhkdw
:
"天"
,
updateHqdl
:
""
,
updateHqdldw
:
"天"
,
updateHqhk
:
""
,
updateHqhkdw
:
"天"
,
huoqidata
:
[{
"id"
:
318
,
"inquiry_sn"
:
"X2021050609556"
,
...
...
@@ -269,11 +287,37 @@
},
watch
:
{},
created
()
{
this
.
getData
()
},
computed
:
{},
methods
:
{
getData
()
{
this
.
$http
(
'get'
,
"/api/sku/list"
,
{
page
:
this
.
page
,
limit
:
this
.
limit
,
status
:
this
.
formInline
.
status
,
brand_id
:
this
.
formInline
.
brand_id
,
action_time
:
this
.
formInline
.
date
[
0
],
end_time
:
this
.
formInline
.
date
[
1
]
}).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
this
.
tableData
=
res
.
data
.
list
||
[];
this
.
total
=
res
.
data
.
count
||
0
;
}
else
{
Message
(
res
.
err_msg
);
}
})
},
onSubmit
()
{
this
.
page
=
1
;
this
.
getData
();
},
handleCurrentChange
(
val
)
{
this
.
page
=
val
;
this
.
getData
();
},
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
;
console
.
log
(
this
.
multipleSelection
)
...
...
@@ -294,14 +338,12 @@
type
:
'error'
})
.
then
(
_
=>
{
.
then
(
()
=>
{
done
();
})
.
catch
(
_
=>
{});
},
onSubmit
()
{
console
.
log
(
'submit!'
);
.
catch
(()
=>
{});
}
},
components
:
{
Menu
...
...
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