|
@@ -569,8 +569,8 @@ class GLJListModel extends BaseModel {
|
|
|
let mixRatioInsertData = [];
|
|
|
for (let tmp of compositionGljList) {
|
|
|
let consumpiton = tmp.consumption;
|
|
|
- //只有标准的工料机的组成物才会有多单价、多组成物消耗量的情况 fromTable
|
|
|
- if(fromTable == 'std' && ext && ext.quantityField &&( tmp.consumption[ext.quantityField]!= undefined && tmp.consumption[ext.quantityField]!=null)){
|
|
|
+ //多单价、多组成物消耗量的情况 fromTable
|
|
|
+ if(ext && ext.quantityField &&( tmp.consumption[ext.quantityField]!= undefined && tmp.consumption[ext.quantityField]!=null)){
|
|
|
consumpiton = tmp.consumption[ext.quantityField];
|
|
|
}
|
|
|
// 配合比数据插入
|
|
@@ -602,8 +602,8 @@ class GLJListModel extends BaseModel {
|
|
|
gljInsertData.push(gljData);
|
|
|
}
|
|
|
let basePrice = tmp.basePrice;
|
|
|
- //只有标准的工料机的组成物才会有多单价、多组成物消耗量的情况 fromTable
|
|
|
- if(fromTable == 'std' && ext && ext.priceField &&( tmp.priceProperty[ext.priceField]!= undefined && tmp.priceProperty[ext.priceField]!=null)){
|
|
|
+ //多单价、多组成物消耗量的情况 fromTable
|
|
|
+ if(ext && ext.priceField &&( tmp.priceProperty[ext.priceField]!= undefined && tmp.priceProperty[ext.priceField]!=null)){
|
|
|
basePrice = tmp.priceProperty[ext.priceField];
|
|
|
}
|
|
|
basePrice = scMathUtil.roundTo(basePrice,-6);
|