From 98a517e02b7f36e5b85f0ab2bd3fbbf8c8123055 Mon Sep 17 00:00:00 2001
From: "DESKTOP-369JRHT\\12997" <9>
Date: Thu, 26 Oct 2023 18:01:14 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BE=BF=E5=88=A9=E5=BA=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/api/convenienceStore/purchase.js | 43 ++-
.../convenienceStore/purchase/details.vue | 271 +++++++++++++-----
.../views/convenienceStore/purchase/index.vue | 23 +-
.../MtPurchaseDetailsController.java | 40 ++-
.../convenienceSore/entity/MtPurchase.java | 131 +--------
.../entity/MtPurchaseDetails.java | 112 +-------
.../mapper/MtPurchaseDetailsMapper.java | 5 +
.../mapper/xml/MtPurchaseDetailsMapper.xml | 108 +++++--
.../mapper/xml/MtPurchaseMapper.xml | 32 +--
.../service/MtPurchaseDetailsService.java | 8 +
.../impl/MtPurchaseDetailsServiceImpl.java | 39 +++
.../vo/MtPurchaseDetailsVO.java | 13 +
12 files changed, 460 insertions(+), 365 deletions(-)
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/convenienceSore/vo/MtPurchaseDetailsVO.java
diff --git a/fuintAdmin/src/api/convenienceStore/purchase.js b/fuintAdmin/src/api/convenienceStore/purchase.js
index 3f109425d..b8421e9fb 100644
--- a/fuintAdmin/src/api/convenienceStore/purchase.js
+++ b/fuintAdmin/src/api/convenienceStore/purchase.js
@@ -4,21 +4,48 @@ import request from '@/utils/request'
/**
* 订单
*/
-export function getPurchasePageApi(query) {
+// 新增
+export function addPurchaseApi(data) {
return request({
- url: '/business/convenience/supplier/list',
+ url: '/business/convenience/mtPurchase',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改
+export function editPurchaseApi(data) {
+ return request({
+ url: '/business/convenience/mtPurchase',
+ method: 'put',
+ data: data
+ })
+}
+
+
+/**
+ * 订单详情
+ */
+
+export function getPurchaseDetailsPageApi(query) {
+ return request({
+ url: '/business/convenience/mtPurchaseDetails/getListByPage',
method: 'get',
params: query
})
}
-/**
- * 订单详情
- */
-// 新增供应商
-export function addSupplier(data) {
+export function delDetailsApi(query) {
return request({
- url: '/business/convenience/supplier',
+ url: '/business/convenience/mtPurchaseDetails',
+ method: 'delete',
+ params: query
+ })
+}
+
+export function batchProcessingApi(data) {
+ return request({
+ url: '/business/convenience/mtPurchaseDetails/batchProcessing',
method: 'post',
data: data
})
diff --git a/fuintAdmin/src/views/convenienceStore/purchase/details.vue b/fuintAdmin/src/views/convenienceStore/purchase/details.vue
index 73b984886..e76e63a59 100644
--- a/fuintAdmin/src/views/convenienceStore/purchase/details.vue
+++ b/fuintAdmin/src/views/convenienceStore/purchase/details.vue
@@ -68,24 +68,38 @@
v-loading="loading"
:data="detailsList"
:default-sort="defaultSort">
-
-
-
-
-
-
+
+
+
-
+ {{ getName(cvsGoodList, scope.row.cvsGoodId) }}
-
+
+
-
+ {{ getName(supplierList, scope.row.supplierId) }}
-
+
-
+ {{ scope.row.unit == null?"-":scope.row.unit}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -119,27 +133,25 @@
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
@@ -163,13 +175,24 @@
type="selection"
width="55">
-
-
-
-
-
-
+
+
+
+
+
+ {{ getName(cvsGoodList, scope.row.cvsGoodId) }}
+
+
+
+
+
+ {{ getName(supplierList, scope.row.supplierId) }}
+
+
+
+
+
-
-
-