From a177ad6532fcdc1e9d2b3910276bd88d04791469 Mon Sep 17 00:00:00 2001
From: fcx <2246384483@qq.com>
Date: 星期二, 02 十二月 2025 20:19:13 +0800
Subject: [PATCH] 1.XJ新增照片查看,不良描述
---
pages/QC/SJ/ScanCode.vue | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/pages/QC/SJ/ScanCode.vue b/pages/QC/SJ/ScanCode.vue
index 3d1f065..dee1588 100644
--- a/pages/QC/SJ/ScanCode.vue
+++ b/pages/QC/SJ/ScanCode.vue
@@ -1,8 +1,8 @@
<template>
<view class="sn-scan-page">
- <view class="title">SN 鎵爜椤甸潰</view>
+ <view class="title">SN纭</view>
- <view class="remark">
+ <view v-if="current === 'true'" class="remark">
澶囨敞锛氱偣鍑�"鎵爜"鎸夐挳鎵弿SN鐮侊紝鍐嶆鐐瑰嚮鍙鐩栦笂娆¤褰�
</view>
@@ -10,20 +10,26 @@
<view class="table-header">
<text class="col name">椤圭洰鍚嶇О</text>
<text class="col sn">SN鐮�</text>
- <text class="col action">鎿嶄綔</text>
+ <text v-if="current === 'true'" class="col action">鎿嶄綔</text>
</view>
<view class="table-row" v-for="(item, index) in scanItems" :key="item.id">
<text class="col name">{{ item.scanItem }}</text>
+ <!-- 鍙紪杈戠姸鎬侊細鏄剧ず杈撳叆妗� -->
<input
+ v-if="current === 'true'"
class="col sn-input"
type="text"
v-model="item.snNo"
placeholder="璇疯緭鍏ユ垨鎵爜"
/>
+
+ <!-- 鍙鐘舵�侊細鏄剧ず鏂囨湰 -->
+ <text v-if="current !== 'true'" class="col sn-text">{{ item.snNo }}</text>
<button
+ v-if="current === 'true'"
class="col scan-btn"
type="primary"
@click="onScan(index)"
@@ -32,7 +38,7 @@
</view>
<view class="action-bar">
- <button type="success" @click="submit">淇濆瓨</button>
+ <button v-if="current === 'true'" type="success" @click="submit">淇濆瓨</button>
</view>
</view>
</template>
@@ -43,12 +49,14 @@
return {
mid: null, // MES涓昏〃ID
scanItems: [], // 浠� MES_SJ_SCAN_ITEM_CK 鑾峰彇
+ current: 'true', // 鎺у埗鏄惁鍙紪杈�
};
},
onLoad(options) {
// 鍋囪浠庝笂涓�椤典紶鍏� mid
this.mid = options.id || null;
+ this.current = options.current || 'true'; // 榛樿涓哄彲缂栬緫鐘舵��
this.getScanItems();
},
--
Gitblit v1.9.3