Browse Source

SCP---采购收货记录+采购退货记录

master_hella_20240701
yufei0306 7 months ago
parent
commit
94374cf3e4
  1. 9
      src/api/wms/purchasereceiptRecordDetail/index.ts
  2. 9
      src/api/wms/purchasereturnRecordDetail/index.ts
  3. 9
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue
  4. 4
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue

9
src/api/wms/purchasereceiptRecordDetail/index.ts

@ -60,6 +60,15 @@ export const getPurchasereceiptRecordDetailPage = async (params) => {
return await request.get({ url: `/wms/purchasereceipt-record-detail/page`, params }) return await request.get({ url: `/wms/purchasereceipt-record-detail/page`, params })
} }
} }
export const getPurchasereceiptRecordDetailPageSCP = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/purchasereceipt-record-detail/seniorSCP', data })
} else {
return await request.get({ url: `/wms/purchasereceipt-record-detail/pageSCP`, params })
}
}
// 查询采购收货记录子列表 // 查询采购收货记录子列表
export const getPurchasereceiptRecordDetailPageBySupplierCode = async (params) => { export const getPurchasereceiptRecordDetailPageBySupplierCode = async (params) => {

9
src/api/wms/purchasereturnRecordDetail/index.ts

@ -48,6 +48,15 @@ export const getPurchasereturnRecordDetailPage = async (params) => {
return await request.get({ url: `/wms/purchasereturn-record-detail/page`, params }) return await request.get({ url: `/wms/purchasereturn-record-detail/page`, params })
} }
} }
export const getPurchasereturnRecordDetailPageSCP = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/purchasereturn-record-detail/seniorSCP', data })
} else {
return await request.get({ url: `/wms/purchasereturn-record-detail/pageSCP`, params })
}
}
// 查询采购退货记录子详情 // 查询采购退货记录子详情
export const getPurchasereturnRecordDetail = async (id: number) => { export const getPurchasereturnRecordDetail = async (id: number) => {

9
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue

@ -106,15 +106,12 @@ import { PurchasereceiptRequestTabsList } from '@/utils/disposition/tabsList'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
// //
defineOptions({ name: 'PurchasereceiptRecordMain' }) defineOptions({ name: 'PurchasereceiptRecordMain' })
const apiPage = ref(PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage)
const message = useMessage() // const message = useMessage() //
const { t } = useI18n() // const { t } = useI18n() //
const route = useRoute() // const route = useRoute() //
const routeName = ref() const routeName = ref()
routeName.value = route.name routeName.value = route.name
const apiPage = ref(routeName.value.includes('SCP')?PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPageSCP:PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage)
const tableColumns = ref([...PurchasereceiptRecordMain.allSchemas.tableColumns,...PurchasereceiptRecordDetail.allSchemas.tableMainColumns]) const tableColumns = ref([...PurchasereceiptRecordMain.allSchemas.tableColumns,...PurchasereceiptRecordDetail.allSchemas.tableMainColumns])
const detailAllSchemas = ref(PurchasereceiptRecordDetail.allSchemas) const detailAllSchemas = ref(PurchasereceiptRecordDetail.allSchemas)
@ -124,7 +121,7 @@ const updataTableColumns = (val) => {
} }
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage // getListApi: routeName.value.includes('SCP')?PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPageSCP:PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage //
}) })
// //
@ -290,7 +287,7 @@ const searchFormClick = (searchData) => {
const changeTabs = (data) =>{ const changeTabs = (data) =>{
if(data.prop == 'receiptDetail'){ if(data.prop == 'receiptDetail'){
console.log(data) console.log(data)
apiPage.value = PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage apiPage.value = routeName.value.includes('SCP')?PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPageSCP:PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage
detailAllSchemas.value = PurchasereceiptRecordDetail.allSchemas detailAllSchemas.value = PurchasereceiptRecordDetail.allSchemas
tabeKey.value = 'receiptDetail' tabeKey.value = 'receiptDetail'
}else if(data.prop == 'scarceGoodsDetail'){ }else if(data.prop == 'scarceGoodsDetail'){

4
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue

@ -57,7 +57,7 @@
:allSchemas="PurchasereturnRecordMain.allSchemas" :allSchemas="PurchasereturnRecordMain.allSchemas"
:detailAllSchemas="PurchasereturnRecordDetail.allSchemas" :detailAllSchemas="PurchasereturnRecordDetail.allSchemas"
:detailAllSchemasRules="PurchasereturnRecordDetailRules" :detailAllSchemasRules="PurchasereturnRecordDetailRules"
:apiPage="PurchasereturnRecordDetailApi.getPurchasereturnRecordDetailPage" :apiPage="routeName.includes('SCP')?PurchasereturnRecordDetailApi.getPurchasereturnRecordDetailPageSCP:PurchasereturnRecordDetailApi.getPurchasereturnRecordDetailPage"
/> />
</template> </template>
@ -86,7 +86,7 @@ const updataTableColumns = (val) => {
} }
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: PurchasereturnRecordDetailApi.getPurchasereturnRecordDetailPage // getListApi: routeName.value.includes('SCP')?PurchasereturnRecordDetailApi.getPurchasereturnRecordDetailPageSCP:PurchasereturnRecordDetailApi.getPurchasereturnRecordDetailPage //
}) })
// //

Loading…
Cancel
Save