|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <div class="car_add">
|
|
|
|
|
|
+ <div class="car_add" v-loading.fullscreen.lock="fullscreenLoading">
|
|
<div>
|
|
<div>
|
|
<div class="communal-title">
|
|
<div class="communal-title">
|
|
<div>{{ title }}</div>
|
|
<div>{{ title }}</div>
|
|
@@ -119,6 +119,16 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div style="width: 394px;">
|
|
|
|
+ <el-form-item label="费用总价:" label-width="160px">
|
|
|
|
+ <el-input-number disabled style="width:56%" :precision="2" placeholder="费用总价" v-model="DecreasePaymentsData.feeTotal" :controls='false'>
|
|
|
|
+ </el-input-number>
|
|
|
|
+ <el-select disabled v-model="DecreasePaymentsData.currency" style="width: 40%;">
|
|
|
|
+ <el-option v-for="item in rateList" :key="item.currencyId" :label="item.currencyCode"
|
|
|
|
+ :value="item.currencyId"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </div>
|
|
<div style="width: 394px;">
|
|
<div style="width: 394px;">
|
|
<el-form-item label="支付方式:" prop="payDId" label-width="160px">
|
|
<el-form-item label="支付方式:" prop="payDId" label-width="160px">
|
|
<el-select v-model="DecreasePaymentsData.payDId" placeholder="支付方式" style="width: 100%;">
|
|
<el-select v-model="DecreasePaymentsData.payDId" placeholder="支付方式" style="width: 100%;">
|
|
@@ -128,15 +138,42 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
<div style="width: 394px;">
|
|
<div style="width: 394px;">
|
|
- <el-form-item label="费用总价:" label-width="160px">
|
|
|
|
- <el-input-number disabled style="width:56%" :precision="2" placeholder="费用总价" v-model="DecreasePaymentsData.feeTotal" :controls='false'>
|
|
|
|
- </el-input-number>
|
|
|
|
- <el-select disabled v-model="DecreasePaymentsData.currency" style="width: 40%;">
|
|
|
|
- <el-option v-for="item in rateList" :key="item.currencyId" :label="item.currencyCode"
|
|
|
|
- :value="item.currencyId"></el-option>
|
|
|
|
- </el-select>
|
|
|
|
|
|
+ <el-form-item label="社交账号:" prop="supplierSocialAccount" label-width="160px">
|
|
|
|
+ <el-input placeholder="社交账号" v-model="DecreasePaymentsData.supplierSocialAccount">
|
|
|
|
+ </el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </div>
|
|
|
|
+ <div style="width: 394px;">
|
|
|
|
+ <el-form-item label="供应商地址:" prop="supplierAddress" label-width="160px">
|
|
|
|
+ <el-input placeholder="供应商地址" v-model="DecreasePaymentsData.supplierAddress">
|
|
|
|
+ </el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </div>
|
|
|
|
+ <div style="width: 394px;">
|
|
|
|
+ <el-form-item label="邮箱:" prop="supplierEmail" label-width="160px">
|
|
|
|
+ <el-input placeholder="邮箱" v-model="DecreasePaymentsData.supplierEmail">
|
|
|
|
+ </el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </div>
|
|
|
|
+ <div style="width: 394px;">
|
|
|
|
+ <el-form-item label="开户行:" label-width="160px">
|
|
|
|
+ <el-input placeholder="开户行" v-model="DecreasePaymentsData.otherBankName">
|
|
|
|
+ </el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </div>
|
|
|
|
+ <div style="width: 394px;">
|
|
|
|
+ <el-form-item label="银行卡号:" label-width="160px">
|
|
|
|
+ <el-input placeholder="银行卡号" v-model="DecreasePaymentsData.otherSideNo">
|
|
|
|
+ </el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </div>
|
|
|
|
+ <div style="width: 394px;">
|
|
|
|
+ <el-form-item label="对方姓名:" label-width="160px">
|
|
|
|
+ <el-input placeholder="对方姓名" v-model="DecreasePaymentsData.otherSideName">
|
|
|
|
+ </el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
<div style="display: flex;">
|
|
<div style="display: flex;">
|
|
<div>
|
|
<div>
|
|
@@ -176,6 +213,7 @@
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import { Decimal } from 'decimal.js'
|
|
import { Decimal } from 'decimal.js'
|
|
|
|
+import {debounce} from '../../store/statice'
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -212,6 +250,12 @@ export default {
|
|
supplierTypeId:'',//供应商类型
|
|
supplierTypeId:'',//供应商类型
|
|
quantity:0,//数量
|
|
quantity:0,//数量
|
|
feeTotal:0,//总计
|
|
feeTotal:0,//总计
|
|
|
|
+ supplierSocialAccount:'',//社交账号
|
|
|
|
+ supplierAddress:'',//供应商地址
|
|
|
|
+ supplierEmail:'',//邮箱
|
|
|
|
+ otherBankName:'',//开户行
|
|
|
|
+ otherSideNo:'',//银行卡号
|
|
|
|
+ otherSideName:'',//对方姓名
|
|
},
|
|
},
|
|
IsAuditGM: 0,
|
|
IsAuditGM: 0,
|
|
Decrease: {},
|
|
Decrease: {},
|
|
@@ -251,12 +295,22 @@ export default {
|
|
supplierArea: [
|
|
supplierArea: [
|
|
{ required: true, message: '请选择供应商地区', trigger: 'change' }
|
|
{ required: true, message: '请选择供应商地区', trigger: 'change' }
|
|
],
|
|
],
|
|
|
|
+ supplierSocialAccount: [
|
|
|
|
+ { required: true, message: '请输入联系人', trigger: 'blur' }
|
|
|
|
+ ],
|
|
|
|
+ supplierAddress: [
|
|
|
|
+ { required: true, message: '请输入联系人', trigger: 'blur' }
|
|
|
|
+ ],
|
|
|
|
+ supplierEmail: [
|
|
|
|
+ { required: true, message: '请输入联系人', trigger: 'blur' }
|
|
|
|
+ ],
|
|
|
|
|
|
},
|
|
},
|
|
rateList: [],
|
|
rateList: [],
|
|
suppliertype:[],
|
|
suppliertype:[],
|
|
supplierRegion:[],
|
|
supplierRegion:[],
|
|
eventspd:true,
|
|
eventspd:true,
|
|
|
|
+ fullscreenLoading:false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -331,6 +385,12 @@ export default {
|
|
that.DecreasePaymentsData.filePath = that.Decrease.filePath
|
|
that.DecreasePaymentsData.filePath = that.Decrease.filePath
|
|
that.projectName = that.Decrease.filePath
|
|
that.projectName = that.Decrease.filePath
|
|
that.DecreasePaymentsData.remark = that.Decrease.remark
|
|
that.DecreasePaymentsData.remark = that.Decrease.remark
|
|
|
|
+ that.DecreasePaymentsData.supplierSocialAccount = that.Decrease.supplierSocialAccount
|
|
|
|
+ that.DecreasePaymentsData.supplierAddress = that.Decrease.supplierAddress
|
|
|
|
+ that.DecreasePaymentsData.supplierEmail = that.Decrease.supplierEmail
|
|
|
|
+ that.DecreasePaymentsData.otherBankName = that.Decrease.otherBankName
|
|
|
|
+ that.DecreasePaymentsData.otherSideNo = that.Decrease.otherSideNo
|
|
|
|
+ that.DecreasePaymentsData.otherSideName = that.Decrease.otherSideName
|
|
that.IsAuditGM = that.Decrease.isAuditGM
|
|
that.IsAuditGM = that.Decrease.isAuditGM
|
|
if (that.Decrease.filePath != null && that.Decrease.filePath != undefined && that.Decrease.filePath != "") {
|
|
if (that.Decrease.filePath != null && that.Decrease.filePath != undefined && that.Decrease.filePath != "") {
|
|
that.uploadFiles.push({
|
|
that.uploadFiles.push({
|
|
@@ -338,13 +398,13 @@ export default {
|
|
url: 'http://132.232.92.186:24/Office/GrpFile/团组增减款项相关文件/',
|
|
url: 'http://132.232.92.186:24/Office/GrpFile/团组增减款项相关文件/',
|
|
})
|
|
})
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//点击保存事件
|
|
//点击保存事件
|
|
- addBtn() {
|
|
|
|
|
|
+ addBtn:debounce(function() {
|
|
|
|
+ this.fullscreenLoading=true;
|
|
|
|
+ this.DecreasePaymentsData.supplierTypeId=this.eventspd?this.DecreasePaymentsData.supplierTypeId:0;
|
|
if (this.IsAuditGM == 1) {
|
|
if (this.IsAuditGM == 1) {
|
|
this.$message.error('已通过审核,不可修改!');
|
|
this.$message.error('已通过审核,不可修改!');
|
|
} else {
|
|
} else {
|
|
@@ -390,11 +450,12 @@ export default {
|
|
message: res.data.msg,
|
|
message: res.data.msg,
|
|
type: 'success'
|
|
type: 'success'
|
|
});
|
|
});
|
|
- that.loading = true;
|
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
|
+ that.fullscreenLoading=false;
|
|
that.quxiao()
|
|
that.quxiao()
|
|
}, 1000);
|
|
}, 1000);
|
|
} else {
|
|
} else {
|
|
|
|
+ that.fullscreenLoading=false;
|
|
that.$message.error(res.data.msg);
|
|
that.$message.error(res.data.msg);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -439,9 +500,11 @@ export default {
|
|
});
|
|
});
|
|
that.loading = true;
|
|
that.loading = true;
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
|
+ that.fullscreenLoading=false;
|
|
that.$router.push('/home/DecreasePayments')
|
|
that.$router.push('/home/DecreasePayments')
|
|
- }, 3000);
|
|
|
|
|
|
+ }, 1000);
|
|
} else {
|
|
} else {
|
|
|
|
+ that.fullscreenLoading=false;
|
|
that.$message.error(res.data.msg);
|
|
that.$message.error(res.data.msg);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -457,7 +520,7 @@ export default {
|
|
|
|
|
|
}
|
|
}
|
|
// 此时必填完成,做保存后的业务操作
|
|
// 此时必填完成,做保存后的业务操作
|
|
- },
|
|
|
|
|
|
+ },1000,true),
|
|
//取消
|
|
//取消
|
|
quxiao(){
|
|
quxiao(){
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -473,22 +536,18 @@ export default {
|
|
},
|
|
},
|
|
DecreasePaymentsChange() {
|
|
DecreasePaymentsChange() {
|
|
this.QueryRate();
|
|
this.QueryRate();
|
|
- console.log(this.delegationInfo);
|
|
|
|
for (let index = 0; index < this.delegationInfoList.length; index++) {
|
|
for (let index = 0; index < this.delegationInfoList.length; index++) {
|
|
if (this.delegationInfoList[index].id == parseInt(this.DiIdSelect)) {
|
|
if (this.delegationInfoList[index].id == parseInt(this.DiIdSelect)) {
|
|
this.delegationInfo = this.delegationInfoList[index];
|
|
this.delegationInfo = this.delegationInfoList[index];
|
|
- console.log(this.delegationInfo);
|
|
|
|
if(this.delegationInfo.teamDid==302||this.delegationInfo.teamDid==691||this.delegationInfo.teamDid==762||this.delegationInfo.teamDid==1047){
|
|
if(this.delegationInfo.teamDid==302||this.delegationInfo.teamDid==691||this.delegationInfo.teamDid==762||this.delegationInfo.teamDid==1047){
|
|
this.eventspd=true
|
|
this.eventspd=true
|
|
}else{
|
|
}else{
|
|
this.eventspd=false
|
|
this.eventspd=false
|
|
}
|
|
}
|
|
- console.log(this.eventspd);
|
|
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
|
|
//上传
|
|
//上传
|
|
// 文件超出限制
|
|
// 文件超出限制
|
|
exceed(files, fileList) {
|
|
exceed(files, fileList) {
|
|
@@ -497,7 +556,6 @@ export default {
|
|
} 个文件,请取消要替换的文件`
|
|
} 个文件,请取消要替换的文件`
|
|
);
|
|
);
|
|
},
|
|
},
|
|
-
|
|
|
|
//文件上传成功时的钩子
|
|
//文件上传成功时的钩子
|
|
upLoadSuccess(response, file, fileList) {
|
|
upLoadSuccess(response, file, fileList) {
|
|
if (response.code == 200) {
|
|
if (response.code == 200) {
|
|
@@ -544,9 +602,8 @@ export default {
|
|
that.$message.error(res.data.msg);
|
|
that.$message.error(res.data.msg);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- console.log("上传成功");
|
|
|
|
} else {
|
|
} else {
|
|
- console.log("保存失败");
|
|
|
|
|
|
+ that.$message.error(res.data.msg);
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|