pull/781/head
zy 2025-05-12 15:49:29 +08:00
parent 4c9618bc29
commit 1dda82a081
11 changed files with 16 additions and 63 deletions

View File

@ -43,6 +43,7 @@ import Logger from '@/utils/Logger'
import VueDOMPurifyHTML from 'vue-dompurify-html' // 解决v-html 的安全隐患
import VueSignaturePad from "vue-signature-pad";
// import 'vue-signature-pad/dist/vue-signature-pad.css';
// 创建实例
const setupAll = async () => {

View File

@ -239,56 +239,6 @@
>
进度
</el-button>
<el-button
v-if="scope.row.auditStatus !== 0 && scope.row.auditStatus !== 2 && scope.row.auditStatus !== 10"
v-hasPermi="['crm:contract:delete']"
link
type="danger"
@click="handleDelete(scope.row.id)"
>
删除
</el-button>
<el-dropdown
v-if="scope.row.auditStatus === 0 || scope.row.auditStatus === 2"
@command="(command) => handleCommand(command, scope.row)"
v-hasPermi="[
'crm:contract:update',
'crm:contract:delete',
'crm:contract:print',
'crm:contract:change'
]"
>
<el-button type="primary" link>更多<Icon icon="ep:d-arrow-right" /> </el-button>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item
command="handleSubmit"
v-if="checkPermi(['crm:contract:update']) && scope.row.auditStatus === 0"
>
提交审核
</el-dropdown-item>
<el-dropdown-item
command="handleChange"
v-if="checkPermi(['crm:contract:change']) && scope.row.auditStatus === 2"
>
合同变更
</el-dropdown-item>
<el-dropdown-item
command="handlePrint"
v-if="checkPermi(['crm:contract:print']) && scope.row.auditStatus === 2"
>
合同下载
</el-dropdown-item>
<el-dropdown-item
command="handleDelete"
v-if="checkPermi(['crm:contract:delete']) && (scope.row.auditStatus === 0 || scope.row.auditStatus === 2)"
>
删除
</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
</div>
</template>
</el-table-column>
@ -308,7 +258,7 @@
<script lang="ts" setup>
import { dateFormatter, dateFormatter2 } from '@/utils/formatTime'
import download from '@/utils/download'
import FileTemplateForm from './templateForm.vue'
import FileTemplateForm from '../contract/templateForm.vue'
import * as ContractApi from '@/api/crm/contract'
import { DICT_TYPE } from '@/utils/dict'
import { erpPriceInputFormatter, erpPriceTableColumnFormatter } from '@/utils'

View File

@ -49,7 +49,6 @@
<script setup lang="ts">
import { ref } from 'vue';
// import VueSignaturePad from 'vue-signature-pad';
// import 'vue-signature-pad/dist/vue-signature-pad.css';
const panelVisible = ref(false);
const imgSrc = ref('');

View File

@ -195,8 +195,8 @@
<script setup lang="ts">
import { ProjectApi, ProjectVO } from '@/api/task/project'
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import Bonus from '../components/Bouns.vue'
import Task from '../components/Task.vue'
import Bonus from './components/Bouns.vue'
import Task from './components/Task.vue'
import { defaultProps, handleTree } from '@/utils/tree'
import * as DeptApi from '@/api/system/dept'
import { propTypes } from '@/utils/propTypes'

View File

@ -197,8 +197,8 @@
<script setup lang="ts">
import { ProjectApi, ProjectVO } from '@/api/task/project'
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import Bonus from '../components/Bouns.vue'
import Task from '../components/Task.vue'
import Bonus from './components/Bouns.vue'
import Task from './components/Task.vue'
import { defaultProps, handleTree } from '@/utils/tree'
import * as DeptApi from '@/api/system/dept'
import { propTypes } from '@/utils/propTypes'

View File

@ -82,7 +82,7 @@
type="primary"
plain
@click="openForm()"
v-hasPermi="['task:project:create']"
v-hasPermi="['tts:project:create']"
>
<Icon icon="ep:plus" class="mr-5px" /> 新增
</el-button>
@ -91,7 +91,7 @@
plain
@click="handleExport"
:loading="exportLoading"
v-hasPermi="['task:project:export']"
v-hasPermi="['tts:project:export']"
>
<Icon icon="ep:download" class="mr-5px" /> 导出
</el-button>
@ -217,9 +217,9 @@
v-if="scope.row.auditStatus === 2"
@command="(command) => handleCommand(command, scope.row)"
v-hasPermi="[
'task:project:create',
'task:project:addUser',
'task:project:update'
'tts:project:create',
'tts:project:addUser',
'tts:project:update'
]"
>
<el-button type="primary" link><Icon icon="ep:d-arrow-right" /> 更多</el-button>
@ -268,8 +268,8 @@
import { dateFormatter } from '@/utils/formatTime'
import download from '@/utils/download'
import { ProjectApi, ProjectVO } from '@/api/task/project'
import ProjectTaskForm from '../components/ProjectTaskForm.vue'
import ProjectBonusForm from '../components/ProjectBonusForm.vue'
import ProjectTaskForm from './components/ProjectTaskForm.vue'
import ProjectBonusForm from './components/ProjectBonusForm.vue'
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { checkPermi } from '@/utils/permission'
import * as UserApi from '@/api/system/user'
@ -443,4 +443,7 @@ onMounted(async() => {
userOptions.value = await UserApi.getSimpleUserList()
getList()
})
onActivated(()=>{
getList()
})
</script>