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

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

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

Loading…
Cancel
Save