|
@@ -39,173 +39,168 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
-
|
|
|
|
- <!-- <el-form-item label="作为对比文件">
|
|
|
|
- <el-switch
|
|
|
|
- v-model="form.asCompare"
|
|
|
|
- active-value="1"
|
|
|
|
- active-text="是"
|
|
|
|
- inactive-text="否">
|
|
|
|
- </el-switch>
|
|
|
|
- </el-form-item> -->
|
|
|
|
- <el-form-item label="选择需要关联的标引与分类" v-if="form.importToId && form.importToType!=2">
|
|
|
|
- <div style="margin-top: 50px">
|
|
|
|
- <span>栏位:</span>
|
|
|
|
- <span>
|
|
|
|
- <el-select
|
|
|
|
- v-model="customFieldId"
|
|
|
|
- @change="changeCustomField"
|
|
|
|
- placeholder="请选择"
|
|
|
|
- clearable
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in customField"
|
|
|
|
- :key="item.name"
|
|
|
|
- :label="item.name"
|
|
|
|
- :value="item.keyValue"
|
|
|
|
- >
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </span>
|
|
|
|
- </div>
|
|
|
|
- <div style="margin-top: 20px" v-if="customFieldId">
|
|
|
|
- <template v-if="choseField.type === 0 || choseField.type === 2">
|
|
|
|
- <el-input
|
|
|
|
- v-model="choseField.fieldValue"
|
|
|
|
- placeholder="请输入内容"
|
|
|
|
- size="small"
|
|
|
|
- @change="changeValue"
|
|
|
|
- ></el-input>
|
|
|
|
- </template>
|
|
|
|
- <template v-if="choseField.type === 1">
|
|
|
|
- <el-date-picker
|
|
|
|
- v-model="choseField.fieldValue"
|
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
|
- type="date"
|
|
|
|
- size="small"
|
|
|
|
- placeholder="选择日期"
|
|
|
|
- style="width: 100%"
|
|
|
|
- @change="changeValue"
|
|
|
|
- ></el-date-picker>
|
|
|
|
- </template>
|
|
|
|
- <template v-if="choseField.type === 4">
|
|
|
|
- <el-radio-group v-model="choseField.fieldValue">
|
|
|
|
- <el-radio
|
|
|
|
- v-for="option in choseField.options"
|
|
|
|
- :key="option.name"
|
|
|
|
- :label="option.id"
|
|
|
|
- @change="changeValue(option.id, option)"
|
|
|
|
- >{{ option.name }}</el-radio
|
|
|
|
|
|
+
|
|
|
|
+ <template v-if="form.DBType == 'CN' || form.DBType == 'WD'">
|
|
|
|
+ <el-form-item label="选择需要关联的标引与分类" v-if="form.importToId && form.importToType!=2">
|
|
|
|
+ <div style="margin-top: 50px">
|
|
|
|
+ <span>栏位:</span>
|
|
|
|
+ <span>
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="customFieldId"
|
|
|
|
+ @change="changeCustomField"
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ clearable
|
|
>
|
|
>
|
|
- </el-radio-group>
|
|
|
|
- </template>
|
|
|
|
- <template v-if="choseField.type === 5">
|
|
|
|
- <el-checkbox-group v-model="choseField.fieldValue">
|
|
|
|
- <el-checkbox
|
|
|
|
- v-for="option in choseField.options"
|
|
|
|
- :key="option.name"
|
|
|
|
- :label="option.id"
|
|
|
|
- @change="changeValue(option.id, option)"
|
|
|
|
- >{{ option.name }}</el-checkbox
|
|
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in customField"
|
|
|
|
+ :key="item.name"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.keyValue"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </span>
|
|
|
|
+ </div>
|
|
|
|
+ <div style="margin-top: 20px" v-if="customFieldId">
|
|
|
|
+ <template v-if="choseField.type === 0 || choseField.type === 2">
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="choseField.fieldValue"
|
|
|
|
+ placeholder="请输入内容"
|
|
|
|
+ size="small"
|
|
|
|
+ @change="changeValue"
|
|
|
|
+ ></el-input>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-if="choseField.type === 1">
|
|
|
|
+ <el-date-picker
|
|
|
|
+ v-model="choseField.fieldValue"
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
|
+ type="date"
|
|
|
|
+ size="small"
|
|
|
|
+ placeholder="选择日期"
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ @change="changeValue"
|
|
|
|
+ ></el-date-picker>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-if="choseField.type === 4">
|
|
|
|
+ <el-radio-group v-model="choseField.fieldValue">
|
|
|
|
+ <el-radio
|
|
|
|
+ v-for="option in choseField.options"
|
|
|
|
+ :key="option.name"
|
|
|
|
+ :label="option.id"
|
|
|
|
+ @change="changeValue(option.id, option)"
|
|
|
|
+ >{{ option.name }}</el-radio
|
|
|
|
+ >
|
|
|
|
+ </el-radio-group>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-if="choseField.type === 5">
|
|
|
|
+ <el-checkbox-group v-model="choseField.fieldValue">
|
|
|
|
+ <el-checkbox
|
|
|
|
+ v-for="option in choseField.options"
|
|
|
|
+ :key="option.name"
|
|
|
|
+ :label="option.id"
|
|
|
|
+ @change="changeValue(option.id, option)"
|
|
|
|
+ >{{ option.name }}</el-checkbox
|
|
|
|
+ >
|
|
|
|
+ </el-checkbox-group>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-if="choseField.type === 6">
|
|
|
|
+ <el-tree
|
|
|
|
+ :ref="choseField.id"
|
|
|
|
+ :data="choseField.options"
|
|
|
|
+ node-key="id"
|
|
|
|
+ :props="treeProp"
|
|
|
|
+ :expand-on-click-node="false"
|
|
|
|
+ :default-expand-all="true"
|
|
>
|
|
>
|
|
- </el-checkbox-group>
|
|
|
|
- </template>
|
|
|
|
- <template v-if="choseField.type === 6">
|
|
|
|
- <el-tree
|
|
|
|
- :ref="choseField.id"
|
|
|
|
- :data="choseField.options"
|
|
|
|
- node-key="id"
|
|
|
|
- :props="treeProp"
|
|
|
|
- :expand-on-click-node="false"
|
|
|
|
- :default-expand-all="true"
|
|
|
|
- >
|
|
|
|
- <span class="custom-tree-node" slot-scope="{ node, data }">
|
|
|
|
- <el-checkbox-group v-model="choseField.fieldValue">
|
|
|
|
- <el-checkbox
|
|
|
|
- :label="data.id"
|
|
|
|
- @change="changeValue(data.id, data)"
|
|
|
|
- >{{ data.name }}</el-checkbox
|
|
|
|
- >
|
|
|
|
- </el-checkbox-group>
|
|
|
|
- </span>
|
|
|
|
- </el-tree>
|
|
|
|
- </template>
|
|
|
|
- </div>
|
|
|
|
- <div v-if="assoImportTaskFieldVOS.length > 0">
|
|
|
|
- <el-tag
|
|
|
|
- v-for="(item, index) in assoImportTaskFieldVOS"
|
|
|
|
- :key="item.fieldValueId"
|
|
|
|
- >{{ item.fieldName }} = {{ item.fieldValueStr }}
|
|
|
|
- <span
|
|
|
|
- ><i @click="del(index, item)" class="el-icon-error"></i></span
|
|
|
|
- ></el-tag>
|
|
|
|
- </div>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <span class="custom-tree-node" slot-scope="{ node, data }">
|
|
|
|
+ <el-checkbox-group v-model="choseField.fieldValue">
|
|
|
|
+ <el-checkbox
|
|
|
|
+ :label="data.id"
|
|
|
|
+ @change="changeValue(data.id, data)"
|
|
|
|
+ >{{ data.name }}</el-checkbox
|
|
|
|
+ >
|
|
|
|
+ </el-checkbox-group>
|
|
|
|
+ </span>
|
|
|
|
+ </el-tree>
|
|
|
|
+ </template>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="assoImportTaskFieldVOS.length > 0">
|
|
|
|
+ <el-tag
|
|
|
|
+ v-for="(item, index) in assoImportTaskFieldVOS"
|
|
|
|
+ :key="item.fieldValueId"
|
|
|
|
+ >{{ item.fieldName }} = {{ item.fieldValueStr }}
|
|
|
|
+ <span
|
|
|
|
+ ><i @click="del(index, item)" class="el-icon-error"></i></span
|
|
|
|
+ ></el-tag>
|
|
|
|
+ </div>
|
|
|
|
+ </el-form-item>
|
|
|
|
|
|
|
|
|
|
- <el-form-item label="下载内容">
|
|
|
|
- <el-select
|
|
|
|
- v-model="importContent"
|
|
|
|
- multiple
|
|
|
|
- collapse-tags
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in importContents"
|
|
|
|
- :key="item.value"
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value"
|
|
|
|
|
|
+ <el-form-item label="下载内容">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="importContent"
|
|
|
|
+ multiple
|
|
|
|
+ collapse-tags
|
|
>
|
|
>
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
-
|
|
|
|
- <el-form-item label="是否更新" prop="ifUpdate" v-if="(!form.isUpdateCriteria || (form.isUpdateCriteria && !update.ifUpdate))&&(!form.patentNos || form.patentNos.length==0)">
|
|
|
|
- <el-switch
|
|
|
|
- v-model="form.ifUpdate"
|
|
|
|
- :active-value="true"
|
|
|
|
- :inactive-value="false"
|
|
|
|
- active-color="#13ce66"
|
|
|
|
- >
|
|
|
|
- </el-switch>
|
|
|
|
- </el-form-item>
|
|
|
|
- <template v-if="form.ifUpdate == true && !update.ifUpdate">
|
|
|
|
- <div>
|
|
|
|
- <el-form-item label="更新间隔" prop="updateCycle">
|
|
|
|
- <el-select
|
|
|
|
- v-model="form.updateCycle "
|
|
|
|
- @change="getDateType"
|
|
|
|
- clearable
|
|
|
|
- placeholder="请选择更新时间间隔"
|
|
|
|
- style="margin-right: 20px"
|
|
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in importContents"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value"
|
|
>
|
|
>
|
|
- <el-option
|
|
|
|
- v-for="item in $constants.updateCycle"
|
|
|
|
- :key="item.value"
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value"
|
|
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+
|
|
|
|
+ <el-form-item label="是否更新" prop="ifUpdate" v-if="(!form.isUpdateCriteria || (form.isUpdateCriteria && !update.ifUpdate))&&(!form.patentNos || form.patentNos.length==0)">
|
|
|
|
+ <el-switch
|
|
|
|
+ v-model="form.ifUpdate"
|
|
|
|
+ :active-value="true"
|
|
|
|
+ :inactive-value="false"
|
|
|
|
+ active-color="#13ce66"
|
|
|
|
+ >
|
|
|
|
+ </el-switch>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <template v-if="form.ifUpdate == true && !update.ifUpdate">
|
|
|
|
+ <div>
|
|
|
|
+ <el-form-item label="更新间隔" prop="updateCycle">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="form.updateCycle "
|
|
|
|
+ @change="getDateType"
|
|
|
|
+ clearable
|
|
|
|
+ placeholder="请选择更新时间间隔"
|
|
|
|
+ style="margin-right: 20px"
|
|
>
|
|
>
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <!-- <el-form-item label="选择更新具体时间" v-if="form.dateType">
|
|
|
|
- <myTimeChoose
|
|
|
|
- :type="form.dateType"
|
|
|
|
- @value="handleData"
|
|
|
|
- :cron="form.crons"
|
|
|
|
- style="width: 300px"
|
|
|
|
- ></myTimeChoose>
|
|
|
|
- </el-form-item> -->
|
|
|
|
- </div>
|
|
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in $constants.updateCycle"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <!-- <el-form-item label="选择更新具体时间" v-if="form.dateType">
|
|
|
|
+ <myTimeChoose
|
|
|
|
+ :type="form.dateType"
|
|
|
|
+ @value="handleData"
|
|
|
|
+ :cron="form.crons"
|
|
|
|
+ style="width: 300px"
|
|
|
|
+ ></myTimeChoose>
|
|
|
|
+ </el-form-item> -->
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ <el-form-item label="立即导入" prop="importNow" v-if="form.isUpdateCriteria && (!form.patentNos || form.patentNos.length==0)">
|
|
|
|
+ <el-switch
|
|
|
|
+ v-model="form.importNow"
|
|
|
|
+ :active-value="true"
|
|
|
|
+ :inactive-value="false"
|
|
|
|
+ active-color="#13ce66"
|
|
|
|
+ >
|
|
|
|
+ </el-switch>
|
|
|
|
+ </el-form-item>
|
|
</template>
|
|
</template>
|
|
- <el-form-item label="立即导入" prop="importNow" v-if="form.isUpdateCriteria && (!form.patentNos || form.patentNos.length==0)">
|
|
|
|
- <el-switch
|
|
|
|
- v-model="form.importNow"
|
|
|
|
- :active-value="true"
|
|
|
|
- :inactive-value="false"
|
|
|
|
- active-color="#13ce66"
|
|
|
|
- >
|
|
|
|
- </el-switch>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+
|
|
</el-form>
|
|
</el-form>
|
|
<div class="button">
|
|
<div class="button">
|
|
<template v-if="form.isUpdateCriteria">
|
|
<template v-if="form.isUpdateCriteria">
|
|
@@ -220,7 +215,7 @@
|
|
</template>
|
|
</template>
|
|
<template v-else>
|
|
<template v-else>
|
|
<el-button
|
|
<el-button
|
|
- v-if="form.importToType == 0"
|
|
|
|
|
|
+ v-if="form.importToType == 0 && (form.DBType == 'CN' || form.DBType == 'WD')"
|
|
type="primary"
|
|
type="primary"
|
|
size="small"
|
|
size="small"
|
|
@click="onSubmit(2)"
|
|
@click="onSubmit(2)"
|
|
@@ -467,10 +462,61 @@ export default {
|
|
this.$refs.form.resetFields();
|
|
this.$refs.form.resetFields();
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
},
|
|
},
|
|
|
|
+ //导入专利到项目中
|
|
|
|
+ importPatentToProject(){
|
|
|
|
+ var params = {
|
|
|
|
+ stringRequest:{
|
|
|
|
+ projectId: this.form.projectId,
|
|
|
|
+ searchQuery: this.form.searchCondition,
|
|
|
|
+ orderDTOList:[]
|
|
|
|
+ },
|
|
|
|
+ fromProjectId:this.form.projectId, //来源专题库项目id
|
|
|
|
+ toProjectId:this.form.importToId, //目标报告项目id
|
|
|
|
+ isAdd:this.queryParams.patentNos, //去除专利号
|
|
|
|
+ }
|
|
|
|
+ if(this.form.orderBy && this.form.orderType){
|
|
|
|
+ var orderDTOList = [
|
|
|
|
+ {
|
|
|
|
+ orderBy:this.queryParams.OrderBy,
|
|
|
|
+ orderType:this.queryParams.OrderByType == 'DESC'?1:0
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ params.stringRequest.orderDTOList = orderDTOList
|
|
|
|
+ }
|
|
|
|
+ var message = this.$message({
|
|
|
|
+ type:'warning',
|
|
|
|
+ message: '正在将专利导入报告中...',
|
|
|
|
+ duration: 0 // 设置为0表示不自动关闭
|
|
|
|
+ })
|
|
|
|
+ this.handleClose()
|
|
|
|
+ this.$api.addProjectPatentToReport(params).then(res=>{
|
|
|
|
+ if(res.code == 200){
|
|
|
|
+ message.close()
|
|
|
|
+ this.$message(
|
|
|
|
+ {
|
|
|
|
+ type:'success',
|
|
|
|
+ message:'导入成功'
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+ }
|
|
|
|
+ }).catch(error=>{
|
|
|
|
+ message.close()
|
|
|
|
+ this.$message(
|
|
|
|
+ {
|
|
|
|
+ type:'error',
|
|
|
|
+ message:'导入失败'
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+ })
|
|
|
|
+ },
|
|
//导入
|
|
//导入
|
|
onSubmit(type) {
|
|
onSubmit(type) {
|
|
this.$refs.form.validate((valid) => {
|
|
this.$refs.form.validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
|
|
+ if(this.form.DBType == 'inner_CN' || this.form.DBType == 'inner_WD'){
|
|
|
|
+ this.importPatentToProject()
|
|
|
|
+ return
|
|
|
|
+ }
|
|
var importContent = []
|
|
var importContent = []
|
|
this.importContents.forEach(item => {
|
|
this.importContents.forEach(item => {
|
|
var index = this.importContent.indexOf(item.value)
|
|
var index = this.importContent.indexOf(item.value)
|