hailu
2023-02-16 94622a4e89fc844b96016859dc136f868fe15d31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
<!--  -->
<template>
  <div class="batch">
    <main>
      <section class="left">
        <div class="title">批量检索功能说明</div>
        <!-- <p>1. 可以批量输入公开号、申请号或申请人,检索对应的专利文献。</p>
          <p>2. 输入号码时,可以用逗号、分号、空格或者回车分隔。输入申请人时需要用回车分隔,每个申请人一行。</p>
          <p>3. 进行批量号码检索时,最多可输入5000个号码。</p> -->
        <p>1、可以批量输入公开号、申请号或申请人,检索对应的专利文献。</p>
        <p>2、输入号码时,可以用逗号、分号、空格或者回车分隔,输入申请人时需要用回车分隔,每个申请人一行。</p>
        <p>3、进行批量号码检索时,单次输入公开号上限是5000,单次输入申请号上限是5000,单次输入申请人上限是2000。</p>
        <p>4、点击“检索”按钮,即可查找相关匹配内容。当有未匹配上的号码如:“CN100317B”,会显示“暂无数据”。</p>
        <!-- <p>
          1.可以批量输入公开(公告)号、申请号或优先权号或申请人,或从本地导入专利号列表,检索对应的专利文献,也可以直接批量下载PDF全文.
        </p>
        <p>
          2.输入号码时,可以用逗号、分号、空格或者回车分隔.导入专利号列表时仅支持上传TXT文档,输入申请人时需要用回车分隔,每个申请人一行
        </p>
        <p>
          3.进行批量号码检索时,最多可输入5000个号码。进行PDF批量下载时,最多支持100条专利的批量下载.
        </p>
        <p>
          4.可以输入一段带号码的文字内容,支持匹配文字里的号码,文字内容最多可输入2万字符.
        </p>
        <p>
          5.点击“查看匹配结果”按钮,展开右侧号码匹配详情窗口,当有未匹配上的号码如:“EP292137B2”,显示“允许模糊查询”按钮,点击会查询到“EP292137B2”的其他版本如:“Ep292137B1”.
        </p> -->
      </section>
      <section class="right">
        <div class="title">批量检索</div>
        <a-tabs class="tab" default-active-key="publicationNumber" @change="callback">
          <a-tab-pane key="publicationNumber" tab="公开号">
            <a-textarea v-model="searchParams.publicationNumber" cols="30" rows="6"
              placeholder="系统将根据公开号列表返回所有匹配的专利信息,单次输入公开号上限是5000"></a-textarea>
          </a-tab-pane>
          <a-tab-pane key="applicationNumber" tab="申请号" force-render>
            <a-textarea v-model="searchParams.applicationNumber" cols="30" rows="6"
              placeholder="系统将根据申请号列表返回所有匹配的专利信息,单次输入申请号上限是5000"></a-textarea>
          </a-tab-pane>
          <!-- <a-tab-pane key="3" tab="优先权号">
            <textarea name="" id="" cols="30" rows="10"></textarea>
          </a-tab-pane> -->
          <!-- <a-tab-pane key="4" tab="所有号码">
            <textarea name="" id="" cols="30" rows="10"></textarea>
          </a-tab-pane> -->
          <a-tab-pane key="assigneeList" tab="申请人">
            <a-textarea v-model="searchParams.assigneeList" cols="30" rows="6"
              placeholder="系统将根据申请人列表返回所有匹配的专利信息,单次输入申请人上限是2000"></a-textarea>
          </a-tab-pane>
        </a-tabs>
        <ul>
          <li>
            <!-- <div>下载EXCAL模板</div>
            <div>下载TXT模板</div>
            <div>上传EXCAL</div>
            <div>上传TXT</div> -->
          </li>
          <li>
            <div @click="clear">清除</div>
            <!-- <div>查看匹配结果</div> -->
            <div @click="handleSearch">检索</div>
            <!-- <div>查看匹配结果</div> -->
          </li>
        </ul>
      </section>
      <!-- <section class="results">
        <div class="title"> 号码匹配详情</div>
        <ul>
          <li>
            <div>输入的号码</div>
            <div>{{0}}个</div>
          </li>
          <li>
            <div>重复的号码</div>
            <div>{{0}}个</div>
          </li>
          <li>
            <div>匹配到的专利</div>
            <div>{{0}}个</div>
          </li>
          <li>
            <div>模糊匹配到的专利</div>
            <div>{{0}}个</div>
          </li>
          <li>
            <div>未匹配号码</div>
            <div>{{0}}个</div>
          </li>
        </ul>
        <div>匹配详情</div>
        <a-table :columns="columns" :data-source="phoData" bordered :rowKey="(record,index)=>{return index++}">
          <a slot="Name" slot-scope="text">{{ text }}</a>
 
 
        </a-table>
 
      </section> -->
    </main>
  </div>
</template>
 
<script>
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
//例如:import 《组件名称》 from '《组件路径》';
 
export default {
  //import引入的组件需要注入到components对象中才能使用
  components: {},
  data() {
    //这里存放数据
    return {
      ScrollHeight: document.documentElement.scrollTop,
      currentTab: 'publicationNumber',
      searchParams: {
        publicationNumber: '',
        applicationNumber: '',
        assigneeList: ''
      },
      phoData: [],
      columns: [
        {
          title: '号码',
          fontWeight: 'holder',
          align: 'center',
          width: 50,
 
        },
        {
          title: '状态',
          align: 'center',
          dataIndex: 'Name',
          width: 50,
 
        },
        {
          title: '监测到的号码',
          dataIndex: 'Url',
          width: 80,
 
        },
 
 
      ],
    };
  },
  //计算属性 类似于data概念
  computed: {},
  //监控data中的数据变化
  //方法集合
  methods: {
    quit() {
      this.confirm()
    },
    callback(key) {
      this.currentTab = key
      // console.log(this.currentTab);
    },
    clear() {
      this.searchParams[this.currentTab] = ''
    },
    handleSearch() {
      if (this.searchParams[this.currentTab] == '') {
        this.$message.warning('输入内容不能为空');
        return
      }
      let num=0
      let arr=this.searchParams[this.currentTab].replaceAll('\n', ',').replaceAll(';', ',').replaceAll(' ', ',').split(',')
      // console.log(arr);
      for(let i=0;i<arr.length;i++){
        if(arr[i]){
          num++
        }
      }
      console.log(num);
      // console.log(this.searchParams[this.currentTab].replaceAll('\n', ',').replaceAll(';', ',').replaceAll(' ', ',').split(',').length);
      // JSON.stringify(this.searchParams[this.currentTab]).replaceAll('\n', ',').replaceAll(';', ',').replaceAll(' ', ',').split(',').length
      if (this.currentTab === 'assigneeList') {
        // console.log(JSON.stringify(this.searchParams[this.currentTab]).replaceAll('\n', ',').replaceAll(';', ',').replaceAll(' ', ',').split(',').length);
        if (num> 2000) {
          // console.log(JSON.stringify(this.searchParams[this.currentTab]).replaceAll('\n', ',').replaceAll(';', ',').replaceAll(' ', ',').split(',').length);
          this.$message.warning('输入字符数超过了 2000 上限');
          return
        }
       } else {
        // console.log(this.searchParams[this.currentTab].split('\n').join(',')  );
        if (num > 5000) {
          this.$message.warning('输入字符数超过了 5000 上限');
          return
        }
      }
      let params = {
        keywordField: this.currentTab,
        content: this.searchParams[this.currentTab]
      }
      localStorage.setItem('namiParams', '')
      // console.log(JSON.stringify(params));
      console.log(params);
      this.$router.push({
        path: "/smart",
        query: {
          from: 'batch',
          params: JSON.stringify(params)
        }
      })
    }
  },
  beforeCreate() { }, //生命周期 - 创建之前
  //生命周期 - 创建完成(可以访问当前this实例)
  created() { },
  beforeMount() { }, //生命周期 - 挂载之前
  //生命周期 - 挂载完成(可以访问DOM元素)
  mounted() {
  },
  beforeUpdate() { }, //生命周期 - 更新之前
  updated() { }, //生命周期 - 更新之后
  beforeDestroy() { }, //生命周期 - 销毁之前
  destroyed() { }, //生命周期 - 销毁完成
  activated() { }, //如果页面有keep-alive缓存功能,这个函数会触发
};
</script>
<style lang="scss" scoped>
li {
  list-style-type: none;
}
 
* {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
 
a {
  color: #333333;
  cursor: pointer;
}
 
.batch {
  min-width: 1280px;
 
  header {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #c2c2c2;
 
    .logo {
      width: 40%;
      height: 62px;
      position: relative;
 
      img {
        position: absolute;
        left: 50px;
        top: 0;
        width: 145px;
        height: 62px;
 
        @media screen and (max-width: 1280px) {
          left: 0;
        }
      }
    }
 
    .features {
      width: 60%;
      display: flex;
      justify-content: space-between;
 
      .home_icon,
      .login,
      .nav {
        width: 10%;
        height: 62px;
        line-height: 70px;
      }
 
      .login {
        .icon-201yonghu_yonghu2 {
          font-size: 25px;
          cursor: pointer;
        }
      }
 
      .home_icon {
        position: relative;
        top: 5px;
 
        a {
          color: #ef8201;
 
          .icon-shouye {
            font-size: 25px;
          }
        }
      }
 
      .nav {
        @media (min-width: 1280px) {
          min-width: 80px;
        }
 
        cursor: pointer;
        background: #ef8201;
        color: #ffffff;
        font-size: 16px;
        position: relative;
 
        .menuList {
          width: 100%;
          position: absolute;
          top: 60px;
          background-color: #ffffff;
          border: 1px solid #c2c2c2;
          z-index: 999;
          display: none;
 
          li {
            height: 40px;
            line-height: 40px;
            text-align: left;
            font-size: 16px;
            color: black;
            text-align: center;
          }
 
          a:hover {
            color: #ef8201;
          }
        }
      }
 
      .nav:hover .menuList {
        display: block;
      }
 
      .classList {
        width: 70%;
        display: flex;
        justify-content: space-around;
 
        .item {
          height: 50px;
          margin-top: 12px;
          line-height: 50px;
          text-align: center;
          font-family: "微软雅黑";
          font-weight: 500;
          font-style: normal;
          font-size: 20px;
          cursor: pointer;
 
          a {
            color: #333333;
          }
 
          a:hover {
            color: #ef8201;
          }
 
          span:hover {
            color: #ef8201;
          }
        }
 
        .item:hover {
          border-bottom: 5px solid #ef8201;
        }
 
        .secItem {
          border-bottom: 5px solid #ef8201;
 
          span {
            color: #ef8201;
          }
        }
 
        .patent {
          position: relative;
 
          .patentShow {
            display: none;
            position: absolute;
            width: 170px;
            background-color: #ffffff;
            border: 1px solid #c2c2c2;
            // box-shadow: 0px 0px 3px 1px;
            z-index: 999;
 
            li {
              margin: 2px 0;
              text-align: center;
              font-size: 16px;
              color: black;
            }
 
            li:hover a {
              color: #ef8201;
            }
          }
        }
 
        .patent:hover .patentShow {
          display: block;
        }
 
        .Retrieval {
          position: relative;
 
          .RetrievalShow {
            display: none;
            position: absolute;
            width: 130px;
            background-color: #ffffff;
            border: 1px solid #c2c2c2;
            // box-shadow: 0px 0px 3px 1px;
            z-index: 999;
 
            li {
              height: 40px;
              line-height: 40px;
              text-align: center;
              font-size: 16px;
              color: black;
 
              span {
                font-size: 20px;
              }
            }
 
            li:hover a {
              color: #ef8201;
            }
          }
        }
 
        .Retrieval:hover .RetrievalShow {
          display: block;
        }
      }
 
      .language {
        cursor: pointer;
        width: 10%;
        display: flex;
        justify-content: space-around;
 
        li {
          height: 62px;
          line-height: 73px;
          text-align: center;
          font-family: "微软雅黑";
          font-weight: 400;
          font-style: normal;
          font-size: 16px;
        }
 
        li:nth-child(1) {
          color: #ef8201;
        }
      }
 
      .home_icon,
      .classList,
      .language,
      .login {
        @media screen and (max-width: 1280px) {
          display: none;
        }
      }
 
      .nav {
        @media screen and (max-width: 1280px) {
          position: absolute;
          right: 0;
        }
      }
    }
  }
}
 
main {
  width: 100%;
  margin: 0 auto;
  display: flex;
  // justify-content: space-around;
 
  .left {
    width: 250px;
    height: 740px;
    padding: 10px;
    margin-top: 40px;
    padding-top: 5px;
    background: #fff;
    box-shadow: 0 0 2px 0;
    margin-left: 40px;
 
    // border-right: 2px solid #c2c2c2;
 
    .title {
      width: 100%;
      height: 40px;
      line-height: 40px;
      font-size: 20px;
      font-weight: 600;
    }
 
    p {
      // word-wrap: break-word;
      display: block;
      // word-break: break-all;
      line-height: 25px;
      text-align: left;
      margin: 10px 0;
    }
  }
 
  .right {
    width: calc(100% - 380px);
    // height: 800px;
    // margin-left: 50px;
    box-shadow: 0 0 2px 0;
    margin-top: 40px;
    background: #fff;
    margin-right: 40px;
    margin-left: 40px;
 
    .title {
      width: 100%;
      height: 40px;
      line-height: 45px;
      font-size: 20px;
      font-weight: 600;
      padding-left: 5%;
    }
 
    .tab {
      width: 100%;
      text-align: left;
      padding-left: 5%;
 
      textarea {
        width: 95%;
        height: 500px;
        // padding: 5%;
        background: #f9f9f9;
      }
 
      textarea:focus {
        outline-color: #c2c2c2;
      }
    }
 
    ul {
      width: 95%;
      margin: 50px 0;
      display: flex;
      padding-left: 5%;
      justify-content: space-between;
 
      li {
        display: flex;
        justify-content: space-between;
        cursor: pointer;
 
        div {
          padding: 0 10px;
          margin: 0 5px;
          height: 40px;
          line-height: 40px;
          text-align: center;
          border: 1px solid #c2c2c2;
          color: #c2c2c2;
        }
      }
 
      li:nth-child(1) {
        div:nth-child(1) {
          margin-left: 0;
        }
      }
 
      li:nth-child(2) {
        div:nth-last-child(1) {
          margin-right: 0;
          background: #ef8201;
          color: #ffffff;
          font-weight: 500;
        }
      }
    }
  }
 
  .results {
    width: 15%;
    height: 600px;
    border: 1px solid #c2c2c2;
    // padding: 2px;
    margin-top: 50px;
    margin-left: 10px;
 
    .title {
      width: 100%;
      height: 30px;
      line-height: 30px;
      background: #c2c2c2;
      color: #fff;
      font-weight: 500;
    }
 
    ul {
      width: 100%;
 
      li {
        display: flex;
        justify-content: space-between;
      }
    }
  }
}
 
footer {
  width: 100%;
  height: 80px;
  background-color: rgba(102, 102, 102, 1);
  color: #ffffff;
  font-family: "微软雅黑";
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  text-align: center;
 
  // @media (max-width: 1280px) {
  //   position: relative;
  //   top: var(--height);
  // }
  div {
    width: 100%;
    margin: 0 auto;
    line-height: 80px;
    justify-content: space-between;
 
    @media (max-width: 1280px) {
      width: 90%;
    }
  }
}
</style>