|
@@ -1,14 +1,14 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="edit-view">
|
|
<div class="edit-view">
|
|
|
<page-title></page-title>
|
|
<page-title></page-title>
|
|
|
- <el-tabs class="edit-tabs" v-model="activeName">
|
|
|
|
|
|
|
+ <el-tabs class="edit-tabs" v-model="activeName" @tab-click="tabClick">
|
|
|
<div class="right-btns">
|
|
<div class="right-btns">
|
|
|
<el-button type="primary" size="small">新增答复</el-button>
|
|
<el-button type="primary" size="small">新增答复</el-button>
|
|
|
<el-button type="primary" size="small">新增费用</el-button>
|
|
<el-button type="primary" size="small">新增费用</el-button>
|
|
|
- <el-button type="primary" size="small">新增附件</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" size="small" @click="$refs.attachmentAdd.show = true">新增附件</el-button>
|
|
|
<el-button type="primary" size="small">分案/接续流程</el-button>
|
|
<el-button type="primary" size="small">分案/接续流程</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="tips">
|
|
|
|
|
|
|
+ <div class="tips" v-if="nowStatus">
|
|
|
<div class="tips-text">
|
|
<div class="tips-text">
|
|
|
<span class="name">当前流程节点</span>
|
|
<span class="name">当前流程节点</span>
|
|
|
<span class="val">{{ nowStatus }}</span>
|
|
<span class="val">{{ nowStatus }}</span>
|
|
@@ -24,26 +24,35 @@
|
|
|
<span class="val">无</span>
|
|
<span class="val">无</span>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <el-button type="text" size="small">立即处理</el-button>
|
|
|
|
|
|
|
+ <el-button @click="action" type="text" size="small">立即处理</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
<el-tab-pane label="基本信息" name="first">
|
|
<el-tab-pane label="基本信息" name="first">
|
|
|
<base-info ref="base" :info.sync="formData"></base-info>
|
|
<base-info ref="base" :info.sync="formData"></base-info>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="附件列表" name="second"></el-tab-pane>
|
|
|
|
|
|
|
+ <el-tab-pane label="附件列表" name="second">
|
|
|
|
|
+ <attachment-list ref="attachmentList" :logoPatentInfo="formData"></attachment-list>
|
|
|
|
|
+ </el-tab-pane>
|
|
|
<el-tab-pane label="费用信息" name="third"></el-tab-pane>
|
|
<el-tab-pane label="费用信息" name="third"></el-tab-pane>
|
|
|
<el-tab-pane label="流程信息" name="fourth"></el-tab-pane>
|
|
<el-tab-pane label="流程信息" name="fourth"></el-tab-pane>
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
|
|
|
|
|
- <el-dialog title="是否决定签约" center :visible.sync="showCheck" width="600px">
|
|
|
|
|
- <signed :info="formData" @submit="submit" @cancel="showChec = false"></signed>
|
|
|
|
|
- </el-dialog>
|
|
|
|
|
|
|
+ <signed ref="sign" :info="formData" @submit="submit" @uploadAttement="uploadAttement"></signed>
|
|
|
|
|
+
|
|
|
|
|
+ <attachment-add ref="attachmentAdd" :info="formData"></attachment-add>
|
|
|
|
|
+
|
|
|
|
|
+ <maintenance ref="maintenance" :info="formData" @submit="submit" @uploadAttement="uploadAttement"></maintenance>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
import BaseInfo from '../components/logoPatent/BaseInfo.vue';
|
|
import BaseInfo from '../components/logoPatent/BaseInfo.vue';
|
|
|
import Signed from '../components/logoPatent/Signed.vue';
|
|
import Signed from '../components/logoPatent/Signed.vue';
|
|
|
|
|
+import attachmentList from '../components/logoPatent/AttachmentList.vue';
|
|
|
|
|
+import logoPatent from '@/mixins/logoPatent';
|
|
|
|
|
+import AttachmentAdd from '../components/logoPatent/AttachmentAdd.vue';
|
|
|
|
|
+import Maintenance from '../components/logoPatent/Maintenance.vue';
|
|
|
export default {
|
|
export default {
|
|
|
name: 'LogoPatentEdit',
|
|
name: 'LogoPatentEdit',
|
|
|
|
|
+ mixins: [logoPatent],
|
|
|
created() {
|
|
created() {
|
|
|
if (this.$route.query.id) {
|
|
if (this.$route.query.id) {
|
|
|
this.$http
|
|
this.$http
|
|
@@ -66,44 +75,19 @@ export default {
|
|
|
formData: {},
|
|
formData: {},
|
|
|
rules: {},
|
|
rules: {},
|
|
|
clientPartnerIdOptions: [],
|
|
clientPartnerIdOptions: [],
|
|
|
- applyStatusOptions: [
|
|
|
|
|
- { label: '申请阶段', value: 'APPLY_STAGE' },
|
|
|
|
|
- { label: '初审阶段', value: 'FIRST_REVIEW_STAGE' },
|
|
|
|
|
- { label: '实审阶段', value: 'SUBSTANTIVE_STAGE' },
|
|
|
|
|
- { label: '复审阶段', value: 'REVIEW_STAGE' },
|
|
|
|
|
- { label: '授权阶段', value: 'GRANT_STAGE' },
|
|
|
|
|
- { label: '已完成', value: 'COMPLETED' }
|
|
|
|
|
- ],
|
|
|
|
|
- logoWorkflowOptions: [
|
|
|
|
|
- { label: '是否决定签约', value: 'IS_CONTRACT' },
|
|
|
|
|
- { label: '待维护案件', value: 'TO_BE_MAINTAINED' },
|
|
|
|
|
- { label: '待受理', value: 'PENDING' },
|
|
|
|
|
- { label: '待审查', value: 'PENDING_REVIEW' },
|
|
|
|
|
- { label: '驳回处理', value: 'DISMISS' },
|
|
|
|
|
- { label: '公告初审', value: 'ANNOUNCEMENTS' },
|
|
|
|
|
- { label: '证件办理', value: 'HANDLE' }
|
|
|
|
|
- ],
|
|
|
|
|
supplierPartnerIdOptions: [],
|
|
supplierPartnerIdOptions: [],
|
|
|
- payRatioOptions: [
|
|
|
|
|
- { label: '全款', value: 'FULL_AMOUNT' },
|
|
|
|
|
- { label: '首付80%', value: 'DOWN_PAYMENT_80' },
|
|
|
|
|
- { label: '首付50%', value: 'DOWN_PAYMENT_50' }
|
|
|
|
|
- ],
|
|
|
|
|
- activeName: 'first',
|
|
|
|
|
- showCheck: true
|
|
|
|
|
|
|
+ activeName: 'first'
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
nowStatus() {
|
|
nowStatus() {
|
|
|
- if (!this.formData.contract) {
|
|
|
|
|
- return '是否决定签约';
|
|
|
|
|
- } else {
|
|
|
|
|
- return '';
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ return this.logoWorkflowFormatter('', '', this.formData.logoWorkflow);
|
|
|
},
|
|
},
|
|
|
user() {
|
|
user() {
|
|
|
- if (!this.formData.contract) {
|
|
|
|
|
|
|
+ if (this.formData.logoWorkflow === 'IS_CONTRACT') {
|
|
|
return '客户经理';
|
|
return '客户经理';
|
|
|
|
|
+ } else if (this.formData.logoWorkflow === 'TO_BE_MAINTAINED') {
|
|
|
|
|
+ return '项目经理';
|
|
|
} else {
|
|
} else {
|
|
|
return '';
|
|
return '';
|
|
|
}
|
|
}
|
|
@@ -113,9 +97,15 @@ export default {
|
|
|
init() {
|
|
init() {
|
|
|
if (this.activeName === 'first') {
|
|
if (this.activeName === 'first') {
|
|
|
this.$refs.base.init();
|
|
this.$refs.base.init();
|
|
|
|
|
+ } else if (this.activeName === 'second') {
|
|
|
|
|
+ this.$refs.attachmentList.getData();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ tabClick(tab) {
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ this.init();
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
onSave() {
|
|
onSave() {
|
|
|
this.$refs.form.validate(valid => {
|
|
this.$refs.form.validate(valid => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
@@ -157,11 +147,30 @@ export default {
|
|
|
this.$message.error((e || {}).error || '删除失败');
|
|
this.$message.error((e || {}).error || '删除失败');
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+ },
|
|
|
|
|
+ uploadAttement(info) {
|
|
|
|
|
+ let data = { ...info };
|
|
|
|
|
+ if (!data.url) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ data.parentId = this.formData.id;
|
|
|
|
|
+ data.userId = this.$store.userInfo.id;
|
|
|
|
|
+ this.$http.post('/attachment/save', data, { body: 'json' });
|
|
|
|
|
+ },
|
|
|
|
|
+ action() {
|
|
|
|
|
+ if (this.formData.logoWorkflow === 'IS_CONTRACT') {
|
|
|
|
|
+ this.$refs.sign.show = true;
|
|
|
|
|
+ } else if (this.formData.logoWorkflow === 'TO_BE_MAINTAINED') {
|
|
|
|
|
+ this.$refs.maintenance.show = true;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
components: {
|
|
components: {
|
|
|
BaseInfo,
|
|
BaseInfo,
|
|
|
- Signed
|
|
|
|
|
|
|
+ Signed,
|
|
|
|
|
+ attachmentList,
|
|
|
|
|
+ AttachmentAdd,
|
|
|
|
|
+ Maintenance
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|