| | |
| | | <!-- 中间状态部分,上下结构,包含调机流程的三个步骤 --> |
| | | <view class="middle-section"> |
| | | <view class="item" style="height: 100px;"> |
| | | <h4>说明:点击调机开始后,再点击保存并生效</h4> |
| | | <h4>说明:调机开始时间需要手动确认</h4> |
| | | </view> |
| | | <view class="item"> |
| | | <!-- 调机开始按钮,maStartTime有值时禁用 --> |
| | |
| | | this.maEndTime = this.$getDate('yyyy-mm-dd hh24:mi:ss'); |
| | | }, |
| | | // 刷新工单数据 |
| | | 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; |
| | | }); |
| | | }, |
| | | refresh() { |
| | | this.findByOrderId(); |
| | | }, |
| | | // 保存并生效,将时间等信息提交到后端 |
| | | save() { |
| | | if (!this.statusForm.id) { |
| | |
| | | }).then(res => { |
| | | if (res.data.tbBillList) { |
| | | this.$showMessage("呼叫成功"); |
| | | this.$forceUpdate(); // 强制刷新当前组件 |
| | | this.refresh(); // 保存后刷新 |
| | | this.findByOrderId(); |
| | | } else { |
| | | this.$showMessage("呼叫失败"); |
| | | this.cancel(); |
| | |
| | | break; |
| | | case 1: |
| | | this.maShoutTime = this.$getDate('yyyy-mm-dd hh24:mi:ss'); |
| | | //this.flag = -1; // 送检呼叫有值后,flag始终为-1 |
| | | this.flag = -1; // 送检呼叫有值后,flag始终为-1 |
| | | break; |
| | | case 2: |
| | | break; |
| | | } |
| | | this.flag = item; |
| | | }, |
| | | // 根据工单号/ID获取工单状态数据 |
| | | findByOrderId() { |