Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bims
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
孙海亮
bims
Commits
3a4265c9
Commit
3a4265c9
authored
May 25, 2022
by
WindyWTH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ECCS-1534完成
parent
92525925
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
14 deletions
+39
-14
index.vue
src/views/welfare/edit/components/benefits/index.vue
+3
-5
index.vue
src/views/welfare/edit/components/condition/index.vue
+19
-7
index.vue
src/views/welfare/edit/index.vue
+1
-1
index.vue
src/views/welfare/info/components/condition/index.vue
+16
-1
No files found.
src/views/welfare/edit/components/benefits/index.vue
View file @
3a4265c9
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
</a-col>
</a-col>
<a-col
:md=
"12"
>
<a-col
:md=
"12"
>
<a-form-model-item
label=
"福利项目"
prop=
"benefitCode"
>
<a-form-model-item
label=
"福利项目"
prop=
"benefitCode"
>
<a-select
v-model=
"editForm.benefitCode"
show-search
allow-clear
:filterOption=
"filterCode"
:mode=
"editForm.id ? '' :
multiple
"
>
<a-select
v-model=
"editForm.benefitCode"
show-search
allow-clear
:filterOption=
"filterCode"
:mode=
"editForm.id ? '' :
'multiple'
"
>
<a-select-option
v-for=
"item in benefitCode"
:key=
"item.benefitCode + item.description"
:value=
"item.benefitCode"
>
<a-select-option
v-for=
"item in benefitCode"
:key=
"item.benefitCode + item.description"
:value=
"item.benefitCode"
>
{{ item.description }}
{{ item.description }}
</a-select-option>
</a-select-option>
...
@@ -213,15 +213,14 @@ export default {
...
@@ -213,15 +213,14 @@ export default {
corpCode
:
this
.
formData
.
corpCode
,
corpCode
:
this
.
formData
.
corpCode
,
planCode
:
this
.
formData
.
planCode
,
planCode
:
this
.
formData
.
planCode
,
coverageCode
:
this
.
formData
.
coverageCode
,
coverageCode
:
this
.
formData
.
coverageCode
,
benefitCode
:
''
,
benefitCode
:
undefined
,
isDirect
:
"
N
"
,
isDirect
:
"
N
"
,
status
:
"
1
"
,
status
:
"
1
"
,
};
};
this
.
_getBenefitCode
();
this
.
_getBenefitCode
();
this
.
editForm
=
this
.
$lodash
.
cloneDeep
(
data
);
this
.
editForm
=
this
.
$lodash
.
cloneDeep
(
data
);
this
.
editForm
.
benefitCode
=
this
.
editForm
.
benefitCode
?
this
.
editForm
.
benefitCode
.
split
(
'
,
'
)
:
this
.
editForm
.
benefitCode
//
this.editForm.benefitCode = this.editForm.benefitCode ? this.editForm.benefitCode.split(',') : this.editForm.benefitCode
this
.
isBenefitEditShow
=
true
;
this
.
isBenefitEditShow
=
true
;
console
.
log
(
this
.
editForm
)
},
},
cancel
()
{
cancel
()
{
this
.
$refs
.
editForm
.
resetFields
();
this
.
$refs
.
editForm
.
resetFields
();
...
@@ -243,7 +242,6 @@ export default {
...
@@ -243,7 +242,6 @@ export default {
const
data
=
{
const
data
=
{
...
this
.
editForm
,
...
this
.
editForm
,
benefitCode
:
id
||
id
===
0
?
benefitCode
:
benefitCode
.
join
(
'
,
'
)
benefitCode
:
id
||
id
===
0
?
benefitCode
:
benefitCode
.
join
(
'
,
'
)
}
}
this
.
_editBenefitData
(
data
);
this
.
_editBenefitData
(
data
);
});
});
...
...
src/views/welfare/edit/components/condition/index.vue
View file @
3a4265c9
...
@@ -74,8 +74,8 @@
...
@@ -74,8 +74,8 @@
</a-row> -->
</a-row> -->
<a-form-model-item
label=
"币种"
>
<a-form-model-item
label=
"币种"
>
<a-select
v-model=
"editForm.currency"
show-search
allow-clear
:filterOption=
"filterCode"
>
<a-select
v-model=
"editForm.currency"
show-search
allow-clear
:filterOption=
"filterCode"
>
<a-select-option
v-for=
"item in currencyCode"
:key=
"item.
code + item.name"
:value=
"item.code
"
>
<a-select-option
v-for=
"item in currencyCode"
:key=
"item.
refcd"
:value=
"item.refcd
"
>
{{ item.
name
}}
{{ item.
descCh
}}
</a-select-option>
</a-select-option>
</a-select>
</a-select>
</a-form-model-item>
</a-form-model-item>
...
@@ -135,7 +135,12 @@ export default {
...
@@ -135,7 +135,12 @@ export default {
if
(
row
.
limitCode
.
indexOf
(
'
07
'
)
===
0
)
{
if
(
row
.
limitCode
.
indexOf
(
'
07
'
)
===
0
)
{
return
val
+
'
%
'
return
val
+
'
%
'
}
}
return
val
for
(
let
i
=
0
;
i
<
this
.
currencyCode
.
length
;
i
++
)
{
if
(
this
.
currencyCode
[
i
].
refcd
===
row
.
currency
)
{
return
val
+
this
.
currencyCode
[
i
].
descCh
}
}
return
val
+
row
.
currency
}
},
}
},
{
title
:
"
备注
"
,
dataIndex
:
"
remark
"
},
{
title
:
"
备注
"
,
dataIndex
:
"
remark
"
},
{
{
...
@@ -154,10 +159,7 @@ export default {
...
@@ -154,10 +159,7 @@ export default {
editForm
:
{},
editForm
:
{},
frequencyCode
:
[],
frequencyCode
:
[],
limitCode
:
[],
limitCode
:
[],
currencyCode
:
[
currencyCode
:
[],
{
code
:
"
RMB
"
,
name
:
"
人民币
"
},
{
code
:
"
US
"
,
name
:
"
美金
"
},
],
statusCode
:
[
statusCode
:
[
{
code
:
"
1
"
,
name
:
"
有效
"
},
{
code
:
"
1
"
,
name
:
"
有效
"
},
{
code
:
"
2
"
,
name
:
"
无效
"
},
{
code
:
"
2
"
,
name
:
"
无效
"
},
...
@@ -170,6 +172,7 @@ export default {
...
@@ -170,6 +172,7 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
_getConditionList
();
this
.
_getConditionList
();
this
.
_getRefcdByRefgrp
()
},
},
methods
:
{
methods
:
{
// 选择框筛选
// 选择框筛选
...
@@ -259,6 +262,15 @@ export default {
...
@@ -259,6 +262,15 @@ export default {
}
}
});
});
},
},
// 获取币种列表
_getRefcdByRefgrp
()
{
this
.
$apis
.
GETREFCDBYREFGRP
({
modid
:
"
CI
"
,
refgrp
:
"
CURRENCY_TYPE
"
}).
then
((
res
)
=>
{
this
.
currencyCode
=
res
.
content
||
[];
});
},
},
},
};
};
</
script
>
</
script
>
...
...
src/views/welfare/edit/index.vue
View file @
3a4265c9
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
:columns="columns"
:columns="columns"
:locale="{ emptyText: 'No Data' }"
:locale="{ emptyText: 'No Data' }"
:data-source="planData"
:data-source="planData"
row-key="
coverageCode
"
row-key="
id
"
:pagination="false"
:pagination="false"
>
>
<template
slot=
"operation"
slot-scope=
"record"
>
<template
slot=
"operation"
slot-scope=
"record"
>
...
...
src/views/welfare/info/components/condition/index.vue
View file @
3a4265c9
...
@@ -28,7 +28,12 @@ export default {
...
@@ -28,7 +28,12 @@ export default {
if
(
row
.
limitCode
.
indexOf
(
'
07
'
)
===
0
)
{
if
(
row
.
limitCode
.
indexOf
(
'
07
'
)
===
0
)
{
return
val
+
'
%
'
return
val
+
'
%
'
}
}
return
val
for
(
let
i
=
0
;
i
<
this
.
currencyCode
.
length
;
i
++
)
{
if
(
this
.
currencyCode
[
i
].
refcd
===
row
.
currency
)
{
return
val
+
this
.
currencyCode
[
i
].
descCh
}
}
return
val
+
row
.
currency
}},
}},
{
title
:
"
剩余金额
"
,
dataIndex
:
"
leftValue
"
},
{
title
:
"
剩余金额
"
,
dataIndex
:
"
leftValue
"
},
{
title
:
"
备注
"
,
dataIndex
:
"
remark
"
}
{
title
:
"
备注
"
,
dataIndex
:
"
remark
"
}
...
@@ -39,6 +44,7 @@ export default {
...
@@ -39,6 +44,7 @@ export default {
};
};
},
},
mounted
()
{
mounted
()
{
this
.
_getRefcdByRefgrp
()
this
.
_getConditionList
();
this
.
_getConditionList
();
},
},
methods
:
{
methods
:
{
...
@@ -63,6 +69,15 @@ export default {
...
@@ -63,6 +69,15 @@ export default {
this
.
conditionList
=
res
.
content
||
[];
this
.
conditionList
=
res
.
content
||
[];
});
});
},
},
// 获取币种列表
_getRefcdByRefgrp
()
{
this
.
$apis
.
GETREFCDBYREFGRP
({
modid
:
"
CI
"
,
refgrp
:
"
CURRENCY_TYPE
"
}).
then
((
res
)
=>
{
this
.
currencyCode
=
res
.
content
||
[];
});
},
},
},
};
};
</
script
>
</
script
>
...
...
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