|
|
@ -6,9 +6,9 @@
|
|
|
|
<a-col>
|
|
|
|
<a-col>
|
|
|
|
<div class="nav-box">
|
|
|
|
<div class="nav-box">
|
|
|
|
<div class="nav" @click="handleSubmit"><i class="iconfont icon-icon_baocun"></i>保存</div>
|
|
|
|
<div class="nav" @click="handleSubmit"><i class="iconfont icon-icon_baocun"></i>保存</div>
|
|
|
|
<!-- <div v-if="type == 'Details'" class="nav" @click="FnDelete">
|
|
|
|
<div v-if="type == 'Details'" class="nav" @click="FnDelete">
|
|
|
|
<i class="iconfont icon-shanchu1"></i>删除
|
|
|
|
<i class="iconfont icon-shanchu1"></i>删除
|
|
|
|
</div> -->
|
|
|
|
</div>
|
|
|
|
<div v-if="type == 'Details'" class="nav" @click="FnCopy"><i class="iconfont icon-fuzhi"></i>复制</div>
|
|
|
|
<div v-if="type == 'Details'" class="nav" @click="FnCopy"><i class="iconfont icon-fuzhi"></i>复制</div>
|
|
|
|
<div v-if="type == 'Details'" class="nav" @click="FnCancel">
|
|
|
|
<div v-if="type == 'Details'" class="nav" @click="FnCancel">
|
|
|
|
<i class="iconfont icon-fuzhi"></i>终止订单
|
|
|
|
<i class="iconfont icon-fuzhi"></i>终止订单
|
|
|
@ -280,7 +280,22 @@
|
|
|
|
:wrapperCol="{ xs: { span: 25 }, sm: { span: 17 } }"
|
|
|
|
:wrapperCol="{ xs: { span: 25 }, sm: { span: 17 } }"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-input v-model="item.name" allowClear />
|
|
|
|
<!-- :data-source="dataSource"
|
|
|
|
|
|
|
|
:filter-option="TemplateFilterOption"
|
|
|
|
|
|
|
|
v-model="item.name"
|
|
|
|
|
|
|
|
allowClear -->
|
|
|
|
|
|
|
|
<a-auto-complete
|
|
|
|
|
|
|
|
v-model="item.name"
|
|
|
|
|
|
|
|
allowClear
|
|
|
|
|
|
|
|
:data-source="dataSource"
|
|
|
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
|
|
|
:filter-option="TemplateFilterOption"
|
|
|
|
|
|
|
|
@select="
|
|
|
|
|
|
|
|
(a, b) => {
|
|
|
|
|
|
|
|
TemplateSelect(a, b, item)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="5">
|
|
|
|
<a-col :span="5">
|
|
|
@ -331,6 +346,14 @@
|
|
|
|
<a-input v-model="item.address" allowClear />
|
|
|
|
<a-input v-model="item.address" allowClear />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="5" :style="{ marginTop: '6px' }">
|
|
|
|
|
|
|
|
<vxe-button
|
|
|
|
|
|
|
|
status="primary"
|
|
|
|
|
|
|
|
content="存为模板"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
@click="FnSaveTemplate(item)"
|
|
|
|
|
|
|
|
></vxe-button>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
</a-row>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<a-row>
|
|
|
|
<a-row>
|
|
|
@ -594,6 +617,7 @@
|
|
|
|
</a-form>
|
|
|
|
</a-form>
|
|
|
|
</a-spin>
|
|
|
|
</a-spin>
|
|
|
|
</a-modal>
|
|
|
|
</a-modal>
|
|
|
|
|
|
|
|
<add-form ref="addForm" @ok="handleOk" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- </a-modal> -->
|
|
|
|
<!-- </a-modal> -->
|
|
|
@ -604,6 +628,7 @@ import { mapGetters, mapActions } from 'vuex'
|
|
|
|
import { commondbYardlist } from '@/api/modular/main/CommondbYardlist'
|
|
|
|
import { commondbYardlist } from '@/api/modular/main/CommondbYardlist'
|
|
|
|
import { commondbCarrierlist } from '@/api/modular/main/CommondbPortlist'
|
|
|
|
import { commondbCarrierlist } from '@/api/modular/main/CommondbPortlist'
|
|
|
|
import { GetCtn } from '@/api/modular/main/BookingLedger'
|
|
|
|
import { GetCtn } from '@/api/modular/main/BookingLedger'
|
|
|
|
|
|
|
|
import addForm from '../tmsCobLoadingPlace/addForm.vue'
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
TmsForwarderOrderCreate,
|
|
|
|
TmsForwarderOrderCreate,
|
|
|
|
TmsForwarderOrderUpdate,
|
|
|
|
TmsForwarderOrderUpdate,
|
|
|
@ -619,9 +644,17 @@ import {
|
|
|
|
} from '@/api/modular/main/tmsaip/TmsForwarderOrder'
|
|
|
|
} from '@/api/modular/main/tmsaip/TmsForwarderOrder'
|
|
|
|
import { DjyCustomerQuerytDjyCustomerInfo } from '@/api/modular/main/SendCar'
|
|
|
|
import { DjyCustomerQuerytDjyCustomerInfo } from '@/api/modular/main/SendCar'
|
|
|
|
import { tmsTenantRelationList } from '@/api/modular/main/tmsaip/tmsTenantRelationTF'
|
|
|
|
import { tmsTenantRelationList } from '@/api/modular/main/tmsaip/tmsTenantRelationTF'
|
|
|
|
|
|
|
|
import { tmsCobLoadingPlacelist } from '@/api/modular/main/tmsaip/tmsCobLoadingPlace'
|
|
|
|
|
|
|
|
import AAutoComplete from 'ant-design-vue/es/auto-complete'
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
|
|
|
|
components: {
|
|
|
|
|
|
|
|
addForm,
|
|
|
|
|
|
|
|
AAutoComplete
|
|
|
|
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
dataSource: [''],
|
|
|
|
|
|
|
|
dataSourceA: [],
|
|
|
|
AddsData: {
|
|
|
|
AddsData: {
|
|
|
|
driverId: '',
|
|
|
|
driverId: '',
|
|
|
|
num: 1
|
|
|
|
num: 1
|
|
|
@ -798,6 +831,21 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
...mapActions(['setTmsAddData']),
|
|
|
|
...mapActions(['setTmsAddData']),
|
|
|
|
|
|
|
|
TemplateFilterOption(input, option) {
|
|
|
|
|
|
|
|
return option.componentOptions.children[0].text.toUpperCase().indexOf(input.toUpperCase()) >= 0
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
TemplateSelect(value, option, data) {
|
|
|
|
|
|
|
|
this.dataSourceA.forEach(item => {
|
|
|
|
|
|
|
|
if (item.templateName == value || item.name == value) {
|
|
|
|
|
|
|
|
console.log(item)
|
|
|
|
|
|
|
|
data.name = item.name
|
|
|
|
|
|
|
|
data.contact = item.contact
|
|
|
|
|
|
|
|
data.address = item.address
|
|
|
|
|
|
|
|
data.tel = item.tel
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
console.log(value, option)
|
|
|
|
|
|
|
|
},
|
|
|
|
CopyFromToReturn() {
|
|
|
|
CopyFromToReturn() {
|
|
|
|
// fromYardId fromContract fromTel returnYardId returnContract returnTel
|
|
|
|
// fromYardId fromContract fromTel returnYardId returnContract returnTel
|
|
|
|
let values = { ...this.form.getFieldsValue() }
|
|
|
|
let values = { ...this.form.getFieldsValue() }
|
|
|
@ -996,13 +1044,6 @@ export default {
|
|
|
|
...res.data
|
|
|
|
...res.data
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}, 100)
|
|
|
|
}, 100)
|
|
|
|
// this.$router.replace({
|
|
|
|
|
|
|
|
// name: 'TmsTruckerOrderDetails',
|
|
|
|
|
|
|
|
// query: {
|
|
|
|
|
|
|
|
// type: 'Details',
|
|
|
|
|
|
|
|
// id: res.data.id
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1025,6 +1066,13 @@ export default {
|
|
|
|
FnFactoryDelete(index) {
|
|
|
|
FnFactoryDelete(index) {
|
|
|
|
this.tmsForwarderOrderLoadingPlaceEntityList.splice(index, 1)
|
|
|
|
this.tmsForwarderOrderLoadingPlaceEntityList.splice(index, 1)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
FnSaveTemplate(data) {
|
|
|
|
|
|
|
|
this.$refs.addForm.add(data)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handleOk() {
|
|
|
|
|
|
|
|
this.FnGetTemplateData()
|
|
|
|
|
|
|
|
// this.FnGetData()
|
|
|
|
|
|
|
|
},
|
|
|
|
FnCopy() {
|
|
|
|
FnCopy() {
|
|
|
|
this.$router.push({
|
|
|
|
this.$router.push({
|
|
|
|
name: 'TmsForwarderOrderDetails',
|
|
|
|
name: 'TmsForwarderOrderDetails',
|
|
|
@ -1064,6 +1112,19 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FnGetTemplateData() {
|
|
|
|
|
|
|
|
let Arr = []
|
|
|
|
|
|
|
|
tmsCobLoadingPlacelist({
|
|
|
|
|
|
|
|
pageSize: 999
|
|
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
res.data.list.forEach(item => {
|
|
|
|
|
|
|
|
Arr.push(item.name)
|
|
|
|
|
|
|
|
Arr.push(item.templateName)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
this.dataSource = Arr
|
|
|
|
|
|
|
|
this.dataSourceA = res.data.list
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
init() {
|
|
|
|
init() {
|
|
|
|
if (this.initTime) {
|
|
|
|
if (this.initTime) {
|
|
|
|
this.ContactsData = []
|
|
|
|
this.ContactsData = []
|
|
|
@ -1092,8 +1153,11 @@ export default {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.tmsForwarderOrderLoadingPlaceEntityList = res.data.orderLoadingPlaceList
|
|
|
|
this.tmsForwarderOrderLoadingPlaceEntityList = res.data.orderLoadingPlaceList
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
res.data.orderBodyList.forEach((item, index) => {
|
|
|
|
|
|
|
|
item.WebKey = index + 1
|
|
|
|
|
|
|
|
})
|
|
|
|
this.ContactsData = res.data.orderBodyList
|
|
|
|
this.ContactsData = res.data.orderBodyList
|
|
|
|
|
|
|
|
console.log(this.ContactsData)
|
|
|
|
}, 100)
|
|
|
|
}, 100)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1129,6 +1193,7 @@ export default {
|
|
|
|
commondbYardlist().then(res => {
|
|
|
|
commondbYardlist().then(res => {
|
|
|
|
this.YardCodeData = res.data
|
|
|
|
this.YardCodeData = res.data
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
this.FnGetTemplateData()
|
|
|
|
// listCarGroup().then(res => {
|
|
|
|
// listCarGroup().then(res => {
|
|
|
|
// this.carGroupIdData = res.data
|
|
|
|
// this.carGroupIdData = res.data
|
|
|
|
// })
|
|
|
|
// })
|
|
|
@ -1176,6 +1241,7 @@ export default {
|
|
|
|
console.log(this.$refs.xTable.selection)
|
|
|
|
console.log(this.$refs.xTable.selection)
|
|
|
|
this.$refs.xTable.selection.forEach(item => {
|
|
|
|
this.$refs.xTable.selection.forEach(item => {
|
|
|
|
this.ContactsData.forEach((item2, index2) => {
|
|
|
|
this.ContactsData.forEach((item2, index2) => {
|
|
|
|
|
|
|
|
console.log(item.WebKey, item2.WebKey)
|
|
|
|
if (item.WebKey == item2.WebKey) {
|
|
|
|
if (item.WebKey == item2.WebKey) {
|
|
|
|
this.ContactsData.splice(index2, 1)
|
|
|
|
this.ContactsData.splice(index2, 1)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1186,6 +1252,10 @@ export default {
|
|
|
|
if (!this.ContactsData) {
|
|
|
|
if (!this.ContactsData) {
|
|
|
|
this.ContactsData = []
|
|
|
|
this.ContactsData = []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log(
|
|
|
|
|
|
|
|
this.ContactsData,
|
|
|
|
|
|
|
|
this.ContactsData.length ? this.ContactsData[this.ContactsData.length - 1].WebKey + 1 : 1
|
|
|
|
|
|
|
|
)
|
|
|
|
this.ContactsData.push({
|
|
|
|
this.ContactsData.push({
|
|
|
|
WebKey: this.ContactsData.length ? this.ContactsData[this.ContactsData.length - 1].WebKey + 1 : 1,
|
|
|
|
WebKey: this.ContactsData.length ? this.ContactsData[this.ContactsData.length - 1].WebKey + 1 : 1,
|
|
|
|
dispatchStatus: '0'
|
|
|
|
dispatchStatus: '0'
|
|
|
|