|
@@ -62,6 +62,7 @@
|
|
<script>
|
|
<script>
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
const { mapActions: transaction } = createNamespacedHelpers('transaction');
|
|
const { mapActions: transaction } = createNamespacedHelpers('transaction');
|
|
|
|
+const { mapActions: product } = createNamespacedHelpers('enterpriseproject');
|
|
export default {
|
|
export default {
|
|
name: 'dealDetail',
|
|
name: 'dealDetail',
|
|
props: {},
|
|
props: {},
|
|
@@ -81,6 +82,7 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...transaction(['fetch']),
|
|
...transaction(['fetch']),
|
|
|
|
+ ...product({ list: 'newquery', newfetch: 'newfetch' }),
|
|
async search() {
|
|
async search() {
|
|
let res = await this.fetch(this.id);
|
|
let res = await this.fetch(this.id);
|
|
res.data.status = parseInt(res.data.status);
|
|
res.data.status = parseInt(res.data.status);
|
|
@@ -88,8 +90,18 @@ export default {
|
|
this.$set(this, `dealDetails`, res.data);
|
|
this.$set(this, `dealDetails`, res.data);
|
|
},
|
|
},
|
|
|
|
|
|
- onclick() {
|
|
|
|
- console.log(this.product_id);
|
|
|
|
|
|
+ async onclick() {
|
|
|
|
+ console.log(this.dealDetails.product_id);
|
|
|
|
+ const res = await this.newfetch(this.dealDetails.product_id);
|
|
|
|
+ let id = this.dealDetails.product_id;
|
|
|
|
+ console.log(res.data.totaltype);
|
|
|
|
+ if (res.data.totaltype == '0') {
|
|
|
|
+ this.$router.push({ path: '/market/marketlists', query: { totaltype: 0, id: id, column_name: '技术供求', display: 2 } });
|
|
|
|
+ } else if (res.data.totaltype == '1') {
|
|
|
|
+ this.$router.push({ path: '/market/marketlists', query: { totaltype: 1, id: id, column_name: '科技产品', display: 2 } });
|
|
|
|
+ } else if (res.data.totaltype == '2') {
|
|
|
|
+ this.$router.push({ path: '/market/marketlists', query: { totaltype: 2, id: id, display: 2, column_name: '科技产品' } });
|
|
|
|
+ }
|
|
},
|
|
},
|
|
},
|
|
},
|
|
filters: {
|
|
filters: {
|