录入界面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

@ -46,6 +46,7 @@ declare namespace Api {
custPhoneNo: string; custPhoneNo: string;
/** 磁条卡更换登记id */ /** 磁条卡更换登记id */
magneticCardId: CommonType.IdType; magneticCardId: CommonType.IdType;
magneticCardList: [];
/** 综合收单商户名 */ /** 综合收单商户名 */
acquiringName: string; acquiringName: string;
/** 综合收单商户号 */ /** 综合收单商户号 */
@ -54,6 +55,7 @@ declare namespace Api {
internetChannel: string; internetChannel: string;
/** 交警处罚决定书 */ /** 交警处罚决定书 */
trafficId: CommonType.IdType; trafficId: CommonType.IdType;
trafficList: [];
/** 职工所属单位 */ /** 职工所属单位 */
workplace: string; workplace: string;
/** 公积金缴纳账户名称 */ /** 公积金缴纳账户名称 */
@ -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:
// //