账单增删改调整
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user