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
0c27ea9f
authored
Apr 27, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
理货备注
parent
60c62ffb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
20 deletions
pages/tallyReceive/index.vue
pages/tallyReceive/operate.vue
pages/tallyReceive/index.vue
View file @
0c27ea9f
...
...
@@ -74,7 +74,7 @@
<text
class=
"label"
>
待理货数量:
</text>
<text
class=
"ttt"
>
{{ item.wait_tally_qty }}
</text>
</view>
<navigator
class=
"btn-box row"
:url=
"'/pages/tallyReceive/operate?stock_in_item_id=' + item.stock_in_item_id"
hover-class=
"none"
><view
class=
"btn row rowCenter verCenter"
>
理货
</view></navigator>
<navigator
class=
"btn-box row"
:url=
"'/pages/tallyReceive/operate?stock_in_item_id=' + item.stock_in_item_id
+ '&stock_in_id=' + item.stock_in_id
"
hover-class=
"none"
><view
class=
"btn row rowCenter verCenter"
>
理货
</view></navigator>
</view>
</view>
<view
class=
"no-date column rowCenter verCenter"
v-else
>
...
...
@@ -197,7 +197,7 @@ export default {
watch
:
{
image_list
(
arr
)
{
if
(
arr
.
length
>
0
)
{
this
.
formParams
.
image_ids
=
JSON
.
stringify
(
arr
);
this
.
formParams
.
image_ids
=
arr
.
join
(
','
);
}
}
},
...
...
pages/tallyReceive/operate.vue
View file @
0c27ea9f
...
...
@@ -100,7 +100,7 @@
<text
class=
"input-title-t1"
>
*
</text>
<text
class=
"input-title-t2"
>
理货数量:
</text>
</view>
<view
class=
"input-box"
><input
type=
"text"
class=
"uni-input"
placeholder-style=
"color:#919399"
placeholder=
"请输入"
/></view>
<view
class=
"input-box"
><input
type=
"text"
class=
"uni-input"
placeholder-style=
"color:#919399"
placeholder=
"请输入
理货数量"
v-model=
"formParams.tally_qty
"
/></view>
</view>
<view
class=
"row verCenter"
style=
"flex: 0 0 278rpx;margin-top: 38rpx;"
>
<text
class=
"input-title-p1"
>
待理货数量:
</text>
...
...
@@ -110,17 +110,17 @@
<view
class=
"row bothSide verCenter input-box-wrap"
>
<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=
"请输入"
/></view>
<view
class=
"input-box"
><input
type=
"text"
class=
"uni-input"
placeholder-style=
"color:#919399"
placeholder=
"请输入
D/C"
v-model=
"formParams.date_code
"
/></view>
</view>
<view>
<view
class=
"input-title"
><text
class=
"input-title-t2"
>
产 地:
</text></view>
<view
class=
"input-box"
><input
type=
"text"
class=
"uni-input"
placeholder-style=
"color:#919399"
placeholder=
"请输入"
/></view>
<view
class=
"input-box"
><input
type=
"text"
class=
"uni-input"
placeholder-style=
"color:#919399"
placeholder=
"请输入
产 地"
v-model=
"formParams.coo
"
/></view>
</view>
</view>
<view
class=
"row bothSide verCenter input-box-wrap"
>
<view>
<view
class=
"input-title"
><text
class=
"input-title-t2"
>
其它批次属性:
</text></view>
<view
class=
"input-box"
><input
type=
"text"
class=
"uni-input"
placeholder-style=
"color:#919399"
placeholder=
"请输入"
/></view>
<view
class=
"input-box"
><input
type=
"text"
class=
"uni-input"
placeholder-style=
"color:#919399"
placeholder=
"请输入"
v-model=
"formParams.other_batch_attr"
/></view>
</view>
<view></view>
</view>
...
...
@@ -149,7 +149,7 @@
<text
class=
"tt"
>
整单照片
</text>
</view>
<view
class=
"h2"
>
理货备注:
</view>
<view
class=
"textarea-box"
><textarea
placeholder-style=
"color:#919399"
placeholder=
"请输入"
/></view>
<view
class=
"textarea-box"
><textarea
placeholder-style=
"color:#919399"
placeholder=
"请输入
理货备注"
v-model=
"formParams.tally_remark
"
/></view>
</view>
<view
class=
"fix-btn row verCenter"
>
<view
class=
"btn1 row rowCenter verCenter"
>
...
...
@@ -170,6 +170,7 @@ export default {
data
()
{
return
{
stock_in_item_id
:
''
,
stock_in_id
:
''
,
noexebshowFalg
:
true
,
//控制是否会触发生命周期
print_flag
:
true
,
//是否打印
input_flag
:
false
,
...
...
@@ -189,15 +190,18 @@ export default {
container_id
:
''
//容器
},
formParams
:
{
container_id
:
''
,
tally_remark
:
''
,
image_ids
:
''
,
is_print
:
1
tally_qty
:
''
,
//理货数量,
date_code
:
''
,
//D/C
coo
:
''
,
//产地
other_batch_attr
:
''
,
//其他批次属性
image_ids
:
[],
//图片
tally_remark
:
''
//理货备注
}
};
},
onLoad
(
options
)
{
this
.
stock_in_item_id
=
options
.
stock_in_item_id
||
''
;
this
.
stock_in_id
=
options
.
stock_in_id
||
''
;
},
onShow
()
{
this
.
getData
();
...
...
@@ -206,7 +210,7 @@ export default {
watch
:
{
image_list
(
arr
)
{
if
(
arr
.
length
>
0
)
{
this
.
formParams
.
image_ids
=
JSON
.
stringify
(
arr
);
this
.
formParams
.
image_ids
=
arr
.
join
(
','
);
}
}
},
...
...
@@ -365,16 +369,34 @@ export default {
* 理货提交
*/
createTallyReceive
()
{
if
(
this
.
searchParams
.
container_id
==
''
)
{
uni
.
showModal
({
itle
:
'提示'
,
content
:
'请选择容器'
,
showCancel
:
false
});
return
false
;
}
if
(
!
this
.
formParams
.
tally_qty
)
{
uni
.
showModal
({
itle
:
'提示'
,
content
:
'请填写理货数量'
,
showCancel
:
false
});
return
false
;
}
var
params
=
{
container_id
:
container_id
,
stock_in_id
:
layui
.
form
.
val
(
'tallyReceiveForm'
)
.
stock_in_id
,
container_id
:
this
.
searchParams
.
container_id
,
stock_in_id
:
this
.
stock_in_id
,
stock_in_item_id
:
this
.
stock_in_item_id
,
tally_qty
:
layui
.
form
.
val
(
'tallyReceiveForm'
)
.
tally_qty
,
date_code
:
layui
.
form
.
val
(
'tallyReceiveForm'
)
.
date_code
,
other_batch_attr
:
layui
.
form
.
val
(
'tallyReceiveForm'
)
.
other_batch_attr
,
tally_remark
:
layui
.
form
.
val
(
'tallyReceiveForm'
)
.
tally_remark
,
image_ids
:
image_ids
.
join
(
','
)
,
coo
:
layui
.
form
.
val
(
'tallyReceiveForm'
)
.
coo
tally_qty
:
this
.
formParams
.
tally_qty
,
date_code
:
this
.
formParams
.
date_code
,
other_batch_attr
:
this
.
formParams
.
other_batch_attr
,
tally_remark
:
this
.
formParams
.
tally_remark
,
image_ids
:
this
.
formParams
.
image_ids
,
coo
:
this
.
formParams
.
coo
};
this
.
request
(
API
.
createTallyReceive
,
'POST'
,
params
,
true
).
then
(
res
=>
{
...
...
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