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
ea10fd35
authored
Aug 12, 2024
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
移动端--拣货--按货品拣货,拣货任务,增加库存查询按钮及弹窗。
parent
a534116a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
79 additions
and
13 deletions
assets/css/picking/sort.scss
pages/picking/sort.vue
util/api.js
assets/css/picking/sort.scss
View file @
ea10fd35
...
...
@@ -78,6 +78,16 @@
margin-bottom
:
15rpx
;
flex-wrap
:
wrap
;
border
:
1px
solid
transparent
;
.checkStock
{
position
:
absolute
;
right
:
110rpx
;
top
:
5rpx
;
font-size
:
17rpx
;
color
:
#1969f9
;
border
:
1px
solid
#f0f0f2
;
width
:
75rpx
;
height
:
40rpx
;
}
.pick_type_val
{
position
:
absolute
;
right
:
50rpx
;
...
...
pages/picking/sort.vue
View file @
ea10fd35
...
...
@@ -61,6 +61,7 @@
<
template
v-if=
"curr == 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] }">
<text
class=
"checkStock row rowCenter verCenter"
@
click=
"checkStockPop(item.stock_in_batch_sn)"
>
查库存
</text>
<text
class=
"pick_type_val row rowCenter verCenter"
v-if=
"item.pick_type_val"
>
{{
item
.
pick_type_val
}}
</text>
<view
class=
"check-box-icon"
@
click=
"filterChange(index)"
v-if=
"is_batch_active"
></view>
<view
class=
"input-box row verCenter"
>
...
...
@@ -622,11 +623,43 @@
</view>
<view
class=
"desc"
>
该货品需拆出部分拣货并重贴标签,建议单个拣货!
</view>
<view
class=
"button-group"
>
<view
class=
"button-left"
@
click=
"close()"
>
关闭提醒
</view>
<view
class=
"button-right"
@
click=
"showDrawer(1, pick_data[0])"
>
单个拣货
</view>
<view
class=
"button-left"
@
click=
"close()"
>
关闭
</view>
</view>
</view>
</uni-popup>
<!-- 查库存 -->
<uni-popup
ref=
"checkStockPop"
type=
"dialog"
>
<view
class=
"batchNotification column rowCenter verCente"
style=
"padding: 20rpx 20rpx 0 20rpx;"
>
<view
class=
"text row verCente"
>
<text
class=
"t1"
>
入库批次号:
</text>
<text
class=
"t2"
>
{{stockInfoByBatchSn.stock_in_batch_sn}}
</text>
</view>
<view
class=
"text row verCente"
>
<text
class=
"t1"
>
货品名称:
</text>
<text
class=
"t2"
>
{{stockInfoByBatchSn.goods_name}}
</text>
</view>
<view
class=
"text row verCente"
>
<text
class=
"t1"
>
标准品牌:
</text>
<text
class=
"t2"
>
{{stockInfoByBatchSn.brand_name}}
</text>
</view>
<view
class=
"text row verCente"
>
<text
class=
"t1"
>
库存总数:
</text>
<text
class=
"t2"
>
{{stockInfoByBatchSn.total_qty}}
</text>
</view>
<view
class=
"text row verCente"
>
<text
class=
"t1"
>
可用数量:
</text>
<text
class=
"t2"
>
{{stockInfoByBatchSn.useable_qty}}
</text>
</view>
<view
class=
"text row verCente"
>
<text
class=
"t1"
>
锁库数量:
</text>
<text
class=
"t2"
>
{{stockInfoByBatchSn.lock_qty}}
</text>
</view>
<view
class=
"button-group"
style=
"position: static;"
>
<view
class=
"button-left"
@
click=
"close()"
>
关闭
</view>
</view>
</view>
</uni-popup>
</view>
</template>
...
...
@@ -693,7 +726,8 @@
recheck_num
:
''
,
print_language
:
''
,
//非自营仓打印标签 1中文,2英文
from_type
:
1
//固定
}
},
stockInfoByBatchSn
:
{}
};
},
onNavigationBarButtonTap
(
e
)
{
...
...
@@ -995,7 +1029,8 @@
* 拆货提醒关闭
*/
close
()
{
this
.
$refs
.
message
.
close
()
this
.
$refs
.
message
.
close
();
this
.
$refs
.
checkStockPop
.
close
();
},
/**
* 找出false对应的下标
...
...
@@ -1449,6 +1484,23 @@
});
},
/**
* 查库存
*/
checkStockPop
(
stock_in_batch_sn
)
{
this
.
request
(
API
.
getStockInfoByBatchSn
,
'POST'
,
{
stock_in_batch_sn
:
stock_in_batch_sn
},
true
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
stockInfoByBatchSn
=
res
.
data
;
this
.
stockInfoByBatchSn
.
stock_in_batch_sn
=
stock_in_batch_sn
;
this
.
$refs
.
checkStockPop
.
open
(
'center'
)
}
else
{
uni
.
showToast
({
title
:
res
.
msg
,
icon
:
'none'
});
}
});
},
/**
* 再次获取焦点
*/
clearInputAndFocus
()
{
...
...
util/api.js
View file @
ea10fd35
//
const API_BASE_USER = 'http://user.liexindev.net'; //用户系统
//
const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统
//
const API_BASE = 'http://wms.liexindev.net'; //WMS系统
//
const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统
const
API_BASE_USER
=
'http://user.liexindev.net'
;
//用户系统
const
API_BASE_PUR
=
'http://pur.liexindev.net'
;
//采购系统
const
API_BASE
=
'http://wms.liexindev.net'
;
//WMS系统
const
API_BASE_OSS
=
'http://image.liexindev.net'
;
//oss系统
const
API_BASE_USER
=
'https://user.ichunt.net'
;
//用户系统
const
API_BASE_PUR
=
'https://purchase.ichunt.net'
;
//采购系统
const
API_BASE
=
'https://wms.ichunt.net'
;
//WMS系统
const
API_BASE_OSS
=
'https://image.ichunt.net'
;
//oss系统
//
const API_BASE_USER = 'https://user.ichunt.net'; //用户系统
//
const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统
//
const API_BASE = 'https://wms.ichunt.net'; //WMS系统
//
const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
const
API
=
{
...
...
@@ -396,7 +396,11 @@ const API = {
/**
* 操作已看货
* */
watchStatusAct
:
API_BASE
+
'/api/h5/stockIn/watchStatusAct'
watchStatusAct
:
API_BASE
+
'/api/h5/stockIn/watchStatusAct'
,
/**
* 查看库存
* */
getStockInfoByBatchSn
:
API_BASE
+
'/api/h5/stockIn/getStockInfoByBatchSn'
}
...
...
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