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