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