zjh
2025-05-14 03ff2977e8d557e20415c92184fe686506ae814a
pages/QC/LLJ/yzxFrom.vue
@@ -5,6 +5,7 @@
      <view class="th name">元器件名称</view>
      <view class="th spec">规格</view>
      <view class="th manufacturer">制造商</view>
     <view class="th operation">上传图片</view>
      
    </view>
@@ -34,6 +35,9 @@
          </view>
        </view>
      
      <view class="td operation" v-if="current=='true'">
         <button class="secondary-btn" @click="uploadImages(item.id)">上传/查看图片</button>
      </view>
 
 <!-- 规格列 -->
 <view class="td spec" v-if="current!='true'">
@@ -56,7 +60,9 @@
     <text class="option-text">{{ mfg }}</text>
   </view>
 </view>
 <view class="td operation" v-if="current!='true'">
    <button class="secondary-btn" @click="uploadImages(item.id)">上传/查看图片</button>
 </view>
 
 
      </view>
@@ -69,7 +75,7 @@
              @tap="handleSubmit">
        {{ isSubmitting ? '提交中...' : '保存清单' }}
      </button>
     <button class="secondary-btn" @click="uploadImages">上传/查看图片</button>
     <!-- <button class="secondary-btn" @click="uploadImages">上传/查看图片</button> -->
    </view>
   <view class="submit-container" v-if="components.length==0">
     <h1>温馨提示:</h1>
@@ -103,10 +109,10 @@
        item.selectedSpec = index
      }
    },
   uploadImages() {
   uploadImages(id) {
     // 上传/查看图片的逻辑
    uni.navigateTo({
       url: 'ImageItem?id=888' + this.formid
       url: 'ImageItem?id=888' + id.sort()[0]
    });
   },
    async handleSubmit() {
@@ -223,8 +229,8 @@
.name { width: 20%; }
.spec { width: 30%; }
.manufacturer { width: 35%; }
.operation { width: 15%; }
.manufacturer { width: 30%; }
.operation { width: 20%; }
/* 选项样式 */
.option-item {