|
|
@ -117,7 +117,7 @@ |
|
|
|
:detailAllSchemasRules="PurchasereturnRequestDetailRules" |
|
|
|
:apiCreate="PurchasereturnRequestDetailApi.createPurchasereturnRequestDetail" |
|
|
|
:apiUpdate="PurchasereturnRequestDetailApi.updatePurchasereturnRequestDetail" |
|
|
|
:apiPage="PurchasereturnRequestDetailApi.getPurchasereturnRequestDetailPage" |
|
|
|
:apiPage="PurchasereturnRequestDetailApi.getPurchasereturnRequestDetailPageMorderType" |
|
|
|
:apiDelete="PurchasereturnRequestDetailApi.deletePurchasereturnRequestDetail" |
|
|
|
:Echo="Echo" |
|
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
@ -181,7 +181,6 @@ import * as PurchasereturnRequestMainApi from '@/api/wms/purchasereturnRequestMa |
|
|
|
import * as PurchasereturnRequestDetailApi from '@/api/wms/purchasereturnRequestDetail' |
|
|
|
import * as PurchasereceiptRecordDetailApi from '@/api/wms/purchasereceiptRecordDetail' |
|
|
|
import { PurchaseMain, PurchaseMainRules, PurchaseDetail, PurchaseDetailRules } from '@/views/wms/purchasereceiptManage/supplierdeliver/purchaseMainWms/purchaseMain.data' |
|
|
|
|
|
|
|
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import { SupplierdeliverRequestPackage } from '../../supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data' |
|
|
@ -240,7 +239,7 @@ const onEnter = async (field, value) => { |
|
|
|
const isCreateLabel = ref(false) |
|
|
|
const formLabelRef = ref() |
|
|
|
const { tableObject: detatableData, tableMethods: detatableMethods } = useTable({ |
|
|
|
getListApi: PurchasereturnRequestDetailApi.getPurchasereturnRequestDetailPage |
|
|
|
getListApi: PurchasereturnRequestDetailApi.getPurchasereturnRequestDetailPageMorderType |
|
|
|
}) |
|
|
|
const { getList: getDetailList } = detatableMethods |
|
|
|
|
|
|
@ -312,7 +311,7 @@ const updateTableData = (tableList)=>{ |
|
|
|
const getSearchTableData = async (number,isEnter=false)=>{ |
|
|
|
const {tableObject ,tableMethods} = useTable({ |
|
|
|
defaultParams:{number}, |
|
|
|
getListApi: PurchaseDetailApi.getPurchaseDetailPageWMS // 分页接口 |
|
|
|
getListApi: PurchaseDetailApi.getPurchaseDetailPageWMSMOrderType // 分页接口 |
|
|
|
}) |
|
|
|
tableObject.pageSize = 500 |
|
|
|
// 获得表格的各种操作 |
|
|
@ -496,7 +495,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef) => { |
|
|
|
const Echo = [] |
|
|
|
|
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
|
getListApi: PurchasereturnRequestDetailApi.getPurchasereturnRequestDetailPage // 分页接口 |
|
|
|
getListApi: PurchasereturnRequestDetailApi.getPurchasereturnRequestDetailPageMorderType // 分页接口 |
|
|
|
}) |
|
|
|
|
|
|
|
// 获得表格的各种操作 |
|
|
@ -877,7 +876,7 @@ const onChangeForm = async (field, cur, formRef)=>{ |
|
|
|
} |
|
|
|
|
|
|
|
const getPurchanseList = async ()=>{ |
|
|
|
let res = await PurchaseDetailApi.getPurchaseDetailPageWMS({ |
|
|
|
let res = await PurchaseDetailApi.getPurchaseDetailPageWMSMOrderType({ |
|
|
|
supplierCode: formRef.value.formRef.formModel.supplierCode, |
|
|
|
itemCode: formRef.value.formRef.formModel.itemCode, |
|
|
|
pageSize: 20, |
|
|
@ -911,7 +910,7 @@ const choosePurchanseList = ()=>{ |
|
|
|
searchTableRef.value.open( |
|
|
|
"直接选择采购订单", |
|
|
|
PurchaseMain.allSchemas, |
|
|
|
PurchaseDetailApi.getPurchaseDetailPageWMS, |
|
|
|
PurchaseDetailApi.getPurchaseDetailPageWMSMOrderType, |
|
|
|
"hehehe", |
|
|
|
"hehehe", |
|
|
|
false, |
|
|
@ -1012,7 +1011,7 @@ const submitForm = async (formType, submitData) => { |
|
|
|
try { |
|
|
|
if (formType === 'create') { |
|
|
|
data.orderTypeM='1'; |
|
|
|
await PurchasereceiptRequestMainApi.createPurchasereceiptRequestMain(data) |
|
|
|
await PurchasereturnRequestMainApi.createPurchasereturnRequestMainMType(data) |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
} else { |
|
|
|
data.orderTypeM='1'; |
|
|
|