|
|
@@ -877,7 +877,15 @@ const ImportXML = (() => {
|
|
|
}
|
|
|
//根据费用类别、配比类比获取人材机类别(后端匹配不到标准人材机的时候用)
|
|
|
function getGljTypeData(feeType, ratioType, name) {
|
|
|
- let map = {
|
|
|
+ // 有的人材机类型根据人材机名称特殊获取
|
|
|
+ // 因为这份文件不太标准,各家也不统一,没有一个靠谱的方法能准备获取人材机类型
|
|
|
+ const specialMap = {
|
|
|
+ '定额管理费': {type: 6, shortName: '管'}
|
|
|
+ };
|
|
|
+ if (specialMap[name]) {
|
|
|
+ return specialMap[name];
|
|
|
+ }
|
|
|
+ const map = {
|
|
|
'-': {type: 201, shortName: '材'},
|
|
|
'1-': {type: 1, shortName: '人'},
|
|
|
'2-': {type: 201, shortName: '材'},
|
|
|
@@ -889,7 +897,7 @@ const ImportXML = (() => {
|
|
|
'3-': {type: 301, shortName: '机'},
|
|
|
'4-': {type: 4, shortName: '主'},
|
|
|
};
|
|
|
- let nameMap = {
|
|
|
+ const nameMap = {
|
|
|
'柴油': {type: 305, shortName: '动'},
|
|
|
'柴油(机械用)': {type: 305, shortName: '动'},
|
|
|
'柴油(机械用)': {type: 305, shortName: '动'},
|