曹睿
2025-04-24 5519cbf2e00c7ba4c650a542d98da99978124a30
src/pages/production/twist/receive/plate/index.vue
@@ -17,21 +17,21 @@
              <wd-icon name="a-rootlist" color="#0D867F"></wd-icon>
              <text class="text-[#252525] ml-2 font-medium">{{ item.diskMaterial }}</text>
            </view>
            <view class="text-[#A8A8A8]" @click="toEdit">编辑</view>
            <view class="text-[#A8A8A8]" @click="toEdit(item.id)">编辑</view>
          </view>
        </template>
        <ProductionCard :data="cardAttr" :value="item" color="#0D867F" />
      </wd-card>
    </z-paging>
    <wd-popup v-model="dialog.visible" position="bottom" custom-class="yl-popup">
      <view class="action px-3">
        <wd-button type="text" @click="cancel">取消</wd-button>
        <wd-button type="text" @click="submit">确定</wd-button>
      </view>
      <PlateForm ref="plateFormRef" @refresh="reloadList" />
    </wd-popup>
    <wd-toast />
  </view>
  <wd-popup v-model="dialog.visible" position="bottom" custom-class="yl-popup">
    <view class="action px-3">
      <wd-button type="text" @click="cancel">取消</wd-button>
      <wd-button type="text" @click="submit">确定</wd-button>
    </view>
    <PlateForm ref="plateFormRef" @refresh="reloadList" />
  </wd-popup>
  <wd-toast />
</template>
<script setup lang="ts">
@@ -74,9 +74,9 @@
  },
]);
const toEdit = () => {
const toEdit = (id: number) => {
  uni.navigateTo({
    url: "/pages/production/twist/receive/plate/edit",
    url: `/pages/production/twist/receive/plate/edit?id=${id}`,
  });
};