diff --git a/cds-fontend-2025.V1/src/typings/api/mps.market.api.d.ts b/cds-fontend-2025.V1/src/typings/api/mps.market.api.d.ts index d37aa74..4f88145 100644 --- a/cds-fontend-2025.V1/src/typings/api/mps.market.api.d.ts +++ b/cds-fontend-2025.V1/src/typings/api/mps.market.api.d.ts @@ -15,65 +15,67 @@ declare namespace Api { /** market */ type Market = Common.CommonRecord<{ /** 主键 */ - dataId: CommonType.IdType; + dataId: CommonType.IdType; /** 业务类型id */ - subcategoryId: CommonType.IdType; + subcategoryId: CommonType.IdType; /** 业务类型名称 */ - subcategoryName: string; + subcategoryName: string; /** 营销人员名称 */ - yxName: string; + yxName: string; /** 经办人员名称 */ - jbName: string; + jbName: string; /** 营销人员营销号 */ - yxId: CommonType.IdType; + yxId: CommonType.IdType; /** 经办人员营销号 */ - jbId: CommonType.IdType; + jbId: CommonType.IdType; /** 数据日期 */ - date: string; + date: string; /** 部门名称 */ - deptName: string; + deptName: string; /** 部门id */ - deptId: CommonType.IdType; + deptId: CommonType.IdType; /** 客户类型(1-个人,2-对公) */ - custType: string; + custType: string; /** 客户身份证号 */ - custId: CommonType.IdType; + custId: CommonType.IdType; /** 客户姓名 */ - custName: string; + custName: string; /** 客户账号/卡号 */ - custAcctNo: string; + custAcctNo: string; /** 客户联系电话 */ - custPhoneNo: string; + custPhoneNo: string; /** 磁条卡更换登记id */ - magneticCardId: CommonType.IdType; + magneticCardId: CommonType.IdType; + magneticCardList: []; /** 综合收单商户名 */ - acquiringName: string; + acquiringName: string; /** 综合收单商户号 */ - acquiringId: CommonType.IdType; + acquiringId: CommonType.IdType; /** 网上支付开通渠道 */ - internetChannel: string; + internetChannel: string; /** 交警处罚决定书 */ - trafficId: CommonType.IdType; + trafficId: CommonType.IdType; + trafficList: []; /** 职工所属单位 */ - workplace: string; + workplace: string; /** 公积金缴纳账户名称 */ - surplusAccountName: string; + surplusAccountName: string; /** 取暖费户号 */ - heatingNo: string; + heatingNo: string; /** 核对标志(0未核对 1核对通过 9核对失败) */ - checkFlag: string; + checkFlag: string; /** 核对时间 */ - checkTime: string; + checkTime: string; /** 核对人员(人工核对时) */ - checkUser: string; + checkUser: string; /** 核对方式(0系统 1人工 2其他1 3其他2 4其他3) */ - checkType: string; + checkType: string; /** 核对结果 */ - checkMsg: string; + checkMsg: string; /** 租户编号 */ - tenantId: CommonType.IdType; + tenantId: CommonType.IdType; /** 删除标志(0代表存在 1代表删除) */ - delFlag: string; + delFlag: string; }>; /** market search params */ @@ -131,10 +133,12 @@ declare namespace Api { | 'custAcctNo' | 'custPhoneNo' | 'magneticCardId' + | 'magneticCardList' | 'acquiringName' | 'acquiringId' | 'internetChannel' | 'trafficId' + | 'trafficList' | 'workplace' | 'surplusAccountName' | 'heatingNo' diff --git a/cds-fontend-2025.V1/src/views/mps/market/modules/market-operate-drawer.vue b/cds-fontend-2025.V1/src/views/mps/market/modules/market-operate-drawer.vue index 7363e3c..21b5f59 100644 --- a/cds-fontend-2025.V1/src/views/mps/market/modules/market-operate-drawer.vue +++ b/cds-fontend-2025.V1/src/views/mps/market/modules/market-operate-drawer.vue @@ -64,10 +64,12 @@ function createDefaultModel(): Model { custAcctNo: '', custPhoneNo: '', magneticCardId: undefined, + magneticCardList: [], acquiringName: '', acquiringId: '', internetChannel: '', trafficId: undefined, + trafficList: [], workplace: '', surplusAccountName: '', heatingNo: '', @@ -85,13 +87,6 @@ type RuleKey = Extract< | 'jbName' | 'jbId' | 'date' - | 'tenantId' - | 'createDept' - | 'createBy' - | 'createTime' - | 'updateBy' - | 'updateTime' - | 'delFlag' >; const rules: Record = { @@ -99,13 +94,6 @@ const rules: Record = { jbName: createRequiredRule('经办人员名称不能为空'), jbId: createRequiredRule('经办人员营销号不能为空'), date: createRequiredRule('数据日期不能为空'), - tenantId: createRequiredRule('租户编号不能为空'), - createDept: createRequiredRule('创建部门不能为空'), - createBy: createRequiredRule('创建者不能为空'), - createTime: createRequiredRule('创建时间不能为空'), - updateBy: createRequiredRule('更新者不能为空'), - updateTime: createRequiredRule('更新时间不能为空'), - delFlag: createRequiredRule('删除标志(0代表存在 1代表删除)不能为空') }; function handleUpdateModelWhenEdit() { @@ -204,21 +192,63 @@ watch(showMarketingFields, (newValue) => { } }); -// 判断是否为公积金缴纳账户业务类型 -const isSurplusAccountType = computed(() => { - // 检查当前选中的业务类型是否为"公积金缴纳账户" - return model.subcategoryName === '公积金缴纳账户'; -}); +// 判断业务类型 +const isdisplaymagneticCardList = ref(false); +const isdisplayacquiringName = ref(false); +const isdisplayacquiringId = ref(false); +const isdisplayinternetChannel = ref(false); +const isdisplaytrafficList = ref(false); +const isdisplayworkplace = ref(false); +const isdisplaysurplusAccountName = ref(false); +const isdisplayheatingNo = ref(false); // 监听业务类型变化 watch(() => model.subcategoryName, (newVal) => { switch (newVal) { case '公积金缴纳账户': - // 显示营销人员字段 - showMarketingFields.value = true; + isdisplaymagneticCardList.value = false; + isdisplayacquiringName.value = false; + isdisplayacquiringId.value = false; + isdisplayinternetChannel.value = false; + isdisplaytrafficList.value = false; + isdisplayworkplace.value = false; + isdisplaysurplusAccountName.value = true; + isdisplayheatingNo.value = false; + + model.custId=''; + model.custName = ''; + model.custType = ''; + model.custAcctNo = ''; + model.custPhoneNo = ''; + model.acquiringName = ''; + model.acquiringId = ''; + model.internetChannel = ''; + model.trafficList = []; + model.workplace = ''; + model.surplusAccountName = ''; + model.heatingNo = ''; break; case '磁条卡更换金融IC卡': - // 显示营销人员字段 - showMarketingFields.value = true; + isdisplaymagneticCardList.value = true; + isdisplayacquiringName.value = false; + isdisplayacquiringId.value = false; + isdisplayinternetChannel.value = false; + isdisplaytrafficList.value = false; + isdisplayworkplace.value = false; + isdisplaysurplusAccountName.value = true; + isdisplayheatingNo.value = false; + + model.custId=''; + model.custName = ''; + model.custType = ''; + model.custAcctNo = ''; + model.custPhoneNo = ''; + model.acquiringName = ''; + model.acquiringId = ''; + model.internetChannel = ''; + model.trafficList = []; + model.workplace = ''; + model.surplusAccountName = ''; + model.heatingNo = ''; break; default: // 隐藏营销人员字段