1.0.92 合同提交流程业务字段放后端。

dev
yinq 2 days ago
parent 12750aecf8
commit add7a006c6

@ -49,16 +49,21 @@ export interface CustomerInfoVO {
*/
ownerName?: string;
/**
* /
*/
registeredAddress?: string;
/**
*
*/
phoneNumber?: string;
/**
*
*/
detailedAddress: string;
/**
*
*/
registeredAddress?: string;
/**
*
*/
@ -193,10 +198,15 @@ export interface CustomerInfoForm extends BaseEntity {
detailedAddress?: string;
/**
*
* /
*/
registeredAddress?: string;
/**
*
*/
phoneNumber?: string;
/**
*
*/
@ -277,6 +287,11 @@ export interface CustomerInfoForm extends BaseEntity {
*/
ourCompanyFlag?: string;
/**
*
*/
phoneNumber?: string;
}
export interface CustomerInfoQuery extends PageQuery {

@ -1120,36 +1120,12 @@ const handleFile = () => {
/** 提交按钮 */
const submitForm = (status: string, mode: boolean) => {
try {
buttonLoading.value = true;
contractInfoFormRef.value?.validate(async (valid: boolean) => {
if (valid) {
buttonLoading.value = true;
// 稿
if (status != 'draft') {
//
form.value.flowCode = FlowCodeEnum.CONTRACT_CODE;
//
/*
轮胎&制品 默认审批人佟强默认抄送陈海军张东辉
快递&新零售 默认审批人张东辉默认抄送陈海军
制造大集成 默认审批人祁海波默认抄送陈海军张东辉
工厂数字化 默认审批人尹治丰默认抄送陈海军张东辉*/
const recipientUserId = form.value.businessDirection == '3' ? '1985254723705556993' : '1985254723705556993,1985251968270127105';
form.value.variables = {
contractName: form.value.contractName,
totalPrice: form.value.totalPrice,
businessDirection: form.value.businessDirection,
contractDeptId: form.value.contractDeptId,
recipientUserId: recipientUserId,
contractCode: form.value.contractCode
};
//
form.value.bizExt = {
businessTitle: '合同审批',
businessCode: form.value.contractCode
};
form.value.contractStatus = '2';
form.value.flowStatus = 'waiting';
// flowCode/variables/bizExt/ contractSubmitAndFlowStart
const res = await contractSubmitAndFlowStart(form.value).finally(() => (buttonLoading.value = false));
form.value = res.data;
proxy?.$modal.msgSuccess('操作成功');
@ -1171,6 +1147,8 @@ const submitForm = (status: string, mode: boolean) => {
}
}
});
} catch (e) {
console.error(e);
} finally {
buttonLoading.value = false;
}

Loading…
Cancel
Save