|
@@ -281,17 +281,9 @@ export default {
|
|
|
this.$api
|
|
|
.postJson('/app/worker/parts-sales/add', this.form)
|
|
|
.then(res => {
|
|
|
- if (res.code === 200) {
|
|
|
- uni.redirectTo({
|
|
|
- url: `/packageAttachment/pages/applicationParts/confirmOrder?id=${res.data.id}`
|
|
|
- })
|
|
|
- } else {
|
|
|
- uni.showModal({
|
|
|
- title: '提示',
|
|
|
- content: res.message,
|
|
|
- showCancel: false
|
|
|
- })
|
|
|
- }
|
|
|
+ uni.redirectTo({
|
|
|
+ url: `/packageAttachment/pages/orderOfSales/index`
|
|
|
+ })
|
|
|
})
|
|
|
.catch(() => {})
|
|
|
},
|