耗材管理修改
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
})
|
||||
let show = ref(props.show)
|
||||
let type = ref(props.type)
|
||||
let itemData = ref(props.item)
|
||||
let consId = ref()
|
||||
watch(() => props.show, (newval) => {
|
||||
show.value = newval
|
||||
})
|
||||
@@ -104,7 +104,10 @@
|
||||
/**
|
||||
* 打开报损弹窗
|
||||
*/
|
||||
function open() {
|
||||
function open(d) {
|
||||
if(d){
|
||||
consId.value = d
|
||||
}
|
||||
show.value = true;
|
||||
emits('open')
|
||||
}
|
||||
@@ -179,9 +182,10 @@
|
||||
* 确认
|
||||
*/
|
||||
function affirm() {
|
||||
console.log(consId.value,'调试1')
|
||||
let params = {
|
||||
coverImg: vdata.imgUrlList,
|
||||
consId: itemData.value.consId,
|
||||
consId: consId.value,
|
||||
amount: vdata.stockNumber,
|
||||
shopId: uni.getStorageSync("shopId"),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user