Commit 3a4265c9 authored by WindyWTH's avatar WindyWTH

ECCS-1534完成

parent 92525925
......@@ -61,7 +61,7 @@
</a-col>
<a-col :md="12">
<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">
{{ item.description }}
</a-select-option>
......@@ -213,15 +213,14 @@ export default {
corpCode: this.formData.corpCode,
planCode: this.formData.planCode,
coverageCode: this.formData.coverageCode,
benefitCode: '',
benefitCode: undefined,
isDirect: "N",
status: "1",
};
this._getBenefitCode();
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;
console.log(this.editForm)
},
cancel() {
this.$refs.editForm.resetFields();
......@@ -243,7 +242,6 @@ export default {
const data = {
...this.editForm,
benefitCode: id || id === 0 ? benefitCode : benefitCode.join(',')
}
this._editBenefitData(data);
});
......
......@@ -74,8 +74,8 @@
</a-row> -->
<a-form-model-item label="币种">
<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">
{{ item.name }}
<a-select-option v-for="item in currencyCode" :key="item.refcd" :value="item.refcd">
{{ item.descCh }}
</a-select-option>
</a-select>
</a-form-model-item>
......@@ -135,7 +135,12 @@ export default {
if (row.limitCode.indexOf('07') === 0) {
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" },
{
......@@ -154,10 +159,7 @@ export default {
editForm: {},
frequencyCode: [],
limitCode: [],
currencyCode: [
{ code: "RMB", name: "人民币" },
{ code: "US", name: "美金" },
],
currencyCode: [],
statusCode: [
{ code: "1", name: "有效" },
{ code: "2", name: "无效" },
......@@ -170,6 +172,7 @@ export default {
},
mounted() {
this._getConditionList();
this._getRefcdByRefgrp()
},
methods: {
// 选择框筛选
......@@ -259,6 +262,15 @@ export default {
}
});
},
// 获取币种列表
_getRefcdByRefgrp() {
this.$apis.GETREFCDBYREFGRP({
modid: "CI",
refgrp: "CURRENCY_TYPE"
}).then((res) => {
this.currencyCode = res.content || [];
});
},
},
};
</script>
......
......@@ -49,7 +49,7 @@
:columns="columns"
:locale="{ emptyText: 'No Data' }"
:data-source="planData"
row-key="coverageCode"
row-key="id"
:pagination="false"
>
<template slot="operation" slot-scope="record">
......
......@@ -28,7 +28,12 @@ export default {
if (row.limitCode.indexOf('07') === 0) {
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: "remark" }
......@@ -39,6 +44,7 @@ export default {
};
},
mounted() {
this._getRefcdByRefgrp()
this._getConditionList();
},
methods: {
......@@ -63,6 +69,15 @@ export default {
this.conditionList = res.content || [];
});
},
// 获取币种列表
_getRefcdByRefgrp() {
this.$apis.GETREFCDBYREFGRP({
modid: "CI",
refgrp: "CURRENCY_TYPE"
}).then((res) => {
this.currencyCode = res.content || [];
});
},
},
};
</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