|
@@ -33,7 +33,11 @@
|
|
|
</el-option>
|
|
</el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="商标查询报告书"> </el-form-item>
|
|
|
|
|
|
|
+ <el-form-item label="商标查询报告书">
|
|
|
|
|
+ <attachment-upload v-model="attachment">
|
|
|
|
|
+ 格式要求jpg/png/pdf/word,文件大小不超过5M
|
|
|
|
|
+ </attachment-upload>
|
|
|
|
|
+ </el-form-item>
|
|
|
<el-form-item class="form-submit">
|
|
<el-form-item class="form-submit">
|
|
|
<el-button @click="onSave" :loading="saving" size="default" type="primary">保存 </el-button>
|
|
<el-button @click="onSave" :loading="saving" size="default" type="primary">保存 </el-button>
|
|
|
<el-button @click="$router.go(-1)" size="default">取消</el-button>
|
|
<el-button @click="$router.go(-1)" size="default">取消</el-button>
|
|
@@ -59,7 +63,7 @@ export default {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
this.$http
|
|
this.$http
|
|
|
- .post('/partner/all', { size: 1000, query: { del: false } }, { body: 'json' })
|
|
|
|
|
|
|
+ .post('/partner/all', { size: 1000, query: { del: false, type: 'CLIENT' } }, { body: 'json' })
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
if (res.content.length > 0) {
|
|
if (res.content.length > 0) {
|
|
|
res.content.forEach(item => {
|
|
res.content.forEach(item => {
|
|
@@ -74,27 +78,17 @@ export default {
|
|
|
console.log(e);
|
|
console.log(e);
|
|
|
this.$message.error(e.error);
|
|
this.$message.error(e.error);
|
|
|
});
|
|
});
|
|
|
- this.$http
|
|
|
|
|
- .post('/partner/all', { size: 1000, query: { del: false } }, { body: 'json' })
|
|
|
|
|
- .then(res => {
|
|
|
|
|
- if (res.content.length > 0) {
|
|
|
|
|
- res.content.forEach(item => {
|
|
|
|
|
- this.supplierPartnerIdOptions.push({
|
|
|
|
|
- label: item.name,
|
|
|
|
|
- value: item.id
|
|
|
|
|
- });
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- .catch(e => {
|
|
|
|
|
- console.log(e);
|
|
|
|
|
- this.$message.error(e.error);
|
|
|
|
|
- });
|
|
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
saving: false,
|
|
saving: false,
|
|
|
formData: {},
|
|
formData: {},
|
|
|
|
|
+ attachment: {
|
|
|
|
|
+ attachmentName: '商标查询报告书',
|
|
|
|
|
+ fileName: '',
|
|
|
|
|
+ url: '',
|
|
|
|
|
+ remark: ''
|
|
|
|
|
+ },
|
|
|
rules: {
|
|
rules: {
|
|
|
name: { required: true, message: '请输入注册的商标名', trigger: 'blur' }
|
|
name: { required: true, message: '请输入注册的商标名', trigger: 'blur' }
|
|
|
},
|
|
},
|
|
@@ -139,6 +133,7 @@ export default {
|
|
|
|
|
|
|
|
data.userId = this.$store.state.userInfo.id;
|
|
data.userId = this.$store.state.userInfo.id;
|
|
|
data.applyStatus = 'APPLY_STAGE';
|
|
data.applyStatus = 'APPLY_STAGE';
|
|
|
|
|
+ data.attachments = [{ ...this.attachment }];
|
|
|
|
|
|
|
|
this.saving = true;
|
|
this.saving = true;
|
|
|
this.$http
|
|
this.$http
|