From 4f94a66bc8ad9a57295f161de9195d5528b1d181 Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期二, 08 四月 2025 11:55:16 +0800 Subject: [PATCH] 基础数据维护+原辅材下单修改 --- src/views/business/productSamplingInfo/index.vue | 33 +++++++++++++++++---------------- 1 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/views/business/productSamplingInfo/index.vue b/src/views/business/productSamplingInfo/index.vue index 9ba2b67..166404a 100644 --- a/src/views/business/productSamplingInfo/index.vue +++ b/src/views/business/productSamplingInfo/index.vue @@ -8,8 +8,8 @@ </el-input> </el-form-item> <el-form-item> - <el-button type="primary" icon="el-icon-search" size="mini" @click="refreshTable">鏌� 璇�</el-button> - <el-button icon="el-icon-refresh" size="mini" @click="refresh">閲� 缃�</el-button> + <el-button type="primary" size="mini" @click="refreshTable">鏌ヨ</el-button> + <el-button size="mini" @click="refresh">閲嶇疆</el-button> </el-form-item> </el-form> <div> @@ -19,9 +19,10 @@ <div> <div class="table"> <ul class="tab"> - <li v-for="(m, i) in tabList" :key="i" :class="{ active: i === tabIndex }" @click="handleTab(m, i)">{{ m.label }}</li> + <li v-for="(m, i) in tabList" :key="i" :class="{ active: i === tabIndex }" @click="handleTab(m, i)">{{ m.label + }}</li> </ul> - <!--瀛e害--> + <!--鍙潬鎬�--> <lims-table :tableData="tableData" :column="column" v-if="tabIndex === 0" @pagination="pagination" :height="'calc(100vh - 290px)'" :page="page" :tableLoading="tableLoading"></lims-table> <!--骞村害--> @@ -34,8 +35,8 @@ <div style="display: flex;align-items: center;justify-content: space-between;margin-bottom: 10px"> <div style="width: 30%;display: flex;align-items: center;"> <el-input v-if="operationType !== 'view'" v-model="currentYear" size="small" /> - <span v-if="operationType === 'view'" - style="width: 160px;font-size: 18px;font-weight: 600">{{ currentYear }}</span> + <span v-if="operationType === 'view'" style="width: 160px;font-size: 18px;font-weight: 600">{{ currentYear + }}</span> </div> <div v-if="operationType !== 'view'"> <el-button size="small" type="primary" @click="addQuarter">娣诲姞</el-button> @@ -44,7 +45,7 @@ </div> <div> <el-table :data="yearItems" border height="450" style="width: 100%" - :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }"> + :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }"> <el-table-column label="绫诲埆" prop="yearType" width="240"> <template slot-scope="{row}"> <template v-if="operationType !== 'view'"> @@ -251,7 +252,7 @@ import { selectUserCondition } from "@/api/performance/class"; export default { - name: "b1-product-sampling-info", + name: "ProductSamplingInfo", // import 寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢� components: { limsTable, AddQuarterItem }, data() { @@ -261,7 +262,7 @@ tabIndex: 0, tabList: [ { - label: '瀛e害', + label: '鍙潬鎬�', value: 0 }, { @@ -316,7 +317,7 @@ ], page: { total: 0, - size: 10, + size: 20, current: 1 }, tableData1: [], @@ -362,7 +363,7 @@ ], page1: { total: 0, - size: 10, + size: 20, current: 1 }, yearSampleDia: false, // 骞村害鎶芥牱 @@ -434,15 +435,15 @@ this.page1.size = page.limit this.refreshTable() }, - // 缂栬緫瀛e害鎶芥牱 + // 缂栬緫鍙潬鎬ф娊鏍� editForm(row) { this.$refs.addQuarterItem.openDia(row, 'edit') }, - // 鏌ョ湅瀛e害鎶芥牱 + // 鏌ョ湅鍙潬鎬ф娊鏍� viewQuarterInfo(row) { this.$refs.addQuarterItem.openDia(row, 'view') }, - // 鍒犻櫎瀛e害鎶芥牱 + // 鍒犻櫎鍙潬鎬ф娊鏍� deleteQuarterInfo(row) { this.$confirm('鏄惁鍒犻櫎褰撳墠鏁版嵁?', "璀﹀憡", { confirmButtonText: "纭畾", @@ -463,7 +464,7 @@ finalReportQuarter({ quarterId: row.quarterId, random: randomNum }).then(res => { this.outLoading = false const blob = new Blob([res], { type: 'application/octet-stream' }); - this.$download.saveAs(blob, '瀛e害鎶芥牱淇℃伅瀵煎嚭.docx') + this.$download.saveAs(blob, '鍙潬鎬ф娊鏍蜂俊鎭鍑�.docx') }) }, // 骞村害涓嬭浇 @@ -610,7 +611,7 @@ return 'height: calc(100% - ' + '44' + 'px)' }, getUserList() { - selectUserCondition({ type: 0 }).then((res) => { + selectUserCondition().then((res) => { this.userList = res.data; }) }, -- Gitblit v1.9.3