feat:归库时间格式化
This commit is contained in:
@@ -6,7 +6,7 @@ const upgradeBaseUrl = isDev? 'http://172.17.19.29:48080/admin-api':'http://172
|
|||||||
const websocketUrl = isDev ? 'ws://172.17.19.11:30330' : 'ws://172.17.19.11:30330'
|
const websocketUrl = isDev ? 'ws://172.17.19.11:30330' : 'ws://172.17.19.11:30330'
|
||||||
|
|
||||||
// 公司测试环境
|
// 公司测试环境
|
||||||
// const BaseUrl = isDev ? 'http://192.168.26.116:888/admin-api' : 'http://192.168.26.116:888/admin-api'
|
// const BaseUrl = isDev ? 'http://192.168.26.163:48080/admin-api' : 'http://192.168.26.116:888/admin-api'
|
||||||
// const upgradeBaseUrl = isDev ? 'http://192.168.26.116:888/admin-api' : 'http://192.168.26.116:888/admin-api'
|
// const upgradeBaseUrl = isDev ? 'http://192.168.26.116:888/admin-api' : 'http://192.168.26.116:888/admin-api'
|
||||||
// const websocketUrl = isDev ? 'ws://192.168.26.116:888/ws' : 'ws://192.168.26.116:888/ws'
|
// const websocketUrl = isDev ? 'ws://192.168.26.116:888/ws' : 'ws://192.168.26.116:888/ws'
|
||||||
|
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ function handleReturnToStock() {
|
|||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
if (res.isPrint == 1) {
|
if (res.isPrint == 1) {
|
||||||
|
res.returnTime = nx.$dayjs(res.returnTime).format('YYYY-MM-DD')
|
||||||
// 执行打印
|
// 执行打印
|
||||||
nx.$print.print({ ...res, printTemplate: 'returnLabel' })
|
nx.$print.print({ ...res, printTemplate: 'returnLabel' })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,6 +124,7 @@ async function getSampleDetail() {
|
|||||||
let btnLoading = ref(false)
|
let btnLoading = ref(false)
|
||||||
function handlePrint() {
|
function handlePrint() {
|
||||||
btnLoading.value = true
|
btnLoading.value = true
|
||||||
|
sampleData.value.returnTime = nx.$dayjs(sampleData.value.returnTime).format('YYYY-MM-DD')
|
||||||
nx.$print.print({ ...sampleData.value, printTemplate: 'returnLabel' })
|
nx.$print.print({ ...sampleData.value, printTemplate: 'returnLabel' })
|
||||||
btnLoading.value = false
|
btnLoading.value = false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user