|
@@ -3,80 +3,19 @@
|
|
|
<admin-frame @search="search" :limit="limit" :total="total" topType="2" @back="back" :rightArrow="false" :useNav="false">
|
|
|
<template v-slot:info>
|
|
|
<van-col span="24" class="one">
|
|
|
- <van-form label-width="5em">
|
|
|
- <van-field readonly name="datetimePicker" :value="searchForm.empower_date" label="授权年份" placeholder="点击选择" @click="oneShow = true" />
|
|
|
- <van-popup v-model="oneShow" position="bottom">
|
|
|
- <van-datetime-picker type="year-month" @confirm="oneCon" @cancel="oneShow = false" />
|
|
|
- </van-popup>
|
|
|
- <van-field readonly name="datetimePicker" :value="searchForm.create_date" label="申请年份" placeholder="点击选择" @click="twoShow = true" />
|
|
|
- <van-popup v-model="twoShow" position="bottom">
|
|
|
- <van-datetime-picker type="year-month" @confirm="twoCon" @cancel="twoShow = false" />
|
|
|
- </van-popup>
|
|
|
- <van-field readonly clickable name="picker" :value="searchForm.field" label="所属领域" placeholder="点击选择" @click="thrShow = true" />
|
|
|
- <van-popup v-model="thrShow" position="bottom">
|
|
|
- <van-picker show-toolbar :columns="fieldList" @confirm="thrCon" @cancel="thrShow = false" />
|
|
|
- </van-popup>
|
|
|
- <van-field v-model="searchForm.create_number" name="申请号" label="申请号" placeholder="申请号" />
|
|
|
- <van-field v-model="searchForm.first_inventor" name="第一发明人" label="第一发明人" placeholder="第一发明人" />
|
|
|
- <van-field v-model="searchForm.apply_personal" name="所在学校" label="所在学校" placeholder="所在学校" />
|
|
|
- <van-field v-model="searchForm.on_obligee" name="专利权人" label="专利权人" placeholder="专利权人" />
|
|
|
- <van-field name="type" label="专利类型">
|
|
|
- <template #input>
|
|
|
- <van-radio-group v-model="searchForm.type" direction="horizontal">
|
|
|
- <van-radio name="发明">发明</van-radio>
|
|
|
- <van-radio name="实用新型">实用新型</van-radio>
|
|
|
- <van-radio name="许可">许可</van-radio>
|
|
|
- <van-radio name="其他">其他</van-radio>
|
|
|
- </van-radio-group>
|
|
|
- </template>
|
|
|
- </van-field>
|
|
|
- <van-field name="is_empower" label="是否授权">
|
|
|
- <template #input>
|
|
|
- <van-radio-group v-model="searchForm.is_empower" direction="horizontal">
|
|
|
- <van-radio name="是">是</van-radio>
|
|
|
- <van-radio name="否">否</van-radio>
|
|
|
- </van-radio-group>
|
|
|
- </template>
|
|
|
- </van-field>
|
|
|
- <van-field name="term" label="专利状态">
|
|
|
- <template #input>
|
|
|
- <van-radio-group v-model="searchForm.term" direction="horizontal">
|
|
|
- <van-radio name="有效">有效</van-radio>
|
|
|
- <van-radio name="审中">审中</van-radio>
|
|
|
- </van-radio-group>
|
|
|
- </template>
|
|
|
- </van-field>
|
|
|
- <van-field name="is_lose" label="是否失效">
|
|
|
- <template #input>
|
|
|
- <van-radio-group v-model="searchForm.is_lose" direction="horizontal">
|
|
|
- <van-radio name="是">是</van-radio>
|
|
|
- <van-radio name="否">否</van-radio>
|
|
|
- </van-radio-group>
|
|
|
- </template>
|
|
|
- </van-field>
|
|
|
- <van-field name="empower_sort" label="授权日排序">
|
|
|
- <template #input>
|
|
|
- <van-radio-group v-model="searchForm.empower_sort" direction="horizontal">
|
|
|
- <van-radio name="升序">升序</van-radio>
|
|
|
- <van-radio name="降序">降序</van-radio>
|
|
|
- </van-radio-group>
|
|
|
- </template>
|
|
|
- </van-field>
|
|
|
- <van-col span="24" class="btn">
|
|
|
- <van-button type="info" size="small" @click="search">提交查询</van-button>
|
|
|
- <van-button type="info" size="small">导出数据</van-button>
|
|
|
- </van-col>
|
|
|
- </van-form>
|
|
|
- </van-col>
|
|
|
- <van-col span="24" class="two">
|
|
|
- <list-1 :list="list"></list-1>
|
|
|
+ <van-button type="info" size="small" @click="addSearch">添加查询</van-button>
|
|
|
</van-col>
|
|
|
+ <van-col span="24"><list-1 :list="list"></list-1></van-col>
|
|
|
</template>
|
|
|
</admin-frame>
|
|
|
+ <van-dialog v-model="show" title="查询条件" class="dialog" :showConfirmButton="false">
|
|
|
+ <search-1 :searchForm="searchForm" @reseatBtn="reseatBtn" @search="search" @></search-1>
|
|
|
+ </van-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import search1 from './parts/search-1.vue';
|
|
|
import list1 from '../../../../../company/parts/list_2.vue';
|
|
|
import adminFrame from '@frame/src/components/mobile-frame/mobile-main.vue';
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
@@ -88,55 +27,44 @@ export default {
|
|
|
components: {
|
|
|
adminFrame,
|
|
|
list1,
|
|
|
+ search1,
|
|
|
},
|
|
|
data: function () {
|
|
|
return {
|
|
|
- // 查询
|
|
|
- searchForm: {},
|
|
|
- // 选择授权年份
|
|
|
- oneShow: false,
|
|
|
- // 选择申请年份
|
|
|
- twoShow: false,
|
|
|
- // 所属领域
|
|
|
- thrShow: false,
|
|
|
- fieldList: ['所属领域1'],
|
|
|
list: [],
|
|
|
limit: 5,
|
|
|
total: 0,
|
|
|
- currentDate: new Date(),
|
|
|
+ // 查询
|
|
|
+ show: false,
|
|
|
+ searchForm: {},
|
|
|
};
|
|
|
},
|
|
|
async created() {
|
|
|
await this.search();
|
|
|
},
|
|
|
methods: {
|
|
|
- ...patentinfo(['query']),
|
|
|
- async search({ skip = 0, limit = this.limit, ...info } = {}) {
|
|
|
- let res = await this.query({ skip, limit, ...this.searchForm, ...info });
|
|
|
+ ...patentinfo(['mechQuery']),
|
|
|
+ async search({ skip = 0, limit = this.limit, searchForm, ...info } = {}) {
|
|
|
+ let res = await this.mechQuery({ skip, limit, code: this.user.code, ...searchForm, ...info });
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `list`, res.data);
|
|
|
this.$set(this, `total`, res.total);
|
|
|
+ this.show = false;
|
|
|
}
|
|
|
},
|
|
|
- // 选择授权年份
|
|
|
- oneCon(value) {
|
|
|
- this.$set(this.searchForm, `empower_date`, moment(value).format('YYYY-MM'));
|
|
|
- this.oneShow = false;
|
|
|
- },
|
|
|
- // 选择申请年份
|
|
|
- twoCon(value) {
|
|
|
- this.$set(this.searchForm, `create_date`, moment(value).format('YYYY-MM'));
|
|
|
- this.twoShow = false;
|
|
|
- },
|
|
|
- // 选择所属领域
|
|
|
- thrCon(value) {
|
|
|
- this.$set(this.searchForm, `field`, value);
|
|
|
- this.thrShow = false;
|
|
|
- },
|
|
|
// 返回
|
|
|
back() {
|
|
|
this.$router.push({ path: '/service/patent/index' });
|
|
|
},
|
|
|
+ // 添加
|
|
|
+ addSearch() {
|
|
|
+ this.show = true;
|
|
|
+ },
|
|
|
+ // 重置
|
|
|
+ reseatBtn() {
|
|
|
+ this.$set(this, `searchForm`, {});
|
|
|
+ this.show = false;
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['user']),
|
|
@@ -157,12 +85,14 @@ export default {
|
|
|
<style lang="less" scoped>
|
|
|
.one {
|
|
|
background-color: #ffffff;
|
|
|
- .btn {
|
|
|
- text-align: center;
|
|
|
- margin: 8px 0;
|
|
|
- .van-button {
|
|
|
- margin: 0 8px;
|
|
|
- }
|
|
|
- }
|
|
|
+ text-align: center;
|
|
|
+ padding: 8px 0;
|
|
|
+}
|
|
|
+/deep/.van-dialog {
|
|
|
+ width: 95%;
|
|
|
+}
|
|
|
+/deep/.van-dialog__content {
|
|
|
+ height: 450px;
|
|
|
+ overflow-y: auto;
|
|
|
}
|
|
|
</style>
|