Tony Kang 1 год назад
Родитель
Сommit
e4c51d6b1b
1 измененных файлов с 121 добавлено и 121 удалено
  1. 121 121
      web/building_saas/standard_interface/export/guangxi_common.js

+ 121 - 121
web/building_saas/standard_interface/export/guangxi_common.js

@@ -759,132 +759,132 @@ INTERFACE_EXPORT = (() => {
         //   if (orList.length > 0) this.children = orList;
         // }
 
-        function CostStructure(r) {
-          //待获取
-          this.name = "CostStructure";
-          this.attrs = [];
-          this.children = [];
-        }
-
-        function Consume(r, o) {
-          this.name = "Consume";
-          this.attrs = [{
-            name: "KeyId",
-            value: uuid.v1()
-          }];
-          this.children = [];
-          for (let g of o.ration_gljs) {
-            if (g.rationID == r.ID) {
-              let r_quantity = scMathUtil.roundForObj(r.quantity, tpdata.property.decimal.ration.quantity);
-              this.children.push(new ConsumeItem(g, r_quantity));
-            }
-          }
-        }
+        // function CostStructure(r) {
+        //   //待获取
+        //   this.name = "CostStructure";
+        //   this.attrs = [];
+        //   this.children = [];
+        // }
 
-        function ConsumeItem(g, ration_quantity) {
-          let costType = parseInt(g.type);
-          if (costType < 100) {
-            costType = 1;
-          } else if (costType >= 300) {
-            costType = 3;
-          } else {
-            //判断主材
-            for (let pglj of pgljData.gljList) {
-              if (pglj.glj_id === g.GLJID) {
-                if (pglj.is_main_material == 1) {
-                  costType = 3;
-                } else {
-                  costType = 2;
-                }
-                break;
-              }
-            }
-          }
-          const attrs = [{
-            name: "Code", //待获取
-            value: g.code,
-          },
-          {
-            name: "Consumption",
-            value: scMathUtil.roundForObj(ration_quantity * parseFloat(g.quantity), tpdata.property.decimal.glj.quantity),
-          },
-          {
-            name: "CostType",
-            value: costType,
-          },
-          {
-            name: "KeyId",
-            value: uuid.v1()
-          },
-          ];
-          Element.call(this, "ConsumeItem", attrs);
-        }
+        // function Consume(r, o) {
+        //   this.name = "Consume";
+        //   this.attrs = [{
+        //     name: "KeyId",
+        //     value: uuid.v1()
+        //   }];
+        //   this.children = [];
+        //   for (let g of o.ration_gljs) {
+        //     if (g.rationID == r.ID) {
+        //       let r_quantity = scMathUtil.roundForObj(r.quantity, tpdata.property.decimal.ration.quantity);
+        //       this.children.push(new ConsumeItem(g, r_quantity));
+        //     }
+        //   }
+        // }
 
-        function Norm(r, o) {
-          const attrs = [{
-            name: "NormLibNo", //待获取
-            value: "",
-          },
-          {
-            name: "DisplayCode",
-            value: r.code,
-          },
-          {
-            name: "Name",
-            value: r.name,
-          },
-          {
-            name: "Unit",
-            value: r.unit,
-          },
-          {
-            name: "Num",
-            value: r.quantity || 0,
-          },
-          {
-            name: "CostTypeNo",
-            value: "", //待获取
-          },
-          {
-            name: "FabricationCost", //待获取
-            value: "",
-          },
-          {
-            name: "AdjustStatus",
-            value: "",
-          },
-          ];
-          Element.call(this, "Norm", attrs);
-          this.children.push(new CostStructure(r));
-          this.children.push(new Consume(r, o));
-        }
+        // function ConsumeItem(g, ration_quantity) {
+        //   let costType = parseInt(g.type);
+        //   if (costType < 100) {
+        //     costType = 1;
+        //   } else if (costType >= 300) {
+        //     costType = 3;
+        //   } else {
+        //     //判断主材
+        //     for (let pglj of pgljData.gljList) {
+        //       if (pglj.glj_id === g.GLJID) {
+        //         if (pglj.is_main_material == 1) {
+        //           costType = 3;
+        //         } else {
+        //           costType = 2;
+        //         }
+        //         break;
+        //       }
+        //     }
+        //   }
+        //   const attrs = [{
+        //     name: "Code", //待获取
+        //     value: g.code,
+        //   },
+        //   {
+        //     name: "Consumption",
+        //     value: scMathUtil.roundForObj(ration_quantity * parseFloat(g.quantity), tpdata.property.decimal.glj.quantity),
+        //   },
+        //   {
+        //     name: "CostType",
+        //     value: costType,
+        //   },
+        //   {
+        //     name: "KeyId",
+        //     value: uuid.v1()
+        //   },
+        //   ];
+        //   Element.call(this, "ConsumeItem", attrs);
+        // }
 
-        function SelfCollect(o) {
-          const attrs = [{
-            name: "OtherCost",
-            value: 0,
-          },];
-          Element.call(this, "SelfCollect", attrs);
-          for (let r of o.rations) {
-            this.children.push(new Norm(r, o));
-          }
-        }
+        // function Norm(r, o) {
+        //   const attrs = [{
+        //     name: "NormLibNo", //待获取
+        //     value: "",
+        //   },
+        //   {
+        //     name: "DisplayCode",
+        //     value: r.code,
+        //   },
+        //   {
+        //     name: "Name",
+        //     value: r.name,
+        //   },
+        //   {
+        //     name: "Unit",
+        //     value: r.unit,
+        //   },
+        //   {
+        //     name: "Num",
+        //     value: r.quantity || 0,
+        //   },
+        //   {
+        //     name: "CostTypeNo",
+        //     value: "", //待获取
+        //   },
+        //   {
+        //     name: "FabricationCost", //待获取
+        //     value: "",
+        //   },
+        //   {
+        //     name: "AdjustStatus",
+        //     value: "",
+        //   },
+        //   ];
+        //   Element.call(this, "Norm", attrs);
+        //   this.children.push(new CostStructure(r));
+        //   this.children.push(new Consume(r, o));
+        // }
 
-        function OrgPrices(o) {
-          const attrs = [{
-            name: "OrgPricevalue",
-            value: o.supplyPrice,
-          },
-          {
-            name: "Ratio",
-            value: o.coe,
-          },
-          ];
+        // function SelfCollect(o) {
+        //   const attrs = [{
+        //     name: "OtherCost",
+        //     value: 0,
+        //   },];
+        //   Element.call(this, "SelfCollect", attrs);
+        //   for (let r of o.rations) {
+        //     this.children.push(new Norm(r, o));
+        //   }
+        // }
 
-          Element.call(this, "OrgPrices", attrs);
-          if (!o.rations) return;
-          this.children.push(new SelfCollect(o));
-        }
+        // function OrgPrices(o) {
+        //   const attrs = [{
+        //     name: "OrgPricevalue",
+        //     value: o.supplyPrice,
+        //   },
+        //   {
+        //     name: "Ratio",
+        //     value: o.coe,
+        //   },
+        //   ];
+
+        //   Element.call(this, "OrgPrices", attrs);
+        //   if (!o.rations) return;
+        //   this.children.push(new SelfCollect(o));
+        // }
       }
 
       function Mech(g, gljKeyMap) {