sparkles: ✨ 查看人工盘点数据
This commit is contained in:
parent
0014b71888
commit
2f798b6b48
@ -66,7 +66,7 @@
|
||||
v-if="record.reviewResult === 'WAIT_REVIEW'"
|
||||
type="link"
|
||||
style="margin-left: 10px"
|
||||
@click="showResultModal(record.id)"
|
||||
@click="showResultModal(record.id, record.auditType)"
|
||||
>
|
||||
<template #icon>
|
||||
<icon-font type="icon-plus" />
|
||||
@ -81,20 +81,38 @@
|
||||
|
||||
<!-- 审核弹窗 -->
|
||||
<a-modal v-model:open="openResult" title="盘点异常数据:" width="80%" :confirm-loading="confirmLoading" @ok="submit">
|
||||
<result-form :apply-id="applyIdRef">
|
||||
<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>
|
||||
<result-form v-if="auditTypeRef === 'SCAN'" :apply-id="applyIdRef"></result-form>
|
||||
<vxe-table
|
||||
v-if="auditTypeRef === 'MANUAL'"
|
||||
v-model:data="manualData"
|
||||
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-radio-group v-model:value="reviewResult" button-style="solid">
|
||||
<a-radio-button value="PASS">审核通过</a-radio-button>
|
||||
<a-radio-button value="REJECT" style="margin-left: 20px">退回重盘</a-radio-button>
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</result-form>
|
||||
<a-form-item label="审核结果">
|
||||
<a-radio-group v-model:value="reviewResult" button-style="solid">
|
||||
<a-radio-button value="PASS">审核通过</a-radio-button>
|
||||
<a-radio-button value="REJECT" style="margin-left: 20px">退回重盘</a-radio-button>
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</a-modal>
|
||||
</template>
|
||||
|
||||
@ -194,9 +212,22 @@
|
||||
})
|
||||
|
||||
const openResult = ref<boolean>(false)
|
||||
const showResultModal = (applyId: number) => {
|
||||
openResult.value = true
|
||||
const auditTypeRef = ref<'SCAN' | 'MANUAL'>()
|
||||
const showResultModal = (applyId: number, auditType: 'SCAN' | 'MANUAL') => {
|
||||
auditTypeRef.value = auditType
|
||||
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
|
||||
})
|
||||
}
|
||||
|
||||
//提交审核结果
|
||||
|
@ -270,7 +270,6 @@
|
||||
{
|
||||
title: '操作',
|
||||
dataIndex: 'operation',
|
||||
width: 400,
|
||||
},
|
||||
]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user