|
@@ -358,7 +358,7 @@ const config = computed(() => {
|
|
|
{
|
|
|
attrs: {
|
|
|
label: "操作",
|
|
|
- width: 160,
|
|
|
+ width: 180,
|
|
|
align: "center",
|
|
|
fixed: "right",
|
|
|
},
|
|
@@ -402,6 +402,32 @@ const config = computed(() => {
|
|
|
},
|
|
|
}
|
|
|
: {},
|
|
|
+ !props.selectStatus && row.status == 20
|
|
|
+ ? {
|
|
|
+ attrs: {
|
|
|
+ label: "挂起",
|
|
|
+ type: "primary",
|
|
|
+ text: true,
|
|
|
+ },
|
|
|
+ el: "button",
|
|
|
+ click() {
|
|
|
+ clickHangUp(row);
|
|
|
+ },
|
|
|
+ }
|
|
|
+ : {},
|
|
|
+ !props.selectStatus && row.status == 60
|
|
|
+ ? {
|
|
|
+ attrs: {
|
|
|
+ label: "取消挂起",
|
|
|
+ type: "primary",
|
|
|
+ text: true,
|
|
|
+ },
|
|
|
+ el: "button",
|
|
|
+ click() {
|
|
|
+ clickCancelHangUp(row);
|
|
|
+ },
|
|
|
+ }
|
|
|
+ : {},
|
|
|
!props.selectStatus && row.status && row.status != 0
|
|
|
? {
|
|
|
attrs: {
|
|
@@ -531,6 +557,34 @@ const clickDeleteTwo = (row) => {
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
};
|
|
|
+const clickHangUp = (row) => {
|
|
|
+ ElMessageBox.confirm("你是否确认此操作", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ proxy.post("/orderInfo/updateSuspendStatus", { id: row.id }).then(() => {
|
|
|
+ ElMessage({ message: "操作成功", type: "success" });
|
|
|
+ getList();
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+};
|
|
|
+const clickCancelHangUp = (row) => {
|
|
|
+ ElMessageBox.confirm("你是否确认此操作", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ proxy.post("/orderInfo/cancelSuspendOrder", { id: row.id }).then(() => {
|
|
|
+ ElMessage({ message: "操作成功", type: "success" });
|
|
|
+ getList();
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+};
|
|
|
const openLogs = ref(false);
|
|
|
const loadingLogs = ref(false);
|
|
|
const logsList = ref({
|