Commit 3a4265c9 authored by WindyWTH's avatar WindyWTH

ECCS-1534完成

parent 92525925
...@@ -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);
}); });
......
...@@ -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>
......
...@@ -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">
......
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment