From e5454b769d44a34af423bf87ac8a740bf8c20341 Mon Sep 17 00:00:00 2001
From: Crunchy <3114200645@qq.com>
Date: 星期二, 29 四月 2025 13:25:29 +0800
Subject: [PATCH] Merge branch 'dev' into dev_tides

---
 src/views/business/costStatistics/index.vue |   36 +++++++++++++++++++++++++++++++-----
 1 files changed, 31 insertions(+), 5 deletions(-)

diff --git a/src/views/business/costStatistics/index.vue b/src/views/business/costStatistics/index.vue
index 98cf152..4b34fe2 100644
--- a/src/views/business/costStatistics/index.vue
+++ b/src/views/business/costStatistics/index.vue
@@ -4,6 +4,10 @@
     <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>
@@ -17,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>
@@ -52,12 +56,34 @@
         { 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",

--
Gitblit v1.9.3