Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiangyang-PDA
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xujian
xiangyang-PDA
Commits
56ea2b82
Commit
56ea2b82
authored
Mar 27, 2026
by
wangwenjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口对接
parent
87614119
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
8 deletions
+20
-8
index.vue
src/views/ManualOperation/ScanBarcodes/index.vue
+13
-7
index.vue
src/views/ManualOperation/ScanResults/index.vue
+5
-1
index.vue
src/views/ManualOperation/SearchResults/index.vue
+2
-0
No files found.
src/views/ManualOperation/ScanBarcodes/index.vue
View file @
56ea2b82
...
@@ -56,6 +56,7 @@ import {Button, Cell, CellGroup, Col, Dialog, Icon, List, NavBar, Notify, Row, S
...
@@ -56,6 +56,7 @@ import {Button, Cell, CellGroup, Col, Dialog, Icon, List, NavBar, Notify, Row, S
import
{
queryQrCode
}
from
"@/api/qrcode/scanCode/scanCode"
;
import
{
queryQrCode
}
from
"@/api/qrcode/scanCode/scanCode"
;
import
{
getStringByTwo
}
from
"@/utils/transition"
;
import
{
getStringByTwo
}
from
"@/utils/transition"
;
import
{
createWebHistory
as
$router
}
from
"vue-router"
;
import
{
createWebHistory
as
$router
}
from
"vue-router"
;
import
ScanOverlay
from
"@/components/overlay/scanOverlay/ScanOverlay"
;
export
default
{
export
default
{
name
:
""
,
name
:
""
,
...
@@ -77,7 +78,7 @@ export default {
...
@@ -77,7 +78,7 @@ export default {
let
qrCode
=
getStringByTwo
(
res
)
let
qrCode
=
getStringByTwo
(
res
)
this
.
queryQrCode
(
qrCode
);
this
.
queryQrCode
(
qrCode
);
});
});
//
ScanOverlay.show('请扫描二维码')
ScanOverlay
.
show
(
'请扫描二维码'
)
// this.queryQrCode("HTTPS://Y2WM.CN/99.1000.1/AC1018057002R0AX2ZLRVEL4EKAQ40D9M");
// this.queryQrCode("HTTPS://Y2WM.CN/99.1000.1/AC1018057002R0AX2ZLRVEL4EKAQ40D9M");
// setTimeout(()=>{
// setTimeout(()=>{
// this.queryQrCode("HTTPS://Y2WM.CN/99.1000.1/AC1018057002RVYISERQ4Z1VJRGNYTDEY");
// this.queryQrCode("HTTPS://Y2WM.CN/99.1000.1/AC1018057002RVYISERQ4Z1VJRGNYTDEY");
...
@@ -104,15 +105,17 @@ export default {
...
@@ -104,15 +105,17 @@ export default {
return
qrCode
;
return
qrCode
;
},
},
queryQrCode
(
qrCode
)
{
queryQrCode
(
qrCode
)
{
if
(
qrCode
!=
null
&&
(
qrCode
.
substring
(
qrCode
.
indexOf
(
"AC"
)
+
2
,
qrCode
.
indexOf
(
"AC"
)
+
4
)
!=
10
)){
this
.
$message
.
warning
(
'请扫盒码'
);
return
;
}
if
(
this
.
data
!=
null
&&
this
.
data
.
length
===
2
){
this
.
$message
.
warning
(
'已扫描两个盒码,时间范围已确定'
);
}
let
query
=
{
let
query
=
{
qrCode
:
qrCode
qrCode
:
qrCode
}
}
queryQrCode
(
query
).
then
(
response
=>
{
queryQrCode
(
query
).
then
(
response
=>
{
// this.$message({
// showClose: response.code === 200,
// message: response.msg,
// type: 'success'
// });
if
(
response
.
code
===
200
)
{
if
(
response
.
code
===
200
)
{
this
.
data
.
push
(
response
.
data
)
this
.
data
.
push
(
response
.
data
)
}
}
...
@@ -139,7 +142,10 @@ export default {
...
@@ -139,7 +142,10 @@ export default {
const
y
=
d
.
getFullYear
();
const
y
=
d
.
getFullYear
();
const
m
=
String
(
d
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
);
const
m
=
String
(
d
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
);
const
day
=
String
(
d
.
getDate
()).
padStart
(
2
,
'0'
);
const
day
=
String
(
d
.
getDate
()).
padStart
(
2
,
'0'
);
return
`
${
y
}
-
${
m
}
-
${
day
}
`
;
const
hours
=
String
(
d
.
getHours
()).
padStart
(
2
,
'0'
);
const
minutes
=
String
(
d
.
getMinutes
()).
padStart
(
2
,
'0'
);
const
seconds
=
String
(
d
.
getSeconds
()).
padStart
(
2
,
'0'
);
return
`
${
y
}
-
${
m
}
-
${
day
}
${
hours
}
:
${
minutes
}
:
${
seconds
}
`
;
};
};
this
.
$router
.
push
({
this
.
$router
.
push
({
...
...
src/views/ManualOperation/ScanResults/index.vue
View file @
56ea2b82
...
@@ -138,7 +138,7 @@ export default {
...
@@ -138,7 +138,7 @@ export default {
let
qrCode
=
getStringByTwo
(
res
)
let
qrCode
=
getStringByTwo
(
res
)
this
.
queryQrCodeMap
(
qrCode
);
this
.
queryQrCodeMap
(
qrCode
);
});
});
//
ScanOverlay.show('请扫描二维码')
ScanOverlay
.
show
(
'请扫描二维码'
)
// 测试调用:传入固定二维码,实际使用时删除这行
// 测试调用:传入固定二维码,实际使用时删除这行
// this.queryQrCodeMap("HTTPS://T2DC.CN/99.1000.1/AC30938762037000169010280752062202603240016460168A00296K16LRN1YQUVLOWZHHZMOVJ2C");
// this.queryQrCodeMap("HTTPS://T2DC.CN/99.1000.1/AC30938762037000169010280752062202603240016460168A00296K16LRN1YQUVLOWZHHZMOVJ2C");
...
@@ -201,6 +201,10 @@ export default {
...
@@ -201,6 +201,10 @@ export default {
methods
:
{
methods
:
{
// 核心接口调用:查询件码详情
// 核心接口调用:查询件码详情
queryQrCodeMap
(
qrCode
)
{
queryQrCodeMap
(
qrCode
)
{
if
(
qrCode
!=
null
&&
(
qrCode
.
substring
(
qrCode
.
indexOf
(
"AC"
)
+
2
,
qrCode
.
indexOf
(
"AC"
)
+
4
)
!=
30
)){
this
.
$message
.
warning
(
'请扫件码'
);
return
;
}
console
.
log
(
"调用接口查询件码:"
,
qrCode
);
console
.
log
(
"调用接口查询件码:"
,
qrCode
);
const
query
=
{
qrCode
:
qrCode
};
const
query
=
{
qrCode
:
qrCode
};
queryQrCodeMap
(
query
).
then
(
response
=>
{
queryQrCodeMap
(
query
).
then
(
response
=>
{
...
...
src/views/ManualOperation/SearchResults/index.vue
View file @
56ea2b82
...
@@ -73,6 +73,7 @@
...
@@ -73,6 +73,7 @@
import
{
Icon
,
NavBar
,
Notify
,}
from
"vant"
;
import
{
Icon
,
NavBar
,
Notify
,}
from
"vant"
;
import
{
queryQrCodeInfo
}
from
"@/api/qrcode/scanCode/scanCode"
;
import
{
queryQrCodeInfo
}
from
"@/api/qrcode/scanCode/scanCode"
;
import
{
getStringByTwo
}
from
"@/utils/transition"
;
import
{
getStringByTwo
}
from
"@/utils/transition"
;
import
ScanOverlay
from
"@/components/overlay/scanOverlay/ScanOverlay"
;
export
default
{
export
default
{
name
:
"RelationQueryResult"
,
name
:
"RelationQueryResult"
,
...
@@ -85,6 +86,7 @@ export default {
...
@@ -85,6 +86,7 @@ export default {
let
qrCode
=
getStringByTwo
(
res
)
let
qrCode
=
getStringByTwo
(
res
)
this
.
gousearch
(
qrCode
);
this
.
gousearch
(
qrCode
);
});
});
ScanOverlay
.
show
(
'请扫描二维码'
)
},
},
data
()
{
data
()
{
return
{
return
{
...
...
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