产品选择优化

This commit is contained in:
yjf 2021-11-23 08:37:04 +08:00
parent 1dba9365ed
commit 88fe06a051

View File

@ -390,6 +390,7 @@
MyOjbect.price=Math.round(sReturn[2]*10000);
MyOjbect.liter=sReturn[3];
MyOjbect.geartype=sReturn[4];
MyOjbect.carId=sReturn[8];
setItemValue(0,getRow(),"modelid",sReturn[0]);
setItemValue(0,getRow(),"carSystem",sReturn[1]);
setItemValue(0,getRow(),"price",MyOjbect.price);
@ -426,17 +427,12 @@
var model = getItemValue(0,getRow(),"modelid");
if(model){
modelid = true;
}else{
modelid = false;
}
var CurOrgID=<%=CurOrg.getOrgID()%>;
var YesNo="Y";
if( MyOjbect.cartypea=="SYC" || modelid==true ){
modelid=getItemValue(0,getRow(),"modelid");
if(""== modelid && MyOjbect.cartypea=="SYC"){
modelid = null;
}
AsDialog.OpenSelector("selectProductVersionInfo","attribute2,car_product,modelid,"+modelid+",CurOrgID,"+CurOrgID+",YesNo,"+YesNo,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
if( modelid==true || MyOjbect.cartypea == 'SYC' ){
let carId = MyOjbect.carId;
AsDialog.OpenSelector("selectProductVersionInfoNew","carId,"+carId+",CurOrgID,"+CurOrgID,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_")
{
@ -452,8 +448,8 @@
MyOjbect.VERSIONID = sReturn[4];//°æ±¾ID
MyOjbect.id = sReturn[5];//¾­ÏúÉÌID
MyOjbect.distributor_name = sReturn[6];//¾­ÏúÉÌÃû³Æ
MyOjbect.modelid = sReturn[7];//³µÐÍID
MyOjbect.modelname = sReturn[8];//³µÐÍÃû³Æ
// MyOjbect.modelid = sReturn[7];//łľĐÍID
// MyOjbect.modelname = sReturn[8];//łľĐÍĂűłĆ
operationType = sReturn[11];
SubjectId = sReturn[12];