From eb113f4b7dba26416be8cd230fada3eb923d3ce5 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: Mon, 13 Jan 2025 17:21:07 +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/api/yh/price.js | 9 + .../Business/Price/PriceNewDrawer.vue | 504 ++++++++++++++++++ .../Business/User/UserNewDrawer.vue | 338 ++++++++++++ .../edit/components/ReportProductEdit.vue | 13 +- .../edit/components/ReportProductRowEdit.vue | 9 +- .../components/ReportProductUserListEdit.vue | 12 +- .../components/UserProductBatchDialog.vue | 19 +- 7 files changed, 882 insertions(+), 22 deletions(-) create mode 100644 src/components/Business/Price/PriceNewDrawer.vue create mode 100644 src/components/Business/User/UserNewDrawer.vue diff --git a/src/api/yh/price.js b/src/api/yh/price.js index 5706d3b..23a5aab 100644 --- a/src/api/yh/price.js +++ b/src/api/yh/price.js @@ -9,6 +9,15 @@ export function listPrice(query) { }) } +// 查询查询条件 +export function listPriceSearchCondition(query) { + return request({ + url: '/yh/price/searchCondition', + method: 'get', + params: query + }) +} + // 查询单价列表ByIds export function listPriceByIds(priceIds) { return request({ diff --git a/src/components/Business/Price/PriceNewDrawer.vue b/src/components/Business/Price/PriceNewDrawer.vue new file mode 100644 index 0000000..c08b77c --- /dev/null +++ b/src/components/Business/Price/PriceNewDrawer.vue @@ -0,0 +1,504 @@ + + + + + \ No newline at end of file diff --git a/src/components/Business/User/UserNewDrawer.vue b/src/components/Business/User/UserNewDrawer.vue new file mode 100644 index 0000000..d06da9e --- /dev/null +++ b/src/components/Business/User/UserNewDrawer.vue @@ -0,0 +1,338 @@ + + + + + \ No newline at end of file diff --git a/src/views/yh/report/edit/components/ReportProductEdit.vue b/src/views/yh/report/edit/components/ReportProductEdit.vue index 8ec04d5..5fde7ab 100644 --- a/src/views/yh/report/edit/components/ReportProductEdit.vue +++ b/src/views/yh/report/edit/components/ReportProductEdit.vue @@ -107,11 +107,18 @@ - --> + + 工序信息 - - + + {{row.priceName | dv}} {{row.priceCode | dv}} @@ -19,10 +19,10 @@ {{item.label}} - + {{row.pricePrice | dv}} 元 - + {{ row.totalAmount | dv }} 元 @@ -52,6 +52,7 @@ :rules="rules.orderProdList" :report-prod="row" /> + diff --git a/src/views/yh/report/edit/components/ReportProductUserListEdit.vue b/src/views/yh/report/edit/components/ReportProductUserListEdit.vue index 6ef91f0..e4a9aff 100644 --- a/src/views/yh/report/edit/components/ReportProductUserListEdit.vue +++ b/src/views/yh/report/edit/components/ReportProductUserListEdit.vue @@ -4,7 +4,7 @@ @@ -42,12 +42,11 @@ - - @@ -62,10 +61,11 @@ import UserInput from "@/components/Business/User/UserInput.vue"; import {calcMulDecimal} from "@/utils/money"; import UserDrawer from "@/components/Business/User/UserDrawer.vue"; import {listUserWithShift} from "@/api/system/user"; +import UserNewDrawer from "@/components/Business/User/UserNewDrawer.vue"; export default { name: "ReportProductUserListEdit", - components: {UserDrawer, UserInput, UserDialog, PriceDialog, FormCol}, + components: {UserDrawer, UserInput, UserDialog, PriceDialog, FormCol, UserNewDrawer}, props: { value: { type: Array, diff --git a/src/views/yh/report/edit/components/UserProductBatchDialog.vue b/src/views/yh/report/edit/components/UserProductBatchDialog.vue index 05bb09c..278bc94 100644 --- a/src/views/yh/report/edit/components/UserProductBatchDialog.vue +++ b/src/views/yh/report/edit/components/UserProductBatchDialog.vue @@ -32,7 +32,8 @@ @@ -47,10 +48,10 @@ @@ -70,12 +71,12 @@ 确 定 - @@ -85,12 +86,12 @@ import FormCol from "@/components/FormCol/index.vue"; import UserInput from "@/components/Business/User/UserInput.vue"; import {IncomeMode} from "@/utils/constants"; -import UserDrawer from "@/components/Business/User/UserDrawer.vue"; +import UserNewDrawer from "@/components/Business/User/UserNewDrawer.vue"; import {listUserWithShift} from "@/api/system/user"; export default { name: "UserProductBatchDialog", - components: {UserDrawer, UserInput, FormCol}, + components: {UserNewDrawer, UserInput, FormCol}, props: { show: { type: Boolean,