|
|
@ -4,14 +4,14 @@ import { useOptionsStore } from '/@/store/modules/options'
|
|
|
|
import { SlotFlags } from '@vue/shared'
|
|
|
|
import { SlotFlags } from '@vue/shared'
|
|
|
|
import { getOptions } from '/@/hooks/dict'
|
|
|
|
import { getOptions } from '/@/hooks/dict'
|
|
|
|
import { BookingLabelList, GetSlotUseToConfig } from './api'
|
|
|
|
import { BookingLabelList, GetSlotUseToConfig } from './api'
|
|
|
|
import { GetClientListByCode, GetControllerClientList,GetCarrierSelectList } from '/@/api/common'
|
|
|
|
import { GetClientListByCode, GetControllerClientList, GetCarrierSelectList } from '/@/api/common'
|
|
|
|
const optionsStore = useOptionsStore()
|
|
|
|
const optionsStore = useOptionsStore()
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
GetCarrierlist,
|
|
|
|
GetCarrierlist,
|
|
|
|
GetClientLanesSelectList,
|
|
|
|
GetClientLanesSelectList,
|
|
|
|
GetClientPortSelectList,
|
|
|
|
GetClientPortSelectList,
|
|
|
|
GetSaleList,
|
|
|
|
GetSaleList,
|
|
|
|
GetClientGoodsList
|
|
|
|
GetClientGoodsList,
|
|
|
|
} from '/@/views/operation/seaexport/api/BookingLedger'
|
|
|
|
} from '/@/views/operation/seaexport/api/BookingLedger'
|
|
|
|
// 字典
|
|
|
|
// 字典
|
|
|
|
import { getDictOption } from '/@/utils/dictUtil'
|
|
|
|
import { getDictOption } from '/@/utils/dictUtil'
|
|
|
@ -37,7 +37,7 @@ const sharedOnCell = (_, index) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const sharedOnCell1 = (_, index) => { }
|
|
|
|
const sharedOnCell1 = (_, index) => {}
|
|
|
|
export const searchFormSchema: FormSchema[] = [
|
|
|
|
export const searchFormSchema: FormSchema[] = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'slotBookingNo',
|
|
|
|
field: 'slotBookingNo',
|
|
|
@ -96,11 +96,9 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
|
valueField: 'ediCode',
|
|
|
|
valueField: 'ediCode',
|
|
|
|
showName: 'ediCode',
|
|
|
|
showName: 'ediCode',
|
|
|
|
immediate: false,
|
|
|
|
immediate: false,
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
onChange: (e, obj) => {},
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'PORTDISCHARGE',
|
|
|
|
field: 'PORTDISCHARGE',
|
|
|
@ -117,11 +115,9 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
|
valueField: 'ediCode',
|
|
|
|
valueField: 'ediCode',
|
|
|
|
showName: 'ediCode',
|
|
|
|
showName: 'ediCode',
|
|
|
|
immediate: false,
|
|
|
|
immediate: false,
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
onChange: (e, obj) => {},
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'etd',
|
|
|
|
field: 'etd',
|
|
|
@ -299,7 +295,7 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onChange: (e, obj) => { },
|
|
|
|
onChange: (e, obj) => {},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -875,7 +871,7 @@ export const detialForm: FormSchema[] = [
|
|
|
|
formModel.carrierId = ''
|
|
|
|
formModel.carrierId = ''
|
|
|
|
formModel.carrierCode = ''
|
|
|
|
formModel.carrierCode = ''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1038,16 +1034,16 @@ export const detialForm: FormSchema[] = [
|
|
|
|
immediate: false,
|
|
|
|
immediate: false,
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
if (e && obj) {
|
|
|
|
if (e && obj) {
|
|
|
|
formModel.portLoadId = obj.id
|
|
|
|
formModel.portLoadId = obj.id
|
|
|
|
formModel.portLoadCode = obj.ediCode
|
|
|
|
formModel.portLoadCode = obj.ediCode
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!e && !obj) {
|
|
|
|
if (!e && !obj) {
|
|
|
|
formModel.portLoadId = null
|
|
|
|
formModel.portLoadId = null
|
|
|
|
formModel.portLoadCode = null
|
|
|
|
formModel.portLoadCode = null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: '',
|
|
|
|
label: '',
|
|
|
@ -1234,7 +1230,7 @@ export const useDetailForm: FormSchema[] = [
|
|
|
|
options: useTypeList,
|
|
|
|
options: useTypeList,
|
|
|
|
fieldNames: {
|
|
|
|
fieldNames: {
|
|
|
|
label: 'name',
|
|
|
|
label: 'name',
|
|
|
|
value: 'code'
|
|
|
|
value: 'code',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
if (e && obj) {
|
|
|
|
if (e && obj) {
|
|
|
@ -1312,7 +1308,7 @@ export const useDetailForm: FormSchema[] = [
|
|
|
|
if (!e && !obj) {
|
|
|
|
if (!e && !obj) {
|
|
|
|
formModel.useToVal = ''
|
|
|
|
formModel.useToVal = ''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1345,7 +1341,7 @@ export const useDetailForm: FormSchema[] = [
|
|
|
|
if (!e && !obj) {
|
|
|
|
if (!e && !obj) {
|
|
|
|
formModel.useToVal = null
|
|
|
|
formModel.useToVal = null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1379,9 +1375,9 @@ export const useDetailForm: FormSchema[] = [
|
|
|
|
if (!v && !obj) {
|
|
|
|
if (!v && !obj) {
|
|
|
|
formModel.useToVal = null
|
|
|
|
formModel.useToVal = null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'useToValShow',
|
|
|
|
field: 'useToValShow',
|
|
|
@ -1410,7 +1406,7 @@ export const useDetailForm: FormSchema[] = [
|
|
|
|
if (!v && !obj) {
|
|
|
|
if (!v && !obj) {
|
|
|
|
formModel.useToVal = null
|
|
|
|
formModel.useToVal = null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1431,7 +1427,7 @@ export const useDetailForm: FormSchema[] = [
|
|
|
|
options: goodsList.value,
|
|
|
|
options: goodsList.value,
|
|
|
|
fieldNames: {
|
|
|
|
fieldNames: {
|
|
|
|
label: 'showName',
|
|
|
|
label: 'showName',
|
|
|
|
value: 'hsCode'
|
|
|
|
value: 'hsCode',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onChange: (v, obj) => {
|
|
|
|
onChange: (v, obj) => {
|
|
|
|
if (v && obj) {
|
|
|
|
if (v && obj) {
|
|
|
@ -1441,30 +1437,29 @@ export const useDetailForm: FormSchema[] = [
|
|
|
|
formModel.useToVal = null
|
|
|
|
formModel.useToVal = null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onSearch:(val)=>{
|
|
|
|
onSearch: (val) => {
|
|
|
|
GetClientGoodsList({queryKey:val}).then(res=>{
|
|
|
|
GetClientGoodsList({ queryKey: val }).then((res) => {
|
|
|
|
res.data.forEach(item=>{
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
item.showName = item.hsCode + '/' + item.goodName
|
|
|
|
item.showName = item.hsCode + '/' + item.goodName
|
|
|
|
})
|
|
|
|
})
|
|
|
|
goodsList.value = res.data
|
|
|
|
goodsList.value = res.data
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
]
|
|
|
|
let useTypeList = []
|
|
|
|
let useTypeList = []
|
|
|
|
const goodsList = ref([])
|
|
|
|
const goodsList = ref([])
|
|
|
|
function getUseTypeList() {
|
|
|
|
function getUseTypeList() {
|
|
|
|
GetSlotUseToConfig().then(res => {
|
|
|
|
GetSlotUseToConfig().then((res) => {
|
|
|
|
useTypeList = res.data
|
|
|
|
useTypeList = res.data
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function getGoodsList() {
|
|
|
|
function getGoodsList() {
|
|
|
|
GetClientGoodsList().then(res => {
|
|
|
|
GetClientGoodsList().then((res) => {
|
|
|
|
res.data.forEach(item=>{
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
item.showName = item.hsCode + '/' + item.goodName
|
|
|
|
item.showName = item.hsCode + '/' + item.goodName
|
|
|
|
})
|
|
|
|
})
|
|
|
|
goodsList.value = res.data
|
|
|
|
goodsList.value = res.data
|
|
|
@ -1472,4 +1467,4 @@ function getGoodsList() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
getUseTypeList()
|
|
|
|
getUseTypeList()
|
|
|
|
getGoodsList()
|
|
|
|
getGoodsList()
|
|
|
|