diff --git a/src/pages/Middle/Mold/MoldProductionOrder/ComponentDetail.vue b/src/pages/Middle/Mold/MoldProductionOrder/ComponentDetail.vue index 5800573..aa55b36 100644 --- a/src/pages/Middle/Mold/MoldProductionOrder/ComponentDetail.vue +++ b/src/pages/Middle/Mold/MoldProductionOrder/ComponentDetail.vue @@ -83,20 +83,27 @@ :edit-render="{ name: '$input', props: { type: 'date' } }"> - + - + @@ -464,9 +471,11 @@ export default { }); }, - pageDone(row) { + pageDone(row,isUndo) { this.$mk.post({ - url: `${BASE_URL.BASE_URL}/MoldProductionOrder/v1/mold/production/order/component/processes/Reporting`, + url: isUndo ? + `${BASE_URL.BASE_URL}/MoldProductionOrder/v1/mold/production/order/component/processes/CancelReporting`: + `${BASE_URL.BASE_URL}/MoldProductionOrder/v1/mold/production/order/component/processes/Reporting`, data: { id: this.$mk.toBigInt( row.id) }, @@ -479,9 +488,11 @@ export default { }); }, - pageSend(row) { + pageSend(row,isUndo) { this.$mk.post({ - url: `${BASE_URL.BASE_URL}/MoldProductionOrder/v1/mold/production/order/component/processes/SendMaterial`, + url: isUndo ? + `${BASE_URL.BASE_URL}/MoldProductionOrder/v1/mold/production/order/component/processes/CancelSendMaterial`: + `${BASE_URL.BASE_URL}/MoldProductionOrder/v1/mold/production/order/component/processes/SendMaterial`, data: { id:this.$mk.toBigInt( row.id) },