|
@@ -316,8 +316,7 @@ export default {
|
|
|
this.renewalForm={
|
|
|
id:row.EtaBusinessContractId,
|
|
|
signDate:row.SigningTime,
|
|
|
- expirationDate:row.ExpiredTime,
|
|
|
- remark:row.Remark,
|
|
|
+ expirationDate:row.ExpiredTime
|
|
|
}
|
|
|
this.showRenewal=true
|
|
|
},
|
|
@@ -325,21 +324,25 @@ export default {
|
|
|
this.$confirm("是否确认删除该签约信息?", "提示", {
|
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
|
- //TODO: 删除签约信息对接
|
|
|
- this.$message.success("删除成功")
|
|
|
- this.getTableData(Number(this.$route.query.id))
|
|
|
- this.getTimeLineData(Number(this.$route.query.id))
|
|
|
+ businessCustomInterence.
|
|
|
+ removeContract({EtaBusinessContractId:row.EtaBusinessContractId})
|
|
|
+ .then(res=>{
|
|
|
+ if(res.Ret == 200){
|
|
|
+ this.$message.success("删除成功")
|
|
|
+ this.getTableData(Number(this.$route.query.id))
|
|
|
+ this.getTimeLineData(Number(this.$route.query.id))
|
|
|
+ }
|
|
|
+ })
|
|
|
}).catch(() => {});
|
|
|
},
|
|
|
//添加续约-保存
|
|
|
- handleAddRenewal({signDate,expirationDate,remark,id}){
|
|
|
- console.log({signDate,expirationDate,remark,id});
|
|
|
+ handleAddRenewal({signDate,expirationDate,id}){
|
|
|
+ console.log({signDate,expirationDate,id});
|
|
|
return
|
|
|
businessCustomInterence.addNewContract({
|
|
|
EtaBusinessId:Number(this.$route.query.id),
|
|
|
SigningTime:signDate,
|
|
|
- ExpiredTime:expirationDate,
|
|
|
- Remark:remark
|
|
|
+ ExpiredTime:expirationDate
|
|
|
}).then(res=>{
|
|
|
if(res.Ret!==200) return
|
|
|
this.$message.success('添加续约成功')
|