|
|
@@ -8,15 +8,34 @@
|
|
|
:model="formData"
|
|
|
:rules="rules"
|
|
|
ref="form"
|
|
|
- label-width="136px"
|
|
|
+ label-width="116px"
|
|
|
label-position="right"
|
|
|
size="small"
|
|
|
- style="max-width: 500px;"
|
|
|
+ style="width: 600px;"
|
|
|
+ hide-required-asterisk
|
|
|
+ inline
|
|
|
>
|
|
|
- <el-form-item prop="workflow" label="流程">
|
|
|
- <el-select v-model="formData.workflow" clearable filterable placeholder="请选择">
|
|
|
+ <el-form-item prop="name" label="专利名称">
|
|
|
+ <el-input style="width: 300px;" v-model="formData.name" placeholder="请输入"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="type" label="专利类型">
|
|
|
+ <el-radio-group v-model="formData.type">
|
|
|
+ <el-radio :label="item.value" v-for="(item, index) in typeOptions" :key="index">
|
|
|
+ {{ item.label }}
|
|
|
+ </el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item prop="clientPartnerId" label="选择客户">
|
|
|
+ <el-select
|
|
|
+ style="width: 300px;"
|
|
|
+ v-model="formData.clientPartnerId"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
<el-option
|
|
|
- v-for="item in workflowOptions"
|
|
|
+ v-for="item in clientPartnerIdOptions"
|
|
|
:key="item.value"
|
|
|
:label="item.label"
|
|
|
:value="item.value"
|
|
|
@@ -24,27 +43,97 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item prop="pctApplyNo" label="pct申请号">
|
|
|
- <el-input v-model="formData.pctApplyNo"></el-input>
|
|
|
+
|
|
|
+ <el-form-item prop="applicantName" label="申请人名称" class="input-pre-zh">
|
|
|
+ <el-input style="width: 236px;" v-model="formData.applicantName" placeholder="请输入中文名称">
|
|
|
+ <template #prepend>中</template></el-input
|
|
|
+ >
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="applicantEnName" label=" " label-width="10px" class="input-pre-en">
|
|
|
+ <el-input style="width: 236px;" v-model="formData.applicantEnName" placeholder="请输入英文名称">
|
|
|
+ <template #prepend>英</template></el-input
|
|
|
+ >
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item
|
|
|
+ style="margin-bottom:10px;"
|
|
|
+ prop="applicantAddress"
|
|
|
+ label="注册地址"
|
|
|
+ class="input-pre-zh"
|
|
|
+ >
|
|
|
+ <el-input style="width:480px;" v-model="formData.applicantAddress" placeholder="请输入中文地址">
|
|
|
+ <template #prepend>中</template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="applicantEnAddress" label=" " class="input-pre-en">
|
|
|
+ <el-input
|
|
|
+ style="width:480px;"
|
|
|
+ v-model="formData.applicantEnAddress"
|
|
|
+ placeholder="请输入英文地址"
|
|
|
+ >
|
|
|
+ <template #prepend>英</template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item
|
|
|
+ style="margin-bottom:10px;"
|
|
|
+ prop="inventorName"
|
|
|
+ label="发明人姓名"
|
|
|
+ class="input-pre-zh"
|
|
|
+ >
|
|
|
+ <el-input style="width:480px;" v-model="formData.inventorName" placeholder="请输入中文名称">
|
|
|
+ <template #prepend>中</template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="inventorEnName" label=" " class="input-pre-en">
|
|
|
+ <el-input style="width:480px;" v-model="formData.inventorEnName" placeholder="请输入英文名称">
|
|
|
+ <template #prepend>英</template>
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item prop="pctApplyDate" label="pct申请日">
|
|
|
+
|
|
|
+ <el-form-item prop="priorityDate" label="优先权日">
|
|
|
<el-date-picker
|
|
|
- v-model="formData.pctApplyDate"
|
|
|
+ v-model="formData.priorityDate"
|
|
|
type="date"
|
|
|
value-format="yyyy-MM-dd"
|
|
|
placeholder="选择日期"
|
|
|
>
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
- <el-form-item prop="actualOfficialAmount" label="官费实际金额">
|
|
|
- <el-input-number type="number" v-model="formData.actualOfficialAmount"></el-input-number>
|
|
|
+ <el-form-item prop="priorityCountry" label="优先权国别">
|
|
|
+ <el-input v-model="formData.priorityCountry"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="PCT申请信息表单" prop="attachment1">
|
|
|
+ <attachment-upload
|
|
|
+ v-model="formData.attachment1"
|
|
|
+ :fileSize.sync="formData.attachment1.size"
|
|
|
+ ></attachment-upload>
|
|
|
</el-form-item>
|
|
|
- <el-form-item prop="replyStatus" label="答复意见状态">
|
|
|
- <el-input v-model="formData.replyStatus"></el-input>
|
|
|
+ <el-form-item label="总委托书" prop="attachment2">
|
|
|
+ <attachment-upload
|
|
|
+ v-model="formData.attachment2"
|
|
|
+ :fileSize.sync="formData.attachment2.size"
|
|
|
+ ></attachment-upload>
|
|
|
</el-form-item>
|
|
|
- <el-form-item prop="officialCirculation" label="是否继续官文流转">
|
|
|
- <el-switch v-model="formData.officialCirculation"></el-switch>
|
|
|
+ <el-form-item label="申请文稿" prop="attachment3">
|
|
|
+ <attachment-upload
|
|
|
+ v-model="formData.attachment3"
|
|
|
+ :fileSize.sync="formData.attachment3.size"
|
|
|
+ ></attachment-upload>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="自定义附件" prop="attachment4">
|
|
|
+ <el-input
|
|
|
+ size="mini"
|
|
|
+ v-model="formData.attachment4.attachmentName"
|
|
|
+ placeholder="请输入附件名称"
|
|
|
+ ></el-input>
|
|
|
+
|
|
|
+ <attachment-upload
|
|
|
+ v-model="formData.attachment4"
|
|
|
+ :fileSize.sync="formData.attachment4.size"
|
|
|
+ ></attachment-upload>
|
|
|
</el-form-item>
|
|
|
+
|
|
|
<el-form-item class="form-submit">
|
|
|
<el-button @click="onSave" :loading="saving" size="default" type="primary">保存 </el-button>
|
|
|
<el-button @click="onDelete" :loading="saving" size="default" type="danger" v-if="formData.id"
|
|
|
@@ -61,22 +150,32 @@
|
|
|
export default {
|
|
|
name: 'InternationalPatentEdit',
|
|
|
created() {
|
|
|
- if (this.$route.query.id) {
|
|
|
- this.$http
|
|
|
- .get('internationalPatent/get/' + this.$route.query.id)
|
|
|
- .then(res => {
|
|
|
- this.formData = res;
|
|
|
- })
|
|
|
- .catch(e => {
|
|
|
- console.log(e);
|
|
|
- this.$message.error(e.error);
|
|
|
- });
|
|
|
- }
|
|
|
+ this.$http
|
|
|
+ .post('/partner/all', { size: 1000, query: { del: false, type: 'CLIENT' } }, { body: 'json' })
|
|
|
+ .then(res => {
|
|
|
+ if (res.content.length > 0) {
|
|
|
+ res.content.forEach(item => {
|
|
|
+ this.clientPartnerIdOptions.push({
|
|
|
+ label: item.name,
|
|
|
+ value: item.id
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(e => {
|
|
|
+ console.log(e);
|
|
|
+ this.$message.error(e.error);
|
|
|
+ });
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
saving: false,
|
|
|
- formData: {},
|
|
|
+ formData: {
|
|
|
+ attachment1: { attachmentName: 'PCT申请信息表单', fileName: '', url: '', remark: '', size: '' },
|
|
|
+ attachment2: { attachmentName: '总委托书', fileName: '', url: '', remark: '', size: '' },
|
|
|
+ attachment3: { attachmentName: '申请文稿', fileName: '', url: '', remark: '', size: '' },
|
|
|
+ attachment4: { attachmentName: '', fileName: '', url: '', remark: '', size: '' }
|
|
|
+ },
|
|
|
rules: {},
|
|
|
workflowOptions: [
|
|
|
{ label: '待添加供应商', value: 'ADD_SUPPLIERS' },
|
|
|
@@ -87,7 +186,13 @@ export default {
|
|
|
{ label: '待上传答复意见书', value: 'REPLY_SUBMISSION' },
|
|
|
{ label: '待确认答复状态', value: 'CONFIRM_REPLY' },
|
|
|
{ label: '已完成', value: 'COMPLETED' }
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ typeOptions: [
|
|
|
+ { label: '发明专利', value: 'INVENTION' },
|
|
|
+ { label: '实用新型专利', value: 'UTILITY_MODEL' },
|
|
|
+ { label: '外观设计专利', value: 'APPEARANCE_DESIGN' }
|
|
|
+ ],
|
|
|
+ clientPartnerIdOptions: []
|
|
|
};
|
|
|
},
|
|
|
methods: {
|