出库二次确认
This commit is contained in:
		
							parent
							
								
									a714051eb3
								
							
						
					
					
						commit
						595e8cb60b
					
				| 
						 | 
					@ -1142,7 +1142,7 @@ export default {
 | 
				
			||||||
            this.handleOutQuery()
 | 
					            this.handleOutQuery()
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        saveCodeOut() {
 | 
					        async saveCodeOut() {
 | 
				
			||||||
            console.log(this.maCodeList)
 | 
					            console.log(this.maCodeList)
 | 
				
			||||||
            console.log(this.outNum)
 | 
					            console.log(this.outNum)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1151,6 +1151,19 @@ export default {
 | 
				
			||||||
            } else if (this.maCodeList.length > this.outNum) {
 | 
					            } else if (this.maCodeList.length > this.outNum) {
 | 
				
			||||||
                this.$modal.msgError('出库编码数量不可大于待出库数量!')
 | 
					                this.$modal.msgError('出库编码数量不可大于待出库数量!')
 | 
				
			||||||
            } else {
 | 
					            } else {
 | 
				
			||||||
 | 
					                // 弹框确认
 | 
				
			||||||
 | 
					                let isConfirm = false
 | 
				
			||||||
 | 
					                try {
 | 
				
			||||||
 | 
					                    const res = await this.$modal.confirm('是否确认提交?')
 | 
				
			||||||
 | 
					                    console.log('🚀 ~ saveCodeOut ~ res:', res)
 | 
				
			||||||
 | 
					                    isConfirm = res === 'confirm'
 | 
				
			||||||
 | 
					                } catch (err) {
 | 
				
			||||||
 | 
					                    console.log('🚀 ~ saveCodeOut ~ err:', err) // err === 'cancel'
 | 
				
			||||||
 | 
					                    isConfirm = false
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                console.log('🚀 ~ saveCodeOut ~ isConfirm:', isConfirm)
 | 
				
			||||||
 | 
					                if (!isConfirm) return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if (!this.keyId) {
 | 
					                if (!this.keyId) {
 | 
				
			||||||
                    this.keyId = this.userId + '-' + new Date().getTime()
 | 
					                    this.keyId = this.userId + '-' + new Date().getTime()
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
| 
						 | 
					@ -1284,7 +1297,20 @@ export default {
 | 
				
			||||||
        // },
 | 
					        // },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        //数量出库保存
 | 
					        //数量出库保存
 | 
				
			||||||
        saveNumOut() {
 | 
					        async saveNumOut() {
 | 
				
			||||||
 | 
					            // 弹框确认
 | 
				
			||||||
 | 
					            let isConfirm = false
 | 
				
			||||||
 | 
					            try {
 | 
				
			||||||
 | 
					                const res = await this.$modal.confirm('是否确认提交?')
 | 
				
			||||||
 | 
					                console.log('🚀 ~ res:', res)
 | 
				
			||||||
 | 
					                isConfirm = res === 'confirm'
 | 
				
			||||||
 | 
					            } catch (err) {
 | 
				
			||||||
 | 
					                console.log('🚀 ~ err:', err) // err === 'cancel'
 | 
				
			||||||
 | 
					                isConfirm = false
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            console.log('🚀 ~ isConfirm:', isConfirm)
 | 
				
			||||||
 | 
					            if (!isConfirm) return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            this.outNumList[0].carCode = this.numOutForm.carCode
 | 
					            this.outNumList[0].carCode = this.numOutForm.carCode
 | 
				
			||||||
            this.outNumList[0].remark = this.numOutForm.remark
 | 
					            this.outNumList[0].remark = this.numOutForm.remark
 | 
				
			||||||
            this.outNumList[0].leaseType = 0
 | 
					            this.outNumList[0].leaseType = 0
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue