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
5581092c
Commit
5581092c
authored
Oct 18, 2022
by
lianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
brtset业务里的单据结算页中的待付款单据表格默认选中
parent
81671d33
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
12 deletions
+41
-12
Pattern.js
src/model/Brtset/Pattern.js
+2
-1
Ovwp.vue
src/views/Business/Brtset/Ovwp.vue
+1
-1
Utlp.vue
src/views/Business/Brtset/Utlp.vue
+36
-8
index.vue
src/views/Business/Brtset/index.vue
+2
-2
No files found.
src/model/Brtset/Pattern.js
View file @
5581092c
...
...
@@ -21,7 +21,8 @@ export default {
"lidgrp.cbs.opn1.amt"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }//满足非负数
{
pattern
:
/
(
^-
?\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^-
?\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
//满足正负数
],
"brtp.recget.sdamod.dadsnd"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
...
...
src/views/Business/Brtset/Ovwp.vue
View file @
5581092c
...
...
@@ -3,7 +3,7 @@
<el-collapse
v-model=
"activeNames"
@
change=
"handleChange"
>
<el-collapse-item
title=
"单据结算"
name=
"utlp"
>
<m-utlp
:model=
"model"
:codes=
"codes"
/>
<m-utlp
ref=
"utlp"
:model=
"model"
:codes=
"codes"
/>
</el-collapse-item>
<el-collapse-item
title=
"创建融资"
name=
"trtcrep"
v-if=
"model.trtcre.crefinflg != ''"
>
...
...
src/views/Business/Brtset/Utlp.vue
View file @
5581092c
...
...
@@ -353,7 +353,7 @@
label-width=
"120px"
style=
"float: left"
>
<c-checkbox
v-model=
"model.mtabut.clsflg"
true-label=
"
X
"
<c-checkbox
v-model=
"model.mtabut.clsflg"
true-label=
"
C
"
>
闭卷标识
</c-checkbox
>
</el-form-item>
...
...
@@ -760,16 +760,44 @@ export default {
}
});
},
// async multipleSelect(selection) {
// if (selection.length > 0) {
// console.log(selection);
// let line = this.model.liaall.tenstm.rows[selection];
// let lines = line.split("\t");
// this.model.setmod.docamt = lines[5];
// } else {
// this.model.setmod.docamt = 0.0;
// }
// this.onChangeDocamt();
// },
async
multipleSelect
(
selection
)
{
if
(
selection
.
length
>
0
)
{
console
.
log
(
selection
);
let
line
=
this
.
model
.
liaall
.
tenstm
.
rows
[
selection
];
let
lines
=
line
.
split
(
"
\
t"
);
this
.
model
.
setmod
.
docamt
=
lines
[
5
];
console
.
log
(
selection
);
if
(
selection
.
length
>
1
)
{
this
.
$notify
({
title
:
"error"
,
message
:
"You cannot select more than one tenor"
,
type
:
"error"
,
});
}
else
{
this
.
model
.
setmod
.
docamt
=
0.0
;
let
chkIds
;
if
(
selection
.
length
===
0
)
{
chkIds
=
[];
// this.model.liaall.tensetstm.rows = []
// this.model.liaall.tenstm.rows = []
}
else
{
chkIds
=
[
selection
[
0
]
+
1
];
}
//
console
.
log
(
this
.
model
.
liaall
.
tensetstm
);
let
params
=
{
chkDst
:
"liaall.tenstm"
,
chkIds
};
const
rtnmsg
=
await
this
.
executeRule
(
"liaall.tenstm"
,
params
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
updateModel
(
rtnmsg
.
data
);
}
else
{
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
"服务请求失败!"
});
}
}
this
.
onChangeDocamt
();
},
},
created
:
function
()
{},
...
...
src/views/Business/Brtset/index.vue
View file @
5581092c
...
...
@@ -398,11 +398,11 @@ export default {
let
rtnmsg
=
await
this
.
init
(
this
.
$route
.
query
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
updateModel
(
rtnmsg
.
data
);
this
.
model
.
mtabut
.
clsflg
=
"X"
;
//
this.model.mtabut.clsflg = "X";
if
(
this
.
isInDisplay
)
{
this
.
restoreDisplay
();
}
this
.
$refs
.
utlp
.
$refs
.
table
.
$refs
.
table
.
toggleAllSelection
();
//表格,默认勾选
this
.
$refs
.
ovwp
.
$refs
.
utlp
.
$refs
.
table
.
$refs
.
table
.
toggleAllSelection
();
//表格,默认勾选
}
else
{
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
"服务请求失败!"
});
}
...
...
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