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
a3fbc118
authored
May 10, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
货品上
parent
82f62083
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
106 additions
and
39 deletions
assets/css/stockRecheck/sort.scss
pages/putaway/packSingle.vue
pages/putaway/single.vue
pages/stockRecheck/sort.vue
util/api.js
assets/css/stockRecheck/sort.scss
View file @
a3fbc118
...
...
@@ -59,11 +59,18 @@
color
:
#c6c7cc
;
}
}
.box-info
{
margin-bottom
:
10rpx
;
.title
{
font-size
:
18rpx
;
color
:
#292b33
;
font-weight
:
bold
;
margin-bottom
:
10rpx
;
}
.info
{
color
:
#1969f9
;
font-size
:
22rpx
;
margin-right
:
16rpx
;
}
}
}
.fix-btn
{
...
...
@@ -482,4 +489,54 @@
}
}
}
&
.box-drawer
{
.box-list
{
margin-top
:
50rpx
;
.box-title
{
margin-bottom
:
18rpx
;
.t1
{
font-size
:
18rpx
;
color
:
#292b33
;
font-weight
:
bold
;
}
.uni-input-show
{
font-size
:
20rpx
;
color
:
#292b33
;
font-weight
:
bold
;
}
.uni-arrow
{
width
:
14rpx
;
height
:
9rpx
;
background
:
url('https://img.ichunt.com/images/ichunt/202304/10/e4c72319ad41ce1425f71cc6ec35f111.png')
no-repeat
center
;
background-size
:
contain
;
margin-left
:
12rpx
;
}
}
.box-row
{
margin-bottom
:
10rpx
;
.text
{
flex
:
0
0
20%
;
color
:
#484b59
;
font-size
:
22rpx
;
}
}
.box-wrap
{
padding
:
18rpx
;
background
:
#ffffff
;
box-shadow
:
0px
3rpx
3rpx
0px
rgba
(
198
,
199
,
204
,
0
.3
);
border-radius
:
10rpx
;
border
:
1px
solid
#c6c7cc
;
margin-bottom
:
15rpx
;
.uni-input
{
height
:
55rpx
;
background
:
#ffffff
;
border-radius
:
10rpx
;
border
:
1px
solid
#1969f9
;
text-indent
:
15rpx
;
font-size
:
16rpx
;
margin-right
:
10rpx
;
}
}
}
}
}
pages/putaway/packSingle.vue
View file @
a3fbc118
...
...
@@ -331,7 +331,7 @@ export default {
}
if
(
!
this
.
is_submit
)
{
uni
.
showToast
({
title
:
'请输入合适库位
s
'
,
title
:
'请输入合适库位'
,
icon
:
'error'
});
return
false
;
...
...
pages/putaway/single.vue
View file @
a3fbc118
...
...
@@ -97,17 +97,14 @@
</view>
<view
class=
"form-input"
>
<view
class=
"input-title"
><text
class=
"input-title-t1"
>
库位:
</text></view>
<view
class=
"search row bothSide verCenter"
style=
"width: 100%;"
>
<text
class=
"iconfont icon-juxing1"
></text>
<picker
@
change=
"bindPickerChange($event, 1)"
:value=
"indexPosition"
:range=
"position"
:range-key=
"'name'"
style=
"width: 100%;height: 100%;"
>
<view
class=
"row verCenter bothSide wrap"
style=
"width: 100%;height: 55rpx;"
>
<view
class=
"uni-input row verCenter"
>
{{
indexPosition
==
-
1
?
'请选择库位'
:
position
[
indexPosition
].
name
}}
</view>
<view
class=
"uni-arrow"
></view>
</view>
</picker>
</view>
<view
class=
"input-box"
><input
:class=
"
{ 'error-style': !is_submit }" type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入库位编码" v-model="formParams.position_code" @input="inputPositionCodeChange()" />
</view>
</view>
<view
class=
"bor"
></view>
<view
class=
"tip-box row verCenter"
v-if=
"workingRule"
>
<text
class=
"iconfont icon-a-juxing4"
></text>
<text
class=
"t1"
>
{{
workingRuleList
.
prefix
}}{{
workingRuleList
.
execute_type_val
}}
库位:
</text>
<text
class=
"t2"
>
{{
workingRule
}}
</text>
</view>
<view
class=
"field-item row"
>
<view
class=
"item row verCenter"
>
<text
class=
"label"
>
销 售 员:
</text>
...
...
@@ -123,11 +120,6 @@
</view>
</view>
<view
class=
"bor"
></view>
<view
class=
"tip-box row verCenter"
v-if=
"workingRule"
>
<text
class=
"iconfont icon-a-juxing4"
></text>
<text
class=
"t1"
>
{{
workingRuleList
.
prefix
}}
推荐库位:
</text>
<text
class=
"t2"
>
{{
workingRule
}}
</text>
</view>
<view
class=
"field-item row"
>
<view
class=
"item row verCenter"
>
<text
class=
"label"
>
理货时间:
</text>
...
...
@@ -139,7 +131,7 @@
</view>
</view>
</view>
<view
class=
"fix-btn row verCenter"
><view
class=
"btn1 row rowCenter verCenter"
@
click=
"stockShelfByBatchSnAction()"
>
上 架
</view></view>
<view
class=
"fix-btn row verCenter"
><view
class=
"btn1 row rowCenter verCenter"
:class=
"
{ 'btn-disabled': !is_submit }"
@click="stockShelfByBatchSnAction()">上 架
</view></view>
</view>
</
template
>
...
...
@@ -150,19 +142,18 @@ import debounce from 'lodash/debounce';
export
default
{
data
()
{
return
{
is_submit
:
true
,
input_flag
:
false
,
index
:
0
,
array
:
[
'入库批次号'
],
detail
:
{},
indexPosition
:
-
1
,
position
:
[],
//库位
workingRuleList
:
{},
//,//推荐库位
workingRule
:
''
,
//推荐库位
searchParams
:
{
stock_in_batch_sn
:
''
//入库批次
},
formParams
:
{
position_
id
:
''
,
position_
code
:
''
,
//库位编码
qty_on_shelf
:
''
,
tally_id
:
''
}
...
...
@@ -201,7 +192,7 @@ export default {
* 监听上架数量
*/
inputNumChange
:
debounce
(
function
(
event
,
pending_shelf_qty
)
{
if
(
this
.
formParams
.
position_
id
&&
this
.
formParams
.
qty_on_shelf
)
{
if
(
this
.
formParams
.
position_
code
&&
this
.
formParams
.
qty_on_shelf
)
{
this
.
getWorkingRuleList
();
}
var
pending_shelf_qty
=
Number
(
pending_shelf_qty
);
...
...
@@ -210,17 +201,18 @@ export default {
this
.
formParams
.
qty_on_shelf
=
pending_shelf_qty
;
}
},
500
),
bindPickerChange
:
function
(
e
,
type
)
{
console
.
log
(
'picker发送选择改变,携带值为'
,
e
.
detail
.
value
);
if
(
type
==
1
)
{
this
.
indexPosition
=
e
.
detail
.
value
;
this
.
formParams
.
position_id
=
this
.
position
[
e
.
detail
.
value
].
value
;
if
(
this
.
formParams
.
position_id
&&
this
.
formParams
.
qty_on_shelf
)
{
/**
* 监听库位编码
*/
inputPositionCodeChange
:
debounce
(
function
(
event
)
{
this
.
getWhPositionList
()
;
if
(
this
.
formParams
.
position_code
&&
this
.
formParams
.
qty_on_shelf
)
{
this
.
getWorkingRuleList
();
}
}
else
{
},
500
),
bindPickerChange
:
function
(
e
,
type
)
{
console
.
log
(
'picker发送选择改变,携带值为'
,
e
.
detail
.
value
);
this
.
index
=
e
.
detail
.
value
;
}
},
/**
* 获取详情数据
...
...
@@ -229,8 +221,9 @@ export default {
this
.
request
(
API
.
getStockShelfInfoByBatchSn
,
'POST'
,
{
...
this
.
searchParams
},
false
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
detail
=
res
.
data
;
this
.
formParams
.
qty_on_shelf
=
res
.
data
.
pending_shelf_qty
;
this
.
formParams
.
tally_id
=
res
.
data
.
tally_id
;
this
.
getW
hPosition
List
();
this
.
getW
orkingRule
List
();
}
});
},
...
...
@@ -240,11 +233,9 @@ export default {
getWhPositionList
()
{
this
.
request
(
API
.
getWhPositionList
,
'POST'
,
{
warehouse_id
:
this
.
detail
.
warehouse_id
,
stock_in_type
:
this
.
detail
.
stock_in_type
},
false
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
position
=
res
.
data
.
list
.
map
(
function
(
item
)
{
return
{
value
:
item
.
id
,
name
:
item
.
position_code
};
var
position_code
=
this
.
formParams
.
position_code
;
this
.
is_submit
=
res
.
data
.
list
.
some
(
function
(
obj
)
{
return
obj
.
position_code
===
position_code
;
});
}
else
{
uni
.
showToast
({
...
...
@@ -268,7 +259,7 @@ export default {
if
(
res
.
code
===
0
)
{
if
(
res
.
data
.
list
.
length
>
0
)
{
this
.
workingRuleList
=
res
.
data
;
this
.
workingRule
=
res
.
data
.
list
.
map
(
item
=>
item
.
position_
nam
e
).
join
(
','
);
this
.
workingRule
=
res
.
data
.
list
.
map
(
item
=>
item
.
position_
cod
e
).
join
(
','
);
}
else
{
this
.
workingRuleList
=
''
;
this
.
workingRule
=
''
;
...
...
@@ -292,9 +283,16 @@ export default {
});
return
false
;
}
if
(
!
this
.
formParams
.
position_id
)
{
if
(
!
this
.
formParams
.
position_code
)
{
uni
.
showToast
({
title
:
'请输入库位编码'
,
icon
:
'error'
});
return
false
;
}
if
(
!
this
.
is_submit
)
{
uni
.
showToast
({
title
:
'请
选择
库位'
,
title
:
'请
输入合适
库位'
,
icon
:
'error'
});
return
false
;
...
...
pages/stockRecheck/sort.vue
View file @
a3fbc118
This diff is collapsed.
Click to expand it.
util/api.js
View file @
a3fbc118
...
...
@@ -230,7 +230,19 @@ const API = {
/**
* 库存查询
* */
searchStockList
:
API_BASE
+
'/api/h5/stockIn/searchStockList'
searchStockList
:
API_BASE
+
'/api/h5/stockIn/searchStockList'
,
/**
* 箱信息
* */
getPackList
:
API_BASE
+
'/api/stockRecheck/getPackList'
,
/**
* 箱配置信息
* */
getBoxConfigList
:
API_BASE
+
'/api/stockRecheck/getBoxConfigList'
,
/**
* 保存打包信息
* */
updatePackInfo
:
API_BASE
+
'/api/stockRecheck/updatePackInfo'
}
...
...
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