feat(xzdstoragelog): 新增物料功能集成

This commit is contained in:
zxy 2026-04-02 16:10:09 +08:00
parent 643eae576b
commit b62e2023e5

View File

@ -106,7 +106,7 @@
>
单据生成
</el-button>
<el-button style="margin-left: 18px" @click="submitForm()" type="primary" size="large">
<el-button style="margin-left: 18px" @click="openPnForm()" type="success" size="large">
新增物料
</el-button>
</el-form-item>
@ -127,13 +127,13 @@
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="50" :selectable="checkSelectable" />
<el-table-column type="index" width="60" label="序号" align="center" fixd="left" />
<el-table-column type="index" width="60" label="序号" align="center" fixed="left" />
<el-table-column
label="单据类型"
align="center"
prop="stockMode"
min-width="110"
fixd="left"
fixed="left"
>
<template #default="scope">
<dict-tag :type="DICT_TYPE.HELI_STORAGE_TYPE" :value="scope.row.stockType" />
@ -144,7 +144,7 @@
align="center"
prop="stockMode"
min-width="110"
fixd="left"
fixed="left"
>
<template #default="scope">
<el-tag v-if="scope.row.isExport == 0 || scope.row.isExport == null" type="danger">
@ -159,7 +159,6 @@
align="center"
prop="xzdStockNo"
min-width="220"
fixd="left"
/>
<el-table-column label="物料编码" align="center" prop="matCode" min-width="200">
@ -246,6 +245,8 @@
/>
</ContentWrap>
</el-card>
<MaterialForm ref="materialOpenFormRef" @success="getList" />
</template>
<script setup lang="ts">
@ -260,6 +261,7 @@ import { ref } from 'vue'
import { HeliStockTypeDict, HeliStorageStatusDict } from '@/api/heli/wmsstorage'
import { HeliStorageIsExportDict } from '@/api/heli/xzdstoragelog'
import { dateFormatter, dateFormatter1 } from '@/utils/formatTime'
import MaterialForm from "@/views/heli/material/MaterialForm.vue";
defineOptions({ name: 'Xzdstoragelog' })
@ -314,6 +316,11 @@ const getList = async () => {
loading.value = false
}
}
const materialOpenFormRef = ref()
const openPnForm = () => {
materialOpenFormRef.value.open("create")
}
/** 搜索按钮操作 */
const handleQuery = () => {