|
@@ -171,7 +171,7 @@ Page({
|
|
|
|
|
|
bindAccendantChange: function(e) {
|
|
bindAccendantChange: function(e) {
|
|
let accendant = this.data.worksheetinfo.accendant;
|
|
let accendant = this.data.worksheetinfo.accendant;
|
|
- let chargStationId = this.data.worksheetinfo.chargStationId;
|
|
|
|
|
|
+ let chargStationId = this.data.worksheetinfo.chargStationId==null?0:this.data.worksheetinfo.chargStationId;
|
|
let url = `/pages/worksheetinfo/accendant?chargstationid=${chargStationId}&accendant=${accendant}`;
|
|
let url = `/pages/worksheetinfo/accendant?chargstationid=${chargStationId}&accendant=${accendant}`;
|
|
wx.navigateTo({
|
|
wx.navigateTo({
|
|
url
|
|
url
|
|
@@ -207,10 +207,10 @@ Page({
|
|
},
|
|
},
|
|
bindContentInput(e) {
|
|
bindContentInput(e) {
|
|
let content = e.detail.value;
|
|
let content = e.detail.value;
|
|
- let worksheetinfo = this.data.worksheetinfo;
|
|
|
|
- worksheetinfo.content = content;
|
|
|
|
|
|
+ // let worksheetinfo = this.data.worksheetinfo;
|
|
|
|
+ // worksheetinfo.content = content;
|
|
this.setData({
|
|
this.setData({
|
|
- worksheetinfo
|
|
|
|
|
|
+ "worksheetinfo.content":content
|
|
});
|
|
});
|
|
},
|
|
},
|
|
bindWorkSheetSubmit(e) {
|
|
bindWorkSheetSubmit(e) {
|
|
@@ -468,7 +468,7 @@ Page({
|
|
|
|
|
|
clear_chargStationName(e){
|
|
clear_chargStationName(e){
|
|
let worksheetinfo = this.data.worksheetinfo;
|
|
let worksheetinfo = this.data.worksheetinfo;
|
|
- worksheetinfo.chargStationId = 0;
|
|
|
|
|
|
+ worksheetinfo.chargStationId = null;
|
|
worksheetinfo.pams = [];
|
|
worksheetinfo.pams = [];
|
|
worksheetinfo.accendant = '';
|
|
worksheetinfo.accendant = '';
|
|
worksheetinfo.mainLocation = '';
|
|
worksheetinfo.mainLocation = '';
|
|
@@ -520,7 +520,7 @@ Page({
|
|
workBigclass: 1,
|
|
workBigclass: 1,
|
|
wokSmallclass: 1,
|
|
wokSmallclass: 1,
|
|
breakdownType: 1,
|
|
breakdownType: 1,
|
|
- chargStationId: 0,
|
|
|
|
|
|
+ chargStationId: null,
|
|
}
|
|
}
|
|
this.setData({
|
|
this.setData({
|
|
worksheetinfo: worksheetinfo
|
|
worksheetinfo: worksheetinfo
|
|
@@ -575,7 +575,7 @@ Page({
|
|
rows: chargstations
|
|
rows: chargstations
|
|
} = res.data;
|
|
} = res.data;
|
|
let chargStationName='';
|
|
let chargStationName='';
|
|
- let chargStationId=0;
|
|
|
|
|
|
+ let chargStationId=null;
|
|
chargstations.forEach((item, index) => {
|
|
chargstations.forEach((item, index) => {
|
|
chargStationName = item.chargStationName
|
|
chargStationName = item.chargStationName
|
|
// chargStationId = item.id
|
|
// chargStationId = item.id
|