货运位置

szh_zidingyibiaoti
lilu 2 years ago
parent 8401cba8a9
commit 09abefbeb0

Binary file not shown.

@ -471,7 +471,31 @@ export default {
</span> </span>
) )
} }
} },
// {
// field: 'weighdate',
// key: 'weighdate',
// title: '',
// align: 'left',
// width: 120,
// edit: false,
// renderBodyCell: ({ row, column, rowIndex }, h) => {
// return (
// <a-date-picker on-change={(date, dateString) => {
// console.log('== ==', dateString)
// this.tableData[rowIndex].weighdate = dateString
// row['weighdate'] = dateString
// }} />
// )
// },
// renderHeaderCell: ({ column }, h) => {
// return (
// <span class="text-bold" style="text-align: center;">
// {this.rules.weightype.required ? <i style="color: #f00">*</i> : ''} {column.title}
// </span>
// )
// }
// },
], ],
modelColumns: [ modelColumns: [
{ {

@ -397,7 +397,7 @@
<!-- v-show="goodStatusShow" --> <!-- v-show="goodStatusShow" -->
<div <div
class="goods-hovers-list" class="goods-hovers-list"
:class="{ 'hide-goods-hover': !goodStatusShow }" :class="[{ 'hide-goods-hover': !goodStatusShow }, {'seat-top': goodStatusSeat === 'top'}, {'seat-bottom': goodStatusSeat === 'bottom'}]"
:style="{ top: `${goodStatusScreenY}px`, left: `${goodStatusScreenX}px` }" :style="{ top: `${goodStatusScreenY}px`, left: `${goodStatusScreenX}px` }"
> >
<div class="title">货运动态</div> <div class="title">货运动态</div>
@ -760,6 +760,7 @@ export default {
goodStatusScreenX: 0, goodStatusScreenX: 0,
goodStatusScreenY: 0, goodStatusScreenY: 0,
goodStatusData: null, goodStatusData: null,
goodStatusSeat: 'bottom',
editingForm: this.$form.createForm(this), editingForm: this.$form.createForm(this),
vesselData: [], vesselData: [],
WebVessel: '', WebVessel: '',
@ -1620,8 +1621,15 @@ export default {
// this.goodStatusScreenX = e.pageX - 300 // this.goodStatusScreenX = e.pageX - 300
this.goodStatusScreenX = e.pageX - 139 this.goodStatusScreenX = e.pageX - 139
} }
console.log('== 距离 ==', e.pageY, window.innerHeight - 350)
if (e.pageY > (window.innerHeight - 340)) {
this.goodStatusScreenY = e.pageY - 370 - 10
this.goodStatusSeat = 'top'
} else {
this.goodStatusScreenY = e.pageY + 25
this.goodStatusSeat = 'bottom'
}
// this.goodStatusScreenY = e.pageY + 20 // this.goodStatusScreenY = e.pageY + 20
this.goodStatusScreenY = e.pageY + 25
this.goodStatusData = data.goodsStatusList this.goodStatusData = data.goodsStatusList
this.goodStatusShow = true this.goodStatusShow = true
}, },
@ -2299,7 +2307,7 @@ export default {
.active { .active {
cursor: pointer; cursor: pointer;
// color: @primary-color; // color: @primary-color;
color: #004d11; color: #336600;
} }
} }
} }
@ -2337,7 +2345,7 @@ export default {
.active { .active {
cursor: pointer; cursor: pointer;
// color: @primary-color; // color: @primary-color;
color: #004d11; color: #336600;
} }
&:nth-of-type(3) { &:nth-of-type(3) {
i { i {
@ -2560,6 +2568,14 @@ export default {
transition: 0.5s all; transition: 0.5s all;
display: block; display: block;
opacity: 1; opacity: 1;
&.seat-top{
&::before {
display: none;
// content: '';
// bottom: -15px;
// left: 50%;
}
}
&.hide-goods-hover { &.hide-goods-hover {
display: none; display: none;
opacity: 0; opacity: 0;
@ -2580,6 +2596,7 @@ export default {
left: 50%; left: 50%;
margin-left: -16px; margin-left: -16px;
} }
.title { .title {
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;

@ -94,7 +94,7 @@
import { AutoComplete } from 'ant-design-vue' import { AutoComplete } from 'ant-design-vue'
import inputView from '../components/inputView' import inputView from '../components/inputView'
import datePickerView from '../components/datePickerView' import datePickerView from '../components/datePickerView'
import { mapGetters } from 'vuex'
let timer; let timer;
export default { export default {
components: { components: {
@ -162,6 +162,9 @@ export default {
dataSourceList: [] dataSourceList: []
} }
}, },
computed: {
...mapGetters(['carrierList', 'yardList', 'packageList', 'issuetypeList', 'blfrtList', 'lineList', 'bookingInitData'])
},
mounted() { }, mounted() { },
methods: { methods: {
debounce (func, wait, ...args) { debounce (func, wait, ...args) {
@ -276,10 +279,18 @@ export default {
}, },
completeChangeFirst (value) { completeChangeFirst (value) {
if (this.value) { return false } if (this.value) { return false }
this.$emit('getCompleteList', { //
form: this.labelData, // console.log(this.type, this.bookingInitData)
value: value || '' // const label = this.labelData.label.toLowerCase()
}) // const arr = this.bookingInitData[`${label}InitList`]
// if (arr.length > 0) {
// this.dataSourceList = arr
// } else {
this.$emit('getCompleteList', {
form: this.labelData,
value: value || ''
})
// }
}, },
inputChange (data) { inputChange (data) {
this.changeInput(data) this.changeInput(data)

Loading…
Cancel
Save