|
|
|
|
@ -144,7 +144,7 @@ const flowInstanceBizExtBo = ref<Record<string, any>>({});
|
|
|
|
|
|
|
|
|
|
const type = ref(0);
|
|
|
|
|
|
|
|
|
|
// 合同编号生成状态
|
|
|
|
|
// 机票编号生成状态
|
|
|
|
|
const isCodeGenerated = ref(false);
|
|
|
|
|
/** 查询用户信息下拉框结构 */
|
|
|
|
|
const userInfoList = ref([]);
|
|
|
|
|
@ -220,14 +220,14 @@ const flightBookingFormRef = ref<ElFormInstance>();
|
|
|
|
|
const generateContractCode = async () => {
|
|
|
|
|
if (isCodeGenerated.value) return; // 如果已经生成过,直接返回
|
|
|
|
|
try {
|
|
|
|
|
const params = { codeRuleCode: 1016 } as any;
|
|
|
|
|
const params = { codeRuleCode: CodeRuleEnum.FLIGHT_BOOKING } as any;
|
|
|
|
|
const res = await getRuleGenerateCode(params);
|
|
|
|
|
form.value.applyCode = res.msg;
|
|
|
|
|
isCodeGenerated.value = true; // 标记为已生成
|
|
|
|
|
proxy?.$modal.msgSuccess('机票编号生成成功');
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error('生成机票编号失败:', error);
|
|
|
|
|
proxy?.$modal.msgError('机票编号生成成功');
|
|
|
|
|
proxy?.$modal.msgError('机票编号生成失败');
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
watch(
|
|
|
|
|
|