|
|
@@ -1715,18 +1715,30 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ //删除方法
|
|
|
deletequery(index, row) {
|
|
|
- this.$api.insCompany.deleteagreement(row.id).then(res => {
|
|
|
- if (res.code == '200') {
|
|
|
+ this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.$api.insCompany.deleteagreement(row.id).then(res => {
|
|
|
+ if (res.code == '200') {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ this.findPage();
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }).catch(() => {
|
|
|
this.$message({
|
|
|
- message: res.msg,
|
|
|
- type: 'success'
|
|
|
- });
|
|
|
- this.findPage();
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
- }
|
|
|
- })
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消删除'
|
|
|
+ });
|
|
|
+ });
|
|
|
},
|
|
|
//删除产品方案
|
|
|
deleteproductCosts(schemeindex,productCostsindex) {
|