소스 검색

修复新增人员报错

XWookey 1 년 전
부모
커밋
a33b9160ed
2개의 변경된 파일2개의 추가작업 그리고 15개의 파일을 삭제
  1. 2 7
      pages/worksheetinfo/addworksheetinfo.js
  2. 0 8
      pages/worksheetinfo/worksheetinfo.js

+ 2 - 7
pages/worksheetinfo/addworksheetinfo.js

@@ -170,7 +170,7 @@ Page({
   },
   },
 
 
   bindAccendantChange: function(e) {
   bindAccendantChange: function(e) {
-    let chargstationid = this.data.worksheetinfo.chargStationId==null?0:this.data.worksheetinfo.chargStationId;
+    let accendant = this.data.worksheetinfo.accendant;
     let chargStationId = this.data.worksheetinfo.chargStationId;
     let chargStationId = 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({
@@ -263,12 +263,7 @@ Page({
         confirmColor:'#00AADD',
         confirmColor:'#00AADD',
       });
       });
       return;
       return;
-    
     }
     }
-
-    
-    worksheetinfo.chargStationId = (worksheetinfo.chargStationId==0?null:worksheetinfo.chargStationId)
-
     let signs = this.data.signs;
     let signs = this.data.signs;
     console.log(signs.length == 0);
     console.log(signs.length == 0);
 
 
@@ -519,7 +514,7 @@ Page({
       'exceptparams.pText' : Util.formatTimePicker(new Date()),
       'exceptparams.pText' : Util.formatTimePicker(new Date()),
       // 'finishparams.pText' : Util.formatTimePicker(new Date()),
       // 'finishparams.pText' : Util.formatTimePicker(new Date()),
     })
     })
-
+    
     let worksheetinfo = {
     let worksheetinfo = {
       workStatus: 1,
       workStatus: 1,
       workBigclass: 1,
       workBigclass: 1,

+ 0 - 8
pages/worksheetinfo/worksheetinfo.js

@@ -224,8 +224,6 @@ Page({
   },
   },
   bindWorkSheetSubmit(e) {
   bindWorkSheetSubmit(e) {
     let worksheetinfo = this.data.worksheetinfo;
     let worksheetinfo = this.data.worksheetinfo;
-
-
     worksheetinfo.operatorName = this.data.userNames.length>0?this.data.userNames[0]:"";
     worksheetinfo.operatorName = this.data.userNames.length>0?this.data.userNames[0]:"";
     worksheetinfo.pams = this.data.accendantids;
     worksheetinfo.pams = this.data.accendantids;
     worksheetinfo.accendant = null;
     worksheetinfo.accendant = null;
@@ -271,12 +269,6 @@ Page({
       });
       });
       return;
       return;
     }
     }
-
-    // worksheetinfo.chargStationId = (worksheetinfo.chargStationId==0?null:worksheetinfo.chargStationId)
-
-    worksheetinfo.chargStationId = (worksheetinfo.chargStationId==0?null:worksheetinfo.chargStationId)
-
-    
     let signs = this.data.signs;
     let signs = this.data.signs;
     console.log(signs.length == 0);
     console.log(signs.length == 0);
     var signString = [];
     var signString = [];