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