|
@@ -43,7 +43,7 @@
|
|
|
}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" width="120px" align="center">
|
|
|
+ <el-table-column label="操作" width="150px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
size="mini"
|
|
@@ -53,11 +53,19 @@
|
|
|
>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
- type="danger"
|
|
|
+ type="warning"
|
|
|
v-if="scope.row.sts !== '4'"
|
|
|
@click="dialogCheck(2, scope.row)"
|
|
|
>处理</el-button
|
|
|
>
|
|
|
+
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="danger"
|
|
|
+ v-if="scope.row.step === '0'"
|
|
|
+ @click="dialogCheck(4, scope.row)"
|
|
|
+ >注销</el-button
|
|
|
+ >
|
|
|
<!-- <el-button size="mini" type="danger" @click="delLine(scope.row)">删除</el-button> -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -1107,9 +1115,26 @@ export default {
|
|
|
}) => {
|
|
|
this.total = count;
|
|
|
this.tableData = data;
|
|
|
+ console.log("===================================")
|
|
|
+ console.log(this.tableData)
|
|
|
}
|
|
|
);
|
|
|
},
|
|
|
+ // 注销
|
|
|
+ delDetails(id){
|
|
|
+ this.$http({
|
|
|
+ url: "/market/mkOnlineChannel/delDetailsById",
|
|
|
+ method: "post",
|
|
|
+ headers: {
|
|
|
+ "Content-Type": "application/json",
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ data: id,
|
|
|
+ },
|
|
|
+ }).then((res) => {
|
|
|
+ console.log(res)
|
|
|
+ });
|
|
|
+ },
|
|
|
// 查看详情接口封装
|
|
|
queryDetails(id) {
|
|
|
this.$http({
|
|
@@ -1358,6 +1383,11 @@ export default {
|
|
|
// // this.tempSave = true;
|
|
|
// });
|
|
|
// return;
|
|
|
+ } else if (type === 4) {
|
|
|
+ this.titname = "注销";
|
|
|
+ this.visionsts = "2";
|
|
|
+ this.queryDetails(data.woNo);
|
|
|
+ this.delDetails(data.woNo);
|
|
|
}
|
|
|
// this.$http({
|
|
|
// url: "/bpm/api/taskInit",
|