|
|
|
|
@ -290,7 +290,7 @@
|
|
|
|
|
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" align="center" fixed="right" width="220" class-name="small-padding fixed-width">
|
|
|
|
|
<el-table-column label="操作" align="center" fixed="right" width="180" class-name="small-padding fixed-width">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<!-- 修改:仅草稿或退回状态可编辑(与 projectInfo 保持一致,使用 flowStatus 判断) -->
|
|
|
|
|
<el-tooltip content="修改" placement="top" v-if="scope.row.flowStatus === 'draft' || scope.row.flowStatus === 'back'">
|
|
|
|
|
@ -308,15 +308,15 @@
|
|
|
|
|
<el-tooltip content="删除" placement="top" v-if="!scope.row.flowStatus || scope.row.flowStatus === 'draft'">
|
|
|
|
|
<el-button link type="danger" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['oa/crm:crmQuoteInfo:remove']"></el-button>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
<el-tooltip content="报价明细" placement="top">
|
|
|
|
|
<el-button
|
|
|
|
|
link
|
|
|
|
|
type="warning"
|
|
|
|
|
icon="Tickets"
|
|
|
|
|
@click="handleDetail(scope.row)"
|
|
|
|
|
v-hasPermi="['oa/crm:crmQuoteMaterial:list']"
|
|
|
|
|
></el-button>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
<!-- <el-tooltip content="报价明细" placement="top">-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- link-->
|
|
|
|
|
<!-- type="warning"-->
|
|
|
|
|
<!-- icon="Tickets"-->
|
|
|
|
|
<!-- @click="handleDetail(scope.row)"-->
|
|
|
|
|
<!-- v-hasPermi="['oa/crm:crmQuoteMaterial:list']"-->
|
|
|
|
|
<!-- ></el-button>-->
|
|
|
|
|
<!-- </el-tooltip>-->
|
|
|
|
|
<!-- 参考合同信息 contractView:仅当已绑定模板时显示预览/导出入口,避免无模板时反复告警 -->
|
|
|
|
|
<el-tooltip content="PDF导出" placement="top" v-if="scope.row.templateId != null">
|
|
|
|
|
<el-button
|
|
|
|
|
@ -749,18 +749,6 @@ const handleView = (row?: CrmQuoteInfoVO) => {
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/** 报价明细按钮操作 */
|
|
|
|
|
const handleDetail = (row: CrmQuoteInfoVO) => {
|
|
|
|
|
router.push({
|
|
|
|
|
path: '/quote/crmQuoteMaterial',
|
|
|
|
|
query: {
|
|
|
|
|
quoteId: row.quoteId,
|
|
|
|
|
quoteCode: row.quoteCode,
|
|
|
|
|
quoteName: row.quoteName
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
|
const submitForm = () => {
|
|
|
|
|
crmQuoteInfoFormRef.value?.validate(async (valid: boolean) => {
|
|
|
|
|
|