|
@@ -109,19 +109,21 @@ var Ration = {
|
|
|
controller.sheet.getCell(selected[0].row,col).value(data[fieldName]);
|
|
|
};
|
|
|
ration.prototype.getTempRationData = function (id, billsID, serialNo, rType) {
|
|
|
- var newData = {'ID': id, 'serialNo': serialNo, projectID: this.project.ID()};
|
|
|
+ let newData = {'ID': id, 'serialNo': serialNo, projectID: this.project.ID()};
|
|
|
+ let pEngineer = projectInfoObj.projectInfo.property.projectEngineering;//量价默认使用后台设置的单位工程取费专业
|
|
|
newData[project.masterField.ration] = billsID;
|
|
|
newData['type'] = rType;
|
|
|
if (rType == rationType.volumePrice){
|
|
|
newData['subType'] = gljType.GENERAL_MATERIAL; // 默认的量价类型为材料
|
|
|
- //newData['programID'] = projectInfoObj.projectInfo.property.engineering;
|
|
|
};
|
|
|
- /* if(rType == rationType.install){//是安装增加费生成的定额
|
|
|
- newData['programID'] = projectInfoObj.projectInfo.property.engineering;
|
|
|
- }*/
|
|
|
+ if(rType == rationType.ration){//空定额暂时不输入取费专业
|
|
|
+ // newData['programID'] = projectInfoObj.projectInfo.property.engineering;
|
|
|
+ }else {
|
|
|
+ if(pEngineer) newData['programID'] = pEngineer;
|
|
|
+ }
|
|
|
+
|
|
|
return newData;
|
|
|
};
|
|
|
-
|
|
|
ration.prototype.getBillsSortRation = function (billsID) { // 该方法只适用于叶子清单
|
|
|
var rations = this.datas.filter(function (data) {
|
|
|
return data[project.masterField.ration] === billsID;
|