achiDetail.vue 9.3 KB

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