|
|
@ -18,7 +18,7 @@
|
|
|
|
<template v-for="(formLabel, findex) in formData">
|
|
|
|
<template v-for="(formLabel, findex) in formData">
|
|
|
|
<a-col :md="6" :sm="24" :key="findex" v-if="(findex<2 && !advanced) || advanced">
|
|
|
|
<a-col :md="6" :sm="24" :key="findex" v-if="(findex<2 && !advanced) || advanced">
|
|
|
|
<a-form-item :label="formLabel.title">
|
|
|
|
<a-form-item :label="formLabel.title">
|
|
|
|
<formLabel :labelData="formLabel" @change="formChange" :formRes="formRes"></formLabel>
|
|
|
|
<formLabel :ref="`fromlabel-${formLabel.label}`" :labelData="formLabel" @change="formChange" :formRes="formRes"></formLabel>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -69,10 +69,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
<a-modal title="新增船公司" :width="300" :visible="addVisible" @ok="addSubmit" @cancel="addCancel">
|
|
|
|
<a-modal title="新增船公司" :width="300" :visible="addVisible" @ok="addSubmit" @cancel="addCancel">
|
|
|
|
<a-radio-group v-model="carrierRadio">
|
|
|
|
<a-radio-group v-model="carrierRadio">
|
|
|
|
<a-radio :style="radioStyle" value="CMA"> <img class="radio-logo" src="@/assets/cma.png" /> CMA </a-radio>
|
|
|
|
<a-radio :style="radioStyle" value="CMA"> <img class="radio-logo" src="@/assets/logo/CMA.png" /> CMA </a-radio>
|
|
|
|
<a-radio :style="radioStyle" value="ESL"> <img class="radio-logo" src="@/assets/cma.png" /> ESL </a-radio>
|
|
|
|
<a-radio :style="radioStyle" value="ESL"> <img class="radio-logo" src="@/assets/logo/ESL.jpg"/> ESL </a-radio>
|
|
|
|
<a-radio :style="radioStyle" value="MAC"> <img class="radio-logo" src="@/assets/cma.png" /> MSC </a-radio>
|
|
|
|
<a-radio :style="radioStyle" value="MAC"> <img class="radio-logo" src="@/assets/logo/MSC.png" /> MSC </a-radio>
|
|
|
|
<a-radio :style="radioStyle" value="ONE"> <img class="radio-logo" src="@/assets/cma.png" /> ONE </a-radio>
|
|
|
|
<a-radio :style="radioStyle" value="ONE"> <img class="radio-logo" src="@/assets/logo/ONE.jpg" /> ONE </a-radio>
|
|
|
|
|
|
|
|
<a-radio :style="radioStyle" value="PIL"> <img class="radio-logo" src="@/assets/logo/PIL.jpg" /> PIL </a-radio>
|
|
|
|
|
|
|
|
<a-radio :style="radioStyle" value="TSL"> <img class="radio-logo" src="@/assets/logo/TSL.jpg" /> TSL </a-radio>
|
|
|
|
|
|
|
|
<a-radio :style="radioStyle" value="YML"> <img class="radio-logo" src="@/assets/logo/YML.jpg" /> YML </a-radio>
|
|
|
|
|
|
|
|
<a-radio :style="radioStyle" value="waiyun"> <img class="radio-logo" src="@/assets/logo/waiyun.png" /> 外运 </a-radio>
|
|
|
|
</a-radio-group>
|
|
|
|
</a-radio-group>
|
|
|
|
</a-modal>
|
|
|
|
</a-modal>
|
|
|
|
|
|
|
|
|
|
|
@ -95,7 +99,6 @@ import formLabel from './modules/formLabel'
|
|
|
|
import initData from './modules/initData'
|
|
|
|
import initData from './modules/initData'
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
DjyUserConfigGet,
|
|
|
|
DjyUserConfigGet,
|
|
|
|
// DjyUserConfigPage,
|
|
|
|
|
|
|
|
DjyUserConfigAdd
|
|
|
|
DjyUserConfigAdd
|
|
|
|
} from '@/api/modular/main/DjyUserConfig'
|
|
|
|
} from '@/api/modular/main/DjyUserConfig'
|
|
|
|
|
|
|
|
|
|
|
@ -163,8 +166,8 @@ export default {
|
|
|
|
carrierRadio: '',
|
|
|
|
carrierRadio: '',
|
|
|
|
radioStyle: {
|
|
|
|
radioStyle: {
|
|
|
|
display: 'block',
|
|
|
|
display: 'block',
|
|
|
|
height: '30px',
|
|
|
|
height: '50px',
|
|
|
|
lineHeight: '30px'
|
|
|
|
lineHeight: '50px'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 多单号弹窗
|
|
|
|
// 多单号弹窗
|
|
|
|
moreNumVisible: false,
|
|
|
|
moreNumVisible: false,
|
|
|
@ -198,10 +201,15 @@ export default {
|
|
|
|
const arr = JSON.parse(res.data.configJson)
|
|
|
|
const arr = JSON.parse(res.data.configJson)
|
|
|
|
const nowData = []
|
|
|
|
const nowData = []
|
|
|
|
const moreData = []
|
|
|
|
const moreData = []
|
|
|
|
|
|
|
|
arr.map((item, index) => {
|
|
|
|
|
|
|
|
this.formAllData.map((fitem, findex) => {
|
|
|
|
|
|
|
|
if (fitem.label === item) {
|
|
|
|
|
|
|
|
nowData.push(fitem)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
this.formAllData.map((item, index) => {
|
|
|
|
this.formAllData.map((item, index) => {
|
|
|
|
if (arr.includes(item.label)) {
|
|
|
|
if (!arr.includes(item.label)) {
|
|
|
|
nowData.push(item)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
moreData.push(item)
|
|
|
|
moreData.push(item)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -331,12 +339,17 @@ export default {
|
|
|
|
this.$refs.setTableForm.open()
|
|
|
|
this.$refs.setTableForm.open()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
submitTableForm (data) {
|
|
|
|
submitTableForm (data) {
|
|
|
|
this.formTableData = data
|
|
|
|
const newColumns = [
|
|
|
|
|
|
|
|
// ...[{ type: 'checkbox', width: 60, noDraggable: true }],
|
|
|
|
|
|
|
|
...JSON.parse(JSON.stringify(data))
|
|
|
|
|
|
|
|
// ...[{ title: '操作', width: 80, noDraggable: true, slots: { default: 'operate' }, fixed: 'right' }]
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
this.gridOptions.columns = newColumns
|
|
|
|
const arr = data.map((item, index) => {
|
|
|
|
const arr = data.map((item, index) => {
|
|
|
|
return item.label
|
|
|
|
return item.label
|
|
|
|
})
|
|
|
|
})
|
|
|
|
console.log(arr)
|
|
|
|
this.$refs.setTableForm.handleCancel()
|
|
|
|
debugger
|
|
|
|
console.log(data, arr)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
columnChange(data) {
|
|
|
|
columnChange(data) {
|
|
|
@ -399,7 +412,6 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
addSubmit() {
|
|
|
|
addSubmit() {
|
|
|
|
this.addVisible = false
|
|
|
|
this.addVisible = false
|
|
|
|
debugger
|
|
|
|
|
|
|
|
this.$router.push({ name: 'BookingDetail', query: { type: this.carrierRadio } })
|
|
|
|
this.$router.push({ name: 'BookingDetail', query: { type: this.carrierRadio } })
|
|
|
|
},
|
|
|
|
},
|
|
|
|
addCancel() {
|
|
|
|
addCancel() {
|
|
|
@ -414,6 +426,7 @@ export default {
|
|
|
|
// 多表单
|
|
|
|
// 多表单
|
|
|
|
moreNumSubmit() {
|
|
|
|
moreNumSubmit() {
|
|
|
|
this.formRes.MBLNO = this.moreNumVal.replace(/\n|\r/g, ',')
|
|
|
|
this.formRes.MBLNO = this.moreNumVal.replace(/\n|\r/g, ',')
|
|
|
|
|
|
|
|
this.$refs['fromlabel-MBLNO'][0].$data.value = this.formRes.MBLNO
|
|
|
|
this.$forceUpdate()
|
|
|
|
this.$forceUpdate()
|
|
|
|
this.moreNumCancel()
|
|
|
|
this.moreNumCancel()
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -538,8 +551,8 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.radio-logo{
|
|
|
|
.radio-logo{
|
|
|
|
width: 16px;
|
|
|
|
width: 60px;
|
|
|
|
height: 16px;
|
|
|
|
height: 40px;
|
|
|
|
display: inline-block;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|