卸货地

This commit is contained in:
‘huanghaiixia’
2025-11-19 11:29:01 +08:00
parent 67daa56060
commit a2a9a6974a
6 changed files with 434 additions and 531 deletions

View File

@ -6,7 +6,7 @@
<template #notFoundContent v-if="loading">
<span>
<LoadingOutlined spin class="mr-1" />
{{ t('component.form.apiSelectNotFound') }}
{{ t('加载中') }}
</span>
</template>
</Cascader>
@ -30,7 +30,8 @@
const props = defineProps({
value: String,
excludeType: String
excludeType: String,
startPCode: String
});
const emit = defineEmits(['change', 'defaultChange', 'update:value']);
@ -60,7 +61,7 @@
if (isChange.value) return;
if (val) {
const resData = await getAreaInfo({code: val,excludeType:props.excludeType });
const resData = await getAreaInfo({code: val,excludeType:props.excludeType, startPCode: props.startPCode });
options.value = resData.areaList
emitData.value = resData.regionCode
// const resData = await requestMagicApi({
@ -120,7 +121,7 @@
apiData.value = [];
loading.value = true;
try {
const res = await getAreaList({ pid: '', excludeType:props.excludeType });
const res = await getAreaList({ pid: '', excludeType:props.excludeType, startPCode: props.startPCode });
if (Array.isArray(res)) {
apiData.value = res;
return;
@ -142,7 +143,8 @@
try {
const res = await getAreaList({
[asyncFetchParamKey]: Reflect.get(targetOption, 'id'),
excludeType:props.excludeType
excludeType:props.excludeType,
startPCode: props.startPCode
});
if (Array.isArray(res)) {
@ -167,7 +169,7 @@
tree.forEach(async (item: any) => {
if (item.code === id) {
item.children = [];
const res = await getAreaList({ pid: item.id,excludeType:props.excludeType });
const res = await getAreaList({ pid: item.id,excludeType:props.excludeType, startPCode: props.startPCode });
item.children = res.map((child) => {
return {
...child,