卸货地区域

This commit is contained in:
‘huanghaiixia’
2025-11-19 15:37:43 +08:00
parent a2a9a6974a
commit 0f112bc78e

View File

@ -48,7 +48,7 @@
const asyncFetchParamKey = 'pid';
const { t } = useI18n();
let curCode = ''
watch(
() => props.value,
async (val, oldVal) => {
@ -64,6 +64,7 @@
const resData = await getAreaInfo({code: val,excludeType:props.excludeType, startPCode: props.startPCode });
options.value = resData.areaList
emitData.value = resData.regionCode
curCode = val
// const resData = await requestMagicApi({
// method: "get",
// url: "mdm/countryRegion/getParentByCode",
@ -89,7 +90,7 @@
apiData,
(data) => {
options.value = generatorOptions(data);
if (emitData.value.length > 1) {
if (emitData.value.length > 1 && !curCode) {
getParentNodes(emitData.value, options.value);
}
},