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
837882a9
authored
Aug 09, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
根据入库的销售明细ID,查询该销售单是否需要打印客户标签,“是”则在理货操作页面的【D / C】输入框提示:建议填写批次
parent
4e3e283c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
6 deletions
pages/picking/sort.vue
pages/tallyReceive/operate.vue
util/api.js
pages/picking/sort.vue
View file @
837882a9
...
@@ -242,9 +242,13 @@
...
@@ -242,9 +242,13 @@
<text
class=
"tt"
>
{{ detail.goods_unit }}
</text>
<text
class=
"tt"
>
{{ detail.goods_unit }}
</text>
</view>
</view>
</view>
</view>
<view
class=
"form-input"
>
<view
class=
"form-input"
style=
"margin-bottom: 0;"
>
<view
class=
"input-title"
><text
class=
"input-title-t1"
>
拣货数量:
</text></view>
<view
class=
"input-title"
><text
class=
"input-title-t1"
>
拣货数量:
</text></view>
<view
class=
"input-box"
><input
type=
"number"
class=
"uni-input"
placeholder-style=
"color:#919399"
placeholder=
"请输入"
v-model=
"formParams.pick_qty"
@
input=
"handleInputNumber($event, detail.lock_qty - detail.pick_qty)"
/></view>
<view
class=
"input-box"
><input
type=
"number"
class=
"uni-input"
placeholder-style=
"color:#919399"
placeholder=
"请输入拣货数量"
v-model=
"formParams.pick_qty"
@
input=
"handleInputNumber($event, detail.lock_qty - detail.pick_qty)"
/></view>
</view>
<view
class=
"form-input"
>
<view
class=
"input-title"
><text
class=
"input-title-t1"
>
拣货备注:
</text></view>
<view
class=
"input-box"
><input
type=
"text"
class=
"uni-input"
placeholder-style=
"color:#919399"
placeholder=
"请输入拣货备注"
v-model=
"formParams.pick_remark"
/></view>
</view>
</view>
<view
class=
"bor"
></view>
<view
class=
"bor"
></view>
<view
class=
"field-item row"
>
<view
class=
"field-item row"
>
...
@@ -309,6 +313,10 @@
...
@@ -309,6 +313,10 @@
</view>
</view>
</view>
</view>
<view
class=
"bor"
></view>
<view
class=
"bor"
></view>
<view
class=
"form-input"
>
<view
class=
"input-title"
><text
class=
"input-title-t1"
>
拣货备注:
</text></view>
<view
class=
"input-box"
><input
type=
"text"
class=
"uni-input"
placeholder-style=
"color:#919399"
placeholder=
"请输入拣货备注"
v-model=
"formParams.pick_remark"
/></view>
</view>
<view
class=
"h2 row bothSide verCenter"
style=
"margin-top: 25rpx;"
>
<view
class=
"h2 row bothSide verCenter"
style=
"margin-top: 25rpx;"
>
<view>
<view>
<text>
拣货图片:
</text>
<text>
拣货图片:
</text>
...
@@ -420,6 +428,10 @@
...
@@ -420,6 +428,10 @@
</view>
</view>
</view>
</view>
<view
class=
"bor"
></view>
<view
class=
"bor"
></view>
<view
class=
"form-input"
>
<view
class=
"input-title"
><text
class=
"input-title-t1"
>
拣货备注:
</text></view>
<view
class=
"input-box"
><input
type=
"text"
class=
"uni-input"
placeholder-style=
"color:#919399"
placeholder=
"请输入拣货备注"
v-model=
"formParams.pick_remark"
/></view>
</view>
<view
class=
"h2 row bothSide verCenter"
style=
"margin-top: 25rpx;"
>
<view
class=
"h2 row bothSide verCenter"
style=
"margin-top: 25rpx;"
>
<view>
<view>
<text>
拣货图片:
</text>
<text>
拣货图片:
</text>
...
@@ -486,7 +498,8 @@ export default {
...
@@ -486,7 +498,8 @@ export default {
container_sn
:
''
container_sn
:
''
},
},
formParams
:
{
formParams
:
{
pick_qty
:
''
pick_qty
:
''
,
pick_remark
:
''
}
}
};
};
},
},
...
@@ -920,7 +933,7 @@ export default {
...
@@ -920,7 +933,7 @@ export default {
var
pic_ids
=
this
.
image_list
.
map
(
item
=>
{
var
pic_ids
=
this
.
image_list
.
map
(
item
=>
{
return
item
.
pic_id
;
return
item
.
pic_id
;
});
});
this
.
request
(
API
.
pick
,
'POST'
,
{
lock_id
:
lock_id
,
pick_qty
:
pick_qty
,
stock_out_item_id
:
stock_out_item_id
,
pic_ids
:
pic_ids
.
join
(
','
)
},
true
).
then
(
res
=>
{
this
.
request
(
API
.
pick
,
'POST'
,
{
lock_id
:
lock_id
,
pick_qty
:
pick_qty
,
stock_out_item_id
:
stock_out_item_id
,
pic_ids
:
pic_ids
.
join
(
','
)
,
pick_remark
:
this
.
formParams
.
pick_remark
},
true
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'拣货成功'
,
title
:
'拣货成功'
,
...
@@ -965,7 +978,7 @@ export default {
...
@@ -965,7 +978,7 @@ export default {
flag
=
false
;
flag
=
false
;
}
}
this
.
request
(
API
.
makeMultiPickingFinish
,
'POST'
,
{
stock_out_id
:
this
.
searchParams
.
stock_out_id
,
lock_ids
:
lock_ids
,
pic_ids
:
pic_ids
.
join
(
','
)
},
true
).
then
(
res
=>
{
this
.
request
(
API
.
makeMultiPickingFinish
,
'POST'
,
{
stock_out_id
:
this
.
searchParams
.
stock_out_id
,
lock_ids
:
lock_ids
,
pic_ids
:
pic_ids
.
join
(
','
)
,
pick_remark
:
this
.
formParams
.
pick_remark
},
true
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'拣货成功'
,
title
:
'拣货成功'
,
...
...
pages/tallyReceive/operate.vue
View file @
837882a9
...
@@ -144,7 +144,12 @@
...
@@ -144,7 +144,12 @@
<view
class=
"row bothSide verCenter input-box-wrap"
>
<view
class=
"row bothSide verCenter input-box-wrap"
>
<view>
<view>
<view
class=
"input-title"
><text
class=
"input-title-t2"
>
D / C:
</text></view>
<view
class=
"input-title"
><text
class=
"input-title-t2"
>
D / C:
</text></view>
<view
class=
"input-box"
><input
type=
"text"
class=
"uni-input"
placeholder-style=
"color:#919399"
placeholder=
"请输入D/C"
v-model=
"formParams.date_code"
/></view>
<
template
v-if=
"is_print"
>
<view
class=
"input-box"
><input
type=
"text"
class=
"uni-input"
placeholder-style=
"color:#EC7935"
placeholder=
"建议填写批次"
v-model=
"formParams.date_code"
/></view>
</
template
>
<
template
v-else
>
<view
class=
"input-box"
><input
type=
"text"
class=
"uni-input"
placeholder-style=
"color:#919399"
placeholder=
"请输入D/C"
v-model=
"formParams.date_code"
/></view>
</
template
>
</view>
</view>
<view>
<view>
<view
class=
"input-title"
>
<view
class=
"input-title"
>
...
@@ -205,6 +210,7 @@ import debounce from 'lodash/debounce';
...
@@ -205,6 +210,7 @@ import debounce from 'lodash/debounce';
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
is_print
:
false
,
//查询该销售单是否需要打印客户标签
coo
:
''
,
//产地
coo
:
''
,
//产地
is_submit
:
true
,
is_submit
:
true
,
stock_in_item_id
:
''
,
stock_in_item_id
:
''
,
...
@@ -450,6 +456,8 @@ export default {
...
@@ -450,6 +456,8 @@ export default {
uni
.
setNavigationBarTitle
({
uni
.
setNavigationBarTitle
({
title
:
res
.
data
.
list
[
0
].
stock_in_sn
+
'-理货'
title
:
res
.
data
.
list
[
0
].
stock_in_sn
+
'-理货'
});
});
this
.
getOrderIsPrintLabel
(
res
.
data
.
list
[
0
].
order_items_id
);
}
}
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
...
@@ -460,6 +468,21 @@ export default {
...
@@ -460,6 +468,21 @@ export default {
});
});
},
},
/**
/**
* 获取订单销售ID是否需要打印标签
*/
getOrderIsPrintLabel
(
order_items_id
)
{
this
.
request
(
API
.
getOrderIsPrintLabel
,
'GET'
,
{
order_items_id
:
order_items_id
},
false
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
is_print
=
res
.
data
.
is_print
==
0
?
false
:
true
;
}
else
{
uni
.
showToast
({
title
:
res
.
msg
,
icon
:
'error'
});
}
});
},
/**
* 获取容器列表数据
* 获取容器列表数据
*/
*/
getTallyContainer
()
{
getTallyContainer
()
{
...
...
util/api.js
View file @
837882a9
...
@@ -39,6 +39,10 @@ const API = {
...
@@ -39,6 +39,10 @@ const API = {
* */
* */
waitTallyReceiveList
:
API_BASE
+
'/api/stockIn/tallyReceive/waitTallyReceiveList'
,
waitTallyReceiveList
:
API_BASE
+
'/api/stockIn/tallyReceive/waitTallyReceiveList'
,
/**
/**
* 获取订单销售ID是否需要打印标签
* */
getOrderIsPrintLabel
:
API_BASE
+
'/api/stockIn/getOrderIsPrintLabel'
,
/**
* 修改理货容器
* 修改理货容器
* */
* */
changeTallyContainer
:
API_BASE
+
'/api/stockIn/tallyReceive/changeTallyContainer'
,
changeTallyContainer
:
API_BASE
+
'/api/stockIn/tallyReceive/changeTallyContainer'
,
...
...
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