|
@@ -18,7 +18,7 @@
|
|
|
企业名称:
|
|
|
</el-col>
|
|
|
<el-col :span="22" class="right">
|
|
|
- <el-input v-model="technologyForm.company" placeholder="请输入企业名称"></el-input>
|
|
|
+ <el-input v-model="technologyForm.name" placeholder="请输入企业名称"></el-input>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="txt">
|
|
@@ -34,7 +34,7 @@
|
|
|
信用代码:
|
|
|
</el-col>
|
|
|
<el-col :span="20" class="right">
|
|
|
- <el-input v-model="technologyForm.zzjgdm" placeholder="请输入统一社会信用代码"></el-input>
|
|
|
+ <el-input v-model="technologyForm.institution_code" placeholder="请输入统一社会信用代码" disabled></el-input>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="txt">
|
|
@@ -273,7 +273,7 @@
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="btn">
|
|
|
- <el-button type="primary" size="mini" @click="technologyBtn">保存</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="Btn()">保存</el-button>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-tab-pane>
|
|
@@ -287,7 +287,7 @@
|
|
|
企业名称:
|
|
|
</el-col>
|
|
|
<el-col :span="22" class="right">
|
|
|
- <el-input v-model="achieveForm.company" placeholder="请输入企业名称"></el-input>
|
|
|
+ <el-input v-model="achieveForm.name" placeholder="请输入企业名称"></el-input>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="txt">
|
|
@@ -515,6 +515,8 @@
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
const { mapActions: markettype } = createNamespacedHelpers('markettype');
|
|
|
const { mapActions: collectproduct } = createNamespacedHelpers('collectproduct');
|
|
|
+const { mapActions: market } = createNamespacedHelpers('market');
|
|
|
+const { mapActions: mapMarketproduct } = createNamespacedHelpers('marketproduct');
|
|
|
export default {
|
|
|
metaInfo() {
|
|
|
return { title: this.$route.meta.title };
|
|
@@ -539,9 +541,12 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.searchtype();
|
|
|
+ this.searchInfo();
|
|
|
},
|
|
|
methods: {
|
|
|
...markettype({ markettypeList: 'query' }),
|
|
|
+ ...market(['fetch', 'update']),
|
|
|
+ ...mapMarketproduct({ productFetch: 'fetch', productCreate: 'create', productUpdate: 'update' }),
|
|
|
// 查询字典表
|
|
|
async searchtype() {
|
|
|
// 所属领域;
|
|
@@ -560,6 +565,21 @@ export default {
|
|
|
this.$set(this, `cooperationList`, res.data);
|
|
|
}
|
|
|
},
|
|
|
+ async searchInfo() {
|
|
|
+ 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);
|
|
|
+ }
|
|
|
+ } 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);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
// 技术需求提交
|
|
|
async technologyBtn() {
|
|
|
let data = this.technologyForm;
|
|
@@ -588,6 +608,22 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ async Btn() {
|
|
|
+ const data = this.technologyForm;
|
|
|
+ data.userid = this.user.uid;
|
|
|
+ data.type = '0';
|
|
|
+ data.status = '0';
|
|
|
+ let res = await this.productCreate(data);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$message({
|
|
|
+ message: '草稿创建成功',
|
|
|
+ type: 'success',
|
|
|
+ });
|
|
|
+ window.location.reload();
|
|
|
+ } else {
|
|
|
+ this.$message.error('信息发布成功');
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['user']),
|