This commit is contained in:
zds
2022-11-09 16:00:45 +08:00
parent a9417c3800
commit e497b2a0cd
5 changed files with 31 additions and 14 deletions

View File

@@ -40,7 +40,9 @@ public class StatisticalReportServiceImpl implements StatisticalReportService {
map.put("pcsn", MapUtil.getStr(whereJson, "pcsn"));
if (!StrUtil.isEmpty(material_code)) {
//处理转义字符
if (material_code.contains("\\")) material_code = material_code.replace("\\", "\\\\\\");
if (material_code.contains("\\")) {
material_code = material_code.replace("\\", "\\\\\\");
}
map.put("material_code", "%" + material_code + "%");
}
@@ -149,26 +151,22 @@ public class StatisticalReportServiceImpl implements StatisticalReportService {
//3、待检入库量sum(此物料未确认的到货单的单据数-入库数)
JSONObject num_jo = WQL.getWO("statistical_report_query_01").addParam("flag", "7").addParam("material_id", material_id).process().uniqueResult(0);
//订单数量
double proc_qty = 0;
//到货重量
double allqty = 0;
//3、待检入库量sum(此物料未确认的到货单的单据数-入库数)
JSONObject noin_jo = WQL.getWO("statistical_report_query_01").addParam("flag", "77").addParam("material_id", material_id).process().uniqueResult(0);
//合同在途
double notqty = 0;
//待检重量
double noqty = 0;
//待检+未入库数量
double noin_qty = 0;
if (ObjectUtil.isNotEmpty(num_jo)) {
proc_qty = num_jo.getDoubleValue("qty");
allqty = num_jo.getDoubleValue("allqty");
notqty = num_jo.getDoubleValue("notqty");
noqty = num_jo.getDoubleValue("noqty");
noin_qty = num_jo.getDoubleValue("noin_qty");
if (notqty < 0) {
notqty = 0;
}
}
if (ObjectUtil.isNotEmpty(noin_jo)) {
noin_qty = noin_jo.getDoubleValue("noin_qty");
}
jo4.put(material_id, String.format("%.3f", noin_qty));
//4、合同在途订单量-到货量

View File

@@ -417,6 +417,26 @@
ENDQUERY
ENDIF
IF 输入.flag = "77"
QUERY
SELECT
sum( a.receive_qty - a.instor_qty ) AS noin_qty,
a.material_id
FROM
PCS_RC_ReceiveDtl a
LEFT JOIN pcs_rc_receivemst mst ON mst.receive_id = a.receive_id
WHERE
mst.is_delete = '0'
AND mst.STATUS <> '99'
AND a.STATUS <> '99'
OPTION 输入.material_id <> ""
a.material_id = 输入.material_id
ENDOPTION
GROUP BY a.material_id
ENDSELECT
ENDQUERY
ENDIF
IF 输入.flag = "8"
QUERY
SELECT

View File

@@ -105,7 +105,7 @@
<el-date-picker
v-model="query.nowstart_date"
type="date"
value-format=yyyy-MM-dd
value-format="yyyy-MM-dd"
style="width: 200px"
placeholder="选择日期">
</el-date-picker>

View File

@@ -130,7 +130,7 @@
v-model="query.nowstart_date"
type="date"
style="width: 200px"
value-format=yyyy-MM-dd
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
<el-checkbox v-model="query.checked">启用</el-checkbox>

View File

@@ -372,7 +372,6 @@ export default {
this.Depts = res
})
this.crud.query.createTime = [new Date(), new Date().daysLater(2)]
//this.crud.toQuery()
},
methods: {
canUd(row) {