zhangweicheng 8 years ago
parent
commit
000d597642

+ 1 - 0
modules/main/models/project.js

@@ -56,6 +56,7 @@ Project.prototype.save = function(datas, callback){
 
         }
     }
+
     for (var i = 0; i < me.datas.length; i++){
         item = me.datas[i];
         functions.push(saveModule(item));

+ 2 - 2
web/building_saas/main/js/models/ration_glj.js

@@ -207,10 +207,10 @@ var ration_glj = {
             var updateData = null;
             if(row.rationItemQuantity==0){
                 updateData=this.getUpdateData('ut_delete',{'ID': row.ID, 'projectID': row.projectID});
+                project.pushNow('updateRationGLJ',[this.getSourceType()],updateData)
             }else {
-                updateData= this.getUpdateData('ut_update',{'ID': row.ID, 'projectID': row.projectID},{'quantity':0,'customQuantity':0});
+                this.customQuantityUpdate(row,0,0);//('ut_update',{'ID': row.ID, 'projectID': row.projectID},{'quantity':0,'customQuantity':0});
             }
-            project.pushNow('updateRationGLJ',[this.getSourceType()],updateData)
         };
         ration_glj.prototype.getUpdateData=function(type,query,doc,callfunction){
             var updateData = [];

+ 2 - 0
web/building_saas/main/js/views/glj_view.js

@@ -69,6 +69,7 @@ var gljOprObj = {
         var me = this;
         me.coeSheet = sheet;
         sheetCommonObj.initSheet(me.coeSheet, me.coeSetting, 30);
+        sheet.name('ration_coe');
         me.bindSheetEvent(sheet);
         sheet.bind(GC.Spread.Sheets.Events.CellClick, me.onCoeCellClick);
         subSpread.bind(GC.Spread.Sheets.Events.ButtonClicked,me.onButtonClick);
@@ -77,6 +78,7 @@ var gljOprObj = {
         var me = this;
         me.assSheet = sheet;
         sheetCommonObj.initSheet(me.assSheet, me.assSetting, 30);
+        sheet.name('ration_ass');
         me.bindSheetEvent(sheet);
     },
     showCoeData:function(sheet,setting,datas){