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
c07a19a2
authored
Apr 24, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
6454d6ee
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
154 additions
and
21 deletions
pages/arrivalRegister/index.vue
pages/arrivalRegister/registered.vue
pages/picking/index.vue
pages/transfer/index.vue
pages/transfer/task.vue
util/api.js
pages/arrivalRegister/index.vue
View file @
c07a19a2
...
...
@@ -169,7 +169,7 @@ export default {
array
:
[
'物流单号'
,
'入库单号'
,
'入仓号'
],
list
:
[],
filter_list
:
[],
//筛选已选中的列表
filter_id
:
[],
//
入库单列表的入库登记
filter_id
:
[],
//
过滤处理的id
detail
:
{},
//详情的数据
searchParams
:
{
stock_in_sn
:
''
,
//入库单号
...
...
pages/arrivalRegister/registered.vue
View file @
c07a19a2
...
...
@@ -299,9 +299,10 @@ export default {
this
.
filter_id
=
[];
},
2000
);
}
else
{
uni
.
showToast
({
title
:
res
.
msg
,
icon
:
'error'
uni
.
showModal
({
title
:
'提示'
,
content
:
res
.
msg
,
showCancel
:
false
});
}
});
...
...
pages/picking/index.vue
View file @
c07a19a2
...
...
@@ -12,16 +12,16 @@
<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
"
/>
<input
class=
"uni-input"
placeholder=
"请扫描
出库单号"
placeholder-style=
"color:#919399"
@
input=
"handleInput"
v-model=
"searchParams.stock_out_sn
"
/>
</view>
<text
class=
"iconfont icon-a-juxing11"
></text>
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput()"
v-if=
"input_flag"
></text>
</view>
</view>
<view
class=
"list row bothSide"
>
<navigator
class=
"box"
v-for=
"(item, index) in
10
"
:key=
"index"
url=
"/pages/picking/sort"
hover-class=
"none"
>
<view
class=
"list row bothSide"
v-if=
"list.length > 0"
>
<navigator
class=
"box"
v-for=
"(item, index) in
list
"
:key=
"index"
url=
"/pages/picking/sort"
hover-class=
"none"
>
<view
class=
"text-item row verCenter"
>
<text
class=
"label"
>
出库单号:
</text>
<text
class=
"t1"
>
ASN2201010001
</text>
<text
class=
"t1"
></text>
</view>
<view
class=
"text-item row verCenter"
>
<text
class=
"label"
>
状 态:
</text>
...
...
@@ -47,16 +47,34 @@
<view
class=
"btn-box row"
><view
class=
"btn row rowCenter verCenter"
>
领取
</view></view>
</navigator>
</view>
<!-- 无数据展示 -->
<view
class=
"no-date column rowCenter verCenter"
v-else
>
<text
class=
"iconfont icon-a-juxing21"
></text>
<text
class=
"text"
>
查不到当前数据
</text>
</view>
</view>
</
template
>
<
script
>
import
{
API
}
from
'@/util/api.js'
;
import
{
createArray
}
from
'@/util/util.js'
;
import
debounce
from
'lodash/debounce'
;
export
default
{
data
()
{
return
{
input_flag
:
false
,
index
:
0
,
array
:
[
'出库单号'
]
page
:
1
,
limit
:
1000
,
array
:
[
'出库单号'
],
list
:
[],
filter_list
:
[],
//筛选已选中的列表
filter_id
:
[],
//过滤处理的id
searchParams
:
{
stock_out_sn
:
''
,
stock_out_id
:
4
}
};
},
onLoad
()
{},
...
...
@@ -71,7 +89,44 @@ export default {
bindPickerChange
:
function
(
e
)
{
console
.
log
(
'picker发送选择改变,携带值为'
,
e
.
detail
.
value
);
this
.
index
=
e
.
detail
.
value
;
},
/**
* 获取列表数据
*/
getData
()
{
this
.
request
(
API
.
getPickedList
,
'POST'
,
{
page
:
this
.
page
,
limit
:
this
.
limit
,
...
this
.
searchParams
},
false
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
list
=
res
.
data
.
list
;
this
.
filter_list
=
createArray
(
this
.
list
.
length
,
false
);
}
else
{
uni
.
showToast
({
title
:
res
.
msg
,
icon
:
'error'
});
}
});
},
/**
* 清空数据
*/
clearInput
()
{
this
.
input_flag
=
false
;
this
.
searchParams
.
stock_out_sn
=
''
;
this
.
getData
();
},
/**
* 单号搜索
* @param {Object} event
*/
handleInput
:
debounce
(
function
(
event
)
{
var
val
=
event
.
target
.
value
;
if
(
val
)
{
this
.
input_flag
=
true
;
}
else
{
this
.
input_flag
=
false
;
}
this
.
getData
();
},
500
)
}
};
</
script
>
...
...
pages/transfer/index.vue
View file @
c07a19a2
...
...
@@ -12,47 +12,63 @@
<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"
/>
<input
class=
"uni-input"
placeholder=
"请扫描或输入号码"
placeholder-style=
"color:#919399"
focus
v-model=
"searchParams.transfer_sn"
@
input=
"handleInput"
/>
</view>
<text
class=
"iconfont icon-a-juxing11"
></text>
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput()"
v-if=
"input_flag"
></text>
</view>
</view>
<view
class=
"list row bothSide"
>
<view
class=
"box"
v-for=
"(item, index) in
10
"
:key=
"index"
>
<view
class=
"list row bothSide"
v-if=
"list.length > 0"
>
<view
class=
"box"
v-for=
"(item, index) in
list
"
:key=
"index"
>
<view
class=
"text-item row verCenter"
>
<text
class=
"label"
>
移位单号:
</text>
<text
class=
"t1"
>
L-YW2201010001
</text>
<text
class=
"t1"
>
{{
item
.
transfer_sn
}}
</text>
</view>
<view
class=
"text-item row verCenter"
>
<text
class=
"label"
>
状 态:
</text>
<text
class=
"t1"
>
任务生成
</text>
<text
class=
"t1"
>
{{
item
.
transfer_status_val
}}
</text>
</view>
<view
class=
"bor row"
></view>
<view
class=
"text-item row verCenter"
>
<text
class=
"label"
>
任 务 数:
</text>
<text
class=
"tt"
>
8
</text>
<text
class=
"tt"
>
{{
item
.
task_num
}}
</text>
</view>
<view
class=
"text-item row verCenter"
>
<text
class=
"label"
>
总 数 量:
</text>
<text
class=
"tt"
>
5000
</text>
<text
class=
"tt"
>
{{
item
.
trans_qty
}}
</text>
</view>
<view
class=
"text-item row verCenter"
>
<text
class=
"label"
>
创建时间:
</text>
<text
class=
"tt"
>
2023-04-01 11:28:59
</text>
<text
class=
"tt"
>
{{
item
.
create_time
}}
</text>
</view>
<navigator
class=
"btn-box row"
url=
"/pages/transfer/task
"
hover-class=
"none"
><view
class=
"btn row rowCenter verCenter"
>
选择
</view></navigator>
<navigator
class=
"btn-box row"
:url=
"'/pages/transfer/task?transfer_id=' + item.transfer_id
"
hover-class=
"none"
><view
class=
"btn row rowCenter verCenter"
>
选择
</view></navigator>
</view>
</view>
<!-- 无数据展示 -->
<view
class=
"no-date column rowCenter verCenter"
v-else
>
<text
class=
"iconfont icon-a-juxing21"
></text>
<text
class=
"text"
>
查不到当前数据
</text>
</view>
</view>
</
template
>
<
script
>
import
{
API
}
from
'@/util/api.js'
;
import
{
createArray
}
from
'@/util/util.js'
;
import
debounce
from
'lodash/debounce'
;
export
default
{
data
()
{
return
{
input_flag
:
false
,
page
:
1
,
limit
:
1000
,
index
:
0
,
array
:
[
'移位单号'
]
array
:
[
'移位单号'
],
list
:
[],
filter_list
:
[],
//筛选已选中的列表
searchParams
:
{
transfer_sn
:
''
//移位单号
}
};
},
onLoad
()
{},
...
...
@@ -60,6 +76,51 @@ export default {
bindPickerChange
:
function
(
e
)
{
console
.
log
(
'picker发送选择改变,携带值为'
,
e
.
detail
.
value
);
this
.
index
=
e
.
detail
.
value
;
},
/**
* 获取列表数据
*/
getData
()
{
this
.
request
(
API
.
getTransferList
,
'GET'
,
{
page
:
this
.
page
,
limit
:
this
.
limit
,
...
this
.
searchParams
},
false
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
list
=
res
.
data
.
list
;
this
.
filter_list
=
createArray
(
this
.
list
.
length
,
false
);
}
else
{
uni
.
showToast
({
title
:
res
.
msg
,
icon
:
'error'
});
}
});
},
/**
* 单号搜索
* @param {Object} event
*/
handleInput
:
debounce
(
function
(
event
)
{
var
val
=
event
.
target
.
value
;
if
(
val
)
{
this
.
input_flag
=
true
;
}
else
{
this
.
input_flag
=
false
;
}
this
.
getData
();
},
500
),
/**
* 筛选过滤出选中的元素
*/
filterChange
(
index
)
{
this
.
$set
(
this
.
filter_list
,
index
,
(
this
.
filter_list
[
index
]
=
!
this
.
filter_list
[
index
]));
let
filter_arr
=
this
.
findIndex
(
this
.
filter_list
,
true
);
this
.
filter_id
=
filter_arr
.
map
(
i
=>
this
.
list
[
i
].
stock_in_id
);
},
/**
* 清空数据
*/
clearInput
()
{
this
.
input_flag
=
false
;
this
.
searchParams
.
transfer_sn
=
''
;
this
.
getData
();
}
}
};
...
...
pages/transfer/task.vue
View file @
c07a19a2
This diff is collapsed.
Click to expand it.
util/api.js
View file @
c07a19a2
...
...
@@ -48,6 +48,22 @@ const API = {
* */
createTallyReceive
:
API_BASE
+
'/api/stockIn/tallyReceive/createTallyReceive'
,
/**
* 拣货明细
* */
getPickedList
:
API_BASE
+
'/api/stockOut/getPickedList'
,
/**
* 移位列表
* */
getTransferList
:
API_BASE
+
'/api/transfer/getTransferList'
,
/**
* 移位详情
* */
getTransferDetail
:
API_BASE
+
'/api/transfer/getTransferDetail'
,
/**
* 移位-确认移位
* */
confirmTransfer
:
API_BASE
+
'/api/transfer/confirmTransfer'
,
/**
* 上传文件
* */
upload
:
API_BASE_LIEXIN
+
'/oss/upload'
,
...
...
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