新增耗材入库-ai批量入库
This commit is contained in:
@@ -83,10 +83,14 @@
|
||||
<add-haocai ref="refAddHaocai" @refresh="refresh" />
|
||||
<!-- 耗材盘点 -->
|
||||
<addConsTakin ref="refAddHaocaiTakin" @success="refresh" />
|
||||
<!-- AI入库 -->
|
||||
<ai-entry-dialog ref="aiEntryDialogRef" @update="
|
||||
contentRef?.fetchPageData()" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import aiEntryDialog from "./components/aiEntryDialog.vue";
|
||||
import addHaocai from "./components/add-haocai.vue";
|
||||
import dataTongji from "./components/DataStatistics.vue";
|
||||
import addConsTakin from "./components/addConsTakin.vue";
|
||||
@@ -101,6 +105,12 @@ import searchConfig from "./config/search";
|
||||
import { returnOptionsLabel } from "./config/config";
|
||||
import { isSyncStatus } from "@/utils/index";
|
||||
|
||||
const aiEntryDialogRef = ref<any>(null);
|
||||
|
||||
function showAiEntryDialog() {
|
||||
aiEntryDialogRef.value?.show?.();
|
||||
}
|
||||
|
||||
const router = useRouter();
|
||||
const {
|
||||
searchRef,
|
||||
@@ -164,7 +174,7 @@ watch(
|
||||
);
|
||||
|
||||
//耗材盘点
|
||||
const refAddHaocaiTakin = ref();
|
||||
const refAddHaocaiTakin = ref<any>(null);
|
||||
function refAddHaocaiTakinShow(item: any, type: string) {
|
||||
console.log(item);
|
||||
if (type === "manual-in") {
|
||||
@@ -172,14 +182,14 @@ function refAddHaocaiTakinShow(item: any, type: string) {
|
||||
return;
|
||||
}
|
||||
if (type === "delete") {
|
||||
refAddHaocaiTakin.value.show(item, type);
|
||||
refAddHaocaiTakin.value?.show?.(item, type);
|
||||
return;
|
||||
}
|
||||
if (type === "consumables") {
|
||||
refAddHaocaiTakin.value.show(item, type);
|
||||
refAddHaocaiTakin.value?.show?.(item, type);
|
||||
return;
|
||||
}
|
||||
refAddHaocaiTakin.value.show(item);
|
||||
refAddHaocaiTakin.value?.show?.(item);
|
||||
}
|
||||
|
||||
function refresh() {
|
||||
@@ -187,9 +197,9 @@ function refresh() {
|
||||
contentRef.value?.fetchPageData();
|
||||
getTongji(undefined);
|
||||
}
|
||||
const refAddHaocai = ref();
|
||||
const refAddHaocai = ref<any>(null);
|
||||
function refAddHaocaiOpen(item: any) {
|
||||
refAddHaocai.value.open(item);
|
||||
refAddHaocai.value?.open?.(item);
|
||||
}
|
||||
// 新增
|
||||
async function handleAddClick() {
|
||||
@@ -234,6 +244,10 @@ async function handleToolbarClick(name: string) {
|
||||
router.push({ path: "/inventory/libraryrecords", query: { inOutItem: name } });
|
||||
return;
|
||||
}
|
||||
if (name === "batchWarehousing") {
|
||||
showAiEntryDialog();
|
||||
return;
|
||||
}
|
||||
}
|
||||
// 其他操作列
|
||||
async function handleOperatClick(data: IOperatData) {
|
||||
|
||||
Reference in New Issue
Block a user