|
@@ -8,7 +8,8 @@
|
|
|
</view>
|
|
|
<view v-else :class="'sli-top t' + item.deal_type">[{{tradeStateObj[item.trade_state]}}][{{ thtObj[item.house_type] }}] {{ item.deal_item }}{{ item.house_no }}
|
|
|
<view v-if="item.create_by === userInfo2.id" class="r2" @click="pageTo('/pages/trade/create', { info: item })">编辑</view>
|
|
|
- <view class="r" @click="copyTextHandle(item)">喜报</view>
|
|
|
+ <view v-if="item.deal_type == 3" @click="copyTextHandle(item, index)" class="r">{{ item.user_dept_total ? `${item.user_dept_total}/${item.month_dept_total}` : '显示统计' }}</view>
|
|
|
+ <view v-else class="r" @click="copyTextHandle(item, indx)">喜报</view>
|
|
|
</view>
|
|
|
<view class="sli-body" @click="pageTo('/pages/trade/record?id=' + item.id)">
|
|
|
<view class="sli-p2">总价:<view class="n">{{ item.price }}元</view> => {{(Number(item.price)/item.area).toFixed(2)}}元|<view class="n">{{ item.area }}㎡</view></view>
|
|
@@ -150,11 +151,17 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- copyTextHandle (item) {
|
|
|
+ copyTextHandle (item, index) {
|
|
|
uni.api.cust.apitradesubtotal({
|
|
|
user_id: item.create_by,
|
|
|
deal_at: item.deal_at,
|
|
|
}).then(res =>{
|
|
|
+ if (item.deal_type == 3 ) {
|
|
|
+ let customerList = this.customerList
|
|
|
+ customerList[index] = {...customerList[index], ...res}
|
|
|
+ this.customerList = [...customerList]
|
|
|
+ return
|
|
|
+ }
|
|
|
let curContent = `【洪楼News】${item.deal_at}喜报
|
|
|
恭喜${item.deal_clerk}小伙伴今日成交${this.thtObj[item.house_type]}第1套
|
|
|
本月(${res.month}月)喜报总计:${res.month_total}套,本月个人总计:${res.user_total}套
|