|
@@ -49,7 +49,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
<div style="width: 25%;">
|
|
<div style="width: 25%;">
|
|
- <el-form-item label="费用金额:" prop="price" label-width="160px">
|
|
|
|
|
|
+ <el-form-item label="费用金额:" prop="currency" label-width="160px">
|
|
<el-input placeholder="费用金额" v-model="DecreasePaymentsData.price" style="width: 56%;">
|
|
<el-input placeholder="费用金额" v-model="DecreasePaymentsData.price" style="width: 56%;">
|
|
</el-input>
|
|
</el-input>
|
|
<el-select v-model="DecreasePaymentsData.currency" style="width: 40%;">
|
|
<el-select v-model="DecreasePaymentsData.currency" style="width: 40%;">
|
|
@@ -110,9 +110,9 @@
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<div style="text-align: right;">
|
|
<div style="text-align: right;">
|
|
<el-button type="primary" @click="addBtn">保存</el-button>
|
|
<el-button type="primary" @click="addBtn">保存</el-button>
|
|
- <router-link to='/home/DecreasePayments'>
|
|
|
|
- <el-button>取消</el-button>
|
|
|
|
- </router-link>
|
|
|
|
|
|
+ <!-- <router-link to='/home/DecreasePayments'> -->
|
|
|
|
+ <el-button @click="quxiao">取消</el-button>
|
|
|
|
+ <!-- </router-link> -->
|
|
</div>
|
|
</div>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
@@ -160,9 +160,8 @@ export default {
|
|
TypeName: "A"
|
|
TypeName: "A"
|
|
},
|
|
},
|
|
DecreasePaymentsRules: {
|
|
DecreasePaymentsRules: {
|
|
- price: [
|
|
|
|
- { required: true, message: '请输入费用金额', trigger: 'change' },
|
|
|
|
- { pattern: /^(([1-9]?\d{0,8}(\.\d{1,2})?)|999999999|999999999\.(0){1,2})$/, message: '请输入正确的金额(最多2位小数)' }
|
|
|
|
|
|
+ currency: [
|
|
|
|
+ { required: true, message: '请选择币种', trigger: 'change' },
|
|
],
|
|
],
|
|
priceName: [
|
|
priceName: [
|
|
{ required: true, message: '请输入费用名称', trigger: 'change' },
|
|
{ required: true, message: '请输入费用名称', trigger: 'change' },
|
|
@@ -206,10 +205,8 @@ export default {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
that.payment = res.data.data.payment
|
|
that.payment = res.data.data.payment
|
|
}
|
|
}
|
|
-
|
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
@@ -304,8 +301,8 @@ export default {
|
|
});
|
|
});
|
|
that.loading = true;
|
|
that.loading = true;
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- that.$router.push('/home/DecreasePayments')
|
|
|
|
- }, 3000);
|
|
|
|
|
|
+ that.quxiao()
|
|
|
|
+ }, 1000);
|
|
} else {
|
|
} else {
|
|
that.$message.error(res.data.msg);
|
|
that.$message.error(res.data.msg);
|
|
}
|
|
}
|
|
@@ -370,6 +367,15 @@ export default {
|
|
}
|
|
}
|
|
// 此时必填完成,做保存后的业务操作
|
|
// 此时必填完成,做保存后的业务操作
|
|
},
|
|
},
|
|
|
|
+ //取消
|
|
|
|
+ quxiao(){
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: "/home/DecreasePayments",
|
|
|
|
+ query: {
|
|
|
|
+ DiId: this.DiIdSelect,
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
DecreasePaymentsChange() {
|
|
DecreasePaymentsChange() {
|
|
this.QueryRate();
|
|
this.QueryRate();
|
|
for (let index = 0; index < this.delegationInfoList.length; index++) {
|
|
for (let index = 0; index < this.delegationInfoList.length; index++) {
|
|
@@ -488,7 +494,7 @@ export default {
|
|
|
|
|
|
mounted() {
|
|
mounted() {
|
|
|
|
|
|
- this.DiId = this.$route.query.DiId
|
|
|
|
|
|
+ this.DiId = JSON.parse(this.$route.query.DiId);
|
|
this.QueryRate();
|
|
this.QueryRate();
|
|
this.token = JSON.parse(localStorage.getItem('userinif')).token;
|
|
this.token = JSON.parse(localStorage.getItem('userinif')).token;
|
|
this.userId = JSON.parse(localStorage.getItem('userinif')).userInfo.userId
|
|
this.userId = JSON.parse(localStorage.getItem('userinif')).userInfo.userId
|