|
@@ -53,9 +53,8 @@
|
|
|
<el-input placeholder="费用金额" v-model="DecreasePaymentsData.price" style="width: 58%;">
|
|
|
</el-input>
|
|
|
<el-select v-model="DecreasePaymentsData.currency" style="width: 40%;">
|
|
|
- <el-option key="48" label="CNY" :value="48"></el-option>
|
|
|
- <el-option key="49" label="USD" :value="49"></el-option>
|
|
|
- <el-option key="51" label="EUR" :value="51"></el-option>
|
|
|
+ <el-option v-for="item in rateList" :key="item.currencyId" :label="item.currencyCode"
|
|
|
+ :value="item.currencyId"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
@@ -148,7 +147,7 @@ export default {
|
|
|
diId: 0,
|
|
|
priceName: "",
|
|
|
price: 0,
|
|
|
- currency: 48,
|
|
|
+ currency: '',
|
|
|
filePath: "",
|
|
|
createUserId: 0,
|
|
|
remark: ""
|
|
@@ -177,8 +176,8 @@ export default {
|
|
|
payDId: [
|
|
|
{ required: true, message: '请选择支付方式', trigger: 'change' }
|
|
|
],
|
|
|
- }
|
|
|
-
|
|
|
+ },
|
|
|
+ rateList: [],
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -372,6 +371,7 @@ export default {
|
|
|
// 此时必填完成,做保存后的业务操作
|
|
|
},
|
|
|
DecreasePaymentsChange() {
|
|
|
+ this.QueryRate();
|
|
|
for (let index = 0; index < this.delegationInfoList.length; index++) {
|
|
|
if (this.delegationInfoList[index].id == parseInt(this.DiIdSelect)) {
|
|
|
this.delegationInfo = this.delegationInfoList[index];
|
|
@@ -459,11 +459,37 @@ export default {
|
|
|
onChange(file, fileList) {
|
|
|
this.projectName = file.name
|
|
|
},
|
|
|
+ QueryRate() {
|
|
|
+ var url = "/api/Business/PostGroupTeamRateByDiIdAndCTableId"
|
|
|
+ var that = this
|
|
|
+ this.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer ' + that.token
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ "portType": 1,
|
|
|
+ "diId": this.DiIdSelect ? this.DiIdSelect : this.DiId,
|
|
|
+ "cTable": 98
|
|
|
+ }
|
|
|
+ }).then(function (res) {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ //汇率
|
|
|
+ console.log("汇率--", res.data.data);
|
|
|
+ that.rateList = res.data.data.teamRates;
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
},
|
|
|
|
|
|
mounted() {
|
|
|
|
|
|
+ this.DiId = this.$route.query.DiId
|
|
|
+ this.QueryRate();
|
|
|
this.token = JSON.parse(localStorage.getItem('userinif')).token;
|
|
|
this.userId = JSON.parse(localStorage.getItem('userinif')).userInfo.userId
|
|
|
this.AirTicketResSelect();
|
|
@@ -478,7 +504,7 @@ export default {
|
|
|
this.title = "新增团组增减款项费用"
|
|
|
this.isShow = false
|
|
|
}
|
|
|
- this.DiId = this.$route.query.DiId
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -488,7 +514,7 @@ export default {
|
|
|
padding: 10px;
|
|
|
box-shadow: 0 0 5px #0005;
|
|
|
border-radius: 10px;
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
.car_add .communal-title {
|