移动系统liao
2025-08-07 3ad8babb3a5929eadc18d3518563b6355a800681
no message
5个文件已修改
125 ■■■■ 已修改文件
Admin.NET/FZCTB.NET.API.Application/User/CustomerService.cs 74 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Admin.NET/FZCTB.NET.API.Application/User/DTO/DTOS.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Admin.NET/FZCZTB.Net.CustomerSYSTem/Service/FBS_CusExtend/FBS_CusExtendService.cs 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Web/src/api/Customer/fBS_EnterpriseType.ts 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Web/src/api/base/index.ts 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Admin.NET/FZCTB.NET.API.Application/User/CustomerService.cs
@@ -310,7 +310,11 @@
            throw Oops.Oh("没有完成信息录入");
        }
        bool  isChangeData = false;
        if (tab.steps== CusExtendStep.Change)
        {
            isChangeData = true;
        }
@@ -339,14 +343,31 @@
            //重新审核?
            tab.steps = CusExtendStep.Change;
        }
        tab.EnterpriseType = InParam.EnterpriseType;
        if (tab.EnterpriseType != InParam.EnterpriseType)
        {
            tab.EnterpriseType = InParam.EnterpriseType;
            tab.steps = CusExtendStep.Change;
        }
        //联系电话
        tab.EnterprisePhone = InParam.EnterprisePhone;
        tab.EnterpriseEmail = InParam.EnterpriseEmail;
        if (tab.BankAccount != InParam.BankAccount)
        {
            //联系电话
            tab.BankAccount = InParam.BankAccount;
            tab.steps = CusExtendStep.Change;
        }
        if (tab.BankName != InParam.BankName)
        {
            tab.BankName = InParam.BankName;
            tab.steps = CusExtendStep.Change;
        }
        //银行是否需要修改
        tab.BankAccount = InParam.BankAccount;
        tab.BankName = InParam.BankName;
        //tab.BankAccount = InParam.BankAccount;
        //tab.BankName = InParam.BankName;
        // 经办人
        if (tab.OperatorIdCard != InParam.OperatorIdCard)
@@ -357,9 +378,50 @@
            tab.OperatorName = InParam.OperatorName;
            tab.OperatorPhone = InParam.OperatorPhone;
        }
        return await _fBS_CusExtendRep.UpdateAsync(tab);
      await   _fBS_CusExtendRep.AsTenant().BeginTranAsync();
        try
        {
            if((!isChangeData)&&tab.steps== CusExtendStep.Change)
            {
                //是更改,需要工改cer的值
             var exrolerep=     await   _fBS_CustomerExRoleRep.GetFirstAsync(x=>x.ExRoleId== rols.Id&&x.CustomerId==tab.CustomerId);
                if(exrolerep!=null)
                {
                    if (exrolerep.HasFlsh != false)
                    {
                        exrolerep.HasFlsh = false;
                        //改变状态
                        await _fBS_CustomerExRoleRep.UpdateAsync(exrolerep);
                    };
                }
                else
                {
                    await _fBS_CustomerExRoleRep.InsertAsync(new FBS_CoutomerExRole
                    {
                        CustomerId = tab.CustomerId,
                        ExRoleId = rols.Id,
                        HasFlsh = false
                    });
                }
            }
            await _fBS_CusExtendRep.UpdateAsync(tab);
            await  _fBS_CusExtendRep.AsTenant().CommitTranAsync();
        }
        catch (Exception)
        {
            await _fBS_CusExtendRep.AsTenant().RollbackTranAsync();
            throw;
        }
        return true;
    }
Admin.NET/FZCTB.NET.API.Application/User/DTO/DTOS.cs
@@ -5,6 +5,7 @@
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!
using FZCZTB.NET.MD.ConfigMd;
using FZCZTB.NET.MD.CutomerMd.Extend;
using SqlSugar;
using System;
using System.Collections.Generic;
@@ -196,5 +197,10 @@
    /// 企业银行账号
    /// </summary>
    public string BankAccount { get; set; }
    /// <summary>
    /// 状态
    /// </summary>
    public CusExtendStep? steps { set; get; }
}
  
Admin.NET/FZCZTB.Net.CustomerSYSTem/Service/FBS_CusExtend/FBS_CusExtendService.cs
@@ -226,9 +226,31 @@
    [ApiDescriptionSettings(Name = "Delete"), HttpPost]
    public async Task Delete(DeleteFBS_CusExtendInput input)
    {
        var entity = await _fBS_CusExtendRep.GetFirstAsync(u => u.Id == input.Id) ?? throw Oops.Oh(ErrorCodeEnum.D1002);
        //await _fBS_CusExtendRep.FakeDeleteAsync(entity);   //假删除
        await _fBS_CusExtendRep.DeleteAsync(entity);   //真删除
     await    _fBS_CusExtendRep.AsTenant().BeginTranAsync();
        try
        {
            var entity = await _fBS_CusExtendRep.AsQueryable().Includes(x => x.TransactionRole).Where(x => x.Id == input.Id).FirstAsync() ?? throw Oops.Oh(ErrorCodeEnum.D1002);
            if (entity != null)
            {
                var exrles = await _fBS_CoutomerExRoleRep.GetFirstAsync(x => x.CustomerId == entity.CustomerId && x.ExRoleId == entity.TransactionRole.Id);
                if (exrles != null)
                {
                    await _fBS_CoutomerExRoleRep.DeleteAsync(exrles);
                }
                //await _fBS_CusExtendRep.FakeDeleteAsync(entity);   //假删除
                await _fBS_CusExtendRep.DeleteAsync(entity);   //真删除
            }
          await   _fBS_CusExtendRep.AsTenant().CommitTranAsync();
        }
        catch (Exception)
        {
            await _fBS_CusExtendRep.AsTenant().RollbackTranAsync();
            throw;
        }
    }
    /// <summary>
Web/src/api/Customer/fBS_EnterpriseType.ts
@@ -1,5 +1,14 @@
import {useBaseApi} from '/@/api/base';
import request from '/@/utils/request';
/*
 * @FilePath: fBS_EnterpriseType.ts
 * @Author: 小飞侠
 * @Date: 2025-06-25 11:22:03
 * @LastEditors:
 * @LastEditTime: 2025-08-04 11:09:37
 * Copyright: 2025  MinTinge CO.,LTD. All Rights Reserved.
 * @Descripttion: 写入你的描述
 */
import {useBaseApi} from '/@/api/base';
// 企业类配置表接口服务
export const useFBS_EnterpriseTypeApi = () => {
@@ -8,7 +17,7 @@
        // 分页查询企业类配置表
        page: baseApi.page,
        // 树形查询企业类配置表
        tree:()=> {return request({
        tree:()=> {return baseApi.request<FBS_EnterpriseType[]>({
            url: "/api/fBS_EnterpriseType/treeData", 
            method: 'Get'
            
Web/src/api/base/index.ts
@@ -28,7 +28,7 @@
                data: { id },
            }, cancel);
        },
        dropdownData: function (data: any, cancel: boolean = false) {
        dropdownData: function (data:any, cancel: boolean = false) {
            return request({
                url: baseUrl + "dropdownData",
                method: 'post',