Merge branch 'dev' of https://gitee.com/justop/hxops into dev

This commit is contained in:
sophie committed 2026-10-07 17:43:37 +08:00
commit c5b7cc662b
5 files changed
+29 -20

No files matched your search

@@ -178,10 +178,12 @@ interface EditableLine { line: OrderDeliveryLine; batches: EditableBatch[] }
const modalVisible = ref(false);
const modalTitle = ref('');
const modalLines = ref<EditableLine[]>([]);
// 弹窗模式:single=单行回复/修改回复(不显示快速统一交期区),batch=联合回复交期(保留)。
const modalMode = ref<'single' | 'batch'>('single');
const quickDate = ref('');
const saving = ref(false);
function openReplyModal(lines: OrderDeliveryLine[], title: string) {
function openReplyModal(lines: OrderDeliveryLine[], title: string, mode: 'single' | 'batch') {
modalLines.value = lines.map((line) => ({
line,
batches: line.batches.map((batch) => ({
@@ -196,17 +198,18 @@ function openReplyModal(lines: OrderDeliveryLine[], title: string) {
});
modalTitle.value = title;
quickDate.value = '';
modalMode.value = mode;
modalVisible.value = true;
}
function openSingleReply(line: OrderDeliveryLine) {
openReplyModal([line], t('workspace.orderDeliveryReply.modalTitleSingle', { order: line.order_no, item: line.line_no }));
openReplyModal([line], t('workspace.orderDeliveryReply.modalTitleSingle', { order: line.order_no, item: line.line_no }), 'single');
}
function openBatchReply() {
const lines = selectedLines.value.filter((line) => !line.locked);
if (!lines.length) return;
openReplyModal(lines, t('workspace.orderDeliveryReply.modalTitleBatch', { count: lines.length }));
openReplyModal(lines, t('workspace.orderDeliveryReply.modalTitleBatch', { count: lines.length }), 'batch');
}
function applyQuickDate() {
@@ -642,8 +645,8 @@ onMounted(async () => {
<button type="button" class="text-muted" @click="modalVisible = false">×</button>
</div>
<div class="flex-1 overflow-auto px-5 py-4">
<!-- 快速统一交期 -->
<div class="mb-4 flex flex-wrap items-end gap-3 rounded-xl border border-default bg-blue-50/40 px-4 py-3">
<!-- 快速统一交期:仅联合回复弹窗显示;单行回复/修改回复弹窗已取消该区(2026-10-07),直接逐批次填写 -->
<div v-if="modalMode === 'batch'" class="mb-4 flex flex-wrap items-end gap-3 rounded-xl border border-default bg-blue-50/40 px-4 py-3">
<label class="flex flex-col gap-1 text-muted">
{{ t('workspace.orderDeliveryReply.quickDate') }}
<input v-model="quickDate" type="date" class="h-9 rounded-lg border border-default px-3 text-primary" />