|
@@ -267,15 +267,14 @@ let rationOprObj = {
|
|
|
callback: function(){},
|
|
|
items: {
|
|
|
"delete": {name: "删除", disabled: delDis, icon: "fa-remove", callback: function (key, opt) {
|
|
|
-
|
|
|
let removeInfo = `确定要删除定额 “${ration.code}” 及其下的所有数据吗?`;
|
|
|
$('#delRationAlert').find('.modal-body h5').text(removeInfo);
|
|
|
$('#delRationAlert').modal('show');
|
|
|
+ $('#delRationConfirm').unbind('click');
|
|
|
$('#delRationConfirm').bind('click', function () {
|
|
|
me.rationsCodes.splice(me.rationsCodes.indexOf(ration.code.toString()), 1);
|
|
|
me.mixDel = 1;
|
|
|
me.mixUpdateRequest([], [], [ration.ID]);
|
|
|
- $('#delRationConfirm').unbind('click');
|
|
|
$('#delRationAlert').modal('hide');
|
|
|
});
|
|
|
}}
|
|
@@ -471,12 +470,12 @@ let rationOprObj = {
|
|
|
if(rObj.code && rObj.code.toString().trim().length > 0){
|
|
|
if(me.rationsCodes.indexOf(rObj.code.toString()) === -1){
|
|
|
//jobContent
|
|
|
- if(jobContentOprObj && jobContentOprObj.currentSituation === jobContentOprObj.situations.ALL){
|
|
|
+ /* if(jobContentOprObj && jobContentOprObj.currentSituation === jobContentOprObj.situations.ALL){
|
|
|
rObj.jobContent = jobContentOprObj.currentJobContent ? jobContentOprObj.currentJobContent : '';
|
|
|
}
|
|
|
if(annotationOprObj && annotationOprObj.currentSituation === annotationOprObj.situations.ALL){
|
|
|
rObj.annotation = annotationOprObj.currentAnnotation ? annotationOprObj.currentAnnotation : '';
|
|
|
- }
|
|
|
+ }*/
|
|
|
me.setInitPrc(rObj);
|
|
|
if (rObj.code && rObj.code !== '') {
|
|
|
rObj.code = rObj.code.toUpperCase();
|
|
@@ -534,12 +533,12 @@ let rationOprObj = {
|
|
|
if(!cacheSection[rowIdx] && info.cellRange.col === 0 ){
|
|
|
if(me.rationsCodes.indexOf(items[i].code.toString()) === -1){
|
|
|
//jobConten
|
|
|
- if(jobContentOprObj && jobContentOprObj.currentSituation === jobContentOprObj.situations.ALL){
|
|
|
+ /*if(jobContentOprObj && jobContentOprObj.currentSituation === jobContentOprObj.situations.ALL){
|
|
|
items[i].jobContent = jobContentOprObj.currentJobContent ? jobContentOprObj.currentJobContent : '';
|
|
|
}
|
|
|
if(annotationOprObj && annotationOprObj.currentSituation === annotationOprObj.situations.ALL){
|
|
|
items[i].annotation = annotationOprObj.currentAnnotation ? annotationOprObj.currentAnnotation : '';
|
|
|
- }
|
|
|
+ }*/
|
|
|
me.setInitPrc(items[i]);
|
|
|
addArr.push(items[i]);
|
|
|
me.rationsCodes.push(items[i].code.toString());
|
|
@@ -582,12 +581,12 @@ let rationOprObj = {
|
|
|
//是否含有已存在的编号
|
|
|
if(me.rationsCodes.indexOf(items[i].code.toString()) === -1){
|
|
|
//jobConten
|
|
|
- if(jobContentOprObj && jobContentOprObj.currentSituation === jobContentOprObj.situations.ALL){
|
|
|
+ /* if(jobContentOprObj && jobContentOprObj.currentSituation === jobContentOprObj.situations.ALL){
|
|
|
items[i].jobContent = jobContentOprObj.currentJobContent ? jobContentOprObj.currentJobContent : '';
|
|
|
}
|
|
|
if(annotationOprObj && annotationOprObj.currentSituation === annotationOprObj.situations.ALL){
|
|
|
items[i].annotation = annotationOprObj.currentAnnotation ? annotationOprObj.currentAnnotation : '';
|
|
|
- }
|
|
|
+ }*/
|
|
|
me.setInitPrc(items[i]);
|
|
|
addArr.push(items[i]);
|
|
|
}
|
|
@@ -647,7 +646,7 @@ let rationOprObj = {
|
|
|
me.rationSelInit(curRow);
|
|
|
//add
|
|
|
//jobContent
|
|
|
- if(jobContentOprObj ){
|
|
|
+ /*if(jobContentOprObj ){
|
|
|
jobContentOprObj.currentRationItems = cacheSection;
|
|
|
jobContentOprObj.setRadiosDisabled(cacheSection.length > 0 ? false : true, jobContentOprObj.radios);
|
|
|
if(cacheSection.length === 0){
|
|
@@ -667,7 +666,7 @@ let rationOprObj = {
|
|
|
if(annotationOprObj.currentSituation === annotationOprObj.situations.PARTIAL){
|
|
|
annotationOprObj.buildTablePartial(annotationOprObj.fzTablePartial, annotationOprObj.getGroup(cacheSection));
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
me.showRationItems(me.currentSectionId);
|
|
|
me.mixUpdate = 0;
|
|
|
me.mixDel = 0;
|
|
@@ -684,10 +683,10 @@ let rationOprObj = {
|
|
|
me.currentSectionId = sectionID;
|
|
|
if (me.currentRations["_SEC_ID_" + sectionID]) {
|
|
|
//jobContent--
|
|
|
- jobContentOprObj.currentRationItems = me.currentRations["_SEC_ID_" + sectionID];
|
|
|
- jobContentOprObj.rationJobContentOpr(me.currentRations["_SEC_ID_" + sectionID]);
|
|
|
+ /* jobContentOprObj.currentRationItems = me.currentRations["_SEC_ID_" + sectionID];
|
|
|
+ jobContentOprObj.rationJobContentOpr(me.currentRations["_SEC_ID_" + sectionID]);*/
|
|
|
//annotation
|
|
|
- annotationOprObj.rationAnnotationOpr(me.currentRations["_SEC_ID_" + sectionID]);
|
|
|
+ //annotationOprObj.rationAnnotationOpr(me.currentRations["_SEC_ID_" + sectionID]);
|
|
|
me.showRationItems(sectionID);
|
|
|
sectionTreeObj.removeBtn.removeClass('disabled');
|
|
|
if(callback){
|
|
@@ -698,10 +697,10 @@ let rationOprObj = {
|
|
|
me.currentRations["_SEC_ID_" + sectionID] = rstData;
|
|
|
me.sortByCode(me.currentRations["_SEC_ID_" + sectionID]);
|
|
|
//job--
|
|
|
- jobContentOprObj.currentRationItems = me.currentRations["_SEC_ID_" + sectionID];
|
|
|
- jobContentOprObj.rationJobContentOpr(me.currentRations["_SEC_ID_" + sectionID]);
|
|
|
+ /*jobContentOprObj.currentRationItems = me.currentRations["_SEC_ID_" + sectionID];
|
|
|
+ jobContentOprObj.rationJobContentOpr(me.currentRations["_SEC_ID_" + sectionID]);*/
|
|
|
//annotation
|
|
|
- annotationOprObj.rationAnnotationOpr(me.currentRations["_SEC_ID_" + sectionID]);
|
|
|
+ //annotationOprObj.rationAnnotationOpr(me.currentRations["_SEC_ID_" + sectionID]);
|
|
|
me.showRationItems(sectionID);
|
|
|
sectionTreeObj.removeBtn.removeClass('disabled');
|
|
|
if(callback) {
|