|
@@ -42,6 +42,8 @@
|
|
|
|
|
|
|
|
<maintenance ref="maintenance" :info="formData" @submit="submit" @uploadAttement="uploadAttement"></maintenance>
|
|
<maintenance ref="maintenance" :info="formData" @submit="submit" @uploadAttement="uploadAttement"></maintenance>
|
|
|
<accept ref="accept" :info="formData" @submit="submit" @uploadAttement="uploadAttement"></accept>
|
|
<accept ref="accept" :info="formData" @submit="submit" @uploadAttement="uploadAttement"></accept>
|
|
|
|
|
+
|
|
|
|
|
+ <review ref="review" :info="formData" @submit="submit" @uploadAttement="uploadAttement"></review>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -52,23 +54,13 @@ import logoPatent from '@/mixins/logoPatent';
|
|
|
import AttachmentAdd from '../components/logoPatent/AttachmentAdd.vue';
|
|
import AttachmentAdd from '../components/logoPatent/AttachmentAdd.vue';
|
|
|
import Maintenance from '../components/logoPatent/Maintenance.vue';
|
|
import Maintenance from '../components/logoPatent/Maintenance.vue';
|
|
|
import Accept from '../components/logoPatent/Accept.vue';
|
|
import Accept from '../components/logoPatent/Accept.vue';
|
|
|
|
|
+import Review from '../components/logoPatent/Review.vue';
|
|
|
export default {
|
|
export default {
|
|
|
name: 'LogoPatentEdit',
|
|
name: 'LogoPatentEdit',
|
|
|
mixins: [logoPatent],
|
|
mixins: [logoPatent],
|
|
|
created() {
|
|
created() {
|
|
|
if (this.$route.query.id) {
|
|
if (this.$route.query.id) {
|
|
|
- this.$http
|
|
|
|
|
- .get('logoPatent/get/' + this.$route.query.id)
|
|
|
|
|
- .then(res => {
|
|
|
|
|
- this.formData = res;
|
|
|
|
|
- this.$nextTick(() => {
|
|
|
|
|
- this.init();
|
|
|
|
|
- });
|
|
|
|
|
- })
|
|
|
|
|
- .catch(e => {
|
|
|
|
|
- console.log(e);
|
|
|
|
|
- this.$message.error(e.error);
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ this.getInfo();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
@@ -96,6 +88,20 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ getInfo() {
|
|
|
|
|
+ this.$http
|
|
|
|
|
+ .get('logoPatent/get/' + this.$route.query.id)
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ this.formData = res;
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ this.init();
|
|
|
|
|
+ });
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(e => {
|
|
|
|
|
+ console.log(e);
|
|
|
|
|
+ this.$message.error(e.error);
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
init() {
|
|
init() {
|
|
|
if (this.activeName === 'first') {
|
|
if (this.activeName === 'first') {
|
|
|
this.$refs.base.init();
|
|
this.$refs.base.init();
|
|
@@ -125,7 +131,7 @@ export default {
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
this.saving = false;
|
|
this.saving = false;
|
|
|
this.$message.success('成功');
|
|
this.$message.success('成功');
|
|
|
- this.init();
|
|
|
|
|
|
|
+ this.getInfo();
|
|
|
})
|
|
})
|
|
|
.catch(e => {
|
|
.catch(e => {
|
|
|
console.log(e);
|
|
console.log(e);
|
|
@@ -156,6 +162,10 @@ export default {
|
|
|
}
|
|
}
|
|
|
data.patentId = this.formData.id;
|
|
data.patentId = this.formData.id;
|
|
|
data.userId = this.$store.state.userInfo.id;
|
|
data.userId = this.$store.state.userInfo.id;
|
|
|
|
|
+ data.version = 1;
|
|
|
|
|
+ if (data.size) {
|
|
|
|
|
+ data.size += 'KB';
|
|
|
|
|
+ }
|
|
|
this.$http.post('/attachment/save', data, { body: 'json' });
|
|
this.$http.post('/attachment/save', data, { body: 'json' });
|
|
|
},
|
|
},
|
|
|
action() {
|
|
action() {
|
|
@@ -165,6 +175,8 @@ export default {
|
|
|
this.$refs.maintenance.show = true;
|
|
this.$refs.maintenance.show = true;
|
|
|
} else if (this.formData.logoWorkflow === 'PENDING') {
|
|
} else if (this.formData.logoWorkflow === 'PENDING') {
|
|
|
this.$refs.accept.show = true;
|
|
this.$refs.accept.show = true;
|
|
|
|
|
+ } else if (this.formData.logoWorkflow === 'PENDING_REVIEW') {
|
|
|
|
|
+ this.$refs.review.show = true;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -174,7 +186,8 @@ export default {
|
|
|
attachmentList,
|
|
attachmentList,
|
|
|
AttachmentAdd,
|
|
AttachmentAdd,
|
|
|
Maintenance,
|
|
Maintenance,
|
|
|
- Accept
|
|
|
|
|
|
|
+ Accept,
|
|
|
|
|
+ Review
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|