Merge branch 'test' into dev-ljw
This commit is contained in:
commit
14ce43f2eb
@ -301,7 +301,8 @@ public class CommonUtils {
|
|||||||
if (fileurl.contains("http://localhost:8080/ierp/")) {
|
if (fileurl.contains("http://localhost:8080/ierp/")) {
|
||||||
fileurl = fileurl.replace("http://localhost:8080/", "http://10.64.112.152:8022/");
|
fileurl = fileurl.replace("http://localhost:8080/", "http://10.64.112.152:8022/");
|
||||||
}
|
}
|
||||||
if (yem_ispdf && filename.endsWith(".pdf")) {
|
if (yem_ispdf) {
|
||||||
|
if (filename.endsWith(".pdf")) {
|
||||||
String result = YunzhijiaUtils.uploadfile(fileurl, accessToken, (String) map.get("name"));
|
String result = YunzhijiaUtils.uploadfile(fileurl, accessToken, (String) map.get("name"));
|
||||||
JSONObject json = JSONObject.parseObject(result);
|
JSONObject json = JSONObject.parseObject(result);
|
||||||
Boolean success = json.getBoolean("success");
|
Boolean success = json.getBoolean("success");
|
||||||
@ -323,6 +324,7 @@ public class CommonUtils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
String result = YunzhijiaUtils.uploadfile(fileurl, accessToken, (String) map.get("name"));
|
String result = YunzhijiaUtils.uploadfile(fileurl, accessToken, (String) map.get("name"));
|
||||||
JSONObject json = JSONObject.parseObject(result);
|
JSONObject json = JSONObject.parseObject(result);
|
||||||
|
@ -146,7 +146,7 @@ public class SalesContracSignatureOp extends AbstractOperationServicePlugIn {
|
|||||||
public JSONObject GetintebilllogonJson(Object pkid, DynamicObject dynamicObject) {
|
public JSONObject GetintebilllogonJson(Object pkid, DynamicObject dynamicObject) {
|
||||||
JSONObject Object = new JSONObject();
|
JSONObject Object = new JSONObject();
|
||||||
QFilter qFilter = new QFilter("yem_isdisable", QCP.equals, false);
|
QFilter qFilter = new QFilter("yem_isdisable", QCP.equals, false);
|
||||||
qFilter.and(new QFilter("billno", QCP.equals, "WXHT-YZJ"));
|
qFilter.and(new QFilter("billno", QCP.equals, "KJHT-GZSP"));
|
||||||
DynamicObject yem_ia_intebilllogon = BusinessDataServiceHelper.loadSingle("yem_ia_intebilllogon", "id", qFilter.toArray());
|
DynamicObject yem_ia_intebilllogon = BusinessDataServiceHelper.loadSingle("yem_ia_intebilllogon", "id", qFilter.toArray());
|
||||||
if (yem_ia_intebilllogon != null) {
|
if (yem_ia_intebilllogon != null) {
|
||||||
long intebilllogonID = yem_ia_intebilllogon.getLong("id");
|
long intebilllogonID = yem_ia_intebilllogon.getLong("id");
|
||||||
|
@ -193,6 +193,7 @@ public class SalesOrderZJEdit extends AbstractBillPlugIn implements Plugin, Befo
|
|||||||
String name = e.getProperty().getName();
|
String name = e.getProperty().getName();
|
||||||
ChangeData changeData = e.getChangeSet()[0];
|
ChangeData changeData = e.getChangeSet()[0];
|
||||||
Object oldValue = changeData.getOldValue();
|
Object oldValue = changeData.getOldValue();
|
||||||
|
Object newValue = changeData.getNewValue();
|
||||||
int rowIndex = changeData.getRowIndex();
|
int rowIndex = changeData.getRowIndex();
|
||||||
int ParentRow = changeData.getParentRowIndex();
|
int ParentRow = changeData.getParentRowIndex();
|
||||||
DynamicObject dataEntity = model.getDataEntity();
|
DynamicObject dataEntity = model.getDataEntity();
|
||||||
@ -526,10 +527,30 @@ public class SalesOrderZJEdit extends AbstractBillPlugIn implements Plugin, Befo
|
|||||||
break;
|
break;
|
||||||
case "yem_tonsqty":
|
case "yem_tonsqty":
|
||||||
case "yem_port":
|
case "yem_port":
|
||||||
case "yem_padexpense":
|
case "yem_shippingmethod":
|
||||||
ClientUtils.calcInlandTransportationAmt(model, rowIndex);//计算内陆运费
|
ClientUtils.calcInlandTransportationAmt(model, rowIndex);//计算内陆运费
|
||||||
ClientUtils.calculatePortAmt(model, rowIndex);//计算港杂费
|
ClientUtils.calculatePortAmt(model, rowIndex);//计算港杂费
|
||||||
break;
|
break;
|
||||||
|
case "yem_padexpense":
|
||||||
|
DynamicObject padexpense = (DynamicObject) newValue;
|
||||||
|
if (padexpense != null) {
|
||||||
|
String number = padexpense.getString("number");
|
||||||
|
//内陆运输费
|
||||||
|
if ("FYXM0023.11".equals(number)) {
|
||||||
|
DynamicObjectCollection entryRows = this.getModel().getEntryEntity("yem_es_materialinfo");
|
||||||
|
for(int i = 0;i<entryRows.size();i++){
|
||||||
|
ClientUtils.calcInlandTransportationAmt(model, i);//计算内陆运费
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//港杂费
|
||||||
|
else if ("FYXM0023.6".equals(number)) {
|
||||||
|
DynamicObjectCollection entryRows = this.getModel().getEntryEntity("yem_es_materialinfo");
|
||||||
|
for(int i = 0;i<entryRows.size();i++){
|
||||||
|
ClientUtils.calculatePortAmt(model, i);//计算内陆运费
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
case "yem_squareqty":
|
case "yem_squareqty":
|
||||||
ClientUtils.calculatePortAmt(model, rowIndex);//计算港杂费
|
ClientUtils.calculatePortAmt(model, rowIndex);//计算港杂费
|
||||||
break;
|
break;
|
||||||
@ -570,6 +591,7 @@ public class SalesOrderZJEdit extends AbstractBillPlugIn implements Plugin, Befo
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 选择赠送配件-产品机型,汇总明细信息中相同机型的数量
|
* 选择赠送配件-产品机型,汇总明细信息中相同机型的数量
|
||||||
|
*
|
||||||
* @param rowIndex
|
* @param rowIndex
|
||||||
*/
|
*/
|
||||||
private void summarizeModules(int rowIndex) {
|
private void summarizeModules(int rowIndex) {
|
||||||
@ -598,6 +620,7 @@ public class SalesOrderZJEdit extends AbstractBillPlugIn implements Plugin, Befo
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改商品明细中数量,同步修改礼品赠送中数量
|
* 修改商品明细中数量,同步修改礼品赠送中数量
|
||||||
|
*
|
||||||
* @param model
|
* @param model
|
||||||
* @param rowIndex
|
* @param rowIndex
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user