审核投诉和 我的投诉单都显示 详情功能

This commit is contained in:
java110 2020-04-25 23:16:54 +08:00
parent b6b8981ce9
commit 6acded56d6
6 changed files with 27 additions and 9 deletions

View File

@ -51,21 +51,21 @@
placeholder="必填,请填写投诉电话" class="form-control"> placeholder="必填,请填写投诉电话" class="form-control">
</div> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row" v-if="complaintDetailInfo.showCurrentUser">
<label class="col-sm-2 col-form-label">处理人</label> <label class="col-sm-2 col-form-label">处理人</label>
<div class="col-sm-10"> <div class="col-sm-10">
<input v-model="complaintDetailInfo.currentUserName" type="text" readonly <input v-model="complaintDetailInfo.currentUserName" type="text" readonly
placeholder="必填,请填写投诉电话" class="form-control"> placeholder="必填,请填写投诉电话" class="form-control">
</div> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row" v-if="complaintDetailInfo.showCurrentUser">
<label class="col-sm-2 col-form-label">处理人电话</label> <label class="col-sm-2 col-form-label">处理人电话</label>
<div class="col-sm-10"> <div class="col-sm-10">
<input v-model="complaintDetailInfo.currentUserTel" type="text" readonly <input v-model="complaintDetailInfo.currentUserTel" type="text" readonly
placeholder="必填,请填写投诉电话" class="form-control"> placeholder="必填,请填写投诉电话" class="form-control">
</div> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row" v-if="complaintDetailInfo.showCurrentUser">
<label class="col-sm-2 col-form-label">处理人编号</label> <label class="col-sm-2 col-form-label">处理人编号</label>
<div class="col-sm-10"> <div class="col-sm-10">
<input v-model="complaintDetailInfo.currentUserId" type="text" readonly <input v-model="complaintDetailInfo.currentUserId" type="text" readonly

View File

@ -14,6 +14,7 @@
currentUserName: '', currentUserName: '',
currentUserTel: '', currentUserTel: '',
currentUserId: '', currentUserId: '',
showCurrentUser: true
} }
}, },
_initMethod: function () { _initMethod: function () {
@ -26,6 +27,9 @@
let _roomName = _params.floorNum + '号楼' + _params.unitNum + '单元' + _params.roomNum + '室'; let _roomName = _params.floorNum + '号楼' + _params.unitNum + '单元' + _params.roomNum + '室';
vc.copyObject(_params, vc.component.complaintDetailInfo); vc.copyObject(_params, vc.component.complaintDetailInfo);
$that.complaintDetailInfo.roomName = _roomName; $that.complaintDetailInfo.roomName = _roomName;
if(!_params.hasOwnProperty('currentUserName')){
$that.complaintDetailInfo.showCurrentUser = false;
}
$that.complaintDetailInfo.currentUserName = _params.currentUserName == '' ? '无':_params.currentUserName; $that.complaintDetailInfo.currentUserName = _params.currentUserName == '' ? '无':_params.currentUserName;
$that.complaintDetailInfo.currentUserTel = _params.currentUserTel == '' ? '无':_params.currentUserTel; $that.complaintDetailInfo.currentUserTel = _params.currentUserTel == '' ? '无':_params.currentUserTel;
$that.complaintDetailInfo.currentUserId = _params.currentUserId == '' ? '无':_params.currentUserId; $that.complaintDetailInfo.currentUserId = _params.currentUserId == '' ? '无':_params.currentUserId;
@ -46,7 +50,7 @@
currentUserName: '', currentUserName: '',
currentUserTel: '', currentUserTel: '',
currentUserId: '', currentUserId: '',
showCurrentUser: true
} }
} }
} }

View File

@ -34,12 +34,17 @@
<td class="text-center">{{complaint.complaintName}}</td> <td class="text-center">{{complaint.complaintName}}</td>
<td class="text-center">{{complaint.tel}}</td> <td class="text-center">{{complaint.tel}}</td>
<td class="text-center">{{complaint.stateName}}</td> <td class="text-center">{{complaint.stateName}}</td>
<td class="text-center"> <td class="text-right">
<div class="btn-group"> <div class="btn-group">
<button class="btn-white btn btn-xs" <button class="btn-white btn btn-xs"
v-on:click="_openAuditComplaintModel(complaint)">审核 v-on:click="_openAuditComplaintModel(complaint)">审核
</button> </button>
</div> </div>
<div class="btn-group">
<button class="btn-white btn btn-xs"
v-on:click="_openComplaintDetailModel(complaint)">详情
</button>
</div>
</td> </td>
</tr> </tr>
@ -64,4 +69,6 @@
> >
</vc:create> </vc:create>
<vc:create name="complaintDetail"></vc:create>
</div> </div>

View File

@ -95,6 +95,9 @@
} else { } else {
vc.component.AuditOrdersManageInfo.moreCondition = true; vc.component.AuditOrdersManageInfo.moreCondition = true;
} }
},
_openComplaintDetailModel:function(_complaint){
vc.emit('complaintDetail', 'openComplaintDetailModal', _complaint);
} }

View File

@ -21,7 +21,7 @@
<th class="text-center">投诉人</th> <th class="text-center">投诉人</th>
<th class="text-center">投诉电话</th> <th class="text-center">投诉电话</th>
<th class="text-center">投诉状态</th> <th class="text-center">投诉状态</th>
<!-- <th class="text-center">操作</th>--> <th class="text-right">操作</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -34,13 +34,13 @@
<td class="text-center">{{complaint.complaintName}}</td> <td class="text-center">{{complaint.complaintName}}</td>
<td class="text-center">{{complaint.tel}}</td> <td class="text-center">{{complaint.tel}}</td>
<td class="text-center">{{complaint.stateName}}</td> <td class="text-center">{{complaint.stateName}}</td>
<!--<td class="text-center"> <td class="text-right">
<div class="btn-group"> <div class="btn-group">
<button class="btn-white btn btn-xs" <button class="btn-white btn btn-xs"
v-on:click="_openAuditComplaintModel(complaint)">审核 v-on:click="_openComplaintDetailModel(complaint)">详情
</button> </button>
</div> </div>
</td>--> </td>
</tr> </tr>
</tbody> </tbody>
@ -58,4 +58,5 @@
</div> </div>
</div> </div>
</div> </div>
<vc:create name="complaintDetail"></vc:create>
</div> </div>

View File

@ -70,6 +70,9 @@
} else { } else {
vc.component.AuditOrdersManageInfo.moreCondition = true; vc.component.AuditOrdersManageInfo.moreCondition = true;
} }
},
_openComplaintDetailModel:function(_complaint){
vc.emit('complaintDetail', 'openComplaintDetailModal', _complaint);
} }