From c4d7963465e11bfe25fc713080a572f7fb197995 Mon Sep 17 00:00:00 2001 From: xd <844539747@qq.com> Date: Wed, 3 Jul 2024 09:23:03 +0800 Subject: [PATCH] '123' --- .../mapper/redBook/OARedBookMapper.xml | 9 +- ruoyi-ui/src/router/index.js | 13 ++ ruoyi-ui/src/views/quot/quot/index.vue | 1 + ruoyi-ui/src/views/redBook/productSelect.vue | 138 +++++++++++------- ruoyi-ui/src/views/redBook/quots.vue | 11 +- 5 files changed, 115 insertions(+), 57 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/redBook/OARedBookMapper.xml b/ruoyi-system/src/main/resources/mapper/redBook/OARedBookMapper.xml index 34aea3f..513b1a5 100644 --- a/ruoyi-system/src/main/resources/mapper/redBook/OARedBookMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/redBook/OARedBookMapper.xml @@ -136,9 +136,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - insert into OAQuotProduct(quot_product_id, name_0, name_1, spec, voltage,stu,price,setPrice,count,allPrice,per,per2,quot_id,number) values + insert into OAQuotProduct(uid_0,quot_product_id, name_0, name_1, spec, voltage,stu,price,setPrice,count,allPrice,per,per2,quot_id,number) values - ( #{item.quot_product_id}, #{item.name_0}, #{item.name_1}, #{item.spec}, #{item.voltage}, #{item.stu},cast(#{item.price,jdbcType=DECIMAL} as decimal(18,2)),cast(#{item.setPrice,jdbcType=DECIMAL} as decimal(18,2)), cast(#{item.count,jdbcType=DECIMAL} as decimal(18,3)), cast(#{item.allPrice,jdbcType=DECIMAL} as decimal(18,2)),cast(#{item.per,jdbcType=DECIMAL} as decimal(18,2)),cast(#{item.per2,jdbcType=DECIMAL} as decimal(18,2)), #{item.quot_id}, #{item.index}) + (#{item.uid_0}, #{item.quot_product_id}, #{item.name_0}, #{item.name_1}, #{item.spec}, #{item.voltage}, #{item.stu},cast(#{item.price,jdbcType=DECIMAL} as decimal(18,2)),cast(#{item.setPrice,jdbcType=DECIMAL} as decimal(18,2)), cast(#{item.count,jdbcType=DECIMAL} as decimal(18,3)), cast(#{item.allPrice,jdbcType=DECIMAL} as decimal(18,2)),cast(#{item.per,jdbcType=DECIMAL} as decimal(18,2)),cast(#{item.per2,jdbcType=DECIMAL} as decimal(18,2)), #{item.quot_id}, #{item.index}) @@ -239,6 +239,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + @@ -257,9 +258,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select a.quot_id, a.quotCode, a.quotCustomer, a.quotProject, a.quotLxr, a.quotLxrdh, a.totalPrice,a.rbDateUid,a.quotApprovalStatus, - b.quot_product_id, b.name_0, b.name_1, + b.uid_0,b.quot_product_id, b.name_0, b.name_1, b.spec, b.voltage, b.stu, - b.per,b.per2,b.price,b.setPrice,b.count,b.allPrice,b.quot_id + isnull(b.per,1) per,isnull(b.per2,1) per2,b.price,b.setPrice,b.count,b.allPrice,b.quot_id from OAQuot a left join OAQuotProduct b on b.quot_id = a.quot_id where a.quot_id = #{quotId} order by b.number diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js index 2ab93ba..e019b3f 100644 --- a/ruoyi-ui/src/router/index.js +++ b/ruoyi-ui/src/router/index.js @@ -100,6 +100,19 @@ export const constantRoutes = [ } ] }, + { + path: '/oaQuote', + component: Layout, + hidden: true, + children: [ + { + path: 'oaQuoteEdit', + component: () => import('@/views/redBook/productSelect'), + name: 'productSelect', + meta: { title: '报价单转报价', activeMenu: '/oaQuote/oaQuoteEdit'} + } + ] + }, { path: '/hainanOrder/index', component: Layout, diff --git a/ruoyi-ui/src/views/quot/quot/index.vue b/ruoyi-ui/src/views/quot/quot/index.vue index 1502dd6..41e7048 100644 --- a/ruoyi-ui/src/views/quot/quot/index.vue +++ b/ruoyi-ui/src/views/quot/quot/index.vue @@ -187,6 +187,7 @@ +