liuhj 2 周之前
父节点
当前提交
5794bf3480

+ 33 - 2
src/components/OP/AirTicketRes.vue

@@ -7,9 +7,9 @@
                 </div>
                 <div style="display: flex;justify-content: space-between;">
                     <div style="width: 60%;">
-                        <el-select style="width: 300px;" v-model="DiId" placeholder="团组选择" clearable filterable
+                        <el-select style="width: 300px;" remote :remote-method="GroupFeeKeywordSearch" :loading="selectLoading" v-model="DiId" placeholder="团组选择" clearable filterable
                             @change="AirTicketResSelectChange">
-                            <el-option v-for="item in AirTicketResSelectData" :key="item.id" :label="item.groupName"
+                            <el-option v-for="item in AirTicketResSelectDatas" :key="item.id" :label="item.teamName"
                                 :value="item.id">
                             </el-option>
                         </el-select>
@@ -247,6 +247,8 @@ export default {
             userId: 0,
             DiId: '',
             AirTicketResSelectData: [],
+            AirTicketResSelectDatas: [],
+            selectLoading:false,
             delegationInfo: {},
             fynone:true,
             budgeting:[],
@@ -271,6 +273,34 @@ export default {
         }
     },
     methods: {
+        //联想
+        GroupFeeKeywordSearch(query) {
+            if (query !== '') {
+                this.selectLoading=true;
+                var url = "/api/search/GroupFeeKeywordSearch/" +this.userId+'/'+85 +'/'+query
+                var that = this
+                this.$axios({
+                    method: 'get',
+                    url: url,
+                    headers: {
+                        Authorization: 'Bearer ' + this.token
+                    },
+                }).then(function (res) {
+                    if (res.data.code == 200) {
+                        that.AirTicketResSelectDatas = res.data.data;
+                    }else{
+                        that.AirTicketResSelectDatas=[];
+                    }
+                }).finally(()=>{
+                    that.selectLoading=false;
+                })
+            }else{
+                this.AirTicketResSelectDatas=this.AirTicketResSelectData;
+                
+            }
+        },
+
+
         //拼音
         pinyingxing(val){
             return pinyin(val, { toneType: 'none' }).toUpperCase();
@@ -338,6 +368,7 @@ export default {
                 console.log(res)
                 if (res.data.code == 200) {
                     that.AirTicketResSelectData = res.data.data.groupName;
+                    that.AirTicketResSelectDatas = that.AirTicketResSelectData;
                  
                     if (that.AirTicketResSelectData.length != 0) {
                         var diid = that.$route.query.DiId;

+ 33 - 3
src/components/OP/CarTouristGuideGroundId.vue

@@ -10,9 +10,9 @@
 
                     <div style="width: 50%;display: flex;">
                         <div style="width: 25%;">
-                            <el-select v-model="DiId" placeholder="团组选择" clearable filterable @change="deleSelect"
+                            <el-select v-model="DiId" placeholder="团组选择" remote :remote-method="GroupFeeKeywordSearch" clearable filterable @change="deleSelect"
                                 style="width: 100%;">
-                                <el-option v-for="item in delegationInfoList" :key="item.id" :label="item.teamName"
+                                <el-option v-for="item in delegationInfoLists" :key="item.id" :label="item.teamName"
                                     :value="item.id">
                                 </el-option>
                             </el-select>
@@ -161,6 +161,7 @@ export default {
             VisaSelectList: [],
             VisaClient: '',
             delegationInfoList: [],
+            delegationInfoLists: [],
             delegationInfo: {},
             datas: {},
             fileList: [
@@ -170,6 +171,35 @@ export default {
         }
     },
     methods: {
+        //联想
+        GroupFeeKeywordSearch(query) {
+            if (query !== '') {
+                // this.selectLoading=true;
+                var url = "/api/search/GroupFeeKeywordSearch/" +this.userId+'/'+79 +'/'+query
+                var that = this
+                this.$axios({
+                    method: 'get',
+                    url: url,
+                    headers: {
+                        Authorization: 'Bearer ' + this.token
+                    },
+                }).then(function (res) {
+                    if (res.data.code == 200) {
+                        that.delegationInfoLists = res.data.data;
+                    }else{
+                        that.delegationInfoLists=[];
+                    }
+                }).finally(()=>{
+                    // that.selectLoading=false;
+                })
+            }else{
+                this.delegationInfoLists=this.delegationInfoList;
+                
+            }
+            console.log(this.delegationInfoLists);
+        },
+
+
         //每页条数改变时触发 选择一页显示多少行
         handleSizeChange(val) {
             this.currentPage = 1;
@@ -196,7 +226,7 @@ export default {
             }).then(function (res) {
                 if (res.data.code == 200) {
                     that.delegationInfoList = res.data.data.groupName;
-
+                    that.delegationInfoLists = that.delegationInfoList;
                     if (that.DiId == undefined) {
                         that.delegationInfo = that.delegationInfoList[0]
                         that.DiId = that.delegationInfoList[0].id;

+ 32 - 2
src/components/OP/InvitationOfficialActivities.vue

@@ -8,9 +8,9 @@
                 </div>
                 <div style="display: flex;justify-content: space-between;">
                     <div style="width: 70%;display: flex;">
-                        <el-select style="width:300px;margin-right:10px" v-model="DiId" placeholder="团组选择" clearable filterable
+                        <el-select style="width:300px;margin-right:10px" v-model="DiId" remote :remote-method="GroupFeeKeywordSearch" placeholder="团组选择" clearable filterable
                             @change="AirTicketResSelectChange">
-                            <el-option v-for="item in AirTicketResSelectData" :key="item.id" :label="item.teamName"
+                            <el-option v-for="item in AirTicketResSelectDatas" :key="item.id" :label="item.teamName"
                                 :value="item.id">
                             </el-option>
                         </el-select>
@@ -175,10 +175,39 @@ export default {
             startInviteTime: "",
             endInviteTime: "",
             AirTicketResSelectData: [],
+            AirTicketResSelectDatas: [],
             delegationInfo: {},
         }
     },
     methods: {
+        //联想
+        GroupFeeKeywordSearch(query) {
+            if (query !== '') {
+                // this.selectLoading=true;
+                var url = "/api/search/GroupFeeKeywordSearch/" +this.userId+'/'+81 +'/'+query
+                var that = this
+                this.$axios({
+                    method: 'get',
+                    url: url,
+                    headers: {
+                        Authorization: 'Bearer ' + this.token
+                    },
+                }).then(function (res) {
+                    if (res.data.code == 200) {
+                        that.AirTicketResSelectDatas = res.data.data;
+                    }else{
+                        that.AirTicketResSelectDatas=[];
+                    }
+                }).finally(()=>{
+                    // that.selectLoading=false;
+                })
+            }else{
+                this.AirTicketResSelectDatas=this.AirTicketResSelectData;
+                
+            }
+        },
+
+
         //每页条数改变时触发 选择一页显示多少行
         handleSizeChange(val) {
             this.currentPage = 1;
@@ -206,6 +235,7 @@ export default {
                 if (res.data.code == 200) {
                     console.log(res);
                     that.AirTicketResSelectData = res.data.data.groupName;
+                    that.AirTicketResSelectDatas = that.AirTicketResSelectData;
                     if(that.DiIdst==undefined||that.DiIdst!=that.DiIdst){
                         that.DiId =that.AirTicketResSelectData[0].id;
                     }else{

+ 32 - 2
src/components/OP/OpAirTicketRes.vue

@@ -169,9 +169,9 @@
                 <div style="display: flex;">
                     <div style="width: 25%;">
                         <el-form-item label="团组名称:" label-width="160px">
-                            <el-select v-model="DiIdSelect" clearable filterable placeholder="团组选择"
+                            <el-select v-model="DiIdSelect" clearable filterable placeholder="团组选择" remote :remote-method="GroupFeeKeywordSearch" :loading="selectLoading" 
                                 @change="AirTicketResChange" :disabled="isShow" style="width: 100%;">
-                                <el-option v-for="item in AirTicketResSelectData" :key="item.id" :label="item.groupName"
+                                <el-option v-for="item in AirTicketResSelectDatas" :key="item.id" :label="item.teamName"
                                     :value="item.id">
                                 </el-option>
                             </el-select>
@@ -598,6 +598,8 @@ export default {
             DiIdSelect: '',
             delegationInfo: {},
             AirTicketResSelectData: [],//团组下拉框
+            AirTicketResSelectDatas: [],//团组下拉框
+            selectLoading:false,
             ticketClass: [],//舱位下拉框
             payment: [],//支付方式下拉框
             cardType: [],//卡类型下拉框
@@ -671,6 +673,33 @@ export default {
         }
     },
     methods: {
+        //联想
+        GroupFeeKeywordSearch(query) {
+            if (query !== '') {
+                this.selectLoading=true;
+                var url = "/api/search/GroupFeeKeywordSearch/" +this.userId+'/'+85 +'/'+query
+                var that = this
+                this.$axios({
+                    method: 'get',
+                    url: url,
+                    headers: {
+                        Authorization: 'Bearer ' + this.token
+                    },
+                }).then(function (res) {
+                    if (res.data.code == 200) {
+                        that.AirTicketResSelectDatas = res.data.data;
+                    }else{
+                        that.AirTicketResSelectDatas=[];
+                    }
+                }).finally(()=>{
+                    that.selectLoading=false;
+                })
+            }else{
+                this.AirTicketResSelectDatas=this.AirTicketResSelectData;
+                
+            }
+        },
+
         //拼音
         pinyingxing(val){
             return pinyin(val, { toneType: 'none' }).toUpperCase();
@@ -709,6 +738,7 @@ export default {
                 if (res.data.code == 200) {
                     console.log(res);
                     that.AirTicketResSelectData = res.data.data.groupName; //团组下拉列表
+                    that.AirTicketResSelectDatas = that.AirTicketResSelectData; //团组下拉列表
                     that.ticketClass = res.data.data.ticketClass;//舱位下拉框
                     that.payment = res.data.data.payment;//支付方式下拉框
                     that.cardType = res.data.data.cardType;//卡类型下拉框

+ 33 - 4
src/components/OP/OpCarTouristGuideGroundId.vue

@@ -46,9 +46,9 @@
                 <div style="display: flex;">
                     <div style="width: 25%;">
                         <el-form-item label="团组名称:" label-width="160px">
-                            <el-select v-model="OpCarTouristGuideGroundData.diId" clearable filterable
+                            <el-select v-model="OpCarTouristGuideGroundData.diId" remote :remote-method="GroupFeeKeywordSearch" clearable filterable
                                 placeholder="团组选择" :disabled="isShow" @change="DiIdSelectChange">
-                                <el-option v-for="item in delegationInfoList" :key="item.id" :label="item.teamName"
+                                <el-option v-for="item in delegationInfoLists" :key="item.id" :label="item.teamName"
                                     :value="item.id">
                                 </el-option>
                             </el-select>
@@ -259,6 +259,7 @@ export default {
             isShow: false,
             delegationInfo: {},
             delegationInfoList: [],//团组下拉框
+            delegationInfoLists: [],//团组下拉框
             OpCarTouristGuideGroundData: {
                 status: 0,
                 id: 0,
@@ -346,6 +347,35 @@ export default {
         }
     },
     methods: {
+        //联想
+        GroupFeeKeywordSearch(query) {
+            if (query !== '') {
+                // this.selectLoading=true;
+                var url = "/api/search/GroupFeeKeywordSearch/" +this.userId+'/'+79 +'/'+query
+                var that = this
+                this.$axios({
+                    method: 'get',
+                    url: url,
+                    headers: {
+                        Authorization: 'Bearer ' + this.token
+                    },
+                }).then(function (res) {
+                    if (res.data.code == 200) {
+                        that.delegationInfoLists = res.data.data;
+                    }else{
+                        that.delegationInfoLists=[];
+                    }
+                }).finally(()=>{
+                    // that.selectLoading=false;
+                })
+            }else{
+                this.delegationInfoLists=this.delegationInfoList;
+                
+            }
+            console.log(this.delegationInfoLists);
+        },
+
+
         // 验证特殊字符
         validateSpecialChars(rule, value, callback) {
             console.log(value);
@@ -480,6 +510,7 @@ export default {
                     }).then(function (res) {
                         if (res.data.code == 200) {
                             that.delegationInfoList = res.data.data.groupName;
+                            that.delegationInfoLists = that.delegationInfoList;
                             that.PostTourClientListByDiId()
                             for (let index = 0; index < that.delegationInfoList.length; index++) {
                                 if (that.delegationInfoList[index].id == that.OpCarTouristGuideGroundData.diId) {
@@ -494,8 +525,6 @@ export default {
                 }
             })
             //团组下拉框绑定
-
-
         },
         DiIdSelectChange(val) {
             var that = this;

+ 31 - 2
src/components/OP/OpInvitationOfficialActivities.vue

@@ -82,9 +82,9 @@
                 <div style="display: flex;flex-wrap: wrap;">
                     <div style="width: 385px;">
                         <el-form-item label="团组名称:" label-width="160px">
-                            <el-select v-model="DiIdSelect" clearable filterable placeholder="团组选择"
+                            <el-select v-model="DiIdSelect" remote :remote-method="GroupFeeKeywordSearch" clearable filterable placeholder="团组选择"
                                 @change="DecreasePaymentsChange" :disabled="isShow" style="width: 100%;">
-                                <el-option v-for="item in delegationInfoList" :key="item.id" :label="item.teamName"
+                                <el-option v-for="item in delegationInfoLists" :key="item.id" :label="item.teamName"
                                     :value="item.id">
                                 </el-option>
                             </el-select>
@@ -444,6 +444,7 @@ export default {
             delegationInfo: {},
             IsAuditGM: 0,
             delegationInfoList: [],//团组下拉框
+            delegationInfoLists: [],//团组下拉框
             payment: [],//支付方式下拉框
             cardTypeData:[],//卡类型下拉框
             costIdentificationData:[],//费用标识下拉框
@@ -595,6 +596,33 @@ export default {
         }
     },
     methods: {
+        //联想
+        GroupFeeKeywordSearch(query) {
+            if (query !== '') {
+                // this.selectLoading=true;
+                var url = "/api/search/GroupFeeKeywordSearch/" +this.userId+'/'+81 +'/'+query
+                var that = this
+                this.$axios({
+                    method: 'get',
+                    url: url,
+                    headers: {
+                        Authorization: 'Bearer ' + this.token
+                    },
+                }).then(function (res) {
+                    if (res.data.code == 200) {
+                        that.delegationInfoLists = res.data.data;
+                    }else{
+                        that.delegationInfoLists=[];
+                    }
+                }).finally(()=>{
+                    // that.selectLoading=false;
+                })
+            }else{
+                this.delegationInfoLists=this.delegationInfoList;
+                
+            }
+        },
+
         //拼音
         pinyingxing(val){
             return pinyin(val, { toneType: 'none' }).toUpperCase();
@@ -739,6 +767,7 @@ export default {
             }).then(function (res) {
                 if (res.data.code == 200) {
                     that.delegationInfoList = res.data.data.groupName;
+                    that.delegationInfoLists = that.delegationInfoList;
                     that.DiIdSelect = parseInt(that.DiId)
                     for (let index = 0; index < that.delegationInfoList.length; index++) {
                         if (that.delegationInfoList[index].id == that.DiIdSelect) {

+ 32 - 2
src/components/OP/OpVisaPriec.vue

@@ -46,9 +46,9 @@
                 <div style="display: flex;flex-wrap: wrap;">
                     <div style="width: 385px;">
                         <el-form-item label="团组名称:" label-width="160px">
-                            <el-select v-model="OpVisaPriceData.diId" clearable filterable placeholder="团组选择"
+                            <el-select v-model="OpVisaPriceData.diId" remote :remote-method="GroupFeeKeywordSearch" clearable filterable placeholder="团组选择"
                                 :disabled="isShow" style="width: 100%;" @change="DiIdSelectChange">
-                                <el-option v-for="item in delegationInfoList" :key="item.id" :label="item.teamName"
+                                <el-option v-for="item in delegationInfoLists" :key="item.id" :label="item.teamName"
                                     :value="item.id">
                                 </el-option>
                             </el-select>
@@ -362,6 +362,7 @@ export default {
             isShow: false,
             delegationInfo: {},
             delegationInfoList: [],//团组下拉框
+            delegationInfoLists: [],//团组下拉框
             currencyList: [],//币种下拉框
             bankCard: [],//卡类型下拉框
             payment: [],//支付方式下拉框
@@ -479,6 +480,34 @@ export default {
         }
     },
     methods: {
+        //联想
+        GroupFeeKeywordSearch(query) {
+            if (query !== '') {
+                // this.selectLoading=true;
+                var url = "/api/search/GroupFeeKeywordSearch/" +this.userId+'/'+80 +'/'+query
+                var that = this
+                this.$axios({
+                    method: 'get',
+                    url: url,
+                    headers: {
+                        Authorization: 'Bearer ' + this.token
+                    },
+                }).then(function (res) {
+                    if (res.data.code == 200) {
+                        that.delegationInfoLists = res.data.data;
+                    }else{
+                        that.delegationInfoLists=[];
+                    }
+                }).finally(()=>{
+                    // that.selectLoading=false;
+                })
+            }else{
+                this.delegationInfoLists=this.delegationInfoList;
+                
+            }
+        },
+
+
         //拼音
         pinyingxing(val){
             return pinyin(val, { toneType: 'none' }).toUpperCase();
@@ -507,6 +536,7 @@ export default {
                 if (res.data.code == 200) {
 
                     that.delegationInfoList = res.data.data.groupName;
+                    that.delegationInfoLists = that.delegationInfoList;
                     that.payment = res.data.data.payment
                     for (let index = 0; index < that.delegationInfoList.length; index++) {
 

+ 32 - 2
src/components/OP/VisaPriec.vue

@@ -8,9 +8,9 @@
                 <div style="display: flex;justify-content: space-between;">
                     <div style="width: 80%;display: flex;">
                         <div style="width: 25%;">
-                            <el-select v-model="DiId" placeholder="团组选择" c  learable filterable @change="visaSelect"
+                            <el-select v-model="DiId" placeholder="团组选择" remote :remote-method="GroupFeeKeywordSearch"  clearable filterable @change="visaSelect"
                                 style="width: 100%;">
-                                <el-option v-for="item in delegationInfoList" :key="item.id" :label="item.teamName"
+                                <el-option v-for="item in delegationInfoLists" :key="item.id" :label="item.teamName"
                                     :value="item.id">
                                 </el-option>
                             </el-select>
@@ -110,10 +110,39 @@ export default {
             VisaSelectList: [],
             VisaClient: '',
             delegationInfoList: [],
+            delegationInfoLists: [],
             delegationInfo: {},
         }
     },
     methods: {
+        //联想
+        GroupFeeKeywordSearch(query) {
+            if (query !== '') {
+                // this.selectLoading=true;
+                var url = "/api/search/GroupFeeKeywordSearch/" +this.userId+'/'+80 +'/'+query
+                var that = this
+                this.$axios({
+                    method: 'get',
+                    url: url,
+                    headers: {
+                        Authorization: 'Bearer ' + this.token
+                    },
+                }).then(function (res) {
+                    if (res.data.code == 200) {
+                        that.delegationInfoLists = res.data.data;
+                    }else{
+                        that.delegationInfoLists=[];
+                    }
+                }).finally(()=>{
+                    // that.selectLoading=false;
+                })
+            }else{
+                this.delegationInfoLists=this.delegationInfoList;
+                
+            }
+            console.log(this.delegationInfoLists);
+        },
+
         //保留两位小数
         townum(val){
             return val.toFixed(2)
@@ -144,6 +173,7 @@ export default {
             }).then(function (res) {
                 if (res.data.code == 200) {
                     that.delegationInfoList = res.data.data.groupName;
+                    that.delegationInfoLists = that.delegationInfoList;
                     
                     if (that.DiId == undefined) {
                         that.delegationInfo = that.delegationInfoList[0]

+ 33 - 2
src/components/Resource/OfficialActivities.vue

@@ -7,9 +7,9 @@
                 </div>
                 <div style="display: flex;">
                     <div style="width: 18%;">
-                        <el-select v-model="DiId" placeholder="团组选择" clearable filterable
+                        <el-select v-model="DiId" remote :remote-method="GroupFeeKeywordSearch" :loading="selectLoading" placeholder="团组选择" clearable filterable
                             @change="delegationSelectChange">
-                            <el-option v-for="item in delegationInfoList" :key="item.id" :label="item.teamName"
+                            <el-option v-for="item in delegationInfoLists" :key="item.id" :label="item.teamName"
                                 :value="item.id">
                             </el-option>
                         </el-select>
@@ -114,6 +114,8 @@ export default {
             DiId: '',
             diids: '',
             delegationInfoList: [],
+            delegationInfoLists: [],
+            selectLoading:false,
             delegationInfo: {},
             dialogFormVisible: false,
             valuedate: '',
@@ -148,6 +150,34 @@ export default {
         }
     },
     methods: {
+        //联想
+        GroupFeeKeywordSearch(query) {
+            if (query !== '') {
+                this.selectLoading=true;
+                var url = "/api/search?keyword="+query
+                var that = this
+                this.$axios({
+                    method: 'get',
+                    url: url,
+                    headers: {
+                        Authorization: 'Bearer ' + this.token
+                    },
+                }).then(function (res) {
+                    if (res.data.code == 200) {
+                        that.delegationInfoLists = res.data.data;
+                    }else{
+                        that.delegationInfoLists=[];
+                    }
+                }).finally(()=>{
+                    that.selectLoading=false;
+                })
+            }else{
+                this.delegationInfoLists=this.delegationInfoList;
+                
+            }
+        },
+
+
         //处理日期
         datetime(val) {
             var date = new Date(val);
@@ -185,6 +215,7 @@ export default {
             }).then(function (res) {
                 if (res.data.code == 200) {
                     that.delegationInfoList = res.data.data;
+                    that.delegationInfoLists = that.delegationInfoList;
                     if (that.diids != that.diids) {
                         that.DiId = that.delegationInfoList[0].id;
                         that.delegationInfo = that.delegationInfoList[0];

+ 32 - 2
src/components/Resource/OpOfficialActivities.vue

@@ -45,9 +45,9 @@
                 <div style="display: flex;flex-wrap: wrap;">
                     <div style="width: 385px;">
                         <el-form-item label="团组名称:" label-width="160px">
-                            <el-select v-model="DiId" clearable filterable placeholder="团组选择" @change="DiIdChang"
+                            <el-select v-model="DiId"  remote :remote-method="GroupFeeKeywordSearch" :loading="selectLoading" clearable filterable placeholder="团组选择" @change="DiIdChang"
                                 :disabled="isShow">
-                                <el-option v-for="item in delegationInfoList" :key="item.id" :label="item.teamName"
+                                <el-option v-for="item in delegationInfoLists" :key="item.id" :label="item.teamName"
                                     :value="item.id">
                                 </el-option>
                             </el-select>
@@ -556,6 +556,8 @@ export default {
             isShow: false,
             delegationInfo: {},
             delegationInfoList: [],//团组下拉框
+            delegationInfoLists: [],//团组下拉框
+            selectLoading: false,
             OfficialFormList: [],//公务形式下拉框
             dataSourceList: [],//来源下拉框
             deleFile: [],//文件数据
@@ -773,6 +775,33 @@ export default {
     },
 
     methods: {
+        //联想
+        GroupFeeKeywordSearch(query) {
+            if (query !== '') {
+                this.selectLoading=true;
+                var url = "/api/search?keyword="+query
+                var that = this
+                this.$axios({
+                    method: 'get',
+                    url: url,
+                    headers: {
+                        Authorization: 'Bearer ' + this.token
+                    },
+                }).then(function (res) {
+                    if (res.data.code == 200) {
+                        that.delegationInfoLists = res.data.data;
+                    }else{
+                        that.delegationInfoLists=[];
+                    }
+                }).finally(()=>{
+                    that.selectLoading=false;
+                })
+            }else{
+                this.delegationInfoLists=this.delegationInfoList;
+                
+            }
+        },
+
         //拼音
         pinyingxing(val) {
             return pinyin(val, { toneType: 'none' }).toUpperCase();
@@ -887,6 +916,7 @@ export default {
             }).then(function (res) {
                 if (res.data.code == 200) {
                     that.delegationInfoList = res.data.data;
+                    that.delegationInfoLists = that.delegationInfoList;
                     for (let index = 0; index < that.delegationInfoList.length; index++) {
                         if (that.delegationInfoList[index].id == parseInt(that.DiId)) {
                             that.delegationInfo = that.delegationInfoList[index];