feat:归库时间格式化
This commit is contained in:
@@ -90,6 +90,7 @@ function handleReturnToStock() {
|
||||
icon: 'none'
|
||||
})
|
||||
if (res.isPrint == 1) {
|
||||
res.returnTime = nx.$dayjs(res.returnTime).format('YYYY-MM-DD')
|
||||
// 执行打印
|
||||
nx.$print.print({ ...res, printTemplate: 'returnLabel' })
|
||||
}
|
||||
|
||||
@@ -124,6 +124,7 @@ async function getSampleDetail() {
|
||||
let btnLoading = ref(false)
|
||||
function handlePrint() {
|
||||
btnLoading.value = true
|
||||
sampleData.value.returnTime = nx.$dayjs(sampleData.value.returnTime).format('YYYY-MM-DD')
|
||||
nx.$print.print({ ...sampleData.value, printTemplate: 'returnLabel' })
|
||||
btnLoading.value = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user