Commit 04164bcd authored by xxx's avatar xxx

删除订单接口添加odd

parent 2935e2ec
...@@ -159,7 +159,7 @@ export default { ...@@ -159,7 +159,7 @@ export default {
//删除调度单子 //删除调度单子
httpGet(dingDanBiaoCaoZuo,{carNo:this.carnumber}).then((res3Del) => { httpGet(dingDanBiaoCaoZuo,{carNo:this.carnumber}).then((res3Del) => {
if(res3Del.code == 200 && res3Del.data.content.length != 0){ if(res3Del.code == 200 && res3Del.data.content.length != 0){
httpDelForJson(dingDanBiaoCaoZuo,[res3Del.data.content[0].id,this.carnumber]).then((res3DelSon) => { httpDelForJson(dingDanBiaoCaoZuo,[res3Del.data.content[0].id,this.carnumber,res3Del.data.content[0].odd]).then((res3DelSon) => {
this.logout(); this.logout();
}); });
}else{ }else{
...@@ -259,7 +259,7 @@ export default { ...@@ -259,7 +259,7 @@ export default {
//删除调度单子 //删除调度单子
httpGet(dingDanBiaoCaoZuo,{carNo:this.carnumber}).then((res3Del) => { httpGet(dingDanBiaoCaoZuo,{carNo:this.carnumber}).then((res3Del) => {
if(res3Del.code == 200 && res3Del.data.content.length != 0){ if(res3Del.code == 200 && res3Del.data.content.length != 0){
httpDelForJson(dingDanBiaoCaoZuo,[res3Del.data.content[0].id,this.carnumber]).then((res3DelSon) => {}); httpDelForJson(dingDanBiaoCaoZuo,[res3Del.data.content[0].id,this.carnumber,res3Del.data.content[0].odd]).then((res3DelSon) => {});
} }
}) })
} }
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<div class="waitingtrucksView_content"> <div class="waitingtrucksView_content">
<div v-for="(item,index) in daizhangCar" :key="index"> <div v-for="(item,index) in daizhangCar" :key="index">
<div>车牌号:{{item.number}}</div> <div>车牌号:{{item.number}}</div>
<button class="daizhangCarBtn1" :disabled="interdictBtn || (item.weightStatus != 2)" @click="wanchengzhuangcheFn(item.number,item.id)">完成装车</button> <button class="daizhangCarBtn1" :disabled="interdictBtn || (item.weightStatus != 2)" @click="wanchengzhuangcheFn(item.number,item.id,item.odd)">完成装车</button>
</div> </div>
</div> </div>
</div> </div>
...@@ -491,7 +491,7 @@ export default { ...@@ -491,7 +491,7 @@ export default {
} }
}, },
//完成装车 //完成装车
wanchengzhuangcheFn(number,id){ wanchengzhuangcheFn(number,id,odd){
this.interdictBtn = true; this.interdictBtn = true;
//改订单状态 //改订单状态
httpGet(manualSchedulingQuery,{sort:'createTime,desc',size:1,carNo:number}).then((res) => { httpGet(manualSchedulingQuery,{sort:'createTime,desc',size:1,carNo:number}).then((res) => {
...@@ -527,7 +527,7 @@ export default { ...@@ -527,7 +527,7 @@ export default {
if(res.code == 200){} if(res.code == 200){}
}); });
//删除 //删除
httpDelForJson(dingDanBiaoCaoZuo,[id,this.carnumber]).then((res) => { httpDelForJson(dingDanBiaoCaoZuo,[id,this.carnumber,odd]).then((res) => {
this.loadData1(); this.loadData1();
}); });
}, },
......
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