From 5c5465e7718a84d5b2a39f4e5fae7d220bd4d8ed Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 05 三月 2025 10:13:14 +0800
Subject: [PATCH] 检验任务复核检验任务下载报告,下载的内容以后缀.htm形式出现
---
src/views/CNAS/process/method/standardMethod/index.vue | 141 ++++++++--------------------------------------
1 files changed, 25 insertions(+), 116 deletions(-)
diff --git a/src/views/CNAS/process/method/standardMethod/index.vue b/src/views/CNAS/process/method/standardMethod/index.vue
index b970b5f..bb4602e 100644
--- a/src/views/CNAS/process/method/standardMethod/index.vue
+++ b/src/views/CNAS/process/method/standardMethod/index.vue
@@ -37,157 +37,70 @@
<div class="search_thing">
<div class="search_label">鏍囧噯缂栧彿锛�</div>
<div class="search_input">
- <el-input
- size="small"
- placeholder="璇疯緭鍏�"
- clearable
- v-model="queryParams.code"
- @keyup.enter.native="refreshTable()"
- ></el-input>
+ <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="queryParams.code"
+ @keyup.enter.native="refreshTable()"></el-input>
</div>
</div>
<div class="search_thing">
<div class="search_label">鏍囧噯鍚嶇О锛�</div>
<div class="search_input">
- <el-input
- size="small"
- placeholder="璇疯緭鍏�"
- clearable
- v-model="queryParams.name"
- @keyup.enter.native="refreshTable()"
- ></el-input>
+ <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="queryParams.name"
+ @keyup.enter.native="refreshTable()"></el-input>
</div>
</div>
<div class="search_thing" style="padding-left: 30px">
<el-button size="small" @click="refresh()">閲� 缃�</el-button>
- <el-button size="small" type="primary" @click="refreshTable()"
- >鏌� 璇�</el-button
- >
+ <el-button size="small" type="primary" @click="refreshTable()">鏌� 璇�</el-button>
</div>
<div class="btn">
- <el-button
- size="small"
- @click="$refs.ValueTable.openUpload()"
- v-if="inPower"
- >
+ <!-- <el-button size="small" @click="$refs.ValueTable.openUpload()" v-if="inPower">
<i class="el-icon-upload2" style="color: #3a7bfa"></i>
- <span style="color: #3a7bfa">瀵煎叆</span></el-button
- >
- <el-button size="small" type="primary" @click="openAdd" v-if="addPower"
- >鏂板</el-button
- >
+ <span style="color: #3a7bfa">瀵煎叆</span></el-button> -->
+ <el-button size="small" type="primary" @click="openAdd" v-if="addPower">鏂板</el-button>
</div>
</div>
- <lims-table
- :tableData="tableData"
- :column="column"
- :page="page"
- :tableLoading="tableLoading"
- :height="'calc(100vh - 250px)'"
- style="padding: 20px; padding-top: 0"
- @pagination="pagination"
- ></lims-table>
+ <lims-table :tableData="tableData" :column="column" :page="page" :tableLoading="tableLoading"
+ :height="'calc(100vh - 250px)'" style="padding: 20px; padding-top: 0" @pagination="pagination"></lims-table>
<!-- 鏂板/缂栬緫 -->
<el-dialog :title="title" :visible.sync="addDlog" width="500px">
- <el-form
- :model="addForm"
- ref="addForm"
- :rules="addRules"
- label-position="right"
- label-width="120px"
- >
+ <el-form :model="addForm" ref="addForm" :rules="addRules" label-position="right" label-width="120px">
<el-form-item label="棰嗗煙" prop="field">
- <el-input
- size="small"
- placeholder="璇疯緭鍏�"
- clearable
- v-model="addForm.field"
- ></el-input>
+ <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addForm.field"></el-input>
</el-form-item>
<el-form-item label="鏍囧噯缂栧彿" prop="code">
- <el-input
- size="small"
- placeholder="璇疯緭鍏�"
- clearable
- v-model="addForm.code"
- >
+ <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addForm.code">
</el-input>
</el-form-item>
<el-form-item label="妫�楠屽璞�" prop="structureTestObjectId">
- <el-cascader
- size="small"
- :options="tandardTree"
- v-model="addForm.structureTestObjectId"
- collapse-tags
- :props="{ multiple: true, checkStrictly: true }"
- clearable
- style="width: 100%"
- ></el-cascader>
+ <el-cascader size="small" :options="tandardTree" v-model="addForm.structureTestObjectId" collapse-tags
+ :props="{ multiple: true, checkStrictly: true }" clearable style="width: 100%"></el-cascader>
</el-form-item>
<el-form-item label="鏍囧噯鎻忚堪" prop="name">
- <el-input
- size="small"
- placeholder="璇疯緭鍏�"
- clearable
- v-model="addForm.name"
- >
+ <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addForm.name">
</el-input>
</el-form-item>
<el-form-item label="鏍囧噯鎻忚堪EN" prop="nameEn">
- <el-input
- size="small"
- placeholder="璇疯緭鍏�"
- clearable
- v-model="addForm.nameEn"
- >
+ <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addForm.nameEn">
</el-input>
</el-form-item>
<el-form-item label="澶囨敞" prop="remark">
- <el-input
- size="small"
- placeholder="璇疯緭鍏�"
- clearable
- v-model="addForm.remark"
- >
+ <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addForm.remark">
</el-input>
</el-form-item>
<el-form-item label="璧勮川" prop="qualificationId">
- <el-select
- v-model="addForm.qualificationId"
- size="small"
- clearable
- placeholder="璇烽�夋嫨"
- style="width: 100%"
- >
- <el-option
- v-for="item in qualificationList"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- >
+ <el-select v-model="addForm.qualificationId" size="small" clearable placeholder="璇烽�夋嫨" style="width: 100%">
+ <el-option v-for="item in qualificationList" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="鏄惁浜у搧鏍囧噯" prop="isProduct">
- <el-select
- v-model="addForm.isProduct"
- size="small"
- clearable
- placeholder="璇烽�夋嫨"
- style="width: 100%"
- >
+ <el-select v-model="addForm.isProduct" size="small" clearable placeholder="璇烽�夋嫨" style="width: 100%">
<el-option label="鍚�" :value="0"> </el-option>
<el-option label="鏄�" :value="1"> </el-option>
</el-select>
</el-form-item>
<el-form-item label="鏄惁鍚敤" prop="isUse">
- <el-select
- v-model="addForm.isUse"
- size="small"
- clearable
- placeholder="璇烽�夋嫨"
- style="width: 100%"
- >
+ <el-select v-model="addForm.isUse" size="small" clearable placeholder="璇烽�夋嫨" style="width: 100%">
<el-option label="鍚�" :value="0"> </el-option>
<el-option label="鏄�" :value="1"> </el-option>
</el-select>
@@ -195,12 +108,7 @@
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="addDlog = false">鍙� 娑�</el-button>
- <el-button
- :loading="addLoading"
- type="primary"
- @click="submitProduct('addForm')"
- >纭� 璁�</el-button
- >
+ <el-button :loading="addLoading" type="primary" @click="submitProduct('addForm')">纭� 璁�</el-button>
</span>
</el-dialog>
</div>
@@ -216,6 +124,7 @@
upStandardMethod,
} from "@/api/cnas/process/method/standardMethod";
export default {
+ name: 'StandardMethod',
components: {
limsTable,
},
@@ -481,7 +390,7 @@
this.getList();
});
})
- .catch(() => {});
+ .catch(() => { });
},
},
};
--
Gitblit v1.9.3