|
@@ -1,82 +1,101 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="edit-view">
|
|
<div class="edit-view">
|
|
|
<page-title>
|
|
<page-title>
|
|
|
- <el-button @click="$router.go(-1)">取消</el-button>
|
|
|
|
|
- <el-button @click="del" :loading="$store.state.fetchingData" type="danger" v-if="formData.id">
|
|
|
|
|
- 删除
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <el-button @click="onSave" :loading="$store.state.fetchingData" type="primary">保存</el-button>
|
|
|
|
|
|
|
+ <template slot="title">
|
|
|
|
|
+ 专利详情:{{ formData.name }}
|
|
|
|
|
+ <el-tag :type="statusInfo.type" style="margin-left: 10px">
|
|
|
|
|
+ {{ statusInfo.label }}
|
|
|
|
|
+ </el-tag>
|
|
|
|
|
+ </template>
|
|
|
</page-title>
|
|
</page-title>
|
|
|
- <div class="edit-view__content-wrapper">
|
|
|
|
|
- <div class="edit-view__content-section">
|
|
|
|
|
- <divider />
|
|
|
|
|
- <el-form
|
|
|
|
|
- :model="formData"
|
|
|
|
|
- :rules="rules"
|
|
|
|
|
- ref="form"
|
|
|
|
|
- label-width="136px"
|
|
|
|
|
- label-position="right"
|
|
|
|
|
- size="small"
|
|
|
|
|
- style="max-width: 500px;"
|
|
|
|
|
- >
|
|
|
|
|
- <el-form-item prop="workflow" label="流程">
|
|
|
|
|
- <el-select v-model="formData.workflow" clearable filterable placeholder="请选择">
|
|
|
|
|
- <el-option
|
|
|
|
|
- v-for="item in workflowOptions"
|
|
|
|
|
- :key="item.value"
|
|
|
|
|
- :label="item.label"
|
|
|
|
|
- :value="item.value"
|
|
|
|
|
- >
|
|
|
|
|
- </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>
|
|
|
|
|
- <el-form-item prop="pctApplyDate" label="pct申请日">
|
|
|
|
|
- <el-date-picker
|
|
|
|
|
- v-model="formData.pctApplyDate"
|
|
|
|
|
- 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>
|
|
|
|
|
- <el-form-item prop="replyStatus" label="答复意见状态">
|
|
|
|
|
- <el-input v-model="formData.replyStatus"></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- <el-form-item prop="officialCirculation" label="是否继续官文流转">
|
|
|
|
|
- <el-switch v-model="formData.officialCirculation"></el-switch>
|
|
|
|
|
- </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"
|
|
|
|
|
- >删除
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <el-button @click="$router.go(-1)" size="default">取消</el-button>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </el-form>
|
|
|
|
|
|
|
+ <el-tabs class="edit-tabs" v-model="activeName" @tab-click="tabClick">
|
|
|
|
|
+ <div class="right-btns">
|
|
|
|
|
+ <!-- <el-button type="primary" size="small">新增答复</el-button> -->
|
|
|
|
|
+ <el-button type="primary" size="small" @click="$refs.feeAdd.init()">新增费用</el-button>
|
|
|
|
|
+ <el-button type="primary" size="small" @click="$refs.attachmentAdd.show = true">新增附件</el-button>
|
|
|
|
|
+ <!-- <el-button type="primary" size="small">分案/接续流程</el-button> -->
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="tips" v-if="nowStatus && formData.applyStatus !== 'COMPLETED'">
|
|
|
|
|
+ <div class="tips-text">
|
|
|
|
|
+ <span class="name">当前流程节点</span>
|
|
|
|
|
+ <span class="val">{{ nowStatus }}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="tips-text">
|
|
|
|
|
+ <span class="name">处理人</span>
|
|
|
|
|
+ <span class="val">{{ user }}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="tips-text">
|
|
|
|
|
+ <span class="name">处理截止日期</span>
|
|
|
|
|
+ <span class="val">{{ date }}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <el-button @click="action" type="text" size="small">立即处理</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <el-tab-pane label="基本信息" name="first">
|
|
|
|
|
+ <base-info ref="base" :info.sync="formData" @submit="submit"></base-info>
|
|
|
|
|
+ </el-tab-pane>
|
|
|
|
|
+ <el-tab-pane label="附件列表" name="second">
|
|
|
|
|
+ <attachment-list ref="attachmentList" :info="formData"></attachment-list>
|
|
|
|
|
+ </el-tab-pane>
|
|
|
|
|
+ <el-tab-pane label="费用信息" name="third">
|
|
|
|
|
+ <fee-list ref="feeList" :info="formData"></fee-list>
|
|
|
|
|
+ </el-tab-pane>
|
|
|
|
|
+ <!-- <el-tab-pane label="流程信息" name="fourth">
|
|
|
|
|
+ <workflow ref="workflow" :info="formData"></workflow>
|
|
|
|
|
+ </el-tab-pane> -->
|
|
|
|
|
+ </el-tabs>
|
|
|
|
|
+ <attachment-add ref="attachmentAdd" :info="formData" @refreash="init"></attachment-add>
|
|
|
|
|
+ <fee-add ref="feeAdd" isLogoPatent :info="formData" @refreash="init"></fee-add>
|
|
|
|
|
+
|
|
|
|
|
+ <maintain-case
|
|
|
|
|
+ ref="maintainCase"
|
|
|
|
|
+ :info="formData"
|
|
|
|
|
+ @submit="submit"
|
|
|
|
|
+ @uploadAttement="uploadAttement"
|
|
|
|
|
+ ></maintain-case>
|
|
|
|
|
+ <office-attachment
|
|
|
|
|
+ ref="officeAttachment"
|
|
|
|
|
+ :info="formData"
|
|
|
|
|
+ @submit="submit"
|
|
|
|
|
+ @uploadAttement="uploadAttement"
|
|
|
|
|
+ ></office-attachment>
|
|
|
|
|
+ <reply ref="reply" :info="formData" @submit="submit" @uploadAttement="uploadAttement"></reply>
|
|
|
|
|
+ <reply-submissions
|
|
|
|
|
+ ref="replySubmissions"
|
|
|
|
|
+ :info="formData"
|
|
|
|
|
+ @submit="submit"
|
|
|
|
|
+ @uploadAttement="uploadAttement"
|
|
|
|
|
+ ></reply-submissions>
|
|
|
|
|
+
|
|
|
|
|
+ <reply-result
|
|
|
|
|
+ ref="replyResult"
|
|
|
|
|
+ :info="formData"
|
|
|
|
|
+ @submit="submit"
|
|
|
|
|
+ @uploadAttement="uploadAttement"
|
|
|
|
|
+ ></reply-result>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+import attachmentList from '../components/AttachmentList.vue';
|
|
|
|
|
+import AttachmentAdd from '../components/AttachmentAdd.vue';
|
|
|
|
|
+import FeeList from '../components/fee/FeeList.vue';
|
|
|
|
|
+import FeeAdd from '../components/fee/FeeAdd.vue';
|
|
|
|
|
+import internationalPatent from '@/mixins/internationalPatent';
|
|
|
|
|
+import BaseInfo from '../components/internationalPatent/BaseInfo.vue';
|
|
|
|
|
+import MaintainCase from '../components/internationalPatent/MaintainCase.vue';
|
|
|
|
|
+import Reply from '../components/internationalPatent/Reply.vue';
|
|
|
|
|
+import ReplySubmissions from '../components/internationalPatent/replySubmissions.vue';
|
|
|
|
|
+import ReplyResult from '../components/internationalPatent/ReplyResult.vue';
|
|
|
|
|
+import Workflow from '../components/Workflow.vue';
|
|
|
|
|
+import OfficeAttachment from '../components/internationalPatent/OfficeAttachment.vue';
|
|
|
export default {
|
|
export default {
|
|
|
name: 'InternationalPatentEdit',
|
|
name: 'InternationalPatentEdit',
|
|
|
|
|
+ mixins: [internationalPatent],
|
|
|
created() {
|
|
created() {
|
|
|
if (this.$route.query.id) {
|
|
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.getInfo();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
@@ -84,19 +103,93 @@ export default {
|
|
|
saving: false,
|
|
saving: false,
|
|
|
formData: {},
|
|
formData: {},
|
|
|
rules: {},
|
|
rules: {},
|
|
|
- workflowOptions: [
|
|
|
|
|
- { label: '待添加供应商', value: 'ADD_SUPPLIERS' },
|
|
|
|
|
- { label: '待提交供应商材料', value: 'SUPPLIER_MATERIALS' },
|
|
|
|
|
- { label: '待维护案件', value: 'MAINTAIN_CASE' },
|
|
|
|
|
- { label: '待官文流转', value: 'OFFICIAL_CIRCULATION' },
|
|
|
|
|
- { label: '待补正答复', value: 'SUPPLEMENTARY_REPLY' },
|
|
|
|
|
- { label: '待上传答复意见书', value: 'REPLY_SUBMISSION' },
|
|
|
|
|
- { label: '待确认答复状态', value: 'CONFIRM_REPLY' },
|
|
|
|
|
- { label: '已完成', value: 'COMPLETED' }
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ clientPartnerIdOptions: [],
|
|
|
|
|
+ supplierPartnerIdOptions: [],
|
|
|
|
|
+ activeName: 'first'
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
+ computed: {
|
|
|
|
|
+ nowStatus() {
|
|
|
|
|
+ return this.workflowFormatter('', '', this.formData.workflow);
|
|
|
|
|
+ },
|
|
|
|
|
+ user() {
|
|
|
|
|
+ if (
|
|
|
|
|
+ this.formData.workflow === 'REPLY_SUBMISSION' ||
|
|
|
|
|
+ this.formData.workflow === 'PAYMENT_REGISTER' ||
|
|
|
|
|
+ this.formData.workflow === 'ANNUAL_FEE'
|
|
|
|
|
+ ) {
|
|
|
|
|
+ return '客户经理';
|
|
|
|
|
+ } else if (this.formData.workflow === 'REPLY_SUBMISSIONS') {
|
|
|
|
|
+ if (this.formData.isClientReady) {
|
|
|
|
|
+ return '客户经理';
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return '项目经理';
|
|
|
|
|
+ }
|
|
|
|
|
+ } else if (this.formData.workflow) {
|
|
|
|
|
+ return '项目经理';
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return '';
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ date() {
|
|
|
|
|
+ if (this.formData.workflow === 'SUPPLIER_MATERIALS') {
|
|
|
|
|
+ return this.formData.supplierSubmitPeriod;
|
|
|
|
|
+ } else if (this.formData.workflow === 'REPLY_SUBMISSION') {
|
|
|
|
|
+ return this.formData.submitPeriod;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return '无';
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ statusInfo() {
|
|
|
|
|
+ let info = [...this.statusOptions].find(item => {
|
|
|
|
|
+ return item.value === this.formData.applyStatus;
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ return (
|
|
|
|
|
+ info || {
|
|
|
|
|
+ type: '',
|
|
|
|
|
+ label: ''
|
|
|
|
|
+ }
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ applyStatusFormatter(status) {
|
|
|
|
|
+ let selectedOption = this.statusOptions.find(i => i.value === status);
|
|
|
|
|
+ if (selectedOption) {
|
|
|
|
|
+ return selectedOption;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ getInfo() {
|
|
|
|
|
+ this.$http
|
|
|
|
|
+ .get('internationalPatent/getDTO/' + this.$route.query.id)
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ this.formData = res;
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ this.init();
|
|
|
|
|
+ });
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(e => {
|
|
|
|
|
+ console.log(e);
|
|
|
|
|
+ this.$message.error(e.error);
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ init() {
|
|
|
|
|
+ if (this.activeName === 'first') {
|
|
|
|
|
+ this.$refs.base.init();
|
|
|
|
|
+ } else if (this.activeName === 'second') {
|
|
|
|
|
+ this.$refs.attachmentList.init();
|
|
|
|
|
+ } else if (this.activeName === 'third') {
|
|
|
|
|
+ this.$refs.feeList.init();
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ tabClick(tab) {
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ this.init();
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
onSave() {
|
|
onSave() {
|
|
|
this.$refs.form.validate(valid => {
|
|
this.$refs.form.validate(valid => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
@@ -106,16 +199,15 @@ export default {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- submit() {
|
|
|
|
|
- let data = { ...this.formData };
|
|
|
|
|
-
|
|
|
|
|
|
|
+ submit(info) {
|
|
|
|
|
+ let data = { ...info };
|
|
|
this.saving = true;
|
|
this.saving = true;
|
|
|
this.$http
|
|
this.$http
|
|
|
- .post('/internationalPatent/save', data, { body: 'json' })
|
|
|
|
|
|
|
+ .post('/internationalPatent/saveDTO', data, { body: 'json' })
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
this.saving = false;
|
|
this.saving = false;
|
|
|
this.$message.success('成功');
|
|
this.$message.success('成功');
|
|
|
- this.$router.go(-1);
|
|
|
|
|
|
|
+ this.getInfo();
|
|
|
})
|
|
})
|
|
|
.catch(e => {
|
|
.catch(e => {
|
|
|
console.log(e);
|
|
console.log(e);
|
|
@@ -138,8 +230,106 @@ export default {
|
|
|
this.$message.error((e || {}).error || '删除失败');
|
|
this.$message.error((e || {}).error || '删除失败');
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+ },
|
|
|
|
|
+ uploadAttement(info) {
|
|
|
|
|
+ let data = { ...info };
|
|
|
|
|
+ if (!data.url) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ data.patentId = this.formData.patentId;
|
|
|
|
|
+ data.userId = this.$store.state.userInfo.id;
|
|
|
|
|
+ data.version = 1;
|
|
|
|
|
+ if (data.size) {
|
|
|
|
|
+ data.size += 'KB';
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$http.post('/attachment/save', data, { body: 'json' });
|
|
|
|
|
+ },
|
|
|
|
|
+ action() {
|
|
|
|
|
+ if (this.formData.workflow === 'ADD_SUPPLIERS') {
|
|
|
|
|
+ this.$refs.addSupplierNo.show = true;
|
|
|
|
|
+ } else if (this.formData.workflow === 'SUPPLIER_MATERIALS') {
|
|
|
|
|
+ this.$refs.backSupplier.show = true;
|
|
|
|
|
+ } else if (this.formData.workflow === 'MAINTAIN_CASE') {
|
|
|
|
|
+ this.$refs.maintainCase.show = true;
|
|
|
|
|
+ } else if (this.formData.workflow === 'OFFICIAL_CIRCULATION') {
|
|
|
|
|
+ this.$refs.officeAttachment.show = true;
|
|
|
|
|
+ } else if (this.formData.workflow === 'SUPPLEMENTARY_REPLY') {
|
|
|
|
|
+ this.$refs.reply.show = true;
|
|
|
|
|
+ } else if (this.formData.workflow === 'REPLY_SUBMISSION') {
|
|
|
|
|
+ this.$refs.replySubmissions.show = true;
|
|
|
|
|
+ } else if (this.formData.workflow === 'CONFIRM_REPLY') {
|
|
|
|
|
+ this.$refs.replyResult.show = true;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
+ },
|
|
|
|
|
+ components: {
|
|
|
|
|
+ BaseInfo,
|
|
|
|
|
+ attachmentList,
|
|
|
|
|
+ AttachmentAdd,
|
|
|
|
|
+ FeeList,
|
|
|
|
|
+ FeeAdd,
|
|
|
|
|
+ MaintainCase,
|
|
|
|
|
+ Reply,
|
|
|
|
|
+ ReplySubmissions,
|
|
|
|
|
+ ReplyResult,
|
|
|
|
|
+ OfficeAttachment
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
-<style lang="less" scoped></style>
|
|
|
|
|
|
|
+<style lang="less" scoped>
|
|
|
|
|
+.edit-tabs {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+
|
|
|
|
|
+ .right-btns {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ right: 20px;
|
|
|
|
|
+ top: -44px;
|
|
|
|
|
+ .el-button {
|
|
|
|
|
+ min-width: 100px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.tips {
|
|
|
|
|
+ .flex();
|
|
|
|
|
+ height: 40px;
|
|
|
|
|
+ background: tint(@warn, 68%);
|
|
|
|
|
+ border: 1px solid @warn;
|
|
|
|
|
+ margin: 20px 20px 0;
|
|
|
|
|
+ padding: 0 20px;
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+
|
|
|
|
|
+ .tips-text {
|
|
|
|
|
+ margin-right: 60px;
|
|
|
|
|
+ .name {
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ color: #5e6166;
|
|
|
|
|
+ line-height: 22px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .val {
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ color: @warn;
|
|
|
|
|
+ line-height: 22px;
|
|
|
|
|
+ margin-left: 10px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .el-button {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ right: 20px;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|
|
|
|
|
+<style lang="less">
|
|
|
|
|
+.el-dialog {
|
|
|
|
|
+ .el-form {
|
|
|
|
|
+ .el-form-item {
|
|
|
|
|
+ &:last-child {
|
|
|
|
|
+ margin-top: 70px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|