|
@@ -337,15 +337,16 @@ export default {
|
|
|
},
|
|
|
//添加续约-保存
|
|
|
handleAddRenewal({signDate,expirationDate,id}){
|
|
|
- console.log({signDate,expirationDate,id});
|
|
|
- return
|
|
|
- businessCustomInterence.addNewContract({
|
|
|
+ // id-商家合约ID
|
|
|
+ let api = Number(id) ? 'editContract' : 'addNewContract'
|
|
|
+ businessCustomInterence[api]({
|
|
|
EtaBusinessId:Number(this.$route.query.id),
|
|
|
+ EtaBusinessContractId:Number(id),
|
|
|
SigningTime:signDate,
|
|
|
ExpiredTime:expirationDate
|
|
|
}).then(res=>{
|
|
|
if(res.Ret!==200) return
|
|
|
- this.$message.success('添加续约成功')
|
|
|
+ this.$message.success(this.renewalDiaTitle+'成功')
|
|
|
this.showRenewal=false
|
|
|
this.getTableData(Number(this.$route.query.id))
|
|
|
this.getTimeLineData(Number(this.$route.query.id))
|