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
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
@ -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() {
@ -1368,7 +1369,22 @@ export default {
//
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 {
@ -1468,7 +1483,6 @@ export default {
return GetForwarderlist
}
}
}
}
</script>

Loading…
Cancel
Save