1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 20:39:48 +08:00

Product not available (#569)

the price list was added
This commit is contained in:
Elsio Sanchez 2021-01-21 18:33:11 -04:00 committed by GitHub
parent 59123b0e5d
commit d6a03895b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,6 +124,9 @@ export default {
return this.organizationBackground
}
return this.currentImageOfProduct
},
currentPoint() {
return this.$store.getters.getCurrentPOS
}
},
created() {
@ -176,7 +179,8 @@ export default {
this.search = mutation.payload.value
if (!this.isEmptyValue(this.search) && this.search.length >= 4) {
requestGetProductPrice({
searchValue: mutation.payload.value
searchValue: mutation.payload.value,
priceListUuid: this.currentPoint.priceList.uuid
})
.then(productPrice => {
this.messageError = true
@ -227,7 +231,8 @@ export default {
clearTimeout(this.timeOut)
this.timeOut = setTimeout(() => {
requestGetProductPrice({
searchValue: mutation.payload.value
searchValue: mutation.payload.value,
priceListUuid: this.currentPoint.priceList.uuid
})
.then(productPrice => {
this.messageError = true