|
|
@@ -524,7 +524,7 @@
|
|
|
let oldRemark = span.text();
|
|
|
let remark = target.val();
|
|
|
if(remark !== span.text()){
|
|
|
- let ajaxUrl= '{{url("laborReport/changeLaborReportRemark")}}';
|
|
|
+ let ajaxUrl= '{{url("personnel/laborReport/changeLaborReportRemark")}}';
|
|
|
axios.post(ajaxUrl,{'id':id,'remark':remark}).then(function (response) {
|
|
|
if(response.data.success){
|
|
|
_this.updateLaborReports(id,remark);
|
|
|
@@ -550,7 +550,7 @@
|
|
|
let _this = this;
|
|
|
let id = target.attr('data_id');
|
|
|
let remark = target.val();
|
|
|
- let ajaxUrl= '{{url("laborReport/changeLaborReportRemark")}}';
|
|
|
+ let ajaxUrl= '{{url("personnel/laborReport/changeLaborReportRemark")}}';
|
|
|
if(remark === ''|| remark === null){
|
|
|
target.css('width','75px');
|
|
|
return;
|
|
|
@@ -588,13 +588,13 @@
|
|
|
this.selectedStyle=id;
|
|
|
},
|
|
|
laborReportExport(checkAllSign){
|
|
|
- let url = '{{url('laborReport/export')}}';
|
|
|
+ let url = '{{url('personnel/laborReport/export')}}';
|
|
|
let token='{{ csrf_token() }}';
|
|
|
excelExport(checkAllSign,checkData,url,this.sum,token);
|
|
|
},
|
|
|
//门卫审核
|
|
|
guardClockAudit(id,user_duty_check_id){
|
|
|
- let url='{{url("laborReport/guardClockAudit")}}';
|
|
|
+ let url='{{url("personnel/laborReport/guardClockAudit")}}';
|
|
|
let _this=this;
|
|
|
axios.post(url,{id:id,user_duty_check_id:user_duty_check_id})
|
|
|
.then(function (response) {
|
|
|
@@ -622,7 +622,7 @@
|
|
|
let _this=this;
|
|
|
let id = getSelectId();
|
|
|
let remark=document.getElementById('remark').value;
|
|
|
- let url='{{url("laborReport/addRemarkAndGroupClock")}}';
|
|
|
+ let url='{{url("personnel/laborReport/addRemarkAndGroupClock")}}';
|
|
|
if (remark==null|| remark=='' || remark=="undefined"){
|
|
|
tempTip.setDuration(3000);
|
|
|
tempTip.show("您还未添加任何备注");
|
|
|
@@ -655,7 +655,7 @@
|
|
|
},
|
|
|
//组长打卡审核
|
|
|
groupClockAudit(id,userWorkgroupNeedRemark){
|
|
|
- let url='{{url("laborReport/groupClockAudit")}}';
|
|
|
+ let url='{{url("personnel/laborReport/groupClockAudit")}}';
|
|
|
let _this=this;
|
|
|
if (userWorkgroupNeedRemark){
|
|
|
selectId(id);
|
|
|
@@ -692,7 +692,7 @@
|
|
|
noDinner(){
|
|
|
let _this=this;
|
|
|
let id = _this.laborReportId;
|
|
|
- let url='{{url("laborReport/groupExport")}}';
|
|
|
+ let url='{{url("personnel/laborReport/groupExport")}}';
|
|
|
axios.post(url,{id:id})
|
|
|
.then(function (response) {
|
|
|
if (!response.data.success){
|
|
|
@@ -719,7 +719,7 @@
|
|
|
},
|
|
|
//退场有晚饭时间
|
|
|
makeSureRelax_time(){
|
|
|
- let url='{{url("laborReport/groupExportEnsure")}}';
|
|
|
+ let url='{{url("personnel/laborReport/groupExportEnsure")}}';
|
|
|
let _this=this;
|
|
|
let id = _this.laborReportId;
|
|
|
axios.post(url,{id:id,relax_time:_this.relax_time})
|
|
|
@@ -765,7 +765,7 @@
|
|
|
$('#dinnerModal').modal('show');
|
|
|
return;
|
|
|
}
|
|
|
- let url='{{url("laborReport/groupExport")}}';
|
|
|
+ let url='{{url("personnel/laborReport/groupExport")}}';
|
|
|
axios.post(url,{id:id})
|
|
|
.then(function (response) {
|
|
|
if (!response.data.success){
|
|
|
@@ -803,7 +803,7 @@
|
|
|
},
|
|
|
updateLaborCompany(laborCompanyId,enter_number){
|
|
|
let _this=this;
|
|
|
- let url='{{url("laborReport/updateLaborCompany")}}';
|
|
|
+ let url='{{url("personnel/laborReport/updateLaborCompany")}}';
|
|
|
axios.post(url,{enter_number:enter_number,laborCompanyId:laborCompanyId}).then(function (response) {
|
|
|
if (!response.data.success){
|
|
|
tempTip.setDuration(3000);
|
|
|
@@ -828,7 +828,7 @@
|
|
|
删除(id,name){
|
|
|
let _this=this;
|
|
|
if(!confirm('确定要删除临时工为:“'+name+'”的报表记录吗?')){return};
|
|
|
- let url='{{url("laborReport/删除")}}/'+id;
|
|
|
+ let url='{{url("personnel/laborReport/删除")}}/'+id;
|
|
|
axios.delete(url).then(
|
|
|
function (response) {
|
|
|
if(!response.data.success){
|