| | |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="关键设备?" |
| | | label="关键设备" |
| | | class="hightColor" |
| | | > |
| | | <span |
| | |
| | | //开工 |
| | | handleStart() { |
| | | const that = this; |
| | | that.confirmLoading = true; |
| | | this.$confirm({ |
| | | title: '维修工单开工', |
| | | content: '提示:开工后无法撤回,请谨慎操作!', |
| | | okText: '确认', |
| | | cancelText: '取消', |
| | | onOk() { |
| | | that.confirmLoading = true; |
| | | putAction(that.url.orderStart, that.repairOrder).then(res => { |
| | | if (res.result) { |
| | | that.$message.success('开工成功'); |
| | |
| | | }, |
| | | handleReport() { |
| | | const that = this; |
| | | that.confirmLoading = true; |
| | | this.$confirm({ |
| | | title: '维修工单报工', |
| | | content: '提示:报工后维修完工,请谨慎操作!', |
| | | okText: '确认', |
| | | cancelText: '取消', |
| | | onOk() { |
| | | that.confirmLoading = true; |
| | | putAction(that.url.orderReport, that.repairOrder).then(res => { |
| | | if (res.result) { |
| | | that.$message.success('报工成功'); |
| | |
| | | //撤销 |
| | | handleRevoke() { |
| | | const that = this; |
| | | that.confirmLoading = true; |
| | | this.$confirm({ |
| | | title: '完工撤销', |
| | | content: '提示:完工撤销后可继续报工操作!', |
| | | okText: '确认', |
| | | cancelText: '取消', |
| | | onOk() { |
| | | that.confirmLoading = true; |
| | | putAction(that.url.orderRevoke, that.repairOrder).then(res => { |
| | | if (res.result) { |
| | | that.$message.success('撤销成功'); |
| | |
| | | }, |
| | | handleSpare(){ |
| | | const that = this; |
| | | that.confirmLoading = true; |
| | | this.$confirm({ |
| | | title: '等采购件', |
| | | content: '提示:该操作不可撤销,确认开始等采购件?', |
| | | okText: '确认', |
| | | cancelText: '取消', |
| | | onOk() { |
| | | that.confirmLoading = true; |
| | | putAction(that.url.handleSpare, that.repairOrder).then(res => { |
| | | if (res.result) { |
| | | that.$message.success('操作成功'); |
| | |
| | | }, |
| | | handleSpareStop(){ |
| | | const that = this; |
| | | that.confirmLoading = true; |
| | | this.$confirm({ |
| | | title: '停止等采购件', |
| | | content: '提示:该操作不可撤销,确认停止等采购件?', |
| | | okText: '确认', |
| | | cancelText: '取消', |
| | | onOk() { |
| | | that.confirmLoading = true; |
| | | putAction(that.url.handleSpareStop, that.repairOrder).then(res => { |
| | | if (res.result) { |
| | | that.$message.success('操作成功'); |
| | |
| | | }, |
| | | handlePart(){ |
| | | const that = this; |
| | | that.confirmLoading = true; |
| | | this.$confirm({ |
| | | title: '等采购件', |
| | | content: '提示:该操作不可撤销,确认等采购件?', |
| | | okText: '确认', |
| | | cancelText: '取消', |
| | | onOk() { |
| | | that.confirmLoading = true; |
| | | putAction(that.url.handlePart, that.repairOrder).then(res => { |
| | | if (res.result) { |
| | | that.$message.success('操作成功'); |
| | |
| | | }, |
| | | handlePartStop(){ |
| | | const that = this; |
| | | that.confirmLoading = true; |
| | | this.$confirm({ |
| | | title: '停止等采购件', |
| | | content: '提示:该操作不可撤销,确认停止等采购件?', |
| | | okText: '确认', |
| | | cancelText: '取消', |
| | | onOk() { |
| | | that.confirmLoading = true; |
| | | putAction(that.url.handlePartStop, that.repairOrder).then(res => { |
| | | if (res.result) { |
| | | that.$message.success('操作成功'); |