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
067af4b2
authored
May 17, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
893a1180
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
114 additions
and
30 deletions
manifest.json
pages/arrivalRegister/index.vue
pages/arrivalRegister/registered.vue
pages/picking/record.vue
pages/putaway/record.vue
pages/stockRecheck/record.vue
pages/tallyReceive/index.vue
pages/tallyReceive/record.vue
manifest.json
View file @
067af4b2
{
"name"
:
"wms
App
"
,
"name"
:
"wms"
,
"appid"
:
"__UNI__655E80D"
,
"description"
:
""
,
"versionName"
:
"1.0.0"
,
...
...
pages/arrivalRegister/index.vue
View file @
067af4b2
...
...
@@ -179,7 +179,7 @@ export default {
return
{
input_flag
:
false
,
page
:
1
,
limit
:
1
0
,
limit
:
3
0
,
index
:
0
,
array
:
[
'物流单号'
,
'入库单号'
,
'入仓号'
],
list
:
[],
...
...
@@ -220,6 +220,7 @@ export default {
this
.
getWareHouselist
();
},
onShow
()
{
this
.
resetChange
();
this
.
getData
();
},
methods
:
{
...
...
@@ -284,13 +285,14 @@ export default {
* 清空数据
*/
clearInput
()
{
this
.
resetChange
();
this
.
input_flag
=
false
;
if
(
this
.
index
==
0
)
{
this
.
searchParams
.
tracking_no
=
''
;
}
else
if
(
this
.
index
==
1
)
{
this
.
searchParams
.
stock_in_sn
=
''
;
}
else
if
(
this
.
index
==
2
)
{
this
.
searchParams
.
stock_in_with_stock_in_items_inhouse
s
=
''
;
this
.
searchParams
.
stock_in_with_stock_in_items_inhouse
=
''
;
}
this
.
getData
();
},
...
...
@@ -299,7 +301,7 @@ export default {
* @param {Object} event
*/
handleInput
:
debounce
(
function
(
type
,
event
)
{
this
.
list
=
[]
;
this
.
resetChange
()
;
var
val
=
event
.
target
.
value
;
this
.
searchParams
.
tracking_no
=
''
;
this
.
searchParams
.
stock_in_sn
=
''
;
...
...
@@ -344,7 +346,7 @@ export default {
* @param {Object} stock_in_sn 入库单号
*/
getDetail
(
stock_in_sn
)
{
this
.
request
(
API
.
stockInMobileRegisterList
,
'POST'
,
{
page
:
this
.
page
,
limit
:
this
.
limit
,
stock_in_sn
:
stock_in_sn
,
is_register
:
0
},
true
).
then
(
res
=>
{
this
.
request
(
API
.
stockInMobileRegisterList
,
'POST'
,
{
page
:
1
,
limit
:
this
.
limit
,
stock_in_sn
:
stock_in_sn
,
is_register
:
0
},
true
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
detail
=
res
.
data
.
list
[
0
];
}
else
{
...
...
@@ -382,6 +384,7 @@ export default {
icon
:
'success'
});
setTimeout
(()
=>
{
this
.
resetChange
();
this
.
getData
();
this
.
closeDrawer
();
},
2000
);
...
...
@@ -421,6 +424,7 @@ export default {
icon
:
'success'
});
setTimeout
(()
=>
{
this
.
resetChange
();
this
.
getData
();
this
.
closeDrawer
();
this
.
filter_id
=
[];
...
...
@@ -453,6 +457,13 @@ export default {
closeDrawer
()
{
this
.
$refs
.
showRight
.
close
();
this
.
$refs
.
showRightAdd
.
close
();
},
/**
* 重置
*/
resetChange
()
{
this
.
list
=
[];
this
.
page
=
1
;
}
}
};
...
...
pages/arrivalRegister/registered.vue
View file @
067af4b2
...
...
@@ -148,13 +148,14 @@ export default {
input_flag
:
false
,
all_flag
:
false
,
//全选标记
page
:
1
,
limit
:
100
0
,
limit
:
3
0
,
index
:
0
,
array
:
[
'物流单号'
,
'入库单号'
,
'入仓号'
],
list
:
[],
filter_list
:
[],
//筛选已选中的列表
filter_id
:
[],
//过滤id
detail
:
{},
//详情的数据
hasMoreData
:
true
,
//是否分页加载
searchParams
:
{
stock_in_sn
:
''
,
//入库单号
tracking_no
:
''
,
//物流单号
...
...
@@ -169,7 +170,15 @@ export default {
});
}
},
onReachBottom
()
{
if
(
!
this
.
hasMoreData
)
{
return
;
}
this
.
page
++
;
this
.
getData
();
},
onShow
()
{
this
.
resetChange
();
this
.
getData
();
},
methods
:
{
...
...
@@ -213,6 +222,7 @@ export default {
* 清空数据
*/
clearInput
()
{
this
.
resetChange
();
this
.
input_flag
=
false
;
if
(
this
.
index
==
0
)
{
this
.
searchParams
.
tracking_no
=
''
;
...
...
@@ -228,6 +238,7 @@ export default {
* @param {Object} event
*/
handleInput
:
debounce
(
function
(
type
,
event
)
{
this
.
resetChange
();
var
val
=
event
.
target
.
value
;
this
.
searchParams
.
tracking_no
=
''
;
this
.
searchParams
.
stock_in_sn
=
''
;
...
...
@@ -253,8 +264,13 @@ export default {
getData
()
{
this
.
request
(
API
.
stockInMobileRegisterList
,
'POST'
,
{
page
:
this
.
page
,
limit
:
this
.
limit
,
is_register
:
1
,
...
this
.
searchParams
},
false
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
list
=
res
.
data
.
list
;
this
.
filter_list
=
createArray
(
this
.
list
.
length
,
false
);
if
(
res
.
data
.
total
>
0
)
{
this
.
hasMoreData
=
true
;
this
.
list
=
this
.
list
.
concat
(
res
.
data
.
list
);
this
.
filter_list
=
createArray
(
this
.
list
.
length
,
false
);
}
else
{
this
.
hasMoreData
=
false
;
}
}
else
{
uni
.
showToast
({
title
:
res
.
msg
,
...
...
@@ -268,7 +284,7 @@ export default {
* @param {Object} stock_in_sn 入库单号
*/
getDetail
(
stock_in_sn
)
{
this
.
request
(
API
.
stockInMobileRegisterList
,
'POST'
,
{
page
:
this
.
page
,
limit
:
this
.
limit
,
stock_in_sn
:
stock_in_sn
},
true
).
then
(
res
=>
{
this
.
request
(
API
.
stockInMobileRegisterList
,
'POST'
,
{
page
:
1
,
limit
:
this
.
limit
,
stock_in_sn
:
stock_in_sn
},
true
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
detail
=
res
.
data
.
list
[
0
];
}
else
{
...
...
@@ -341,6 +357,13 @@ export default {
},
closeDrawer
()
{
this
.
$refs
.
showRight
.
close
();
},
/**
* 重置
*/
resetChange
()
{
this
.
list
=
[];
this
.
page
=
1
;
}
}
};
...
...
pages/picking/record.vue
View file @
067af4b2
...
...
@@ -96,7 +96,7 @@ export default {
input_flag
:
false
,
all_flag
:
false
,
//全选标记
page
:
1
,
limit
:
1
0
,
limit
:
3
0
,
hasMoreData
:
true
,
//是否分页加载
list
:
[],
filter_list
:
[],
//筛选已选中的列表
...
...
@@ -117,6 +117,7 @@ export default {
this
.
searchParams
.
stock_out_sn
=
options
.
stock_out_sn
;
},
onShow
()
{
this
.
resetChange
();
this
.
getData
();
},
methods
:
{
...
...
@@ -160,6 +161,7 @@ export default {
* 清空数据
*/
clearInput
()
{
this
.
resetChange
();
this
.
input_flag
=
false
;
this
.
searchParams
.
stock_out_sn
=
''
;
this
.
getData
();
...
...
@@ -169,6 +171,7 @@ export default {
* @param {Object} event
*/
handleInput
:
debounce
(
function
(
event
)
{
this
.
resetChange
();
var
val
=
event
.
target
.
value
;
if
(
val
)
{
this
.
input_flag
=
true
;
...
...
@@ -201,9 +204,10 @@ export default {
icon
:
'success'
});
setTimeout
(()
=>
{
this
.
resetChange
();
this
.
filter_id
=
[];
this
.
getData
();
this
.
closeDrawer
();
this
.
filter_id
=
[];
},
2000
);
}
else
{
uni
.
showModal
({
...
...
@@ -240,6 +244,13 @@ export default {
});
}
});
},
/**
* 重置
*/
resetChange
()
{
this
.
list
=
[];
this
.
page
=
1
;
}
}
};
...
...
pages/putaway/record.vue
View file @
067af4b2
...
...
@@ -256,7 +256,7 @@ export default {
return
{
input_flag
:
false
,
page
:
1
,
limit
:
1
0
,
limit
:
3
0
,
index
:
0
,
array
:
[
'入库单号'
,
'入库批次号'
,
'销售员'
,
'入仓号'
,
'理货容器'
],
list
:
[],
...
...
@@ -287,17 +287,17 @@ export default {
}
},
onShow
()
{
this
.
resetChange
();
this
.
getData
();
},
methods
:
{
radioChange
(
e
,
type
)
{
this
.
resetChange
();
if
(
type
==
1
)
{
this
.
searchParams
.
stock_in_type
=
e
.
detail
.
value
;
}
else
if
(
type
==
2
)
{
this
.
searchParams
.
shelf_status
=
e
.
detail
.
value
;
}
this
.
page
=
1
;
this
.
list
=
[];
this
.
getData
();
},
bindPickerChange
:
function
(
e
)
{
...
...
@@ -351,6 +351,7 @@ export default {
* 清空数据
*/
clearInput
()
{
this
.
resetChange
();
this
.
input_flag
=
false
;
this
.
searchParams
.
search_keyword
=
''
;
this
.
getData
();
...
...
@@ -360,7 +361,7 @@ export default {
* @param {Object} event
*/
handleInput
:
debounce
(
function
(
event
)
{
this
.
list
=
[]
;
this
.
resetChange
()
;
var
val
=
event
.
target
.
value
;
if
(
val
)
{
this
.
input_flag
=
true
;
...
...
@@ -436,8 +437,9 @@ export default {
icon
:
'success'
});
setTimeout
(()
=>
{
this
.
getData
();
this
.
resetChange
();
this
.
filter_id
=
[];
this
.
getData
();
if
(
type
==
2
)
{
this
.
closeDrawer
();
}
...
...
@@ -484,8 +486,9 @@ export default {
icon
:
'success'
});
setTimeout
(()
=>
{
this
.
getData
();
this
.
resetChange
();
this
.
filter_id
=
[];
this
.
getData
();
if
(
type
==
2
)
{
this
.
closeDrawer
();
}
...
...
@@ -503,8 +506,9 @@ export default {
icon
:
'success'
});
setTimeout
(()
=>
{
this
.
getData
();
this
.
resetChange
();
this
.
filter_id
=
[];
this
.
getData
();
if
(
type
==
2
)
{
this
.
closeDrawer
();
}
...
...
@@ -530,6 +534,13 @@ export default {
});
}
});
},
/**
* 重置
*/
resetChange
()
{
this
.
list
=
[];
this
.
page
=
1
;
}
}
};
...
...
pages/stockRecheck/record.vue
View file @
067af4b2
...
...
@@ -114,6 +114,7 @@ export default {
this
.
stock_out_sn
=
options
.
stock_out_sn
;
},
onShow
()
{
this
.
resetChange
();
this
.
getData
();
},
methods
:
{
...
...
@@ -198,8 +199,9 @@ export default {
icon
:
'success'
});
setTimeout
(()
=>
{
this
.
getData
();
this
.
resetChange
();
this
.
filter_id
=
[];
this
.
getData
();
},
2000
);
}
else
{
uni
.
showModal
({
...
...
@@ -215,6 +217,13 @@ export default {
}
}
});
},
/**
* 重置
*/
resetChange
()
{
this
.
list
=
[];
this
.
page
=
1
;
}
}
};
...
...
pages/tallyReceive/index.vue
View file @
067af4b2
...
...
@@ -163,7 +163,7 @@ export default {
input_contaion
:
false
,
all_flag
:
false
,
//全选标记
page
:
1
,
limit
:
1
0
,
limit
:
3
0
,
index
:
0
,
indexContainer
:
-
1
,
array
:
[
'物流单号'
,
'入库单号'
,
'入仓号'
],
...
...
@@ -212,6 +212,7 @@ export default {
},
onShow
()
{
if
(
this
.
noexebshowFalg
)
{
this
.
resetChange
();
this
.
getData
();
this
.
getTallyContainerDefault
();
}
...
...
@@ -268,6 +269,7 @@ export default {
* 清空数据
*/
clearInput
(
type
)
{
this
.
resetChange
();
if
(
type
==
1
)
{
this
.
input_flag
=
false
;
if
(
this
.
index
==
0
)
{
...
...
@@ -282,7 +284,6 @@ export default {
this
.
searchParams
.
container_name
=
''
;
this
.
searchParams
.
container_id
=
''
;
}
this
.
getData
();
},
/**
...
...
@@ -308,8 +309,8 @@ export default {
* @param {Object} event
*/
handleInput
:
debounce
(
function
(
type
,
event
)
{
this
.
resetChange
();
var
val
=
event
.
target
.
value
;
this
.
list
=
[];
if
(
val
)
{
if
(
type
==
1
)
{
this
.
searchParams
.
tracking_no
=
''
;
...
...
@@ -458,8 +459,9 @@ export default {
icon
:
'success'
});
setTimeout
(()
=>
{
this
.
closeDrawer
();
this
.
resetChange
();
this
.
getData
();
this
.
closeDrawer
();
},
2000
);
}
else
{
uni
.
showModal
({
...
...
@@ -534,7 +536,7 @@ export default {
success
:
uploadFileRes
=>
{
uni
.
hideLoading
();
var
data
=
JSON
.
parse
(
uploadFileRes
.
data
);
if
(
data
.
code
===
20
0
)
{
if
(
data
.
code
===
0
)
{
self
.
image_list
.
push
(
data
.
data
.
oss_file_url
);
}
else
{
uni
.
showToast
({
...
...
@@ -569,6 +571,13 @@ export default {
current
:
index
,
urls
:
img
});
},
/**
* 重置
*/
resetChange
()
{
this
.
list
=
[];
this
.
page
=
1
;
}
}
};
...
...
pages/tallyReceive/record.vue
View file @
067af4b2
...
...
@@ -228,7 +228,7 @@ export default {
data
()
{
return
{
page
:
1
,
limit
:
1
0
,
limit
:
3
0
,
input_flag
:
false
,
index
:
0
,
array
:
[
'物流单号'
,
'入库单号'
,
'入仓号'
],
...
...
@@ -263,17 +263,17 @@ export default {
}
},
onShow
()
{
this
.
resetChange
();
this
.
getData
();
},
methods
:
{
radioChange
(
e
,
type
)
{
this
.
resetChange
();
if
(
type
==
1
)
{
this
.
searchParams
.
stock_tally_with_stock_in_stock_in_type_in
=
e
.
detail
.
value
;
}
else
if
(
type
==
2
)
{
this
.
searchParams
.
tally_status
=
e
.
detail
.
value
;
}
this
.
page
=
1
;
this
.
list
=
[];
this
.
getData
();
},
bindPickerChange
:
function
(
e
)
{
...
...
@@ -320,6 +320,7 @@ export default {
* 清空数据
*/
clearInput
()
{
this
.
resetChange
();
this
.
input_flag
=
false
;
if
(
this
.
index
==
0
)
{
this
.
searchParams
.
tracking_no
=
''
;
...
...
@@ -335,8 +336,8 @@ export default {
* @param {Object} event
*/
handleInput
:
debounce
(
function
(
type
,
event
)
{
this
.
resetChange
();
var
val
=
event
.
target
.
value
;
this
.
list
=
[];
this
.
searchParams
.
tracking_no
=
''
;
this
.
searchParams
.
stock_in_sn
=
''
;
this
.
searchParams
.
stock_in_with_stock_in_items_inhouse
=
''
;
...
...
@@ -415,8 +416,9 @@ export default {
icon
:
'success'
});
setTimeout
(()
=>
{
this
.
getData
();
this
.
resetChange
();
this
.
filter_id
=
[];
this
.
getData
();
},
2000
);
}
else
{
uni
.
showModal
({
...
...
@@ -499,8 +501,9 @@ export default {
icon
:
'success'
});
setTimeout
(()
=>
{
this
.
getData
();
this
.
resetChange
();
this
.
filter_id
=
[];
this
.
getData
();
this
.
closeDrawer
();
},
2000
);
}
else
{
...
...
@@ -528,6 +531,13 @@ export default {
current
:
index
,
urls
:
img
});
},
/**
* 重置
*/
resetChange
()
{
this
.
list
=
[];
this
.
page
=
1
;
}
}
};
...
...
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