From 03ca03ae92213b01dd902e13a9febf608410e953 Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期二, 29 七月 2025 10:29:05 +0800
Subject: [PATCH] 修改扫码问题
---
src/pages/production/twist/receive/steelCore/index.vue | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/src/pages/production/twist/receive/steelCore/index.vue b/src/pages/production/twist/receive/steelCore/index.vue
index 5b190c6..21b8d6f 100644
--- a/src/pages/production/twist/receive/steelCore/index.vue
+++ b/src/pages/production/twist/receive/steelCore/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,7 +17,7 @@
<wd-icon name="a-rootlist" color="#0D867F"></wd-icon>
<text class="text-[#252525] ml-2 font-medium">{{ item.model }}</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" />
@@ -29,7 +29,7 @@
<wd-button type="text" @click="cancel">鍙栨秷</wd-button>
<wd-button type="text" @click="submit">纭畾</wd-button>
</view>
- <SteelCore ref="steelCoreRef" />
+ <SteelCore ref="steelCoreRef" @refresh="reloadList" />
</wd-popup>
<wd-toast />
</template>
@@ -69,9 +69,9 @@
},
]);
-const toEdit = () => {
+const toEdit = (id: number) => {
uni.navigateTo({
- url: "/pages/production/twist/receive/steelCore/edit",
+ url: `/pages/production/twist/receive/steelCore/edit?id=${id}`,
});
};
@@ -79,9 +79,8 @@
dialog.visible = true;
};
-const submit = () => {
- toast.show("鎻愪氦");
- dialog.visible = false;
+const submit = async () => {
+ dialog.visible = !(await steelCoreRef.value.submit());
};
const cancel = () => {
@@ -99,6 +98,10 @@
}
};
+const reloadList = () => {
+ pagingRef.value.refresh();
+};
+
onLoad((options: any) => {
paramsId.value = options.id;
});
--
Gitblit v1.9.3