|
@@ -18,7 +18,7 @@
|
|
|
企业名称:
|
|
|
</el-col>
|
|
|
<el-col :span="22" class="right">
|
|
|
- <el-input v-model="technologyForm.name" placeholder="请输入企业名称"></el-input>
|
|
|
+ <el-input v-model="technologyForm.company" placeholder="请输入企业名称"></el-input>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="txt">
|
|
@@ -287,7 +287,7 @@
|
|
|
企业名称:
|
|
|
</el-col>
|
|
|
<el-col :span="22" class="right">
|
|
|
- <el-input v-model="achieveForm.name" placeholder="请输入企业名称"></el-input>
|
|
|
+ <el-input v-model="achieveForm.company" placeholder="请输入企业名称"></el-input>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="txt">
|
|
@@ -569,14 +569,42 @@ export default {
|
|
|
if (this.user.role == '4' || this.user.role == '5') {
|
|
|
let res = await this.fetch(this.user.userid);
|
|
|
if (res.errcode === 0) {
|
|
|
- this.$set(this, `technologyForm`, res.data);
|
|
|
- this.$set(this, `achieveForm`, res.data);
|
|
|
+ let message = {
|
|
|
+ company: res.data.name,
|
|
|
+ phone: res.data.phone,
|
|
|
+ email: res.data.email,
|
|
|
+ companytype: res.data.companytype,
|
|
|
+ companydate: res.data.companydate,
|
|
|
+ companycapital: res.data.companycapital,
|
|
|
+ institution_code: res.data.institution_code,
|
|
|
+ companyperson: res.data.companyperson,
|
|
|
+ sndqyzsr: res.data.sndqyzsr,
|
|
|
+ sndyffy: res.data.sndyffy,
|
|
|
+ companytotal: res.data.companytotal,
|
|
|
+ sndyffy: res.data.sndyffy,
|
|
|
+ companybrief: res.data.sndyffy,
|
|
|
+ mainproduct: res.data.mainproduct,
|
|
|
+ qualifications: res.data.qualifications,
|
|
|
+ qqwx: res.data.qqwx,
|
|
|
+ companyweb: res.data.companyweb,
|
|
|
+ contacts: res.data.contacts,
|
|
|
+ };
|
|
|
+ this.$set(this, `technologyForm`, message);
|
|
|
+ this.$set(this, `achieveForm`, message);
|
|
|
}
|
|
|
} else if (this.user.role == '6') {
|
|
|
let res = await this.expertsuserFetch(this.user.userid);
|
|
|
if (res.errcode === 0) {
|
|
|
- this.$set(this, `technologyForm`, res.data);
|
|
|
- this.$set(this, `achieveForm`, res.data);
|
|
|
+ let message = {
|
|
|
+ company: res.data.name,
|
|
|
+ phone: res.data.phone,
|
|
|
+ email: res.data.email,
|
|
|
+ qqwx: res.data.qqwx,
|
|
|
+ companyweb: res.data.companyweb,
|
|
|
+ contacts: res.data.contacts,
|
|
|
+ };
|
|
|
+ this.$set(this, `technologyForm`, message);
|
|
|
+ this.$set(this, `achieveForm`, message);
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -597,15 +625,18 @@ export default {
|
|
|
// 科技成果提交
|
|
|
async achieveBtn() {
|
|
|
let data = this.achieveForm;
|
|
|
- if (data.company != null) {
|
|
|
- data.type = '1';
|
|
|
- data.status = '0';
|
|
|
- console.log(data);
|
|
|
- } else {
|
|
|
+ data.userid = this.user.uid;
|
|
|
+ data.type = '1';
|
|
|
+ data.status = '0';
|
|
|
+ let res = await this.productCreate(data);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
this.$message({
|
|
|
- message: '企业名称不能为空哦',
|
|
|
- type: 'warning',
|
|
|
+ message: '草稿创建成功',
|
|
|
+ type: 'success',
|
|
|
});
|
|
|
+ window.location.reload();
|
|
|
+ } else {
|
|
|
+ this.$message.error('信息发布成功');
|
|
|
}
|
|
|
},
|
|
|
async Btn() {
|