From 482e743ea1b7427d6cf32232c46bbca8920bce89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com> Date: Tue, 18 Mar 2025 14:54:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E9=A2=84=E5=94=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operation-management/commodity/index.vue | 9 +++++ .../commodity/popup/add-or-update.vue | 34 +++++++++++++++++-- 2 files changed, 41 insertions(+), 2 deletions(-) diff --git a/src/views/modules/operation-management/commodity/index.vue b/src/views/modules/operation-management/commodity/index.vue index b29dbce..226847a 100644 --- a/src/views/modules/operation-management/commodity/index.vue +++ b/src/views/modules/operation-management/commodity/index.vue @@ -345,6 +345,15 @@ export default { align: "center", field: "stockNum", }, + { + title: "是否为预售商品", + align: "center", + field: "isAdvanceSell", + type: "jsx", + render: ({ row }) => { + return {row.isAdvanceSell == 1 ? "是" : "否"}; + }, + }, { title: "状态", // fixed: "right", diff --git a/src/views/modules/operation-management/commodity/popup/add-or-update.vue b/src/views/modules/operation-management/commodity/popup/add-or-update.vue index 95d200b..daffc77 100644 --- a/src/views/modules/operation-management/commodity/popup/add-or-update.vue +++ b/src/views/modules/operation-management/commodity/popup/add-or-update.vue @@ -3,7 +3,7 @@ { + return ( + + {[ + { label: "是", value: "1" }, + { label: "否", value: "0" }, + ].map((item) => { + return ( + + ); + })} + + ); + }, + }, ]; break; case "销售信息":