修改发票信息
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user