|
@@ -439,19 +439,19 @@ export default {
|
|
|
})
|
|
|
|
|
|
console.log(this.selectionList)
|
|
|
- // if(state){
|
|
|
- // this.axios.post('/api/v1/ams/dispatchTruckOrderBySale',{
|
|
|
- // saleOrderId:this.$route.params.saleOrderId,
|
|
|
- // mapList:this.selectionList,
|
|
|
- // }).then((res)=>{
|
|
|
- // if(res.data.code == '200'){
|
|
|
- // this.$message.success('派车成功')
|
|
|
- // this.cancel();
|
|
|
- // }
|
|
|
- // })
|
|
|
- // }else{
|
|
|
- // this.$message.warning('重量/电话号码请输入数字')
|
|
|
- // }
|
|
|
+ if(state){
|
|
|
+ this.axios.post('/api/v1/ams/dispatchTruckOrderBySale',{
|
|
|
+ saleOrderId:this.$route.params.saleOrderId,
|
|
|
+ mapList:this.selectionList,
|
|
|
+ }).then((res)=>{
|
|
|
+ if(res.data.code == '200'){
|
|
|
+ this.$message.success('派车成功')
|
|
|
+ this.cancel();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.$message.warning('重量/电话号码请输入数字')
|
|
|
+ }
|
|
|
},
|
|
|
//点击取消按钮的事件
|
|
|
cancel(){
|