Showing
1 changed file
with
2 additions
and
26 deletions
| ... | ... | @@ -89,15 +89,13 @@ export default { |
| 89 | 89 | edit: () => this.onEdit(), |
| 90 | 90 | auditDetail: () => this.onAuditDetail(), |
| 91 | 91 | audit: () => this.onAudit(), |
| 92 | - fill: () => this.onFill(), | |
| 93 | - cancel: () => this.onCancel(), | |
| 94 | 92 | } |
| 95 | 93 | const fn = map[btn.event] |
| 96 | 94 | if (typeof fn === 'function') fn() |
| 97 | 95 | }, |
| 98 | 96 | onEdit() { |
| 99 | 97 | const id = this.form.id || this.form.code |
| 100 | - if (id) uni.navigateTo({ url: `/pages/replenishment_order/modify?id=${id}` }) | |
| 98 | + if (id) uni.navigateTo({ url: `/pages/confirmation_form/modify?id=${id}` }) | |
| 101 | 99 | }, |
| 102 | 100 | onAuditDetail() { |
| 103 | 101 | uni.setStorageSync('sourceBusinessId', this.form.id) |
| ... | ... | @@ -107,29 +105,7 @@ export default { |
| 107 | 105 | uni.setStorageSync('sourceBusinessId', this.form.id) |
| 108 | 106 | uni.navigateTo({ url: '/pages/flow/audit' }) |
| 109 | 107 | }, |
| 110 | - onFill() { | |
| 111 | - const id = this.form.id || this.form.code | |
| 112 | - if (id) uni.navigateTo({ url: `/pages/replenishment_order/fill?id=${id}` }) | |
| 113 | - }, | |
| 114 | - onCancel() { | |
| 115 | - const id = this.form.id || this.form.code | |
| 116 | - if (!id) return | |
| 117 | - uni.showModal({ | |
| 118 | - title: '提示', | |
| 119 | - content: '确定要取消该补货单吗?', | |
| 120 | - success: async (res) => { | |
| 121 | - if (res.confirm) { | |
| 122 | - try { | |
| 123 | - await cancelApi(id) | |
| 124 | - uni.showToast({ title: '取消成功', icon: 'success' }) | |
| 125 | - setTimeout(() => { uni.redirectTo({ url: '/pages/replenishment_order/index' }) }, 300) | |
| 126 | - } catch (e) { | |
| 127 | - uni.showToast({ title: (e && e.msg) || '取消失败', icon: 'none' }) | |
| 128 | - } | |
| 129 | - } | |
| 130 | - } | |
| 131 | - }) | |
| 132 | - }, | |
| 108 | + | |
| 133 | 109 | } |
| 134 | 110 | } |
| 135 | 111 | </script> | ... | ... |