修改一合同多车问题
This commit is contained in:
parent
1cee468401
commit
f22c40cb1e
@ -84,7 +84,10 @@
|
||||
String carNum = Sqlca.getString( "SELECT COUNT(1) AS carNum FROM lb_equipment_car_temp WHERE car_attribute='head' AND flowunid='" + flowunid + "'" );
|
||||
String sumeQuipPrice = Sqlca.getString( "SELECT SUM(IFNULL(EQUIP_PRICE,0)) AS sumeQuipPrice FROM lb_equipment_car_temp WHERE flowunid='" + flowunid + "'" );
|
||||
String carTypea = Sqlca.getString( "SELECT car_typea FROM lb_equipment_car_temp WHERE flowunid='" + flowunid + "' LIMIT 1 " );
|
||||
|
||||
//获取产品配置的留购价款
|
||||
String nominalPrice= ProductParamUtil.getProductParameterValue( productId, "PRD0315", "NOMINAL_PRICE", "CostType08" ) ;
|
||||
|
||||
|
||||
ASObjectModel doTemp = new ASObjectModel(templateNo);
|
||||
|
||||
Map<String, Map<String, String>> productRates = ProductParamUtil.getProductComponentType(productId, "PRD0350");
|
||||
@ -298,7 +301,7 @@ $(function(){
|
||||
setItemValue( 0, 0, 'EQUIP_AMT', "<%=sumeQuipPrice%>" );
|
||||
setItemReadOnly(0,0,"EQUIP_AMT",true);
|
||||
}
|
||||
var nominalPrice = getItemValue( 0, 0,'NOMINAL_PRICE') ;
|
||||
var nominalPrice = "<%=nominalPrice%>" ;
|
||||
var carNum = parseInt("<%=carNum%>");
|
||||
setItemValue( 0, 0, 'NOMINAL_PRICE', Number(nominalPrice)*carNum );
|
||||
|
||||
|
||||
@ -204,9 +204,15 @@
|
||||
setItemReadOnly(0,0,"gears",true);
|
||||
setItemReadOnly(0,0,"DISPLACEMENT",true);
|
||||
setItemReadOnly(0,0,"DRIVE_TYPE",true);
|
||||
setItemReadOnly(0,0,"EQUIP_PRICE",true);
|
||||
setItemReadOnly(0,0,"CAR_ATTRIBUTE",true);
|
||||
setItemReadOnly(0,0,"MANUFACTURER_NAME",true);
|
||||
setItemReadOnly(0,0,"LICENSE_PLATE_NUMBER",true);
|
||||
setItemReadOnly(0,0,"EXPIRYDATE",true);
|
||||
$("#BRAND ~ a").remove();
|
||||
$("#CAR_SERIES ~ a").remove();
|
||||
$("#MODEL ~ a").remove();
|
||||
$("#HEAD_NAME ~ a").remove();
|
||||
// document.getElementById('BRAND').nextSibling.remove();
|
||||
// document.getElementById('CAR_SERIES').nextSibling.remove();
|
||||
// document.getElementById('MODEL').nextSibling.remove();
|
||||
@ -222,6 +228,8 @@
|
||||
if("head" != carAttribute){
|
||||
setItemRequired(0,"car_series",false);
|
||||
setItemRequired(0,"MODEL",false);
|
||||
setItemReadOnly(0,0,"ENGINE_NUMBER",true);
|
||||
setItemReadOnly(0,0,"CAR_COLOUR",true);
|
||||
}
|
||||
}
|
||||
|
||||
@ -405,7 +413,8 @@
|
||||
},"ÇëÑ¡Ôñ³µÆ·ÅÆ",'');
|
||||
}
|
||||
function carReadonly(cartypea){
|
||||
if("SYC"==cartypea){
|
||||
var flowNo ="<%=FlowNo%>";
|
||||
if("SYC"==cartypea && (flowNo=="BusinessApplyFlow" || flowNo=="BusinessChangeFlow") ){
|
||||
setItemReadOnly(0,0,"CAR_SERIES",false);
|
||||
setItemReadOnly(0,0,"MODEL",false);
|
||||
setItemReadOnly(0,0,"NOW_TOTAL",false);
|
||||
|
||||
@ -65,7 +65,7 @@
|
||||
//获取车辆属性
|
||||
String carTypea = Sqlca.getString("SELECT car_typea FROM LB_EQUIPMENT_CAR_TEMP WHERE flowunid='"+sFlowUnid+"'");
|
||||
String copyFalg = "false";
|
||||
if("SYC".equals(carTypea)){
|
||||
if("SYC".equals(carTypea) && (flowNo.equals("BusinessApplyFlow") || flowNo.equals("BusinessChangeFlow")) ){
|
||||
copyFalg = "true";
|
||||
}
|
||||
%>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user