|
|
|
@ -83,6 +83,7 @@
|
|
|
|
|
<!-- <a-input v-decorator="['etd']" allowClear /> -->
|
|
|
|
|
<a-date-picker
|
|
|
|
|
format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
|
valueFormat="YYYY-MM-DD HH:mm:ss"
|
|
|
|
|
show-time
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
v-decorator="['etd']"
|
|
|
|
@ -112,6 +113,7 @@
|
|
|
|
|
<a-date-picker
|
|
|
|
|
:disabled="type == 'Details'"
|
|
|
|
|
format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
|
valueFormat="YYYY-MM-DD HH:mm:ss"
|
|
|
|
|
show-time
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
v-decorator="['dispatchTime']"
|
|
|
|
@ -162,7 +164,7 @@
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="5">
|
|
|
|
|
<!-- <a-col :span="5">
|
|
|
|
|
<a-form-item
|
|
|
|
|
label="箱型箱量:"
|
|
|
|
|
:labelCol="{ xs: { span: 25 }, sm: { span: 6 } }"
|
|
|
|
@ -171,7 +173,7 @@
|
|
|
|
|
>
|
|
|
|
|
<a-input v-decorator="['containers']" allowClear />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-col> -->
|
|
|
|
|
</a-row>
|
|
|
|
|
<a-row>
|
|
|
|
|
<a-col :span="5">
|
|
|
|
@ -353,10 +355,10 @@
|
|
|
|
|
</a-row>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
<p class="CsFormTitle" >
|
|
|
|
|
<p class="CsFormTitle">
|
|
|
|
|
<span><i class="iconfont icon-tuandui"></i>明细信息</span>
|
|
|
|
|
</p>
|
|
|
|
|
<a-row >
|
|
|
|
|
<a-row>
|
|
|
|
|
<a-col :span="24">
|
|
|
|
|
<vxe-toolbar>
|
|
|
|
|
<template #buttons>
|
|
|
|
@ -373,13 +375,28 @@
|
|
|
|
|
:edit-config="{ trigger: 'click', mode: 'row' }"
|
|
|
|
|
>
|
|
|
|
|
<vxe-column type="checkbox" width="45"></vxe-column>
|
|
|
|
|
<vxe-column field="dispatchStatus" title="状态" :edit-render="{}">
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
<span>{{ FnRdispatchStatus(row.dispatchStatus) }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
<template #edit="{ row }">
|
|
|
|
|
<vxe-select v-model="row.dispatchStatus" transfer>
|
|
|
|
|
<vxe-option
|
|
|
|
|
v-for="item in dispatchStatusList"
|
|
|
|
|
:key="item.code"
|
|
|
|
|
:value="item.code"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
></vxe-option>
|
|
|
|
|
</vxe-select>
|
|
|
|
|
</template>
|
|
|
|
|
</vxe-column>
|
|
|
|
|
<!-- <vxe-column type="seq" width="60"></vxe-column> -->
|
|
|
|
|
<vxe-column field="cntName" title="箱型" :edit-render="{}">
|
|
|
|
|
<vxe-column field="cntCode" title="箱型" :edit-render="{}">
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
<span>{{ FnRctncode(row.cntName) }}</span>
|
|
|
|
|
<span>{{ FnRctncode(row.cntCode) }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
<template #edit="{ row }">
|
|
|
|
|
<vxe-select v-model="row.cntName" transfer>
|
|
|
|
|
<vxe-select v-model="row.cntCode" transfer>
|
|
|
|
|
<vxe-option
|
|
|
|
|
v-for="item in ctnList"
|
|
|
|
|
:key="item.code"
|
|
|
|
@ -401,7 +418,8 @@
|
|
|
|
|
</vxe-column>
|
|
|
|
|
<vxe-column field="dispatchTime" title="派车日期" :edit-render="{}">
|
|
|
|
|
<template #edit="{ row }">
|
|
|
|
|
<vxe-input v-model="row.dispatchTime" type="text"></vxe-input>
|
|
|
|
|
<!-- <a-date-picker format="YYYY-MM-DD HH:mm:ss" show-time v-model="row.dispatchTime" allowClear /> -->
|
|
|
|
|
<vxe-input v-model="row.dispatchTime" type="datetime" transfer></vxe-input>
|
|
|
|
|
</template>
|
|
|
|
|
</vxe-column>
|
|
|
|
|
<vxe-column field="carLicense" title="车牌号" :edit-render="{}">
|
|
|
|
@ -444,6 +462,7 @@
|
|
|
|
|
import { mapGetters, mapActions } from 'vuex'
|
|
|
|
|
import { commondbYardlist } from '@/api/modular/main/CommondbYardlist'
|
|
|
|
|
import { commondbCarrierlist } from '@/api/modular/main/CommondbPortlist'
|
|
|
|
|
import { GetCtn } from '@/api/modular/main/BookingLedger'
|
|
|
|
|
import {
|
|
|
|
|
TmsForwarderOrderCreate,
|
|
|
|
|
TmsForwarderOrderUpdate,
|
|
|
|
@ -502,6 +521,12 @@ export default {
|
|
|
|
|
WebData: {},
|
|
|
|
|
dispatcherIdData: [],
|
|
|
|
|
ctnList: [],
|
|
|
|
|
dispatchStatusList: [
|
|
|
|
|
{ code: '0', name: '未派车' },
|
|
|
|
|
{ code: '1', name: '运输中' },
|
|
|
|
|
{ code: '2', name: '已提箱' },
|
|
|
|
|
{ code: '3', name: '已还箱' }
|
|
|
|
|
],
|
|
|
|
|
yardidData: [],
|
|
|
|
|
inYardIDData: [],
|
|
|
|
|
yardcontractaData: [],
|
|
|
|
@ -651,6 +676,14 @@ export default {
|
|
|
|
|
|
|
|
|
|
validateFields((errors, values) => {
|
|
|
|
|
if (!errors) {
|
|
|
|
|
// dispatchTime
|
|
|
|
|
values.tmsForwarderOrderBodyEntityList = this.ContactsData
|
|
|
|
|
values.tmsForwarderOrderBodyEntityList.forEach((item, index) => {
|
|
|
|
|
item.serialNo = item.WebKey
|
|
|
|
|
// if (item.dispatchTime) {
|
|
|
|
|
// item.dispatchTime = new Date(Date.parse(item.dispatchTime)).toISOString()
|
|
|
|
|
// }
|
|
|
|
|
})
|
|
|
|
|
values.tmsForwarderOrderLoadingPlaceEntityList = this.tmsForwarderOrderLoadingPlaceEntityList
|
|
|
|
|
console.log(values)
|
|
|
|
|
if (this.id && this.type != 'Copy') {
|
|
|
|
@ -721,6 +754,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
init() {
|
|
|
|
|
console.log(this.id)
|
|
|
|
|
this.ContactsData = []
|
|
|
|
|
this.form.resetFields()
|
|
|
|
|
if (this.id) {
|
|
|
|
|
TmsForwarderOrderInfo({ id: this.id }).then(res => {
|
|
|
|
@ -770,6 +804,9 @@ export default {
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
GetCtn({ KeyWord: '' }).then(res => {
|
|
|
|
|
this.ctnList = res.data
|
|
|
|
|
})
|
|
|
|
|
commondbCarrierlist().then(res => {
|
|
|
|
|
this.carrierCodeData = res.data
|
|
|
|
|
})
|
|
|
|
@ -795,6 +832,17 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
return RData
|
|
|
|
|
},
|
|
|
|
|
FnRdispatchStatus(value) {
|
|
|
|
|
let RData = ''
|
|
|
|
|
if (value) {
|
|
|
|
|
this.dispatchStatusList.forEach(item => {
|
|
|
|
|
if (item.code == value) {
|
|
|
|
|
RData = item.name
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
return RData
|
|
|
|
|
},
|
|
|
|
|
removeCheckboxRow() {
|
|
|
|
|
console.log(this.$refs.xTable.selection)
|
|
|
|
|
this.$refs.xTable.selection.forEach(item => {
|
|
|
|
|