Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
photoStore
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
e41fa984
authored
Sep 02, 2020
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
整单提交
parent
25214db1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
pages/detail/detail.js
pages/detail/detail.js
View file @
e41fa984
...
...
@@ -37,7 +37,7 @@ Page({
},
getSaoMaId
(
code
)
{
axios
({
url
:
"/photo_taking/scan_order_detail/"
+
this
.
data
.
inputValue
+
"/"
+
code
url
:
"/photo_taking/scan_order_detail/"
+
this
.
data
.
inputValue
+
"/"
+
encodeURI
(
code
)
}).
then
(
res
=>
{
//请求得到的ID值
let
detail_id
=
res
.
data
.
data
;
...
...
@@ -62,7 +62,7 @@ Page({
dd
.
scan
({
type
:
'qr'
,
success
:
(
res
)
=>
{
let
code_
=
encodeURI
(
res
.
code
)
let
code_
=
res
.
code
this
.
setData
({
inputValue2
:
code_
});
...
...
@@ -100,17 +100,13 @@ Page({
image_src
:
(
this
.
data
.
detailImages
.
join
(
","
))
}
}).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
console
.
log
(
res
)
dd
.
showToast
({
type
:
'success'
,
content
:
'扫码明细提交成功'
,
duration
:
3000
});
if
(
res
.
data
.
code
==
0
)
{
//提交成功
this
.
clear
();
this
.
getDateList
();
}
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
},
subMxActionShee
()
{
...
...
@@ -121,7 +117,6 @@ Page({
success
:
(
res
)
=>
{
if
(
res
.
index
==
0
)
{
this
.
submitDetail
()
}
else
if
(
res
.
index
==
1
)
{
//拍照
dd
.
chooseImage
({
...
...
@@ -157,7 +152,7 @@ Page({
axios
({
url
:
"/photo_taking/submit_order/"
+
this
.
data
.
inputValue
}).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
data
.
code
==
0
)
{
dd
.
showToast
({
type
:
'success'
,
content
:
'整单提交成功'
,
...
...
@@ -171,7 +166,7 @@ Page({
}
else
{
dd
.
showToast
({
type
:
'fail'
,
content
:
res
.
data
,
content
:
res
.
data
.
data
,
duration
:
3000
});
}
...
...
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