|
@@ -7,166 +7,85 @@
|
|
|
<div id="slider" class="mui-slider mui-fullscreen ">
|
|
|
<div id="sliderSegmentedControl" class="mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
|
|
|
<div class="mui-scroll">
|
|
|
- <a class="mui-control-item mui-active" href="#item1mobile">
|
|
|
- <span class="fyy-badge">待处理<span class="mui-badge">5</span></span>
|
|
|
+ <a @click="reloadList(0)" :class="'mui-control-item '+(listForm.status==0?'mui-active':'')">
|
|
|
+ <span class="fyy-badge">待处理<span class="mui-badge" v-if="firstRecordsTotal" v-text="firstRecordsTotal"></span></span>
|
|
|
</a>
|
|
|
- <a class="mui-control-item" href="#item2mobile">
|
|
|
+ <a @click="reloadList(1)" :class="'mui-control-item '+(listForm.status==1?'mui-active':'')">
|
|
|
已处理
|
|
|
</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="mui-slider-group vongi-wybx">
|
|
|
- <div id="item1mobile" class="mui-slider-item mui-control-content">
|
|
|
+ <div v-show="listForm.status==0" class="mui-slider-item mui-control-content">
|
|
|
<div class="mui-scroll-wrapper">
|
|
|
<div class="mui-scroll">
|
|
|
<ul class="mui-table-view">
|
|
|
- <li class="mui-table-view-cell vongi-wordcard vongi-meform-pho">
|
|
|
- <a href="">
|
|
|
+ <li v-for="(item,index) in recordList" :key="item.id" class="mui-table-view-cell vongi-wordcard vongi-meform-pho">
|
|
|
+ <router-link :to="{name:'MasterPropertyComplaintInfo',query:{id:item.id}}">
|
|
|
<div class="mui-media-body flew-sp">
|
|
|
- <div class="mui-col-xs-9">空调外挂机隔间下水堵住了,导致墙面漏…</div>
|
|
|
- <div class="mui-col-xs-3 color4fc5f7">处理中</div>
|
|
|
+ <div class="mui-col-xs-9" v-text="item.content"></div>
|
|
|
+ <div class="mui-col-xs-3 color4fc5f7" v-text="item.statusN"></div>
|
|
|
</div>
|
|
|
- <div class="fyy-upphoto flew">
|
|
|
- <div class="mui-col-xs-3">
|
|
|
- <img src="~$project/assets/img/zhaop.jpg" />
|
|
|
+ <div v-if="item.img" class="fyy-upphoto flew">
|
|
|
+ <div v-for="(iten,inden) in item.img.split(',')" class="mui-col-xs-3">
|
|
|
+ <img :src="iten" />
|
|
|
</div>
|
|
|
- <div class="mui-col-xs-3">
|
|
|
- <img src="~$project/assets/img/zhaop.jpg" />
|
|
|
- </div>
|
|
|
- <div class="mui-col-xs-3">
|
|
|
- <img src="~$project/assets/img/zhaop.jpg" />
|
|
|
- </div>
|
|
|
- <span class="mui-badge">5</span>
|
|
|
- </div>
|
|
|
- <p class="flew-items flew-sp">
|
|
|
- 管理投诉
|
|
|
- <span class='mui-ellipsis'>10-21 19:00</span>
|
|
|
- </p>
|
|
|
- </a>
|
|
|
- <div class="vongi-btn-x">
|
|
|
- <button type="button" class="mui-btn mui-btn-primary">撤销</button>
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- <li class="mui-table-view-cell vongi-wordcard vongi-meform-pho">
|
|
|
- <a href="">
|
|
|
- <div class="mui-media-body flew-sp">
|
|
|
- <div class="mui-col-xs-9">空调外挂机隔间下水堵住了,导致墙面漏…</div>
|
|
|
- <div class="mui-col-xs-3 color4fc5f7">处理中</div>
|
|
|
- </div>
|
|
|
- <div class="fyy-upphoto flew">
|
|
|
- <div class="mui-col-xs-3">
|
|
|
- <img src="~$project/assets/img/zhaop.jpg" />
|
|
|
- </div>
|
|
|
- <div class="mui-col-xs-3">
|
|
|
- <img src="~$project/assets/img/zhaop.jpg" />
|
|
|
- </div>
|
|
|
- <div class="mui-col-xs-3">
|
|
|
- <img src="~$project/assets/img/zhaop.jpg" />
|
|
|
- </div>
|
|
|
- <span class="mui-badge">5</span>
|
|
|
+ <span class="mui-badge" v-text="item.img.split(',').length"></span>
|
|
|
</div>
|
|
|
<p class="flew-items flew-sp">
|
|
|
- 管理投诉
|
|
|
- <span class='mui-ellipsis'>10-21 19:00</span>
|
|
|
+ {{item.categoryN}}
|
|
|
+ <span class='mui-ellipsis' v-text="item.createTime"></span>
|
|
|
</p>
|
|
|
- </a>
|
|
|
+ </router-link>
|
|
|
<div class="vongi-btn-x">
|
|
|
- <button type="button" class="mui-btn mui-btn-primary">撤销</button>
|
|
|
+ <button type="button" class="mui-btn mui-btn-primary" @click="del(item)">撤销</button>
|
|
|
+ <!-- <button type="button" class="mui-btn mui-btn-primary mui-btn-outlined">催办</button> -->
|
|
|
</div>
|
|
|
</li>
|
|
|
</ul>
|
|
|
<!--空状态-->
|
|
|
- <!--<div class="vongi-kong">
|
|
|
+ <div v-if="recordList.length==0" class="vongi-kong">
|
|
|
<img src="~$project/assets/img/no.png" />
|
|
|
<p>暂无报修记录</p>
|
|
|
- </div>-->
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div id="item2mobile" class="mui-slider-item mui-control-content">
|
|
|
+ <div v-show="listForm.status==1" class="mui-slider-item mui-control-content">
|
|
|
<div class="mui-scroll-wrapper">
|
|
|
<div class="mui-scroll">
|
|
|
<ul class="mui-table-view">
|
|
|
- <li class="mui-table-view-cell vongi-wordcard vongi-meform-pho">
|
|
|
- <a href="">
|
|
|
+ <li v-for="(item,index) in recordList" :key="item.id" class="mui-table-view-cell vongi-wordcard vongi-meform-pho">
|
|
|
+ <router-link :to="{name:'MasterPropertyComplaintInfo',query:{id:item.id}}">
|
|
|
<div class="mui-media-body flew-sp">
|
|
|
- <div class="mui-col-xs-9">空调外挂机隔间下水堵住了,导致墙面漏…</div>
|
|
|
- <div class="mui-col-xs-3 color55f868">已解决</div>
|
|
|
+ <div class="mui-col-xs-9" v-text="item.content"></div>
|
|
|
+ <div class="mui-col-xs-3 color55f868" v-text="item.statusN"></div>
|
|
|
</div>
|
|
|
- <div class="fyy-upphoto flew">
|
|
|
- <div class="mui-col-xs-3">
|
|
|
- <img src="~$project/assets/img/zhaop.jpg" />
|
|
|
+ <div v-if="item.img" class="fyy-upphoto flew">
|
|
|
+ <div v-for="(iten,inden) in item.img.split(',')" class="mui-col-xs-3">
|
|
|
+ <img :src="iten" />
|
|
|
</div>
|
|
|
- <div class="mui-col-xs-3">
|
|
|
- <img src="~$project/assets/img/zhaop.jpg" />
|
|
|
- </div>
|
|
|
- <div class="mui-col-xs-3">
|
|
|
- <img src="~$project/assets/img/zhaop.jpg" />
|
|
|
- </div>
|
|
|
- <span class="mui-badge">5</span>
|
|
|
+ <span class="mui-badge" v-text="item.img.split(',').length"></span>
|
|
|
</div>
|
|
|
<p class="flew-items flew-sp">
|
|
|
- 管理投诉
|
|
|
- <span class='mui-ellipsis'>10-21 19:00</span>
|
|
|
+ {{item.categoryN}}
|
|
|
+ <span class='mui-ellipsis' v-text="item.createTime"></span>
|
|
|
</p>
|
|
|
- </a>
|
|
|
+ </router-link>
|
|
|
<div class="vongi-btn-x">
|
|
|
- <button type="button" class="mui-btn mui-btn-primary mui-btn-outlined">查看回复</button>
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- <li class="mui-table-view-cell vongi-wordcard vongi-meform-pho">
|
|
|
- <a href="">
|
|
|
- <div class="mui-media-body flew-sp">
|
|
|
- <div class="mui-col-xs-9">空调外挂机隔间下水堵住了,导致墙面漏…</div>
|
|
|
- <div class="mui-col-xs-3 color999">已关闭</div>
|
|
|
- </div>
|
|
|
- <div class="fyy-upphoto flew">
|
|
|
- <div class="mui-col-xs-3">
|
|
|
- <img src="~$project/assets/img/zhaop.jpg" />
|
|
|
- </div>
|
|
|
- <div class="mui-col-xs-3">
|
|
|
- <img src="~$project/assets/img/zhaop.jpg" />
|
|
|
- </div>
|
|
|
- <div class="mui-col-xs-3">
|
|
|
- <img src="~$project/assets/img/zhaop.jpg" />
|
|
|
- </div>
|
|
|
- <span class="mui-badge">5</span>
|
|
|
- </div>
|
|
|
- <p class="flew-items flew-sp">
|
|
|
- 收费投诉
|
|
|
- <span class='mui-ellipsis'>10-21 19:00</span>
|
|
|
- </p>
|
|
|
- </a>
|
|
|
- <div class="vongi-btn-x">
|
|
|
- <button type="button" class="mui-btn mui-btn-primary mui-btn-outlined">查看回复</button>
|
|
|
+ <button type="button" @click="goToInfo(item)" class="mui-btn mui-btn-primary mui-btn-outlined">查看回复</button>
|
|
|
</div>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
- <!-- <div class="mui-content">
|
|
|
- <div class="mui-content-padded">
|
|
|
- <ul class="mui-table-view openfyy-list">
|
|
|
- <li v-for="(item,index) in recordList" class="mui-table-view-cell mui-media">
|
|
|
- <router-link :to="{name:'MasterPropertyComplaintInfo',query:{id:item.id}}" class="mui-navigate-right ">
|
|
|
- <div class="mui-media-body">
|
|
|
- {{item.createTime}}
|
|
|
- <p class='mui-ellipsis' v-text="item.statusN"></p>
|
|
|
- </div>
|
|
|
- </router-link>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- </div> -->
|
|
|
|
|
|
- <div class="fyy-footer">
|
|
|
- <div class="bindfyy-btn"><button type="submit" class="mui-btn mui-btn-primary " @click="goToForm()">填写投诉建议</button></div>
|
|
|
+ <div class="fyy-footer" style="z-index:99">
|
|
|
+ <div class="bindfyy-btn"><button type="submit" class="mui-btn mui-btn-primary " @click="goToForm()">填写物业报修</button></div>
|
|
|
</div>
|
|
|
|
|
|
<loading :visible="isLoading"></loading>
|
|
@@ -202,9 +121,11 @@
|
|
|
pageIndex: 1,
|
|
|
pageSize: 20,
|
|
|
totalPage: 1,
|
|
|
- type: 1
|
|
|
+ type: 1,
|
|
|
+ status: 0
|
|
|
},
|
|
|
recordList: [],
|
|
|
+ firstRecordsTotal: 0,
|
|
|
}
|
|
|
},
|
|
|
created() {},
|
|
@@ -224,6 +145,10 @@
|
|
|
...response.data
|
|
|
];
|
|
|
}
|
|
|
+
|
|
|
+ if (this.listForm.status == 0) {
|
|
|
+ this.firstRecordsTotal = response.recordsTotal;
|
|
|
+ }
|
|
|
}
|
|
|
this.listForm.pageIndex++;
|
|
|
this.isLoading = false;
|
|
@@ -243,12 +168,51 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ //切换
|
|
|
+ reloadList(status) {
|
|
|
+ this.listForm.status = status;
|
|
|
+ this.listForm.pageIndex = 1;
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
//填写
|
|
|
goToForm() {
|
|
|
this.$router.push({
|
|
|
name: 'MasterPropertyComplaintForm'
|
|
|
})
|
|
|
},
|
|
|
+ //详情
|
|
|
+ goToInfo(item) {
|
|
|
+ this.$router.push({
|
|
|
+ name: 'MasterPropertyComplaintInfo',
|
|
|
+ query: {
|
|
|
+ id: item.id
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //撤销
|
|
|
+ del(item) {
|
|
|
+ var _this = this;
|
|
|
+ var btnArray = ['否', '是'];
|
|
|
+ mui.confirm('您确认删除吗?', ' ', btnArray, function(e) {
|
|
|
+ if (e.index == 1) {
|
|
|
+ _this.delAction(item)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ delAction(item) {
|
|
|
+ this.isLoading = true;
|
|
|
+ API_Property.delRepairAndComplaint(item.id).then(response => {
|
|
|
+ this.isLoading = false;
|
|
|
+ mui.toast('撤销成功');
|
|
|
+
|
|
|
+ this.listForm.pageIndex = 1;
|
|
|
+ this.getList();
|
|
|
+
|
|
|
+ }).catch(error => {
|
|
|
+ this.isLoading = false;
|
|
|
+ mui.toast(error);
|
|
|
+ })
|
|
|
+ },
|
|
|
asynCallBack() {
|
|
|
|
|
|
},
|