|
|
@@ -41,21 +41,43 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
} else {
|
|
|
- this.$confirm('确定进行审核操作吗?','提示',{
|
|
|
- confirmButtonText:'确定',
|
|
|
- cancelButtonText:'取消'
|
|
|
- }).then(async () => {
|
|
|
- let res = await this.$api.requested({
|
|
|
- "id": 20221121203102,
|
|
|
- "content": {
|
|
|
+ console.log(this.data,'审核数据')
|
|
|
+ console.log(new Date(this.data.enddate))
|
|
|
+ console.log(new Date())
|
|
|
+ console.log(new Date() > new Date(this.data.enddate))
|
|
|
+ if (new Date() > new Date(this.data.enddate)){
|
|
|
+ this.$confirm('当前合同有效期已过期,是否确定继续审核?','提示',{
|
|
|
+ confirmButtonText:'确定',
|
|
|
+ cancelButtonText:'取消'
|
|
|
+ }).then(async () => {
|
|
|
+ let res = await this.$api.requested({
|
|
|
+ "id": 20221121203102,
|
|
|
+ "content": {
|
|
|
"type":1,//0:不通过,1:通过
|
|
|
"sa_contractid": this.data.sa_contractid
|
|
|
- },
|
|
|
+ },
|
|
|
+ })
|
|
|
+ this.tool.showMessage(res,() => {
|
|
|
+ this.$emit('onSuccess')
|
|
|
+ })
|
|
|
})
|
|
|
- this.tool.showMessage(res,() => {
|
|
|
- this.$emit('onSuccess')
|
|
|
+ }else {
|
|
|
+ this.$confirm('确定进行审核操作吗?','提示',{
|
|
|
+ confirmButtonText:'确定',
|
|
|
+ cancelButtonText:'取消'
|
|
|
+ }).then(async () => {
|
|
|
+ let res = await this.$api.requested({
|
|
|
+ "id": 20221121203102,
|
|
|
+ "content": {
|
|
|
+ "type":1,//0:不通过,1:通过
|
|
|
+ "sa_contractid": this.data.sa_contractid
|
|
|
+ },
|
|
|
+ })
|
|
|
+ this.tool.showMessage(res,() => {
|
|
|
+ this.$emit('onSuccess')
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
},
|