| | |
| | | this.maEndTime = this.$getDate('yyyy-mm-dd hh24:mi:ss'); |
| | | }, |
| | | // 刷新工单数据 |
| | | refresh() { |
| | | this.findByOrderId(); |
| | | }, |
| | | refresh() { |
| | | this.findByOrderId(); |
| | | } |
| | | findByOrderId() { |
| | | this.$post({ |
| | | url: "/MesOrderSta/FindByOrderNo", |
| | | data: { |
| | | orderId: this.orderId, |
| | | orderNo: this.orderNo |
| | | } |
| | | }).then(res => { |
| | | this.statusForm = res.data.tbBillList; |
| | | this.maShoutTime = res.data.tbBillList.maShoutTime; |
| | | this.maStartTime = res.data.tbBillList.maStartTime; |
| | | this.maEndTime = res.data.tbBillList.maEndTime; |
| | | }); |
| | | }, |
| | | // 保存并生效,将时间等信息提交到后端 |
| | | save() { |
| | | if (!this.statusForm.id) { |
| | |
| | | }).then(res => { |
| | | if (res.data.tbBillList) { |
| | | this.$showMessage("呼叫成功"); |
| | | this.findByOrderId(); |
| | | this.FindByOrderNo();// 保存后刷新 |
| | | this.refresh(); // 保存后刷新 |
| | | } else { |
| | | this.$showMessage("呼叫失败"); |