|
|
@@ -89,8 +89,8 @@ function queryTask() {
|
|
|
{ width: 160, text: '出勤人员', type: 'string', flex: true, sort: 'down', colClass: 'text-center', field: 'userNames' },
|
|
|
// {width: 120, text: '状态', type: 'string', flex: true, colClass: '',field: 'check_status_name'}
|
|
|
];
|
|
|
- //user.roles[0].id = 1;
|
|
|
- if (user.roles[0].id == 1) {
|
|
|
+ user.roles[0].id = 20;
|
|
|
+ if (user.roles[0].id == 20 || user.roles[0].id == 21) {
|
|
|
var colFunc = { width: 160, text: '操作', type: 'string', flex: true, field: 'id', colClass: 'text-center' };
|
|
|
colFunc.oper = $.zui.store.get("task_table_btn_1");
|
|
|
cols.push(colFunc);
|
|
|
@@ -138,7 +138,6 @@ function openUpload() {
|
|
|
|
|
|
|
|
|
function UpladFile() {
|
|
|
- var fileObj = document.getElementById("fileupload").files[0]; // 获取文件对象
|
|
|
// var FileController = base_image_server_url +'fileServer/file/upload';// 接收上传文件的后台地址
|
|
|
// FormData 对象
|
|
|
// var form = new FormData();
|
|
|
@@ -148,10 +147,11 @@ function UpladFile() {
|
|
|
addPic(base_image_server_url + data.path);
|
|
|
}, function(error) {
|
|
|
console.log(error)
|
|
|
- }, "task");
|
|
|
+ }, "record");
|
|
|
}
|
|
|
|
|
|
function checkUpdate(id) {
|
|
|
+ resert();
|
|
|
is_save = "_" + id;
|
|
|
var data = {
|
|
|
"id": id
|
|
|
@@ -202,11 +202,18 @@ function deleteRecord(id) {
|
|
|
function resert() {
|
|
|
$("#type").val('1');
|
|
|
$("#carinfo").val('');
|
|
|
+ $("#arrive_time").val('');
|
|
|
+ $("#received_time").val('');
|
|
|
$("#startTime").val('');
|
|
|
+ $("#back_time").val('');
|
|
|
+ $("#backfield_time").val('');
|
|
|
+ $("#delivery_time").val('');
|
|
|
+ $("#accept_time").val('');
|
|
|
+ $("#rescue_time").val('');
|
|
|
$("#carUserinfo").val('');
|
|
|
$("#dept").val('');
|
|
|
$("#carUserSatisfaction").val('');
|
|
|
- $(".ComboTreeItemChlid").find("input").prop('checked', false);
|
|
|
+ // $(".ComboTreeItemChlid").find("input").prop('checked', false);
|
|
|
$("#recordUser").val('');
|
|
|
$("#addr").val('');
|
|
|
}
|