Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
Details
Activity
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
fukai
vue-gjjs
Commits
b16a738b
Commit
b16a738b
authored
Dec 27, 2022
by
hewei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
静态交易优化
parent
46adaf9c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
47 additions
and
46 deletions
+47
-46
atp.js
src/service/test/atp.js
+2
-2
cty.js
src/service/test/cty.js
+2
-2
cur.js
src/service/test/cur.js
+2
-2
Atp.js
src/views/Statics/Dbiatp/Atp.js
+2
-1
index.vue
src/views/Statics/Dbiatp/index.vue
+9
-9
index.vue
src/views/Statics/Dbicty/index.vue
+20
-20
index.vue
src/views/Statics/Dbicur/index.vue
+10
-10
No files found.
src/service/test/atp.js
View file @
b16a738b
...
...
@@ -12,8 +12,8 @@ export function add(data) {
return
Api
.
post
(
"/manager/atp/add"
,
data
)
}
export
function
query
Cod
(
cod
)
{
return
Api
.
post
(
`/manager/atp/
query
Cod?cod=
${
cod
}
`
)
export
function
has
Cod
(
cod
)
{
return
Api
.
post
(
`/manager/atp/
has
Cod?cod=
${
cod
}
`
)
}
export
function
edit
(
data
)
{
...
...
src/service/test/cty.js
View file @
b16a738b
...
...
@@ -12,8 +12,8 @@ export function add(data) {
return
Api
.
post
(
"/manager/cty/add"
,
data
)
}
export
function
query
Cod
(
cod
)
{
return
Api
.
post
(
`/manager/cty/
query
Cod?cod=
${
cod
}
`
)
export
function
has
Cod
(
cod
)
{
return
Api
.
post
(
`/manager/cty/
has
Cod?cod=
${
cod
}
`
)
}
export
function
edit
(
data
)
{
...
...
src/service/test/cur.js
View file @
b16a738b
...
...
@@ -12,8 +12,8 @@ export function add(data) {
return
Api
.
post
(
"/manager/cur/add"
,
data
)
}
export
function
query
Cod
(
cod
)
{
return
Api
.
post
(
`/manager/cur/
query
Cod?cod=
${
cod
}
`
)
export
function
has
Cod
(
cod
)
{
return
Api
.
post
(
`/manager/cur/
has
Cod?cod=
${
cod
}
`
)
}
export
function
edit
(
data
)
{
...
...
src/views/Statics/Dbiatp/Atp.js
View file @
b16a738b
...
...
@@ -88,7 +88,8 @@ export const Pattern = {
{
"max"
:
1
,
"message"
:
"最大长度1个字符"
,
"trigger"
:
"blur"
}
],
"dealtim"
:
[
{
"required"
:
true
,
"message"
:
"无法保存数据"
}
{
"required"
:
true
,
"message"
:
"无法保存数据"
},
{
"max"
:
5
,
"message"
:
"不能大于两位数"
}
],
}
...
...
src/views/Statics/Dbiatp/index.vue
View file @
b16a738b
...
...
@@ -53,7 +53,7 @@ import Atp, { Pattern } from "./Atp.js";
import
AtpInfo
from
"./AtpInfo.vue"
;
import
{
queryById
,
add
,
edit
,
deleteById
,
query
Cod
}
from
"~/service/test/atp.js"
;
import
{
queryById
,
add
,
edit
,
deleteById
,
has
Cod
}
from
"~/service/test/atp.js"
;
export
default
{
name
:
"StaticsDbiatp"
,
...
...
@@ -103,7 +103,7 @@ export default {
commitAdd
()
{
this
.
$refs
.
modelForm
.
validate
((
validated
)
=>
{
if
(
validated
)
{
query
Cod
(
this
.
model
.
cod
)
has
Cod
(
this
.
model
.
cod
)
.
then
((
res
)
=>
{
console
.
log
(
"res"
+
res
)
if
(
!
res
)
{
...
...
@@ -128,13 +128,13 @@ export default {
this
.
$refs
.
modelForm
.
validate
((
validated
)
=>
{
if
(
validated
)
{
edit
(
this
.
model
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"修改成功!"
);
this
.
goBack
(
true
)
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"修改失败!"
);
});
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"修改成功!"
);
this
.
goBack
(
true
)
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"修改失败!"
);
});
}
else
{
Utils
.
formValidateTips
(
this
.
$refs
.
modelForm
.
fields
)
}
...
...
src/views/Statics/Dbicty/index.vue
View file @
b16a738b
...
...
@@ -59,7 +59,7 @@ import Cty, { Pattern } from "./Cty.js";
import
CtyInfo
from
"./CtyInfo.vue"
;
import
BopctyInfo
from
"./BopctyInfo.vue"
;
import
{
queryById
,
add
,
edit
,
deleteById
,
editBopctyData
,
deleteBopctyById
,
query
Cod
}
from
"~/service/test/cty.js"
;
import
{
queryById
,
add
,
edit
,
deleteById
,
editBopctyData
,
deleteBopctyById
,
has
Cod
}
from
"~/service/test/cty.js"
;
export
default
{
name
:
"StaticsDbicty"
,
...
...
@@ -112,7 +112,7 @@ export default {
this
.
$refs
.
modelForm
.
validate
((
validated
)
=>
{
if
(
validated
)
{
this
.
model
.
codBopcty
=
this
.
model
.
bopcod
;
query
Cod
(
this
.
model
.
cod
)
has
Cod
(
this
.
model
.
cod
)
.
then
((
res
)
=>
{
if
(
!
res
)
{
add
(
this
.
model
)
...
...
@@ -125,7 +125,7 @@ export default {
});
}
else
{
this
.
$message
.
error
(
"国家代码重复"
)
return
this
.
$message
.
error
(
"国家代码重复"
)
}
})
...
...
@@ -138,23 +138,23 @@ export default {
this
.
$refs
.
modelForm
.
validate
((
validated
)
=>
{
if
(
validated
)
{
if
(
this
.
tabPosition
===
`tab-cty`
){
edit
(
this
.
model
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"国家地区信息保存成功!"
);
this
.
goBack
(
true
)
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"国家地区信息保存失败!"
);
});}
else
{
editBopctyData
(
this
.
model
.
inr
,
this
.
model
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"收支申报国家代码表保存成功!"
);
this
.
goBack
(
true
)
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"收支申报国家代码表保存失败!"
);
});
}
edit
(
this
.
model
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"国家地区信息保存成功!"
);
this
.
goBack
(
true
)
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"国家地区信息保存失败!"
);
});}
else
{
editBopctyData
(
this
.
model
.
inr
,
this
.
model
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"收支申报国家代码表保存成功!"
);
this
.
goBack
(
true
)
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"收支申报国家代码表保存失败!"
);
});
}
}
else
{
Utils
.
formValidateTips
(
this
.
$refs
.
modelForm
.
fields
)
}
...
...
src/views/Statics/Dbicur/index.vue
View file @
b16a738b
...
...
@@ -23,7 +23,7 @@ import Cur, { Pattern } from "../Infcur/Cur.js";
import
Currency
from
"./Currency.vue"
;
import
{
curInfo
,
add
,
edit
,
deleteById
,
query
Cod
}
from
"~/service/test/cur.js"
;
import
{
curInfo
,
add
,
edit
,
deleteById
,
has
Cod
}
from
"~/service/test/cur.js"
;
export
default
{
name
:
"StaticsDbicur"
,
...
...
@@ -75,7 +75,7 @@ export default {
commitAdd
()
{
this
.
$refs
.
modelForm
.
validate
((
validated
)
=>
{
if
(
validated
)
{
query
Cod
(
this
.
model
.
cod
)
has
Cod
(
this
.
model
.
cod
)
.
then
(((
res
)
=>
{
if
(
!
res
)
{
add
(
this
.
model
)
...
...
@@ -87,7 +87,7 @@ export default {
this
.
$message
.
error
(
"保存失败!"
);
});
}
else
{
this
.
$message
.
error
(
"货币种类重复"
)
return
this
.
$message
.
error
(
"货币种类重复"
)
}
}))
...
...
@@ -100,13 +100,13 @@ export default {
this
.
$refs
.
modelForm
.
validate
((
validated
)
=>
{
if
(
validated
)
{
edit
(
this
.
model
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"保存成功!"
);
this
.
goBack
(
true
)
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"保存失败!"
);
});
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"保存成功!"
);
this
.
goBack
(
true
)
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"保存失败!"
);
});
}
else
{
Utils
.
formValidateTips
(
this
.
$refs
.
modelForm
.
fields
)
}
...
...
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