账单查询
This commit is contained in:
@@ -31,7 +31,6 @@ Component({
|
||||
start: '2000-01-01 00:00:00',
|
||||
end: '2030-09-09 12:12:12',
|
||||
|
||||
name: null,
|
||||
money: null,
|
||||
billType: null,
|
||||
account: null,
|
||||
@@ -93,7 +92,6 @@ Component({
|
||||
if (this.properties.billId != -1){
|
||||
app.$api.getBill(this.properties.billId).then(res => {
|
||||
if (res.data){
|
||||
let name = res.data.name;
|
||||
let money = res.data.money;
|
||||
let billType = res.data.billType;
|
||||
let account = res.data.account;
|
||||
@@ -103,7 +101,7 @@ Component({
|
||||
let remark = res.data.remark;
|
||||
let dateText = res.data.date;
|
||||
this.setData({
|
||||
name,money,billType,account,moneyType,typeText,accountText,remark,dateText
|
||||
money,billType,account,moneyType,typeText,accountText,remark,dateText
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -149,9 +147,6 @@ Component({
|
||||
onCancel(){
|
||||
handler.close();
|
||||
},
|
||||
onNameInput(e) {
|
||||
this.setData({ name : e.detail.value})
|
||||
},
|
||||
onRemarkInput(e) {
|
||||
this.setData({ remark : e.detail.value})
|
||||
},
|
||||
@@ -209,7 +204,6 @@ Component({
|
||||
saveBill () {
|
||||
let param = {
|
||||
id : this.properties.billId,
|
||||
name:this.data.name,
|
||||
money:this.data.money,
|
||||
billType:this.data.billType,
|
||||
account:this.data.account,
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
<t-input
|
||||
label="名称"
|
||||
placeholder="请输入名称"
|
||||
align="right"
|
||||
bindchange="onNameInput"
|
||||
value="{{name}}"
|
||||
/>
|
||||
<t-input
|
||||
label="金额"
|
||||
placeholder="0.00"
|
||||
|
||||
@@ -30,7 +30,6 @@ Component({
|
||||
start: '2000-01-01 00:00:00',
|
||||
end: '2030-09-09 12:12:12',
|
||||
|
||||
name: null,
|
||||
money: null,
|
||||
billType: null,
|
||||
fromAccount: null,
|
||||
@@ -78,7 +77,6 @@ Component({
|
||||
if (this.properties.billId != -1){
|
||||
app.$api.getBill(this.properties.billId).then(res => {
|
||||
if (res.data){
|
||||
let name = res.data.name;
|
||||
let money = res.data.money;
|
||||
let billType = res.data.billType;
|
||||
let fromAccount = res.data.fromAccount;
|
||||
@@ -89,7 +87,7 @@ Component({
|
||||
let remark = res.data.remark;
|
||||
let dateText = res.data.date;
|
||||
this.setData({
|
||||
name,money,billType,fromAccount,account,outText,inText,moneyType,remark,dateText
|
||||
money,billType,fromAccount,account,outText,inText,moneyType,remark,dateText
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -139,9 +137,6 @@ Component({
|
||||
onCancel(){
|
||||
handler.close();
|
||||
},
|
||||
onNameInput(e) {
|
||||
this.setData({ name : e.detail.value})
|
||||
},
|
||||
onRemarkInput(e) {
|
||||
this.setData({ remark : e.detail.value})
|
||||
},
|
||||
@@ -199,7 +194,6 @@ Component({
|
||||
saveBill () {
|
||||
let param = {
|
||||
id : this.properties.billId,
|
||||
name:this.data.name,
|
||||
money:this.data.money,
|
||||
billType:this.data.billType,
|
||||
fromAccount:this.data.fromAccount,
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
<t-input
|
||||
label="名称"
|
||||
placeholder="请输入名称"
|
||||
align="right"
|
||||
bindchange="onNameInput"
|
||||
value="{{name}}"
|
||||
/>
|
||||
<t-input
|
||||
label="金额"
|
||||
placeholder="0.00"
|
||||
|
||||
Reference in New Issue
Block a user