master
张同海 1 year ago
parent 4cfaff8fd0
commit f57ba89549

@ -4,20 +4,22 @@ import { axios } from '@/utils/request'
*/
export function TmsForwarderOrderCreate(parameter) {
return axios({
url: '/tmsaip/TmsForwarderOrder/create',
// url: '/tmsaip/TmsForwarderOrder/create',
url: '/tmsaip/tmsTruckerOrder/create',
method: 'post',
data: parameter
})
}
/**
* 根据id删除货代派车单信息
*/
export function TmsForwarderOrderDelete(parameter) {
return axios({
url: `/tmsaip/TmsForwarderOrder/delete/${parameter.id}`,
method: 'post'
})
}
// /**
// * 根据id删除货代派车单信息
// */
// export function TmsForwarderOrderDelete(parameter) {
// return axios({
// // url: `/tmsaip/TmsForwarderOrder/delete/${parameter.id}`,
// url: `/tmsaip/tmsTruckerOrder/delete/${parameter.id}`,
// method: 'post'
// })
// }
/**
* 根据id查询车队派车单信息
*/
@ -40,9 +42,10 @@ export function TmsTruckerOrderList(parameter) {
/**
* 根据id更新货代派车单信息
*/
export function TmsForwarderOrderUpdate(parameter) {
export function tmsTruckerOrderUpdate(parameter) {
return axios({
url: '/tmsaip/TmsForwarderOrder/update',
// url: '/tmsaip/TmsForwarderOrder/update',
url: `/tmsaip/tmsTruckerOrder/update/${parameter.id}`,
method: 'post',
data: parameter.values
})

@ -5,9 +5,9 @@
<a-row type="flex" :gutter="16">
<a-col>
<div class="nav-box">
<div v-if="TabsData == 0" class="nav" @click="handleSubmit">
<!-- <div v-if="TabsData == 0" class="nav" @click="handleSubmit">
<i class="iconfont icon-icon_baocun"></i>保存
</div>
</div> -->
<div v-if="TabsData == 0" class="nav" @click="FnStop"><i class="iconfont icon-shanchu1"></i></div>
<!-- <div v-if="TabsData == 0" class="nav"><i class="iconfont icon-icon_baocun"></i></div> -->
</div>
@ -630,7 +630,7 @@ import { commondbYardlist } from '@/api/modular/main/CommondbYardlist'
import { commondbCarrierlist } from '@/api/modular/main/CommondbPortlist'
import { TruckerDriverList } from '@/api/modular/main/tmsaip/tmsTruckerCarRelation'
import {
TmsForwarderOrderCreate,
tmsTruckerOrderUpdate,
TmsTruckerOrderInfo,
listCarGroup,
listAll,
@ -967,7 +967,6 @@ export default {
} else {
this.$message.error(res.message)
}
this.init()
this.AllocationCarVisible = false
})
},
@ -1020,7 +1019,7 @@ export default {
if (!errors) {
values.tmsForwarderOrderLoadingPlaceEntityList = this.tmsForwarderOrderLoadingPlaceEntityList
console.log(values)
TmsForwarderOrderCreate(values).then(res => {
tmsTruckerOrderUpdate({ ...values, id: this.id }).then(res => {
console.log(res)
if (res.success) {
this.$message.success(res.message)

Loading…
Cancel
Save