Merge branch 'test'
This commit is contained in:
-4
@@ -7,7 +7,6 @@ import java.util.List;
|
|||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
// 提成功能暂停使用:import org.springframework.transaction.annotation.Transactional;
|
// 提成功能暂停使用:import org.springframework.transaction.annotation.Transactional;
|
||||||
import com.bms.common.annotation.DataScope;
|
|
||||||
import com.bms.common.exception.ServiceException;
|
import com.bms.common.exception.ServiceException;
|
||||||
import com.bms.common.utils.SecurityUtils;
|
import com.bms.common.utils.SecurityUtils;
|
||||||
// 提成功能暂停使用:import com.bms.price.domain.PrcProfitCommissionRate;
|
// 提成功能暂停使用:import com.bms.price.domain.PrcProfitCommissionRate;
|
||||||
@@ -35,7 +34,6 @@ public class PrcProfitReportServiceImpl implements IPrcProfitReportService
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@DataScope(deptAlias = "su", deptField = "dept_id", userAlias = "su", userField = "user_id", permission = "report:profit:list")
|
|
||||||
public List<PrcProfitReportOrderRow> selectOrderRows(PrcProfitReportQuery query)
|
public List<PrcProfitReportOrderRow> selectOrderRows(PrcProfitReportQuery query)
|
||||||
{
|
{
|
||||||
normalizeMultiValueFilters(query);
|
normalizeMultiValueFilters(query);
|
||||||
@@ -43,7 +41,6 @@ public class PrcProfitReportServiceImpl implements IPrcProfitReportService
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@DataScope(deptAlias = "su", deptField = "dept_id", userAlias = "su", userField = "user_id", permission = "report:profit:list")
|
|
||||||
public List<PrcProfitReportProductRow> selectProductRows(PrcProfitReportQuery query)
|
public List<PrcProfitReportProductRow> selectProductRows(PrcProfitReportQuery query)
|
||||||
{
|
{
|
||||||
normalizeMultiValueFilters(query);
|
normalizeMultiValueFilters(query);
|
||||||
@@ -51,7 +48,6 @@ public class PrcProfitReportServiceImpl implements IPrcProfitReportService
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@DataScope(deptAlias = "su", deptField = "dept_id", userAlias = "su", userField = "user_id", permission = "report:profit:list")
|
|
||||||
public List<PrcProfitReportSummary> selectSummary(PrcProfitReportQuery query)
|
public List<PrcProfitReportSummary> selectSummary(PrcProfitReportQuery query)
|
||||||
{
|
{
|
||||||
normalizeMultiValueFilters(query);
|
normalizeMultiValueFilters(query);
|
||||||
|
|||||||
@@ -616,8 +616,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</if>
|
</if>
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
<!-- 仅指定上游订单状态可参与应收账单生成,预览、合计与实际生成共用。 -->
|
||||||
|
<sql id="arBillSourceOrderStatusCondition">
|
||||||
|
and p.order_status in (3, 4, 5, 6, 7, 8, 11)
|
||||||
|
</sql>
|
||||||
|
|
||||||
<!-- 有未出账费用的订单,或尚未纳入有效账单的无费用计费失败订单。 -->
|
<!-- 有未出账费用的订单,或尚未纳入有效账单的无费用计费失败订单。 -->
|
||||||
<sql id="arBillEligibleSourceCondition">
|
<sql id="arBillEligibleSourceCondition">
|
||||||
|
<include refid="arBillSourceOrderStatusCondition"/>
|
||||||
and (
|
and (
|
||||||
exists (
|
exists (
|
||||||
select 1 from prc_income_bill_fee f
|
select 1 from prc_income_bill_fee f
|
||||||
@@ -704,6 +710,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
inner join prc_income_bill_fee f on f.bill_id = p.bill_id
|
inner join prc_income_bill_fee f on f.bill_id = p.bill_id
|
||||||
and f.ar_bill_status = #{feeArBillStatus}
|
and f.ar_bill_status = #{feeArBillStatus}
|
||||||
where p.customer_id = #{customerId}
|
where p.customer_id = #{customerId}
|
||||||
|
<include refid="arBillSourceOrderStatusCondition"/>
|
||||||
<if test="customerCode != null and customerCode != ''">
|
<if test="customerCode != null and customerCode != ''">
|
||||||
and p.customer_code like concat('%', #{customerCode}, '%')
|
and p.customer_code like concat('%', #{customerCode}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
@@ -203,23 +203,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
and (i.product_amount is null or i.redline_amount is null or i.sales_amount is null)
|
and (i.product_amount is null or i.redline_amount is null or i.sales_amount is null)
|
||||||
</when>
|
</when>
|
||||||
</choose>
|
</choose>
|
||||||
<if test="params != null and params.dataScope != null and params.dataScope != ''">
|
|
||||||
and exists (
|
|
||||||
select 1
|
|
||||||
from sys_user su
|
|
||||||
where su.del_flag = '0'
|
|
||||||
and (
|
|
||||||
(p.belong_saler_code is not null and p.belong_saler_code != ''
|
|
||||||
and (su.user_name = p.belong_saler_code collate utf8mb4_general_ci
|
|
||||||
or su.user_id = p.belong_saler_code + 0))
|
|
||||||
or
|
|
||||||
(p.settlement_man_code is not null and p.settlement_man_code != ''
|
|
||||||
and (su.user_name = p.settlement_man_code collate utf8mb4_general_ci
|
|
||||||
or su.user_id = p.settlement_man_code + 0))
|
|
||||||
)
|
|
||||||
${params.dataScope}
|
|
||||||
)
|
|
||||||
</if>
|
|
||||||
</where>
|
</where>
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|||||||
@@ -75,10 +75,11 @@ const getLogoTextColor = computed(() => {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
& .sidebar-logo {
|
& .sidebar-logo {
|
||||||
width: 32px;
|
width: 96px;
|
||||||
height: 32px;
|
height: 24px;
|
||||||
|
object-fit: contain;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin-right: 12px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
& .sidebar-title {
|
& .sidebar-title {
|
||||||
@@ -95,8 +96,10 @@ const getLogoTextColor = computed(() => {
|
|||||||
|
|
||||||
&.collapse {
|
&.collapse {
|
||||||
.sidebar-logo {
|
.sidebar-logo {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
margin-right: 0px;
|
margin-right: 0px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ const service = axios.create({
|
|||||||
// axios中请求配置有baseURL选项,表示请求URL公共部分
|
// axios中请求配置有baseURL选项,表示请求URL公共部分
|
||||||
baseURL: import.meta.env.VITE_APP_BASE_API,
|
baseURL: import.meta.env.VITE_APP_BASE_API,
|
||||||
// 超时
|
// 超时
|
||||||
timeout: 10000
|
timeout: 20000
|
||||||
})
|
})
|
||||||
|
|
||||||
// request拦截器
|
// request拦截器
|
||||||
|
|||||||
@@ -27,14 +27,14 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :xs="24" :sm="12" :lg="8">
|
<el-col :xs="24" :sm="12" :lg="8">
|
||||||
<el-form-item label="订单号" class="filter-item">
|
<el-form-item label="客户名称" class="filter-item">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="query.orderNo"
|
v-model="query.customerName"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:rows="3"
|
:rows="3"
|
||||||
resize="vertical"
|
resize="vertical"
|
||||||
clearable
|
clearable
|
||||||
placeholder="输入订单号,多个值请换行"
|
placeholder="输入客户名称,多个值请换行"
|
||||||
class="filter-control multi-line-filter"
|
class="filter-control multi-line-filter"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -53,14 +53,14 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :xs="24" :sm="12" :lg="8">
|
<el-col :xs="24" :sm="12" :lg="8">
|
||||||
<el-form-item label="客户名称" class="filter-item">
|
<el-form-item label="订单号" class="filter-item">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="query.customerName"
|
v-model="query.orderNo"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:rows="3"
|
:rows="3"
|
||||||
resize="vertical"
|
resize="vertical"
|
||||||
clearable
|
clearable
|
||||||
placeholder="输入客户名称,多个值请换行"
|
placeholder="输入订单号,多个值请换行"
|
||||||
class="filter-control multi-line-filter"
|
class="filter-control multi-line-filter"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|||||||
Reference in New Issue
Block a user