回退代码去掉收货查询

This commit is contained in:
wuweihua
2026-11-06 10:46:58 +08:00
parent 7807534e5d
commit a2e986fa6a
3 changed files with 7 additions and 39 deletions
@@ -1232,14 +1232,10 @@ public class TabOrderMonitorService
query.setOrderStatuses(cleaned.isEmpty() ? new ArrayList<Integer>(DEFAULT_ORDER_STATUSES) : cleaned); query.setOrderStatuses(cleaned.isEmpty() ? new ArrayList<Integer>(DEFAULT_ORDER_STATUSES) : cleaned);
} }
/** Empty or anything other than 0/1 falls back to 1(已收货). */ /** Always force BL_PICKUP=1; UI no longer exposes this filter. */
private static void normalizeBlPickup(TabOrderMonitorQuery query) private static void normalizeBlPickup(TabOrderMonitorQuery query)
{ {
Integer blPickup = query.getBlPickup(); query.setBlPickup(Integer.valueOf(1));
if (blPickup == null || (blPickup.intValue() != 0 && blPickup.intValue() != 1))
{
query.setBlPickup(Integer.valueOf(1));
}
} }
/** /**
@@ -66,14 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="query.endTime != null and query.endTime != ''"> <if test="query.endTime != null and query.endTime != ''">
AND o.PICKUP_DATE &lt;= TO_DATE(#{query.endTime}, 'YYYY-MM-DD HH24:MI:SS') AND o.PICKUP_DATE &lt;= TO_DATE(#{query.endTime}, 'YYYY-MM-DD HH24:MI:SS')
</if> </if>
<choose> AND o.BL_PICKUP = 1
<when test="query.blPickup != null">
AND o.BL_PICKUP = #{query.blPickup}
</when>
<!-- <otherwise>-->
<!-- AND o.BL_PICKUP = 1-->
<!-- </otherwise>-->
</choose>
<if test="query.orderStatuses != null and query.orderStatuses.size() > 0"> <if test="query.orderStatuses != null and query.orderStatuses.size() > 0">
AND o.ORDER_STATUS IN AND o.ORDER_STATUS IN
<foreach collection="query.orderStatuses" item="st" open="(" separator="," close=")"> <foreach collection="query.orderStatuses" item="st" open="(" separator="," close=")">
@@ -281,14 +274,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<foreach collection="batch" item="bid" open="(" separator="," close=")"> <foreach collection="batch" item="bid" open="(" separator="," close=")">
#{bid} #{bid}
</foreach> </foreach>
<choose> AND o.BL_PICKUP = 1
<when test="blPickup != null">
AND o.BL_PICKUP = #{blPickup}
</when>
<!-- <otherwise>-->
<!-- AND o.BL_PICKUP = 1-->
<!-- </otherwise>-->
</choose>
AND o.ORDER_STATUS IN (3, 4, 5, 6, 7, 8, 11) AND o.ORDER_STATUS IN (3, 4, 5, 6, 7, 8, 11)
<if test="customerCodes != null and customerCodes.size() > 0"> <if test="customerCodes != null and customerCodes.size() > 0">
AND o.CUSTOMER_CODE IN AND o.CUSTOMER_CODE IN
@@ -191,14 +191,8 @@ const orderStatusMap = {
const orderStatusOptions = Object.keys(orderStatusMap).map(k => ({ label: orderStatusMap[k], value: Number(k) })) const orderStatusOptions = Object.keys(orderStatusMap).map(k => ({ label: orderStatusMap[k], value: Number(k) }))
const blPickupOptions = [
{ label: '已收货', value: 1 },
{ label: '未收货', value: 0 }
]
const defaultParams = { const defaultParams = {
orderStatuses: [3, 4, 5, 6, 7, 8, 11], orderStatuses: [3, 4, 5, 6, 7, 8, 11]
blPickup: 1
} }
const searchColumns = [ const searchColumns = [
@@ -248,14 +242,7 @@ const searchColumns = [
collapseTags: true, collapseTags: true,
collapseTagsTooltip: true collapseTagsTooltip: true
} }
}, }
{
label: '收货状态',
prop: 'blPickup',
component: 'select',
options: blPickupOptions,
placeholder: '请选择'
},
] ]
const columns = [ const columns = [
@@ -402,7 +389,6 @@ function queryList(params) {
const customers = splitLines(src.customerKeywords) const customers = splitLines(src.customerKeywords)
const fillQuery = { orderIdentifiers: identifiers } const fillQuery = { orderIdentifiers: identifiers }
if (customers.length) fillQuery.customerKeywords = customers if (customers.length) fillQuery.customerKeywords = customers
fillQuery.blPickup = src.blPickup === 0 || src.blPickup === 1 ? src.blPickup : 1
fillQuery.pageNum = params.pageNum fillQuery.pageNum = params.pageNum
fillQuery.pageSize = params.pageSize fillQuery.pageSize = params.pageSize
return listOrderSourceByTransferNos(fillQuery) return listOrderSourceByTransferNos(fillQuery)
@@ -435,7 +421,7 @@ function openOrderCompare() {
return return
} }
proxy.$modal.confirm( proxy.$modal.confirm(
'将按当前客户、提货时间、订单状态和收货状态筛选,异步分页比对上游转单号是否已落库,确认继续?', '将按当前客户、提货时间和订单状态筛选,异步分页比对上游转单号是否已落库,确认继续?',
'二次确认' '二次确认'
).then(() => { ).then(() => {
// 比对只按客户+时间;不带单号框内容(回填后可能有数千转单号,带上会把比对拖死) // 比对只按客户+时间;不带单号框内容(回填后可能有数千转单号,带上会把比对拖死)