|
@@ -21,6 +21,7 @@
|
|
</template>
|
|
</template>
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
<el-button style="margin-left: 5px;" type="primary" size="small" icon="Plus" @click="exportZero">导入委托</el-button>
|
|
<el-button style="margin-left: 5px;" type="primary" size="small" icon="Plus" @click="exportZero">导入委托</el-button>
|
|
|
|
+ <el-button v-hasPermi="['business:entrust:workOrder:base:edit']" style="margin-left: 5px;" type="danger" size="small" icon="delete" @click="stopWorkOrder">停用</el-button>
|
|
</div>
|
|
</div>
|
|
<!-- 搜索区 -->
|
|
<!-- 搜索区 -->
|
|
<el-form class="list-search-container" size="small" :model="queryParams" ref="queryRef" :inline="true"
|
|
<el-form class="list-search-container" size="small" :model="queryParams" ref="queryRef" :inline="true"
|
|
@@ -168,7 +169,7 @@
|
|
exportCurrentWorkOrder,
|
|
exportCurrentWorkOrder,
|
|
delEntrust,
|
|
delEntrust,
|
|
transNext,
|
|
transNext,
|
|
- addEntrust, exportStore,saveExamine
|
|
|
|
|
|
+ addEntrust, exportStore,saveExamine,stopWorkOrderApi
|
|
} from "@/api/business/entrust/currentWorkOrder";
|
|
} from "@/api/business/entrust/currentWorkOrder";
|
|
import SetEntrustDialog from "../setEntrustDialog";
|
|
import SetEntrustDialog from "../setEntrustDialog";
|
|
import useUserStore from "@/store/modules/user";
|
|
import useUserStore from "@/store/modules/user";
|
|
@@ -409,6 +410,18 @@
|
|
getList();
|
|
getList();
|
|
});
|
|
});
|
|
}
|
|
}
|
|
-
|
|
|
|
checkCurrentMonthHandle();
|
|
checkCurrentMonthHandle();
|
|
|
|
+ const stopWorkOrder = ()=>{
|
|
|
|
+ loading.value = true;
|
|
|
|
+ proxy.$modal.confirm("是否确认停用工单?").then(() => {
|
|
|
|
+ loading.value = false;
|
|
|
|
+ stopWorkOrderApi(selections.value).then((res)=>{
|
|
|
|
+ proxy.$modal.msgSuccess("停用成功");
|
|
|
|
+ })
|
|
|
|
+ }).catch((e) => {
|
|
|
|
+
|
|
|
|
+ }).finally(() => {
|
|
|
|
+ loading.value = false; // 确保在请求完成时也关闭加载状态
|
|
|
|
+ })
|
|
|
|
+ }
|
|
</script>
|
|
</script>
|