From 9a30368b7468fe8460b42e23e564c7a0f765fd47 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: Tue, 18 Feb 2025 11:33:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=EF=BC=9A=E5=8D=95=E4=BB=B7?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E5=90=8E=EF=BC=8C=E5=86=99=E5=9B=9E=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/yh/price.js | 4 +- src/components/Business/Price/PriceSelect.vue | 16 ++++++-- src/components/DictTag/index.vue | 5 ++- src/utils/constants.js | 6 ++- .../yh/price/components/VerifyPriceDialog.vue | 38 ++++++++++++------- src/views/yh/price/index.vue | 20 +++++----- .../edit-v2/components/ReportProductList.vue | 9 +++-- src/views/yh/report/view/view.vue | 4 +- src/views/yh/reportProd/index.vue | 8 +++- 9 files changed, 73 insertions(+), 37 deletions(-) diff --git a/src/api/yh/price.js b/src/api/yh/price.js index 23a5aab..1475b2e 100644 --- a/src/api/yh/price.js +++ b/src/api/yh/price.js @@ -81,12 +81,12 @@ export function cancelPrice(priceId) { } // 审核单价 -export function verifyPrice(priceIds, pass) { +export function verifyPrice(priceList, pass) { return request({ url: `/yh/price/verify`, method: 'put', data: { - priceIds, + priceList, pass } }) diff --git a/src/components/Business/Price/PriceSelect.vue b/src/components/Business/Price/PriceSelect.vue index a7720cb..2ec766b 100644 --- a/src/components/Business/Price/PriceSelect.vue +++ b/src/components/Business/Price/PriceSelect.vue @@ -16,7 +16,10 @@ :label="label(item)" :value="item.priceId" > - {{ item.name | dv}} + + {{ item.name | dv}} + + {{ item.code | dv}} @@ -30,6 +33,7 @@ import { listPrice } from '@/api/yh/price' export default { name: 'PriceSelect', + dicts: ['price_status'], props: { value: { type: String, @@ -43,6 +47,10 @@ export default { type: String, default: null, }, + status: { + type: String, + default: null, + }, query: { type: Object, default: () => ({}), @@ -81,13 +89,15 @@ export default { value(nv, ov ) { let obj = this.options.find(item => item.priceId == nv); if (obj == null) { - this.options.push({priceId: nv, name: this.name, code: this.code}); + this.options.push({priceId: nv, name: this.name, code: this.code, status: this.status}); + this.total ++; } } }, created() { if (this.value != null) { - this.options = [{priceId: this.value, name: this.name, code: this.code}] + this.options = [{priceId: this.value, name: this.name, code: this.code, status: this.status}] + this.total = 1; } }, methods: { diff --git a/src/components/DictTag/index.vue b/src/components/DictTag/index.vue index 15ea8bc..c4599a4 100644 --- a/src/components/DictTag/index.vue +++ b/src/components/DictTag/index.vue @@ -1,5 +1,5 @@