diff --git a/cds-fontend-2025.V1/src/typings/api/business.subcategory.api.d.ts b/cds-fontend-2025.V1/src/typings/api/business.subcategory.api.d.ts index 7e96995..c0230f1 100644 --- a/cds-fontend-2025.V1/src/typings/api/business.subcategory.api.d.ts +++ b/cds-fontend-2025.V1/src/typings/api/business.subcategory.api.d.ts @@ -12,7 +12,7 @@ declare namespace Api { /** 所属大类ID */ categoryId: CommonType.IdType; /** 业务类型ID */ - typeId: CommonType.IdType; + typeId: string; /** 业务子类名称 */ name: string; /** 业务子类状态 */ diff --git a/cds-fontend-2025.V1/src/views/business/category/index.vue b/cds-fontend-2025.V1/src/views/business/category/index.vue index 094cad1..85246ef 100644 --- a/cds-fontend-2025.V1/src/views/business/category/index.vue +++ b/cds-fontend-2025.V1/src/views/business/category/index.vue @@ -82,14 +82,14 @@ const { // ellipsis: true, // resizable: true // }, - // { - // key: 'typeId', - // title: '业务子类ID', - // align: 'center', - // minWidth: 120, - // ellipsis: true, - // resizable: true - // }, + { + key: 'typeId', + title: '业务子类ID', + align: 'center', + minWidth: 120, + ellipsis: true, + resizable: true + }, { key: 'name', title: '业务子类名称', diff --git a/cds-fontend-2025.V1/src/views/business/category/modules/subcategory-operate-drawer.vue b/cds-fontend-2025.V1/src/views/business/category/modules/subcategory-operate-drawer.vue index d588c4f..aab53c4 100644 --- a/cds-fontend-2025.V1/src/views/business/category/modules/subcategory-operate-drawer.vue +++ b/cds-fontend-2025.V1/src/views/business/category/modules/subcategory-operate-drawer.vue @@ -2,8 +2,8 @@ import { computed, reactive, watch } from 'vue'; import { fetchCreateSubcategory, fetchUpdateSubcategory } from '@/service/api/business/subcategory'; import { useFormRules, useNaiveForm } from '@/hooks/common/form'; -import { $t } from '@/locales'; import {useDict} from "@/hooks/business/dict"; +import { $t } from '@/locales'; defineOptions({ name: 'SubcategoryOperateDrawer' @@ -15,7 +15,7 @@ interface Props { /** the edit row data */ rowData?: Api.Business.Subcategory | null; /** the category id */ - categoryId: string; + categoryId: CommonType.IdType; } const props = defineProps(); @@ -96,16 +96,16 @@ function closeDrawer() { async function handleSubmit() { await validate(); - const { id, categoryId, name, status,pricingRule } = model; + const { id, categoryId, name,typeId, status,pricingRule } = model; // request if (props.operateType === 'add') { - const { error } = await fetchCreateSubcategory({ categoryId, name, status,pricingRule }); + const { error } = await fetchCreateSubcategory({ categoryId, name,typeId, status,pricingRule }); if (error) return; } if (props.operateType === 'edit') { - const { error } = await fetchUpdateSubcategory({ id, categoryId, name, status,pricingRule }); + const { error } = await fetchUpdateSubcategory({ id, categoryId, name,typeId, status,pricingRule }); if (error) return; } @@ -138,7 +138,7 @@ watch(visible, () => { - + diff --git a/cds-fontend-2025.V1/src/views/mps/market/index.vue b/cds-fontend-2025.V1/src/views/mps/market/index.vue index 3897eed..c176c47 100644 --- a/cds-fontend-2025.V1/src/views/mps/market/index.vue +++ b/cds-fontend-2025.V1/src/views/mps/market/index.vue @@ -117,14 +117,6 @@ const { ellipsis: true, resizable: true }, - { - key: 'yxName', - title: '营销人员名称', - align: 'center', - minWidth: 120, - ellipsis: true, - resizable: true - }, { key: 'jbName', title: '经办人员名称', @@ -134,16 +126,24 @@ const { resizable: true }, { - key: 'yxId', - title: '营销人员营销号', + key: 'jbId', + title: '经办人员营销号', align: 'center', minWidth: 120, ellipsis: true, resizable: true }, { - key: 'jbId', - title: '经办人员营销号', + key: 'yxName', + title: '营销人员名称', + align: 'center', + minWidth: 120, + ellipsis: true, + resizable: true + }, + { + key: 'yxId', + title: '营销人员营销号', align: 'center', minWidth: 120, ellipsis: true, @@ -314,7 +314,7 @@ const { }, { key: 'heatingNo', - title: '取暖费户号', + title: '户号', align: 'center', minWidth: 120, ellipsis: true, 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 73a8007..9d7ff2a 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 @@ -87,7 +87,27 @@ function createDefaultModel(): Model { }; } -type RuleKey = Extract;// 添加手机号验证规则 +type RuleKey = Extract< + keyof Model, + | 'subcategoryId' + | 'jbName' + | 'jbId' + | 'yxName' + | 'yxId' + | 'subcategoryName' + | 'date' + | 'custPhoneNo' + | 'custId' + | 'custAcctNo' + | 'custType' + | 'custName' + | 'acquiringId' + | 'heatingNo' + | 'acquiringName' + | 'workplace' + | 'surplusAccountName' + | 'internetChannel' +>; const phonePatternRule = { pattern: /^1[3-9]\d{9}$/, message: '请输入正确的手机号', @@ -136,7 +156,11 @@ const rules: Record = { custId: [idCardPatternRule,createRequiredRule('客户手机号不能为空')], custAcctNo: [accountPatternRule,createRequiredRule('账户号不能为空')], custType: createRequiredRule('客户类型不能为空'), - acquiringId: acquiringIdPatternRule + acquiringId: [acquiringIdPatternRule,createRequiredRule('综合收单商户号不能为空')], + acquiringName: createRequiredRule('综合收单商户名不能为空'), + workplace: createRequiredRule('职工所属单位不能为空'), + surplusAccountName: createRequiredRule('公积金缴纳账户名称不能为空'), + internetChannel: createRequiredRule('互联网渠道不能为空') }; // const showMarketingFields = ref(false); @@ -370,7 +394,7 @@ watch( ); // 判断业务类型 -const isdisplaycustinfo = ref(false); +const isdisplaymktinfo = ref(false); const isdisplaycustTypeinfo = ref(false); const isdisplaymagneticCardList = ref(false); const isdisplayacquiringName = ref(false); @@ -385,18 +409,27 @@ watch( () => model.subcategoryName, newVal => { // 判断客户类型 - if(newVal === '新增综合收单商户(首月)'){ - isdisplaycustTypeinfo.value = true; - }else if(newVal === '智e通(企业版)'){ - model.custType = '2'; - isdisplaycustTypeinfo.value = false; - }else{ - model.custType = '1'; - isdisplaycustTypeinfo.value = false; + switch (newVal) { + case '新增综合收单商户(首月)': + isdisplaycustTypeinfo.value = true; + break; + case '智e通(企业版)': + case '公积金缴纳账户': + case '企业手机银行': + model.custType = '2'; + model.custId = ''; + model.custPhoneNo = ''; + isdisplaycustTypeinfo.value = false; + break; + default: + model.custType = '1'; + isdisplaycustTypeinfo.value = false; + break; } + switch (newVal) { case '公积金缴纳账户': - isdisplaycustinfo.value = false; + isdisplaymktinfo.value = true; isdisplaymagneticCardList.value = false; isdisplayacquiringName.value = false; isdisplayacquiringId.value = false; @@ -405,16 +438,9 @@ watch( isdisplayworkplace.value = false; isdisplaysurplusAccountName.value = true; isdisplayheatingNo.value = false; - - model.custId = ''; - model.custName = ''; - model.custType = ''; - model.custAcctNo = ''; - model.custPhoneNo = ''; break; case '磁条卡更换金融IC卡': - isdisplaycustinfo.value = true; - model.custType = '1'; + isdisplaymktinfo.value = true; isdisplaymagneticCardList.value = true; isdisplayacquiringName.value = false; isdisplayacquiringId.value = false; @@ -425,7 +451,7 @@ watch( isdisplayheatingNo.value = false; break; case '代收交警罚没款': - isdisplaycustinfo.value = true; + isdisplaymktinfo.value = true; isdisplaymagneticCardList.value = false; isdisplayacquiringName.value = false; isdisplayacquiringId.value = false; @@ -436,7 +462,7 @@ watch( isdisplayheatingNo.value = false; break; case '新增综合收单商户(首月)': - isdisplaycustinfo.value = true; + isdisplaymktinfo.value = true; isdisplaymagneticCardList.value = false; isdisplayacquiringName.value = true; isdisplayacquiringId.value = true; @@ -447,7 +473,7 @@ watch( isdisplayheatingNo.value = false; break; case '网上支付客户': - isdisplaycustinfo.value = true; + isdisplaymktinfo.value = true; isdisplaymagneticCardList.value = false; isdisplayacquiringName.value = false; isdisplayacquiringId.value = false; @@ -458,7 +484,7 @@ watch( isdisplayheatingNo.value = false; break; case '营销职工社保卡': - isdisplaycustinfo.value = true; + isdisplaymktinfo.value = true; isdisplaymagneticCardList.value = false; isdisplayacquiringName.value = false; isdisplayacquiringId.value = false; @@ -469,7 +495,9 @@ watch( isdisplayheatingNo.value = false; break; case '取暖费': - isdisplaycustinfo.value = true; + case '代收水费': + case '代收电费': + isdisplaymktinfo.value = true; isdisplaymagneticCardList.value = false; isdisplayacquiringName.value = false; isdisplayacquiringId.value = false; @@ -480,15 +508,15 @@ watch( isdisplayheatingNo.value = true; break; default: - isdisplaycustinfo.value = true; - isdisplaymagneticCardList.value = false; - isdisplayacquiringName.value = false; - isdisplayacquiringId.value = false; - isdisplayinternetChannel.value = false; - isdisplaytrafficList.value = false; - isdisplayworkplace.value = false; - isdisplaysurplusAccountName.value = false; - isdisplayheatingNo.value = false; + isdisplaymktinfo.value = false; + // isdisplaymagneticCardList.value = false; + // isdisplayacquiringName.value = false; + // isdisplayacquiringId.value = false; + // isdisplayinternetChannel.value = false; + // isdisplaytrafficList.value = false; + // isdisplayworkplace.value = false; + // isdisplaysurplusAccountName.value = false; + // isdisplayheatingNo.value = false; break; } if( props.operateType==='add'){ @@ -651,7 +679,7 @@ watch(visible, () => { -
+
客户信息 @@ -686,109 +714,111 @@ watch(visible, () => {
- 营销信息 - - - - - 老卡号 - 新卡号 - 操作 - - - - - - - - - - - - 删除 - - - - - 添加卡号 - - - - - - - - - - - - - - - 微信 - 支付宝 - 京东 - 美团 - 抖音 - 拼多多 - 其他 - - - - - - - - 决定书编号 - 处罚金额 - 操作 - - - - - - - - - - - - 删除 - - - - - 添加决定书 - - - - - - - - - - - - - - +
+ 营销信息 + + + + + 老卡号 + 新卡号 + 操作 + + + + + + + + + + + + 删除 + + + + + 添加卡号 + + + + + + + + + + + + + + + 微信 + 支付宝 + 京东 + 美团 + 抖音 + 拼多多 + 其他 + + + + + + + + 决定书编号 + 处罚金额 + 操作 + + + + + + + + + + + + 删除 + + + + + 添加决定书 + + + + + + + + + + + + + + +
核对信息