录入界面0.1

This commit is contained in:
SGK\17962 2025-08-12 10:23:22 +08:00
parent 3ba9a916a4
commit b2881fe530
2 changed files with 87 additions and 53 deletions

View File

@ -15,65 +15,67 @@ declare namespace Api {
/** market */ /** market */
type Market = Common.CommonRecord<{ type Market = Common.CommonRecord<{
/** 主键 */ /** 主键 */
dataId: CommonType.IdType; dataId: CommonType.IdType;
/** 业务类型id */ /** 业务类型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 */ /** 部门id */
deptId: CommonType.IdType; deptId: CommonType.IdType;
/** 客户类型1-个人2-对公) */ /** 客户类型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 */ /** 磁条卡更换登记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核对失败 */ /** 核对标志0未核对 1核对通过 9核对失败 */
checkFlag: string; checkFlag: string;
/** 核对时间 */ /** 核对时间 */
checkTime: string; checkTime: string;
/** 核对人员(人工核对时) */ /** 核对人员(人工核对时) */
checkUser: string; checkUser: string;
/** 核对方式0系统 1人工 2其他1 3其他2 4其他3 */ /** 核对方式0系统 1人工 2其他1 3其他2 4其他3 */
checkType: string; checkType: string;
/** 核对结果 */ /** 核对结果 */
checkMsg: string; checkMsg: string;
/** 租户编号 */ /** 租户编号 */
tenantId: CommonType.IdType; tenantId: CommonType.IdType;
/** 删除标志0代表存在 1代表删除 */ /** 删除标志0代表存在 1代表删除 */
delFlag: string; delFlag: string;
}>; }>;
/** market search params */ /** market search params */
@ -131,10 +133,12 @@ declare namespace Api {
| 'custAcctNo' | 'custAcctNo'
| 'custPhoneNo' | 'custPhoneNo'
| 'magneticCardId' | 'magneticCardId'
| 'magneticCardList'
| 'acquiringName' | 'acquiringName'
| 'acquiringId' | 'acquiringId'
| 'internetChannel' | 'internetChannel'
| 'trafficId' | 'trafficId'
| 'trafficList'
| 'workplace' | 'workplace'
| 'surplusAccountName' | 'surplusAccountName'
| 'heatingNo' | 'heatingNo'

View File

@ -64,10 +64,12 @@ function createDefaultModel(): Model {
custAcctNo: '', custAcctNo: '',
custPhoneNo: '', custPhoneNo: '',
magneticCardId: undefined, magneticCardId: undefined,
magneticCardList: [],
acquiringName: '', acquiringName: '',
acquiringId: '', acquiringId: '',
internetChannel: '', internetChannel: '',
trafficId: undefined, trafficId: undefined,
trafficList: [],
workplace: '', workplace: '',
surplusAccountName: '', surplusAccountName: '',
heatingNo: '', heatingNo: '',
@ -85,13 +87,6 @@ type RuleKey = Extract<
| 'jbName' | 'jbName'
| 'jbId' | 'jbId'
| 'date' | 'date'
| 'tenantId'
| 'createDept'
| 'createBy'
| 'createTime'
| 'updateBy'
| 'updateTime'
| 'delFlag'
>; >;
const rules: Record<RuleKey, App.Global.FormRule> = { const rules: Record<RuleKey, App.Global.FormRule> = {
@ -99,13 +94,6 @@ const rules: Record<RuleKey, App.Global.FormRule> = {
jbName: createRequiredRule('经办人员名称不能为空'), jbName: createRequiredRule('经办人员名称不能为空'),
jbId: createRequiredRule('经办人员营销号不能为空'), jbId: createRequiredRule('经办人员营销号不能为空'),
date: createRequiredRule('数据日期不能为空'), date: createRequiredRule('数据日期不能为空'),
tenantId: createRequiredRule('租户编号不能为空'),
createDept: createRequiredRule('创建部门不能为空'),
createBy: createRequiredRule('创建者不能为空'),
createTime: createRequiredRule('创建时间不能为空'),
updateBy: createRequiredRule('更新者不能为空'),
updateTime: createRequiredRule('更新时间不能为空'),
delFlag: createRequiredRule('删除标志0代表存在 1代表删除不能为空')
}; };
function handleUpdateModelWhenEdit() { function handleUpdateModelWhenEdit() {
@ -204,21 +192,63 @@ watch(showMarketingFields, (newValue) => {
} }
}); });
// //
const isSurplusAccountType = computed(() => { const isdisplaymagneticCardList = ref(false);
// "" const isdisplayacquiringName = ref(false);
return model.subcategoryName === '公积金缴纳账户'; 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) => { watch(() => model.subcategoryName, (newVal) => {
switch (newVal) { switch (newVal) {
case '公积金缴纳账户': case '公积金缴纳账户':
// isdisplaymagneticCardList.value = false;
showMarketingFields.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; break;
case '磁条卡更换金融IC卡': case '磁条卡更换金融IC卡':
// isdisplaymagneticCardList.value = true;
showMarketingFields.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; break;
default: default:
// //