From 69cd60158fbbd2be590a2f08c1997586cb1b5131 Mon Sep 17 00:00:00 2001
From: buhuazhen <hua100783@gmail.com>
Date: 星期一, 25 五月 2026 10:27:39 +0800
Subject: [PATCH] feat (production)报工页面直接取消审批人、报工页面添加成品名称finalProductModel
---
src/pages/productionManagement/workOrder/index.vue | 42 +++++++++++++++++++++++-------------------
1 files changed, 23 insertions(+), 19 deletions(-)
diff --git a/src/pages/productionManagement/workOrder/index.vue b/src/pages/productionManagement/workOrder/index.vue
index aaba6b5..6e6f261 100644
--- a/src/pages/productionManagement/workOrder/index.vue
+++ b/src/pages/productionManagement/workOrder/index.vue
@@ -2,7 +2,7 @@
<view class="work-order">
<!-- 閫氱敤椤甸潰澶撮儴 -->
<PageHeader title="鐢熶骇宸ュ崟" @back="goBack" />
-
+
<!-- 鎼滅储鍖哄煙 -->
<view class="search-section">
<view class="search-bar">
@@ -15,13 +15,13 @@
clearable
/>
</view>
-
+
<view class="filter-button" @click="handleQuery">
<up-icon name="search" size="24" color="#999"></up-icon>
</view>
</view>
</view>
-
+
<!-- 宸ュ崟鍒楄〃 -->
<scroll-view scroll-y class="ledger-list" v-if="tableData.length > 0" @scrolltolower="loadMore">
<view v-for="(item, index) in tableData" :key="item.id || index" class="ledger-item">
@@ -36,16 +36,20 @@
<text class="item-tag tag-type">{{ item.workOrderType }}</text>
</view>
</view>
-
+
<up-divider></up-divider>
-
+
<view class="item-details">
<view class="detail-row">
- <text class="detail-label">浜у搧鍚嶇О</text>
+ <text class="detail-label">鎴愬搧鍚嶇О</text>
+ <text class="detail-value">{{ item.finalProductModel }}</text>
+ </view>
+ <view class="detail-row">
+ <text class="detail-label">鍔犲伐鍝佸悕绉�</text>
<text class="detail-value">{{ item.productName }}</text>
</view>
<view class="detail-row">
- <text class="detail-label">瑙勬牸鍨嬪彿</text>
+ <text class="detail-label">鍔犲伐鍝佸瀷鍙�</text>
<text class="detail-value">{{ item.model }}</text>
</view>
<view class="detail-row">
@@ -60,18 +64,18 @@
<text class="detail-label">闇�姹�/瀹屾垚鏁伴噺</text>
<text class="detail-value">{{ item.planQuantity }} / {{ item.completeQuantity }} {{ item.unit }}</text>
</view>
-
+
<view class="progress-section">
<text class="detail-label">瀹屾垚杩涘害</text>
<view class="progress-bar">
- <up-line-progress
- :percentage="toProgressPercentage(item.completionStatus)"
+ <up-line-progress
+ :percentage="toProgressPercentage(item.completionStatus)"
activeColor="#2979ff"
:showText="true"
></up-line-progress>
</view>
</view>
-
+
<view class="detail-row">
<text class="detail-label">璁″垝寮�濮�</text>
<text class="detail-value">{{ item.planStartTime }}</text>
@@ -84,7 +88,7 @@
</view>
<up-loadmore :status="loadStatus" />
</scroll-view>
-
+
<view v-else-if="!loading" class="no-data">
<up-empty mode="data" text="鏆傛棤宸ュ崟鏁版嵁"></up-empty>
</view>
@@ -152,15 +156,15 @@
const getList = () => {
if (loading.value) return;
loading.value = true;
-
+
const params = { ...searchForm.value, ...page };
-
+
productWorkOrderPage(params).then((res) => {
loading.value = false;
const records = res.data.records || [];
tableData.value = page.current === 1 ? records : [...tableData.value, ...records];
page.total = res.data.total;
-
+
if (tableData.value.length >= page.total) {
loadStatus.value = 'nomore';
} else {
@@ -232,7 +236,7 @@
gap: 10px;
padding: 12px 0;
border-top: 1px solid #f5f5f5;
-
+
:deep(.up-button) {
margin: 0;
width: auto;
@@ -245,13 +249,13 @@
display: flex;
flex-direction: column;
align-items: center;
-
+
.qr-title {
font-size: 18px;
font-weight: bold;
margin-bottom: 20px;
}
-
+
.qr-box {
padding: 20px;
background-color: #fff;
@@ -259,7 +263,7 @@
border-radius: 8px;
margin-bottom: 15px;
}
-
+
.qr-info {
font-size: 14px;
color: #666;
--
Gitblit v1.9.3