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
80ed84f1
authored
Mar 19, 2024
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
移动端--理货--digikey扫码识别型号优化
parent
6282268f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
12 deletions
pages/tallyReceive/index.vue
util/api.js
pages/tallyReceive/index.vue
View file @
80ed84f1
...
...
@@ -200,7 +200,7 @@
import
{
API
}
from
'@/util/api.js'
;
import
{
createArray
}
from
'@/util/util.js'
;
import
debounce
from
'lodash/debounce'
;
var
that
=
''
;
export
default
{
data
()
{
return
{
...
...
@@ -267,6 +267,7 @@
}
},
onShow
()
{
that
=
this
;
if
(
this
.
noexebshowFalg
)
{
this
.
resetChange
();
this
.
getData
();
...
...
@@ -484,7 +485,7 @@
this
.
input_flag
=
false
;
this
.
getData
();
}
},
20
00
),
},
that
.
index
==
3
?
0
:
5
00
),
bindPickerChange
:
function
(
e
)
{
console
.
log
(
'picker发送选择改变,携带值为'
,
e
.
detail
.
value
);
this
.
index
=
e
.
detail
.
value
;
...
...
@@ -553,8 +554,19 @@
* @param {Object} code_type 供应商类型(DigKey,Rochester,TME,Chip1stop)
*/
identifyQrCodeNumAndSn
(
code_str
,
code_type
)
{
console
.
log
(
code_str
);
this
.
request
(
API
.
identifyQrCodeNumAndSn
,
'POST'
,
{
code_str
:
code_str
,
code_type
:
code_type
},
true
).
then
(
res
=>
{
// 找到第一个1P的位置
var
index
=
code_str
.
indexOf
(
'1P'
);
var
result
=
''
;
if
(
index
!==
-
1
)
{
// 从第七位开始截取直到第一个1P的位置
var
result
=
code_str
.
substring
(
6
,
index
);
}
else
{
uni
.
showToast
({
title
:
'未识别到匹配的内容'
,
icon
:
'error'
});
}
this
.
request
(
API
.
identifyQrCodeNumAndSn
,
'POST'
,
{
code_str
:
result
,
code_type
:
code_type
},
true
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
searchParams
.
goods_name
=
res
.
data
.
sn
;
//赋值检索出来的型号
this
.
getData
();
...
...
util/api.js
View file @
80ed84f1
//
const API_BASE_USER = 'http://user.liexindev.net'; //用户系统
//
const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统
//
const API_BASE = 'http://wms.liexindev.net'; //WMS系统
//
const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统
const
API_BASE_USER
=
'http://user.liexindev.net'
;
//用户系统
const
API_BASE_PUR
=
'http://pur.liexindev.net'
;
//采购系统
const
API_BASE
=
'http://wms.liexindev.net'
;
//WMS系统
const
API_BASE_OSS
=
'http://image.liexindev.net'
;
//oss系统
const
API_BASE_USER
=
'https://user.ichunt.net'
;
//用户系统
const
API_BASE_PUR
=
'https://purchase.ichunt.net'
;
//采购系统
const
API_BASE
=
'https://wms.ichunt.net'
;
//WMS系统
const
API_BASE_OSS
=
'https://image.ichunt.net'
;
//oss系统
//
const API_BASE_USER = 'https://user.ichunt.net'; //用户系统
//
const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统
//
const API_BASE = 'https://wms.ichunt.net'; //WMS系统
//
const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
const
API
=
{
...
...
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