耗材管理修改

This commit is contained in:
duan
2024-10-22 14:18:14 +08:00
parent 722ce9c4c3
commit 692ca30253
7 changed files with 67 additions and 24 deletions

View File

@@ -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"),
}