| | |
| | | import { postAction, getAction } from '@api/manage' |
| | | |
| | | export default { |
| | | name: 'MesProductionWorkOrderRepublishModal', |
| | | name: 'MesProductionWorkOrderReportModal', |
| | | data () { |
| | | return { |
| | | title: '报工', |
| | |
| | | sm: { span: 18 }, |
| | | }, |
| | | url: { |
| | | republish: '/mesproductionworkorder/mesProductionWorkOrder/republish', |
| | | report: '/mesworkreporting/mesWorkReporting/add', |
| | | selectReportWorkOrderList: '/mes/productionOrder/selectReportWorkOrderList' |
| | | }, |
| | | workOrderOptions: [] |
| | |
| | | if (valid) { |
| | | this.confirmLoading = true |
| | | let formData = { |
| | | id: this.model.id, |
| | | planQuantity: this.model.planQuantity, |
| | | republishReason: this.model.republishReason |
| | | orderId: this.model.orderId, |
| | | workOrderId: this.model.id, |
| | | factoryId: this.model.factoryId, |
| | | quantity: this.model.quantity |
| | | } |
| | | postAction(this.url.republish, formData).then(res => { |
| | | postAction(this.url.report, formData).then(res => { |
| | | if (res.success) { |
| | | this.$message.success(res.message) |
| | | this.submitCallback() |