Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsApp
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
b833b6b5
authored
Dec 13, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
盘点操作
parent
f48d4497
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
7 deletions
assets/css/stocktake/record.scss
pages/stocktake/operate.vue
pages/stocktake/record.vue
assets/css/stocktake/record.scss
View file @
b833b6b5
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
padding-bottom
:
100rpx
;
padding-bottom
:
100rpx
;
.box
{
.box
{
position
:
relative
;
position
:
relative
;
padding
:
15px
17rpx
18
rpx
17rpx
;
padding
:
15px
17rpx
37
rpx
17rpx
;
background
:
#ffffff
;
background
:
#ffffff
;
box-shadow
:
0px
3rpx
3rpx
0px
rgba
(
198
,
199
,
204
,
0
.3
);
box-shadow
:
0px
3rpx
3rpx
0px
rgba
(
198
,
199
,
204
,
0
.3
);
border-radius
:
10rpx
;
border-radius
:
10rpx
;
...
...
pages/stocktake/operate.vue
View file @
b833b6b5
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
<!-- 待盘点任务数 -->
<!-- 待盘点任务数 -->
<view
class=
"total row verCenter"
style=
"margin-top: 15rpx;"
>
<view
class=
"total row verCenter"
style=
"margin-top: 15rpx;"
>
<text
class=
"t1"
>
待盘点任务数:
</text>
<text
class=
"t1"
>
待盘点任务数:
</text>
<text
class=
"t2"
>
{{
list.length
}}
</text>
<text
class=
"t2"
>
{{
total
}}
</text>
</view>
</view>
<!-- 列表 -->
<!-- 列表 -->
<view
class=
"list row bothSide"
v-if=
"list.length > 0"
>
<view
class=
"list row bothSide"
v-if=
"list.length > 0"
>
...
@@ -324,6 +324,7 @@
...
@@ -324,6 +324,7 @@
input_flag
:
false
,
//库位
input_flag
:
false
,
//库位
input_stock_in_batch_sn
:
false
,
//入库批次号
input_stock_in_batch_sn
:
false
,
//入库批次号
index
:
0
,
index
:
0
,
total
:
0
,
//待盘点任务数
array
:
[
'库位'
],
array
:
[
'库位'
],
filterArr
:
[
'全部'
,
'已盘完'
,
'未盘完'
],
filterArr
:
[
'全部'
,
'已盘完'
,
'未盘完'
],
filter_list
:
[],
//筛选已选中的列表
filter_list
:
[],
//筛选已选中的列表
...
@@ -331,7 +332,7 @@
...
@@ -331,7 +332,7 @@
indexFilter
:
0
,
indexFilter
:
0
,
array_batch_sn
:
[
'入库批次号'
,
'货品名称'
,
'旧标签'
],
array_batch_sn
:
[
'入库批次号'
,
'货品名称'
,
'旧标签'
],
index_batch_sn
:
0
,
index_batch_sn
:
0
,
stocktake_qty
:
''
,
stocktake_qty
:
''
,
//盘点数量
list
:
[],
list
:
[],
page
:
1
,
page
:
1
,
limit
:
50
,
limit
:
50
,
...
@@ -394,7 +395,8 @@
...
@@ -394,7 +395,8 @@
return
result
;
return
result
;
},
},
/**
/**
* @param {Object} data
* 打开弹窗
* @param {Object} data
* @param {Object} type 1 选择详情 2 补打入库标签
* @param {Object} type 1 选择详情 2 补打入库标签
*/
*/
showDrawer
(
data
,
type
)
{
showDrawer
(
data
,
type
)
{
...
@@ -403,9 +405,9 @@
...
@@ -403,9 +405,9 @@
this
.
$refs
.
showRight
.
open
();
this
.
$refs
.
showRight
.
open
();
this
.
detail
=
data
;
this
.
detail
=
data
;
if
(
data
.
is_stocktake
==
0
)
{
if
(
data
.
is_stocktake
==
0
)
{
this
.
stocktake_qty
=
''
;
this
.
stocktake_qty
=
data
.
stock_qty
;
//需要盘点的数量
}
else
{
}
else
{
this
.
stocktake_qty
=
data
.
stocktake_qty
;
this
.
stocktake_qty
=
data
.
stocktake_qty
;
//已盘点数量
}
}
}
else
if
(
type
==
2
)
{
}
else
if
(
type
==
2
)
{
//补打入库标签
//补打入库标签
...
@@ -566,6 +568,7 @@
...
@@ -566,6 +568,7 @@
getData
()
{
getData
()
{
this
.
request
(
API
.
stocktakeOperateList
,
'POST'
,
{
page
:
this
.
page
,
limit
:
this
.
limit
,
...
this
.
searchParams
},
false
).
then
(
res
=>
{
this
.
request
(
API
.
stocktakeOperateList
,
'POST'
,
{
page
:
this
.
page
,
limit
:
this
.
limit
,
...
this
.
searchParams
},
false
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
this
.
total
=
res
.
data
.
total
;
uni
.
setNavigationBarTitle
({
uni
.
setNavigationBarTitle
({
title
:
this
.
stocktake_sn
title
:
this
.
stocktake_sn
});
});
...
@@ -634,11 +637,13 @@
...
@@ -634,11 +637,13 @@
this
.
getData
();
this
.
getData
();
this
.
closeDrawer
();
this
.
closeDrawer
();
//入库批次号重新获取焦点
this
.
is_focus
=
false
;
this
.
is_focus
=
false
;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
//清空入库批次号,货品名称,旧标签
this
.
searchParams
.
stock_in_batch_sn
=
''
;
this
.
searchParams
.
stock_in_batch_sn
=
''
;
this
.
searchParams
.
goods_name
=
''
;
this
.
searchParams
.
goods_name
=
''
;
this
.
is_focus
=
true
;
this
.
is_focus
=
true
;
//再次获取焦点
},
500
);
},
500
);
},
2000
);
},
2000
);
}
else
{
}
else
{
...
...
pages/stocktake/record.vue
View file @
b833b6b5
<
template
>
<
template
>
<view
class=
"stocktake-record"
>
<view
class=
"stocktake-record"
>
<!-- 搜索 -->
<view
class=
"search-box row bothSide verCenter"
>
<view
class=
"search-box row bothSide verCenter"
>
<view
class=
"sn row rowCenter verCenter"
>
<view
class=
"sn row rowCenter verCenter"
>
<picker
@
change=
"bindPickerChange($event, 1)"
:value=
"index"
:range=
"array"
>
<picker
@
change=
"bindPickerChange($event, 1)"
:value=
"index"
:range=
"array"
>
...
@@ -22,6 +23,7 @@
...
@@ -22,6 +23,7 @@
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput()"
v-if=
"input_flag"
></text>
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput()"
v-if=
"input_flag"
></text>
</view>
</view>
</view>
</view>
<!-- 列表 -->
<view
class=
"list"
v-if=
"list.length > 0"
>
<view
class=
"list"
v-if=
"list.length > 0"
>
<view
class=
"box row"
v-for=
"(item, index) in list"
:key=
"index"
:class=
"{ curr: filter_list[index] }"
>
<view
class=
"box row"
v-for=
"(item, index) in list"
:key=
"index"
:class=
"{ curr: filter_list[index] }"
>
<view
class=
"check-box-icon"
@
click=
"filterChange(index)"
></view>
<view
class=
"check-box-icon"
@
click=
"filterChange(index)"
></view>
...
@@ -93,9 +95,18 @@
...
@@ -93,9 +95,18 @@
<text
class=
"label"
>
盘点数量:
</text>
<text
class=
"label"
>
盘点数量:
</text>
<text
class=
"tt"
>
{{ item.stocktake_qty }}
</text>
<text
class=
"tt"
>
{{ item.stocktake_qty }}
</text>
</view>
</view>
<view
class=
"input-box row"
>
<text
class=
"label"
>
盘点人:
</text>
<text
class=
"tt"
>
{{ item.stocktake_user }}
</text>
</view>
<view
class=
"input-box row"
>
<text
class=
"label"
>
盘点时间:
</text>
<text
class=
"tt"
>
{{ item.stocktake_time }}
</text>
</view>
<
template
v-if=
"item.stocktake_status == 3"
>
<
template
v-if=
"item.stocktake_status == 3"
>
<view
class=
"btn row rowCenter verCenter"
@
click=
"showDrawer(item, 1)"
>
修改
</view>
<view
class=
"btn row rowCenter verCenter"
@
click=
"showDrawer(item, 1)"
>
修改
</view>
</
template
>
</
template
>
<view
class=
"btn row rowCenter verCenter"
@
click=
"showDrawer(item, 1)"
>
修改
</view>
</view>
</view>
</view>
</view>
<!-- 无数据展示 -->
<!-- 无数据展示 -->
...
...
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