|
|
|
|
@ -33,7 +33,7 @@ |
|
|
|
|
</basic-container> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import { getList } from '@/api/productionManagement/reworkOrder'; |
|
|
|
|
import { getList, getReceiveOrder, completeOrder } from '@/api/productionManagement/reworkOrder'; |
|
|
|
|
import updateMakeQty from './components/updateMakeQty.vue'; |
|
|
|
|
export default { |
|
|
|
|
components: { updateMakeQty }, |
|
|
|
|
@ -249,14 +249,30 @@ export default { |
|
|
|
|
confirmButtonText: '确认', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning', |
|
|
|
|
}).then(() => {}); |
|
|
|
|
}).then(() => { |
|
|
|
|
getReceiveOrder(row).then(res => { |
|
|
|
|
this.$message({ |
|
|
|
|
message: '接收成功', |
|
|
|
|
type: 'success', |
|
|
|
|
}); |
|
|
|
|
this.onLoad(this.page.this.query); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
finishData(row) { |
|
|
|
|
this.$confirm('确定完成此工单?', '提示', { |
|
|
|
|
confirmButtonText: '确认', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning', |
|
|
|
|
}).then(() => {}); |
|
|
|
|
}).then(() => { |
|
|
|
|
completeOrder(row).then(() => { |
|
|
|
|
this.$message({ |
|
|
|
|
message: '接收成功', |
|
|
|
|
type: 'success', |
|
|
|
|
}); |
|
|
|
|
this.onLoad(this.page.this.query); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
currentChange(currentPage) { |
|
|
|
|
this.page.currentPage = currentPage; |
|
|
|
|
|