| | |
| | | name: 'MesProductionWorkOrderProcessCheckModal', |
| | | data () { |
| | | return { |
| | | title: '设备点检', |
| | | title: '工艺点检', |
| | | width: 1200, |
| | | visible: false, |
| | | loading: false, |
| | |
| | | this.$message.error("请完成所有必填信息后再提交!") |
| | | } else { |
| | | let tableData = this.$refs.table.getTableData().fullData |
| | | if (!tableData || tableData.length === 0) { |
| | | this.$message.error("点检项为空,无法提交!") |
| | | return |
| | | } |
| | | const data = { |
| | | equipmentId: this.model.equipmentId, |
| | | workOrderId: this.workOrderId, |
| | | checkDetailList: tableData |
| | | } |
| | | console.log(data) |
| | | postAction(this.url.addProcessCheck, data).then(res=> { |
| | | if (res.success) { |
| | | this.$message.success(res.message) |