From 5519cbf2e00c7ba4c650a542d98da99978124a30 Mon Sep 17 00:00:00 2001
From: 曹睿 <360930172@qq.com>
Date: 星期四, 24 四月 2025 16:43:01 +0800
Subject: [PATCH] test: 测试生产管理
---
src/pages/production/twist/receive/plate/index.vue | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/pages/production/twist/receive/plate/index.vue b/src/pages/production/twist/receive/plate/index.vue
index a5c6432..128db14 100644
--- a/src/pages/production/twist/receive/plate/index.vue
+++ b/src/pages/production/twist/receive/plate/index.vue
@@ -8,7 +8,7 @@
@query="getList"
>
<template #top>
- <CardTitle title="鐩樺叿棰嗙敤" :hideAction="true" @action="addReport" />
+ <CardTitle title="鐩樺叿棰嗙敤" :hideAction="true" :full="false" @action="addReport" />
</template>
<wd-card v-for="(item, index) in cardList" :key="index" type="rectangle" custom-class="round">
<template #title>
@@ -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}`,
});
};
--
Gitblit v1.9.3