|
|
@@ -129,4 +129,16 @@ async function getUnitPriceFileId(projectId) {
|
|
|
projectData = projectData[0];
|
|
|
result = projectData.property.unitPriceFile !== undefined ? projectData.property.unitPriceFile.id : 0;
|
|
|
return result;
|
|
|
-};
|
|
|
+};
|
|
|
+
|
|
|
+function getIndex(obj,tpops){
|
|
|
+ let pops = tpops?tpops:['code','name','specs','unit','type'];
|
|
|
+ let t_index = '';
|
|
|
+ let k_arr=[];
|
|
|
+ for(let p of pops){
|
|
|
+ let tmpK = (obj[p]==undefined||obj[p]==null||obj[p]=='')?'null':obj[p];
|
|
|
+ k_arr.push(tmpK);
|
|
|
+ }
|
|
|
+ t_index=k_arr.join("|-|");
|
|
|
+ return t_index;
|
|
|
+}
|