|
|
@@ -159,6 +159,8 @@
|
|
|
updateMoney:0,
|
|
|
updateDate:'',
|
|
|
selectDate:'',
|
|
|
+ // 暂存数据
|
|
|
+ oldList: []
|
|
|
|
|
|
}
|
|
|
},
|
|
|
@@ -211,11 +213,25 @@
|
|
|
console.log(val);
|
|
|
console.log(record);
|
|
|
console.log(item);
|
|
|
+ console.log(this.calendarData);
|
|
|
+ let tempid = ''
|
|
|
+ this.oldList.forEach(index => {
|
|
|
+ console.log(index);
|
|
|
+ if (record.layoutName == index.layoutName) {
|
|
|
+ index.schemeLayoutDailyPriceList.forEach(cust => {
|
|
|
+ if (item.dataIndex == cust.date) {
|
|
|
+ console.log(111);
|
|
|
+ tempid = cust.id
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ console.log(tempid);
|
|
|
var _time = moment(new Date(item.dataIndex)).format('YYYY-MM-DD 00:00:00')
|
|
|
console.log(_time);
|
|
|
this.updateDate = _time
|
|
|
this.updateMoney = val
|
|
|
- this.updateId = record.id
|
|
|
+ this.updateId = tempid
|
|
|
this.updateSchemeLayoutId = record.schemeLayoutId
|
|
|
this.visibleMoney = true
|
|
|
},
|
|
|
@@ -229,6 +245,7 @@
|
|
|
}).then(res => {
|
|
|
console.log(res);
|
|
|
if (res.success) {
|
|
|
+ this.oldList = res.result.records
|
|
|
let tmeplist = res.result.records
|
|
|
let tempcol = []
|
|
|
tmeplist[0].schemeLayoutDailyPriceList.forEach(index => {
|
|
|
@@ -362,6 +379,7 @@
|
|
|
}).then((res) => {
|
|
|
if (res.success) {
|
|
|
that.moneyDays = res.result;
|
|
|
+ this.getDateList()
|
|
|
}
|
|
|
}).finally(()=>{
|
|
|
|