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
112e655e
Commit
112e655e
authored
Jun 07, 2022
by
liuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
detsel补充单据部分
parent
5a085abd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
81 additions
and
48 deletions
+81
-48
Pattern.js
src/model/Detsel/Pattern.js
+2
-2
Sel.vue
src/views/Business/Detsel/Sel.vue
+0
-0
SelMune.vue
src/views/Business/Detsel/SelMune.vue
+73
-41
Ptsmsg.vue
src/views/Public/Ptsmsg.vue
+6
-5
No files found.
src/model/Detsel/Pattern.js
View file @
112e655e
...
...
@@ -129,7 +129,7 @@ export default {
{
max
:
3
,
message
:
"长度不能超过3"
}
],
"bfdgrp.cbs.max.amt"
:[
{
type
:
"
number
"
,
required
:
false
,
message
:
"必输项"
},
{
type
:
"
string
"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
...
...
@@ -228,7 +228,7 @@ export default {
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
"bfdgrp.cbs.opn1.amt"
:[
{
type
:
"
number
"
,
required
:
false
,
message
:
"必输项"
},
{
type
:
"
string
"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
...
...
src/views/Business/Detsel/Sel.vue
View file @
112e655e
This diff is collapsed.
Click to expand it.
src/views/Business/Detsel/SelMune.vue
View file @
112e655e
<
template
>
<el-table
:data=
"d
ata"
border
stripe
:show-header=
"false"
:cell-style=
"cellSttyle"
>
<el-table-column
prop=
"title
"
align=
"center"
>
<template
slot-scope=
"scope"
>
<c-button
@
click
.
native=
"onNarBtnClick(scope.row.url, scope.row.hotsubx
)"
:title=
"scope.row.title
"
:disabled=
"scope.row.disabled"
>
{{
scope
.
row
.
title
}}
</c-button
>
<!--
<el-link
<el-table
:data=
"tableD
ata"
border
stripe
:show-header=
"false"
:cell-style=
"cellSttyle"
>
<el-table-column
prop=
"label
"
align=
"center"
>
<template
slot-scope=
"scope"
>
<c-button
@
click
.
native=
"onNarBtnClick(scope.row.url
)"
:label=
"scope.row.label
"
:disabled=
"scope.row.disabled"
>
{{
scope
.
row
.
label
}}
</c-button
>
<!--
<el-link
:disabled=
"scope.row.disabled"
:href=
"scope.row.url"
v-if=
"scope.row.title"
>
{{
scope
.
row
.
title
}}
</el-link
>
-->
</
template
>
</el-table-column>
</el-table>
</
template
>
</el-table-column>
</el-table>
</template>
<
script
>
import
commonProcess
from
"~/mixin/commonProcess"
;
export
default
{
inject
:
[
"root"
],
props
:
[
"data"
,
"model"
],
mixins
:
[
commonProcess
],
// 里面包含了Default、Check等的公共处理
data
()
{
return
{
cellSttyle
:
{
height
:
"25px"
},
};
},
methods
:
{
//各入口按钮请求
async
onNarBtnClick
(
href
,
hotsubx
)
{
let
rtnmsg
=
await
this
.
executeRule
(
`cfgfil.hotsub
${
hotsubx
}
`
);
console
.
log
(
"cfgfil.code:"
+
this
.
model
.
cfgfil
[
`subtrn
${
hotsubx
}
`
]);
if
((
rtnmsg
.
respCode
==
SUCCESS
))
{
this
.
$router
.
history
.
push
(
href
);
}
else
{
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
"服务请求失败!"
});
}
inject
:
[
"root"
],
props
:
[
"data"
,
"model"
],
mixins
:
[
commonProcess
],
// 里面包含了Default、Check等的公共处理
data
()
{
return
{
cellSttyle
:
{
height
:
"25px"
},
meumItem
:
[],
};
},
methods
:
{
//各入口按钮请求
async
onNarBtnClick
(
url
)
{
let
rtnmsg
=
await
this
.
executeRule
(
"dedgrp.rec.ownref,cfgfil.hotsub7"
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
updateModel
(
rtnmsg
.
data
);
this
.
$router
.
history
.
push
(
"/business/"
+
url
);
}
else
{
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
"服务请求失败!"
,
});
}
// let rtnmsg = await this.executeRule(`cfgfil.hotsub${hotsubx}`);
// console.log("cfgfil.code:" + this.model.cfgfil[`subtrn${hotsubx}`]);
// if (rtnmsg.respCode == SUCCESS) {
// this.$router.history.push(href);
// } else {
// this.$notify.error({
// title: "错误",
// message: "服务请求失败!",
// });
// }
},
},
computed
:
{
tableData
()
{
const
arr
=
[];
var
data
=
this
.
data
;
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
const
items
=
data
[
i
].
split
(
"
\
t"
);
arr
.
push
({
url
:
items
[
0
],
label
:
items
[
1
],
disabled
:
items
[
2
]
==
"N"
?
true
:
false
,
other
:
items
[
3
],
});
}
console
.
log
(
arr
);
return
arr
;
},
},
},
};
</
script
>
<
style
>
a
{
text-decoration-line
:
none
;
color
:
#606266
;
text-decoration-line
:
none
;
color
:
#606266
;
}
a
:hover
{
color
:
blue
;
color
:
blue
;
}
</
style
>
\ No newline at end of file
src/views/Public/Ptsmsg.vue
View file @
112e655e
<
template
>
<div
class=
"eibs-tab"
>
<!--
<div
class=
"eibs-tab"
>
-->
<div>
<c-col
:span=
"24"
>
<el-form-item
:label=
"argadr.title + '编号'"
:prop=
"
argadr.url + '
ref'"
>
<el-form-item
:label=
"argadr.title + '编号'"
:prop=
"
'$
{argadr.grp}.${argadr.rol}.pts.
ref'">
<c-input
v-model=
"model[argadr.
url + 'ref']
"
v-model=
"model[argadr.
grp][argadr.rol].pts.ref
"
maxlength=
"16"
:placeholder=
"'请输入' + argadr.title + '编号'"
:disabled=
"disabled"
...
...
@@ -12,9 +13,9 @@
</c-col>
<c-col
:span=
"24"
>
<el-form-item
:label=
"argadr.title + '名称'"
:prop=
"
argadr.url + '
nam'"
>
<el-form-item
:label=
"argadr.title + '名称'"
:prop=
"
'$
{argadr.grp}.${argadr.rol}.pts.
nam'">
<c-input
v-model=
"model[argadr.
url + 'nam']
"
v-model=
"model[argadr.
grp][argadr.rol].pts.nam
"
maxlength=
"40"
:placeholder=
"'请输入' + argadr.title + '名称'"
:disabled=
"disabled"
...
...
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