Browse Source

商标管理所有子模块-上传文件BUG修复

zhangchuang 3 days ago
parent
commit
c8abda45a2

+ 2 - 2
src/components/ReceiptFileUpload.vue

@@ -54,7 +54,7 @@ const emit = defineEmits(["handleUpload"]);
 
 const props = defineProps<{
   updateInfo: any;
-  // 其他必要的 prop 类型
+  path: string;
 }>();
 
 const form = reactive({
@@ -105,7 +105,7 @@ const onSubmit = async () => {
   try {
     const response = (await postCreate(
       data,
-      "/intellectual-property/trademark-renewal/create"
+      props.path
     )) as unknown as any;
     if (response.code === 200) {
       ElMessage.success("回执文件提交成功!");

+ 2 - 0
src/views/ip/trademark-management/amendment/hooks/useData.hook.ts

@@ -5,6 +5,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
 
 // 数据初始化
 export const useDataListInit = () => {
+  const path = '/intellectual-property/trademark-amendment/create'
   // const dictStore = useDictStore();
   const componentKey = ref(0);
   // 表单相关
@@ -210,6 +211,7 @@ export const useDataListInit = () => {
   });
 
   return {
+    path,
     componentKey,
     formInline,
     updateInfo,

+ 2 - 1
src/views/ip/trademark-management/amendment/index.vue

@@ -111,7 +111,7 @@
       </template>
     </el-dialog>
     <el-dialog v-model="uploadVisible" title="上传文件" width="1080">
-      <ReceiptFileUpload :updateInfo="updateInfo" @handleUpload="handleUpload" :key="componentKey" />
+      <ReceiptFileUpload :path="path" :updateInfo="updateInfo" @handleUpload="handleUpload" :key="componentKey" />
     </el-dialog>
     <el-dialog v-model="updateVisible" title="状态更新" width="1080">
       <Update :updateInfo="updateInfo" @handleUpdate="handleUpdate" :key="componentKey" />
@@ -129,6 +129,7 @@ import Descriptions from "@/components/Descriptions.vue"
 import ReceiptFileUpload from "@/components/ReceiptFileUpload.vue"
 
 const {
+  path,
   componentKey,
   formInline,
   updateInfo,

+ 4 - 2
src/views/ip/trademark-management/cancellation/hooks/useData.hook.ts

@@ -5,6 +5,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
 
 // 数据初始化
 export const useDataListInit = () => {
+  const path = "/intellectual-property/three-year-non-use-cancellation/create";
   // const dictStore = useDictStore();
   const componentKey = ref(0);
   // 表单相关
@@ -124,7 +125,7 @@ export const useDataListInit = () => {
     componentKey.value += 1;
     updateInfo.value = row;
     uploadVisible.value = true;
-  }
+  };
 
   const onShow = (row: any) => {
     componentKey.value += 1;
@@ -169,7 +170,7 @@ export const useDataListInit = () => {
   const handleUpdate = () => {
     updateVisible.value = false;
     fetchList();
-  }
+  };
 
   // 执行删除商标,记得加提示
   const onDelete = (row: any) => {
@@ -210,6 +211,7 @@ export const useDataListInit = () => {
   });
 
   return {
+    path,
     componentKey,
     formInline,
     updateInfo,

+ 2 - 1
src/views/ip/trademark-management/cancellation/index.vue

@@ -102,7 +102,7 @@
       </template>
     </el-dialog>
     <el-dialog v-model="uploadVisible" title="上传文件" width="1080">
-      <ReceiptFileUpload :updateInfo="updateInfo" @handleUpload="handleUpload" :key="componentKey" />
+      <ReceiptFileUpload :path="path" :updateInfo="updateInfo" @handleUpload="handleUpload" :key="componentKey" />
     </el-dialog>
     <el-dialog v-model="updateVisible" title="状态更新" width="1080">
       <Update :updateInfo="updateInfo" @handleUpdate="handleUpdate" :key="componentKey" />
@@ -120,6 +120,7 @@ import Descriptions from "@/components/Descriptions.vue"
 import ReceiptFileUpload from "@/components/ReceiptFileUpload.vue"
 
 const {
+  path,
   componentKey,
   formInline,
   updateInfo,

+ 2 - 0
src/views/ip/trademark-management/opposition/hooks/useData.hook.ts

@@ -5,6 +5,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
 
 // 数据初始化
 export const useDataListInit = () => {
+  const path = "/intellectual-property/trademark-opposition/create";
   // const dictStore = useDictStore();
   const componentKey = ref(0);
   // 表单相关
@@ -210,6 +211,7 @@ export const useDataListInit = () => {
   });
 
   return {
+    path,
     componentKey,
     formInline,
     updateInfo,

+ 2 - 1
src/views/ip/trademark-management/opposition/index.vue

@@ -102,7 +102,7 @@
       </template>
     </el-dialog>
     <el-dialog v-model="uploadVisible" title="上传文件" width="1080">
-      <ReceiptFileUpload :updateInfo="updateInfo" @handleUpload="handleUpload" :key="componentKey" />
+      <ReceiptFileUpload :path="path" :updateInfo="updateInfo" @handleUpload="handleUpload" :key="componentKey" />
     </el-dialog>
     <el-dialog v-model="updateVisible" title="状态更新" width="1080">
       <Update :updateInfo="updateInfo" @handleUpdate="handleUpdate" :key="componentKey" />
@@ -120,6 +120,7 @@ import Descriptions from "@/components/Descriptions.vue"
 import ReceiptFileUpload from "@/components/ReceiptFileUpload.vue"
 
 const {
+  path,
   componentKey,
   formInline,
   updateInfo,

+ 2 - 0
src/views/ip/trademark-management/rejection/hooks/useData.hook.ts

@@ -5,6 +5,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
 
 // 数据初始化
 export const useDataListInit = () => {
+  const path = "/intellectual-property/trademark-rejection/create";
   // const dictStore = useDictStore();
   const componentKey = ref(0);
   // 表单相关
@@ -210,6 +211,7 @@ export const useDataListInit = () => {
   });
 
   return {
+    path,
     componentKey,
     formInline,
     updateInfo,

+ 2 - 1
src/views/ip/trademark-management/rejection/index.vue

@@ -102,7 +102,7 @@
       </template>
     </el-dialog>
     <el-dialog v-model="uploadVisible" title="上传文件" width="1080">
-      <ReceiptFileUpload :updateInfo="updateInfo" @handleUpload="handleUpload" :key="componentKey" />
+      <ReceiptFileUpload :path="path" :updateInfo="updateInfo" @handleUpload="handleUpload" :key="componentKey" />
     </el-dialog>
     <el-dialog v-model="updateVisible" title="状态更新" width="1080">
       <Update :updateInfo="updateInfo" @handleUpdate="handleUpdate" :key="componentKey" />
@@ -120,6 +120,7 @@ import Descriptions from "@/components/Descriptions.vue"
 import ReceiptFileUpload from "@/components/ReceiptFileUpload.vue"
 
 const {
+  path,
   componentKey,
   formInline,
   updateInfo,

+ 2 - 0
src/views/ip/trademark-management/renewal/hooks/useData.hook.ts

@@ -5,6 +5,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
 
 // 数据初始化
 export const useDataListInit = () => {
+  const path = "/intellectual-property/trademark-renewal/create";
   // const dictStore = useDictStore();
   const componentKey = ref(0);
   // 表单相关
@@ -210,6 +211,7 @@ export const useDataListInit = () => {
   });
 
   return {
+    path,
     componentKey,
     formInline,
     updateInfo,

+ 2 - 1
src/views/ip/trademark-management/renewal/index.vue

@@ -102,7 +102,7 @@
       </template>
     </el-dialog>
     <el-dialog v-model="uploadVisible" title="上传文件" width="1080">
-      <ReceiptFileUpload :updateInfo="updateInfo" @handleUpload="handleUpload" :key="componentKey" />
+      <ReceiptFileUpload :path="path" :updateInfo="updateInfo" @handleUpload="handleUpload" :key="componentKey" />
     </el-dialog>
     <el-dialog v-model="updateVisible" title="状态更新" width="1080">
       <Update :updateInfo="updateInfo" @handleUpdate="handleUpdate" :key="componentKey" />
@@ -120,6 +120,7 @@ import Descriptions from "@/components/Descriptions.vue"
 import ReceiptFileUpload from "@/components/ReceiptFileUpload.vue"
 
 const {
+  path,
   componentKey,
   formInline,
   updateInfo,