index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  1. <template>
  2. <div class="height_100">
  3. <el-container>
  4. <!-- 统计 -->
  5. <el-aside class="height_100" :width="showLeft ? '300px' : '0px'" v-show="showLeft">
  6. <div class="height_100">
  7. <customFields ref="customFields" :projectId="projectId" :searchOption="searchStr" :customFields="customFields"
  8. @customTab="handleCustomFields" :searchPatentCheck="searchPatentCheck">
  9. </customFields>
  10. </div>
  11. </el-aside>
  12. <!-- 专利列表 -->
  13. <el-container>
  14. <el-header style="display:flex;justify-content:space-between">
  15. <div style="display:flex">
  16. <el-tooltip class="item" effect="dark" :content="(showLeft ? '隐藏' : '显示') + '左侧菜单'" placement="top">
  17. <i :class="showLeft ? 'el-icon-s-fold' : 'el-icon-s-unfold'"
  18. style="font-size: 25px;position: relative; top: 5px; color: #2f2f2f; cursor: pointer"
  19. @click="showLeft = !showLeft"></i>
  20. </el-tooltip>
  21. <searchPatent ref="searchPatent" :searchFiled="searchFiled" :searchPatentCheck="searchPatentCheck"
  22. @searchValue="handleSearchValue"></searchPatent>
  23. <!-- <mySearch :SearchFields="searchFiled" @search="search" :searchValue="searchOption"></mySearch> -->
  24. <el-popover placement="bottom" title="关键词高亮" width="320" trigger="click">
  25. <patent-keywords-highlight :project-id="projectId" />
  26. <el-button slot="reference" size="small" type="primary" class="margin-right_10 margin-left_10">
  27. 高亮<i class="el-icon-arrow-down el-icon--right"></i>
  28. </el-button>
  29. </el-popover>
  30. </div>
  31. <div>
  32. <el-button-group class="margin-left_10">
  33. <el-tooltip v-for="item in viewList" :key="item.value" class="item" effect="dark" :content="item.title"
  34. placement="top">
  35. <el-button @click="handleChangeView(item)" size="small"
  36. :type="viewSelected === item.value ? 'primary' : ''">
  37. <i :class="item.btn" style="font-size: 12px !important;"></i>
  38. </el-button>
  39. </el-tooltip>
  40. </el-button-group>
  41. <el-dropdown trigger="click" split-button type="primary" size="small">
  42. <span @click="handleFieldManage">显示栏位管理</span>
  43. <el-dropdown-menu slot="dropdown" class="text-align_center">
  44. <el-dropdown-item @click.native="handleFile">报告文档</el-dropdown-item>
  45. <!-- <el-dropdown-item @click.native="handleQuestion" v-if="$permission('/workspace/event')">事
  46. 件</el-dropdown-item> -->
  47. <el-dropdown-item @click.native="handleField" v-disabled="false">自定义栏位管理</el-dropdown-item>
  48. <el-dropdown-item @click.native="exportPDF">导出PDF首页</el-dropdown-item>
  49. <!-- <el-dropdown-item @click.native="handleBatch"
  50. :disabled="!($permission('/workspace/folder/batchUploadSpecification') && $r(projectId, [1, 2]))">批量上传说明书</el-dropdown-item>
  51. <el-dropdown-item> -->
  52. <el-dropdown trigger="hover" placement="right-start">
  53. <p>
  54. 导出专利<i class="el-icon-arrow-right el-icon--right"></i>
  55. </p>
  56. <el-dropdown-menu slot="dropdown">
  57. <el-dropdown-item @click.native="handleExport(false)">当前全部</el-dropdown-item>
  58. <el-dropdown-item @click.native="handleExport(true)">当前所选</el-dropdown-item>
  59. </el-dropdown-menu>
  60. </el-dropdown>
  61. <el-dropdown-item>
  62. <el-dropdown trigger="hover" placement="right-start">
  63. <p>
  64. {{ familyObj[queryParams.groupField] }}<i class="el-icon-arrow-right el-icon--right"></i>
  65. </p>
  66. <el-dropdown-menu slot="dropdown">
  67. <el-dropdown-item v-for="(item, key) in familyObj" :key="key" @click.native="onChangeFamily(key)">{{
  68. item }}</el-dropdown-item>
  69. </el-dropdown-menu>
  70. </el-dropdown>
  71. </el-dropdown-item>
  72. <el-dropdown-item>
  73. <el-dropdown trigger="hover" placement="right-start">
  74. <p>
  75. 合并<i class="el-icon-arrow-right el-icon--right"></i>
  76. </p>
  77. <el-dropdown-menu slot="dropdown">
  78. <el-dropdown-item @click.native="handleMerge(2)">发明人</el-dropdown-item>
  79. <el-dropdown-item @click.native="handleMerge(0)">申请人/权利人</el-dropdown-item>
  80. </el-dropdown-menu>
  81. </el-dropdown>
  82. </el-dropdown-item>
  83. <el-dropdown-item>
  84. <el-dropdown trigger="hover" placement="right-start">
  85. <p>
  86. 创建报告<i class="el-icon-arrow-right el-icon--right"></i>
  87. </p>
  88. <el-dropdown-menu slot="dropdown" style="margin-top:0px">
  89. <!-- 遍历按钮 -->
  90. <el-dropdown-item @click.native="handleAnalysesFto">FTO调查</el-dropdown-item>
  91. </el-dropdown-menu>
  92. </el-dropdown>
  93. </el-dropdown-item>
  94. <el-dropdown-item @click.native="handleAnalyses">图表分析</el-dropdown-item>
  95. </el-dropdown-menu>
  96. </el-dropdown>
  97. </div>
  98. </el-header>
  99. <el-main v-loading="loading">
  100. <div class="height_100">
  101. <component ref="patentViewList" :is="viewSelected" @download="handleDownload" @change-read="handleChangeRead"
  102. :projectId="projectId" :patentNoList.sync="patentNoList" @addSelect="getChoosePatentNo"
  103. @clickPatentNo="handleClick" :column="customList" @index-setting="handleIndexSetting" @on-sort="handleSort"
  104. :queryParams="queryParams" :tableData="tableData" :refresh='refresh'></component>
  105. </div>
  106. </el-main>
  107. <el-footer class="pagination" style="display:flex;justify-content:space-between;align-items:center">
  108. <div style="display:flex;align-items:center">
  109. <span v-if="selectedTotal > 0">
  110. 已勾选 <b>{{ selectedTotal }}</b> 条
  111. </span>
  112. <el-popover placement="bottom" title="" width="220" trigger="click">
  113. <el-main class="patent-fast-edit-popover" v-loading="selectNumberLoading">
  114. <div class="btn" @click="handleCancelSelectNumber">取消选择</div>
  115. <div class="btn" @click="handleSelectNumber(0)">本页选择</div>
  116. <div class="btn" @click="handleSelectNumber(1)">全部选择</div>
  117. <el-divider></el-divider>
  118. <div class="select-number">
  119. <span>从</span>
  120. <el-input size="mini" v-model="queryParams.startNumber" @change="change1"></el-input>
  121. <span>到</span>
  122. <el-input size="mini" v-model="queryParams.endNumber" @change="change2"></el-input>
  123. <el-button type="text" size="" @click="handleSelectNumber(2)">确定</el-button>
  124. </div>
  125. </el-main>
  126. <el-button type="info" size="small" class="margin-left_10" slot="reference"> 选择专利<i
  127. class="el-icon-arrow-down el-icon--right"></i></el-button>
  128. </el-popover>
  129. <div v-show="patentNoList.length" class="margin-left_10">
  130. <el-dropdown size="medium">
  131. <el-button type="primary" size="small">
  132. 批量操作<i class="el-icon-arrow-down el-icon--right"></i>
  133. </el-button>
  134. <el-dropdown-menu slot="dropdown">
  135. <!-- <el-dropdown-item @click.native="handleRead(1)"
  136. :disabled="!$permission('/workspace/folder/isRead')">已读</el-dropdown-item>
  137. <el-dropdown-item @click.native="handleRead(0)"
  138. :disabled="!$permission('/workspace/folder/isRead')">未读</el-dropdown-item> -->
  139. <el-dropdown-item @click.native="handleIndex">批量标引</el-dropdown-item>
  140. <el-dropdown-item @click.native="checkPatentWorth" v-if="patentNoList.length">价值曲线</el-dropdown-item>
  141. </el-dropdown-menu>
  142. </el-dropdown>
  143. </div>
  144. <!-- 编辑暂时隐藏,默认置为true -->
  145. <!-- <div class="margin-left_10">
  146. <el-checkbox @change="changeRefresh" :checked="refresh">
  147. <span>编辑</span>
  148. </el-checkbox>
  149. </div> -->
  150. </div>
  151. <div>
  152. <el-pagination background layout="total, sizes, prev, pager, next, jumper"
  153. :current-page.sync="queryParams.current" :page-sizes="sizeArr" :page-size.sync="queryParams.size"
  154. @current-change="handleCurrentChange" @size-change="getList" :total="total">
  155. </el-pagination>
  156. </div>
  157. </el-footer>
  158. </el-container>
  159. </el-container>
  160. <Field-Drawer ref="FieldDrawer"></Field-Drawer>
  161. <field ref="field" type="patent" @getFieldList="getFieldList"></field>
  162. <!-- 报告文档 -->
  163. <reportFileDrawer ref="reportFileDrawer"></reportFileDrawer>
  164. <!-- 创建FTO报告 -->
  165. <addAndEditReport ref="addAndEditReport"></addAndEditReport>
  166. <!-- 批量那个标引 -->
  167. <PatentBatchIndexVue ref="PatentBatchIndexVue" :projectId="projectId"></PatentBatchIndexVue>
  168. <!-- 合并发明人/合并权利人、申请人 -->
  169. <patentInventorMergeDrawer ref="patentInventorMergeDrawer" @mergeClose="mergeClose"></patentInventorMergeDrawer>
  170. </div>
  171. </template>
  172. <script>
  173. import { downLoad2, getTreeDataList, getTreeLastChildren, getPatentCountry } from "@/utils"
  174. import { fastSelectPatent } from './components/mixins/fastSelectPatent'
  175. import FieldDrawer from '@/views/components/drawer/Field.vue'
  176. import PatentAbstractListView from './components/views/Abstract'
  177. import PatentTableListView from './components/views/Table.vue'
  178. import PatentPictureListView from './components/views/Picture'
  179. // import PatentPDFListView from './components/views/PDF.vue'
  180. import field from '@/views/components/dialog/fields.vue';
  181. import customFields from '@/views/report/components/patentList/components/customFields/index.vue';
  182. import searchPatent from '@/views/report/components/patentList/components/searchPatent.vue';
  183. import reportFileDrawer from '@/views/report/components/drawer/reportFileDrawer.vue'
  184. import addAndEditReport from '@/views/report/components/dialog/addAndEditReport.vue'
  185. import PatentBatchIndexVue from './components/dialog/PatentBatchIndex.vue'
  186. import patentInventorMergeDrawer from './components/drawer/MergeInventor.vue'
  187. import PatentKeywordsHighlight from '../components/PatentKeywordsHighlight.vue'
  188. export default {
  189. mixins: [fastSelectPatent],
  190. components: {
  191. FieldDrawer,
  192. PatentAbstractListView,
  193. PatentTableListView,
  194. PatentPictureListView,
  195. field,
  196. customFields,
  197. searchPatent,
  198. reportFileDrawer,
  199. addAndEditReport,
  200. PatentBatchIndexVue,
  201. patentInventorMergeDrawer,
  202. PatentKeywordsHighlight
  203. },
  204. props: {},
  205. data() {
  206. return {
  207. //是否隐藏左侧
  208. showLeft: true,
  209. //检索字段
  210. searchFiled: [],
  211. // //检索条件
  212. // searchOption: {
  213. // name: localStorage.searchContent,
  214. // },
  215. //视图方式
  216. viewList: [
  217. {
  218. value: 'patent-table-list-view',
  219. title: '表格视图',
  220. btn: 'el-icon-tickets',
  221. },
  222. {
  223. value: 'patent-abstract-list-view',
  224. title: '摘要视图',
  225. btn: 'el-icon-news',
  226. },
  227. {
  228. value: 'patent-picture-list-view',
  229. title: '图片视图',
  230. btn: 'el-icon-picture-outline',
  231. },
  232. {
  233. value: 'PatentPDFListView',
  234. title: 'PDF视图',
  235. btn: 'iconfont icon-pdf',
  236. }
  237. ],
  238. //选择的视图
  239. viewSelected: "patent-table-list-view",
  240. //显示栏位
  241. customList: [],
  242. //同族
  243. familyObj: {
  244. '0': '不区分同族',
  245. 'simpleFamilyId': '简单同族',
  246. 'inpadocFamilyId': 'INPADOC同族',
  247. 'patsnapFamilyId': '扩展同族',
  248. },
  249. //页大小
  250. sizeArr: [10, 20, 30, 40, 50, 100],
  251. //排序
  252. sort: [],
  253. //加载
  254. loading: false,
  255. // 统计勾选的值(专利著录(专利本身))
  256. searchPatentCheck: [],
  257. // 存放专利本身检索条件
  258. searchStr: '',
  259. // 存放自定义栏位的检索条件
  260. customFields: [],
  261. };
  262. },
  263. watch: {},
  264. computed: {
  265. // 专题库id
  266. projectId() {
  267. return this.$route.query.id
  268. },
  269. },
  270. created() { },
  271. async mounted() {
  272. this.customList = await this.$commonJS.getCustomField('patent', { projectId: this.projectId, taskId: this.taskId })
  273. await this.getColumn()
  274. // 获取专利信息
  275. this.getList()
  276. },
  277. methods: {
  278. // 处理后的条件
  279. handleSearchValue({ searchStr, customFields }) {
  280. this.searchStr = searchStr
  281. this.customFields = customFields
  282. this.$refs.customFields.close()
  283. this.getList()
  284. },
  285. // 统计组件传的值
  286. handleCustomFields(val) {
  287. this.searchPatentCheck = []
  288. val.forEach(item => {
  289. if (item.check && item.check.length > 0) {
  290. if (item.filedKind == -1) {
  291. this.searchPatentCheck.push(item)
  292. } else {
  293. var checkName = []
  294. if (item.type == 'Array' || item.type == 'tree' || item.type == 'DateTime') {
  295. checkName = item.options.filter(item2 => item.check.includes(item2.id || item2.name)).map(item3 => item3.name);
  296. }
  297. var obj = {
  298. value: item.value,
  299. name: item.name,
  300. filedKind: item.filedKind,
  301. check: item.check,
  302. checkName: checkName,//自定义栏位多选
  303. type: item.type,
  304. ifHaveChild: this.ifHaveChild
  305. }
  306. // return
  307. this.searchPatentCheck.push(obj)
  308. }
  309. }
  310. })
  311. this.$nextTick(() => {
  312. this.$refs.searchPatent.search2()
  313. })
  314. },
  315. // 点击专利号进行跳转
  316. handleClick(row, location) {
  317. var search = {
  318. searchOption: this.searchOption,
  319. location: location,
  320. }
  321. this.$s.setSession('search', search)
  322. this.$router.push(
  323. {
  324. path: '/patentDetails/' + row.patentNo,
  325. query: {
  326. projectId: this.projectId,
  327. projectType:'1',//判断是不是从专题库进入专利详情1为专题库2为报告(报告未传2)
  328. }
  329. }
  330. )
  331. },
  332. //获取table栏位及分组字段、检索字段
  333. //获取检索字段
  334. async getColumn() {
  335. // let params = ['patent']//原获取检索字段
  336. // await this.$api.getParamsCommon(params).then(res => {
  337. // if (res.code == 200) {
  338. // let conditionDTOList = JSON.parse(JSON.stringify(res.data[0].conditionDTOList))
  339. // // 搜索字段
  340. // this.searchFiled = this.$commonJS.getField(conditionDTOList, (u) => u.ifSearch == true, {
  341. // label: 'name',
  342. // value: 'value',
  343. // type: 'type',
  344. // })
  345. // }
  346. // })
  347. let params = [{
  348. tableName: 'patent',
  349. projectId: this.projectId,
  350. }]
  351. await this.$api.getQueryFields(params).then(res => {
  352. if (res.code == 200) {
  353. let conditionDTOList = JSON.parse(JSON.stringify(res.data.data[0].conditionDTOList))
  354. let field = conditionDTOList.filter(item => {
  355. return item.group == 'nos'
  356. })
  357. let custom = conditionDTOList.filter(item => {
  358. return item.group == 'customField'
  359. })
  360. let customField = custom.filter(item => {
  361. return item.type != 'tree' && item.type != 'Array'
  362. })
  363. let arr = field.concat(customField)
  364. // 搜索字段
  365. this.searchFiled = this.$commonJS.getField(arr, (u) => u.ifSearch == true, {
  366. label: 'name',
  367. value: 'field',
  368. type: 'type',
  369. group: 'group',
  370. fieldType: 'fieldType',
  371. groupBy: 'groupBy',
  372. })
  373. }
  374. })
  375. },
  376. //检索
  377. // search(val) {
  378. // let params = {}
  379. // val.forEach(item => {
  380. // if (item.type == 3) {
  381. // params[item.value] = item.searchValue.map(itemValue => {
  382. // return itemValue.value
  383. // })
  384. // } else {
  385. // params[item.value] = item.searchValue.label
  386. // }
  387. // })
  388. // // 返回字符串
  389. // this.searchOption = params
  390. // // 调用查询接口
  391. // this.queryParams.current = 1
  392. // this.getList()
  393. // },
  394. //切换视图
  395. async handleChangeView(item) {
  396. this.viewSelected = item.value
  397. this.queryParams.current = 1
  398. // if (this.viewSelected == 'PatentPDFListView') {
  399. // return false
  400. // }
  401. if (this.viewSelected === 'patent-picture-list-view') {
  402. this.$set(this.queryParams, 'size', 20)
  403. } else {
  404. this.queryParams.size = 10
  405. }
  406. this.getList()
  407. },
  408. //获取专利信息
  409. getList(size) {
  410. if (size) {
  411. this.queryParams.size = size
  412. }
  413. let params = {
  414. ...this.queryParams,//分页信息及区分同族类型
  415. projectId: this.projectId,
  416. searchQuery: this.searchStr || '',//检索条件
  417. customFields: [],
  418. orderDTOList: this.sort,//排序信息
  419. }
  420. // this.$store.commit("SET_PATENT_PARAMS", params);
  421. this.$store.commit("SET_PATENT_RECORDS", []);
  422. this.$api.QueryPatent(params).then(res => {
  423. if (res.code == 200) {
  424. this.tableData = res.data.data
  425. this.total = res.data.total
  426. this.$set(this.queryParams, 'startNumber', this.endNumber > 0 ? this.startNumber : 1)
  427. this.$set(this.queryParams, 'endNumber', this.endNumber > 0 ? this.endNumber : this.total)
  428. // this.$store.commit("SET_PATENT_PARAMS", params);
  429. this.$store.commit("SET_PATENT_RECORDS", res.data.data);
  430. if (this.quickSelect) {
  431. this.commonSwitch()
  432. }
  433. this.isRefresh()
  434. }
  435. }).catch(error => {
  436. this.tableData = []
  437. this.total = 0
  438. })
  439. },
  440. //排序
  441. handleSort({ column, prop, order }) {
  442. //如需要多个字段排序,则不需要清空
  443. var params = {
  444. sort: this.sort,
  445. column,
  446. prop,
  447. order,
  448. }
  449. this.sort = this.$commonJS.getSortData(params)
  450. this.queryParams.current = 1
  451. this.getList()
  452. },
  453. //分页
  454. handleCurrentChange(val) {
  455. this.queryParams.current = val;
  456. this.getList();
  457. },
  458. //自定义栏位管理
  459. handleField() {
  460. this.$refs.FieldDrawer.open(this.projectId)
  461. },
  462. //获取自定义栏位
  463. getFieldList(data) {
  464. this.customList = data
  465. },
  466. //显示栏位管理
  467. async handleFieldManage() {
  468. this.$refs.field.open(this.customList)
  469. },
  470. //报告文档
  471. handleFile() {
  472. this.$refs.reportFileDrawer.open(this.projectId)
  473. },
  474. //创建FTO报告
  475. handleAnalysesFto() {
  476. var form = {
  477. reportType: 3,
  478. signPatentNo: '',
  479. matterId: [],
  480. scenarioId: [],
  481. }
  482. this.$refs.addAndEditReport.open(form)
  483. },
  484. //切换同族
  485. onChangeFamily(key) {
  486. this.queryParams.current = 1
  487. this.queryParams.groupField = key
  488. this.getList()
  489. },
  490. // 批量标引
  491. handleIndex() {
  492. let obj = {
  493. selectQuery: {
  494. isAdd: this.queryParams.isAdd,
  495. isDelete: this.queryParams.isDelete,
  496. startNumber: this.startNumber,
  497. endNumber: this.endNumber,
  498. },
  499. searchQuery: this.searchStr,
  500. customFields: this.customFields,
  501. orderDTOList:this.sort,
  502. }
  503. this.$refs.PatentBatchIndexVue.open(obj)
  504. },
  505. //导出专利
  506. async handleExport(val) {
  507. if (val) {
  508. if (this.startNumber < 0 && this.endNumber < 1 || this.queryParams.isAdd.length == 0) {
  509. this.$message.error('请先选择专利')
  510. return false
  511. }
  512. }
  513. let obj = {
  514. isAdd: this.queryParams.isAdd,
  515. isDelete: this.queryParams.isDelete,
  516. startNumber: this.startNumber,
  517. endNumber: this.endNumber,
  518. searchQuery: this.searchStr,
  519. customFields: this.customFields,
  520. orderDTOList:this.sort,
  521. }
  522. if (!val) {
  523. // 如果是导出全部,endNumber是当前的全部专利
  524. obj.endNumber=this.total
  525. }
  526. let router = this.$router.resolve({
  527. path: '/exportPatent',
  528. query: {
  529. projectId: this.projectId,
  530. condition: JSON.stringify(obj)
  531. }
  532. })
  533. window.open(router.href, '_blank')
  534. },
  535. //PDF首页导出
  536. exportPDF() {
  537. let params = {
  538. projectId: this.projectId,
  539. searchQuery: this.searchStr || '',//检索条件
  540. customFields: this.customFields || [],//自定义字段的检索
  541. isAdd: this.queryParams.isAdd,
  542. isDelete: this.queryParams.isDelete,
  543. startNumber: this.startNumber,
  544. // endNumber: this.endNumber,
  545. endNumber: this.total,//默认是当前全部
  546. orderDTOList:this.sort,
  547. }
  548. this.$api.exportPDFFirstPage(params).then(res => {
  549. if (res.code == 200) {
  550. const h = this.$createElement;
  551. this.$msgbox({
  552. title: '提示',
  553. message: h('p', null, [
  554. h('span', null, '任务正在导入,查看任务进度请前往 '),
  555. h('span', {
  556. style: 'color: #ff7d38;cursor: pointer;',
  557. on: {
  558. click: () => {//
  559. let router = this.$router.resolve({
  560. path: '/taskList',
  561. query: {
  562. importToId: this.projectId,
  563. }
  564. })
  565. window.open(router.href, '_blank')
  566. this.$msgbox.close(false)
  567. }
  568. }
  569. }, '立即前往',)
  570. ]),
  571. type: 'warning',
  572. showConfirmButton: false,
  573. }).then(action => {
  574. });
  575. }
  576. })
  577. },
  578. //图表分析
  579. async handleAnalyses() {
  580. var params = {
  581. searchQuery: this.searchStr || '',//检索条件
  582. customFields: this.customFields || [],
  583. orderDTOList: this.sort,//排序信息
  584. projectId:this.projectId
  585. }
  586. const router = this.$router.resolve({
  587. path: '/customChart',
  588. query: {
  589. projectId: this.projectId,
  590. search:JSON.stringify(params),
  591. patentNum:this.total
  592. }
  593. })
  594. window.open(router.href, '_blank');
  595. },
  596. //合并发明人//合并申请人、权利人
  597. handleMerge(type) {
  598. let obj = {
  599. projectId: this.projectId,
  600. type: type
  601. }
  602. this.$refs.patentInventorMergeDrawer.open(obj)
  603. },
  604. // 合并发明人、申请人、权利人后子组件发送的消息
  605. mergeClose() {
  606. this.getList()
  607. },
  608. //下载PDF
  609. async handleDownload(patent) {
  610. const { data } = await this.$api.getPatentInstructionList({ current: 1, size: 9999, patentNo: patent.patentNo })
  611. if (data.records.length !== 0) {
  612. downLoad2(data.records[0].url)
  613. } else {
  614. this.$alert('专利暂未上传说明书文档', '请求错误', {
  615. confirmButtonText: '确定',
  616. type: 'error',
  617. callback: action => { }
  618. });
  619. }
  620. },
  621. //切换已读未读
  622. handleChangeRead(ids, status) {
  623. let params = {
  624. patentIds: ids,
  625. projectId: this.projectId,
  626. status: status,
  627. folder: this.queryParams.folder
  628. }
  629. this.fastEditLoading = true
  630. this.$api.updatePatentReadStatus(params).then(response => {
  631. this.$refs.patentQueryFilter.getPatentReadTotal()
  632. this.fastEditLoading = false
  633. this.getList()
  634. }).catch(error => {
  635. this.fastEditLoading = false
  636. })
  637. },
  638. //自定义栏位以及标签设置值
  639. handleIndexSetting(patent, field) {
  640. if (field) {
  641. this.$refs.patentIndexSetting.open(this.queryParams.projectId, patent, field)
  642. }
  643. },
  644. //取消编辑
  645. // changeRefresh() {
  646. // this.patentNoList = []
  647. // // this.refresh = !this.refresh
  648. // },
  649. },
  650. };
  651. </script>
  652. <style lang="scss" scoped>
  653. .patent-fast-edit-popover {
  654. padding: 0 !important;
  655. .btn {
  656. color: #000;
  657. line-height: 30px;
  658. border-radius: 5px;
  659. padding-left: 10px;
  660. text-align: left;
  661. font-size: 14px;
  662. cursor: pointer;
  663. &:hover {
  664. background: #adadad;
  665. color: #fff;
  666. }
  667. }
  668. .disabled {
  669. cursor: not-allowed !important;
  670. }
  671. .bottom {
  672. text-align: right;
  673. color: #1e9fff;
  674. line-height: 40px;
  675. padding-left: 10px;
  676. font-size: 18px;
  677. }
  678. .el-divider--horizontal {
  679. margin: 10px 0 !important;
  680. }
  681. .select-number {
  682. .el-input {
  683. width: 70px;
  684. }
  685. span {
  686. padding: 0 3px;
  687. }
  688. }
  689. }
  690. </style>