Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
Warehouse
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
cf6042b6
authored
May 15, 2020
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1
parent
69b15da7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
7 deletions
pages/scanDelivery/scanDelivery.js
pages/scanDelivery/scanDelivery.wxml
pages/scanDelivery/scanDelivery.js
View file @
cf6042b6
...
...
@@ -13,6 +13,7 @@ Page({
data
:
{
inputVal
:
""
,
listArr
:[],
pickTaskId
:
""
,
},
/**
...
...
@@ -39,10 +40,32 @@ Page({
},
inputConfirm
:
function
(
e
){
let
{
value
}
=
e
.
detail
;
this
.
setData
({
inputVal
:
value
})
this
.
getList
()
let
RegXb
=
/^
(
XB
)\d{11}
$/
;
let
RegKb
=
/^
(
KB
)\d{11}
$/
;
if
(
RegXb
.
test
(
value
)){
//扫描的是箱号
if
(
!
this
.
data
.
pickTaskId
){
wx
.
showToast
({
title
:
'请先扫描卡板号'
,
icon
:
'none'
,
duration
:
2000
});
}
else
{
this
.
confirmOutStore
()
}
}
else
if
(
RegKb
.
test
(
value
)){
//扫描的是卡版号
this
.
setData
({
inputVal
:
value
});
this
.
getList
()
}
else
{
//型号
wx
.
showToast
({
title
:
'数据格式不准确'
,
icon
:
'none'
,
duration
:
2000
});
}
},
getList
:
function
(){
let
me
=
this
;
...
...
@@ -51,7 +74,12 @@ Page({
let
data
=
res
.
data
;
me
.
setData
({
listArr
:
data
||
[]
})
});
if
(
data
.
length
){
me
.
setData
({
pickTaskId
:
data
[
0
][
'pick_task_detail_id'
]
})
}
}
else
{
wx
.
showToast
({
...
...
@@ -62,6 +90,20 @@ Page({
}
},
true
,
true
)
},
confirmOutStore
:
function
(){
let
me
=
this
;
getData
(
apis
.
confirm_out_store
,
'post'
,
{
"pick_task_detail_id"
:
me
.
data
.
pickTaskId
},
function
(
res
)
{
if
(
res
.
errcode
===
0
)
{
me
.
getList
();
}
else
{
wx
.
showToast
({
title
:
res
.
errmsg
,
icon
:
'none'
,
duration
:
2000
});
}
},
true
,
true
)
},
fhFun
:
function
(){
let
arr
=
this
.
data
.
listArr
;
let
idArr
=
[]
...
...
pages/scanDelivery/scanDelivery.wxml
View file @
cf6042b6
...
...
@@ -39,11 +39,11 @@
<view class="td-2 td borderBox Iflex jcc aic td-119"><text>{{item.pallet_id_cn}}</text></view>
<view class="td-2 td borderBox Iflex jcc aic td-119"><text>{{item.box_id_cn}}</text></view>
<view class="td-2 td borderBox Iflex jcc aic td-119"><text>{{item.warehousing_sn}}</text></view>
<view class="td-2 td borderBox Iflex jcc aic td-119"><text>{{item.out_store_
id
}}</text></view>
<view class="td-2 td borderBox Iflex jcc aic td-119"><text>{{item.out_store_
sn
}}</text></view>
<view class="td-2 td borderBox Iflex jcc aic td-58"><text>
<block wx:if="{{item.is_apply_customs == 0}}">否</block>
<block wx:elif="{{item.is_apply_customs == 1}}">是</block></text></view>
<view class="td-2 td borderBox Iflex jcc aic"><text>{{item.confirm_user_
id
}}</text></view>
<view class="td-2 td borderBox Iflex jcc aic"><text>{{item.confirm_user_
name
}}</text></view>
<view class="td-2 td borderBox Iflex jcc aic td-125"><text>{{item.confirm_time_cn}}</text></view>
<view class="td-2 td borderBox Iflex jcc aic"><text>{{item.store_id_cn}}</text></view>
</view>
...
...
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