机票预订页面优化

dev
lh 4 weeks ago
parent be8a69fc3a
commit 7028e63d79

@ -42,7 +42,12 @@ export enum CodeRuleEnum {
/** /**
* *
*/ */
BUSINESS_TRIP = '1017' BUSINESS_TRIP = '1017',
/**
*
*/
FLIGHT_BOOKING = '1019'
} }
/** /**

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

@ -99,12 +99,12 @@
<el-table-column label="备注" align="center" prop="remark" v-if="columns[13].visible" /> <el-table-column label="备注" align="center" prop="remark" v-if="columns[13].visible" />
<el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
<template #default="scope"> <template #default="scope">
<el-tooltip content="查看详情" placement="top" v-if="scope.row.flowStatus !== 'draft'">
<el-button link type="info" icon="DocumentChecked" @click="handleView(scope.row)"></el-button>
</el-tooltip>
<el-tooltip content="修改" placement="top" v-if="scope.row.flowStatus === 'draft' || scope.row.flowStatus === 'back'"> <el-tooltip content="修改" placement="top" v-if="scope.row.flowStatus === 'draft' || scope.row.flowStatus === 'back'">
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['oa/crm:flightBooking:edit']"></el-button> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['oa/crm:flightBooking:edit']"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip content="查看详情" placement="top" v-if="scope.row.flowStatus !== 'draft'">
<el-button link type="info" icon="DocumentChecked" @click="handleView(scope.row)"></el-button>
</el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>

Loading…
Cancel
Save