张同海 11 months ago
commit 9caa16f3b9

@ -1248,3 +1248,12 @@ export function listYardBwCarrier(parameter) {
params: parameter
})
}
export function SendTruckAfterDispatch(parameter) {
return axios({
url: '/TaskManageTruck/SendTruckAfterDispatch',
method: 'post',
data: parameter
})
}

@ -515,6 +515,7 @@
<vxe-button @click="removeCheckboxRow()"></vxe-button>
<vxe-button v-if="BookingId" @click="introduce()"></vxe-button>
<vxe-button @click="introduceData()"></vxe-button>
<vxe-button v-if="taskPKId" @click="synchronous"></vxe-button>
</template>
</vxe-toolbar>
<vxe-table
@ -688,7 +689,7 @@ import {
BookingTruckGetYardData,
TaskManageTruckGetYardData
} from '@/api/modular/main/SendCar'
import { GetCtn, GetSysUserPage } from '@/api/modular/main/BookingLedger'
import { GetCtn, GetSysUserPage,SendTruckAfterDispatch } from '@/api/modular/main/BookingLedger'
import { merge, values } from 'xe-utils'
export default {
@ -946,6 +947,34 @@ export default {
})
}
},
synchronous() {
const {
form: { validateFields }
} = this
this.confirmLoading = true
validateFields((errors, values) => {
if (!errors) {
values.contaList = this.ContactsData
values = this.FnCompleteName(values)
values.pK_ID = this.WebData.pK_ID
values.bookingId = this.BookingId
SendTruckAfterDispatch({ ...values })
.then((res) => {
if (res.data.succ) {
this.$message.success('同步成功')
} else {
this.$message.error(`同步失败,${res.data.msg}`)
}
this.confirmLoading = false
})
.catch(() => {
this.confirmLoading = false
})
} else {
this.confirmLoading = false
}
})
},
//
FnCilckTemplateType(templateId) {
this.$message.success(`搜索文件中...`)

Loading…
Cancel
Save