Commit 8686ad57 by wusiyi

feat: POD订单(CN)新增收件国家筛选 #1002558

parent 35fa3b0a
...@@ -55,6 +55,7 @@ export interface SearchForm { ...@@ -55,6 +55,7 @@ export interface SearchForm {
employeeId?: number employeeId?: number
blocking?: boolean blocking?: boolean
outOfStock?: boolean outOfStock?: boolean
receiverCountry?: string
} }
export interface PodCnOrderListData { export interface PodCnOrderListData {
id: number id: number
......
...@@ -379,6 +379,24 @@ ...@@ -379,6 +379,24 @@
style="width: 150px" style="width: 150px"
></ElInput> ></ElInput>
</ElFormItem> </ElFormItem>
<ElFormItem label="收件国家">
<ElSelect
v-model="searchForm.receiverCountry"
placeholder="收件国家"
clearable
:teleported="false"
style="width: 150px"
filterable
@change="changeReplaceShipment"
>
<ElOption
v-for="item in receiverCountryList"
:key="item.countryCode"
:value="item.countryCode"
:label="item.nameCn"
></ElOption>
</ElSelect>
</ElFormItem>
<ElFormItem label="是否代发"> <ElFormItem label="是否代发">
<ElSelect <ElSelect
v-model="searchForm.replaceShipment" v-model="searchForm.replaceShipment"
...@@ -3132,6 +3150,7 @@ const [searchForm, resetSearchForm] = useValue<SearchForm>({ ...@@ -3132,6 +3150,7 @@ const [searchForm, resetSearchForm] = useValue<SearchForm>({
batchArrangeNumber: '', batchArrangeNumber: '',
craftCode: [], craftCode: [],
thirdStockSku: '', thirdStockSku: '',
receiverCountry: '',
}) })
const shipmentArea = ref(0) const shipmentArea = ref(0)
const userMarkList = ref<string[]>([]) const userMarkList = ref<string[]>([])
...@@ -5608,6 +5627,17 @@ const getlogisticsCompanyAllCodelist = async () => { ...@@ -5608,6 +5627,17 @@ const getlogisticsCompanyAllCodelist = async () => {
} }
} }
const receiverCountryList = ref<{ countryCode: string; nameCn: string }[]>([])
const getReceiverCountryList = async () => {
try {
const res = await getAllCountryApi()
if (res.code !== 200) return
receiverCountryList.value = res.data
} catch (e) {
console.error(e)
}
}
function tooltipContent(arr: { name: string }[]) { function tooltipContent(arr: { name: string }[]) {
return arr.map((tag) => tag.name).join('、') return arr.map((tag) => tag.name).join('、')
} }
...@@ -5708,6 +5738,7 @@ onMounted(() => { ...@@ -5708,6 +5738,7 @@ onMounted(() => {
getCustomTagList() getCustomTagList()
loadCraftList() loadCraftList()
getlogisticsCompanyAllCodelist() getlogisticsCompanyAllCodelist()
getReceiverCountryList()
// 每60秒更新一次当前时间 // 每60秒更新一次当前时间
timer = window.setInterval(() => { timer = window.setInterval(() => {
currentTime.value = new Date() currentTime.value = new Date()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment