调整供应链入库管理跳转
This commit is contained in:
parent
496e50848b
commit
55b1f3b706
@ -107,7 +107,6 @@
|
|||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
this.mer_id = e.mer_id
|
this.mer_id = e.mer_id
|
||||||
this.stype = e.stype
|
this.stype = e.stype
|
||||||
console.log(this.stype);
|
|
||||||
if (this.stype == 1) {
|
if (this.stype == 1) {
|
||||||
return this.goodsData[0].name = '商品添加'
|
return this.goodsData[0].name = '商品添加'
|
||||||
}
|
}
|
||||||
@ -186,14 +185,31 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
navigato(type) {
|
navigato(type) {
|
||||||
type === 1 ? this.searchGoodsShow = true : this.scanCode();
|
if (type === 1) {
|
||||||
|
if (this.stype == 1) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/product/addGoods/index'
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.searchGoodsShow = true
|
||||||
|
} else {
|
||||||
|
this.scanCode();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
scanCode() {
|
scanCode() {
|
||||||
const self = this
|
const self = this
|
||||||
uni.scanCode({
|
uni.scanCode({
|
||||||
scanType: ["qrCode", "barCode", "datamatrix", "pdf417"],
|
scanType: ["qrCode", "barCode", "datamatrix", "pdf417"],
|
||||||
success(res) {
|
success(res) {
|
||||||
self.seachBarCode(res.result)
|
if (self.stype == 1) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/product/addGoods/index?mer_id=${self.mer_id}&code=${res.result}`
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
self.seachBarCode(res.result)
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
fail(res) {
|
fail(res) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user