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
zhouqian
vue-gjjs
Commits
0a55d0bf
Commit
0a55d0bf
authored
Jan 06, 2022
by
wangguangchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
复核、到单、付款交易优化
parent
35431031
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
169 additions
and
126 deletions
+169
-126
BusinessButton.vue
src/components/BusinessButton.vue
+123
-83
Event.js
src/model/Trnrel/Event.js
+2
-1
index.vue
src/views/Business/Bdtset/index.vue
+19
-13
index.vue
src/views/Business/Ditdck/index.vue
+24
-23
Inftrnps.vue
src/views/Business/Trnrel/Inftrnps.vue
+1
-1
index.vue
src/views/Review/index.vue
+0
-5
No files found.
src/components/BusinessButton.vue
View file @
0a55d0bf
<
template
>
<
template
>
<div
class=
"bus-button"
>
<div
class=
"bus-button"
>
<c-button
type=
"primary"
v-on:click=
"save"
>
{{
$t
(
'buttons.submit'
)
}}
</c-button>
<c-button
type=
"primary"
v-on:click=
"save"
>
{{
<c-button
type=
"primary"
v-on:click=
"pedding"
>
{{
$t
(
'buttons.stash'
)
}}
</c-button>
$t
(
"buttons.submit"
)
<c-button
type=
"primary"
v-on:click=
"check"
>
{{
$t
(
'buttons.check'
)
}}
</c-button>
}}
</c-button>
<c-button
v-on:click=
"exit"
>
{{
$t
(
'buttons.quit'
)
}}
</c-button>
<c-button
type=
"primary"
v-on:click=
"pedding"
>
{{
</div>
$t
(
"buttons.stash"
)
}}
</c-button>
<c-button
type=
"primary"
v-on:click=
"check"
>
{{
$t
(
"buttons.check"
)
}}
</c-button>
<c-button
v-on:click=
"exit"
>
{{
$t
(
"buttons.quit"
)
}}
</c-button>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
commonApi
from
"~/mixin/commonApi"
import
commonApi
from
"~/mixin/commonApi"
;
import
Utils
from
"~/utils"
import
Utils
from
"~/utils"
;
export
default
{
export
default
{
props
:[
"$pntvm"
],
props
:
[
"$pntvm"
],
data
(){
data
()
{
return
{
return
{};
},
methods
:
{
async
save
()
{
console
.
log
(
123
);
let
vm
=
this
.
getVM
();
let
result
=
await
vm
.
save
();
console
.
log
(
result
);
// if (result.respCode == SUCCESS) {
// this.$notify({
// title: '成功',
// message: '保存成功',
// type: 'success'
// });
// this.$router.history.push("/business/trnrel")
// } else {
// }
if
(
result
.
respCode
==
SUCCESS
&&
Object
.
keys
(
result
.
fieldErrors
).
length
==
0
)
{
this
.
$notify
({
title
:
"成功"
,
message
:
"保存成功"
,
type
:
"success"
,
});
this
.
$store
.
dispatch
(
"TagsView/delView"
,
this
.
$route
);
this
.
$router
.
history
.
push
(
"/taskList"
,
()
=>
{
this
.
$store
.
commit
(
"setTaskListTabVal"
,
"trnrel"
);
});
}
else
if
(
result
.
fieldErrors
&&
Object
.
keys
(
result
.
fieldErrors
).
length
>
0
)
{
let
errorMsg
=
""
;
let
errorMsgkey
=
""
;
let
errorMsgVal
=
""
;
for
(
const
key
in
result
.
fieldErrors
)
{
errorMsgkey
=
key
;
errorMsgVal
=
result
.
fieldErrors
[
key
];
errorMsg
=
errorMsg
+
errorMsgkey
+
":"
+
errorMsgVal
+
";"
;
}
}
this
.
$notify
.
error
({
title
:
"失败"
,
message
:
"保存失败!错误信息["
+
errorMsg
+
"]"
,
});
}
else
{
this
.
$notify
({
title
:
"失败"
,
message
:
"保存失败"
,
type
:
"error"
,
});
}
},
async
pedding
()
{
let
result
=
await
this
.
getVM
().
pedding
();
console
.
log
(
result
);
if
(
result
.
respCode
==
SUCCESS
)
{
this
.
$notify
({
title
:
"成功"
,
message
:
"暂存成功"
,
type
:
"success"
,
});
this
.
$router
.
history
.
push
(
"/business/sptsel"
);
}
else
{
this
.
$notify
({
title
:
"失败"
,
message
:
"暂存失败"
,
type
:
"error"
,
});
}
},
},
methods
:{
async
check
()
{
async
save
(){
let
result
=
await
this
.
getVM
().
checkAll
();
console
.
log
(
123
)
if
(
result
.
respCode
!=
SUCCESS
)
{
let
vm
=
this
.
getVM
();
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
result
.
respMsg
});
let
result
=
await
vm
.
save
()
}
else
{
console
.
log
(
result
)
// 清除之前的校验状态
if
(
result
.
respCode
==
SUCCESS
)
{
this
.
getVM
().
$refs
.
modelForm
.
clearValidate
();
this
.
$notify
({
const
fields
=
this
.
getVM
().
$refs
.
modelForm
.
fields
;
title
:
'成功'
,
const
fieldErrors
=
result
.
fieldErrors
;
message
:
'保存成功'
,
this
.
getVM
().
updateModel
(
result
.
data
);
type
:
'success'
Utils
.
positioningErrorMsg
(
fieldErrors
,
fields
);
});
const
tab
=
Utils
.
positioningErrorMsg
(
fieldErrors
,
fields
);
this
.
$router
.
history
.
push
(
"/business/trnrel"
)
if
(
tab
)
{
}
else
{
// tab切换之后,需出发tab-click的事件
this
.
$notify
({
this
.
getVM
().
tabClick
(
tab
);
title
:
'失败'
,
message
:
'保存失败'
,
type
:
'error'
});
}
},
async
pedding
(){
let
result
=
await
this
.
getVM
().
pedding
()
console
.
log
(
result
)
if
(
result
.
respCode
==
SUCCESS
)
{
this
.
$notify
({
title
:
'成功'
,
message
:
'暂存成功'
,
type
:
'success'
});
this
.
$router
.
history
.
push
(
"/business/sptsel"
)
}
else
{
this
.
$notify
({
title
:
'失败'
,
message
:
'暂存失败'
,
type
:
'error'
});
}
},
async
check
(){
let
result
=
await
this
.
getVM
().
checkAll
()
if
(
result
.
respCode
!=
SUCCESS
)
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
result
.
respMsg
});
}
else
{
// 清除之前的校验状态
this
.
getVM
().
$refs
.
modelForm
.
clearValidate
()
const
fields
=
this
.
getVM
().
$refs
.
modelForm
.
fields
const
fieldErrors
=
result
.
fieldErrors
;
this
.
getVM
().
updateModel
(
result
.
data
)
Utils
.
positioningErrorMsg
(
fieldErrors
,
fields
)
const
tab
=
Utils
.
positioningErrorMsg
(
fieldErrors
,
fields
);
if
(
tab
)
{
// tab切换之后,需出发tab-click的事件
this
.
getVM
().
tabClick
(
tab
);
}
}
},
exit
(){
this
.
$confirm
(
'您有未保存的数据,确定退出吗, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
$router
.
history
.
push
(
"/home"
)
})
},
getVM
(){
return
this
.
$pntvm
}
}
}
}
}
},
exit
()
{
this
.
$confirm
(
"您有未保存的数据,确定退出吗, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
}).
then
(()
=>
{
this
.
$router
.
history
.
push
(
"/home"
);
});
},
getVM
()
{
return
this
.
$pntvm
;
},
},
};
</
script
>
</
script
>
<
style
>
<
style
>
.bus-button
{
.bus-button
{
margin-bottom
:
10px
;
margin-bottom
:
10px
;
}
}
.bus-button
:first-child
{
.bus-button
:first-child
{
margin-left
:
0
;
margin-left
:
0
;
}
}
</
style
>
</
style
>
\ No newline at end of file
src/model/Trnrel/Event.js
View file @
0a55d0bf
...
@@ -152,8 +152,9 @@ export default {
...
@@ -152,8 +152,9 @@ export default {
for
(
const
key
in
rtnmsg
.
fieldErrors
)
{
for
(
const
key
in
rtnmsg
.
fieldErrors
)
{
errorMsgkey
=
key
;
errorMsgkey
=
key
;
errorMsgVal
=
rtnmsg
.
fieldErrors
[
key
];
errorMsgVal
=
rtnmsg
.
fieldErrors
[
key
];
errorMsg
=
errorMsg
+
errorMsgkey
+
':'
+
errorMsgVal
+
";"
;
}
}
errorMsg
=
errorMsgkey
+
':'
+
errorMsgVal
;
}
else
if
(
rtnmsg
.
respMsg
)
{
}
else
if
(
rtnmsg
.
respMsg
)
{
errorMsg
=
rtnmsg
.
respMsg
;
errorMsg
=
rtnmsg
.
respMsg
;
}
}
...
...
src/views/Business/Bdtset/index.vue
View file @
0a55d0bf
...
@@ -91,6 +91,7 @@
...
@@ -91,6 +91,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils/index"
;
import
CodeTable
from
"~/config/CodeTable"
import
CodeTable
from
"~/config/CodeTable"
import
Bdtset
from
"~/model/Bdtset"
import
Bdtset
from
"~/model/Bdtset"
import
CommonProcess
from
"~/mixin/CommonProcess"
import
CommonProcess
from
"~/mixin/CommonProcess"
...
@@ -179,21 +180,26 @@ export default {
...
@@ -179,21 +180,26 @@ export default {
},
},
created
:
async
function
(){
created
:
async
function
(){
console
.
log
(
"进入bdtset交易"
);
console
.
log
(
new
Bdtset
().
data
)
let
rtnmsg
=
await
this
.
init
({})
let
that
=
this
;
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
updateModel
(
rtnmsg
.
data
)
that
.
$refs
.
utlp
.
stmData
.
data
=
rtnmsg
.
data
.
liaall_tenstm
.
rows
//TODO 处理数据逻辑
console
.
log
(
"进入bdtset交易"
);
let
rtnmsg
=
await
this
.
init
(
this
.
$route
.
query
)
let
that
=
this
;
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
console
.
log
(
rtnmsg
)
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
)
that
.
$refs
.
utlp
.
stmData
.
data
=
rtnmsg
.
data
.
liaall_tenstm
.
rows
console
.
log
(
this
.
model
);
if
(
this
.
isInDisplay
){
this
.
restoreDisplay
()
}
}
else
}
{
else
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
{
}
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
}
}
}
</
script
>
</
script
>
...
...
src/views/Business/Ditdck/index.vue
View file @
0a55d0bf
...
@@ -76,6 +76,7 @@ import Utils from "~/utils/index";
...
@@ -76,6 +76,7 @@ import Utils from "~/utils/index";
import
CodeTable
from
"~/config/CodeTable"
;
import
CodeTable
from
"~/config/CodeTable"
;
import
Ditdck
from
"~/model/Ditdck"
;
import
Ditdck
from
"~/model/Ditdck"
;
import
CommonProcess
from
"~/mixin/CommonProcess"
;
import
CommonProcess
from
"~/mixin/CommonProcess"
;
import
CommonFuncs
from
"~/mixin/CommonFuncs"
;
import
Pattern
from
"~/model/Ditdck/Pattern"
;
import
Pattern
from
"~/model/Ditdck/Pattern"
;
import
Default
from
"~/model/Ditdck/Default"
;
import
Default
from
"~/model/Ditdck/Default"
;
import
Check
from
"~/model/Ditdck/Check"
;
import
Check
from
"~/model/Ditdck/Check"
;
...
@@ -113,7 +114,7 @@ export default {
...
@@ -113,7 +114,7 @@ export default {
root
:
this
,
root
:
this
,
};
};
},
},
mixins
:
[
CommonProcess
],
// 里面包含了Default、Check等的公共处理
mixins
:
[
CommonProcess
,
CommonFuncs
],
// 里面包含了Default、Check等的公共处理
data
()
{
data
()
{
return
{
return
{
isShowDocpre
:
false
,
isShowDocpre
:
false
,
...
@@ -134,30 +135,30 @@ export default {
...
@@ -134,30 +135,30 @@ export default {
},
},
created
:
async
function
()
{
created
:
async
function
()
{
// console.log("进入ditdck交易");
// let rtnmsg = await this.init(this.$route.query)
// if(rtnmsg.respCode == SUCCESS)
// {
// //TODO 处理数据逻辑
// console.log(rtnmsg)
// Utils.copyValueFromVO(this.model,rtnmsg.data)
// console.log(this.model);
// if(this.isInDisplay){
// this.restoreDisplay()
// }
// }
// else
// {
// this.$notify.error({title: '错误',message: '服务请求失败!'});
// }
console
.
log
(
"进入ditdck交易"
);
console
.
log
(
"进入ditdck交易"
);
let
rtnmsg
=
await
this
.
init
({});
let
rtnmsg
=
await
this
.
init
(
this
.
$route
.
query
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
{
}
else
{
//TODO 处理数据逻辑
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
"服务请求失败!"
});
console
.
log
(
rtnmsg
)
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
)
console
.
log
(
this
.
model
);
if
(
this
.
isInDisplay
){
this
.
restoreDisplay
()
}
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
// console.log("进入ditdck交易");
// let rtnmsg = await this.init({});
// if (rtnmsg.respCode == SUCCESS) {
// Utils.copyValueFromVO(this.model, rtnmsg.data);
// } else {
// this.$notify.error({ title: "错误", message: "服务请求失败!" });
// }
},
},
methods
:
{
methods
:
{
changeShowDocpre
(
val
)
{
changeShowDocpre
(
val
)
{
...
...
src/views/Business/Trnrel/Inftrnps.vue
View file @
0a55d0bf
...
@@ -401,7 +401,7 @@
...
@@ -401,7 +401,7 @@
fixed=
"right"
fixed=
"right"
prop=
"display"
prop=
"display"
label=
"操作"
label=
"操作"
width=
"
23
0px"
width=
"
15
0px"
>
>
<
template
slot=
"header"
>
<
template
slot=
"header"
>
<c-col
:span=
"11"
style=
"text-align:left"
><span>
操作
</span></c-col>
<c-col
:span=
"11"
style=
"text-align:left"
><span>
操作
</span></c-col>
...
...
src/views/Review/index.vue
View file @
0a55d0bf
...
@@ -140,11 +140,6 @@ export default {
...
@@ -140,11 +140,6 @@ export default {
mounted
:
function
()
{
mounted
:
function
()
{
this
.
init
()
this
.
init
()
},
},
watch
:
{
$route
:
function
(
to
,
from
)
{
this
.
init
()
}
},
methods
:
{
methods
:
{
async
init
()
{
async
init
()
{
this
.
reset
()
this
.
reset
()
...
...
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