Commit 39315c4f by sunyang

排单

parent e7884577
......@@ -38,6 +38,11 @@ export function syncReceiverAddress(data: number[]) {
)
}
export function getEmployeeListApi() {
return axios.get(`/factory/factoryUser/list`)
}
// 播种墙配货 扫码放入箱子
export function getPackingCnDataApi(
code: string,
......
......@@ -626,6 +626,11 @@ export function getAccountCodeByFactoryIdApi(params: { token: string }) {
export function getLogisticsWayApi() {
return axios.get(`logisticsWay/usableAllList`)
}
export function getEmployeeListApi() {
return axios.get(`/factory/factoryUser/list`)
}
// 打印拣货单item
export function printPickPdfByBatchNumberApi(params: {
batchArrangeNumber: string
......
......@@ -51,6 +51,7 @@ export interface SearchForm {
downloadStatus?: number
syntheticStatus?: number
automaticComposing?: number
employeeId?: number
}
export interface PodCnOrderListData {
id: number
......
......@@ -48,6 +48,7 @@ export interface SearchForm {
downloadStatus?: number
syntheticStatus?: number
automaticComposing?: number
employeeId?: number
}
export interface PodUsOrderListData {
id: number
......
......@@ -31,7 +31,24 @@
>
</el-date-picker>
</ElFormItem>
<ElFormItem label="创建人" v-if="
status === 'BATCH_DOWNLOAD'
">
<ElSelect
v-model="searchForm.employeeId"
placeholder="请选择"
clearable
:teleported="false"
style="width: 150px"
>
<ElOption
v-for="(item, index) in employeeList"
:key="index"
:value="item.id"
:label="item.account"
></ElOption>
</ElSelect>
</ElFormItem>
<ElFormItem label="工艺类型" v-if="
status === 'BATCH_DOWNLOAD'
">
......@@ -80,7 +97,7 @@
style="width: 150px"
>
<ElOption
v-for="(item, index) in ['失败', '成功']"
v-for="(item, index) in ['否', '是']"
:key="index"
:value="index"
:label="item"
......@@ -2735,6 +2752,7 @@ import {
getCustomTagListCnApi,
printNormalPdf,
changeLogisticsApi,
getEmployeeListApi,
} from '@/api/podCnOrder'
import { BaseRespData } from '@/types/api'
......@@ -2860,6 +2878,7 @@ const sourceList = [
},
]
const sizes = ['FS', 'XS', 'S', 'M', 'L', 'XL', 'XXL', '3XL', '4XL', '5XL']
const employeeList = ref<{ account: string; id: number }[]>([])
const exportData = () => {
exportVisible.value = true
......@@ -3766,6 +3785,14 @@ const asyncOrderAddress = async () => {
}
}
const getEmployeeList = async () => {
const { data } = await getEmployeeListApi()
employeeList.value = data
}
getEmployeeList()
const changeTab = (item: Tab) => {
status.value = item.status || ''
localStorage.setItem('podCnStatus', item.status as string)
......
......@@ -31,7 +31,24 @@
>
</el-date-picker>
</ElFormItem>
<ElFormItem label="创建人" v-if="
status === 'BATCH_DOWNLOAD'
">
<ElSelect
v-model="searchForm.employeeId"
placeholder="请选择"
clearable
:teleported="false"
style="width: 150px"
>
<ElOption
v-for="(item, index) in employeeList"
:key="index"
:value="item.id"
:label="item.account"
></ElOption>
</ElSelect>
</ElFormItem>
<ElFormItem label="工艺类型" v-if="
status === 'BATCH_DOWNLOAD'
">
......@@ -80,7 +97,7 @@
style="width: 150px"
>
<ElOption
v-for="(item, index) in ['失败', '成功']"
v-for="(item, index) in ['否', '是']"
:key="index"
:value="index"
:label="item"
......@@ -3107,6 +3124,7 @@ import {
getLogisticsWayApi,
printNormalPickPdfApi,
updatePRNDownloadStatus,
getEmployeeListApi,
} from '@/api/podUsOrder'
import { BaseRespData } from '@/types/api'
......@@ -3204,6 +3222,8 @@ const printWarehouseSkuDialogRef = ref()
const isAuto = ref(true)
const countryList = ref([])
const logisticsWayList = ref<{ name: string; id: number }[]>([])
const employeeList = ref<{ account: string; id: number }[]>([])
const craftTypeList = ref<{ name: string; code: string }[]>([
{ name: '烫画', code: 'TH' }
])
......@@ -6606,8 +6626,15 @@ const getLogisticsWay = async () => {
logisticsWayList.value = data
}
const getEmployeeList = async () => {
const { data } = await getEmployeeListApi()
employeeList.value = data
}
getPermission()
getLogisticsWay()
getEmployeeList()
const globalProperties =
getCurrentInstance()?.appContext.config.globalProperties // 获取全局挂载
......
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