From f294efb8c01ad8b0704a92d51c14dbd55d898874 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期四, 23 十月 2025 16:49:46 +0800
Subject: [PATCH] 拆分原材料和外购成品的业务流程(报检、下单、检验)
---
src/views/CNAS/systemManagement/measuresDealRisks/components/listRiskAnalysisControlPlans.vue | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/src/views/CNAS/systemManagement/measuresDealRisks/components/listRiskAnalysisControlPlans.vue b/src/views/CNAS/systemManagement/measuresDealRisks/components/listRiskAnalysisControlPlans.vue
index bf9e244..2cbdc4a 100644
--- a/src/views/CNAS/systemManagement/measuresDealRisks/components/listRiskAnalysisControlPlans.vue
+++ b/src/views/CNAS/systemManagement/measuresDealRisks/components/listRiskAnalysisControlPlans.vue
@@ -13,7 +13,8 @@
<el-button size="small" @click="openDownloadDia">瀵煎嚭</el-button>
</div>
</div>
- <el-table :data="tableData" style="width: 100%" height="calc(100vh - 18em)" key="table0">
+ <el-table :data="tableData" style="width: 100%" height="calc(100vh - 18em)" key="table0"
+ :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" border>
<el-table-column type="index" label="搴忓彿" width="120">
<template v-slot="scope">
<span>{{ (search.current - 1) * search.size + scope.$index + 1 }}</span>
@@ -49,7 +50,7 @@
</el-table-column>
</el-table>
<el-pagination :current-page="1" :page-size="search.size" :page-sizes="[10, 20, 30, 50, 100]" :total="search.total"
- layout="->,total, sizes, prev, pager, next, jumper" @size-change="handleSizeChange"
+ layout="->,total, sizes, prev, pager, next, jumper" @size-change="handleSizeChange" background
@current-change="handleCurrentChange">
</el-pagination>
<el-dialog title="鎻愮ず" :visible.sync="dialogVisible" width="50%">
@@ -136,7 +137,6 @@
},
initData() {
getPageList(this.search).then(res => {
- if (res.code === 201) return;
this.tableData = res.data.records;
this.search.total = res.data.total;
});
@@ -166,7 +166,6 @@
// 瀹℃壒鎺ュ彛
approvalApi(userId, status) {
riskAnalysisApprovalOfControlPlanChecklist({ approval: userId, status }).then(res => {
- if (res.code === 201) return;
this.initData()
this.$message({
type: 'success',
@@ -199,7 +198,6 @@
// 鎵瑰噯鎺ュ彛
approveApi(userId, status) {
approvalOfControlPlanChecklist({ approve: userId, status }).then(res => {
- if (res.code === 201) return;
this.initData()
this.$message({
type: 'success',
@@ -214,7 +212,7 @@
});
},
onSuccess(response) {
- if (response.code == 201) {
+ if (response.code != 200) {
this.$message({
type: 'error',
message: response.message,
@@ -239,7 +237,6 @@
type: 'warning'
}).then(() => {
deleteSignificantRiskFactorAnalysis({ id: row.id }).then(res => {
- if (res.code === 201) return;
this.initData()
this.$message({
type: 'success',
@@ -256,7 +253,6 @@
addApi() {
this.loading = true
analysisOfMajorRiskFactorsAdded(this.form).then(res => {
- if (res.code === 201) return;
this.dialogVisible = false
this.loading = false
this.initData()
--
Gitblit v1.9.3