achiDetail.vue 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. <template>
  2. <div id="achiDetail">
  3. <el-row>
  4. <el-col :span="24" class="main">
  5. <el-col :span="24" class="top">
  6. <el-col :span="7" class="left">
  7. <el-carousel trigger="click" height="345px" :autoplay="false">
  8. <el-carousel-item v-for="(item, index) in detailInfo.image" :key="index">
  9. <el-image :src="item.url" style="width:99%;height:345px;border: 1px solid #ccc;"></el-image>
  10. </el-carousel-item>
  11. </el-carousel>
  12. </el-col>
  13. <el-col :span="17" class="right">
  14. <el-col :span="24" class="name textOver">
  15. {{ detailInfo.name || '暂无' }}
  16. </el-col>
  17. <el-col :span="24">
  18. <el-col :span="4" class="otherInfo textOver">
  19. 成果单位
  20. </el-col>
  21. <el-col :span="20" class="otherInfo textOver">
  22. {{ detailInfo.company }}
  23. <el-link v-if="detailInfo.companyweb != null || ''" :href="detailInfo.companyweb" :underline="false" target="_blank"
  24. >({{ detailInfo.companyweb }})</el-link
  25. >
  26. </el-col>
  27. </el-col>
  28. <el-col :span="12">
  29. <el-col :span="8" class="otherInfo textOver">
  30. 所属领域
  31. </el-col>
  32. <el-col :span="16" class="otherInfo textOver">
  33. {{ detailInfo.field || '暂无' }}
  34. </el-col>
  35. </el-col>
  36. <el-col :span="12">
  37. <el-col :span="8" class="otherInfo textOver">
  38. 合作方式
  39. </el-col>
  40. <el-col :span="16" class="otherInfo textOver">
  41. {{ detailInfo.cooperation || '暂无' }}
  42. </el-col>
  43. </el-col>
  44. <el-col :span="12">
  45. <el-col :span="8" class="otherInfo textOver">
  46. 成果状态
  47. </el-col>
  48. <el-col :span="16" class="otherInfo textOver">
  49. {{ detailInfo.achievestatus || '暂无' }}
  50. </el-col>
  51. </el-col>
  52. <el-col :span="12">
  53. <el-col :span="8" class="otherInfo textOver">
  54. 成果来源
  55. </el-col>
  56. <el-col :span="16" class="otherInfo textOver">
  57. {{ detailInfo.achievesource || '暂无' }}
  58. </el-col>
  59. </el-col>
  60. <el-col :span="12">
  61. <el-col :span="8" class="otherInfo textOver">
  62. 成果权属
  63. </el-col>
  64. <el-col :span="16" class="otherInfo textOver">
  65. {{ detailInfo.achieveown || '暂无' }}
  66. </el-col>
  67. </el-col>
  68. <el-col :span="12">
  69. <el-col :span="8" class="otherInfo textOver">
  70. 意向价格
  71. </el-col>
  72. <el-col :span="16" class="otherInfo textOver">
  73. {{ detailInfo.intentionprice || '暂无' }}
  74. </el-col>
  75. </el-col>
  76. <el-col :span="12">
  77. <el-col :span="8" class="otherInfo textOver">
  78. 联系人
  79. </el-col>
  80. <el-col :span="16" class="otherInfo textOver">
  81. {{ detailInfo.contacts || '暂无' }}
  82. </el-col>
  83. </el-col>
  84. <el-col :span="12">
  85. <el-col :span="8" class="otherInfo textOver">
  86. 电子邮箱
  87. </el-col>
  88. <el-col :span="16" class="otherInfo textOver">
  89. {{ detailInfo.email || '暂无' }}
  90. </el-col>
  91. </el-col>
  92. <el-col :span="24">
  93. <el-col :span="4" class="otherInfo textOver">
  94. 项目路演
  95. </el-col>
  96. <el-col :span="20" class="otherInfo textOver">
  97. <!-- {{ detailInfo.roadshow || '暂无' }} -->
  98. <el-link :href="detailInfo.roadshow" :underline="false">附件下载</el-link>
  99. </el-col>
  100. </el-col>
  101. <el-col :span="24">
  102. <el-col :span="4" class="otherInfo textOver">
  103. 专利信息
  104. </el-col>
  105. <el-col :span="20" class="otherInfo textOver" style="padding: 6px">
  106. <el-button type="primary" size="mini" @click="dialogTableVisible1 = true">专利信息</el-button>
  107. </el-col>
  108. </el-col>
  109. <!-- <el-col :span="12">
  110. <el-col :span="8" class="otherInfo textOver">
  111. 专利状态
  112. </el-col>
  113. <el-col :span="16" class="otherInfo textOver">
  114. {{ detailInfo.patentstatus || '暂无' }}
  115. </el-col>
  116. </el-col> -->
  117. </el-col>
  118. </el-col>
  119. <el-col :span="24" class="down">
  120. <el-col :span="24" class="downInfo">
  121. <el-col :span="4" class="tit">
  122. <h2>成果简介</h2>
  123. </el-col>
  124. <el-col :span="20" class="info">
  125. {{ detailInfo.achievebrief || '暂无' }}
  126. </el-col>
  127. </el-col>
  128. <el-col :span="24" class="downInfo">
  129. <el-col :span="4" class="tit">
  130. <h2>技术特点</h2>
  131. </el-col>
  132. <el-col :span="20" class="info">
  133. {{ detailInfo.features || '暂无' }}
  134. </el-col>
  135. </el-col>
  136. <el-col :span="24" class="downInfo">
  137. <el-col :span="4" class="tit">
  138. <h2>技术团队</h2>
  139. </el-col>
  140. <el-col :span="20" class="info">
  141. {{ detailInfo.team || '暂无' }}
  142. </el-col>
  143. </el-col>
  144. <el-col :span="24" class="downInfo">
  145. <el-col :span="4" class="tit">
  146. <h2>商业预期</h2>
  147. </el-col>
  148. <el-col :span="20" class="info">
  149. {{ detailInfo.expectations || '暂无' }}
  150. </el-col>
  151. </el-col>
  152. <el-col :span="24" class="downInfo">
  153. <el-col :span="4" class="tit">
  154. <h2>合作要求</h2>
  155. </el-col>
  156. <el-col :span="20" class="info">
  157. {{ detailInfo.condition || '暂无' }}
  158. </el-col>
  159. </el-col>
  160. </el-col>
  161. <el-col :span="24" class="anniu" v-if="displayBtn">
  162. <el-button type="primary" size="mini" v-if="this.user.uid != detailInfo.userid" @click="btnPhone()">交流洽谈</el-button>
  163. <el-button type="success" size="mini" v-if="this.user.uid != detailInfo.userid" @click="onSubmit()">供求对接</el-button>
  164. </el-col>
  165. </el-col>
  166. </el-row>
  167. <el-dialog title="对接" :visible.sync="dialogTableVisible">
  168. <chat :room="room"></chat>
  169. </el-dialog>
  170. <el-dialog title="专利信息" :visible.sync="dialogTableVisible1">
  171. <el-table :data="gridData" style="width: 100%" border>
  172. <el-table-column property="patentinfo" label="专利信息" align="center">></el-table-column>
  173. <el-table-column property=" patentstatus" label="专利状态" align="center">></el-table-column>
  174. </el-table>
  175. </el-dialog>
  176. </div>
  177. </template>
  178. <script>
  179. import _ from 'lodash';
  180. import { mapState, createNamespacedHelpers } from 'vuex';
  181. import chat from '@/layout/market/parts/chat.vue';
  182. const { mapActions: personalRoom } = createNamespacedHelpers('personalroom');
  183. const { mapActions: transaction } = createNamespacedHelpers('transaction');
  184. export default {
  185. name: 'achiDetail',
  186. props: {
  187. detailInfo: { type: Object },
  188. displayBtn: { type: Boolean },
  189. },
  190. components: { chat },
  191. data: function() {
  192. return { dialogTableVisible: false, room: {}, dialogTableVisible1: false, gridData: [] };
  193. },
  194. created() {},
  195. methods: {
  196. ...personalRoom(['create', 'countDelete']),
  197. ...transaction({ buyProduct: 'create' }),
  198. // 对接
  199. async btnPhone() {
  200. if (!this.room.id) {
  201. //TODO 请求房间号
  202. let obj = {};
  203. if (!this.user.uid) {
  204. // this.$message.error('游客身份无法与卖家对话,请先注册');
  205. this.$message({
  206. dangerouslyUseHTMLString: true,
  207. message: '<strong><a href="http://free.liaoningdoupo.com/platlive/webLogin" style="color:red;">游客身份无法与卖家对话,请先注册</a></strong>',
  208. type: 'error',
  209. });
  210. return;
  211. } else {
  212. obj.buyer_id = this.user.uid;
  213. obj.buyer_name = this.user.name;
  214. }
  215. if (!this.detailInfo.userid) {
  216. this.$message.error('缺少卖家信息,请联系卖家或管理员');
  217. return;
  218. } else {
  219. obj.seller_id = this.detailInfo.userid;
  220. obj.seller_name = this.detailInfo.contacts;
  221. }
  222. let res = await this.create(obj);
  223. if (this.$checkRes(res)) {
  224. this.$set(this, `room`, res.data);
  225. }
  226. }
  227. this.dialogTableVisible = true;
  228. },
  229. // 洽谈
  230. onSubmit() {
  231. this.$emit('onSubmit', { data: this.detailInfo });
  232. },
  233. },
  234. computed: {
  235. ...mapState(['user']),
  236. pageTitle() {
  237. return `${this.$route.meta.title}`;
  238. },
  239. },
  240. metaInfo() {
  241. return { title: this.$route.meta.title };
  242. },
  243. };
  244. </script>
  245. <style lang="less" scoped>
  246. .main {
  247. margin: 10px 0 0 0;
  248. .top {
  249. height: 360px;
  250. overflow: hidden;
  251. .right {
  252. padding: 0 0 0 10px;
  253. .name {
  254. font-size: 18px;
  255. font-weight: bold;
  256. padding: 10px;
  257. border: 1px solid #ccc;
  258. }
  259. .otherInfo {
  260. padding: 10px;
  261. font-size: 16px;
  262. border: 1px solid #ccc;
  263. }
  264. }
  265. }
  266. .down {
  267. margin: 0 0 15px 0;
  268. .downInfo {
  269. border: 1px solid #ccc;
  270. .tit {
  271. height: 150px;
  272. line-height: 150px;
  273. text-align: center;
  274. border-right: 1px solid #ccc;
  275. }
  276. .info {
  277. font-size: 16px;
  278. padding: 10px;
  279. min-height: 150px;
  280. }
  281. }
  282. }
  283. .anniu {
  284. text-align: center;
  285. /deep/.el-button {
  286. margin: 0 10px;
  287. }
  288. }
  289. }
  290. </style>