pull/1/head
张同海 2 years ago
parent bd89d7d2ba
commit 9285157779

@ -462,6 +462,8 @@
</template>
<script>
import { XCard, setFormModel } from '@/components'
import columnSetting from '@/components/tableColumnSetting'
import formLabel from './modules/formLabel'
import {
BookingOrderPage,
SendTrace,
@ -471,7 +473,6 @@ import {
BookingOrderBachUpdate,
GetCarrierlist,
DjyCustomerSuggest,
getVesselInfoService,
GetYardlist,
GetSysUserPage,
DjyCustomerpage,
@ -482,8 +483,7 @@ import {
GetService,
GetForwarderlist
} from '@/api/modular/main/BookingLedger'
import columnSetting from '@/components/tableColumnSetting'
import formLabel from './modules/formLabel'
import initData from './modules/initData'
import { DjyUserConfigGet, DjyUserConfigAdd } from '@/api/modular/main/DjyUserConfig'
import { mapActions } from 'vuex'
@ -755,7 +755,6 @@ export default {
Rdata(res.data)
DjyUserConfigGet({ type: 'booking_memory' })
.then(e => {
console.log(e)
if (e.data) {
let data = []
JSON.parse(e.data.configJson).forEach(item => {
@ -815,9 +814,11 @@ export default {
if (item.type === 'select') {
const fun = this.emnuSelectApi(item.label)
if (fun) {
this.getFromSelectData(fun).then((data) => {
this.getFromSelectData(fun).then(data => {
item.dataList = data
this.$refs[`fromlabel-${item.label}`][0].$data.dataList = data
if (this.$refs[`fromlabel-${item.label}`]) {
this.$refs[`fromlabel-${item.label}`][0].$data.dataList = data
}
})
} else if (['NOBILL', 'CARGOID'].includes(item.label)) {
item.dataList = item.data
@ -839,7 +840,7 @@ export default {
this.$forceUpdate()
})
},
emnuSelectApi (type) {
emnuSelectApi(type) {
switch (type) {
case 'CARRIER':
return GetCarrierlist
@ -858,15 +859,15 @@ export default {
// debugger
return new Promise((resolve, reject) => {
// debugger
func(...args).then((res) => {
func(...args).then(res => {
// debugger
if (res.code === 200) {
resolve(res.data);
resolve(res.data)
} else {
reject(res)
}
})
});
})
},
//
getTableList() {
@ -1366,9 +1367,24 @@ export default {
})
},
//
getCompleteListFun ({ form, value }) {
getCompleteListFun({ form, value }) {
let query = {}
if (['VESSEL', 'PORTDISCHARGE', 'PORTLOAD', 'PLACERECEIPT', 'DESTINATION', 'PLACEDELIVERY', 'PAYABLEAT', 'BLFRT', 'ISSUEPLACE', 'PREPARDAT', 'SERVICE', 'SHIPAGENCY'].includes(form.label)) {
if (
[
'VESSEL',
'PORTDISCHARGE',
'PORTLOAD',
'PLACERECEIPT',
'DESTINATION',
'PLACEDELIVERY',
'PAYABLEAT',
'BLFRT',
'ISSUEPLACE',
'PREPARDAT',
'SERVICE',
'SHIPAGENCY'
].includes(form.label)
) {
//
query = {
KeyWord: value
@ -1409,8 +1425,7 @@ export default {
}
const fun = this.emnuCompleteApi(form.label)
if (fun) {
this.getFromSelectData(this.emnuCompleteApi(form.label), query).then((data) => {
console.log(data)
this.getFromSelectData(this.emnuCompleteApi(form.label), query).then(data => {
if (['CUSTOMERNAME', 'FORWARDER', 'CUSTOMSER', 'AGENTID', 'TRUCKER'].includes(form.label)) {
this.$refs[`fromlabel-${form.label}`][0].$data.dataSourceList = data.rows
} else {
@ -1420,7 +1435,7 @@ export default {
}
},
emnuCompleteApi (type) {
emnuCompleteApi(type) {
switch (type) {
case 'VESSEL':
return GetVessellist
@ -1468,7 +1483,6 @@ export default {
return GetForwarderlist
}
}
}
}
</script>
@ -2069,15 +2083,15 @@ export default {
margin-top: -4px !important;
}
}
/deep/ .ant-form-item-control-wrapper{
/deep/ .ant-form-item-control-wrapper {
overflow: hidden !important;
}
.no-data{
.no-data {
display: block;
color: #aaa;
font-size: 14px;
i{
i {
line-height: 120px;
font-size: 100px;
}

Loading…
Cancel
Save