|
|
@@ -18,9 +18,9 @@
|
|
|
<div class="conferencecost-header-left">
|
|
|
<div class="conferencecost-header-left-item">
|
|
|
<label style="width:40px;">会务: </label>
|
|
|
- <el-select @change="conferenceidchange" size="small" v-model="conferenceid" filterable
|
|
|
+ <el-select remote :remote-method="ConferenceAffairsKeywordSearch" @change="conferenceidchange" size="small" v-model="conferenceid" filterable
|
|
|
placeholder="请选择">
|
|
|
- <el-option v-for="item in conferenceidarr" :key="item.id" :label="item.teamName"
|
|
|
+ <el-option v-for="item in conferenceidarrs" :key="item.id" :label="item.teamName"
|
|
|
:value="item.id">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
@@ -245,7 +245,7 @@
|
|
|
注:其中
|
|
|
<el-input-number style="width:120px;" :precision="2" size="mini" :controls="false"
|
|
|
v-model="conferenceAffairsCost.allocationAmount"></el-input-number>
|
|
|
- <el-select @change="allocationGroupIdchange" style="width:120px;" size="mini"
|
|
|
+ <el-select @change="allocationGroupIdchange" style="width:120px;" size="mini"
|
|
|
v-model="conferenceAffairsCost.allocationCurrency" clearable>
|
|
|
<el-option v-for="item in options" :key="item.currencyId" :label="item.currencyCode"
|
|
|
:value="item.currencyId">
|
|
|
@@ -254,7 +254,7 @@
|
|
|
,会分摊到
|
|
|
<el-select filterable style="width:200px;" size="mini" v-model="conferenceAffairsCost.allocationGroupId"
|
|
|
clearable>
|
|
|
- <el-option v-for="item in conferenceidarr" :key="item.id" :label="item.teamName" :value="item.id">
|
|
|
+ <el-option v-for="item in conferenceidarrs" :key="item.id" :label="item.teamName" :value="item.id">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
@@ -317,6 +317,7 @@ export default {
|
|
|
],
|
|
|
conferenceid: 0,
|
|
|
conferenceidarr: [],
|
|
|
+ conferenceidarrs: [],
|
|
|
input: '',
|
|
|
options: [],
|
|
|
token: '',
|
|
|
@@ -384,6 +385,30 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ ConferenceAffairsKeywordSearch(query) {
|
|
|
+ if (query !== '') {
|
|
|
+ this.selectLoading=true;
|
|
|
+ var url = "/api/search/ConferenceAffairsKeywordSearch/" + query
|
|
|
+ var that = this
|
|
|
+ this.$axios({
|
|
|
+ method: 'get',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer ' + this.token
|
|
|
+ },
|
|
|
+ }).then(function (res) {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ that.conferenceidarrs = res.data.data;
|
|
|
+ }else{
|
|
|
+ that.conferenceidarrs=[];
|
|
|
+ }
|
|
|
+ }).finally(()=>{
|
|
|
+ that.selectLoading=false;
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.conferenceidarrs=this.conferenceidarr;
|
|
|
+ }
|
|
|
+ },
|
|
|
reservetwo(value) {
|
|
|
// 截取当前数据到小数点后两位
|
|
|
let realVal = new Decimal(value).toFixed(2)
|
|
|
@@ -746,8 +771,9 @@ export default {
|
|
|
if (res.data.code == 201 || res.data.code == 200) {
|
|
|
// 原ConferenceAffairsInIt逻辑
|
|
|
this.conferenceidarr = data.groupList;
|
|
|
+ this.conferenceidarrs = this.conferenceidarr;
|
|
|
if (!this.conferenceid) {
|
|
|
- this.conferenceid = this.conferenceidarr.length > 0 ? this.conferenceidarr[0].id : '';
|
|
|
+ this.conferenceid = this.conferenceidarrs.length > 0 ? this.conferenceidarrs[0].id : '';
|
|
|
}
|
|
|
|
|
|
// 原ConferenceAffairsInIts逻辑
|