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
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
110 additions
and
43 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 @@
...
@@ -59,11 +59,18 @@
color
:
#c6c7cc
;
color
:
#c6c7cc
;
}
}
}
}
.title
{
.box-info
{
font-size
:
18rpx
;
color
:
#292b33
;
font-weight
:
bold
;
margin-bottom
:
10rpx
;
margin-bottom
:
10rpx
;
.title
{
font-size
:
18rpx
;
color
:
#292b33
;
font-weight
:
bold
;
}
.info
{
color
:
#1969f9
;
font-size
:
22rpx
;
margin-right
:
16rpx
;
}
}
}
}
}
.fix-btn
{
.fix-btn
{
...
@@ -482,4 +489,54 @@
...
@@ -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 {
...
@@ -331,7 +331,7 @@ export default {
}
}
if
(
!
this
.
is_submit
)
{
if
(
!
this
.
is_submit
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'请输入合适库位
s
'
,
title
:
'请输入合适库位'
,
icon
:
'error'
icon
:
'error'
});
});
return
false
;
return
false
;
...
...
pages/putaway/single.vue
View file @
a3fbc118
...
@@ -97,17 +97,14 @@
...
@@ -97,17 +97,14 @@
</view>
</view>
<view
class=
"form-input"
>
<view
class=
"form-input"
>
<view
class=
"input-title"
><text
class=
"input-title-t1"
>
库位:
</text></view>
<view
class=
"input-title"
><text
class=
"input-title-t1"
>
库位:
</text></view>
<view
class=
"search row bothSide verCenter"
style=
"width: 100%;"
>
<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>
<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>
</view>
<view
class=
"bor"
></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=
"field-item row"
>
<view
class=
"item row verCenter"
>
<view
class=
"item row verCenter"
>
<text
class=
"label"
>
销 售 员:
</text>
<text
class=
"label"
>
销 售 员:
</text>
...
@@ -123,11 +120,6 @@
...
@@ -123,11 +120,6 @@
</view>
</view>
</view>
</view>
<view
class=
"bor"
></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=
"field-item row"
>
<view
class=
"item row verCenter"
>
<view
class=
"item row verCenter"
>
<text
class=
"label"
>
理货时间:
</text>
<text
class=
"label"
>
理货时间:
</text>
...
@@ -139,7 +131,7 @@
...
@@ -139,7 +131,7 @@
</view>
</view>
</view>
</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>
</view>
</
template
>
</
template
>
...
@@ -150,19 +142,18 @@ import debounce from 'lodash/debounce';
...
@@ -150,19 +142,18 @@ import debounce from 'lodash/debounce';
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
is_submit
:
true
,
input_flag
:
false
,
input_flag
:
false
,
index
:
0
,
index
:
0
,
array
:
[
'入库批次号'
],
array
:
[
'入库批次号'
],
detail
:
{},
detail
:
{},
indexPosition
:
-
1
,
position
:
[],
//库位
workingRuleList
:
{},
//,//推荐库位
workingRuleList
:
{},
//,//推荐库位
workingRule
:
''
,
//推荐库位
workingRule
:
''
,
//推荐库位
searchParams
:
{
searchParams
:
{
stock_in_batch_sn
:
''
//入库批次
stock_in_batch_sn
:
''
//入库批次
},
},
formParams
:
{
formParams
:
{
position_
id
:
''
,
position_
code
:
''
,
//库位编码
qty_on_shelf
:
''
,
qty_on_shelf
:
''
,
tally_id
:
''
tally_id
:
''
}
}
...
@@ -201,7 +192,7 @@ export default {
...
@@ -201,7 +192,7 @@ export default {
* 监听上架数量
* 监听上架数量
*/
*/
inputNumChange
:
debounce
(
function
(
event
,
pending_shelf_qty
)
{
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
();
this
.
getWorkingRuleList
();
}
}
var
pending_shelf_qty
=
Number
(
pending_shelf_qty
);
var
pending_shelf_qty
=
Number
(
pending_shelf_qty
);
...
@@ -210,17 +201,18 @@ export default {
...
@@ -210,17 +201,18 @@ export default {
this
.
formParams
.
qty_on_shelf
=
pending_shelf_qty
;
this
.
formParams
.
qty_on_shelf
=
pending_shelf_qty
;
}
}
},
500
),
},
500
),
/**
* 监听库位编码
*/
inputPositionCodeChange
:
debounce
(
function
(
event
)
{
this
.
getWhPositionList
();
if
(
this
.
formParams
.
position_code
&&
this
.
formParams
.
qty_on_shelf
)
{
this
.
getWorkingRuleList
();
}
},
500
),
bindPickerChange
:
function
(
e
,
type
)
{
bindPickerChange
:
function
(
e
,
type
)
{
console
.
log
(
'picker发送选择改变,携带值为'
,
e
.
detail
.
value
);
console
.
log
(
'picker发送选择改变,携带值为'
,
e
.
detail
.
value
);
if
(
type
==
1
)
{
this
.
index
=
e
.
detail
.
value
;
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
)
{
this
.
getWorkingRuleList
();
}
}
else
{
this
.
index
=
e
.
detail
.
value
;
}
},
},
/**
/**
* 获取详情数据
* 获取详情数据
...
@@ -229,8 +221,9 @@ export default {
...
@@ -229,8 +221,9 @@ export default {
this
.
request
(
API
.
getStockShelfInfoByBatchSn
,
'POST'
,
{
...
this
.
searchParams
},
false
).
then
(
res
=>
{
this
.
request
(
API
.
getStockShelfInfoByBatchSn
,
'POST'
,
{
...
this
.
searchParams
},
false
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
this
.
detail
=
res
.
data
;
this
.
detail
=
res
.
data
;
this
.
formParams
.
qty_on_shelf
=
res
.
data
.
pending_shelf_qty
;
this
.
formParams
.
tally_id
=
res
.
data
.
tally_id
;
this
.
formParams
.
tally_id
=
res
.
data
.
tally_id
;
this
.
getW
hPosition
List
();
this
.
getW
orkingRule
List
();
}
}
});
});
},
},
...
@@ -240,11 +233,9 @@ export default {
...
@@ -240,11 +233,9 @@ export default {
getWhPositionList
()
{
getWhPositionList
()
{
this
.
request
(
API
.
getWhPositionList
,
'POST'
,
{
warehouse_id
:
this
.
detail
.
warehouse_id
,
stock_in_type
:
this
.
detail
.
stock_in_type
},
false
).
then
(
res
=>
{
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
)
{
if
(
res
.
code
===
0
)
{
this
.
position
=
res
.
data
.
list
.
map
(
function
(
item
)
{
var
position_code
=
this
.
formParams
.
position_code
;
return
{
this
.
is_submit
=
res
.
data
.
list
.
some
(
function
(
obj
)
{
value
:
item
.
id
,
return
obj
.
position_code
===
position_code
;
name
:
item
.
position_code
};
});
});
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
...
@@ -268,7 +259,7 @@ export default {
...
@@ -268,7 +259,7 @@ export default {
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
if
(
res
.
data
.
list
.
length
>
0
)
{
if
(
res
.
data
.
list
.
length
>
0
)
{
this
.
workingRuleList
=
res
.
data
;
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
{
}
else
{
this
.
workingRuleList
=
''
;
this
.
workingRuleList
=
''
;
this
.
workingRule
=
''
;
this
.
workingRule
=
''
;
...
@@ -292,9 +283,16 @@ export default {
...
@@ -292,9 +283,16 @@ export default {
});
});
return
false
;
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
({
uni
.
showToast
({
title
:
'请
选择
库位'
,
title
:
'请
输入合适
库位'
,
icon
:
'error'
icon
:
'error'
});
});
return
false
;
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 = {
...
@@ -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