feat: 供应商系统 2026-11 阶段成果(分公司模板/真还原预览、商品远程搜索、主系统联调、加工幂等修复)
- 分公司类型模板:超管配置隐藏路由/菜单 + 中文文案覆盖,仅对挂类型的分公司生效(后端 service/routes、前端 Provider/守卫/配置页) - 超管模板 iframe 真还原预览:28 个业务页注册、白名单点选编辑、空/示例数据 fixture、白名单漂移检测工具 - 商品/SKU 下拉远程搜索:服务端关键词搜索 + 前端 useRemoteOptionSearch/SearchableSelect 接入(订单/采购/商品等页) - 主系统联调:子系统主动解绑主系统授权(幂等重试/本地兜底)、追加修改 price_amend 视图代理与 amend-price 转发 - 修复:仓内加工重复建单幂等(已完成需求单 guard、order 任务一商品一单 guard) - 修复:出入库记录只取前 100 条 → 服务端分页 + 真实总数 - 其它:库存/订单若干修复、分公司管理响应式布局、i18n 文案、设计文档与回归测试
This commit is contained in:
@@ -257,6 +257,21 @@ function decoratePrepRow(row, allowZeroCost = false) {
|
||||
const { unit, unitOptions, unitIndex } = buildUnitPicker(supplyUnit, getUnitDictionaryLabels());
|
||||
const orderQty = row.order_qty != null && row.order_qty !== '' ? row.order_qty : row.prepare_qty;
|
||||
const orderUnit = String(row.order_unit || supplyUnit).trim() || supplyUnit;
|
||||
// 追加改价页的关键参照:客户下单量 / 实收量(prepare_qty 是备货计划量,不是实收)
|
||||
const qtyUnitText = (qty, qtyUnit) => {
|
||||
if (qty === null || qty === undefined || qty === '') return '';
|
||||
const text = String(qty);
|
||||
const u = String(qtyUnit || '').trim();
|
||||
return u ? `${text} ${u}` : text;
|
||||
};
|
||||
const customerQtyText = qtyUnitText(
|
||||
row.order_qty != null && row.order_qty !== '' ? row.order_qty : row.demand_qty,
|
||||
row.order_unit || row.demand_unit || unit
|
||||
);
|
||||
const receivedQtyText = qtyUnitText(
|
||||
row.received_qty != null && row.received_qty !== '' ? row.received_qty : row.actual_qty,
|
||||
row.received_unit || unit
|
||||
);
|
||||
const prepQtyNum = Number(row.prepare_qty);
|
||||
const priceNum = Number(row.purchase_price);
|
||||
const hasTotal =
|
||||
@@ -289,6 +304,8 @@ function decoratePrepRow(row, allowZeroCost = false) {
|
||||
amendPending: row.amend_request && Number(row.amend_request.status) === 10,
|
||||
amendRejected: row.amend_request && Number(row.amend_request.status) === 30,
|
||||
amendRemark: row.amend_request ? row.amend_request.review_remark || '' : '',
|
||||
customerQtyText,
|
||||
receivedQtyText,
|
||||
orderItemRemark: String(row.order_item_remark || '').trim(),
|
||||
requires_quality_report: Boolean(row.requires_quality_report),
|
||||
report_covered: Boolean(row.report_covered),
|
||||
|
||||
@@ -154,6 +154,7 @@
|
||||
<view class="amend-row-name">
|
||||
<text class="task-title">{{item.item_name || item.display_name || '商品'}}</text>
|
||||
<text wx:if="{{item.orderItemRemark}}" class="task-remark">{{item.orderItemRemark}}</text>
|
||||
<text wx:if="{{item.customerQtyText || item.receivedQtyText}}" class="amend-qty-ref">客户 {{item.customerQtyText || '—'}} · 实收 {{item.receivedQtyText || '—'}}</text>
|
||||
</view>
|
||||
<picker
|
||||
mode="selector"
|
||||
|
||||
@@ -299,6 +299,13 @@
|
||||
white-space: normal;
|
||||
word-break: break-word;
|
||||
}
|
||||
.amend-qty-ref {
|
||||
display: block;
|
||||
margin-top: 4rpx;
|
||||
font-size: 20rpx;
|
||||
line-height: 1.3;
|
||||
color: #8a8f99;
|
||||
}
|
||||
.amend-row .unit-picker--row {
|
||||
height: 40rpx;
|
||||
padding: 0 8rpx;
|
||||
|
||||
Reference in New Issue
Block a user