Commit e18f5419 authored by caicaicai's avatar caicaicai

修改

parent b909d563
......@@ -783,6 +783,68 @@ var HttpReq = function(){
data:data,
})
},
//智能派单——人工补录
personRecordingQuery: function(param){
return request({
url: '/api/Manmades',
method: 'get',
params:param,
})
},
personRecordingAdd: function(data){
return request({
url: '/api/Manmades',
method: 'POST',
data:data,
}).then((res) => {
return res
})
},
personRecordingUpdate: function(data){
return request({
url: '/api/Manmades',
method: 'PUT',
data:data,
})
},
personRecordingDel: function(data){
return request({
url: '/api/Manmades',
method: 'Delete',
data:data,
})
},
//智能派单——人工调度所属调度车辆
personRecordingCarsQuery: function(param){
return request({
url: '/api/Mans',
method: 'get',
params:param,
})
},
personRecordingCarsAdd: function(data){
return request({
url: '/api/Mans',
method: 'POST',
data:data,
}).then((res) => {
return res
})
},
personRecordingCarsUpdate: function(data){
return request({
url: '/api/Mans',
method: 'PUT',
data:data,
})
},
personRecordingCarsDel: function(data){
return request({
url: '/api/Mans',
method: 'Delete',
data:data,
})
},
......
......@@ -117,13 +117,13 @@ export default {
}
})
//获取车队
HttpReq.truckDispatching.carFleetQuery().then((res) => {
HttpReq.truckDispatching.carFleetQuery({size:9999}).then((res) => {
if(res.code == 200){
this.carFleetData = res.data.content;
}
})
//获取区域信息
HttpReq.truckDispatching.RegionalInformationQuery().then((res) => {
HttpReq.truckDispatching.RegionalInformationQuery({size:9999}).then((res) => {
if(res.code == 200){
this.areaInformationData = res.data.content;
}
......
......@@ -169,16 +169,17 @@ export default {
//删除提示
toDelete(item) {
var id = item.id;
var odd = item.odd;
this.$confirm('确认删除该条数据吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then((e) => {
this.reqRemoveProject([id])
this.reqRemoveProject([id],odd)
}).catch((e) => {})
},
//删除调度
reqRemoveProject(item){
reqRemoveProject(item,itemOdd){
HttpReq.truckDispatching.manualSchedulingDel(item).then((res) => {
if(res.status == 400){
this.$notify({
......@@ -195,6 +196,16 @@ export default {
}
this.loadData();
})
//获取所属车辆并且删除
HttpReq.truckDispatching.manualSchedulingCarsQuery({size:9999,odd:itemOdd}).then((res) => {
let delCheckCarsList = [];
if(res.code == 200){
res.data.content.forEach((itemSon) => {
delCheckCarsList.push(itemSon.id);
});
HttpReq.truckDispatching.manualSchedulingCarsDel(delCheckCarsList).then((res) => { })
}
})
},
currentTime(time){
var date = new Date(time);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment