Commit 44150d75 authored by zhanglw's avatar zhanglw

车辆调度

parent bc918f2f
......@@ -2764,6 +2764,14 @@ var HttpReq = function(){
params:param,
})
},
//调度车辆
ddChangeCarsScheduling: function(data){
return request({
url: '/api/manualScheduling/changeCarsScheduling',
method: 'PUT',
data:data,
})
},
},
......
......@@ -182,7 +182,7 @@
</div>
</div>
<div class="voiceAppContent_4">
<button class="voiceAppContent_4_btns">开始调度</button>
<button class="voiceAppContent_4_btns" @click="dispatchCars()">开始调度</button>
<button class="voiceAppContent_4_btns" @click="closeCarListView()">关闭窗口</button>
</div>
</div>
......@@ -457,6 +457,34 @@ export default {
}
})
},
dispatchCars(){
let ids=[];
this.carList.forEach((item)=>{
if(item.flag){
ids.push(item.id);
}
});
HttpReq.truckDispatching.ddChangeCarsScheduling({
carStatusIdList: ids,
currentPoint: this.curPaItem.pointName
}).then((res) => {
if (res.code == 200) {
this.$notify({
title: res.msg,
type: 'success',
duration: 5000
});
this.closeCarListView();
this.selectedPeningArea({id:this.selectedPaid,name:this.curPaItem.pointName});
}else{
this.$notify({
title: '网络异常',
type: 'error',
duration: 5000
});
}
})
},
closeCarListView() {
this.peopleScheAssemblyShow = false;
},
......
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