|
@@ -264,7 +264,7 @@ export default {
|
|
|
if (res.status == 200 && res.data) {
|
|
|
let content = ''
|
|
|
if ((res.data.productSizeRepeat != res.data.productSize) && (res.data.productSizeRepeat != 0)) {
|
|
|
- content = `您已经选择 ${res.data.productSize} 个产品,其中 ${res.data.productSizeRepeat} 个产品已经存在于采购单中。本次只会加入不重复的产品,上次采购数量将作为本次采购数量。确认加入本次采购吗?`
|
|
|
+ content = `您已经选择 ${res.data.productSize} 个产品,其中 ${res.data.productSizeRepeat} 个产品已经存在于采购单中,本次只会加入不重复的产品。确认加入本次采购吗?`
|
|
|
this.confirmFun(content,params)
|
|
|
} else if (res.data.productSizeRepeat == res.data.productSize) {
|
|
|
content = `抱歉,您选择的 ${res.data.productSize} 个产品,采购单中已经全部存在,无需加入!`
|
|
@@ -279,7 +279,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
- content = `您已经选择 ${res.data.productSize} 个产品,上次采购数量将作为本次采购数量。确认加入本次采购吗?`
|
|
|
+ content = `您已经选择 ${res.data.productSize} 个产品,确认要将已选产品加入本次采购吗?`
|
|
|
this.confirmFun(content,params)
|
|
|
}
|
|
|
}
|
|
@@ -302,6 +302,7 @@ export default {
|
|
|
if (res.status == 200) {
|
|
|
_this.$emit('ok')
|
|
|
_this.getCartList()
|
|
|
+ _this.searchForm()
|
|
|
_this.loading = false
|
|
|
} else {
|
|
|
_this.loading = false
|