|
@@ -0,0 +1,95 @@
|
|
|
+<template>
|
|
|
+ <div id="c-export">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24" class="main" v-loading="loading">
|
|
|
+ <el-col :span="24" class="one">
|
|
|
+ <cForm :span="24" :fields="fields" :form="form" :rules="{}" @save="toSave" label-width="auto">
|
|
|
+ <template #file>
|
|
|
+ <el-checkbox v-for="i in modelList" :key="i.model" :label="i">{{ i.label }}</el-checkbox>
|
|
|
+ </template>
|
|
|
+ </cForm>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup lang="ts">
|
|
|
+// 基础
|
|
|
+import type { Ref } from 'vue';
|
|
|
+import { onMounted, ref } from 'vue';
|
|
|
+import { ElMessage } from 'element-plus';
|
|
|
+
|
|
|
+// 接口
|
|
|
+import { PatentStore } from '@common/src/stores/patent/patent';
|
|
|
+import type { IQueryResult } from '@/util/types.util';
|
|
|
+const patentAxios = PatentStore();
|
|
|
+
|
|
|
+const emit = defineEmits(['toClose']);
|
|
|
+
|
|
|
+// 加载中
|
|
|
+const loading: Ref<any> = ref(false);
|
|
|
+
|
|
|
+const form: Ref<any> = ref({ file: [] });
|
|
|
+const fields: Ref<any> = ref([{ label: '导出列', model: 'file', type: 'checkbox' }]);
|
|
|
+
|
|
|
+// 字典
|
|
|
+const modelList: Ref<any> = ref([
|
|
|
+ { label: '申请号', model: 'create_number' },
|
|
|
+ { label: '申请日', model: 'create_date' },
|
|
|
+ { label: '公开(公告)号', model: 'success_number' },
|
|
|
+ { label: '公开(公告)日', model: 'success_date' },
|
|
|
+ { label: '发明人', model: 'inventor' },
|
|
|
+ { label: '代理机构', model: 'agent' },
|
|
|
+ { label: '代理人', model: 'agent_personal' },
|
|
|
+ { label: '摘要(中文)', model: 'abstract' },
|
|
|
+ { label: '发明人地址', model: 'address' },
|
|
|
+ { label: '标题(中文)', model: 'name' },
|
|
|
+ { label: '申请人', model: 'apply_personal' },
|
|
|
+ { label: '专利有效性', model: 'term' },
|
|
|
+ { label: '专利类型', model: 'type' },
|
|
|
+ { label: '公开国别', model: 'nationality' },
|
|
|
+ { label: 'IPC主分类', model: 'ipc_type' },
|
|
|
+ { label: '当前法律状态', model: 'onlegal_status' },
|
|
|
+ { label: '法律状态', model: 'legal_status' },
|
|
|
+ { label: '法律文书日期', model: 'law_date' },
|
|
|
+ { label: '当前权利人', model: 'on_obligee' },
|
|
|
+ { label: '申请人地址(其他)', model: 'apply_address' },
|
|
|
+ { label: '申请人(其他)', model: 'apply_other' },
|
|
|
+ { label: '法律文书编号', model: 'law_num' },
|
|
|
+ { label: '首次公开日', model: 'first_opendate' },
|
|
|
+ { label: '授权公告日', model: 'empower_date' },
|
|
|
+ { label: '失效日', model: 'lose_date' },
|
|
|
+ { label: '实质审查生效日', model: 'examine_date' },
|
|
|
+ { label: '发明(设计)人(其他)', model: 'invention_design' },
|
|
|
+ { label: '链接到incoPat', model: 'incopat_link' },
|
|
|
+ { label: '首项权利要求', model: 'first_ask' },
|
|
|
+ { label: '第一申请人', model: 'first_apply' },
|
|
|
+ { label: '中国申请人地市', model: 'apply_city' },
|
|
|
+ { label: '工商统一社会信用代码', model: 'business_code' },
|
|
|
+ { label: '工商注册地址', model: 'business_address' },
|
|
|
+ { label: '第一发明人', model: 'first_inventor' },
|
|
|
+ { label: '合享价值度', model: 'shared_value' },
|
|
|
+ { label: '技术稳定性', model: 'techol_stable' },
|
|
|
+ { label: '技术先进性', model: 'techol_advanced' },
|
|
|
+ { label: 'PCT国际申请号', model: 'pct_apply' },
|
|
|
+ { label: 'PCT国际公布号', model: 'pct_publish' },
|
|
|
+ { label: '首页附图(压缩图)', model: 'file' }
|
|
|
+]);
|
|
|
+
|
|
|
+// 请求
|
|
|
+onMounted(async () => {
|
|
|
+ loading.value = true;
|
|
|
+ loading.value = false;
|
|
|
+});
|
|
|
+const toSave = async (data) => {
|
|
|
+ let res: IQueryResult = await patentAxios.pexport(data);
|
|
|
+ if (res.errcode == '0') {
|
|
|
+ ElMessage({ message: '下载', type: 'success' });
|
|
|
+ emit('toClose');
|
|
|
+ } else {
|
|
|
+ ElMessage({ message: `${res.errmsg}`, type: 'error' });
|
|
|
+ }
|
|
|
+};
|
|
|
+</script>
|
|
|
+<style scoped lang="scss"></style>
|