fix(biz): 修复采购入库单功能的多个问题
This commit is contained in:
parent
0e13702fdb
commit
d675c3ab40
@ -75,79 +75,82 @@
|
||||
</ContentWrap>
|
||||
|
||||
<!-- 入库单信息表格 -->
|
||||
<ContentWrap class="!p-15px" style="height: calc(50vh - 60px);">
|
||||
<div style="font-weight: bold; margin-bottom: 8px;">入库单信息</div>
|
||||
<div style="height: calc(100% - 40px); overflow: auto;">
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="list"
|
||||
:stripe="true"
|
||||
:show-overflow-tooltip="true"
|
||||
border
|
||||
@row-click="handleRowClick"
|
||||
:highlight-current-row="true"
|
||||
style="width: 100%;"
|
||||
>
|
||||
<el-table-column label="序号" align="center" type="index" width="60px"/>
|
||||
<el-table-column label="单据类型" align="center" prop="billType" >
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.billType === '1'">标准采购申请</span>
|
||||
<span v-else-if="scope.row.billType === '2'">设备采购申请</span>
|
||||
<span v-else-if="scope.row.billType === '3'">标准采购退料</span>
|
||||
<span v-else-if="scope.row.billType === '4'">设备采购退料</span>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="入库单号" align="center" prop="purReceiptNo" />
|
||||
<el-table-column label="供应商" align="center" prop="supplierName" width="300px" />
|
||||
<el-table-column label="单据状态" align="center" prop="purStatus" >
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.purStatus === '1'" class="text-blue">已创建</span>
|
||||
<span v-else-if="scope.row.purStatus === '2'" class="text-green">已确认</span>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="单据日期" align="center" prop="receiptDate" />
|
||||
<el-table-column label="操作人员" align="center" prop="receiptEmpName" />
|
||||
<el-table-column label="操作" align="center" >
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
@click="openForm('update', scope.row.id)"
|
||||
v-hasPermi="['biz:pur-receipt:update']"
|
||||
v-if="scope.row.purStatus === '1' "
|
||||
>
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button
|
||||
link
|
||||
type="danger"
|
||||
@click="handleDelete(scope.row.id)"
|
||||
v-hasPermi="['biz:pur-receipt:delete']"
|
||||
v-if="scope.row.purStatus === '1' "
|
||||
>
|
||||
删除
|
||||
</el-button>
|
||||
<el-button
|
||||
link
|
||||
type="info"
|
||||
@click="openForm('detail', scope.row.id)"
|
||||
>
|
||||
详情
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<ContentWrap class="!p-10px">
|
||||
<div style="display: flex; flex-direction: column; height: calc(50vh - 180px);">
|
||||
<div style="flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden;">
|
||||
<div style="font-weight: bold; margin-bottom: 8px;">入库单信息</div>
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="list"
|
||||
:stripe="true"
|
||||
:show-overflow-tooltip="true"
|
||||
border
|
||||
@row-click="handleRowClick"
|
||||
:highlight-current-row="true"
|
||||
style="flex: 1;"
|
||||
max-height="100%"
|
||||
>
|
||||
<el-table-column label="序号" align="center" type="index" width="60px"/>
|
||||
<el-table-column label="单据类型" align="center" prop="billType" >
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.billType === '1'">标准采购申请</span>
|
||||
<span v-else-if="scope.row.billType === '2'">设备采购申请</span>
|
||||
<span v-else-if="scope.row.billType === '3'">标准采购退料</span>
|
||||
<span v-else-if="scope.row.billType === '4'">设备采购退料</span>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="入库单号" align="center" prop="purReceiptNo" />
|
||||
<el-table-column label="供应商" align="center" prop="supplierName" width="300px" />
|
||||
<el-table-column label="单据状态" align="center" prop="purStatus" >
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.purStatus === '1'" class="text-blue">已创建</span>
|
||||
<span v-else-if="scope.row.purStatus === '2'" class="text-green">已确认</span>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="单据日期" align="center" prop="receiptDate" />
|
||||
<el-table-column label="操作人员" align="center" prop="receiptEmpName" />
|
||||
<el-table-column label="操作" align="center" >
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
@click="openForm('update', scope.row.id)"
|
||||
v-hasPermi="['biz:pur-receipt:update']"
|
||||
v-if="scope.row.purStatus === '1' "
|
||||
>
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button
|
||||
link
|
||||
type="danger"
|
||||
@click="handleDelete(scope.row.id)"
|
||||
v-hasPermi="['biz:pur-receipt:delete']"
|
||||
v-if="scope.row.purStatus === '1' "
|
||||
>
|
||||
删除
|
||||
</el-button>
|
||||
<el-button
|
||||
link
|
||||
type="info"
|
||||
@click="openForm('detail', scope.row.id)"
|
||||
>
|
||||
详情
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div style="display: flex; justify-content: flex-end; margin-top: 1px; flex-shrink: 0;">
|
||||
<Pagination
|
||||
:total="total"
|
||||
v-model:page="queryParams.pageNo"
|
||||
v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 分页 -->
|
||||
<Pagination
|
||||
:total="total"
|
||||
v-model:page="queryParams.pageNo"
|
||||
v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
style="margin-top: 8px;"
|
||||
/>
|
||||
</ContentWrap>
|
||||
|
||||
<!-- 入库物料信息表格 -->
|
||||
|
||||
Loading…
Reference in New Issue
Block a user