|
|
@ -66,7 +66,7 @@ |
|
|
|
:detailAllSchemasRules="ProductreceiptRequestDetailRules" |
|
|
|
:apiCreate="ProductreceiptRequestDetailApi.createProductreceiptRequestDetail" |
|
|
|
:apiUpdate="ProductreceiptRequestDetailApi.updateProductreceiptRequestDetail" |
|
|
|
:apiPage="ProductreceiptRequestDetailApi.getProductreceiptRequestDetailPage" |
|
|
|
:apiPage="ProductreceiptRequestDetailApi.getProductreceiptRequestDetailPageScrap" |
|
|
|
:apiDelete="ProductreceiptRequestDetailApi.deleteProductreceiptRequestDetail" |
|
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
|
:buttondataTable="buttondataTable" |
|
|
@ -158,7 +158,7 @@ const isCreateLabel = ref(false) |
|
|
|
const formLabelRef = ref() |
|
|
|
const labelType = ref('') // 标签类别 采购还是制造等 |
|
|
|
const { tableObject: detatableData, tableMethods: detatableMethods } =useTable({ |
|
|
|
getListApi: ProductreceiptRequestDetailApi.getProductreceiptRequestDetailPage |
|
|
|
getListApi: ProductreceiptRequestDetailApi.getProductreceiptRequestDetailPageScrap |
|
|
|
}) |
|
|
|
const { getList:getDetailList } = detatableMethods |
|
|
|
|
|
|
@ -203,7 +203,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { |
|
|
|
} |
|
|
|
|
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
|
getListApi: ProductreceiptRequestDetailApi.getProductreceiptRequestDetailPage // 报废收货分页接口 |
|
|
|
getListApi: ProductreceiptRequestDetailApi.getProductreceiptRequestDetailPageScrap // 报废收货分页接口 |
|
|
|
}) |
|
|
|
|
|
|
|
// 获得表格的各种操作 |
|
|
@ -546,9 +546,11 @@ const submitForm = async (formType, data) => { |
|
|
|
try { |
|
|
|
if (formType === 'create') { |
|
|
|
data.productionLineCode = data.subList[0].productionLineCode; |
|
|
|
data.type='scrap' |
|
|
|
await ProductreceiptRequestMainApi.createProductreceiptRequestMain(data) |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
} else { |
|
|
|
data.type='scrap' |
|
|
|
await ProductreceiptRequestMainApi.updateProductreceiptRequestMain(data) |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
} |
|
|
|