diff --git a/src/views/product/index.vue b/src/views/product/index.vue
index 54521e9..d70ecb1 100644
--- a/src/views/product/index.vue
+++ b/src/views/product/index.vue
@@ -172,7 +172,18 @@
-
+
+
+
@@ -249,6 +260,20 @@ const myDialogRefhaocai = ref(null);
const myDialogRefkucun = ref(null);
let haocaiData = ref({});
let options = ref([]);
+//选择耗材单位
+const returnConUnits = (consInfoId) => {
+ const arr = [];
+ const item = options.value.find((item) => item.id === consInfoId);
+ if (item) {
+ if (item.conUnit) {
+ arr.push(item.conUnit);
+ }
+ if (item.conUnitTwo) {
+ arr.push(item.conUnitTwo);
+ }
+ }
+ return arr;
+};
let kucundata = ref(0);
const form = reactive({
warnLine: "",
@@ -357,6 +382,8 @@ async function confirmkucun() {
}
function editOpen(item: any) {
haocaiData.value = item;
+ console.log(item);
+
if (haocaiData.value.consList.length == 0) {
let items = {
productId: item.id,