szh_zidingyibiaoti
张同海 2 years ago
commit c54b9d8ba5

@ -178,7 +178,7 @@ const initDetail = {
pono: '', pono: '',
mblno: '', mblno: '',
hblno: '', hblno: '',
EPCode: '', // eslEP epCode: '',
custno: '', custno: '',
contractno: '', contractno: '',
vessel: '', vessel: '',
@ -790,11 +790,8 @@ export default {
}) })
} }
} else if (field[0] === 'edi') { } else if (field[0] === 'edi') {
// type 1
const typeArr1 = ['WeiTuoFang', 'SendCode', 'ReceiveCode', 'NotifyCdoe', 'SalerCode', 'MasterBolIndicator', 'EmanifestHbl', 'ConsigneeEdiCode', 'ShipperEdiCode', 'OpEName', 'OpTel', 'OpEmail', 'GoodsName', 'MasterBolIndicatorName', 'SalerCodeName', 'OrderRemark', 'ExRemark1', 'ExRemark2', 'ExRemark3', 'ExRemark4', 'KingTareweight'] const typeArr1 = ['WeiTuoFang', 'SendCode', 'ReceiveCode', 'NotifyCdoe', 'SalerCode', 'MasterBolIndicator', 'EmanifestHbl', 'ConsigneeEdiCode', 'ShipperEdiCode', 'OpEName', 'OpTel', 'OpEmail', 'GoodsName', 'MasterBolIndicatorName', 'SalerCodeName', 'OrderRemark', 'ExRemark1', 'ExRemark2', 'ExRemark3', 'ExRemark4', 'KingTareweight']
// type2 +
const typeArr2 = ['EDIAttn', 'EDIAttnTel', 'EDIAttnMail', 'AMSConsignee', 'AMSNotifyParty'] const typeArr2 = ['EDIAttn', 'EDIAttnTel', 'EDIAttnMail', 'AMSConsignee', 'AMSNotifyParty']
// type 3
const typeArr3 = ['ACIHBL', 'CKHI', 'CNCM', 'WNCM'] const typeArr3 = ['ACIHBL', 'CKHI', 'CNCM', 'WNCM']
const typeArr4 = ['S0CC0C'] const typeArr4 = ['S0CC0C']
if (typeArr1.includes(field[1])) { if (typeArr1.includes(field[1])) {
@ -818,7 +815,7 @@ export default {
emnuDefaultLabel (field) { emnuDefaultLabel (field) {
switch (field) { switch (field) {
case 'EPCODE': case 'EPCODE':
return 'EPCode' return 'epCode'
case 'DZREMARK': case 'DZREMARK':
return 'dzRemark' return 'dzRemark'
case 'CZREMARK': case 'CZREMARK':
@ -946,8 +943,8 @@ export default {
}) })
}, },
setDeatilsFun(res) { setDeatilsFun(res, overSet = false) {
if (this.$route.query.isCopy) { if (this.$route.query.isCopy && !overSet) {
res.data.mblno = '' res.data.mblno = ''
delete res.data.id delete res.data.id
this.isAdd = true this.isAdd = true
@ -958,7 +955,6 @@ export default {
if (!res.data.bookingEDIExt) { if (!res.data.bookingEDIExt) {
res.data.bookingEDIExt = bookingEDIExt res.data.bookingEDIExt = bookingEDIExt
} }
//
if (res.data.ctnInputs.length > 0) { if (res.data.ctnInputs.length > 0) {
res.data.ctnInputs.map((item, index) => { res.data.ctnInputs.map((item, index) => {
if (item.weightype === '累加') { if (item.weightype === '累加') {
@ -1011,6 +1007,9 @@ export default {
} else { } else {
this.$refs.sedOrder.init([]) this.$refs.sedOrder.init([])
} }
if (this.bookingDetails.ctnInputs.length > 0) {
this.$refs.goodsTable.init()
}
}, 1200) }, 1200)
this.$forceUpdate() this.$forceUpdate()
}, },
@ -1169,14 +1168,14 @@ export default {
mblno: res.data.mblno mblno: res.data.mblno
} }
}) })
this.setDeatilsFun(res) this.setDeatilsFun(res, true)
setTimeout(() => { setTimeout(() => {
this.inAddSave = false this.inAddSave = false
}, 2000) }, 2000)
} else if (that.$route.query.mblno === that.bookingDetails.mblno) { } else if (that.$route.query.mblno === that.bookingDetails.mblno) {
that.isCopy = false that.isCopy = false
that.isAdd = false that.isAdd = false
this.setDeatilsFun(res) this.setDeatilsFun(res, true)
that.checkSaveFun({ type: 'hbList', hasChange: false }) that.checkSaveFun({ type: 'hbList', hasChange: false })
that.checkSaveFun({ type: 'details', hasChange: false }) that.checkSaveFun({ type: 'details', hasChange: false })
const newBookingList = JSON.parse(JSON.stringify(this.bookingList)) const newBookingList = JSON.parse(JSON.stringify(this.bookingList))
@ -1194,7 +1193,7 @@ export default {
that.isAdd = false that.isAdd = false
this.inAddSave = true this.inAddSave = true
this.id = res.data.id this.id = res.data.id
this.setDeatilsFun(res) this.setDeatilsFun(res, true)
const newBookingList = JSON.parse(JSON.stringify(this.bookingList)) const newBookingList = JSON.parse(JSON.stringify(this.bookingList))
const newBookingGridOptions = JSON.parse(JSON.stringify(this.bookingGridOptions)) const newBookingGridOptions = JSON.parse(JSON.stringify(this.bookingGridOptions))
this.$set(newBookingList, res.data.id, res.data) this.$set(newBookingList, res.data.id, res.data)

@ -138,9 +138,9 @@
:labelCol="labelCol2" :labelCol="labelCol2"
:wrapperCol="wrapperCol2" :wrapperCol="wrapperCol2"
has-feedback has-feedback
prop="EPCode" prop="epCode"
> >
<inputView type="EPCode" :parentVal="details.EPCode" @getInputChange="inputChange" /> <inputView type="epCode" :parentVal="details.epCode" @getInputChange="inputChange" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
</template> </template>
@ -1142,6 +1142,9 @@ export default {
if (type === 'voyno' && this.details.carrierid === 'ESL') { if (type === 'voyno' && this.details.carrierid === 'ESL') {
this.details.voynoinner = this.details[type] this.details.voynoinner = this.details[type]
} }
if (type === 'epCode' && this.details.carrierid === 'ESL') {
this.details.tmblno = this.details[type]
}
this.$forceUpdate() this.$forceUpdate()
}, },
getSelectViewRes({ type, res }) { getSelectViewRes({ type, res }) {

@ -990,7 +990,7 @@ export default {
watch: { watch: {
details: { details: {
handler(nval, oval) { handler(nval, oval) {
// console.log('=== table ===', nval.ctnInputs, this.pType, this.inTableLoad) console.log('=== 修改table内容 ===', nval.ctnInputs, this.pType, this.inTableLoad)
if (!this.inSave && !this.inTableLoad) { if (!this.inSave && !this.inTableLoad) {
this.$emit('changeDetail', { this.$emit('changeDetail', {
detail: nval, detail: nval,
@ -1135,6 +1135,7 @@ export default {
this.$refs['tableRef'].setCellSelection({ rowKey, colKey }); this.$refs['tableRef'].setCellSelection({ rowKey, colKey });
}, },
init() { init() {
console.log('== 箱信息 - init ==')
this.inTableLoad = true this.inTableLoad = true
if (Object.keys(this.details).length > 0) { if (Object.keys(this.details).length > 0) {
const arr = [] const arr = []

@ -1313,7 +1313,18 @@ export default {
} }
}, },
getTextareaChange({ type, value }) { getTextareaChange({ type, value }) {
this.details[type] = value let val = ''
for (var i in value) {
let k = ''
if (value[i] === String.fromCharCode(160)) {
k = ' '
} else {
k = value[i]
}
val += k
}
this.details[type] = val
document.getElementById('notifyparty-scroll').value = val
this.$forceUpdate() this.$forceUpdate()
}, },
inputChange({ type, value }) { inputChange({ type, value }) {

@ -169,7 +169,7 @@ const sedDetail = {
pono: '', pono: '',
mblno: '', mblno: '',
hblno: '', hblno: '',
EPCode: '', // eslEP epCode: '',
custno: '', custno: '',
contractno: '', contractno: '',
vessel: '', vessel: '',

@ -9,7 +9,7 @@ export default {
custno: [{ required: false, message: '请输入订舱编号', trigger: 'change' }], custno: [{ required: false, message: '请输入订舱编号', trigger: 'change' }],
contractno: [{ required: false, message: '请输入运费协议号', trigger: 'change' }], contractno: [{ required: false, message: '请输入运费协议号', trigger: 'change' }],
tmblno: [{ required: false, message: '请输入真提单号', trigger: 'change' }], // VOLTA WHL CSL tmblno: [{ required: false, message: '请输入真提单号', trigger: 'change' }], // VOLTA WHL CSL
EPCode: [{ required: false, message: '请输入EP号', trigger: 'change' }], // esl epCode: [{ required: false, message: '请输入EP号', trigger: 'change' }], // esl
vessel: [{ required: false, message: '请输入船名', trigger: 'change' }], vessel: [{ required: false, message: '请输入船名', trigger: 'change' }],
lanecode: [{ required: false, message: '请输入航线代码', trigger: 'change' }], // esl lanecode: [{ required: false, message: '请输入航线代码', trigger: 'change' }], // esl
voynoinner: [{ required: false, message: '请输入内部航次', trigger: 'change' }], voynoinner: [{ required: false, message: '请输入内部航次', trigger: 'change' }],

@ -74,7 +74,6 @@ let timer
Vue.directive('clickDown', { Vue.directive('clickDown', {
inserted(el, binding, vnode) { inserted(el, binding, vnode) {
let clickTimer = null let clickTimer = null
//
el.addEventListener('click', () => { el.addEventListener('click', () => {
if (clickTimer) { if (clickTimer) {
window.clearTimeout(clickTimer); window.clearTimeout(clickTimer);
@ -84,7 +83,6 @@ Vue.directive('clickDown', {
binding.value.clickFun() binding.value.clickFun()
}, 300); }, 300);
}) })
//
el.addEventListener('dblclick', () => { el.addEventListener('dblclick', () => {
if (clickTimer) { if (clickTimer) {
window.clearTimeout(clickTimer); window.clearTimeout(clickTimer);
@ -365,7 +363,7 @@ export default {
} }
}, },
filterOption(input, option) { filterOption(input, option) {
if (this.openSearch) { // if (this.openSearch) {
return true return true
} else { } else {
return option.componentOptions.children[1].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 return option.componentOptions.children[1].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
@ -409,7 +407,6 @@ export default {
} }
}, },
getSelectFirst (e, canClick = true) { getSelectFirst (e, canClick = true) {
// console.log('', e, this.value)
if (canClick) { if (canClick) {
this.$refs.selectView.$refs.vcSelect.$refs.arrow.click() this.$refs.selectView.$refs.vcSelect.$refs.arrow.click()
} else { } else {
@ -429,13 +426,11 @@ export default {
return false return false
} }
if (!e) { if (!e) {
console.log('首次搜索内容', e, this.type, this.bookingInitData)
if (!['vessel', 'lineName'].includes(this.type) && this.bookingInitData[`${this.type}InitList`].length > 0) { if (!['vessel', 'lineName'].includes(this.type) && this.bookingInitData[`${this.type}InitList`].length > 0) {
console.log(this.bookingInitData[`${this.type}InitList`]) console.log(this.bookingInitData[`${this.type}InitList`])
this.selectList = this.bookingInitData[`${this.type}InitList`] this.selectList = this.bookingInitData[`${this.type}InitList`]
return false return false
} }
// -
if (this.openSearch && this.value && this.selectList.length > 0) { if (this.openSearch && this.value && this.selectList.length > 0) {
return false return false
} else if (this.openSearch && this.value && this.selectList.length === 0) { } else if (this.openSearch && this.value && this.selectList.length === 0) {
@ -495,7 +490,6 @@ export default {
}, },
openSelect(open) { openSelect(open) {
console.log('== 测试鼠标滑过 ==')
if (!this.open) { if (!this.open) {
this.getSelectFirst('', false) this.getSelectFirst('', false)
} else { } else {

@ -97,17 +97,13 @@
<div class="right BookTopButton"> <div class="right BookTopButton">
<span class="tab-btn" @click="tableRefresh"> <span class="tab-btn" @click="tableRefresh">
<a-icon type="redo" :style="{ fontSize: '14px', transform: 'rotate(278deg)' }" /> <a-icon type="redo" :style="{ fontSize: '14px', transform: 'rotate(278deg)' }" />
<!--刷新-->
</span> </span>
<span class="tab-btn" @click="tableHeaderEdit"> <span class="tab-btn" @click="tableHeaderEdit">
<a-icon type="setting" :style="{ fontSize: '14px' }" /> <a-icon type="setting" :style="{ fontSize: '14px' }" />
<!--设置-->
</span> </span>
</div> </div>
</template> </template>
</vxe-toolbar> </vxe-toolbar>
<!-- :scroll-x="{gt: 40}"
:scroll-y="{gt: 40}" -->
<vxe-grid <vxe-grid
ref="xGrid" ref="xGrid"
v-bind="gridOptions" v-bind="gridOptions"
@ -334,7 +330,6 @@
</template> </template>
</template> </template>
</div> </div>
<!-- 运踪弹窗 start -->
<a-modal width="50vw" :maskClosable="false" v-model="traceModalVisible" title="运踪订阅"> <a-modal width="50vw" :maskClosable="false" v-model="traceModalVisible" title="运踪订阅">
<div class="trace-box"> <div class="trace-box">
<a-form> <a-form>
@ -362,8 +357,6 @@
<a-button type="primary" @click="traceSend"></a-button> <a-button type="primary" @click="traceSend"></a-button>
</template> </template>
</a-modal> </a-modal>
<!-- 运踪弹窗 end -->
<!-- 批量编辑 start -->
<a-modal <a-modal
width="820px" width="820px"
:maskClosable="false" :maskClosable="false"
@ -544,7 +537,6 @@
</a-form> </a-form>
</div> </div>
</a-modal> </a-modal>
<!-- 批量编辑 end -->
</div> </div>
</template> </template>
<script> <script>
@ -597,9 +589,7 @@ export default {
return { return {
ResetType: true, ResetType: true,
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' }, tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
// /
advanced: false, advanced: false,
//
formData: formInitData, formData: formInitData,
formRes: {}, formRes: {},
searchData: {}, searchData: {},
@ -607,7 +597,6 @@ export default {
formMoreData: null, formMoreData: null,
formBtnCol: 8, formBtnCol: 8,
formBtnLoading: false, formBtnLoading: false,
//
setVisible: false, setVisible: false,
showColumns: null, showColumns: null,
gridOptions: { gridOptions: {
@ -637,11 +626,9 @@ export default {
// parentField: 'parentId', // parentField: 'parentId',
// }, // },
}, },
//
formTableData: JSON.parse(JSON.stringify(initData.columns)), formTableData: JSON.parse(JSON.stringify(initData.columns)),
fromTableAllData: null, fromTableAllData: null,
formMoreTableData: null, formMoreTableData: null,
//
addVisible: false, addVisible: false,
carrierRadio: 'CMA', carrierRadio: 'CMA',
radioStyle: { radioStyle: {
@ -649,14 +636,11 @@ export default {
height: '50px', height: '50px',
lineHeight: '50px' lineHeight: '50px'
}, },
//
moreNumVisible: false, moreNumVisible: false,
moreNumVal: '', moreNumVal: '',
//
tableOrderLabel: '', tableOrderLabel: '',
tableOrderType: '', tableOrderType: '',
screenWidth: document.body.clientWidth, screenWidth: document.body.clientWidth,
//
remarkShow: false, remarkShow: false,
remarkScreenX: 0, remarkScreenX: 0,
remarkScreenY: 0, remarkScreenY: 0,
@ -670,12 +654,10 @@ export default {
traceValue: [], traceValue: [],
addNum: 0, addNum: 0,
tableHeight: 0, tableHeight: 0,
//
goodStatusShow: false, goodStatusShow: false,
goodStatusScreenX: 0, goodStatusScreenX: 0,
goodStatusScreenY: 0, goodStatusScreenY: 0,
goodStatusData: null, goodStatusData: null,
//
editingForm: this.$form.createForm(this), editingForm: this.$form.createForm(this),
vesselData: [], vesselData: [],
WebVessel: '', WebVessel: '',
@ -733,7 +715,7 @@ export default {
this.formAllData = JSON.parse(JSON.stringify(initData.condAllData)) this.formAllData = JSON.parse(JSON.stringify(initData.condAllData))
this.fromTableAllData = JSON.parse(JSON.stringify(initData.columnsAllData)) this.fromTableAllData = JSON.parse(JSON.stringify(initData.columnsAllData))
this.tableHeight = document.body.clientHeight - 230 this.tableHeight = document.body.clientHeight - 230
// this.getList({}, true) this.getList({}, true)
this.getConfigUser(true) this.getConfigUser(true)
this.getCarrier() this.getCarrier()
}, },
@ -759,7 +741,6 @@ export default {
return false return false
} }
const newData = JSON.parse(JSON.stringify(this.bookingGridOptions)) const newData = JSON.parse(JSON.stringify(this.bookingGridOptions))
// N
if (this.bookingGridOptions.data && this.bookingGridOptions.data.length > 0) { if (this.bookingGridOptions.data && this.bookingGridOptions.data.length > 0) {
setTimeout(() => { setTimeout(() => {
const copyArr = JSON.parse(JSON.stringify(this.bookingGridOptions.data)) const copyArr = JSON.parse(JSON.stringify(this.bookingGridOptions.data))
@ -773,7 +754,6 @@ export default {
}, 600) }, 600)
}, 10) }, 10)
} }
//
// if (this.bookingGridOptions.data && this.bookingGridOptions.data.length > 0) { // if (this.bookingGridOptions.data && this.bookingGridOptions.data.length > 0) {
// console.log(this.gridOptions.loading) // console.log(this.gridOptions.loading)
// const copyArr = JSON.parse(JSON.stringify(this.bookingGridOptions.data)) // const copyArr = JSON.parse(JSON.stringify(this.bookingGridOptions.data))
@ -892,9 +872,7 @@ export default {
this.gridOptions.data = [] this.gridOptions.data = []
this.getList(queryParam) this.getList(queryParam)
}, },
//
getConfigUser(isInit = false) { getConfigUser(isInit = false) {
//
const query = { const query = {
typeArr: ['booking_list_cond', 'booking_list_column', 'booking_list_page'] typeArr: ['booking_list_cond', 'booking_list_column', 'booking_list_page']
} }
@ -915,7 +893,6 @@ export default {
break break
} }
}) })
console.log('==获取数据,表单 ==', $data.booking_list_cond)
if (Object.keys($data).includes('booking_list_cond')) { if (Object.keys($data).includes('booking_list_cond')) {
this.setFormData($data.booking_list_cond, false, true) this.setFormData($data.booking_list_cond, false, true)
} else { } else {
@ -1091,7 +1068,6 @@ export default {
} }
}, },
//
getFormData(isReset = false) { getFormData(isReset = false) {
DjyUserConfigGet({ type: 'booking_list_cond' }).then(res => { DjyUserConfigGet({ type: 'booking_list_cond' }).then(res => {
this.setFormData(res.data) this.setFormData(res.data)
@ -1111,7 +1087,6 @@ export default {
return Codeissuetypelist return Codeissuetypelist
} }
}, },
//
getFromSelectData(func, ...args) { getFromSelectData(func, ...args) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
func(...args).then(res => { func(...args).then(res => {
@ -1129,7 +1104,6 @@ export default {
} }
this.gridOptions.pagerConfig.currentPage = currentPage this.gridOptions.pagerConfig.currentPage = currentPage
this.gridOptions.pagerConfig.pageSize = pageSize this.gridOptions.pagerConfig.pageSize = pageSize
console.log('== 当前搜索内容 ==', this.searchData)
this.getList(this.searchData) this.getList(this.searchData)
}, },
@ -1145,7 +1119,6 @@ export default {
}) })
}, },
// form
toggleAdvanced() { toggleAdvanced() {
this.advanced = !this.advanced this.advanced = !this.advanced
if (!this.advanced) { if (!this.advanced) {
@ -1164,7 +1137,6 @@ export default {
tableRefresh() { tableRefresh() {
const data = { ...this.formRes } const data = { ...this.formRes }
this.searchData = JSON.parse(JSON.stringify(data)) this.searchData = JSON.parse(JSON.stringify(data))
console.log('查询 - 设置当前搜索', data)
this.init(this.searchData) this.init(this.searchData)
this.formRes = data this.formRes = data
}, },
@ -1207,7 +1179,6 @@ export default {
this.formRes[item] = '' this.formRes[item] = ''
}) })
this.searchData = JSON.parse(JSON.stringify(this.formRes)) this.searchData = JSON.parse(JSON.stringify(this.formRes))
console.log('== 重置表单内容 ==', this.searchData)
Object.keys(this.$refs).map((label, index) => { Object.keys(this.$refs).map((label, index) => {
if (label.includes('fromlabel-') && this.$refs[label].length > 0) { if (label.includes('fromlabel-') && this.$refs[label].length > 0) {
this.$refs[label][0].$data.value = '' this.$refs[label][0].$data.value = ''
@ -1229,7 +1200,6 @@ export default {
this.formRes = {} this.formRes = {}
this.searchData = {} this.searchData = {}
console.log('== 设置表头 ==', this.searchData)
DjyUserConfigAdd({ DjyUserConfigAdd({
type: 'booking_list_cond', type: 'booking_list_cond',
configJson: JSON.stringify(arr) configJson: JSON.stringify(arr)
@ -1260,7 +1230,6 @@ export default {
} else if (form.type === 'complete') { } else if (form.type === 'complete') {
this.formRes[form.label] = value this.formRes[form.label] = value
} }
console.log('修改了表单内容', this.formRes)
this.$forceUpdate() this.$forceUpdate()
}, },
@ -1333,12 +1302,10 @@ export default {
query.MBLNO = arr.toString() query.MBLNO = arr.toString()
} }
if (isInit) { if (isInit) {
// -
query.firstFlag = true query.firstFlag = true
} }
BookingOrderPage(query) BookingOrderPage(query)
.then(res => { .then(res => {
// if (isInit) { this.getList(this.formRes) }
if (res.success) { if (res.success) {
let newBookingList = {} let newBookingList = {}
if (query.PageNo !== 1) { if (query.PageNo !== 1) {
@ -1378,13 +1345,11 @@ export default {
this.$set(this.gridOptions.pagerConfig, 'columns', JSON.parse(JSON.stringify(initData.columns))) this.$set(this.gridOptions.pagerConfig, 'columns', JSON.parse(JSON.stringify(initData.columns)))
// debugger // debugger
// this.$set(this.gridOptions, 'data', [..._data]) // this.$set(this.gridOptions, 'data', [..._data])
console.log('== 即将渲染列表 ==', isAdd)
this.$refs.xGrid.reloadData(_data).then(() => { this.$refs.xGrid.reloadData(_data).then(() => {
this.$set(this.gridOptions, 'loading', false) this.$set(this.gridOptions, 'loading', false)
}) })
this.$set(this.gridOptions.pagerConfig, 'total', res.data.totalCount) this.$set(this.gridOptions.pagerConfig, 'total', res.data.totalCount)
this.setBookingList(newBookingList) this.setBookingList(newBookingList)
// console.log(this.gridOptions.data.length, Object.keys(newBookingList).length, this.gridOptions.data, newBookingList)
this.$forceUpdate() this.$forceUpdate()
} else { } else {
this.$set(this.gridOptions, 'data', [...[]]) this.$set(this.gridOptions, 'data', [...[]])
@ -1398,7 +1363,6 @@ export default {
}) })
}, },
//
addBooking() { addBooking() {
this.addVisible = !this.addVisible this.addVisible = !this.addVisible
}, },
@ -1425,10 +1389,6 @@ export default {
this.$message.error('请至少选择一条数据') this.$message.error('请至少选择一条数据')
return false return false
} }
//
// pkIdArr.map((item, index) => {
// this.$router.push({ name: 'BookingDetail', query: { id: item, isCopy: true } })
// })
}, },
addSubmit() { addSubmit() {
let data = [] let data = []
@ -1635,7 +1595,6 @@ export default {
console.log(err) console.log(err)
}) })
}, },
//
getCompleteListFun({ form, value }) { getCompleteListFun({ form, value }) {
let query = {} let query = {}
if ( if (

@ -1,7 +1,6 @@
<template> <template>
<div class="from-label"> <div class="from-label">
<template v-if="labelData.type == 'input'"> <template v-if="labelData.type == 'input'">
<!-- <a-input style="height:23px;margin-top:8px;" v-model="value" @change="changeInput" @pressEnter="$emit('pressEnter')"/> -->
<inputView ref="inputView" :type="labelData.label" :parentVal="value" @getInputChange="inputChange" /> <inputView ref="inputView" :type="labelData.label" :parentVal="value" @getInputChange="inputChange" />
</template> </template>
<template v-else-if="labelData.type == 'date'"> <template v-else-if="labelData.type == 'date'">
@ -13,10 +12,8 @@
format="YYYY-MM-DD" format="YYYY-MM-DD"
@dateChange="dateChangeFun" @dateChange="dateChangeFun"
></datePickerView> ></datePickerView>
<!-- <a-date-picker format="YYYY-MM-DD" @change="changeDate" v-model="value"/> -->
</template> </template>
<template v-else-if="labelData.type == 'dateRange'"> <template v-else-if="labelData.type == 'dateRange'">
<!-- <a-range-picker style="overflow: hidden;margin-top:3px;" format="YYYY-MM-DD" @change="changeRangeDate" @calendarChange="openChangeRangeDate" v-model="dateVal"/> -->
<div class="picker-box" style="display:flex;padding-right: 2px;"> <div class="picker-box" style="display:flex;padding-right: 2px;">
<a-date-picker <a-date-picker
style="min-width:30px; flex: 1;" style="min-width:30px; flex: 1;"
@ -131,7 +128,6 @@ export default {
}, },
watch: { watch: {
resetType (nval, oval) { resetType (nval, oval) {
console.log('== 重置 ==', nval)
if (!nval) { if (!nval) {
this.value = '' this.value = ''
this.dateVal = [] this.dateVal = []
@ -157,14 +153,11 @@ export default {
}, },
data() { data() {
return { return {
// input
value: '', value: '',
//
dateVal: [], dateVal: [],
startValue: null, startValue: null,
endValue: null, endValue: null,
endOpen: false, endOpen: false,
// select
dataList: this.labelData.dataList || [], dataList: this.labelData.dataList || [],
dataSourceList: [] dataSourceList: []
} }
@ -189,15 +182,6 @@ export default {
value: data.value value: data.value
}) })
}, },
// start
// changeRangeDate(e, mode) {
// this.$emit('change', {
// form: this.labelData,
// value: mode
// })
// },
disabledStartDate(startValue) { disabledStartDate(startValue) {
const endValue = this.endValue; const endValue = this.endValue;
if (!startValue || !endValue) { if (!startValue || !endValue) {
@ -216,21 +200,14 @@ export default {
if (!open) { if (!open) {
this.endOpen = true; this.endOpen = true;
} }
// if (this.startValue) {
// this.getDateRangeRes()
// }
}, },
handleEndOpenChange(open) { handleEndOpenChange(open) {
this.endOpen = open; this.endOpen = open;
// if (this.endValue) {
// this.getDateRangeRes()
// }
}, },
getDateRangeRes () { getDateRangeRes () {
const start = this.startValue ? this.formatDate(this.startValue._d).substr(0, 10) : '' const start = this.startValue ? this.formatDate(this.startValue._d).substr(0, 10) : ''
const end = this.endValue ? this.formatDate(this.endValue._d).substr(0, 10) : '' const end = this.endValue ? this.formatDate(this.endValue._d).substr(0, 10) : ''
const date = [start, end] const date = [start, end]
console.log('== 更新时间 ==', date)
this.$emit('change', { this.$emit('change', {
form: this.labelData, form: this.labelData,
value: date value: date
@ -238,44 +215,39 @@ export default {
}, },
formatDate (now) { formatDate (now) {
var date = new Date(now) var date = new Date(now)
var y = date.getFullYear() // var y = date.getFullYear()
var m = date.getMonth() + 1 // js1 var m = date.getMonth() + 1
if (m < 10) { if (m < 10) {
m = '0' + m; m = '0' + m;
} }
var d = date.getDate() // var d = date.getDate()
if (d < 10) { if (d < 10) {
d = '0' + d; d = '0' + d;
} }
var h = date.getHours() // var h = date.getHours()
if (h < 10) { if (h < 10) {
h = '0' + h; h = '0' + h;
} }
var min = date.getMinutes() // var min = date.getMinutes()
if (min < 10) { if (min < 10) {
min = '0' + min; min = '0' + min;
} }
var s = date.getSeconds() // var s = date.getSeconds()
if (s < 10) { if (s < 10) {
s = '0' + s; s = '0' + s;
} }
//
return y + '-' + m + '-' + d + ' ' + h + ':' + min + ':' + s return y + '-' + m + '-' + d + ' ' + h + ':' + min + ':' + s
}, },
// end
// == ==
filterOption(input, option) { filterOption(input, option) {
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
}, },
handleSelectChange (e) { handleSelectChange (e) {
console.log('== 修改select ==', e, this.value)
this.$emit('change', { this.$emit('change', {
form: this.labelData, form: this.labelData,
value: this.dataList[e][this.labelData.showLabel] value: this.dataList[e][this.labelData.showLabel]
}) })
}, },
getSelectFirst (e) { getSelectFirst (e) {
console.log('下拉选择 - 首次点击内容:', e)
if (!e) { if (!e) {
this.$emit('selectFirst', { this.$emit('selectFirst', {
form: this.labelData, form: this.labelData,
@ -284,8 +256,6 @@ export default {
}) })
} }
}, },
// == ==
completeSelect (value) { completeSelect (value) {
this.$emit('change', { this.$emit('change', {
form: this.labelData, form: this.labelData,
@ -311,11 +281,9 @@ export default {
}) })
}, },
inputChange (data) { inputChange (data) {
console.log('== 表单输入 ==', data)
this.changeInput(data) this.changeInput(data)
}, },
dateChangeFun (data) { dateChangeFun (data) {
console.log('== 表单时间 ==', data)
this.changeDate(data) this.changeDate(data)
} }
} }

@ -70,7 +70,6 @@ export default {
{ field: 'reeferf', label: 'REEFERF', width: 160, title: '通风度', showHeaderOverflow: true, sortable: true }, { field: 'reeferf', label: 'REEFERF', width: 160, title: '通风度', showHeaderOverflow: true, sortable: true },
{ field: 'shipagency', label: 'SHIPAGENCY', width: 160, title: '船代', showHeaderOverflow: true, sortable: true }, { field: 'shipagency', label: 'SHIPAGENCY', width: 160, title: '船代', showHeaderOverflow: true, sortable: true },
{ field: 'custno', label: 'CUSTNO', width: 160, title: '订舱编号', showHeaderOverflow: true, sortable: true }, { field: 'custno', label: 'CUSTNO', width: 160, title: '订舱编号', showHeaderOverflow: true, sortable: true },
// 以下为东胜没有,大简云有,目前保留的
// { field: 'vgm', label: 'VGM', width: 120, title: 'VGM', showHeaderOverflow: true }, // { field: 'vgm', label: 'VGM', width: 120, title: 'VGM', showHeaderOverflow: true },
{ field: 'forwarder', label: 'FORWARDER', width: 120, title: '订舱代理', showHeaderOverflow: true, sortable: true }, { field: 'forwarder', label: 'FORWARDER', width: 120, title: '订舱代理', showHeaderOverflow: true, sortable: true },
// { field: 'bookingStatus', label: 'BOOKINGSTATUS', width: 120, title: '订舱状态', showHeaderOverflow: true }, // { field: 'bookingStatus', label: 'BOOKINGSTATUS', width: 120, title: '订舱状态', showHeaderOverflow: true },
@ -82,7 +81,6 @@ export default {
{ field: 'dunno', label: 'DUNNO', width: 120, title: '危险品编号', showHeaderOverflow: true, sortable: true }, { field: 'dunno', label: 'DUNNO', width: 120, title: '危险品编号', showHeaderOverflow: true, sortable: true },
{ field: 'contractno', label: 'CONTRACTNO', width: 120, title: '合约号', showHeaderOverflow: true, sortable: true }, { field: 'contractno', label: 'CONTRACTNO', width: 120, title: '合约号', showHeaderOverflow: true, sortable: true },
{ field: 'route', label: 'ROUTE', width: 120, title: '航线操作', showHeaderOverflow: true, sortable: true }, { field: 'route', label: 'ROUTE', width: 120, title: '航线操作', showHeaderOverflow: true, sortable: true },
// 以下未核实台账字段里是否有该字段
{ field: 'lanecode', label: 'LANECODE', width: 120, title: '航线代码', showHeaderOverflow: true, sortable: true }, { field: 'lanecode', label: 'LANECODE', width: 120, title: '航线代码', showHeaderOverflow: true, sortable: true },
{ field: 'shipperid', label: 'SHIPPERID', width: 120, title: '发货人代码', showHeaderOverflow: true, sortable: true }, // 台账无字段 { field: 'shipperid', label: 'SHIPPERID', width: 120, title: '发货人代码', showHeaderOverflow: true, sortable: true }, // 台账无字段
{ field: 'notifypartyid', label: 'NOTIFYPARTYID', width: 120, title: '通知人代码', showHeaderOverflow: true, sortable: true }, // 台账无字段 { field: 'notifypartyid', label: 'NOTIFYPARTYID', width: 120, title: '通知人代码', showHeaderOverflow: true, sortable: true }, // 台账无字段
@ -102,7 +100,8 @@ export default {
// 以下为新增字段 // 以下为新增字段
{ field: 'dzRemark', label: 'DZREMARK', width: 160, title: '单证备注', showHeaderOverflow: true, sortable: true, slots: { default: 'dzRemark' } }, { field: 'dzRemark', label: 'DZREMARK', width: 160, title: '单证备注', showHeaderOverflow: true, sortable: true, slots: { default: 'dzRemark' } },
{ field: 'czRemark', label: 'CZREMARK', width: 160, title: '操作备注', showHeaderOverflow: true, sortable: true, slots: { default: 'czRemark' } }, { field: 'czRemark', label: 'CZREMARK', width: 160, title: '操作备注', showHeaderOverflow: true, sortable: true, slots: { default: 'czRemark' } },
{ field: 'goodsStatusList', label: 'GOODSSTATUSLIST', minWidth: 160, title: '货物状态', showHeaderOverflow: true, slots: { default: 'goodsStatusList' } } { field: 'goodsStatusList', label: 'GOODSSTATUSLIST', minWidth: 160, title: '货物状态', showHeaderOverflow: true, slots: { default: 'goodsStatusList' } },
{ field: 'tmblno', label: 'TMBLNO', width: 120, title: '真提单号', showHeaderOverflow: true, sortable: true }
], ],
// ==== 表单部分 ==== // ==== 表单部分 ====
condAllData: [ condAllData: [
@ -131,7 +130,6 @@ export default {
{ title: '航线代码', align: 'center', width: 120, label: 'LANECODE', type: 'input' }, { title: '航线代码', align: 'center', width: 120, label: 'LANECODE', type: 'input' },
{ title: '内部航次', align: 'center', width: 120, label: 'VOYNOINNER', type: 'input' }, { title: '内部航次', align: 'center', width: 120, label: 'VOYNOINNER', type: 'input' },
{ title: '海关航次', align: 'center', width: 120, label: 'VOYNO', type: 'input' }, { title: '海关航次', align: 'center', width: 120, label: 'VOYNO', type: 'input' },
// 未完成 - 以下为东胜没有的,大简云有的
{ title: '发货人', align: 'center', width: 120, label: 'SHIPPER', type: 'input' }, { title: '发货人', align: 'center', width: 120, label: 'SHIPPER', type: 'input' },
{ title: '发货人代码', align: 'center', width: 120, label: 'SHIPPERID', type: 'input' }, { title: '发货人代码', align: 'center', width: 120, label: 'SHIPPERID', type: 'input' },
{ title: '通知人', align: 'center', width: 120, label: 'NOTIFYPARTY', type: 'input' }, { title: '通知人', align: 'center', width: 120, label: 'NOTIFYPARTY', type: 'input' },
@ -155,8 +153,6 @@ export default {
{ title: '卸货港代码', align: 'center', width: 120, label: 'PORTDISCHARGEID', type: 'input' }, { title: '卸货港代码', align: 'center', width: 120, label: 'PORTDISCHARGEID', type: 'input' },
{ title: '航线操作', align: 'center', width: 120, label: 'ROUTE', type: 'complete', showLabel: 'name' }, { title: '航线操作', align: 'center', width: 120, label: 'ROUTE', type: 'complete', showLabel: 'name' },
{ title: 'PO NO', align: 'center', width: 120, label: 'PONO', type: 'input' }, { title: 'PO NO', align: 'center', width: 120, label: 'PONO', type: 'input' },
// 新增字段
{ title: '件数', align: 'center', width: 160, label: 'PKGS', type: 'input' }, { title: '件数', align: 'center', width: 160, label: 'PKGS', type: 'input' },
{ title: '重量', align: 'center', width: 160, label: 'KGS', type: 'input' }, { title: '重量', align: 'center', width: 160, label: 'KGS', type: 'input' },
{ title: '尺码', align: 'center', width: 160, label: 'CBM', type: 'input' }, { title: '尺码', align: 'center', width: 160, label: 'CBM', type: 'input' },
@ -167,14 +163,11 @@ export default {
{ title: '付款方', align: 'center', width: 160, label: 'FREIGHTPAYER', type: 'input' }, { title: '付款方', align: 'center', width: 160, label: 'FREIGHTPAYER', type: 'input' },
{ title: '唛头', align: 'center', width: 160, label: 'MARKS', type: 'input' }, { title: '唛头', align: 'center', width: 160, label: 'MARKS', type: 'input' },
{ title: '危险品编号', align: 'center', width: 160, label: 'DUNNO', type: 'input' }, { title: '危险品编号', align: 'center', width: 160, label: 'DUNNO', type: 'input' },
// 东胜添加
{ title: '箱号', align: 'center', width: 160, label: 'CNTRNO', type: 'input' }, { title: '箱号', align: 'center', width: 160, label: 'CNTRNO', type: 'input' },
{ title: '封号', align: 'center', width: 160, label: 'SEALNO', type: 'input' }, { title: '封号', align: 'center', width: 160, label: 'SEALNO', type: 'input' },
{ title: '创建人', align: 'center', width: 160, label: 'CreatedUserName', type: 'input' }, { title: '创建人', align: 'center', width: 160, label: 'CreatedUserName', type: 'input' },
{ title: '单证备注', align: 'center', width: 160, label: 'DZREMARK', type: 'input' }, { title: '单证备注', align: 'center', width: 160, label: 'DZREMARK', type: 'input' },
{ title: '操作备注', align: 'center', width: 160, label: 'CZREMARK', type: 'input' }, { title: '操作备注', align: 'center', width: 160, label: 'CZREMARK', type: 'input' },
// 以下需要加模糊搜索
{ title: '到付地点', align: 'center', width: 160, label: 'PAYABLEAT', type: 'complete', showLabel: 'enName' }, { title: '到付地点', align: 'center', width: 160, label: 'PAYABLEAT', type: 'complete', showLabel: 'enName' },
{ title: '付费方式', align: 'center', width: 160, label: 'BLFRT', type: 'complete', showLabel: 'enName' }, { title: '付费方式', align: 'center', width: 160, label: 'BLFRT', type: 'complete', showLabel: 'enName' },
{ title: '签单地点', align: 'center', width: 160, label: 'ISSUEPLACE', type: 'complete', showLabel: 'enName' }, { title: '签单地点', align: 'center', width: 160, label: 'ISSUEPLACE', type: 'complete', showLabel: 'enName' },
@ -183,8 +176,6 @@ export default {
{ title: '国外代理', align: 'center', width: 160, label: 'AGENTID', type: 'complete', showLabel: 'shortName' }, { title: '国外代理', align: 'center', width: 160, label: 'AGENTID', type: 'complete', showLabel: 'shortName' },
{ title: '车队', align: 'center', width: 160, label: 'TRUCKER', type: 'complete', showLabel: 'shortName' }, { title: '车队', align: 'center', width: 160, label: 'TRUCKER', type: 'complete', showLabel: 'shortName' },
{ title: '船代', align: 'center', width: 160, label: 'SHIPAGENCY', type: 'complete', showLabel: 'name' }, { title: '船代', align: 'center', width: 160, label: 'SHIPAGENCY', type: 'complete', showLabel: 'name' },
// 以下为下拉加载
{ title: '箱型', align: 'center', width: 120, label: 'CNTRTOTAL', type: 'select', showLabel: 'name' }, { title: '箱型', align: 'center', width: 120, label: 'CNTRTOTAL', type: 'select', showLabel: 'name' },
{ title: '包装', align: 'center', width: 120, label: 'KINDPKGS', type: 'select', showLabel: 'name' }, { title: '包装', align: 'center', width: 120, label: 'KINDPKGS', type: 'select', showLabel: 'name' },
{ title: '签单方式', align: 'center', width: 160, label: 'ISSUETYPE', type: 'select', showLabel: 'enName', showLabel2: 'cnName' }, { title: '签单方式', align: 'center', width: 160, label: 'ISSUETYPE', type: 'select', showLabel: 'enName', showLabel2: 'cnName' },
@ -223,10 +214,7 @@ export default {
{ code: 'O', name: '超限箱' } { code: 'O', name: '超限箱' }
] ]
}, },
{ title: '签单日期', align: 'center', width: 160, label: 'ISSUEDATE', type: 'dateRange', resLabel: ['BISSUEDATE', 'EISSUEDATE'] }, { title: '签单日期', align: 'center', width: 160, label: 'ISSUEDATE', type: 'dateRange', resLabel: ['BISSUEDATE', 'EISSUEDATE'] },
// 以下为新增字段 - 台账文档中, 参数暂无 { title: '真提单号', align: 'center', width: 160, label: 'TMBLNO', type: 'input' }
// { title: '单证备注', align: 'center', width: 160, label: 'DZREMARK', type: 'input' },
// { title: '操作备注', align: 'center', width: 160, label: 'CZREMARK', type: 'input' }
] ]
} }

Loading…
Cancel
Save