From 4d3f767e162b2eeca24f26253cbf40ed40309aa9 Mon Sep 17 00:00:00 2001 From: HongxuanG <1359774872@qq.com> Date: Sun, 8 Nov 2026 22:38:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E6=89=8B=E5=8A=A8?= =?UTF-8?q?=E8=BF=9B=E4=BB=93=E6=89=AB=E7=A0=81=E6=B5=81=E7=A8=8B=E5=B9=B6?= =?UTF-8?q?=E5=8D=87=E8=87=B31.1.22?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/storeFabricBusinessOut.js | 22 +- .../storefabric/FabricOutScanBar.vue | 26 +- src/components/storefabric/FineCodePopup.vue | 52 +++- src/manifest.json | 4 +- .../storefabric/storeFabricBusinessOutAdd.vue | 1 - .../storeFabricBusinessOutEdit.vue | 1 - src/pages/storefabric/storeFabricManualIn.vue | 249 ++++++++++-------- 7 files changed, 216 insertions(+), 139 deletions(-) diff --git a/src/common/storeFabricBusinessOut.js b/src/common/storeFabricBusinessOut.js index a199283..1135e21 100644 --- a/src/common/storeFabricBusinessOut.js +++ b/src/common/storeFabricBusinessOut.js @@ -46,12 +46,12 @@ export const FABRIC_INFO_FIELDS = [ /** 细码表格列(不含操作列) */ export const FINE_CODE_TABLE_COLUMNS = [ - { label: '序号', key: 'seq', width: 70 }, - { label: '卷号', key: 'roll_no', width: 90 }, - { label: '匹数', key: 'roll', width: 90 }, - { label: '数量(重量)', key: 'weight', width: 120 }, - { label: '条码', key: 'bar_code', width: 260 }, - { label: '仓位', key: 'position', width: 110 }, + { label: '序号', key: 'seq', width: 90 }, + { label: '卷号', key: 'roll_no', width: 110 }, + { label: '匹数', key: 'roll', width: 100 }, + { label: '数量(重量)', key: 'weight', width: 160 }, + { label: '条码', key: 'bar_code', width: 280 }, + { label: '仓位', key: 'position', width: 140 }, ]; /** 审核状态变更操作配置(apiKey 对应 gfmOtherDeliveryOrder 下的方法名) */ @@ -490,7 +490,8 @@ export function orderToFormFields(order) { export function getFineCodeTableColumns(readonly) { const cols = [...FINE_CODE_TABLE_COLUMNS]; - if (!readonly) cols.push({ label: '操作', key: 'action', width: 90 }); + // 操作列放前面,避免 PDA 小屏横向滚动后才看到删除 + if (!readonly) cols.splice(1, 0, { label: '操作', key: 'action', width: 160 }); return cols; } @@ -516,7 +517,7 @@ export function getFineCodeTableWidth(columns) { * @param {Vue} vm 页面实例,需有 $u.api 与 showError * @param {{ orderId: number, action: string, onSuccess?: Function }} options */ -export function confirmOrderStatusAction(vm, { orderId, action, onSuccess }) { +export function confirmOrderStatusAction(vm, { orderId, action, onSuccess, onCancel }) { const cfg = STATUS_ACTION_CONFIG[action]; if (!cfg || !orderId) return; const api = vm.$u.api.gfmOtherDeliveryOrder; @@ -526,7 +527,10 @@ export function confirmOrderStatusAction(vm, { orderId, action, onSuccess }) { title: '提示', content: cfg.msg, success: (res) => { - if (!res.confirm) return; + if (!res.confirm) { + if (typeof onCancel === 'function') onCancel(); + return; + } uni.showLoading({ title: '处理中...' }); requestFn(buildStatusParam(orderId, cfg.status)) .then(() => { diff --git a/src/components/storefabric/FabricOutScanBar.vue b/src/components/storefabric/FabricOutScanBar.vue index 54f9264..e681f77 100644 --- a/src/components/storefabric/FabricOutScanBar.vue +++ b/src/components/storefabric/FabricOutScanBar.vue @@ -10,14 +10,12 @@ @input="$emit('input', $event.detail.value)" @confirm="$emit('scan')" /> - + + +