Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
rs-admin
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
翟畅
rs-admin
Commits
24298c86
提交
24298c86
authored
9月 13, 2024
作者:
翟畅
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zc防伪码创建修改
上级
56243b21
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
27 行增加
和
25 行删除
+27
-25
codeChange.js
src/api/resource/codeChange.js
+1
-1
changeCode.vue
src/views/resource_manage/paperbook_module/changeCode.vue
+13
-12
index.vue
src/views/security_code_manage/security_code/index.vue
+13
-12
没有找到文件。
src/api/resource/codeChange.js
浏览文件 @
24298c86
...
...
@@ -3,7 +3,7 @@ import { requestPath } from '@/utils/global.js'
export
function
newExchangeAPI
(
data
)
{
//批量创建防伪码
return
request
({
url
:
`
${
requestPath
.
resource
}
/physical-conversion-code/
sav
e`
,
url
:
`
${
requestPath
.
resource
}
/physical-conversion-code/
xzconversionCod
e`
,
method
:
'post'
,
data
})
...
...
src/views/resource_manage/paperbook_module/changeCode.vue
浏览文件 @
24298c86
...
...
@@ -362,21 +362,21 @@ import queryString from "query-string";
}
},
validateNum
(
val
){
if
(
val
>
1
0000
){
this
.
$message
.
warning
(
'防伪码生成数量最多不超过
1
0000'
)
this
.
codeNumberForm
.
number
=
1
0000
if
(
val
>
2
0000
){
this
.
$message
.
warning
(
'防伪码生成数量最多不超过
2
0000'
)
this
.
codeNumberForm
.
number
=
2
0000
}
},
dataSubmitCode
()
{
//批量创建--
2
000一次
dataSubmitCode
()
{
//批量创建--
5
000一次
if
(
this
.
codeNumberForm
.
number
&&
this
.
codeNumberForm
.
number
>
0
){
this
.
sending
=
true
this
.
progressNum
=
0
this
.
codeTotal
=
Number
(
this
.
codeNumberForm
.
number
)
this
.
codeNum
=
Math
.
ceil
(
this
.
codeTotal
/
2
000
)
this
.
codeNum
=
Math
.
ceil
(
this
.
codeTotal
/
5
000
)
this
.
codeCurrentNum
=
0
if
(
this
.
codeTotal
<=
2
000
){
if
(
this
.
codeTotal
<=
5
000
){
this
.
progressTimer
=
setInterval
(()
=>
{
if
(
this
.
progressNum
<
=
80
){
if
(
this
.
progressNum
<
80
){
this
.
progressNum
++
}
else
{
this
.
progressNum
=
80
...
...
@@ -397,7 +397,7 @@ import queryString from "query-string";
this
.
sending
=
false
;
}
});
}
else
if
(
this
.
codeTotal
>
2
000
){
}
else
if
(
this
.
codeTotal
>
5
000
){
this
.
saveCodeEvent
(
1
)
}
}
else
{
...
...
@@ -406,15 +406,16 @@ import queryString from "query-string";
},
saveCodeEvent
(
num
){
if
(
num
==
1
){
let
maxNum
=
Math
.
floor
((
100
/
this
.
codeNum
)
*
1
)
this
.
progressTimer
=
setInterval
(()
=>
{
if
(
this
.
progressNum
<
=
80
){
if
(
this
.
progressNum
<
maxNum
){
this
.
progressNum
++
}
else
{
this
.
progressNum
=
80
this
.
progressNum
=
maxNum
}
},
2000
)
}
newExchangeAPI
({
number
:
2
000
,
phyId
:
this
.
$route
.
query
.
id
}).
then
(
res
=>
{
newExchangeAPI
({
number
:
5
000
,
phyId
:
this
.
$route
.
query
.
id
}).
then
(
res
=>
{
if
(
res
.
data
.
code
===
0
)
{
clearInterval
(
this
.
progressTimer
)
this
.
codeCurrentNum
++
...
...
@@ -424,7 +425,7 @@ import queryString from "query-string";
this
.
saveCodeEvent
(
2
)
},
2000
)
}
else
if
(
this
.
codeCurrentNum
==
Number
(
this
.
codeNum
-
1
)){
let
currentNum1
=
Number
(
this
.
codeTotal
-
this
.
codeCurrentNum
*
2
000
)
let
currentNum1
=
Number
(
this
.
codeTotal
-
this
.
codeCurrentNum
*
5
000
)
newExchangeAPI
({
number
:
currentNum1
,
phyId
:
this
.
$route
.
query
.
id
}).
then
(
res
=>
{
if
(
res
.
data
.
code
===
0
)
{
clearInterval
(
this
.
progressTimer
)
...
...
src/views/security_code_manage/security_code/index.vue
浏览文件 @
24298c86
...
...
@@ -430,21 +430,21 @@ import store from '@/store'
})
},
validateNum
(
val
){
if
(
val
>
1
0000
){
this
.
$message
.
warning
(
'防伪码生成数量最多不超过
1
0000'
)
this
.
codeNumberForm
.
number
=
1
0000
if
(
val
>
2
0000
){
this
.
$message
.
warning
(
'防伪码生成数量最多不超过
2
0000'
)
this
.
codeNumberForm
.
number
=
2
0000
}
},
dataSubmitCode
()
{
//批量创建--
2
000一次
dataSubmitCode
()
{
//批量创建--
5
000一次
if
(
this
.
codeNumberForm
.
number
&&
this
.
codeNumberForm
.
number
>
0
){
this
.
sending
=
true
this
.
progressNum
=
0
this
.
codeTotal
=
Number
(
this
.
codeNumberForm
.
number
)
this
.
codeNum
=
Math
.
ceil
(
this
.
codeTotal
/
2
000
)
this
.
codeNum
=
Math
.
ceil
(
this
.
codeTotal
/
5
000
)
this
.
codeCurrentNum
=
0
if
(
this
.
codeTotal
<=
2
000
){
if
(
this
.
codeTotal
<=
5
000
){
this
.
progressTimer
=
setInterval
(()
=>
{
if
(
this
.
progressNum
<
=
80
){
if
(
this
.
progressNum
<
80
){
this
.
progressNum
++
}
else
{
this
.
progressNum
=
80
...
...
@@ -465,7 +465,7 @@ import store from '@/store'
this
.
sending
=
false
;
}
});
}
else
if
(
this
.
codeTotal
>
2
000
){
}
else
if
(
this
.
codeTotal
>
5
000
){
this
.
saveCodeEvent
(
1
)
}
}
else
{
...
...
@@ -474,15 +474,16 @@ import store from '@/store'
},
saveCodeEvent
(
num
){
if
(
num
==
1
){
let
maxNum
=
Math
.
floor
((
100
/
this
.
codeNum
)
*
1
)
this
.
progressTimer
=
setInterval
(()
=>
{
if
(
this
.
progressNum
<
=
80
){
if
(
this
.
progressNum
<
maxNum
){
this
.
progressNum
++
}
else
{
this
.
progressNum
=
80
this
.
progressNum
=
maxNum
}
},
2000
)
}
newExchangeAPI
({
number
:
2
000
}).
then
(
res
=>
{
newExchangeAPI
({
number
:
5
000
}).
then
(
res
=>
{
if
(
res
.
data
.
code
===
0
)
{
clearInterval
(
this
.
progressTimer
)
this
.
codeCurrentNum
++
...
...
@@ -492,7 +493,7 @@ import store from '@/store'
this
.
saveCodeEvent
(
2
)
},
2000
)
}
else
if
(
this
.
codeCurrentNum
==
Number
(
this
.
codeNum
-
1
)){
let
currentNum1
=
Number
(
this
.
codeTotal
-
this
.
codeCurrentNum
*
2
000
)
let
currentNum1
=
Number
(
this
.
codeTotal
-
this
.
codeCurrentNum
*
5
000
)
newExchangeAPI
({
number
:
currentNum1
}).
then
(
res
=>
{
if
(
res
.
data
.
code
===
0
)
{
clearInterval
(
this
.
progressTimer
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论