index.vue 24 KB

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