| | |
| | | }) |
| | | } |
| | | }, |
| | | async updateWorkLink(HInterID, HEntryID) { |
| | | try { |
| | | let res = await CommonUtils.doRequest2Async({ |
| | | url: "/Sc_MESTransFerWorkBill/UpdateOA_WorkLinkBillFlagMessage", |
| | | data: { |
| | | HInterID, |
| | | HEntryID |
| | | } |
| | | }) |
| | | |
| | | let { |
| | | count, |
| | | Message |
| | | } = res.data |
| | | if (count == 1) { |
| | | // this.switchTab(this.tabs) |
| | | } else { |
| | | CommonUtils.showTips({ |
| | | title: '温馨提示', |
| | | message: `更新工作联系单失败: ${Message}` |
| | | }) |
| | | } |
| | | } catch (err) { |
| | | CommonUtils.showTips({ |
| | | title: '温馨提示', |
| | | message: `更新工作联系单失败: ${err}` |
| | | }) |
| | | } |
| | | }, |
| | | }, |
| | | async onLoad(e) { |
| | | console.log('e: ', e); |
| | |
| | | }) |
| | | this.getWorkLinkBill(HInterID, HEntryID) |
| | | this.GetOA_WorkLinkBillSub(HInterID) |
| | | this.updateWorkLink(HInterID, HEntryID) |
| | | } |
| | | |
| | | this.getHDeptList() |