|
@@ -148,6 +148,12 @@ let mbzm_obj={
|
|
|
let createLocation = $("#createLocation").val();
|
|
|
let rations = {update:[],create:[],delete:[]},bills={update:[],create:[]};
|
|
|
if(this.datas.length <= 0) return;
|
|
|
+ let quantityValide = false;
|
|
|
+ for(let data of this.datas){
|
|
|
+ let quantity = this.getQuantity(data);//取实时或手输工程量
|
|
|
+ if(quantity&&quantity!='0') quantityValide = true;
|
|
|
+ }
|
|
|
+ if(quantityValide == false)return alert('请输入工程量');
|
|
|
for(let d of this.datas){
|
|
|
let ration = _.find(projectObj.project.Ration.datas,{'referenceRationID':selected.data.ID,'code':d.code});
|
|
|
if(ration||(gljUtil.isDef(d.quantity)&& parseFloat(d.quantity)>0)||(d.coe && d.coe!="0")){
|