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
cec9f027
authored
May 10, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
964be966
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
91 additions
and
40 deletions
pages/picking/sort.vue
pages/putaway/index.vue
pages/putaway/pack.vue
pages/putaway/packSingle.vue
pages/putaway/record.vue
pages/putaway/single.vue
pages/tallyReceive/record.vue
pages/picking/sort.vue
View file @
cec9f027
...
...
@@ -10,7 +10,7 @@
<view
class=
"search-bar row bothSide verCenter"
>
<view
class=
"row verCenter"
>
<text
class=
"iconfont icon-juxing1"
></text>
<input
class=
"uni-input"
placeholder=
"请扫描或输入库位"
placeholder-style=
"color:#919399"
v-model=
"searchParams.position_name"
@
input=
"handleInput(1, searchParams.position_name)"
/>
<input
class=
"uni-input"
placeholder=
"请扫描或输入库位"
placeholder-style=
"color:#919399"
focus
v-model=
"searchParams.position_name"
@
input=
"handleInput(1, searchParams.position_name)"
/>
</view>
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput(1)"
v-if=
"input_flag_position_name"
></text>
</view>
...
...
@@ -21,7 +21,7 @@
<view
class=
"search-bar row bothSide verCenter"
>
<view
class=
"row verCenter"
>
<text
class=
"iconfont icon-juxing1"
></text>
<input
class=
"uni-input"
placeholder=
"请扫描或输入入库批次号"
placeholder-style=
"color:#919399"
v-model=
"searchParams.stock_in_batch_sn"
@
input=
"handleInput(2, searchParams.stock_in_batch_sn)"
/>
<input
class=
"uni-input"
placeholder=
"请扫描或输入入库批次号"
placeholder-style=
"color:#919399"
v-model=
"searchParams.stock_in_batch_sn"
@
input=
"handleInput(2, searchParams.stock_in_batch_sn)"
maxlength=
"15"
/>
</view>
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput(2)"
v-if=
"input_flag_stock_in_batch_sn"
></text>
</view>
...
...
@@ -489,10 +489,18 @@ export default {
if
(
val
)
{
if
(
type
==
1
)
{
this
.
input_flag_position_name
=
true
;
this
.
getData
();
}
else
if
(
type
==
2
)
{
this
.
input_flag_stock_in_batch_sn
=
true
;
this
.
getData
();
setTimeout
(()
=>
{
if
(
this
.
searchParams
.
stock_in_batch_sn
.
length
==
15
&&
this
.
list
.
length
==
1
)
{
this
.
showDrawer
(
1
,
this
.
list
[
0
]);
}
},
1000
);
}
else
if
(
type
==
3
)
{
this
.
input_flag_container_sn
=
true
;
this
.
getData
();
}
}
else
{
if
(
type
==
1
)
{
...
...
@@ -503,7 +511,6 @@ export default {
this
.
input_flag_container_sn
=
false
;
}
}
this
.
getData
();
},
500
)
}
};
...
...
pages/putaway/index.vue
View file @
cec9f027
...
...
@@ -12,7 +12,7 @@
<view
class=
"search-bar row bothSide verCenter"
>
<view
class=
"row verCenter"
>
<text
class=
"iconfont icon-juxing1"
></text>
<input
class=
"uni-input"
placeholder=
"请扫描或输入
容器码"
placeholder-style=
"color:#919399"
focus
v-model=
"searchParams.stock_in_batch_sn"
@
input=
"handleInput
"
/>
<input
class=
"uni-input"
placeholder=
"请扫描或输入
入库批次号"
placeholder-style=
"color:#919399"
focus
v-model=
"searchParams.stock_in_batch_sn"
@
input=
"handleInput"
maxlength=
"15
"
/>
</view>
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput()"
v-if=
"input_flag"
></text>
</view>
...
...
@@ -91,15 +91,7 @@
<view
class=
"pack"
>
<view
class=
"h2"
>
库位:
</view>
<view
class=
"row verCenter bothSide"
>
<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=
"search row bothSide verCenter"
:class=
"
{ 'error-style': !is_submit }" style="width: 100%;">
<input
type=
"text"
placeholder-style=
"color:#919399"
class=
"uni-input"
placeholder=
"请输入库位编码"
@
input=
"inputPositionCodeChange()"
v-model=
"formParams.position_code"
/></view>
</view>
</view>
<view
class=
"btn row verCenter bothSide"
>
...
...
@@ -119,18 +111,20 @@ import debounce from 'lodash/debounce';
export
default
{
data
()
{
return
{
is_submit
:
true
,
input_flag
:
false
,
page
:
1
,
limit
:
1000
,
index
:
0
,
array
:
[
'入库批次号'
],
indexPosition
:
-
1
,
list
:
[],
position
:
[],
//库位
filter_list
:
[],
//筛选已选中的列表
filter_id
:
[],
//过滤处理的id
warehouse_id
:
''
,
stock_in_type
:
''
,
formParams
:
{
position_
id
:
''
position_
code
:
''
},
searchParams
:
{
stock_in_batch_sn
:
''
//入库批次号
...
...
@@ -175,7 +169,8 @@ export default {
if
(
isAllElementsEqual
)
{
this
.
$refs
.
showRight
.
open
();
this
.
getWhPositionList
(
warehouse_id
[
0
],
stock_in_type
[
0
]);
this
.
warehouse_id
=
warehouse_id
[
0
];
this
.
stock_in_type
=
stock_in_type
[
0
];
}
else
{
uni
.
showToast
({
title
:
'请勾选相同仓库'
,
...
...
@@ -239,10 +234,23 @@ export default {
var
val
=
event
.
target
.
value
;
if
(
val
)
{
this
.
input_flag
=
true
;
this
.
getData
();
setTimeout
(()
=>
{
if
(
this
.
list
.
length
==
1
)
{
uni
.
navigateTo
({
url
:
'/pages/putaway/single?stock_in_batch_sn='
+
this
.
list
[
0
].
stock_in_batch_sn
+
'&tally_id='
+
this
.
list
[
0
].
tally_id
});
}
},
1000
);
}
else
{
this
.
input_flag
=
false
;
}
this
.
getData
();
},
500
),
/**
* 监听库位编码
*/
inputPositionCodeChange
:
debounce
(
function
(
event
)
{
this
.
getWhPositionList
();
},
500
),
/**
* 获取列表数据
...
...
@@ -263,14 +271,12 @@ export default {
/**
* 获取库位
*/
getWhPositionList
(
warehouse_id
,
stock_in_type
)
{
this
.
request
(
API
.
getWhPositionList
,
'POST'
,
{
warehouse_id
:
warehouse_id
,
stock_in_type
:
stock_in_type
},
false
).
then
(
res
=>
{
getWhPositionList
()
{
this
.
request
(
API
.
getWhPositionList
,
'POST'
,
{
warehouse_id
:
this
.
warehouse_id
,
stock_in_type
:
this
.
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
({
...
...
@@ -284,14 +290,14 @@ export default {
* 一键上架
*/
oneKeyPutawayAction
()
{
if
(
!
this
.
formParams
.
position_
id
)
{
if
(
!
this
.
formParams
.
position_
code
)
{
uni
.
showToast
({
title
:
'请
选择库位
'
,
title
:
'请
输入库位编码
'
,
icon
:
'error'
});
return
false
;
}
this
.
request
(
API
.
oneKeyPutawayAction
,
'POST'
,
{
position_
id
:
this
.
formParams
.
position_id
,
tally_ids
:
this
.
filter_id
.
join
(
','
)
},
true
).
then
(
res
=>
{
this
.
request
(
API
.
oneKeyPutawayAction
,
'POST'
,
{
position_
code
:
this
.
formParams
.
position_code
,
tally_ids
:
this
.
filter_id
.
join
(
','
)
},
true
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
uni
.
showToast
({
title
:
'一键上架成功'
,
...
...
pages/putaway/pack.vue
View file @
cec9f027
...
...
@@ -100,6 +100,13 @@ export default {
this
.
input_flag
=
false
;
}
this
.
getData
();
setTimeout
(()
=>
{
if
(
this
.
list
.
length
==
1
)
{
uni
.
navigateTo
({
url
:
'/pages/putaway/packSingle?container_id='
+
this
.
list
[
0
].
container_id
+
'&container_sn='
+
this
.
list
[
0
].
container_sn
});
}
},
1000
);
},
500
),
/**
* 获取列表数据
...
...
pages/putaway/packSingle.vue
View file @
cec9f027
...
...
@@ -16,7 +16,7 @@
<view
class=
"search-bar row bothSide verCenter"
:class=
"
{ 'error-style': !is_submit }">
<view
class=
"row verCenter"
>
<text
class=
"iconfont icon-juxing1"
></text>
<input
class=
"uni-input"
placeholder=
"请扫描或输入库位"
placeholder-style=
"color:#919399"
v-model=
"searchParams.position_code"
@
input=
"handleInput(2, $event)"
/>
<input
class=
"uni-input"
placeholder=
"请扫描或输入库位"
placeholder-style=
"color:#919399"
v-model=
"searchParams.position_code"
@
input=
"handleInput(2, $event)"
focus
/>
</view>
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput(2)"
v-if=
"input_position"
></text>
</view>
...
...
pages/putaway/record.vue
View file @
cec9f027
...
...
@@ -31,6 +31,26 @@
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput()"
v-if=
"input_flag"
></text>
</view>
</view>
<view
class=
"radio-wrap row verCenter"
style=
"padding-bottom: 0;"
>
<radio-group
name=
"radio1"
>
<label>
<radio
value=
"1"
style=
"transform:scale(0.7)"
:checked=
"filter_checkbox[0]"
color=
"#1969f9"
@
click=
"toggle(0)"
/>
<text>
采购入库
</text>
</label>
</radio-group>
<radio-group
name=
"radio2"
>
<label>
<radio
value=
"4"
style=
"transform:scale(0.7)"
:checked=
"filter_checkbox[1]"
color=
"#1969f9"
@
click=
"toggle(1)"
/>
<text>
委托入库
</text>
</label>
</radio-group>
<radio-group
name=
"radio3"
>
<label>
<radio
value=
"2"
style=
"transform:scale(0.7)"
:checked=
"filter_checkbox[2]"
color=
"#1969f9"
@
click=
"toggle(2)"
/>
<text>
退货入库
</text>
</label>
</radio-group>
</view>
<view
class=
"radio-wrap row verCenter"
>
<radio-group
name=
"radio"
@
change=
"radioChange"
>
<label>
...
...
@@ -247,7 +267,9 @@ export default {
filter_list
:
[],
//筛选已选中的列表
filter_id
:
[],
//过滤处理的id
detail
:
{},
filter_checkbox
:
[
true
,
true
,
true
],
searchParams
:
{
stock_in_type
:
'1,4,2'
,
search_type
:
1
,
search_keyword
:
''
,
shelf_status
:
0
...
...
@@ -309,6 +331,19 @@ export default {
this
.
filter_id
=
[];
}
},
toggle
(
index
)
{
var
ids
=
[
1
,
4
,
2
];
this
.
$set
(
this
.
filter_checkbox
,
index
,
(
this
.
filter_checkbox
[
index
]
=
!
this
.
filter_checkbox
[
index
]));
let
filter_arr
=
this
.
findIndex
(
this
.
filter_checkbox
,
true
);
var
filteredIds
=
filter_arr
.
map
(
function
(
i
)
{
return
ids
[
i
];
});
this
.
searchParams
.
stock_in_type
=
filteredIds
.
join
(
','
);
this
.
getData
();
},
/**
* 清空数据
*/
...
...
pages/putaway/single.vue
View file @
cec9f027
...
...
@@ -12,7 +12,7 @@
<view
class=
"search-bar row bothSide verCenter"
>
<view
class=
"row verCenter"
>
<text
class=
"iconfont icon-juxing1"
></text>
<input
class=
"uni-input"
placeholder=
"请扫描或输入
容器码"
placeholder-style=
"color:#919399"
focus
v-model=
"searchParams.stock_in_batch_sn"
@
input=
"handleInput"
/>
<input
class=
"uni-input"
placeholder=
"请扫描或输入
入库批次号"
placeholder-style=
"color:#919399"
v-model=
"searchParams.stock_in_batch_sn"
@
input=
"handleInput"
/>
</view>
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput()"
v-if=
"input_flag"
></text>
</view>
...
...
@@ -97,7 +97,7 @@
</view>
<view
class=
"form-input"
>
<view
class=
"input-title"
><text
class=
"input-title-t1"
>
库位:
</text></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
class=
"input-box"
><input
focus
: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"
>
...
...
@@ -131,7 +131,7 @@
</view>
</view>
</view>
<view
class=
"fix-btn row verCenter"
><view
class=
"btn1 row rowCenter verCenter"
:class=
"
{ 'btn-disabled': !is_submit }"
@click="stockShelfByBatchSnAction()">上 架
</view></view>
<view
class=
"fix-btn row verCenter"
><view
class=
"btn1 row rowCenter verCenter"
@
click=
"stockShelfByBatchSnAction()"
>
上 架
</view></view>
</view>
</
template
>
...
...
@@ -290,13 +290,6 @@ export default {
});
return
false
;
}
if
(
!
this
.
is_submit
)
{
uni
.
showToast
({
title
:
'请输入合适库位'
,
icon
:
'error'
});
return
false
;
}
var
pending_shelf_qty
=
Number
(
this
.
detail
.
pending_shelf_qty
);
this
.
request
(
API
.
stockShelfByBatchSnAction
,
'POST'
,
this
.
formParams
,
true
).
then
(
res
=>
{
...
...
pages/tallyReceive/record.vue
View file @
cec9f027
...
...
@@ -315,10 +315,13 @@ export default {
toggle
(
index
)
{
var
ids
=
[
1
,
4
,
2
];
this
.
$set
(
this
.
filter_checkbox
,
index
,
(
this
.
filter_checkbox
[
index
]
=
!
this
.
filter_checkbox
[
index
]));
let
filter_arr
=
this
.
findIndex
(
this
.
filter_checkbox
,
true
);
var
filteredIds
=
filter_arr
.
map
(
function
(
index
)
{
return
ids
[
index
];
var
filteredIds
=
filter_arr
.
map
(
function
(
i
)
{
return
ids
[
i
];
});
this
.
searchParams
.
stock_tally_with_stock_in_stock_in_type_in
=
filteredIds
.
join
(
','
);
this
.
getData
();
},
...
...
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