|
@@ -15,13 +15,13 @@
|
|
|
<el-col :span="22" class="infoMess">
|
|
|
<el-tabs v-model="activeName" type="card" @tab-click="handleClick">
|
|
|
<el-tab-pane label="正在洽谈" name="first">
|
|
|
- <zzqt :zzqtList="zzqtList" :total="zzqtTotal"></zzqt>
|
|
|
+ <zzqt :zzqtList="zzqtList" :total="zzqtTotal" @onclick="onclick"></zzqt>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="达成意向" name="second">
|
|
|
- <dcyx :dcyxList="dcyxList" :total="dxyxTotal"></dcyx>
|
|
|
+ <dcyx :dcyxList="dcyxList" :total="dxyxTotal" @onclick="onclick"></dcyx>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="交易完成" name="third">
|
|
|
- <jywc :jywcList="jywcList" :total="jywcTotal"></jywc>
|
|
|
+ <jywc :jywcList="jywcList" :total="jywcTotal" @onclick="onclick"></jywc>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</el-col>
|
|
@@ -43,6 +43,7 @@ import dcyx from './parts/dcyx.vue';
|
|
|
import jywc from './parts/jywc.vue';
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
const { mapActions: transaction } = createNamespacedHelpers('transaction');
|
|
|
+const { mapActions: product } = createNamespacedHelpers('enterpriseproject');
|
|
|
export default {
|
|
|
name: 'dealDetail',
|
|
|
props: {},
|
|
@@ -67,6 +68,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
...transaction(['productquery']),
|
|
|
+ ...product({ list: 'newquery', newfetch: 'newfetch' }),
|
|
|
async search() {
|
|
|
let res = await this.productquery({ product_id: this.id });
|
|
|
if (this.$checkRes(res)) {
|
|
@@ -81,6 +83,16 @@ export default {
|
|
|
this.$set(this, `jywcTotal`, jywc.length);
|
|
|
}
|
|
|
},
|
|
|
+ async onclick(product_id) {
|
|
|
+ const res = await this.newfetch(product_id);
|
|
|
+ if (res.data.totaltype == '0') {
|
|
|
+ this.$router.push({ path: '/market/marketlists', query: { totaltype: 0, id: product_id, column_name: '技术供求', display: 2 } });
|
|
|
+ } else if (res.data.totaltype == '1') {
|
|
|
+ this.$router.push({ path: '/market/marketlists', query: { totaltype: 1, id: product_id, column_name: '科技产品', display: 2 } });
|
|
|
+ } else if (res.data.totaltype == '2') {
|
|
|
+ this.$router.push({ path: '/market/marketlists', query: { totaltype: 2, id: product_id, column_name: '科技产品', display: 2 } });
|
|
|
+ }
|
|
|
+ },
|
|
|
handleClick(tab, event) {
|
|
|
console.log(tab, event);
|
|
|
},
|