|
@@ -45,6 +45,7 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
<script setup name="working">
|
|
|
+import { showSuccessToast, showFailToast } from "vant";
|
|
|
import { nextTick, onMounted } from "vue";
|
|
|
import { ref, reactive, getCurrentInstance, toRaw, onActivated } from "vue";
|
|
|
const proxy = getCurrentInstance().proxy;
|
|
@@ -123,12 +124,16 @@ const toRouter = (item) => {
|
|
|
};
|
|
|
|
|
|
const showScanData = (val) => {
|
|
|
- proxy.$router.push({
|
|
|
- path: "/main/productionReportAdd",
|
|
|
- query: {
|
|
|
- id: val,
|
|
|
- },
|
|
|
- });
|
|
|
+ if (val) {
|
|
|
+ proxy.$router.push({
|
|
|
+ path: "/main/productionReportAdd",
|
|
|
+ query: {
|
|
|
+ id: val,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ return showFailToast("内容为空");
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
onMounted(() => {
|