|
|
@ -64,7 +64,7 @@
|
|
|
|
<!-- <a-input v-decorator="['kdCompany']" allowClear /> -->
|
|
|
|
<!-- <a-input v-decorator="['kdCompany']" allowClear /> -->
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="5">
|
|
|
|
<a-col :span="9">
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
label="快递状态:"
|
|
|
|
label="快递状态:"
|
|
|
|
:labelCol="{ xs: { span: 25 }, sm: { span: 6 } }"
|
|
|
|
:labelCol="{ xs: { span: 25 }, sm: { span: 6 } }"
|
|
|
@ -848,7 +848,6 @@ import {
|
|
|
|
commondbCodeCityList
|
|
|
|
commondbCodeCityList
|
|
|
|
} from '@/api/modular/main/ExpressModule'
|
|
|
|
} from '@/api/modular/main/ExpressModule'
|
|
|
|
import { ExpressDeliveryGetAddressList } from '@/api/modular/main/ExpressTemplate'
|
|
|
|
import { ExpressDeliveryGetAddressList } from '@/api/modular/main/ExpressTemplate'
|
|
|
|
import { GetPortloadlist, GetCarrierlist, GetPortlist } from '@/api/modular/main/BookingLedger'
|
|
|
|
|
|
|
|
import { PageDataByBooking } from '@/api/modular/main/BookingLedger'
|
|
|
|
import { PageDataByBooking } from '@/api/modular/main/BookingLedger'
|
|
|
|
import { MonthlyPayAccountList } from '@/api/modular/main/ExpressMonthlyPay'
|
|
|
|
import { MonthlyPayAccountList } from '@/api/modular/main/ExpressMonthlyPay'
|
|
|
|
import AAutoComplete from 'ant-design-vue/es/auto-complete'
|
|
|
|
import AAutoComplete from 'ant-design-vue/es/auto-complete'
|
|
|
@ -1012,9 +1011,6 @@ export default {
|
|
|
|
ProvinceData: [],
|
|
|
|
ProvinceData: [],
|
|
|
|
sjCityData: [],
|
|
|
|
sjCityData: [],
|
|
|
|
fjCityData: [],
|
|
|
|
fjCityData: [],
|
|
|
|
CarrierData: [],
|
|
|
|
|
|
|
|
PortloadData: [],
|
|
|
|
|
|
|
|
PortData: [],
|
|
|
|
|
|
|
|
VesselData: [],
|
|
|
|
VesselData: [],
|
|
|
|
SearchData: {},
|
|
|
|
SearchData: {},
|
|
|
|
SearchObj: {
|
|
|
|
SearchObj: {
|
|
|
@ -1102,7 +1098,6 @@ export default {
|
|
|
|
values.tmsForwarderOrderLoadingPlaceEntityList = this.tmsForwarderOrderLoadingPlaceEntityList
|
|
|
|
values.tmsForwarderOrderLoadingPlaceEntityList = this.tmsForwarderOrderLoadingPlaceEntityList
|
|
|
|
values.WebId = from.WebId
|
|
|
|
values.WebId = from.WebId
|
|
|
|
this.setTmsAddData(values)
|
|
|
|
this.setTmsAddData(values)
|
|
|
|
console.log(this.$store.state)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1129,7 +1124,6 @@ export default {
|
|
|
|
monthlyCardDataSelect(value) {
|
|
|
|
monthlyCardDataSelect(value) {
|
|
|
|
this.MonthlyPayloadData.forEach(item => {
|
|
|
|
this.MonthlyPayloadData.forEach(item => {
|
|
|
|
if (item.cardNo == value.cardNo) {
|
|
|
|
if (item.cardNo == value.cardNo) {
|
|
|
|
console.log(item)
|
|
|
|
|
|
|
|
let values = { ...this.form.getFieldsValue() }
|
|
|
|
let values = { ...this.form.getFieldsValue() }
|
|
|
|
let Data = {
|
|
|
|
let Data = {
|
|
|
|
monthlyCard: item.cardNo
|
|
|
|
monthlyCard: item.cardNo
|
|
|
@ -1153,16 +1147,21 @@ export default {
|
|
|
|
this.TemplateVisible = true
|
|
|
|
this.TemplateVisible = true
|
|
|
|
this.loading = true
|
|
|
|
this.loading = true
|
|
|
|
ExpressDeliveryGetAddressList().then(res => {
|
|
|
|
ExpressDeliveryGetAddressList().then(res => {
|
|
|
|
this.loadData = res.data
|
|
|
|
this.loadData = []
|
|
|
|
|
|
|
|
res.data.forEach(item => {
|
|
|
|
|
|
|
|
if (this.TemplateType == 'sj' && item.type == 1) {
|
|
|
|
|
|
|
|
this.loadData.push(item)
|
|
|
|
|
|
|
|
} else if (this.TemplateType == 'fj' && item.type == 2) {
|
|
|
|
|
|
|
|
this.loadData.push(item)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
this.loading = false
|
|
|
|
this.loading = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
PeopleDataSelect(value) {
|
|
|
|
PeopleDataSelect(value) {
|
|
|
|
let type = this.TemplateType
|
|
|
|
let type = this.TemplateType
|
|
|
|
console.log(value, type)
|
|
|
|
|
|
|
|
this.loadData.forEach(item => {
|
|
|
|
this.loadData.forEach(item => {
|
|
|
|
if (item.people == value.people) {
|
|
|
|
if (item.people == value.people) {
|
|
|
|
console.log(item)
|
|
|
|
|
|
|
|
let values = { ...this.form.getFieldsValue() }
|
|
|
|
let values = { ...this.form.getFieldsValue() }
|
|
|
|
let Data = {}
|
|
|
|
let Data = {}
|
|
|
|
Data[`${type}Company`] = item.company
|
|
|
|
Data[`${type}Company`] = item.company
|
|
|
@ -1188,33 +1187,9 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// UseData(data, type) {
|
|
|
|
|
|
|
|
// this.TemplateCancel()
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
TemplateCancel() {
|
|
|
|
TemplateCancel() {
|
|
|
|
this.TemplateVisible = false
|
|
|
|
this.TemplateVisible = false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
PeopleDataSearch(searchText) {
|
|
|
|
|
|
|
|
this.PeopleDataB = []
|
|
|
|
|
|
|
|
let Rdata = []
|
|
|
|
|
|
|
|
this.PeopleData.forEach(item => {
|
|
|
|
|
|
|
|
if (item.people.indexOf(searchText) != -1) {
|
|
|
|
|
|
|
|
Rdata.push(item.people)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
this.PeopleDataB = !searchText ? [] : Rdata
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
monthlyCardDataBSearch(searchText) {
|
|
|
|
|
|
|
|
this.monthlyCardDataB = []
|
|
|
|
|
|
|
|
let Rdata = []
|
|
|
|
|
|
|
|
this.monthlyCardData.forEach(item => {
|
|
|
|
|
|
|
|
if (item.cardNo.indexOf(searchText) != -1) {
|
|
|
|
|
|
|
|
Rdata.push(item.cardNo)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
this.monthlyCardDataB = !searchText ? [] : Rdata
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getListData() {
|
|
|
|
getListData() {
|
|
|
|
this.BusinessLoading = true
|
|
|
|
this.BusinessLoading = true
|
|
|
@ -1239,10 +1214,10 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log(arr)
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
this.$refs.xTable2.setCheckboxRow(arr, true)
|
|
|
|
this.$refs.xTable2.setCheckboxRow(arr, true)
|
|
|
|
this.BusinessLoading = false
|
|
|
|
this.BusinessLoading = false
|
|
|
|
|
|
|
|
this.insertEvent2()
|
|
|
|
}, 100)
|
|
|
|
}, 100)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(err => {
|
|
|
|
.catch(err => {
|
|
|
@ -1278,7 +1253,6 @@ export default {
|
|
|
|
fjPostCode: item.postCode
|
|
|
|
fjPostCode: item.postCode
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log(Obj)
|
|
|
|
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
...values,
|
|
|
|
...values,
|
|
|
|
...Obj
|
|
|
|
...Obj
|
|
|
@ -1287,166 +1261,6 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
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() {
|
|
|
|
|
|
|
|
// fromYardId fromContract fromTel returnYardId returnContract returnTel
|
|
|
|
|
|
|
|
let values = { ...this.form.getFieldsValue() }
|
|
|
|
|
|
|
|
console.log(values)
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
|
|
|
|
...values,
|
|
|
|
|
|
|
|
returnYardId: values.fromYardId,
|
|
|
|
|
|
|
|
returnContract: values.fromContract,
|
|
|
|
|
|
|
|
returnTel: values.fromTel
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}, 100)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
FnImgs(data) {
|
|
|
|
|
|
|
|
imgList(data).then(res => {
|
|
|
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
|
|
|
if (res.data.length) {
|
|
|
|
|
|
|
|
this.ImgsVisible = true
|
|
|
|
|
|
|
|
this.ImgsData = res.data
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.warning('暂无照片')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.warning(res.message)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
MapTimeChange(date, dateString) {
|
|
|
|
|
|
|
|
this.MapTimeA = dateString
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
MapTimeHandleOk() {
|
|
|
|
|
|
|
|
this.MapBLoading = true
|
|
|
|
|
|
|
|
this.MapTimeVisible = false
|
|
|
|
|
|
|
|
// forwarderRouterPath({
|
|
|
|
|
|
|
|
// bodyId: this.MapData.id,
|
|
|
|
|
|
|
|
// qryBtm: this.MapTimeA[0],
|
|
|
|
|
|
|
|
// qryEtm: this.MapTimeA[1]
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
forwarderRouterPath({
|
|
|
|
|
|
|
|
bodyId: '1671454297131257858',
|
|
|
|
|
|
|
|
qryBtm: '2023-07-03 00:59:40',
|
|
|
|
|
|
|
|
qryEtm: '2023-07-05 00:59:40'
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.then(res => {
|
|
|
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
|
|
|
let waypoints = []
|
|
|
|
|
|
|
|
res.data.trackArray.forEach((item, index) => {
|
|
|
|
|
|
|
|
if (index < 25) {
|
|
|
|
|
|
|
|
waypoints.push({ lng: item.lon / 600000, lat: item.lat / 600000 })
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
this.start = waypoints[0]
|
|
|
|
|
|
|
|
this.end = waypoints[waypoints.length - 1]
|
|
|
|
|
|
|
|
this.waypoints = waypoints
|
|
|
|
|
|
|
|
this.MapType = false
|
|
|
|
|
|
|
|
this.MapState = false
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
this.MapState = true
|
|
|
|
|
|
|
|
}, 100)
|
|
|
|
|
|
|
|
console.log(this.waypoints)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.warning(res.message)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.MapBLoading = false
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(err => {
|
|
|
|
|
|
|
|
this.MapBLoading = false
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
FnSgj() {
|
|
|
|
|
|
|
|
this.MapTimeVisible = true
|
|
|
|
|
|
|
|
this.MapTimeA = []
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
Mapinit({ BMap, map }) {
|
|
|
|
|
|
|
|
this.map = map
|
|
|
|
|
|
|
|
console.log(BMap, map)
|
|
|
|
|
|
|
|
this.point = new BMap.Point(this.center.lng, this.center.lat)
|
|
|
|
|
|
|
|
map.centerAndZoom(this.point, 12)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
FnCarLocate(data) {
|
|
|
|
|
|
|
|
if (data) {
|
|
|
|
|
|
|
|
this.MapData = data
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.MapBLoading = true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// forwarderTransTime({ bodyId: this.MapData.id })
|
|
|
|
|
|
|
|
forwarderTransTime({ bodyId: '1671454297131257858' })
|
|
|
|
|
|
|
|
.then(res => {
|
|
|
|
|
|
|
|
this.MapType = true
|
|
|
|
|
|
|
|
console.log(res)
|
|
|
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
|
|
|
this.center.lng = res.data.lon / 600000
|
|
|
|
|
|
|
|
this.center.lat = res.data.lat / 600000
|
|
|
|
|
|
|
|
this.center.adr = res.data.adr
|
|
|
|
|
|
|
|
let date = new Date(parseInt(res.data.utc))
|
|
|
|
|
|
|
|
let Year = date.getFullYear()
|
|
|
|
|
|
|
|
let Moth = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1
|
|
|
|
|
|
|
|
let Day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate()
|
|
|
|
|
|
|
|
let Hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
|
|
|
|
|
|
|
|
let Minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
|
|
|
|
|
|
|
|
let Sechond = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds()
|
|
|
|
|
|
|
|
let utc = Year + '-' + Moth + '-' + Day + ' ' + Hour + ':' + Minute + ':' + Sechond
|
|
|
|
|
|
|
|
this.center.utc = utc
|
|
|
|
|
|
|
|
// setTimeout(() => {
|
|
|
|
|
|
|
|
this.MapVisible = true
|
|
|
|
|
|
|
|
// }, 1000)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.warning(res.message)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.MapBLoading = false
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(err => {
|
|
|
|
|
|
|
|
this.MapBLoading = false
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
FnChangeYard(type, e) {
|
|
|
|
|
|
|
|
DjyCustomerQuerytDjyCustomerInfo({ queryItem: e }).then(res => {
|
|
|
|
|
|
|
|
console.log(res)
|
|
|
|
|
|
|
|
if (res.data[0] && res.data[0].contacts) {
|
|
|
|
|
|
|
|
console.log(res.data[0].contacts)
|
|
|
|
|
|
|
|
// this.yardcontractaData = res.data[0].contacts
|
|
|
|
|
|
|
|
if (res.data[0].contacts.length) {
|
|
|
|
|
|
|
|
let data = {}
|
|
|
|
|
|
|
|
if (type == 'return') {
|
|
|
|
|
|
|
|
data = {
|
|
|
|
|
|
|
|
returnContract: res.data[0].contacts[0].name,
|
|
|
|
|
|
|
|
returnTel: res.data[0].contacts[0].tel
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
data = {
|
|
|
|
|
|
|
|
fromContract: res.data[0].contacts[0].name,
|
|
|
|
|
|
|
|
fromTel: res.data[0].contacts[0].tel
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
this.form.setFieldsValue(data)
|
|
|
|
|
|
|
|
}, 100)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
console.log(type, e)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
filterOption(input, option) {
|
|
|
|
|
|
|
|
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 提交表单
|
|
|
|
* 提交表单
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -1481,19 +1295,17 @@ export default {
|
|
|
|
// values.tmsForwarderOrderLoadingPlaceEntityList = this.tmsForwarderOrderLoadingPlaceEntityList
|
|
|
|
// values.tmsForwarderOrderLoadingPlaceEntityList = this.tmsForwarderOrderLoadingPlaceEntityList
|
|
|
|
|
|
|
|
|
|
|
|
if (this.id && this.type != 'Copy') {
|
|
|
|
if (this.id && this.type != 'Copy') {
|
|
|
|
console.log('更新')
|
|
|
|
|
|
|
|
BookingOrderSFSave({ ...values, id: this.id }).then(res => {
|
|
|
|
BookingOrderSFSave({ ...values, id: this.id }).then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.$message.success(res.message)
|
|
|
|
this.$message.success('保存成功')
|
|
|
|
if (FnType == 'FnSendBooking') {
|
|
|
|
if (FnType == 'FnSendBooking') {
|
|
|
|
BookingOrderSFSendBooking({ Id: this.id }).then(res => {
|
|
|
|
BookingOrderSFSendBooking({ Id: this.id }).then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.$message.success('发送成功')
|
|
|
|
this.$message.success('下单成功')
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
...this.form.getFieldsValue(),
|
|
|
|
...this.form.getFieldsValue(),
|
|
|
|
...res.extras,
|
|
|
|
...res.extras
|
|
|
|
ASD: 123
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}, 100)
|
|
|
|
}, 100)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -1521,7 +1333,6 @@ export default {
|
|
|
|
delete item.WebKey
|
|
|
|
delete item.WebKey
|
|
|
|
Arr.push(item)
|
|
|
|
Arr.push(item)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
console.log(Arr)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (values.business && values.business.length) {
|
|
|
|
if (values.business && values.business.length) {
|
|
|
|
let Arr = []
|
|
|
|
let Arr = []
|
|
|
@ -1535,15 +1346,12 @@ export default {
|
|
|
|
delete item.WebKey
|
|
|
|
delete item.WebKey
|
|
|
|
Arr.push(item)
|
|
|
|
Arr.push(item)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
console.log(Arr)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log('新增')
|
|
|
|
|
|
|
|
BookingOrderSFSave(values)
|
|
|
|
BookingOrderSFSave(values)
|
|
|
|
.then(res => {
|
|
|
|
.then(res => {
|
|
|
|
console.log(res)
|
|
|
|
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.$message.success(res.message)
|
|
|
|
this.$message.success('新增成功')
|
|
|
|
this.type = 'Details'
|
|
|
|
this.type = 'Details'
|
|
|
|
this.id = res.data.result.id
|
|
|
|
this.id = res.data.result.id
|
|
|
|
this.WebId = ''
|
|
|
|
this.WebId = ''
|
|
|
@ -1560,7 +1368,6 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(err => {
|
|
|
|
.catch(err => {
|
|
|
|
this.confirmLoading = false
|
|
|
|
this.confirmLoading = false
|
|
|
|
console.log(err)
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -1571,61 +1378,21 @@ export default {
|
|
|
|
handleCancel() {
|
|
|
|
handleCancel() {
|
|
|
|
BookingOrderSFCancelBooking({ Id: this.id }).then(res => {
|
|
|
|
BookingOrderSFCancelBooking({ Id: this.id }).then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
console.log(res)
|
|
|
|
this.$message.success(res.data)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
|
|
|
|
...this.form.getFieldsValue(),
|
|
|
|
|
|
|
|
currentStateDesc: '快递已消单'
|
|
|
|
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
FnFactoryAdd() {
|
|
|
|
|
|
|
|
this.tmsForwarderOrderLoadingPlaceEntityList.push({
|
|
|
|
|
|
|
|
name: '',
|
|
|
|
|
|
|
|
contact: '',
|
|
|
|
|
|
|
|
tel: '',
|
|
|
|
|
|
|
|
address: ''
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
FnFactoryDelete(index) {
|
|
|
|
|
|
|
|
this.tmsForwarderOrderLoadingPlaceEntityList.splice(index, 1)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
FnSaveTemplate(data) {
|
|
|
|
|
|
|
|
this.$refs.addForm.add(data)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handleOk() {
|
|
|
|
handleOk() {
|
|
|
|
this.FnGetTemplateData()
|
|
|
|
this.FnGetTemplateData()
|
|
|
|
// this.FnGetData()
|
|
|
|
// this.FnGetData()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
FnCopy() {
|
|
|
|
|
|
|
|
this.$router.push({
|
|
|
|
|
|
|
|
name: 'ExpressModuleDetails',
|
|
|
|
|
|
|
|
query: {
|
|
|
|
|
|
|
|
type: 'Copy',
|
|
|
|
|
|
|
|
id: this.id
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FnCancel() {
|
|
|
|
|
|
|
|
TmsForwarderOrderCancel({ id: this.id }).then(res => {
|
|
|
|
|
|
|
|
if (res.success) {
|
|
|
|
|
|
|
|
this.$message.success('终止成功')
|
|
|
|
|
|
|
|
this.init()
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.error(`终止失败,${res.message}`)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
FnDelete() {
|
|
|
|
|
|
|
|
TmsForwarderOrderDelete({ id: this.id }).then(res => {
|
|
|
|
|
|
|
|
if (res.success) {
|
|
|
|
|
|
|
|
this.$message.success('删除成功')
|
|
|
|
|
|
|
|
this.init()
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.error(`删除失败,${res.message}`)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FnGetTemplateData() {
|
|
|
|
FnGetTemplateData() {
|
|
|
|
let Arr = []
|
|
|
|
let Arr = []
|
|
|
|
tmsCobLoadingPlacelist({
|
|
|
|
tmsCobLoadingPlacelist({
|
|
|
@ -1645,14 +1412,15 @@ export default {
|
|
|
|
if (this.initTime) {
|
|
|
|
if (this.initTime) {
|
|
|
|
this.DetailData = []
|
|
|
|
this.DetailData = []
|
|
|
|
this.form.resetFields()
|
|
|
|
this.form.resetFields()
|
|
|
|
|
|
|
|
this.getListData()
|
|
|
|
if (this.id) {
|
|
|
|
if (this.id) {
|
|
|
|
BookingOrderSFGet({ id: this.id }).then(res => {
|
|
|
|
BookingOrderSFGet({ id: this.id }).then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success && res.data.id != 0) {
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
...res.data
|
|
|
|
...res.data
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
this.DetailData = res.data.business
|
|
|
|
// if (this.type == 'Copy') {
|
|
|
|
// if (this.type == 'Copy') {
|
|
|
|
// this.form.setFieldsValue({
|
|
|
|
// this.form.setFieldsValue({
|
|
|
|
// orderStatus: '0'
|
|
|
|
// orderStatus: '0'
|
|
|
@ -1675,9 +1443,7 @@ export default {
|
|
|
|
res.data.detail.forEach((item, index) => {
|
|
|
|
res.data.detail.forEach((item, index) => {
|
|
|
|
item.WebKey = index + 1
|
|
|
|
item.WebKey = index + 1
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.DetailData = res.data.detail
|
|
|
|
|
|
|
|
}, 100)
|
|
|
|
}, 100)
|
|
|
|
} else {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else if (this.WebId || this.Ids) {
|
|
|
|
} else if (this.WebId || this.Ids) {
|
|
|
@ -1687,7 +1453,8 @@ export default {
|
|
|
|
goodsname: '文件',
|
|
|
|
goodsname: '文件',
|
|
|
|
fjCompany: this.userInfo.loginEmpInfo.orgName,
|
|
|
|
fjCompany: this.userInfo.loginEmpInfo.orgName,
|
|
|
|
kdNum: 1,
|
|
|
|
kdNum: 1,
|
|
|
|
currentStateDesc: '新建'
|
|
|
|
currentStateDesc: '新建',
|
|
|
|
|
|
|
|
kdCompany: 'sf'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
if (this.kdAddData[this.WebId]) {
|
|
|
|
if (this.kdAddData[this.WebId]) {
|
|
|
@ -1713,42 +1480,15 @@ export default {
|
|
|
|
commondbCodeProvinceList().then(res => {
|
|
|
|
commondbCodeProvinceList().then(res => {
|
|
|
|
this.ProvinceData = res.data
|
|
|
|
this.ProvinceData = res.data
|
|
|
|
})
|
|
|
|
})
|
|
|
|
GetCarrierlist().then(res => {
|
|
|
|
|
|
|
|
// console.log(res.data, '船公司')
|
|
|
|
|
|
|
|
this.CarrierData = res.data
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
GetPortloadlist().then(res => {
|
|
|
|
|
|
|
|
console.log(res.data, '起始港')
|
|
|
|
|
|
|
|
this.PortloadData = res.data
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
GetPortlist().then(res => {
|
|
|
|
|
|
|
|
console.log(res.data, '目的港')
|
|
|
|
|
|
|
|
this.PortData = res.data
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.getListData()
|
|
|
|
|
|
|
|
console.log('init')
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
this.initTime = true
|
|
|
|
this.initTime = true
|
|
|
|
}, 100)
|
|
|
|
}, 100)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
FnRdispatchStatus(value) {
|
|
|
|
|
|
|
|
let RData = ''
|
|
|
|
|
|
|
|
if (value) {
|
|
|
|
|
|
|
|
this.dispatchStatusList.forEach(item => {
|
|
|
|
|
|
|
|
if (item.code == value) {
|
|
|
|
|
|
|
|
RData = item.name
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return RData
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
removeCheckboxRow() {
|
|
|
|
removeCheckboxRow() {
|
|
|
|
console.log(this.$refs.xTable.selection)
|
|
|
|
|
|
|
|
this.$refs.xTable.selection.forEach(item => {
|
|
|
|
this.$refs.xTable.selection.forEach(item => {
|
|
|
|
this.DetailData.forEach((item2, index2) => {
|
|
|
|
this.DetailData.forEach((item2, index2) => {
|
|
|
|
console.log(item._X_ROW_KEY, item2._X_ROW_KEY)
|
|
|
|
|
|
|
|
if (item._X_ROW_KEY == item2._X_ROW_KEY) {
|
|
|
|
if (item._X_ROW_KEY == item2._X_ROW_KEY) {
|
|
|
|
this.DetailData.splice(index2, 1)
|
|
|
|
this.DetailData.splice(index2, 1)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1759,20 +1499,17 @@ export default {
|
|
|
|
if (!this.DetailData) {
|
|
|
|
if (!this.DetailData) {
|
|
|
|
this.DetailData = []
|
|
|
|
this.DetailData = []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log(this.DetailData, this.DetailData.length ? this.DetailData[this.DetailData.length - 1].WebKey + 1 : 1)
|
|
|
|
|
|
|
|
this.DetailData.push({
|
|
|
|
this.DetailData.push({
|
|
|
|
WebKey: this.DetailData.length ? this.DetailData[this.DetailData.length - 1].WebKey + 1 : 1,
|
|
|
|
WebKey: this.DetailData.length ? this.DetailData[this.DetailData.length - 1].WebKey + 1 : 1,
|
|
|
|
dispatchStatus: '0'
|
|
|
|
dispatchStatus: '0'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
insertEvent2() {
|
|
|
|
insertEvent2() {
|
|
|
|
console.log(this.BusinessData)
|
|
|
|
|
|
|
|
this.$refs.xTable2.selection.forEach(item => {
|
|
|
|
this.$refs.xTable2.selection.forEach(item => {
|
|
|
|
delete item.id
|
|
|
|
delete item.id
|
|
|
|
let type = true
|
|
|
|
let type = true
|
|
|
|
this.DetailData.forEach(item2 => {
|
|
|
|
this.DetailData.forEach(item2 => {
|
|
|
|
if (item._X_ROW_KEY == item2._X_ROW_KEY) {
|
|
|
|
if (item._X_ROW_KEY == item2._X_ROW_KEY) {
|
|
|
|
console.log(item._X_ROW_KEY)
|
|
|
|
|
|
|
|
type = false
|
|
|
|
type = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -1782,12 +1519,10 @@ export default {
|
|
|
|
...item
|
|
|
|
...item
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.warning(`主题单号:${item.mblno},已添加。请勿重复添加数据!`)
|
|
|
|
this.$message.warning(`主提单号:${item.mblno},已添加。请勿重复添加数据!`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log(item)
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.$refs.xTable2.clearCheckboxRow()
|
|
|
|
this.$refs.xTable2.clearCheckboxRow()
|
|
|
|
console.log(this.DetailData)
|
|
|
|
|
|
|
|
// if (!this.BusinessDataBackup) {
|
|
|
|
// if (!this.BusinessDataBackup) {
|
|
|
|
// this.BusinessDataBackup = []
|
|
|
|
// this.BusinessDataBackup = []
|
|
|
|
// }
|
|
|
|
// }
|
|
|
@ -1802,20 +1537,6 @@ export default {
|
|
|
|
// dispatchStatus: '0'
|
|
|
|
// dispatchStatus: '0'
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
// this.BusinessData = this.BusinessDataBackup
|
|
|
|
// this.BusinessData = this.BusinessDataBackup
|
|
|
|
},
|
|
|
|
|
|
|
|
AddShandleSubmit() {
|
|
|
|
|
|
|
|
console.log(this.AddsData)
|
|
|
|
|
|
|
|
if (!this.ContactsData) {
|
|
|
|
|
|
|
|
this.ContactsData = []
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
for (let index = 0; index < this.AddsData.num; index++) {
|
|
|
|
|
|
|
|
this.ContactsData.push({
|
|
|
|
|
|
|
|
WebKey: this.ContactsData.length ? this.ContactsData[this.ContactsData.length - 1].WebKey + 1 : 1,
|
|
|
|
|
|
|
|
dispatchStatus: '0',
|
|
|
|
|
|
|
|
cntCode: this.AddsData.driverId
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.AddSVisible = false
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|