Browse Source

维修备件退货修改

hella_online_20240829
zhaoxuebing 4 months ago
parent
commit
7f726ffeb5
  1. 12
      src/api/wms/purchasereturnRecordDetail/index.ts
  2. 4
      src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRecordSpareMain/index.vue

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

@ -48,6 +48,18 @@ 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 getPurchasereturnRecordDetailPageSpare = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/purchasereturn-record-detail/seniorSpare', data })
} else {
return await request.get({ url: `/wms/purchasereturn-record-detail/pageSpare`, params })
}
}
export const getPurchasereturnRecordDetailPageSCP = async (params) => { export const getPurchasereturnRecordDetailPageSCP = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch

4
src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRecordSpareMain/index.vue

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

Loading…
Cancel
Save