This commit is contained in:
2024-01-21 20:06:09 +08:00
parent ca314defad
commit 0a8d7e200a
3 changed files with 14 additions and 12 deletions

View File

@@ -118,16 +118,16 @@
},
save() {
if (this.stringIsEmpty(this.page.code) || this.page.code.length != 20) {
this.shortToast('请输入或扫描20位提货编码')
this.shortToast('请输入20位提货编码')
return
}
if (this.stringIsEmpty(this.page.codeKey) || this.page.codeKey.length != 6) {
this.shortToast('请输入6位提货密码')
return
}
// if (this.stringIsEmpty(this.page.codeKey) || this.page.codeKey.length != 6) {
// this.shortToast('请输入6位提货密码')
// return
// }
let _this = this
_this.$api.pickUpCardBind(this.page).then((resp) => {
_this.$api.bindAllCard(this.page).then((resp) => {
bus.$emit('order', "监听回调");
// setTimeout(() => {
// uni.$emit('order', "监听回调")

View File

@@ -175,15 +175,15 @@
},
save() {
if (this.stringIsEmpty(this.page.code) || this.page.code.length != 20) {
this.shortToast('请输入或扫描20位提货编码')
return
}
if (this.stringIsEmpty(this.page.codeKey) || this.page.codeKey.length != 6) {
this.shortToast('请输入6位提货密码')
this.shortToast('请输入20位提货编码')
return
}
// if (this.stringIsEmpty(this.page.codeKey) || this.page.codeKey.length != 6) {
// this.shortToast('请输入6位提货密码')
// return
// }
let _this = this
_this.$api.pickUpCardBind(this.page).then((resp) => {
_this.$api.bindAllCard(this.page).then((resp) => {
bus.$emit('order', "监听回调");
uni.switchTab({
url: '/pages/home/myCellar'