|
|
|
@ -37,15 +37,18 @@
|
|
|
|
|
optionLabelProp="label"
|
|
|
|
|
@change="handleChange2"
|
|
|
|
|
>
|
|
|
|
|
<!-- :label="item.shortName"
|
|
|
|
|
:title="`${item.shortName}(${item.codeName})`" -->
|
|
|
|
|
<a-select-option
|
|
|
|
|
v-for="item in companyList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
:label="item.shortName"
|
|
|
|
|
:title="`${item.shortName}(${item.codeName})`"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:title="`${item.name}`"
|
|
|
|
|
:blContent="item.blContent"
|
|
|
|
|
>
|
|
|
|
|
{{ item.shortName }} ({{ item.codeName }})
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
<!-- {{ item.shortName }} ({{ item.codeName }}) -->
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
<div class="right">
|
|
|
|
@ -91,7 +94,7 @@
|
|
|
|
|
optionLabelProp="label"
|
|
|
|
|
@change="handleChange"
|
|
|
|
|
>
|
|
|
|
|
<a-select-option
|
|
|
|
|
<!-- <a-select-option
|
|
|
|
|
v-for="item in companyList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:value="item.id"
|
|
|
|
@ -100,6 +103,19 @@
|
|
|
|
|
:blContent="item.blContent"
|
|
|
|
|
>
|
|
|
|
|
{{ item.shortName }} ({{ item.codeName }})
|
|
|
|
|
</a-select-option> -->
|
|
|
|
|
<!-- :label="item.shortName"
|
|
|
|
|
:title="`${item.shortName}(${item.codeName})`" -->
|
|
|
|
|
<a-select-option
|
|
|
|
|
v-for="item in companyList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:title="`${item.name}`"
|
|
|
|
|
:blContent="item.blContent"
|
|
|
|
|
>
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
<!-- {{ item.shortName }} ({{ item.codeName }}) -->
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
|
|
|
|
@ -143,6 +159,7 @@
|
|
|
|
|
GetShipperClientList,
|
|
|
|
|
GetConsigneeClientList,
|
|
|
|
|
GetNotifyPartyClientList,
|
|
|
|
|
GetShippingBillTemplateSelectList,
|
|
|
|
|
} from '/@/views/operation/seaexport/api/BookingLedger'
|
|
|
|
|
import { getOptions } from '/@/hooks/dict'
|
|
|
|
|
// import selectView from '../detail/components/selectView.vue'
|
|
|
|
@ -173,7 +190,7 @@
|
|
|
|
|
deep: true,
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
const emit = defineEmits(['spliceMore', 'Change'])
|
|
|
|
|
const emit = defineEmits(['spliceMore', 'change'])
|
|
|
|
|
const visible = ref(false)
|
|
|
|
|
const modalType = ref(0)
|
|
|
|
|
const modelTitle = ref('')
|
|
|
|
@ -183,22 +200,38 @@
|
|
|
|
|
const modelVisible = ref(false)
|
|
|
|
|
const modelType = ref('')
|
|
|
|
|
const modelContent = ref('')
|
|
|
|
|
const company = ref()
|
|
|
|
|
const company2 = ref()
|
|
|
|
|
const company = ref('')
|
|
|
|
|
const company2 = ref('')
|
|
|
|
|
const Content2 = ref()
|
|
|
|
|
// 往来单位下拉数据
|
|
|
|
|
const companyList = ref<any>([])
|
|
|
|
|
// 页面初始化下拉数据
|
|
|
|
|
const init = async () => {
|
|
|
|
|
if (props.field == 'shipper') {
|
|
|
|
|
companyList.value = getOptions('shipper')
|
|
|
|
|
} else if (props.field == 'consignee') {
|
|
|
|
|
GetConsigneeClientList().then((res) => {
|
|
|
|
|
companyList.value = res.data
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
companyList.value = getOptions('notifyparty')
|
|
|
|
|
}
|
|
|
|
|
// if (props.field == 'shipper') {
|
|
|
|
|
// companyList.value = getOptions('shipper')
|
|
|
|
|
// } else if (props.field == 'consignee') {
|
|
|
|
|
// GetConsigneeClientList().then((res) => {
|
|
|
|
|
// companyList.value = res.data
|
|
|
|
|
// })
|
|
|
|
|
// } else {
|
|
|
|
|
// companyList.value = getOptions('notifyparty')
|
|
|
|
|
// }
|
|
|
|
|
let TypeList = [
|
|
|
|
|
{ label: '发货人', value: '2', code: 'shipper' },
|
|
|
|
|
{ label: '收货人', value: '1', code: 'consignee' },
|
|
|
|
|
{ label: '通知人', value: '3', code: 'notifyParty' },
|
|
|
|
|
]
|
|
|
|
|
TypeList.forEach((e) => {
|
|
|
|
|
if (props.field == e.code) {
|
|
|
|
|
GetShippingBillTemplateSelectList({ type: e.value }).then((res) => {
|
|
|
|
|
console.log(res.data, '????????????????????????')
|
|
|
|
|
res.data.label = res.data.name
|
|
|
|
|
res.data.value = res.data.id
|
|
|
|
|
companyList.value = res.data
|
|
|
|
|
// SFTList[`${e.code}List`] = res.data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
init()
|
|
|
|
|
function handleOpen(type) {
|
|
|
|
@ -232,7 +265,7 @@
|
|
|
|
|
return RData
|
|
|
|
|
}
|
|
|
|
|
function getSelectViewRes({ type, res }) {
|
|
|
|
|
emit('Change', { type, res })
|
|
|
|
|
emit('change', { type, res })
|
|
|
|
|
}
|
|
|
|
|
function getTextareaChange(e) {
|
|
|
|
|
Content.value = e.value
|
|
|
|
@ -243,6 +276,7 @@
|
|
|
|
|
getSelectViewRes({ type: 'Content2', res: e.value })
|
|
|
|
|
}
|
|
|
|
|
const handleChange = (v, obj) => {
|
|
|
|
|
console.log(v, obj)
|
|
|
|
|
getSelectViewRes({ type: 'Id', res: obj })
|
|
|
|
|
Content.value = obj.blContent
|
|
|
|
|
}
|
|
|
|
|