sparkles: 查看人工盘点数据
All checks were successful
Release / lint (push) Successful in 44s
Release / Release (push) Successful in 1m54s

This commit is contained in:
my_ong 2025-03-12 10:13:04 +08:00
parent 0014b71888
commit 2f798b6b48
2 changed files with 47 additions and 17 deletions

View File

@ -66,7 +66,7 @@
v-if="record.reviewResult === 'WAIT_REVIEW'" v-if="record.reviewResult === 'WAIT_REVIEW'"
type="link" type="link"
style="margin-left: 10px" style="margin-left: 10px"
@click="showResultModal(record.id)" @click="showResultModal(record.id, record.auditType)"
> >
<template #icon> <template #icon>
<icon-font type="icon-plus" /> <icon-font type="icon-plus" />
@ -81,20 +81,38 @@
<!-- 审核弹窗 --> <!-- 审核弹窗 -->
<a-modal v-model:open="openResult" title="盘点异常数据:" width="80%" :confirm-loading="confirmLoading" @ok="submit"> <a-modal v-model:open="openResult" title="盘点异常数据:" width="80%" :confirm-loading="confirmLoading" @ok="submit">
<result-form :apply-id="applyIdRef"> <result-form v-if="auditTypeRef === 'SCAN'" :apply-id="applyIdRef"></result-form>
<a-form layout="vertical" style="margin-top: 20px"> <vxe-table
<a-form-item label="审核意见"> v-if="auditTypeRef === 'MANUAL'"
<a-textarea v-model:value="remark" placeholder="请输入审核意见" :row="3" :maxlength="1000" /> v-model:data="manualData"
</a-form-item> border
show-overflow
max-height="500"
size="medium"
>
<vxe-column type="seq" title="序号" width="60" />
<vxe-column field="id" title="物料id" :visible="false" />
<vxe-column field="name" title="物料名称" />
<vxe-column field="code" title="编码" />
<vxe-column field="spec" title="规格" />
<vxe-column field="price" title="价格" />
<vxe-column field="typeName" title="类型" />
<vxe-column field="stock" title="库存数量" />
<vxe-column field="manualStock" title="手动核实数量" />
<vxe-column field="msg" title="异常原因" />
</vxe-table>
<a-form layout="vertical" style="margin-top: 20px">
<a-form-item label="审核意见">
<a-textarea v-model:value="remark" placeholder="请输入审核意见" :row="3" :maxlength="1000" />
</a-form-item>
<a-form-item label="审核结果"> <a-form-item label="审核结果">
<a-radio-group v-model:value="reviewResult" button-style="solid"> <a-radio-group v-model:value="reviewResult" button-style="solid">
<a-radio-button value="PASS">审核通过</a-radio-button> <a-radio-button value="PASS">审核通过</a-radio-button>
<a-radio-button value="REJECT" style="margin-left: 20px">退回重盘</a-radio-button> <a-radio-button value="REJECT" style="margin-left: 20px">退回重盘</a-radio-button>
</a-radio-group> </a-radio-group>
</a-form-item> </a-form-item>
</a-form> </a-form>
</result-form>
</a-modal> </a-modal>
</template> </template>
@ -194,9 +212,22 @@
}) })
const openResult = ref<boolean>(false) const openResult = ref<boolean>(false)
const showResultModal = (applyId: number) => { const auditTypeRef = ref<'SCAN' | 'MANUAL'>()
openResult.value = true const showResultModal = (applyId: number, auditType: 'SCAN' | 'MANUAL') => {
auditTypeRef.value = auditType
applyIdRef.value = applyId applyIdRef.value = applyId
openResult.value = true
if (auditType === 'MANUAL') {
getManualData(applyId)
}
}
//
const manualData = ref<Array<material.ManualStockDTO>>()
const getManualData = (applyId: number) => {
api.materialApi.apply.getManualStock(applyId, (data) => {
manualData.value = data
})
} }
// //

View File

@ -270,7 +270,6 @@
{ {
title: '操作', title: '操作',
dataIndex: 'operation', dataIndex: 'operation',
width: 400,
}, },
] ]