rev:合同台账修改
This commit is contained in:
@@ -14,6 +14,7 @@ import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nl.exception.BadRequestException;
|
||||
import org.nl.ext.erp.service.WmsToErpService;
|
||||
import org.nl.utils.PageUtil;
|
||||
import org.nl.utils.SecurityUtils;
|
||||
import org.nl.wms.basedata.master.constant.MaterOptTypeEnum;
|
||||
import org.nl.wms.basedata.master.service.ClassstandardService;
|
||||
@@ -216,9 +217,9 @@ public class PcsIfPurchaseorderprocServiceImpl implements PcsIfPurchaseorderproc
|
||||
if (!ObjectUtil.isEmpty(supp_name)) {
|
||||
map.put("supp_name", "%" + supp_name + "%");
|
||||
}
|
||||
if (!ObjectUtil.isEmpty(iszero)) {
|
||||
/* if (!ObjectUtil.isEmpty(iszero)) {
|
||||
map.put("iszero", "true".equals(iszero)?"= 0":"<> 0");
|
||||
}
|
||||
}*/
|
||||
|
||||
String classIds = classstandardService.getAllChildIdStr(MaterOptTypeEnum.ZLFL.getClass_idStr());
|
||||
map.put("classIds",classIds);
|
||||
@@ -232,7 +233,7 @@ public class PcsIfPurchaseorderprocServiceImpl implements PcsIfPurchaseorderproc
|
||||
.map(row -> row.getString("contract_no"))
|
||||
.collect(Collectors.joining("','"));
|
||||
|
||||
// 查询erp视图
|
||||
// 查询erp视图 QTY_HT 重量 ,QTY_ZT 未到货重量,NORIGTAXMNY 合同金额
|
||||
List<JSONObject> ja = WQL.getWO("QERP").setDbname("dataSource1").addParam("flag", "8").addParam("no_ids", "('"+no_ids+"')").process().getResultJSONArray(0).toJavaList(JSONObject.class);
|
||||
|
||||
for (int i = 0; i < content.size(); i++) {
|
||||
@@ -242,8 +243,15 @@ public class PcsIfPurchaseorderprocServiceImpl implements PcsIfPurchaseorderproc
|
||||
.filter(row -> row.getString("vbillcode").equals(jsonObject.getString("contract_no"))
|
||||
&& row.getString("item_code").equals(jsonObject.getString("material_code"))).findAny();
|
||||
jsonObject.put("subscribedate",first.isPresent() ? first.get().get("subscribedate"): "");
|
||||
// 合同重量
|
||||
jsonObject.put("qty_ht",first.isPresent() ? first.get().get("QTY_HT"): 0);
|
||||
// 合同未到货重量
|
||||
jsonObject.put("qty_zt",first.isPresent() ? first.get().get("QTY_ZT"): 0);
|
||||
// 合同金额
|
||||
jsonObject.put("norigtaxmny",first.isPresent() ? first.get().get("NORIGTAXMNY"): 0);
|
||||
}
|
||||
|
||||
|
||||
json.put("content",content);
|
||||
return json;
|
||||
}
|
||||
|
||||
@@ -113,9 +113,9 @@
|
||||
<el-table-column prop="material_code" label="物料编码" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column prop="material_name" label="物料名称" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column prop="price_tax" label="单价含税" min-width="120" :formatter="crud.formatNum3" show-overflow-tooltip/>
|
||||
<el-table-column prop="qty" label="重量" show-overflow-tooltip :formatter="crud.formatNum3" />
|
||||
<el-table-column prop="money" label="金额" show-overflow-tooltip :formatter="crud.formatNum3" width="110" />
|
||||
<el-table-column prop="notqty" label="未到货重量" :formatter="crud.formatNum3" show-overflow-tooltip width="110"/>
|
||||
<el-table-column prop="qty_ht" label="合同重量" show-overflow-tooltip :formatter="crud.formatNum3" />
|
||||
<el-table-column prop="norigtaxmny" label="合同金额" show-overflow-tooltip :formatter="crud.formatNum3" width="110" />
|
||||
<el-table-column prop="qty_zt" label="合同未到货重量" :formatter="crud.formatNum3" show-overflow-tooltip width="150"/>
|
||||
<el-table-column prop="honour_days" label="账龄" width="100px" show-overflow-tooltip/>
|
||||
<el-table-column prop="allqty" label="合计重量" show-overflow-tooltip :formatter="crud.formatNum3" />
|
||||
<el-table-column prop="all_valmoney" label="合计金额" show-overflow-tooltip :formatter="crud.formatNum3" />
|
||||
@@ -124,6 +124,7 @@
|
||||
<el-table-column prop="receive_code" label="到货通知单" width="120px" show-overflow-tooltip/>
|
||||
<el-table-column prop="input_time" label="到货时间" width="150px" show-overflow-tooltip />
|
||||
<el-table-column prop="receive_qty" label="到货重量" show-overflow-tooltip :formatter="crud.formatNum3" />
|
||||
<el-table-column prop="notqty" label="未到货重量" width="150px" show-overflow-tooltip :formatter="crud.formatNum3" />
|
||||
<el-table-column prop="valmoney" label="到货金额" show-overflow-tooltip :formatter="crud.formatNum3" />
|
||||
<el-table-column prop="plan_date" label="资金计划" width="150px" show-overflow-tooltip />
|
||||
</el-table-column>
|
||||
|
||||
Reference in New Issue
Block a user