账单增删改调整

This commit is contained in:
2023-02-07 20:19:02 +08:00
parent 1fadf4c339
commit 1f5580c0f3
12 changed files with 109 additions and 83 deletions

View File

@@ -12,6 +12,7 @@ Page({
moneyName: null,
fromAccountName: null,
accountName: null,
remark: null,
},
onLoad: function (options) {
let sid = options.id
@@ -29,13 +30,14 @@ Page({
let moneyName = res.data.moneyName
let fromAccountName = res.data.fromAccountName
let accountName = res.data.accountName
this.setData({sid,name,money,balance,date,billType,moneyName,fromAccountName,accountName})
let remark = res.data.remark
this.setData({sid,name,money,balance,date,billType,moneyName,fromAccountName,accountName,remark})
}
})
},
editBill() {
wx.navigateTo({
url: './edit/index?id=' + this.data.sid
url: './edit/index?id=' + this.data.sid + '&billType=' + this.data.billType
})
},
deleteBill() {