From 2f1c9c7b482652311139920dd315bb7b0e1cb1bf Mon Sep 17 00:00:00 2001
From: wangfei <3597712270@qq.com>
Date: 星期二, 17 六月 2025 14:16:46 +0800
Subject: [PATCH] 中空创建任务界面增加查询和统计数据

---
 UI-Project/src/views/hollow/hollowequipment.vue |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/UI-Project/src/views/hollow/hollowequipment.vue b/UI-Project/src/views/hollow/hollowequipment.vue
index a679abc..0c80ceb 100644
--- a/UI-Project/src/views/hollow/hollowequipment.vue
+++ b/UI-Project/src/views/hollow/hollowequipment.vue
@@ -92,10 +92,13 @@
     <div style="display: flex;">
     <el-input v-model="flowCardId" style="margin-left: 10px;margin-bottom: 10px;width: 240px;" :placeholder="$t('searchOrder.incardnumber')" />
     <el-input v-model="filmsId" style="margin-left: 10px;margin-bottom: 10px;width: 240px;" :placeholder="$t('film.infilms')"/>
+    <el-input v-model="productName" style="margin-left: 10px;margin-bottom: 10px;width: 240px;" :placeholder="$t('large.inproductname')"/>
+    <el-input v-model="customerName" style="margin-left: 10px;margin-bottom: 10px;width: 240px;" :placeholder="$t('large.incustomerName')"/>
     <el-input v-model="thickness" style="margin-left: 10px;margin-bottom: 10px;width: 240px;" :placeholder="$t('searchOrder.inthickness')"/>
     <el-button type="primary" style="margin-left: 10px;margin-bottom: 10px;" @click="fetchFlowCardsearch">
       {{$t('reportmanage.inquire')}}</el-button>
   </div>
+  <div style="margin-left: 87%;">{{$t('hellow.pairsnumbertotal')}}{{ pairTotal }}</div>
   <el-table
     ref="table"
     style="margin-top: 20px; height: 700px;"
@@ -114,8 +117,8 @@
       <el-table-column prop="filmsId" align="center" :label="$t('hellow.coatingtypes')" min-width="80"/>
       <el-table-column prop="sumCount" align="center" :label="$t('hellow.totalnumber')" min-width="80"/>
       <el-table-column prop="realCount" align="center" :label="$t('hellow.realpieces')" min-width="80"/>
-      <el-table-column prop="pairCount" align="center" :label="$t('hellow.pairsnumber')" min-width="80"/>
       <el-table-column prop="damageCount" align="center" :label="$t('hellow.damagenumber')" min-width="80"/>
+      <el-table-column prop="pairCount" align="center" :label="$t('hellow.pairsnumber')" min-width="80"/>
       </el-table>
       </template>
     </el-table-column>
@@ -992,6 +995,8 @@
 const topRemove = ref('')
 const filmsId = ref('')
 const thickness = ref('')
+const productName = ref('')
+const customerName = ref('')
 const flowCardId = ref('')
 const casFour = ref('')
 const casOne = ref('')
@@ -1026,6 +1031,7 @@
 const currentRow = reactive({});
 const formattedProcessType = ref([]);
 const selectedFormulaName = ref('');
+const pairTotal = ref();
 let selectedFormulaId = ref(null);
 const formulaNameid = ref({ id: null });
 const titleformulaName = ref({ formulaName: [] ,formulaId: []});
@@ -1377,6 +1383,7 @@
     if (response.code == 200) {
       ElMessage.success(response.message);
       tableDatab.value = response.data;
+      pairTotal.value = response.data[0].pairTotalCount;
     } else {
       ElMessage.error('Failed to fetch data');
     }
@@ -1401,11 +1408,14 @@
     const response = await request.post('/hollowGlass/hollowGlassRelationInfo/queryHollowAllFlowCard',{
       filmsId: filmsId.value,
       flowCardId: flowCardId.value,
+      productName: productName.value,
+      customerName: customerName.value,
       thickness: thickness.value
     });
     if (response.code == 200) {
       ElMessage.success(response.message);
       tableDatab.value = response.data;
+      pairTotal.value = response.data[0].pairTotalCount;
     } else {
       ElMessage.error('Failed to fetch data');
     }

--
Gitblit v1.8.0