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 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 websocketUrl = isDev ? 'ws://192.168.26.116:888/ws' : 'ws://192.168.26.116:888/ws'
|
||||
|
||||
|
||||
@@ -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