guhongwei 4 år sedan
förälder
incheckning
67d59a3cf4

+ 15 - 88
src/views/userCenter/dock/detail.vue

@@ -6,33 +6,11 @@
           <NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow"> </NavBar>
         </el-col>
         <el-col :span="24" class="main">
-          <van-tabs v-model="active" @click="clickbtn">
-            <van-tab title="技术需求">
-              <producInfo
-                :type="type"
-                :form="form"
-                @onSubmit="onSubmit"
-                :fieldList="fieldList"
-                :achievestatusList="achievestatusList"
-                :cooperationList="cooperationList"
-              ></producInfo>
+          <van-tabs v-model="active">
+            <van-tab title="科技需求">
+              <producInfo :form="form" @onSubmit="onSubmit" :fieldList="fieldList" :cooperationList="cooperationList"></producInfo>
             </van-tab>
-            <van-tab title="产品供求">
-              <!-- <van-form> -->
-              <!-- <van-field
-                  readonly
-                  clickable
-                  name="picker"
-                  :value="productForm.goodsList"
-                  label="合作方式"
-                  placeholder="选择产品"
-                  @click="showPicker = true"
-                  class="van1"
-                />
-                <van-popup v-model="showPicker" position="bottom">
-                  <van-picker show-toolbar :columns="goodsList" @confirm="onConfirm" @cancel="showPicker = false" />
-                </van-popup> -->
-              <!-- </van-form> -->
+            <van-tab title="技术产品">
               <el-form :model="productForm" label-width="100px">
                 <el-form-item label="选择产品">
                   <el-select v-model="productForm.goodsList" value-key="id" multiple placeholder="请选择选择产品">
@@ -40,8 +18,7 @@
                   </el-select>
                 </el-form-item>
                 <el-form-item>
-                  <el-button @click="btn1('ruleForm')">取消</el-button>
-                  <el-button type="primary" @click="btn2('ruleForm')">确定</el-button>
+                  <el-button type="primary" @click="achOnsubmit()">申请提交</el-button>
                 </el-form-item>
               </el-form>
             </van-tab>
@@ -77,25 +54,20 @@ export default {
       // 返回
       navShow: true,
       active: 0,
-      type: '0',
       form: {},
       // 字典表
       fieldList: [],
-      achievestatusList: [],
       cooperationList: [],
-      value: '',
       //成果列表
       goodsLists: [],
-      showPicker: false,
-      productForm: {},
+      productForm: {
+        goodsList: [],
+      },
     };
   },
   async created() {
     await this.searchtype();
     await this.searchinfo();
-    if (this.id) {
-      await this.searchproductinfo();
-    }
   },
   methods: {
     ...markettype({ markettypeList: 'query' }),
@@ -132,13 +104,6 @@ export default {
         }
       }
     },
-    // 查询产品详情
-    async searchproductinfo() {
-      let res = await this.productFetch(this.id);
-      if (this.$checkRes(res)) {
-        this.$set(this, `form`, res.data);
-      }
-    },
     // 查询字典表
     async searchtype() {
       // 所属领域;
@@ -146,69 +111,43 @@ export default {
       if (this.$checkRes(res)) {
         this.$set(this, `fieldList`, res.data);
       }
-      // 成果状态;
-      res = await this.markettypeList({ category: '02' });
-      if (this.$checkRes(res)) {
-        this.$set(this, `achievestatusList`, res.data);
-      }
       // 合作方式;
       res = await this.markettypeList({ category: '03' });
       if (this.$checkRes(res)) {
         this.$set(this, `cooperationList`, res.data);
       }
       res = await this.marketquery({ userid: this.user.uid, status: 1 });
-      // console.log(res);
       if (this.$checkRes(res)) {
-        let field = res.data.map(item => item.name);
-        this.$set(this, `goodsList`, field);
+        this.$set(this, `goodsLists`, res.data);
       }
     },
-    // 选择类型
-    clickbtn(name) {
-      // console.log(name);
-      this.$set(this, `type`, String(name));
-    },
-    // 提交
+    // 技术申请对接会
     async onSubmit({ data }) {
       data.type = this.type;
       data.userid = this.user.uid;
       let res = await this.productCreate(data);
       if (this.$checkRes(res)) {
         this.$notify({
-          message: '保存草稿成功',
+          message: '申请参加对接会成功',
           type: 'success',
         });
-        this.$router.push({ path: '/userCenter/myProduct/index' });
+        this.$router.push({ path: '/userCenter/dock/index' });
       }
     },
-    // 监听显示类型
-    changetype() {
-      let type = this.producttype;
-      this.$set(this, `active`, Number(type));
-      this.$set(this, `type`, type);
-    },
-    onConfirm(value) {
-      this.$set(this.productForm, `goodsLists`, value);
-      this.showPicker = false;
-    },
-    btn1() {
-      this.productForm = {};
-    },
-    // 提交
-    async btn2() {
+    // 产品申请对接会
+    async achOnsubmit() {
       let data = this.productForm;
       data.user_id = this.user.uid;
       data.user_name = this.user.name;
       data.contact_tel = this.user.phone;
       data.role = this.user.role;
-      console.log(data);
       const res = await this.applyCreate({ id: this.id, ...data });
       if (res.errcode === 0) {
         this.$notify({
           message: '申请参加对接会成功',
           type: 'success',
         });
-        this.btn1();
+        this.$router.push({ path: '/userCenter/dock/index' });
       }
     },
   },
@@ -217,18 +156,6 @@ export default {
     id() {
       return this.$route.query.id;
     },
-    producttype() {
-      return this.$route.query.type;
-    },
-  },
-  watch: {
-    producttype: {
-      immediate: true,
-      deep: true,
-      handler(val) {
-        this.changetype();
-      },
-    },
   },
   mounted() {
     this.title = this.$route.meta.title;

+ 0 - 84
src/views/userCenter/dock/parts/alreadyList.vue

@@ -1,84 +0,0 @@
-<template>
-  <div id="alreadyList">
-    <el-row>
-      <el-col :span="24" class="style">
-        <el-col :span="24" class="list" v-for="(item, index) in alreadyLive" :key="index">
-          <el-col :span="4" class="left">
-            <i class="el-icon-video-camera-solid"></i>
-            <!-- <el-button type="primary" size="mini">申请</el-button> -->
-          </el-col>
-          <el-col :span="20" class="right">
-            <p>{{ item.title }}</p>
-            <p>开始时间:{{ item.start_time }}</p>
-            <p>报名截止时间:{{ item.join_end }}</p>
-            <p>简介:{{ item.desc }}</p>
-          </el-col>
-        </el-col>
-      </el-col>
-    </el-row>
-  </div>
-</template>
-
-<script>
-import { mapState, createNamespacedHelpers } from 'vuex';
-export default {
-  name: 'alreadyList',
-  props: {
-    alreadyLive: null,
-  },
-  components: {},
-  data: function() {
-    return {};
-  },
-  created() {},
-  methods: {},
-  computed: {
-    ...mapState(['user']),
-    pageTitle() {
-      return `${this.$route.meta.title}`;
-    },
-  },
-  metaInfo() {
-    return { title: this.$route.meta.title };
-  },
-};
-</script>
-
-<style lang="less" scoped>
-.list {
-  padding: 0 15px 10px 15px;
-  background-color: #fff;
-  border-bottom: 1px solid red;
-  .left {
-    text-align: center;
-    i {
-      font-size: 30px;
-      padding: 15px 0;
-    }
-  }
-  .right {
-    font-size: 14px;
-    color: #666;
-    padding: 0 10px;
-    p:first-child {
-      padding: 5px 0;
-      color: #000;
-    }
-    p:nth-child(2) {
-      padding: 0 0 5px 0;
-    }
-    p:nth-child(3) {
-      padding: 0 0 5px 0;
-    }
-    p:nth-child(4) {
-      padding: 0;
-      overflow: hidden;
-      text-overflow: ellipsis;
-      -webkit-line-clamp: 3;
-      word-break: break-all;
-      display: -webkit-box;
-      -webkit-box-orient: vertical;
-    }
-  }
-}
-</style>

+ 0 - 84
src/views/userCenter/dock/parts/nextList.vue

@@ -1,84 +0,0 @@
-<template>
-  <div id="nextList">
-    <el-row>
-      <el-col :span="24" class="style">
-        <el-col :span="24" class="list" v-for="(item, index) in nextLive" :key="index">
-          <el-col :span="4" class="left">
-            <i class="el-icon-video-camera-solid"></i>
-            <el-button type="primary" size="mini" @click="$router.push({ path: '/userCenter/dock/apply', query: { id: item.id } })">申请</el-button>
-          </el-col>
-          <el-col :span="20" class="right">
-            <p>{{ item.title }}</p>
-            <p>开始时间:{{ item.start_time }}</p>
-            <p>报名截止时间:{{ item.join_end }}</p>
-            <p>简介:{{ item.desc }}</p>
-          </el-col>
-        </el-col>
-      </el-col>
-    </el-row>
-  </div>
-</template>
-
-<script>
-import { mapState, createNamespacedHelpers } from 'vuex';
-export default {
-  name: 'nextList',
-  props: {
-    nextLive: null,
-  },
-  components: {},
-  data: function() {
-    return {};
-  },
-  created() {},
-  methods: {},
-  computed: {
-    ...mapState(['user']),
-    pageTitle() {
-      return `${this.$route.meta.title}`;
-    },
-  },
-  metaInfo() {
-    return { title: this.$route.meta.title };
-  },
-};
-</script>
-
-<style lang="less" scoped>
-.list {
-  padding: 0 15px 10px 15px;
-  background-color: #fff;
-  border-bottom: 1px solid red;
-  .left {
-    text-align: center;
-    i {
-      font-size: 30px;
-      padding: 15px 0;
-    }
-  }
-  .right {
-    font-size: 14px;
-    color: #666;
-    padding: 0 10px;
-    p:first-child {
-      padding: 5px 0;
-      color: #000;
-    }
-    p:nth-child(2) {
-      padding: 0 0 5px 0;
-    }
-    p:nth-child(3) {
-      padding: 0 0 5px 0;
-    }
-    p:nth-child(4) {
-      padding: 0;
-      overflow: hidden;
-      text-overflow: ellipsis;
-      -webkit-line-clamp: 3;
-      word-break: break-all;
-      display: -webkit-box;
-      -webkit-box-orient: vertical;
-    }
-  }
-}
-</style>

+ 49 - 260
src/views/userCenter/dock/parts/producInfo.vue

@@ -2,183 +2,55 @@
   <div id="producInfo">
     <el-row>
       <el-col :span="24">
-        <span v-if="type == '0'">
-          <van-form>
-            <van-field v-model="form.company" name="企业名称" label="企业名称" placeholder="企业名称" readonly />
-            <van-field v-model="form.phone" name="联系电话" label="联系电话" placeholder="联系电话" readonly />
-            <van-field v-model="form.email" name="电子邮箱" label="电子邮箱" placeholder="电子邮箱" readonly />
-            <van-field v-model="form.contacts" name="联系人" label="联系人" placeholder="联系人" />
-            <van-field v-model="form.qqwx" name="QQ/微信" label="QQ/微信" placeholder="QQ/微信" />
-            <van-field v-model="form.name" name="需求名称" label="需求名称" placeholder="需求名称" />
-            <van-field name="radio" label="紧急程度">
-              <template #input>
-                <van-radio-group v-model="form.degreeurgency" direction="horizontal">
-                  <van-radio name="特急">特急</van-radio>
-                  <van-radio name="一般">一般</van-radio>
-                  <van-radio name="长期">长期</van-radio>
-                </van-radio-group>
-              </template>
-            </van-field>
-            <van-field readonly clickable name="picker" :value="form.field" label="所属领域" placeholder="点击选择" @click="fieldpic = true" />
-            <van-popup v-model="fieldpic" position="bottom">
-              <van-picker show-toolbar :columns="field" @confirm="fieldSubmit" @cancel="fieldpic = false" />
-            </van-popup>
-            <van-field readonly clickable name="picker" :value="form.cooperation" label="合作方式" placeholder="点击选择" @click="cooperationpic = true" />
-            <van-popup v-model="cooperationpic" position="bottom">
-              <van-picker show-toolbar :columns="cooperation" @confirm="cooperationSubmit" @cancel="cooperationpic = false" />
-            </van-popup>
-            <van-field v-model="form.budget" name="投资预算" label="投资预算" placeholder="投资预算" />
-            <van-field v-model="form.requirementdesc" rows="1" autosize label="技术说明" type="textarea" placeholder="技术说明" />
-            <van-field v-model="form.expect" rows="1" autosize label="预期目标" type="textarea" placeholder="预期目标" />
-            <van-field v-model="form.present" rows="1" autosize label="合作要求" type="textarea" placeholder="合作要求" />
-            <van-field name="expertimage" label="产品图片(6)">
-              <template #input
-                ><upload
-                  :limit="6"
-                  :data="form.image"
-                  type="image"
-                  :url="`/files/imgpath/upload`"
-                  @upload="uploadSuccess"
-                  :uploadBtn="true"
-                  @delete="uploadDelete"
-                ></upload>
-              </template>
-            </van-field>
-            <div style="margin: 16px;">
-              <van-button round block type="info" @click="onSubmit">
-                提交
-              </van-button>
-            </div>
-          </van-form>
-        </span>
-        <span v-else-if="type == '1'">
-          <van-form>
-            <van-field v-model="form.company" name="企业名称" label="企业名称" placeholder="企业名称" readonly />
-            <van-field v-model="form.phone" name="联系电话" label="联系电话" placeholder="联系电话" readonly />
-            <van-field v-model="form.email" name="电子邮箱" label="电子邮箱" placeholder="电子邮箱" readonly />
-            <van-field v-model="form.contacts" name="联系人" label="联系人" placeholder="联系人" />
-            <van-field v-model="form.qqwx" name="QQ/微信" label="QQ/微信" placeholder="QQ/微信" />
-            <van-field v-model="form.name" name="成果名称" label="成果名称" placeholder="成果名称" />
-            <van-field readonly clickable name="picker" :value="form.field" label="所属领域" placeholder="点击选择" @click="fieldpic = true" />
-            <van-popup v-model="fieldpic" position="bottom">
-              <van-picker show-toolbar :columns="field" @confirm="fieldSubmit" @cancel="fieldpic = false" />
-            </van-popup>
-            <van-field readonly clickable name="picker" :value="form.cooperation" label="合作方式" placeholder="点击选择" @click="cooperationpic = true" />
-            <van-popup v-model="cooperationpic" position="bottom">
-              <van-picker show-toolbar :columns="cooperation" @confirm="cooperationSubmit" @cancel="cooperationpic = false" />
-            </van-popup>
-            <van-field readonly clickable name="picker" :value="form.achievestatus" label="成果状态" placeholder="点击选择" @click="achievestatuspic = true" />
-            <van-popup v-model="achievestatuspic" position="bottom">
-              <van-picker show-toolbar :columns="achievestatus" @confirm="achievestatusOnsubmit" @cancel="achievestatuspic = false" />
-            </van-popup>
-            <van-field v-model="form.achieveown" name="成果权属" label="成果权属" placeholder="成果权属" />
-            <van-field name="radio" label="成果来源">
-              <template #input>
-                <van-radio-group v-model="form.achievesource" direction="horizontal">
-                  <van-radio name="国家项目">国家项目</van-radio>
-                  <van-radio name="省级项目">省级项目</van-radio>
-                  <van-radio name="市级项目">市级项目</van-radio>
-                  <van-radio name="市级项目">市级项目</van-radio>
-                </van-radio-group>
-              </template>
-            </van-field>
-            <van-field v-model="form.intentionprice" name="意向价格" label="意向价格" placeholder="意向价格" />
-            <van-field name="patent" label="专利信息">
-              <template #input>
-                <el-button type="primary" size="mini" @click="addPatent">添加</el-button>
-                <el-button type="primary" size="mini" @click="viewPatent">查看</el-button>
-              </template>
-            </van-field>
-            <van-field v-model="form.achievebrief" rows="1" autosize label="成果简介" type="textarea" placeholder="成果简介" />
-            <van-field v-model="form.features" rows="1" autosize label="技术特点" type="textarea" placeholder="技术特点" />
-            <van-field v-model="form.team" rows="1" autosize label="技术团队" type="textarea" placeholder="技术团队" />
-            <van-field v-model="form.expectations" rows="1" autosize label="商业预期" type="textarea" placeholder="商业预期" />
-            <van-field v-model="form.condition" rows="1" autosize label="合作要求" type="textarea" placeholder="合作要求" />
-            <van-field name="expertimage" label="产品图片(6)">
-              <template #input
-                ><upload
-                  :limit="6"
-                  :data="form.image"
-                  type="image"
-                  :url="`/files/imgpath/upload`"
-                  @upload="uploadSuccess"
-                  :uploadBtn="true"
-                  @delete="uploadDelete"
-                ></upload>
-              </template>
-            </van-field>
-            <div style="margin: 16px;">
-              <van-button round block type="info" @click="onSubmit">
-                提交
-              </van-button>
-            </div>
-          </van-form>
-        </span>
-        <span v-else-if="type == '2'">
-          <van-form>
-            <van-field v-model="form.company" name="企业名称" label="企业名称" placeholder="企业名称" readonly />
-            <van-field v-model="form.phone" name="联系电话" label="联系电话" placeholder="联系电话" readonly />
-            <van-field v-model="form.email" name="电子邮箱" label="电子邮箱" placeholder="电子邮箱" readonly />
-            <van-field v-model="form.contacts" name="联系人" label="联系人" placeholder="联系人" />
-            <van-field v-model="form.qqwx" name="QQ/微信" label="QQ/微信" placeholder="QQ/微信" />
-            <van-field v-model="form.name" name="信息名称" label="信息名称" placeholder="信息名称" />
-            <van-field name="radio" label="信息属性">
-              <template #input>
-                <van-radio-group v-model="form.messattribute" direction="horizontal">
-                  <van-radio name="提供方">提供方</van-radio>
-                  <van-radio name="需求方">需求方</van-radio>
-                </van-radio-group>
-              </template>
-            </van-field>
-            <van-field name="radio" label="需求程度">
-              <template #input>
-                <van-radio-group v-model="form.demand" direction="horizontal">
-                  <van-radio name="特急">特急</van-radio>
-                  <van-radio name="一般">一般</van-radio>
-                  <van-radio name="长期">长期</van-radio>
-                </van-radio-group>
-              </template>
-            </van-field>
-            <van-field v-model="form.informationdesc" rows="1" autosize label="信息描述" type="textarea" placeholder="信息描述" />
-            <van-field v-model="form.coreelements" rows="1" autosize label="核心要素" type="textarea" placeholder="核心要素" />
-            <van-field v-model="form.priceinfo" rows="1" autosize label="价格信息" type="textarea" placeholder="价格信息" />
-            <van-field v-model="form.businessexpect" rows="1" autosize label="商业预期" type="textarea" placeholder="商业预期" />
-            <div style="margin: 16px;">
-              <van-button round block type="info" @click="onSubmit">
-                提交
-              </van-button>
-            </div>
-          </van-form>
-        </span>
+        <van-form>
+          <van-field v-model="form.company" name="企业名称" label="企业名称" placeholder="企业名称" readonly />
+          <van-field v-model="form.phone" name="联系电话" label="联系电话" placeholder="联系电话" readonly />
+          <van-field v-model="form.email" name="电子邮箱" label="电子邮箱" placeholder="电子邮箱" readonly />
+          <van-field v-model="form.contacts" name="联系人" label="联系人" placeholder="联系人" />
+          <van-field v-model="form.qqwx" name="QQ/微信" label="QQ/微信" placeholder="QQ/微信" />
+          <van-field v-model="form.name" name="需求名称" label="需求名称" placeholder="需求名称" />
+          <van-field name="radio" label="紧急程度">
+            <template #input>
+              <van-radio-group v-model="form.degreeurgency" direction="horizontal">
+                <van-radio name="特急">特急</van-radio>
+                <van-radio name="一般">一般</van-radio>
+                <van-radio name="长期">长期</van-radio>
+              </van-radio-group>
+            </template>
+          </van-field>
+          <van-field readonly clickable name="picker" :value="form.field" label="所属领域" placeholder="点击选择" @click="fieldpic = true" />
+          <van-popup v-model="fieldpic" position="bottom">
+            <van-picker show-toolbar :columns="fieldList" @confirm="fieldSubmit" @cancel="fieldpic = false" value-key="name" />
+          </van-popup>
+          <van-field readonly clickable name="picker" :value="form.cooperation" label="合作方式" placeholder="点击选择" @click="cooperationpic = true" />
+          <van-popup v-model="cooperationpic" position="bottom">
+            <van-picker show-toolbar :columns="cooperationList" @confirm="cooperationSubmit" @cancel="cooperationpic = false" value-key="name" />
+          </van-popup>
+          <van-field v-model="form.budget" name="投资预算" label="投资预算" placeholder="投资预算" />
+          <van-field v-model="form.requirementdesc" rows="1" autosize label="技术说明" type="textarea" placeholder="技术说明" />
+          <van-field v-model="form.expect" rows="1" autosize label="预期目标" type="textarea" placeholder="预期目标" />
+          <van-field v-model="form.present" rows="1" autosize label="合作要求" type="textarea" placeholder="合作要求" />
+          <van-field name="expertimage" label="产品图片(6)">
+            <template #input
+              ><upload
+                :limit="6"
+                :data="form.image"
+                type="image"
+                :url="`/files/imgpath/upload`"
+                @upload="uploadSuccess"
+                :uploadBtn="true"
+                @delete="uploadDelete"
+              ></upload>
+            </template>
+          </van-field>
+          <div style="margin: 16px;">
+            <van-button round block type="info" @click="onSubmit">
+              提交申请
+            </van-button>
+          </div>
+        </van-form>
       </el-col>
     </el-row>
-    <van-dialog v-model="show" title="添加专利信息" :showConfirmButton="false" :closeOnClickOverlay="true">
-      <van-form>
-        <van-field v-model="patentform.patentinfo" name="名称" label="名称" placeholder="名称" />
-        <van-field name="radio" label="专利状态">
-          <template #input>
-            <van-radio-group v-model="patentform.patentstatus" direction="horizontal">
-              <van-radio name="已申请">已申请</van-radio>
-              <van-radio name="已授权">已授权</van-radio>
-            </van-radio-group>
-          </template>
-        </van-field>
-        <div style="margin: 16px;">
-          <van-button round block type="info" @click="patentSubmit">
-            提交
-          </van-button>
-        </div>
-      </van-form>
-    </van-dialog>
-    <van-dialog v-model="patentshow" title="查看专利信息" :showConfirmButton="false" :closeOnClickOverlay="true">
-      <div class="patentList" v-for="(item, index) in patentList" :key="index">
-        <p class="textOver">{{ item.patentinfo }}</p>
-        <p>专利状态:{{ item.patentstatus }}</p>
-        <p>
-          <el-button type="primary" size="mini" @click="delPatent(index, item)">刪除</el-button>
-        </p>
-      </div>
-    </van-dialog>
   </div>
 </template>
 
@@ -188,11 +60,9 @@ import { mapState, createNamespacedHelpers } from 'vuex';
 export default {
   name: 'producInfo',
   props: {
-    type: { type: String, default: '0' },
     form: { type: Object },
     fieldList: { type: Array },
     cooperationList: { type: Array },
-    achievestatusList: { type: Array },
   },
   components: {
     upload,
@@ -203,47 +73,20 @@ export default {
       fieldpic: false,
       cooperation: [],
       cooperationpic: false,
-      achievestatus: [],
-      achievestatuspic: false,
-      // 专利信息
-      show: false,
-      patentform: {},
-      patentshow: false,
-      patentList: [],
     };
   },
   created() {},
   methods: {
-    // 重组数组
-    seachfield() {
-      let field = this.fieldList.map(item => item.name);
-      this.$set(this, `field`, field);
-    },
     // 所屬領域
     fieldSubmit(value) {
-      this.$set(this.form, `field`, value);
+      this.$set(this.form, `field`, value.name);
       this.fieldpic = false;
     },
-    // 重组数组
-    searchcooperation() {
-      let cooperation = this.cooperationList.map(item => item.name);
-      this.$set(this, `cooperation`, cooperation);
-    },
     // 合作方式
     cooperationSubmit(value) {
-      this.$set(this.form, `cooperation`, value);
+      this.$set(this.form, `cooperation`, value.name);
       this.cooperationpic = false;
     },
-    // 重组数组
-    searchachievestatus() {
-      let achievestatus = this.achievestatusList.map(item => item.name);
-      this.$set(this, `achievestatus`, achievestatus);
-    },
-    // 成果状态
-    achievestatusOnsubmit(value) {
-      this.$set(this.form, `achievestatus`, value);
-      this.achievestatuspic = false;
-    },
     // 图片上传
     uploadSuccess({ type, data }) {
       let arr = _.get(this.form, type);
@@ -259,63 +102,9 @@ export default {
     uploadDelete(index) {
       this.form.image.splice(index, 1);
     },
-    // 添加专利信息
-    addPatent() {
-      this.show = true;
-    },
-    // 提交专利信息
-    patentSubmit() {
-      this.patentList.push(this.patentform);
-      this.show = false;
-    },
-    // 查看专利信息
-    viewPatent() {
-      this.patentshow = true;
-    },
-    // 删除专利信息
-    delPatent(index, val) {
-      this.patentList.splice(index, 1);
-      this.$notify({
-        message: '删除成功',
-        type: 'success',
-      });
-      this.patentshow = false;
-    },
     onSubmit() {
-      this.form.patent = this.patentList;
       this.$emit('onSubmit', { data: this.form });
     },
-    // 查询专利信息
-    searchpatent() {
-      let data = this.form;
-      if (data.patent) {
-        console.log(data.patent);
-        this.$set(this, `patentList`, data.patent);
-      }
-    },
-  },
-  watch: {
-    fieldList: {
-      immediate: true,
-      deep: true,
-      handler(val) {
-        this.seachfield();
-      },
-    },
-    cooperationList: {
-      immediate: true,
-      deep: true,
-      handler(val) {
-        this.searchcooperation();
-      },
-    },
-    achievestatusList: {
-      immediate: true,
-      deep: true,
-      handler(val) {
-        this.searchachievestatus();
-      },
-    },
   },
   computed: {
     ...mapState(['user']),