Browse Source

隔离退料记录

linshi20240813
wangyufei 3 months ago
parent
commit
9fe8df04fd
  1. 20
      src/api/wms/productionreturnRecordDetail/index.ts
  2. 5
      src/views/wms/issueManage/productionreturn/productionreturnRecordMain/index.vue

20
src/api/wms/productionreturnRecordDetail/index.ts

@ -44,6 +44,26 @@ export const getProductionreturnRecordDetailPage = async (params) => {
return await request.get({ url: `/wms/productionreturn-record-detail/page`, params })
}
}
// 查询生产退料记录子列表
export const getProductionreturnRecordDetailPageStore = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/productionreturn-record-detail-store/senior', data })
} else {
return await request.get({ url: `/wms/productionreturn-record-detail-store/page`, params })
}
}
// 查询隔离退料记录子列表
export const getProductionreturnRecordDetailPageHold = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/productionreturn-record-detail-hold/senior', data })
} else {
return await request.get({ url: `/wms/productionreturn-record-detail-hold/page`, params })
}
}
// 查询生产退料记录子详情
export const getProductionreturnRecordDetail = async (id: number) => {

5
src/views/wms/issueManage/productionreturn/productionreturnRecordMain/index.vue

@ -68,7 +68,7 @@ import * as ProductionreturnRecordMainApi from '@/api/wms/productionreturnRecord
import * as ProductionreturnRecordDetailApi from '@/api/wms/productionreturnRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
// 退
// 退 and 退
defineOptions({ name: 'ProductionreturnRecordMain' })
const message = useMessage() //
@ -77,6 +77,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() //
const routeName = ref()
routeName.value = route.name
const tableColumns = ref([...ProductionreturnRecordMain.allSchemas.tableColumns,...ProductionreturnRecordDetail.allSchemas.tableMainColumns])
//
@ -85,7 +86,7 @@ const updataTableColumns = (val) => {
}
const { tableObject, tableMethods } = useTable({
getListApi: ProductionreturnRecordDetailApi.getProductionreturnRecordDetailPage //
getListApi: 'ProductionreturnRecordMain'==routeName.value?ProductionreturnRecordDetailApi.getProductionreturnRecordDetailPageStore:ProductionreturnRecordDetailApi.getProductionreturnRecordDetailPageHold //
})
//

Loading…
Cancel
Save