修改发票信息

This commit is contained in:
2024-05-06 17:09:34 +08:00
parent 3d13c3003a
commit 2a6447e292
8 changed files with 67 additions and 10 deletions

View File

@@ -33,6 +33,42 @@ Page({
alertInfo(message)
return;
}
if (!data?.tenement?.id || !data?.name) {
const user = wx.getStorageSync('user')
if (user.isAdmin) {
wx.showModal({
title: '提示',
content: '当前公司没用开票信息,请先前往开票信息页面编辑开票信息',
complete: (res) => {
if (res.cancel) {
wx.navigateBack()
}
if (res.confirm) {
wx.redirectTo({
url: '/pages/invoiceList/index?tab=2',
})
}
}
})
return
} else {
wx.showModal({
title: '提示',
content: '当前公司没用开票信息,请联系管理员编辑完开票信息之后再开票',
complete: (res) => {
if (res.cancel) {
wx.navigateBack()
}
if (res.confirm) {
wx.navigateBack()
}
}
})
return
}
}
this.setData({ detail: {...data, }, remark: data.remark })
},
changeRemark(e) {