|
|
@@ -92,7 +92,6 @@ function queryTask() {
|
|
|
{ width: 80, text: '序号', type: 'number', flex: true, colClass: 'text-center', field: 'num' },
|
|
|
{ width: 80, text: '清障队', type: 'string', flex: true, colClass: 'text-center', sort: 'down', field: 'deptName' },
|
|
|
{ width: 80, text: '桩号', type: 'string', flex: true, colClass: 'text-center', sort: 'down', field: 'addr' },
|
|
|
- { width: 80, text: '车牌号', type: 'string', flex: true, hide: hide, colClass: 'text-center', field: 'car_info' },
|
|
|
{ width: 80, text: '客户信息', type: 'string', flex: true, sort: 'down', colClass: 'text-center', field: 'car_user_info' },
|
|
|
{ width: 120, text: '接警时间', type: 'string', flex: true, sort: 'down', colClass: 'text-center', field: 'received_time' },
|
|
|
// { width: 160, text: '最后时间', type: 'string', flex: true, sort: 'down', colClass: 'text-center', field: 'last_time' },
|
|
|
@@ -108,16 +107,20 @@ function queryTask() {
|
|
|
$("#saveButton").show();
|
|
|
} else if (hasRole(ROLE_WRECKER_MANAGER) || hasRole(ROLE_WRECKER_NQ) || hasRole(ROLE_WRECKER)) {
|
|
|
setMonitor();
|
|
|
- cols = [
|
|
|
+ cols = [
|
|
|
{ width: 80, text: '序号', type: 'number', flex: true, colClass: 'text-center', field: 'num' },
|
|
|
+ // { width: 80, text: '清障队', type: 'string', flex: true, colClass: 'text-center', sort: 'down', field: 'deptName' },
|
|
|
{ width: 80, text: '桩号', type: 'string', flex: true, colClass: 'text-center', sort: 'down', field: 'addr' },
|
|
|
- { width: 80, text: '车牌号', type: 'string', flex: true, hide: hide, colClass: 'text-center', field: 'car_info' },,
|
|
|
+ // { width: 80, text: '客户信息', type: 'string', flex: true, sort: 'down', colClass: 'text-center', field: 'car_user_info' },
|
|
|
{ width: 120, text: '接警时间', type: 'string', flex: true, sort: 'down', colClass: 'text-center', field: 'received_time' },
|
|
|
// { width: 160, text: '最后时间', type: 'string', flex: true, sort: 'down', colClass: 'text-center', field: 'last_time' },
|
|
|
{ width: 120, text: '出勤人员', type: 'string', flex: true, sort: 'down', colClass: 'text-center', field: 'userNames' },
|
|
|
// {width: 120, text: '状态', type: 'string', flex: true, colClass: '',field: 'check_status_name'}
|
|
|
];
|
|
|
var colFunc3 = { width: 160, text: '正副班长', type: 'monitor', flex: true, field: 'id', colClass: 'text-center' };
|
|
|
+ // var colFunc5 = { width: 160, text: '正副班长', type: 'monitor', flex: true, field: 'id', colClass: 'text-center' };
|
|
|
+ //var colFunc3 = { width: 160, text: '视频上传', type: 'imagebutton', flex: true, field: 'videos', colClass: 'text-center' };
|
|
|
+ // var colFunc4 = { width: 160, text: '是否按时到达', type: 'arrive', flex: true, field: 'id', colClass: 'text-center' };
|
|
|
var colFunc1 = { width: 160, text: '视频上传', type: 'imagebutton', flex: true, field: 'videos', colClass: 'text-center' };
|
|
|
var colFunc2 = { width: 160, text: '图片上传', type: 'imagebutton', flex: true, field: 'pics', colClass: 'text-center' };
|
|
|
var colFunc = { width: 40, text: '操作', type: 'string', flex: true, field: 'id', colClass: 'text-center' };
|
|
|
@@ -125,10 +128,13 @@ function queryTask() {
|
|
|
cols.push(colFunc3);
|
|
|
cols.push(colFunc1);
|
|
|
cols.push(colFunc2);
|
|
|
+ // cols.push(colFunc3);
|
|
|
+ //cols.push(colFunc5);
|
|
|
cols.push(colFunc);
|
|
|
$("#isCompleteDiv").hide();
|
|
|
$("#isComplete").val(1);
|
|
|
data.isComplete = 1;
|
|
|
+ data.isApply = 0;
|
|
|
}
|
|
|
//只有下发才显示复选框
|
|
|
var checkable = false;
|
|
|
@@ -235,39 +241,39 @@ function checkUpdate(id) {
|
|
|
$("#type").val(redata.type);
|
|
|
$("#carinfo").val(redata.car_info);
|
|
|
if (redata.arrive_time != null) {
|
|
|
- var time = moment(redata.arrive_time).format("YYYY-MM-DD HH:mm:ss");
|
|
|
+ var time = moment(redata.arrive_time).format("YYYY-MM-DD HH:mm");
|
|
|
$("#arrive_time").val(time);
|
|
|
}
|
|
|
- if (redata.arrive_time != null) {
|
|
|
- time = moment(redata.received_time).format("YYYY-MM-DD HH:mm:ss");
|
|
|
+ if (redata.received_time != null) {
|
|
|
+ time = moment(redata.received_time).format("YYYY-MM-DD HH:mm");
|
|
|
$("#received_time").val(time);
|
|
|
}
|
|
|
if (redata.start_time != null) {
|
|
|
- time = moment(redata.start_time).format("YYYY-MM-DD HH:mm:ss");
|
|
|
+ time = moment(redata.start_time).format("YYYY-MM-DD HH:mm");
|
|
|
$("#startTime").val(time);
|
|
|
}
|
|
|
if (redata.back_time != null) {
|
|
|
- time = moment(redata.back_time).format("YYYY-MM-DD HH:mm:ss");
|
|
|
+ time = moment(redata.back_time).format("YYYY-MM-DD HH:mm");
|
|
|
$("#back_time").val(time);
|
|
|
}
|
|
|
if (redata.backfield_time != null) {
|
|
|
- time = moment(redata.backfield_time).format("YYYY-MM-DD HH:mm:ss");
|
|
|
+ time = moment(redata.backfield_time).format("YYYY-MM-DD HH:mm");
|
|
|
$("#backfield_time").val(time);
|
|
|
}
|
|
|
if (redata.delivery_time != null) {
|
|
|
- time = moment(redata.delivery_time).format("YYYY-MM-DD HH:mm:ss");
|
|
|
+ time = moment(redata.delivery_time).format("YYYY-MM-DD HH:mm");
|
|
|
$("#delivery_time").val(time);
|
|
|
}
|
|
|
if (redata.accept_time != null) {
|
|
|
- time = moment(redata.accept_time).format("YYYY-MM-DD HH:mm:ss");
|
|
|
+ time = moment(redata.accept_time).format("YYYY-MM-DD HH:mm");
|
|
|
$("#accept_time").val(time);
|
|
|
}
|
|
|
if (redata.rescue_time != null) {
|
|
|
- time = moment(redata.rescue_time).format("YYYY-MM-DD HH:mm:ss");
|
|
|
+ time = moment(redata.rescue_time).format("YYYY-MM-DD HH:mm");
|
|
|
$("#rescue_time").val(time);
|
|
|
}
|
|
|
if (redata.relief_time != null) {
|
|
|
- time = moment(redata.relief_time).format("YYYY-MM-DD HH:mm:ss");
|
|
|
+ time = moment(redata.relief_time).format("YYYY-MM-DD HH:mm");
|
|
|
$("#relief_time").val(time);
|
|
|
}
|
|
|
$("#carUserinfo").val(redata.car_user_info);
|