| 
															
																@@ -136,7 +136,7 @@ $(document).ready(() => { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         {title: '工料分类', colSpan: '1', rowSpan: '2', field: 'm_type', hAlign: 1, width: 60, readOnly: 'readOnly.isEdit', cellType: 'customizeCombo', comboItems: materialType.m_type, cellTypeKey: 2}, 
															 | 
															
															 | 
															
																         {title: '工料分类', colSpan: '1', rowSpan: '2', field: 'm_type', hAlign: 1, width: 60, readOnly: 'readOnly.isEdit', cellType: 'customizeCombo', comboItems: materialType.m_type, cellTypeKey: 2}, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     ]; 
															 | 
															
															 | 
															
																     ]; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     if (materialTax) { 
															 | 
															
															 | 
															
																     if (materialTax) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        materialSpreadSettingCols.push({title: '税率(%)', colSpan: '1', rowSpan: '2', field: 'm_tax', hAlign: 2, width: 50, type: 'Number', readOnly: editTaxPermission ? 'readOnly.isEdit' : 'readOnly.remark'}); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+        materialSpreadSettingCols.push({title: '税率(%)', colSpan: '1', rowSpan: '2', field: 'm_tax', hAlign: 2, width: 50, type: 'Number', readOnly: editTaxPermission ? 'readOnly.remark' : 'readOnly.isEdit'}); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     } 
															 | 
															
															 | 
															
																     } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     materialSpreadSettingCols = _.concat(materialSpreadSettingCols, [ 
															 | 
															
															 | 
															
																     materialSpreadSettingCols = _.concat(materialSpreadSettingCols, [ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         {title: '上涨 幅度(%)', colSpan: '1', rowSpan: '2', field: 'm_up_risk', hAlign: 2, width: 50, type: 'Number', readOnly: 'readOnly.isEdit'}, 
															 | 
															
															 | 
															
																         {title: '上涨 幅度(%)', colSpan: '1', rowSpan: '2', field: 'm_up_risk', hAlign: 2, width: 50, type: 'Number', readOnly: 'readOnly.isEdit'}, 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -175,6 +175,7 @@ $(document).ready(() => { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     spCol.normalImg = '#ellipsis-icon'; 
															 | 
															
															 | 
															
																     spCol.normalImg = '#ellipsis-icon'; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     spCol.indent = 5; 
															 | 
															
															 | 
															
																     spCol.indent = 5; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     spCol.showImage = function (data) { 
															 | 
															
															 | 
															
																     spCol.showImage = function (data) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+        // console.log(data, data.t_type); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         // return !readOnly && data.t_type === 2 && data.mid === materialID; 
															 | 
															
															 | 
															
																         // return !readOnly && data.t_type === 2 && data.mid === materialID; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         return data.t_type === 2; 
															 | 
															
															 | 
															
																         return data.t_type === 2; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     }; 
															 | 
															
															 | 
															
																     }; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -321,6 +322,7 @@ $(document).ready(() => { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     return item.quantity !== null && item.quantity !== 0; 
															 | 
															
															 | 
															
																                     return item.quantity !== null && item.quantity !== 0; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 }); 
															 | 
															
															 | 
															
																                 }); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             } 
															 | 
															
															 | 
															
																             } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+            console.log(newMaterialBillsData); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             SpreadJsObj.loadSheetData(materialSpread.getActiveSheet(), SpreadJsObj.DataType.Data, newMaterialBillsData); 
															 | 
															
															 | 
															
																             SpreadJsObj.loadSheetData(materialSpread.getActiveSheet(), SpreadJsObj.DataType.Data, newMaterialBillsData); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             materialSpreadObj.refreshActn(); 
															 | 
															
															 | 
															
																             materialSpreadObj.refreshActn(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         }, 
															 | 
															
															 | 
															
																         }, 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -1162,7 +1164,8 @@ $(document).ready(() => { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         showWaitingView(); 
															 | 
															
															 | 
															
																         showWaitingView(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         setTimeout(function () { 
															 | 
															
															 | 
															
																         setTimeout(function () { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             materialSpreadObj.getMaterialBillsData(); 
															 | 
															
															 | 
															
																             materialSpreadObj.getMaterialBillsData(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            SpreadJsObj.reLoadSheetData(materialSpread.getActiveSheet()); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+            materialSpreadObj.materialSheetReset(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+            // SpreadJsObj.reLoadSheetData(materialSpread.getActiveSheet()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             // 消耗量表格更新 
															 | 
															
															 | 
															
																             // 消耗量表格更新 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             let html = ''; 
															 | 
															
															 | 
															
																             let html = ''; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             calcBase = _.find(calcBaseList, { ms_id: $('#myTab').find('.active').data('msid') }).calcBase; 
															 | 
															
															 | 
															
																             calcBase = _.find(calcBaseList, { ms_id: $('#myTab').find('.active').data('msid') }).calcBase; 
															 |