|
|
@@ -400,31 +400,45 @@ export default {
|
|
400
|
400
|
},
|
|
401
|
401
|
|
|
402
|
402
|
// 确认入库方法
|
|
403
|
|
- async confirmWarehouseEntry() {
|
|
|
403
|
+ confirmWarehouseEntry() {
|
|
404
|
404
|
|
|
|
405
|
+ console.log('确认入库', this.orderDetail.id)
|
|
405
|
406
|
|
|
406
|
|
- //上传物流表单数据
|
|
407
|
|
- this.$emit('confirmInterStore', {
|
|
408
|
|
- warehouseInfo: this.warehouseInfo,
|
|
|
407
|
+ uni.showModal({
|
|
|
408
|
+ title: '确认入库',
|
|
|
409
|
+ content: `是否确认入库改订单:${this.orderDetail.item}?`,
|
|
|
410
|
+ success: async (res) => {
|
|
|
411
|
+ if (res.confirm) {
|
|
|
412
|
+ await uni.$u.api.oderForm({
|
|
|
413
|
+ status: "3",
|
|
|
414
|
+ id: this.orderDetail.id,
|
|
|
415
|
+ });
|
|
|
416
|
+
|
|
|
417
|
+ //上传物流表单数据
|
|
|
418
|
+ this.$emit('confirmInterStore', {
|
|
|
419
|
+ warehouseInfo: this.warehouseInfo,
|
|
|
420
|
+ })
|
|
|
421
|
+
|
|
|
422
|
+ //上传分成数据
|
|
|
423
|
+ await this.addShare()
|
|
|
424
|
+
|
|
|
425
|
+ this.$refs.uToast.show({
|
|
|
426
|
+ type: "success",
|
|
|
427
|
+ message: "入库成功",
|
|
|
428
|
+ iconUrl: "https://uviewui.com/demo/toast/success.png",
|
|
|
429
|
+ complete() {
|
|
|
430
|
+ uni.navigateTo({
|
|
|
431
|
+ url: '/pages/pagereceivecenter/pagereceivecenter',
|
|
|
432
|
+ })
|
|
|
433
|
+ },
|
|
|
434
|
+ });
|
|
|
435
|
+
|
|
|
436
|
+ } else if (res.cancel) {
|
|
|
437
|
+ // 用户点击了取消,不执行任何操作
|
|
|
438
|
+ uni.$u.toast('已取消入库');
|
|
|
439
|
+ }
|
|
|
440
|
+ }
|
|
409
|
441
|
})
|
|
410
|
|
-
|
|
411
|
|
- //上传分成数据
|
|
412
|
|
- await this.addShare()
|
|
413
|
|
-
|
|
414
|
|
- this.$refs.uToast.show({
|
|
415
|
|
- type: "success",
|
|
416
|
|
- message: "入库成功",
|
|
417
|
|
- iconUrl: "https://uviewui.com/demo/toast/success.png",
|
|
418
|
|
- complete() {
|
|
419
|
|
- uni.navigateTo({
|
|
420
|
|
- url: '/pages/pagereceivecenter/pagereceivecenter',
|
|
421
|
|
- })
|
|
422
|
|
- },
|
|
423
|
|
- });
|
|
424
|
|
-
|
|
425
|
|
- //跳转接单
|
|
426
|
|
-
|
|
427
|
|
-
|
|
428
|
442
|
},
|
|
429
|
443
|
|
|
430
|
444
|
// 获取分成人名单
|