|
@@ -42,51 +42,53 @@
|
|
|
<el-col :span="24" class="twodown">
|
|
|
<el-col :span="5" class="txt">
|
|
|
<span>已经到场</span>
|
|
|
- <span>{{ statNum.tszx }}</span
|
|
|
+ <span>{{ statNum.tszx || 0 }}</span
|
|
|
>人
|
|
|
</el-col>
|
|
|
<el-col :span="5" class="txt">
|
|
|
<span>实现对接</span>
|
|
|
- <span>{{ statNum.jywc }}</span
|
|
|
+ <span>{{ statNum.jywc || 0 }}</span
|
|
|
>次
|
|
|
</el-col>
|
|
|
<el-col :span="5" class="txt">
|
|
|
<span>产生意向</span>
|
|
|
- <span>{{ statNum.qthz }}</span
|
|
|
+ <span>{{ statNum.qthz || 0 }}</span
|
|
|
>次
|
|
|
</el-col>
|
|
|
<el-col :span="5" class="txt">
|
|
|
<span>项目数</span>
|
|
|
- <span>{{ statNum.czxm }}</span
|
|
|
+ <span>{{ statNum.czxm || 0 }}</span
|
|
|
>项
|
|
|
</el-col>
|
|
|
<el-col :span="5" class="txt">
|
|
|
<span>贺信</span>
|
|
|
- <span>0</span>封
|
|
|
+ <span>{{ statNum.zhhx || 0 }}</span
|
|
|
+ >封
|
|
|
</el-col>
|
|
|
<el-col :span="5" class="txt">
|
|
|
<span>同时在线</span>
|
|
|
- <span>{{ statNum.tszx }}</span
|
|
|
+ <span>{{ statNum.tszx || 0 }}</span
|
|
|
>人
|
|
|
</el-col>
|
|
|
<el-col :span="5" class="txt">
|
|
|
<span>正在对接</span>
|
|
|
- <span>{{ statNum.qthz }}</span
|
|
|
+ <span>{{ statNum.qthz || 0 }}</span
|
|
|
>人
|
|
|
</el-col>
|
|
|
<el-col :span="5" class="txt">
|
|
|
<span>达成意向</span>
|
|
|
- <span>{{ statNum.dcyx }}</span
|
|
|
+ <span>{{ statNum.dcyx || 0 }}</span
|
|
|
>次
|
|
|
</el-col>
|
|
|
<el-col :span="5" class="txt">
|
|
|
<span>需求数</span>
|
|
|
- <span>{{ statNum.czxq }}</span
|
|
|
+ <span>{{ statNum.czxq || 0 }}</span
|
|
|
>项
|
|
|
</el-col>
|
|
|
<el-col :span="5" class="txt">
|
|
|
<span>鲜花</span>
|
|
|
- <span>0</span>束
|
|
|
+ <span>{{ statNum.zhxh || 0 }}</span
|
|
|
+ >束
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</div>
|
|
@@ -265,6 +267,7 @@ const { mapActions: dock } = createNamespacedHelpers('dock');
|
|
|
const { mapActions: expertsuser } = createNamespacedHelpers('expertsuser');
|
|
|
const { mapActions: transaction } = createNamespacedHelpers('transaction');
|
|
|
const { mapActions: market } = createNamespacedHelpers('market');
|
|
|
+const { mapActions: flower } = createNamespacedHelpers('flower');
|
|
|
var moment = require('moment');
|
|
|
export default {
|
|
|
metaInfo() {
|
|
@@ -333,15 +336,7 @@ export default {
|
|
|
zdcom: require('@a/zh_17.png'),
|
|
|
jscom: require('@a/zh_18.png'),
|
|
|
// 项目数
|
|
|
- statNum: {
|
|
|
- tszx: 0,
|
|
|
- tyjb: 0,
|
|
|
- qthz: 0,
|
|
|
- dcyx: 0,
|
|
|
- jywc: 0,
|
|
|
- czxm: 0,
|
|
|
- czxq: 0,
|
|
|
- },
|
|
|
+ statNum: {},
|
|
|
// 倒计时
|
|
|
djs: '',
|
|
|
};
|
|
@@ -354,6 +349,7 @@ export default {
|
|
|
...expertsuser({ expertQuery: 'query' }),
|
|
|
...transaction({ tquery: 'query' }),
|
|
|
...market({ marketFetch: 'fetch', operaFetch: 'operaFetch', sendMsg: 'operationCreate', operaQuery: 'operaQuery' }),
|
|
|
+ ...flower({ flowerquery: 'query' }),
|
|
|
async searchInfo() {
|
|
|
// 查询展会详情
|
|
|
if (this.id) {
|
|
@@ -436,6 +432,16 @@ export default {
|
|
|
if (tszx) {
|
|
|
this.$set(this.statNum, `tszx`, tszx.total);
|
|
|
}
|
|
|
+ // 查询贺信
|
|
|
+ let zhhx = await this.flowerquery({ type: 'flower', dock_id: this.id });
|
|
|
+ if (this.$checkRes(zhhx)) {
|
|
|
+ this.$set(this.statNum, `zhhx`, zhhx.total);
|
|
|
+ }
|
|
|
+ // 花
|
|
|
+ let zhxh = await this.flowerquery({ type: 'hand', dock_id: this.id });
|
|
|
+ if (this.$checkRes(zhxh)) {
|
|
|
+ this.$set(this.statNum, `zhxh`, zhxh.total);
|
|
|
+ }
|
|
|
},
|
|
|
// 倒计时
|
|
|
setTime(end) {
|