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
c52e66d5
authored
Dec 08, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
65cc8837
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
18 deletions
assets/css/putaway/index.scss
pages.json
pages/putaway/index.vue
pages/transfer/quick.vue
util/api.js
assets/css/putaway/index.scss
View file @
c52e66d5
...
...
@@ -133,7 +133,7 @@
left
:
0
;
z-index
:
999
;
.btn1
{
width
:
1
28
rpx
;
width
:
1
50
rpx
;
height
:
75rpx
;
background
:
#ffffff
;
.check-box-icon
{
...
...
@@ -155,7 +155,7 @@
}
}
.btn2
{
width
:
calc
(
100%
-
1
28
rpx
);
width
:
calc
(
100%
-
1
50
rpx
);
height
:
75rpx
;
background
:
#1969f9
;
font-size
:
23rpx
;
...
...
pages.json
View file @
c52e66d5
...
...
@@ -399,7 +399,8 @@
"navigationBarTextStyle"
:
"black"
,
"navigationBarTitleText"
:
"wms"
,
"navigationBarBackgroundColor"
:
"#FFFFFF"
,
"backgroundColor"
:
"#FFFFFF"
"backgroundColor"
:
"#FFFFFF"
,
"onReachBottomDistance"
:
100
},
"uniIdRouter"
:
{},
"condition"
:
{
//模式配置,仅开发期间生效
...
...
pages/putaway/index.vue
View file @
c52e66d5
...
...
@@ -98,6 +98,7 @@
<view
class=
"btn row rowCenter verCenter"
>
上架
</view>
</navigator>
</view>
<view
class=
"row rowCenter verCenter"
v-if=
"!hasMoreData && page > 1"
style=
"color: #919399;font-size: 16px;padding: 10px 0;flex: 0 0 100%;"
>
--已经到底了--
</view>
</view>
<!-- 无数据展示 -->
<view
class=
"no-date column rowCenter verCenter"
v-else
>
...
...
@@ -107,7 +108,7 @@
<view
class=
"fix-btn row verCenter"
>
<view
class=
"btn1 row rowCenter verCenter"
@
click=
"allChnage()"
>
<text
class=
"check-box-icon"
:class=
"{ curr: filter_list.length > 0 && filter_list.length == filter_id.length }"
></text>
<text
class=
"text
"
>
{{ filter_id.length == 0 ? '全选'
: filter_id.length }}
</text>
<text
class=
"text
row rowCenter verCenter"
>
{{ filter_id.length == 0 ? totalText
: filter_id.length }}
</text>
</view>
<view
class=
"btn2 row rowCenter verCenter"
@
click=
"showDrawer()"
>
一键上架
</view>
</view>
...
...
@@ -163,6 +164,7 @@
warehouse_id
:
''
,
stock_in_type
:
''
,
hasMoreData
:
true
,
//是否分页加载
totalText
:
'全选'
,
//当前显示的数量
formParams
:
{
position_code
:
''
},
...
...
@@ -296,19 +298,29 @@
this
.
$set
(
this
.
filter_list
,
index
,
(
this
.
filter_list
[
index
]
=
!
this
.
filter_list
[
index
]));
let
filter_arr
=
this
.
findIndex
(
this
.
filter_list
,
true
);
this
.
filter_id
=
filter_arr
.
map
(
i
=>
this
.
list
[
i
].
tally_id
);
//开启了批量搜索,如果取消勾选则删除
if
(
this
.
is_batch
)
{
if
(
!
this
.
filter_list
[
index
])
{
this
.
history_id
.
splice
(
index
,
1
);
this
.
searchParams
.
search_keyword
=
this
.
history_id
.
join
(
','
);
//history_id对应的索引跟搜索的list的索引相反,要根据入库批次号来删除
var
searchItem
=
this
.
list
[
index
].
stock_in_batch_sn
;
//先找出对应的入库批次号对应的index
var
sortIndex
=
this
.
history_id
.
indexOf
(
searchItem
);
//再找出对入库批次号在history_id对应的index
this
.
history_id
.
splice
(
sortIndex
,
1
);
//找到真实对应的index,然后在删除
this
.
searchParams
.
search_keyword
=
this
.
history_id
.
join
(
','
);
//最后赋值搜索值
//搜索之后添加选择状态
this
.
getData
(
data
=>
{
if
(
data
.
length
>
0
)
{
const
list
=
data
;
list
.
forEach
((
item
,
index
)
=>
{
this
.
resetChange
();
//先置空
this
.
list
=
data
;
//恢复搜索的结果
//如果搜索值的参数为空,就不执行选中操作
if
(
this
.
searchParams
.
search_keyword
)
{
this
.
list
.
forEach
((
item
,
index
)
=>
{
this
.
filterChange
(
index
);
});
}
else
{
//要注意这里要实时更新统计数量
this
.
totalText
=
'全选 '
+
'('
+
this
.
list
.
length
+
')'
}
this
.
search_keyword
=
''
;
}
});
...
...
@@ -450,9 +462,11 @@
this
.
request
(
API
.
getPendingShelfByBatchSn
,
'POST'
,
{
page
:
this
.
page
,
limit
:
this
.
limit
,
...
this
.
searchParams
},
true
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
data
.
total
>
0
)
{
this
.
total
=
res
.
data
.
total
;
//分页总数
this
.
hasMoreData
=
true
;
this
.
list
=
this
.
list
.
concat
(
res
.
data
.
list
);
this
.
filter_list
=
createArray
(
this
.
list
.
length
,
false
);
this
.
totalText
=
'全选 '
+
'('
+
this
.
list
.
length
+
')'
typeof
callback
==
'function'
&&
callback
(
res
.
data
.
list
,
res
.
data
.
msg
);
}
else
{
this
.
hasMoreData
=
false
;
...
...
pages/transfer/quick.vue
View file @
c52e66d5
...
...
@@ -337,13 +337,14 @@
this
.
searchParams
.
stock_in_batch_sn
=
''
;
this
.
list
=
[];
this
.
is_focus
=
false
;
this
.
formParams
.
position_code
=
''
;
//清除目标库位
setTimeout
(()
=>
{
this
.
formParams
.
position_code
=
''
;
//清除目标库位
this
.
formParams
.
stock_id
=
''
;
//清除表单的信息
this
.
formParams
.
transfer_qty
=
''
;
//清除表单的信息
this
.
searchParams
.
stock_in_batch_sn
=
''
;
//清除入库批次号 旧标签
this
.
is_focus
=
true
;
},
5
00
);
},
20
00
);
},
2000
)
}
else
{
this
.
is_submit
=
false
;
...
...
util/api.js
View file @
c52e66d5
//
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
=
{
...
...
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