From 7bdc84b5844d2a481e2f17cdd2c8204fd4a403ee Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期一, 29 九月 2025 16:48:31 +0800
Subject: [PATCH] 业务管理相关页面添加`批号`查询条件
---
src/views/business/costStatistics/index.vue | 65 +++++++++++++++++++++++++++++---
1 files changed, 58 insertions(+), 7 deletions(-)
diff --git a/src/views/business/costStatistics/index.vue b/src/views/business/costStatistics/index.vue
index 6243ee8..4b34fe2 100644
--- a/src/views/business/costStatistics/index.vue
+++ b/src/views/business/costStatistics/index.vue
@@ -1,8 +1,13 @@
<template>
+<!-- 璐圭敤缁熻椤甸潰-->
<div class="capacity-scope">
<div class="search">
<div>
<el-form :model="entity" ref="entity" size="small" :inline="true">
+ <el-form-item label="濮旀墭缂栧彿" prop="entrustCode">
+ <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="entity.entrustCode"
+ @keyup.enter.native="refreshTable()"></el-input>
+ </el-form-item>
<el-form-item label="鏍峰搧鍚嶇О" prop="sample">
<el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="entity.sample"
@keyup.enter.native="refreshTable()"></el-input>
@@ -16,8 +21,8 @@
</el-select>
</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>
@@ -27,16 +32,18 @@
:height="'calc(100vh - 250px)'" @pagination="pagination"
:page="page" :tableLoading="tableLoading"></lims-table>
</div>
+ <viewInfoDia ref="viewInfoDia" v-if="viewInfoDia"></viewInfoDia>
</div>
</template>
<script>
import limsTable from "@/components/Table/lims-table.vue";
+import viewInfoDia from "./components/viewInfoDia.vue";
import {selectRatesPage} from "@/api/business/insOrderRates";
import {selectCustomPageList} from "@/api/system/customer";
export default {
- components: {limsTable},
+ components: {limsTable,viewInfoDia},
data() {
return {
entity: {
@@ -49,19 +56,56 @@
{ label: '涓嬪崟鏃堕棿', prop: 'createTime', width: 150 },
{ label: '濮旀墭缂栧彿', prop: 'entrustCode', width: 160 },
{ label: '鏍峰搧鍚嶇О', prop: 'sample', width: 160 },
- { label: '鏍峰搧鏁伴噺', prop: 'sampleNum' },
{ label: '濮旀墭鍗曚綅', prop: 'company' },
+ {
+ label: "涓嬪崟绫诲瀷",
+ prop: "typeSource",
+ width: "100px",
+ dataType: "tag",
+ formatData: (params) => {
+ if (params == 0) {
+ return "鎴愬搧涓嬪崟";
+ } else if(params == 1) {
+ return "鍘熸潗鏂欎笅鍗�";
+ } else {
+ return null
+ }
+ },
+ formatType: (params) => {
+ if (params == 0) {
+ return "warning";
+ } else if(params == 1) {
+ return "info";
+ } else {
+ return "null";
+ }
+ },
+ },
{ label: '濮旀墭浜�', prop: 'prepareUser' },
{ label: '鐢熶骇鍗曚綅', prop: 'production' },
- { label: '宸ョ▼鍚嶇О', prop: 'engineering' },
- { label: '宸ユ椂', prop: 'cost' }
+ { label: '鎬讳环', prop: 'totalPrice' },
+ {
+ dataType: "action",
+ fixed: "right",
+ label: "鎿嶄綔",
+ operation: [
+ {
+ name: "鏌ョ湅璇︽儏",
+ type: "text",
+ clickFun: (row) => {
+ this.openDia(row)
+ },
+ },
+ ],
+ }
],
page: {
total: 0,
size: 10,
current: 1
},
- companyOptions: []
+ companyOptions: [],
+ viewInfoDia: false
}
},
mounted() {
@@ -106,6 +150,13 @@
this.page.size = page.limit
this.refreshTable()
},
+ // 鏌ョ湅璇︽儏
+ openDia (row) {
+ this.viewInfoDia = true
+ this.$nextTick(() => {
+ this.$refs.viewInfoDia.openDia(row)
+ })
+ },
}
}
</script>
--
Gitblit v1.9.3