|
@@ -206,6 +206,7 @@ export default {
|
|
|
},
|
|
|
methods:{
|
|
|
addBtn(){
|
|
|
+ this.title = '新建居间协议'
|
|
|
this.form.title = this.$route.query.type == '经销项目' || this.$route.query.type == '直销项目'?this.data.projectname + '_居间费': this.data.enterprisename + '_居间费'
|
|
|
this.form.ascription_contractid = this.data.sa_contractid
|
|
|
this.form.sa_projectid = this.data.sa_projectid
|
|
@@ -247,13 +248,13 @@ export default {
|
|
|
},
|
|
|
onSubmit(){
|
|
|
this.$refs.form.validate(async (valid)=>{
|
|
|
- this.loading = true
|
|
|
if (!valid) return false
|
|
|
if (this.title == '编辑居间协议'){
|
|
|
this.loading = false
|
|
|
this.dialogTableVisible = true
|
|
|
this.onAdjust(this.form)
|
|
|
}else {
|
|
|
+ this.loading = true
|
|
|
this.form.orderratio = (this.form.orderratio / 100).toFixed(4)
|
|
|
let res = await this.$api.requested({
|
|
|
"id": 20221121185302,
|