提交
This commit is contained in:
1 parent
493f8d6756
commit
d84f4b944c
406 files changed
+58954
-10376
No files matched your search
@@ -37,7 +37,11 @@
|
||||
>
|
||||
<el-icon><Edit /></el-icon>修改
|
||||
</el-button>
|
||||
<el-button v-if="hasContractPerm('remove')" class="btn-ghost" @click="handleDetailDelete">
|
||||
<el-button
|
||||
v-if="hasContractPerm('remove') && canDeleteByCreator(detailContract)"
|
||||
class="btn-ghost"
|
||||
@click="handleDetailDelete"
|
||||
>
|
||||
<el-icon><Delete /></el-icon>删除
|
||||
</el-button>
|
||||
<el-button
|
||||
@@ -161,19 +165,37 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="数量" prop="quantity" width="110" align="right" />
|
||||
<el-table-column label="含税单价(元)" prop="price" width="130" align="right">
|
||||
<el-table-column
|
||||
v-if="!hideProductPrice"
|
||||
label="含税单价(元)"
|
||||
prop="price"
|
||||
width="130"
|
||||
align="right"
|
||||
>
|
||||
<template #default="scope">
|
||||
<span v-if="detailContract.contractType === 'framework'" class="text-muted">随行就市</span>
|
||||
<span v-else class="money-display">¥{{ parseFloat(scope.row.price || 0).toFixed(2) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="含税总价(元)" prop="subtotal" width="130" align="right">
|
||||
<el-table-column
|
||||
v-if="!hideProductPrice"
|
||||
label="含税总价(元)"
|
||||
prop="subtotal"
|
||||
width="130"
|
||||
align="right"
|
||||
>
|
||||
<template #default="scope">
|
||||
<span v-if="detailContract.contractType === 'framework'" class="text-muted">随行就市</span>
|
||||
<span v-else class="money-display">¥{{ parseFloat(scope.row.subtotal || 0).toFixed(2) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="税费(元)" prop="taxAmount" width="120" align="right">
|
||||
<el-table-column
|
||||
v-if="!hideProductPrice"
|
||||
label="税费(元)"
|
||||
prop="taxAmount"
|
||||
width="120"
|
||||
align="right"
|
||||
>
|
||||
<template #default="scope">
|
||||
<span v-if="detailContract.contractType === 'framework'" class="text-muted">随行就市</span>
|
||||
<span v-else class="money-display">¥{{ parseFloat(scope.row.taxAmount || 0).toFixed(2) }}</span>
|
||||
@@ -198,7 +220,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<template v-if="detailContract.contractType === 'framework'">
|
||||
<template v-if="detailContract.contractType === 'framework' && !hideProductPrice">
|
||||
<el-divider content-position="left">框架合同调价明细</el-divider>
|
||||
<p class="text-muted" style="font-size: 13px; margin-bottom: 12px">按生效区间记录含税单价及调价函;后续结算可据此核对。</p>
|
||||
<div
|
||||
@@ -247,6 +269,7 @@
|
||||
</template>
|
||||
|
||||
<!-- 合计金额 -->
|
||||
<template v-if="!hideProductPrice">
|
||||
<el-divider />
|
||||
<div class="total-section">
|
||||
<el-row :gutter="20">
|
||||
@@ -320,6 +343,7 @@
|
||||
</el-card>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</template>
|
||||
</div>
|
||||
<el-empty v-else description="加载中..." />
|
||||
</el-tab-pane>
|
||||
@@ -573,7 +597,7 @@
|
||||
<el-descriptions-item label="完成说明" :span="2">
|
||||
<div class="remark-content">{{ detailContract?.remark || '-' }}</div>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="执行情况汇总" :span="2">
|
||||
<el-descriptions-item v-if="!hideProductPrice" label="执行情况汇总" :span="2">
|
||||
<el-row :gutter="20" class="mt-2">
|
||||
<el-col :span="8">
|
||||
<el-statistic title="合同金额(元)" :value="detailContract?.amount || 0" :precision="2" class="money-statistic">
|
||||
@@ -794,6 +818,7 @@ import DictTag from '@/components/DictTag/index.vue';
|
||||
import { $modal } from '@/utils/modal';
|
||||
import { parseTime } from '@/utils/format';
|
||||
import { useContractPerm } from '@/hooks/business/useContractPerm';
|
||||
import { canDeleteByCreator, filterDeletableByCreator, allRowsDeletableByCreator, CREATOR_DELETE_TIP } from '@/utils/creator-delete';
|
||||
import ApprovalDialog from './ApprovalDialog.vue';
|
||||
import ExecuteDialog from './ExecuteDialog.vue';
|
||||
import InvalidDialog from './InvalidDialog.vue';
|
||||
@@ -824,6 +849,15 @@ import {
|
||||
const dictStore = useDictStore();
|
||||
const router = useRouter();
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
hideProductPrice?: boolean
|
||||
}>(),
|
||||
{
|
||||
hideProductPrice: false
|
||||
}
|
||||
)
|
||||
|
||||
const visible = ref(false);
|
||||
const detailLoading = ref(false);
|
||||
const detailActiveTab = ref('contract');
|
||||
@@ -1330,7 +1364,9 @@ const detailBasicViewFields = computed<ViewField[]>(() => {
|
||||
long: false
|
||||
},
|
||||
{ label: '负责人', value: c.ownerUserName },
|
||||
{ label: '合同金额(元)', value: `¥${formatDetailAmount(c.amount)}`, money: true },
|
||||
...(props.hideProductPrice
|
||||
? []
|
||||
: [{ label: '合同金额(元)', value: `¥${formatDetailAmount(c.amount)}`, money: true }]),
|
||||
{ label: '交易主体', value: c.supplierName },
|
||||
detailTagField('结算方式', 'crm_settlement_method', c.settlementMethod)
|
||||
];
|
||||
|
||||
@@ -40,15 +40,6 @@
|
||||
</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="关联商机" prop="opportunityId">
|
||||
<el-input v-model="form.opportunityName" placeholder="请选择商机(可选)" readonly clearable>
|
||||
<template #append>
|
||||
<el-button text @click="handleSelectOpportunity">
|
||||
<el-icon><Search /></el-icon>
|
||||
</el-button>
|
||||
</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="关联报价单" prop="quoteId">
|
||||
<el-input v-model="form.quoteNo" placeholder="请选择报价单(可选)" readonly clearable>
|
||||
<template #append>
|
||||
@@ -501,14 +492,6 @@
|
||||
@confirm="handleContactConfirm"
|
||||
/>
|
||||
|
||||
<!-- 商机选择器 -->
|
||||
<OpportunitySelector
|
||||
:visible="opportunitySelectorVisible"
|
||||
@update:visible="opportunitySelectorVisible = $event"
|
||||
:customerId="form.customerId"
|
||||
@confirm="handleOpportunityConfirm"
|
||||
/>
|
||||
|
||||
<!-- 报价单选择器 -->
|
||||
<QuoteSelector
|
||||
:visible="quoteSelectorVisible"
|
||||
@@ -563,7 +546,6 @@ import { getQuote } from '@/api/crm/quote'
|
||||
import ProductSelector from './ProductSelector.vue'
|
||||
import CustomerSelector from '@/components/CustomerSelector.vue'
|
||||
import ContactSelector from '@/components/ContactSelector.vue'
|
||||
import OpportunitySelector from '@/components/OpportunitySelector.vue'
|
||||
import QuoteSelector from '@/components/QuoteSelector.vue'
|
||||
import ApprovalDialog from './ApprovalDialog.vue'
|
||||
import { getContactByCustomerId } from '@/api/crm/customer'
|
||||
|
||||
Reference in new issue
Block a user