diff --git a/src/api/bpm/model/index.ts b/src/api/bpm/model/index.ts index d0547207..2e1d4e64 100644 --- a/src/api/bpm/model/index.ts +++ b/src/api/bpm/model/index.ts @@ -33,10 +33,6 @@ export const getModel = async (id: number) => { return await request.get({ url: '/bpm/model/get?id=' + id }) } -export const getModelByKey = async (key: string) => { - return await request.get({ url: '/bpm/model/get-by-key?key=' + key }) -} - export const updateModel = async (data: ModelVO) => { return await request.put({ url: '/bpm/model/update', data: data }) } diff --git a/src/api/crm/contract/index.ts b/src/api/crm/contract/index.ts index 5b770d45..9d718c23 100644 --- a/src/api/crm/contract/index.ts +++ b/src/api/crm/contract/index.ts @@ -68,8 +68,8 @@ export const exportContract = async (params) => { } // 提交审核 -export const handleApprove = async (id: number) => { - return await request.put({ url: `/crm/contract/approve?id=${id}` }) +export const submitContract = async (id: number) => { + return await request.put({ url: `/crm/contract/submit?id=${id}` }) } // 合同转移 diff --git a/src/views/crm/contract/ContractForm.vue b/src/views/crm/contract/ContractForm.vue index b955f3d4..b0425f17 100644 --- a/src/views/crm/contract/ContractForm.vue +++ b/src/views/crm/contract/ContractForm.vue @@ -1,5 +1,5 @@ diff --git a/src/views/crm/contract/components/ProductList.vue b/src/views/crm/contract/components/ProductList.vue index d0c32bf4..ed4ce6f1 100644 --- a/src/views/crm/contract/components/ProductList.vue +++ b/src/views/crm/contract/components/ProductList.vue @@ -4,37 +4,56 @@ 添加产品 - - + + + + + + - + fixed="right" + label="折扣(%)" + prop="discountPercent" + width="120" + > - + - - - - + @@ -66,7 +85,7 @@ import * as ProductApi from '@/api/crm/product' import { DICT_TYPE } from '@/utils/dict' import { fenToYuanFormat } from '@/utils/formatter' import { TableSelectForm } from '@/components/Table/index' -import { floatToFixed2, yuanToFen } from '@/utils' +import { fenToYuan, floatToFixed2, yuanToFen } from '@/utils' defineOptions({ name: 'ProductList' }) const props = withDefaults(defineProps<{ modelValue: ProductApi.ProductExpandVO[] }>(), { diff --git a/src/views/crm/contract/detail/index.vue b/src/views/crm/contract/detail/index.vue index 5973a68a..8ea43fb1 100644 --- a/src/views/crm/contract/detail/index.vue +++ b/src/views/crm/contract/detail/index.vue @@ -10,15 +10,16 @@ - + + + - - - + + + + + + diff --git a/src/views/crm/contract/index.vue b/src/views/crm/contract/index.vue index 7fc6b9c9..417392d3 100644 --- a/src/views/crm/contract/index.vue +++ b/src/views/crm/contract/index.vue @@ -54,7 +54,6 @@ - @@ -145,12 +144,12 @@ > 编辑 - + 提交审核 @@ -274,9 +273,9 @@ const handleExport = async () => { } /** 提交审核 **/ -const handleApprove = async (row: ContractApi.ContractVO) => { +const handleSubmit = async (row: ContractApi.ContractVO) => { await message.confirm(`您确定提交【${row.name}】审核吗?`) - await ContractApi.handleApprove(row.id) + await ContractApi.submitContract(row.id) message.success('提交审核成功!') await getList() } diff --git a/src/views/crm/contract/oa/ContractDetail/index.vue b/src/views/crm/contract/oa/ContractDetail/index.vue index eda87394..118ff182 100644 --- a/src/views/crm/contract/oa/ContractDetail/index.vue +++ b/src/views/crm/contract/oa/ContractDetail/index.vue @@ -1,4 +1,4 @@ - +