|
@@ -214,7 +214,7 @@
|
|
|
width="22"
|
|
|
height="22"
|
|
|
class="del"
|
|
|
- @click="del(index)"
|
|
|
+ @click="del(index,item)"
|
|
|
src="../../../public/img/del.png"
|
|
|
alt=""
|
|
|
/>
|
|
@@ -378,6 +378,7 @@ import {
|
|
|
getwarehousename,
|
|
|
xialaNo,
|
|
|
examinetran,
|
|
|
+ delhaulagestage
|
|
|
} from '@/model/tasksport/index'
|
|
|
import WsUpload from '@/components/WsUpload'
|
|
|
import mapDrag from '@/components/mapdrag/mapdrag'
|
|
@@ -661,10 +662,29 @@ export default {
|
|
|
})
|
|
|
this.number++
|
|
|
},
|
|
|
- del(index) {
|
|
|
- if (this.deptBudgetList.tranProcessInfoList.length > 1) {
|
|
|
- this.deptBudgetList.tranProcessInfoList.splice(index, 1)
|
|
|
+ del(index,row) {
|
|
|
+ console.log(row)
|
|
|
+ if(row.id){
|
|
|
+ this.$confirm('任务阶段删除后不可恢复,是否确定删除?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ delhaulagestage({id:row.id}).toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$message.success('删除成功')
|
|
|
+ if (this.deptBudgetList.tranProcessInfoList.length > 1) {
|
|
|
+ this.deptBudgetList.tranProcessInfoList.splice(index, 1)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ if (this.deptBudgetList.tranProcessInfoList.length > 1) {
|
|
|
+ this.deptBudgetList.tranProcessInfoList.splice(index, 1)
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
handleChange(value) {
|
|
|
this.selectedOptions = value
|