Compare commits
No commits in common. "c9537f5f04c0a83354b8c505cf923d9b4dd41062" and "9af5995d652b52e6cbf823169e11c305ec0ad603" have entirely different histories.
c9537f5f04
...
9af5995d65
@ -80,10 +80,10 @@
|
|||||||
title="条形码打印"
|
title="条形码打印"
|
||||||
width="100%"
|
width="100%"
|
||||||
wrap-class-name="full-modal"
|
wrap-class-name="full-modal"
|
||||||
@ok="closePrint"
|
@ok="openPrint = false"
|
||||||
@cancel="closePrint"
|
@cancel="openPrint = false"
|
||||||
>
|
>
|
||||||
<printCode ref="printcodeRef" :material-id="materialIdRef"></printCode>
|
<printCode :material-id="materialIdRef"></printCode>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -103,7 +103,6 @@
|
|||||||
const materialPage = ref<IPage<material.Material>>()
|
const materialPage = ref<IPage<material.Material>>()
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const materialIdRef = ref<number>()
|
const materialIdRef = ref<number>()
|
||||||
const printcodeRef = ref()
|
|
||||||
|
|
||||||
// 加载数据的方法
|
// 加载数据的方法
|
||||||
const loadData = async (page = 1, size = 10) => {
|
const loadData = async (page = 1, size = 10) => {
|
||||||
@ -234,17 +233,10 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 打开打印弹窗
|
|
||||||
const showPrintModal = (applyId: number) => {
|
const showPrintModal = (applyId: number) => {
|
||||||
openPrint.value = true
|
openPrint.value = true
|
||||||
materialIdRef.value = applyId
|
materialIdRef.value = applyId
|
||||||
}
|
}
|
||||||
|
|
||||||
// 关闭打印弹窗
|
|
||||||
const closePrint = () => {
|
|
||||||
openPrint.value = false
|
|
||||||
printcodeRef.value.clearContent()
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
|
@ -27,13 +27,6 @@
|
|||||||
default: 0,
|
default: 0,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
const clearContent = () => {
|
|
||||||
inputRef.value = 0
|
|
||||||
const container = document.getElementById('barcodes-container')
|
|
||||||
if (container) container.innerHTML = ''
|
|
||||||
}
|
|
||||||
// 向父组件暴露清空条形码容器的函数
|
|
||||||
defineExpose({ clearContent })
|
|
||||||
|
|
||||||
const inputRef = ref(0)
|
const inputRef = ref(0)
|
||||||
|
|
||||||
|
@ -54,12 +54,11 @@
|
|||||||
{{ record.auditType === 'ALL' ? '全部盘点' : '部分盘点' }}
|
{{ record.auditType === 'ALL' ? '全部盘点' : '部分盘点' }}
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.dataIndex === 'reviewResult'">
|
<template v-if="column.dataIndex === 'reviewResult'">
|
||||||
<!-- 不同状态不同颜色 -->
|
<template v-if="record.reviewResult === 'WAIT_SCAN'">待扫码</template>
|
||||||
<template v-if="record.reviewResult === 'WAIT_SCAN'"><span style="color: #faad14">待扫码</span></template>
|
<template v-if="record.reviewResult === 'WAIT_SUBMIT'">待提交</template>
|
||||||
<template v-if="record.reviewResult === 'WAIT_SUBMIT'"><span style="color: #1890ff">待提交</span></template>
|
<template v-if="record.reviewResult === 'WAIT_REVIEW'">待审核</template>
|
||||||
<template v-if="record.reviewResult === 'WAIT_REVIEW'"><span style="color: #722ed1">待审核</span></template>
|
<template v-if="record.reviewResult === 'PASS'">审核通过</template>
|
||||||
<template v-if="record.reviewResult === 'PASS'"><span style="color: #52c41a">审核通过</span></template>
|
<template v-if="record.reviewResult === 'REJECT'">退回</template>
|
||||||
<template v-if="record.reviewResult === 'REJECT'"><span style="color: #f5222d">退回</span></template>
|
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.dataIndex === 'operation'">
|
<template v-if="column.dataIndex === 'operation'">
|
||||||
<a-button
|
<a-button
|
||||||
@ -143,7 +142,7 @@
|
|||||||
//表格列
|
//表格列
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: '申请序号',
|
title: '申请id',
|
||||||
dataIndex: 'id',
|
dataIndex: 'id',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -38,11 +38,11 @@
|
|||||||
{{ record.auditType === 'ALL' ? '全部盘点' : '部分盘点' }}
|
{{ record.auditType === 'ALL' ? '全部盘点' : '部分盘点' }}
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.dataIndex === 'reviewResult'">
|
<template v-if="column.dataIndex === 'reviewResult'">
|
||||||
<template v-if="record.reviewResult === 'WAIT_SCAN'"><span style="color: #faad14">待扫码</span></template>
|
<template v-if="record.reviewResult === 'WAIT_SCAN'">待扫码</template>
|
||||||
<template v-if="record.reviewResult === 'WAIT_SUBMIT'"><span style="color: #1890ff">待提交</span></template>
|
<template v-if="record.reviewResult === 'WAIT_SUBMIT'">待提交</template>
|
||||||
<template v-if="record.reviewResult === 'WAIT_REVIEW'"><span style="color: #722ed1">待审核</span></template>
|
<template v-if="record.reviewResult === 'WAIT_REVIEW'">待审核</template>
|
||||||
<template v-if="record.reviewResult === 'PASS'"><span style="color: #52c41a">审核通过</span></template>
|
<template v-if="record.reviewResult === 'PASS'">审核通过</template>
|
||||||
<template v-if="record.reviewResult === 'REJECT'"><span style="color: #f5222d">退回</span></template>
|
<template v-if="record.reviewResult === 'REJECT'">退回</template>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.dataIndex === 'operation'">
|
<template v-if="column.dataIndex === 'operation'">
|
||||||
<a-button
|
<a-button
|
||||||
|
Loading…
x
Reference in New Issue
Block a user