|
@@ -20,7 +20,7 @@
|
|
|
<el-form-item prop="priceName" label="费用名称">
|
|
|
<el-input v-model="form.priceName"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="地区">
|
|
|
+ <el-form-item prop="nation" label="地区">
|
|
|
<el-select filterable v-model="form.nation" placeholder="请选择地区">
|
|
|
<el-option v-for="(item,index) in nationarr" :key="index" :label="item.country+'-'+item.city" :value="item.id"></el-option>
|
|
|
</el-select>
|
|
@@ -71,7 +71,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="priceDetailType" v-if="priceDetailTypes.length>0" label="详细类型">
|
|
|
- <el-select v-model="form.priceDetailType" placeholder="请选择详细类型">
|
|
|
+ <el-select @change="xxtypechange()" v-model="form.priceDetailType" placeholder="请选择详细类型">
|
|
|
<el-option v-for="(item,index) in priceDetailTypes" :key="index" :label="item.name" :value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -169,7 +169,8 @@ export default {
|
|
|
nation:[
|
|
|
{required: true, message: '国家', trigger: 'change'}
|
|
|
]
|
|
|
- }
|
|
|
+ },
|
|
|
+ coefficientarr:[]
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -205,6 +206,37 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ //切换详细类型
|
|
|
+ xxtypechange(){
|
|
|
+ console.log(this.form.priceDetailType);
|
|
|
+ for(let i=0;i<this.coefficientarr.length;i++){
|
|
|
+ if(this.form.priceDetailType==this.coefficientarr[i].id){
|
|
|
+ this.form.coefficient=this.coefficientarr[i].coefficient;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //获取系数
|
|
|
+ QueryCoefficientConfig(){
|
|
|
+ var url = "/api/Financial/QueryCoefficientConfig"
|
|
|
+ var that = this
|
|
|
+ this.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer '
|
|
|
+ },
|
|
|
+
|
|
|
+ }).then(function (res) {
|
|
|
+ if(res.data.code==200){
|
|
|
+ that.coefficientarr=res.data.data;
|
|
|
+ }else{
|
|
|
+ that.$message({
|
|
|
+ message:res.data.msg ,
|
|
|
+ type: 'warning',
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
//获取超支基础数据
|
|
|
PostGroupExtraCost_ListDataInit(){
|
|
|
var url = "/api/Financial/PostGroupExtraCost_ListDataInit"
|
|
@@ -224,7 +256,8 @@ export default {
|
|
|
that.priceDetailType=res.data.data.priceDetailType;
|
|
|
that.priceType=res.data.data.priceType;
|
|
|
that.cardType=res.data.data.card;
|
|
|
- that.OpCarCityResult()
|
|
|
+ that.OpCarCityResult();
|
|
|
+ that.QueryCoefficientConfig();
|
|
|
}else{
|
|
|
that.$message({
|
|
|
message:res.data.msg ,
|
|
@@ -235,7 +268,7 @@ export default {
|
|
|
},
|
|
|
//费用类型changes
|
|
|
priceTypechanges(val){
|
|
|
- console.log(val)
|
|
|
+ this.form.coefficient=1;
|
|
|
this.form.priceDetailType='',
|
|
|
this.priceDetailTypes=[];
|
|
|
var priceDetailTypearr=[];
|