Commit f3ae69ed by wusiyi

feat: podus添加工艺查询字段

parent 3fb33185
...@@ -428,3 +428,10 @@ export function arrangeFinishApi(ids: number[]) { ...@@ -428,3 +428,10 @@ export function arrangeFinishApi(ids: number[]) {
ids, ids,
) )
} }
// 获取工艺
export function getListCraftApi() {
return axios.post<never, BaseRespData<never>>(
`factory/podJomallOrderProductUs/listCraft`,
)
}
...@@ -25,6 +25,7 @@ export interface SearchForm { ...@@ -25,6 +25,7 @@ export interface SearchForm {
thirdSkuCode: string thirdSkuCode: string
supplierProductNo: string supplierProductNo: string
batchArrangeNumber: string batchArrangeNumber: string
craftCode: string
} }
export interface PodUsOrderListData { export interface PodUsOrderListData {
id: number id: number
...@@ -182,3 +183,7 @@ export interface LogisticsFormData { ...@@ -182,3 +183,7 @@ export interface LogisticsFormData {
expressSheetUrl: string expressSheetUrl: string
expressSheet: File | null expressSheet: File | null
} }
export interface CraftListData {
craftName: string
craftCode: string
}
...@@ -42,6 +42,22 @@ ...@@ -42,6 +42,22 @@
<el-radio-button :label="true">多件</el-radio-button> <el-radio-button :label="true">多件</el-radio-button>
</el-radio-group> </el-radio-group>
</ElFormItem> </ElFormItem>
<ElFormItem label="工艺">
<ElSelect
v-model="searchForm.craftCode"
clearable
filterable
placeholder="请输入"
style="width: 150px"
>
<el-option
v-for="item in craftList"
:key="item.craftCode"
:label="item.craftName"
:value="item.craftCode"
></el-option>
</ElSelect>
</ElFormItem>
<ElFormItem label="库存SKU"> <ElFormItem label="库存SKU">
<ElInput <ElInput
v-model.trim="searchForm.thirdSkuCode" v-model.trim="searchForm.thirdSkuCode"
...@@ -1553,6 +1569,7 @@ import { ...@@ -1553,6 +1569,7 @@ import {
replenishmentSuccessApi, replenishmentSuccessApi,
toOutOfStockApi, toOutOfStockApi,
arrangeFinishApi, arrangeFinishApi,
getListCraftApi,
} from '@/api/podUsOrder' } from '@/api/podUsOrder'
import { BaseRespData } from '@/types/api' import { BaseRespData } from '@/types/api'
...@@ -1573,6 +1590,7 @@ import { ...@@ -1573,6 +1590,7 @@ import {
AddressInfo, AddressInfo,
LogisticsData, LogisticsData,
LogisticsFormData, LogisticsFormData,
CraftListData,
} from '@/types/api/podUsOrder' } from '@/types/api/podUsOrder'
import usePageList from '@/utils/hooks/usePageList' import usePageList from '@/utils/hooks/usePageList'
import { useValue } from '@/utils/hooks/useValue' import { useValue } from '@/utils/hooks/useValue'
...@@ -1663,6 +1681,7 @@ const [searchForm, resetSearchForm] = useValue<SearchForm>({ ...@@ -1663,6 +1681,7 @@ const [searchForm, resetSearchForm] = useValue<SearchForm>({
thirdSkuCode: '', thirdSkuCode: '',
supplierProductNo: '', supplierProductNo: '',
batchArrangeNumber: '', batchArrangeNumber: '',
craftCode: '',
}) })
const exceptionStatus = ref(1) const exceptionStatus = ref(1)
const userMarkList = ref<string[]>([]) const userMarkList = ref<string[]>([])
...@@ -3152,6 +3171,18 @@ const loadWarehouseList = async () => { ...@@ -3152,6 +3171,18 @@ const loadWarehouseList = async () => {
console.error(e) console.error(e)
} }
} }
// 获取工艺列表
const craftList = ref<CraftListData[]>([])
const loadCraftList = async () => {
try {
const res = await getListCraftApi()
if (res.code !== 200) return
craftList.value = res.data
} catch (e) {
console.error(e)
}
}
const refreshMaterial = async () => { const refreshMaterial = async () => {
if (status.value === 'PICKING' || status.value === 'TO_BE_REPLENISHMENT') { if (status.value === 'PICKING' || status.value === 'TO_BE_REPLENISHMENT') {
if (cardSelection.value.length === 0) { if (cardSelection.value.length === 0) {
...@@ -3199,6 +3230,7 @@ onMounted(() => { ...@@ -3199,6 +3230,7 @@ onMounted(() => {
getUserMark() getUserMark()
loadProductionClient() loadProductionClient()
loadWarehouseList() loadWarehouseList()
loadCraftList()
}) })
const expressSheetUpload = async (file: File) => { const expressSheetUpload = async (file: File) => {
......
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