From 3901a1e90bdeb25a53bba1f86361b37fe157a914 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期五, 28 十一月 2025 11:07:14 +0800
Subject: [PATCH] 原材料下单:待下单的订单批次号重复的高亮显示
---
src/views/business/materialOrder/index.vue | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/views/business/materialOrder/index.vue b/src/views/business/materialOrder/index.vue
index 98a7af4..3ee3dcf 100644
--- a/src/views/business/materialOrder/index.vue
+++ b/src/views/business/materialOrder/index.vue
@@ -48,7 +48,7 @@
<el-option v-for="(a, i) in inspectStatusList" :key="i" :label="a.label" :value="a.value"></el-option>
</el-select>
</el-form-item>
- <el-form-item label="涓嬪彂鏃堕棿" prop="date" v-if="(tabIndex === 2 || tabIndex === 3 || tabIndex === 4) && more">
+ <el-form-item label="鎶ユ鏃堕棿" prop="date" v-if="(tabIndex === 2 || tabIndex === 3 || tabIndex === 4) && more">
<el-date-picker v-model="entity.date" end-placeholder="缁撴潫鏃ユ湡" format="yyyy-MM-dd" placeholder="閫夋嫨鏃ユ湡" @change="goSearch"
range-separator="鑷�" size="small" start-placeholder="寮�濮嬫棩鏈�" type="daterange" value-format="yyyy-MM-dd">
</el-date-picker>
@@ -82,25 +82,25 @@
<!--妫�楠屼腑-->
<div class="table">
<lims-table :tableData="tableData1" :column="column1" v-if="tabIndex === 1" :isSelection="true"
- :rowClassName="changeRowClass" :handleSelectionChange="selectMethod" @pagination="pagination1"
+ :rowClassName="changeRowClass2" :handleSelectionChange="selectMethod" @pagination="pagination1"
:height="'calc(100vh - 290px)'" key="tableData1" :page="page1" :tableLoading="tableLoading1"></lims-table>
</div>
<!--宸叉楠�-->
<div class="table">
<lims-table :tableData="tableData2" :column="column2" v-if="tabIndex === 2" :isSelection="true"
- :rowClassName="changeRowClass" :handleSelectionChange="selectMethod" @pagination="pagination2"
+ :rowClassName="changeRowClass2" :handleSelectionChange="selectMethod" @pagination="pagination2"
:height="'calc(100vh - 290px)'" key="tableData2" :page="page2" :tableLoading="tableLoading2"></lims-table>
</div>
<!--鍏ㄩ儴-->
<div class="table">
<lims-table :tableData="tableData3" :column="column3" v-if="tabIndex === 3" :isSelection="true"
- :rowClassName="changeRowClass" :handleSelectionChange="selectMethod" @pagination="pagination3"
+ :rowClassName="changeRowClass2" :handleSelectionChange="selectMethod" @pagination="pagination3"
:height="'calc(100vh - 290px)'" key="tableData3" :page="page3" :tableLoading="tableLoading3"></lims-table>
</div>
<!--瀛e害妫�楠�-->
<div class="table">
<lims-table :tableData="tableData4" :column="column4" v-if="tabIndex === 4" :isSelection="true"
- :rowClassName="changeRowClass" :handleSelectionChange="selectMethod" @pagination="pagination4"
+ :rowClassName="changeRowClass2" :handleSelectionChange="selectMethod" @pagination="pagination4"
:height="'calc(100vh - 290px)'" key="tableData4" :page="page4" :tableLoading="tableLoading4"></lims-table>
</div>
</div>
@@ -1393,6 +1393,12 @@
this.multipleSelection = val
},
changeRowClass({ row, rowIndex }) {
+ if (row.isFirst != 1 && row.lotBatchNoHasRepeat) {
+ return 'highlight-danger-row-border'
+ }
+ return ''
+ },
+ changeRowClass2({ row, rowIndex }) {
if (row.isFirst == 1) {
return 'highlight-danger-row-border'
}
--
Gitblit v1.9.3