| | |
| | | } |
| | | }) |
| | | }, |
| | | submit() { |
| | | if (this.barcode == "") { |
| | | this.$refs.uToast.show({ |
| | | title: "è¯·æ«æè´§ä½ç¼å·", |
| | | type: 'error' |
| | | }) |
| | | return; |
| | | } |
| | | // if (this.materSn.length == 0) { |
| | | // this.$refs.uToast.show({ |
| | | // title: "请è¾å
¥åºåºæ°é", |
| | | // type: 'error' |
| | | // }) |
| | | // return; |
| | | // } |
| | | this.$u.post('/api/DeliveryOrder/OutFinish', { |
| | | MainData: { |
| | | "locationCode": this.barcode, |
| | | "taskId":this.taskId, |
| | | // "warehouseCode": this.warehouseId, |
| | | // "orderNo": this.orderNo, |
| | | // "Inqty": this.materSn, |
| | | // "batchNo": this.batchNo, |
| | | }, |
| | | // DelKeys: this.sns |
| | | }).then(res => { |
| | | this.Testcheck = false; |
| | | if (res.status) { |
| | | this.$refs.uToast.show({ |
| | | title: "åºåºæå", |
| | | type: "success" |
| | | }) |
| | | // this.Inqty=res.message; |
| | | // this.order_Inqty="å·²åºåºæ°éï¼"+this.Inqty; |
| | | this.barcode=""; |
| | | // uni.setStorageSync('outTask',true); |
| | | setTimeout(() => { |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }); |
| | | }, 300); |
| | | // this.materSn=""; |
| | | } else { |
| | | this.$refs.uToast.show({ |
| | | title: res.message, |
| | | type: "error" |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | // submit() { |
| | | // if (this.barcode == "") { |
| | | // this.$refs.uToast.show({ |
| | | // title: "è¯·æ«æè´§ä½ç¼å·", |
| | | // type: 'error' |
| | | // }) |
| | | // return; |
| | | // } |
| | | |
| | | // this.$u.post('/api/DeliveryOrder/OutFinish', { |
| | | // MainData: { |
| | | // "locationCode": this.barcode, |
| | | // "taskId": this.taskId, |
| | | // }, |
| | | // }).then(res => { |
| | | // if (res.status) { |
| | | // this.$refs.uToast.show({ |
| | | // title: "åºåºæå", |
| | | // type: "success" |
| | | // }) |
| | | // this.barcode = ""; |
| | | |
| | | // // å
³é®ä¿®æ¹ï¼ä½¿ç¨ getCurrentPages è·ååä¸ä¸ªé¡µé¢å¹¶ç´æ¥è°ç¨å
¶æ¹æ³ |
| | | // const pages = getCurrentPages(); |
| | | // const prevPage = pages[pages.length - 2]; // è·åä¸ä¸ä¸ªé¡µé¢å®ä¾ |
| | | |
| | | // if (prevPage && prevPage.refreshData) { |
| | | // // ç´æ¥è°ç¨ä¸ä¸ä¸ªé¡µé¢çå·æ°æ¹æ³ |
| | | // prevPage.refreshData(); |
| | | // } |
| | | |
| | | // setTimeout(() => { |
| | | // uni.navigateBack({ |
| | | // delta: 1 |
| | | // }); |
| | | // }, 300); |
| | | // } else { |
| | | // this.$refs.uToast.show({ |
| | | // title: res.message, |
| | | // type: "error" |
| | | // }) |
| | | // } |
| | | // }) |
| | | // } |
| | | |
| | | |
| | | |
| | | submit() { |
| | | if (this.barcode == "") { |
| | | this.$refs.uToast.show({ |
| | | title: "è¯·æ«æè´§ä½ç¼å·", |
| | | type: 'error' |
| | | }) |
| | | return; |
| | | } |
| | | |
| | | // æ°å¢äºæ¬¡ç¡®è®¤é»è¾ |
| | | uni.showModal({ |
| | | title: '确认åºåº', |
| | | content: 'æ¨ç¡®å®è¦æäº¤åºåºä¿¡æ¯åï¼', |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | // ç¨æ·ç¹å»ç¡®å®ï¼æ§è¡åæçæäº¤é»è¾ |
| | | this.$u.post('/api/DeliveryOrder/OutFinish', { |
| | | MainData: { |
| | | "locationCode": this.barcode, |
| | | "taskId": this.taskId, |
| | | }, |
| | | }).then(res => { |
| | | if (res.status) { |
| | | this.$refs.uToast.show({ |
| | | title: "åºåºæå", |
| | | type: "success" |
| | | }) |
| | | this.barcode = ""; |
| | | |
| | | // å
³é®ä¿®æ¹ï¼ä½¿ç¨ getCurrentPages è·ååä¸ä¸ªé¡µé¢å¹¶ç´æ¥è°ç¨å
¶æ¹æ³ |
| | | const pages = getCurrentPages(); |
| | | const prevPage = pages[pages.length - 2]; // è·åä¸ä¸ä¸ªé¡µé¢å®ä¾ |
| | | |
| | | if (prevPage && prevPage.refreshData) { |
| | | // ç´æ¥è°ç¨ä¸ä¸ä¸ªé¡µé¢çå·æ°æ¹æ³ |
| | | prevPage.refreshData(); |
| | | } |
| | | |
| | | setTimeout(() => { |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }); |
| | | }, 300); |
| | | } else { |
| | | this.$refs.uToast.show({ |
| | | title: res.message, |
| | | type: "error" |
| | | }) |
| | | } |
| | | }) |
| | | } else { |
| | | // ç¨æ·ç¹å»åæ¶ï¼ä¸åä»»ä½æä½ |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | </script> |