You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< template >
<!-- 列表 -- >
< ContentWrap >
< el -table v-loading ="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
<el-table-column label="原料" align="center" prop="productName" />
<el-table-column label="单位" align="center" prop="unitName" />
<el-table-column label="需求数量" align="center" prop="number" />
<el-table-column label="已下料" align="center" prop="number" />
<el-table-column label="备注" align="center" prop="remark" />
</el-table>
</ContentWrap>
</template>
<script setup lang="ts" >
import { ItemRequisitionApi } from ' @ / api / mes / itemrequisition '
const { t } = useI18n ( ) / / 国 际 化
const message = useMessage ( ) / / 消 息 弹 窗
const props = defineProps < {
itemRequisitionId ? : number / / 领 料 单 ID ( 主 表 的 关 联 字 段 )
} > ( )
const loading = ref ( false ) // 列表的加载中
const list = ref ( [ ] ) // 列表的数据
/** 查询列表 */
const getList = async ( ) => {
loading . value = true
try {
list . value = await ItemRequisitionApi . getItemRequisitionDetailListByItemRequisitionId ( props . itemRequisitionId )
} finally {
loading . value = false
}
}
/** 搜索按钮操作 */
const handleQuery = ( ) => {
queryParams . pageNo = 1
getList ( )
}
/** 初始化 **/
onMounted ( ( ) => {
getList ( )
} )
< / script >