优化报修功能

This commit is contained in:
java110 2020-06-30 19:03:50 +08:00
parent 6ba59926cc
commit 6e248597a5
4 changed files with 44 additions and 9 deletions

View File

@ -5,7 +5,9 @@
<div class="ibox-title">
<h5>工单详情</h5>
<div class="ibox-tools" style="top:10px;">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_goBack()">
返回
</button>
</div>
</div>
<div class="ibox-content">
@ -56,13 +58,13 @@
<div class="row">
<div class="col-sm-4">
<div class="form-group">
<label class="col-form-label">状态</label>
<label class="col-form-label">状态:</label>
<label class="">{{ownerRepairDetailInfo.stateName}}</label>
</div>
</div>
<div class="col-sm-8">
<div class="form-group">
<label class="col-form-label">报修内容</label>
<label class="col-form-label">报修内容:</label>
<label class="">{{ownerRepairDetailInfo.context}}</label>
</div>
</div>
@ -78,7 +80,7 @@
<div class="col-lg-12">
<div class="ibox">
<div class="ibox-title">
<h5>处理过程</h5>
<h5>工单流转</h5>
<div class="ibox-tools" style="top:10px;">
</div>
@ -98,11 +100,11 @@
<tbody>
<tr v-for="(item,index) in ownerRepairDetailInfo.repairUsers">
<th scope="row">{{index+1}}</th>
<td>{{item.auditName}}</td>
<td>{{item.staffName}}</td>
<td>{{item.stateName}}</td>
<td>{{item.auditTime}}</td>
<td>{{item.endTime}}</td>
<td>{{item.duration}}</td>
<td>{{item.message}}</td>
<td>{{item.context}}</td>
</tr>
</tbody>
</table>

View File

@ -16,7 +16,7 @@
roomId: '',
userId: '',
userName: '',
repairUsers:[]
repairUsers: []
}
@ -30,7 +30,7 @@
return;
}
$that._listRepairPools()
},
_initEvent: function () {
@ -99,11 +99,38 @@
//查询房屋信息
vc.component._getRoom();
//查询处理轨迹
$that._loadRepairUser();
}, function (errInfo, error) {
console.log('请求失败处理');
}
);
},
_loadRepairUser: function () {
var param = {
params: {
page: 1,
row: 100,
communityId: vc.getCurrentCommunity().communityId,
repairId: $that.ownerRepairDetailInfo.repairId
}
};
//发送get请求
vc.http.apiGet('ownerRepair.listRepairStaffs',
param,
function (json, res) {
var _repairPoolManageInfo = JSON.parse(json);
let _repairs = _repairPoolManageInfo.data;
$that.ownerRepairDetailInfo.repairUsers = _repairs;
}, function (errInfo, error) {
console.log('请求失败处理');
}
);
},
_goBack:function(){
vc.goBack()
}
}
});

View File

@ -5,6 +5,9 @@
<div class="ibox-title">
<h5>报修师傅</h5>
<div class="ibox-tools" style="top:10px;">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_goBack()">
返回
</button>
<button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddRepairTypeUserModal()">
<i class="glyphicon glyphicon-plus"></i>
添加

View File

@ -81,6 +81,9 @@
_openDeleteTypeUserModel: function (_repairTypeUser) {
vc.emit('deleteRepairTypeUser', 'openDeleteRepairTypeUserModal', _repairTypeUser);
},
_goBack:function(){
vc.goBack()
},
saveRepairTypeUserInfo: function (_staff) {
let param = {