From 5f5eac6d840afcc63f58fff758783d7aa5f66df8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A3=B7=E5=8F=B6?= <14103883+leaf-phos@user.noreply.gitee.com> Date: Thu, 21 Nov 2024 18:05:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Business/Price/PriceDrawer.vue | 1 + src/utils/constants.js | 2 +- src/views/yh/report/edit/components/ReportProductEdit.vue | 6 ++++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/Business/Price/PriceDrawer.vue b/src/components/Business/Price/PriceDrawer.vue index 7695779..8aa7957 100644 --- a/src/components/Business/Price/PriceDrawer.vue +++ b/src/components/Business/Price/PriceDrawer.vue @@ -14,6 +14,7 @@ :multiple="multiple" :init-select="initSelect" v-on="$listeners" + :query="query" /> diff --git a/src/utils/constants.js b/src/utils/constants.js index f511a95..4f0269e 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -31,7 +31,7 @@ export const PriceStatus = { // 允许启用 canEnable(status) { return [this.PASS].includes(status); - } + }, } // 工资模式 diff --git a/src/views/yh/report/edit/components/ReportProductEdit.vue b/src/views/yh/report/edit/components/ReportProductEdit.vue index f3a14dd..25a56b8 100644 --- a/src/views/yh/report/edit/components/ReportProductEdit.vue +++ b/src/views/yh/report/edit/components/ReportProductEdit.vue @@ -155,7 +155,7 @@ import PriceInput from "@/components/Business/Price/PriceInput.vue"; import {isEmpty, notNullDecimal} from "@/utils"; import FormCol from "@/components/FormCol/index.vue"; import UserProductBatchDialog from "@/views/yh/report/edit/components/UserProductBatchDialog.vue"; -import {IncomeMode} from "@/utils/constants"; +import {IncomeMode, PriceStatus} from "@/utils/constants"; import Decimal from "decimal.js"; import ReportProductOrderListEdit from "@/views/yh/report/edit/components/ReportProductOrderListEdit.vue"; import ReportProductUserListEdit from "@/views/yh/report/edit/components/ReportProductUserListEdit.vue"; @@ -225,7 +225,9 @@ export default { }, priceQuery() { return { - deptId: this.form.deptId + deptId: this.form.deptId, + status: PriceStatus.PASS, // 已审核 + disabled: false, } } },