提交
This commit is contained in:
1 parent
33c038b8d9
commit
54b27a3f0e
253 files changed
+30060
-14298
No files matched your search
@@ -14,7 +14,9 @@
|
||||
ref="formRef"
|
||||
:model="form"
|
||||
:rules="rules"
|
||||
label-position="top"
|
||||
label-position="right"
|
||||
label-width="100px"
|
||||
class="crm-dialog-form"
|
||||
scroll-to-error
|
||||
:scroll-into-view-options="{ behavior: 'smooth', block: 'center' }"
|
||||
>
|
||||
|
||||
@@ -38,7 +38,11 @@
|
||||
<el-icon><Edit /></el-icon>修改
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="hasContractPerm('remove') && canDeleteByCreator(detailContract)"
|
||||
v-if="
|
||||
hasContractPerm('remove') &&
|
||||
detailContract?.status === 'draft' &&
|
||||
canDeleteByCreator(detailContract)
|
||||
"
|
||||
class="btn-ghost"
|
||||
@click="handleDetailDelete"
|
||||
>
|
||||
@@ -361,7 +365,14 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-body list-wrap">
|
||||
<el-table :data="detailPaymentList" class="list-table" stripe v-loading="detailPaymentLoading" empty-text="暂无回款记录">
|
||||
<el-table
|
||||
:data="detailPaymentList"
|
||||
class="list-table"
|
||||
stripe
|
||||
v-loading="detailPaymentLoading"
|
||||
empty-text="暂无回款记录"
|
||||
@row-dblclick="handleDetailViewPayment"
|
||||
>
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" header-align="center" />
|
||||
<el-table-column label="回款单号" prop="paymentNo" min-width="150" align="center" header-align="center">
|
||||
<template #default="scope">
|
||||
@@ -402,7 +413,14 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-body list-wrap">
|
||||
<el-table :data="detailInvoiceList" class="list-table" stripe v-loading="detailInvoiceLoading" empty-text="暂无开票记录">
|
||||
<el-table
|
||||
:data="detailInvoiceList"
|
||||
class="list-table"
|
||||
stripe
|
||||
v-loading="detailInvoiceLoading"
|
||||
empty-text="暂无开票记录"
|
||||
@row-dblclick="handleDetailViewInvoice"
|
||||
>
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" header-align="center" />
|
||||
<el-table-column label="发票号码" prop="invoiceNo" min-width="150" align="center" header-align="center">
|
||||
<template #default="scope">
|
||||
@@ -721,11 +739,6 @@
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</div>
|
||||
<template #footer>
|
||||
<el-button class="btn-ghost" @click="visible = false">
|
||||
<el-icon><Close /></el-icon>关闭
|
||||
</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
<!-- 生成合同对话框 -->
|
||||
<el-dialog
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
@opened="handleOpened"
|
||||
>
|
||||
<div class="contract-form-body">
|
||||
<el-form ref="formRef" :model="form" :rules="rules" label-position="top" label-width="120px">
|
||||
<el-form ref="formRef" :model="form" :rules="rules" label-position="right" label-width="120px" class="crm-dialog-form">
|
||||
<!-- 合同基础信息(一行 5 列) -->
|
||||
<div class="contract-basic-info">
|
||||
<el-form-item label="合同编号" prop="contractNo">
|
||||
@@ -128,45 +128,29 @@
|
||||
<div class="parties-row">
|
||||
<div class="party-panel">
|
||||
<div class="party-panel__title">供方信息</div>
|
||||
<el-row :gutter="12">
|
||||
<el-col :span="6">
|
||||
<el-form-item label="单位名称(章)" prop="partyA">
|
||||
<el-input v-model="form.partyA" placeholder="请输入单位名称" maxlength="100" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="单位地址" prop="partyAAddress">
|
||||
<el-input v-model="form.partyAAddress" placeholder="请输入单位地址" maxlength="200" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="法定代表人" prop="partyALegalPerson">
|
||||
<el-input v-model="form.partyALegalPerson" placeholder="请输入法定代表人" maxlength="100" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="代理人" prop="partyAAgent">
|
||||
<el-input v-model="form.partyAAgent" placeholder="请输入代理人(可选)" maxlength="100" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="12">
|
||||
<el-col :span="6">
|
||||
<el-form-item label="电话/传真" prop="partyAPhoneFax">
|
||||
<el-input v-model="form.partyAPhoneFax" placeholder="请输入电话/传真" maxlength="100" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="开户银行" prop="partyABank">
|
||||
<el-input v-model="form.partyABank" placeholder="请输入开户银行" maxlength="200" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="账号" prop="partyAAccount">
|
||||
<el-input v-model="form.partyAAccount" placeholder="请输入账号" maxlength="100" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<div class="form-grid-3">
|
||||
<el-form-item label="单位名称(章)" prop="partyA">
|
||||
<el-input v-model="form.partyA" placeholder="请输入单位名称" maxlength="100" />
|
||||
</el-form-item>
|
||||
<el-form-item label="单位地址" prop="partyAAddress">
|
||||
<el-input v-model="form.partyAAddress" placeholder="请输入单位地址" maxlength="200" />
|
||||
</el-form-item>
|
||||
<el-form-item label="法定代表人" prop="partyALegalPerson">
|
||||
<el-input v-model="form.partyALegalPerson" placeholder="请输入法定代表人" maxlength="100" />
|
||||
</el-form-item>
|
||||
<el-form-item label="代理人" prop="partyAAgent">
|
||||
<el-input v-model="form.partyAAgent" placeholder="请输入代理人(可选)" maxlength="100" />
|
||||
</el-form-item>
|
||||
<el-form-item label="电话/传真" prop="partyAPhoneFax">
|
||||
<el-input v-model="form.partyAPhoneFax" placeholder="请输入电话/传真" maxlength="100" />
|
||||
</el-form-item>
|
||||
<el-form-item label="开户银行" prop="partyABank">
|
||||
<el-input v-model="form.partyABank" placeholder="请输入开户银行" maxlength="200" />
|
||||
</el-form-item>
|
||||
<el-form-item label="账号" prop="partyAAccount">
|
||||
<el-input v-model="form.partyAAccount" placeholder="请输入账号" maxlength="100" />
|
||||
</el-form-item>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="party-flow-bridge" aria-hidden="true">
|
||||
@@ -192,45 +176,29 @@
|
||||
|
||||
<div class="party-panel">
|
||||
<div class="party-panel__title">需方信息</div>
|
||||
<el-row :gutter="12">
|
||||
<el-col :span="6">
|
||||
<el-form-item label="单位名称(章)" prop="partyB">
|
||||
<el-input v-model="form.partyB" placeholder="从客户开票信息带出" maxlength="200" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="单位地址" prop="partyBAddress">
|
||||
<el-input v-model="form.partyBAddress" placeholder="从客户开票信息带出" maxlength="500" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="法定代表人" prop="partyBLegalPerson">
|
||||
<el-input v-model="form.partyBLegalPerson" placeholder="从客户开票信息带出" maxlength="100" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="代理人" prop="partyBAgent">
|
||||
<el-input v-model="form.partyBAgent" placeholder="从客户开票信息带出(可选)" maxlength="100" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="12">
|
||||
<el-col :span="6">
|
||||
<el-form-item label="电话/传真" prop="partyBPhoneFax">
|
||||
<el-input v-model="form.partyBPhoneFax" placeholder="从客户开票信息带出" maxlength="100" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="开户银行" prop="partyBBank">
|
||||
<el-input v-model="form.partyBBank" placeholder="从客户开票信息带出" maxlength="200" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="账号" prop="partyBAccount">
|
||||
<el-input v-model="form.partyBAccount" placeholder="从客户开票信息带出" maxlength="100" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<div class="form-grid-3">
|
||||
<el-form-item label="单位名称(章)" prop="partyB">
|
||||
<el-input v-model="form.partyB" placeholder="从客户开票信息带出" maxlength="200" />
|
||||
</el-form-item>
|
||||
<el-form-item label="单位地址" prop="partyBAddress">
|
||||
<el-input v-model="form.partyBAddress" placeholder="从客户开票信息带出" maxlength="500" />
|
||||
</el-form-item>
|
||||
<el-form-item label="法定代表人" prop="partyBLegalPerson">
|
||||
<el-input v-model="form.partyBLegalPerson" placeholder="从客户开票信息带出" maxlength="100" />
|
||||
</el-form-item>
|
||||
<el-form-item label="代理人" prop="partyBAgent">
|
||||
<el-input v-model="form.partyBAgent" placeholder="从客户开票信息带出(可选)" maxlength="100" />
|
||||
</el-form-item>
|
||||
<el-form-item label="电话/传真" prop="partyBPhoneFax">
|
||||
<el-input v-model="form.partyBPhoneFax" placeholder="从客户开票信息带出" maxlength="100" />
|
||||
</el-form-item>
|
||||
<el-form-item label="开户银行" prop="partyBBank">
|
||||
<el-input v-model="form.partyBBank" placeholder="从客户开票信息带出" maxlength="200" />
|
||||
</el-form-item>
|
||||
<el-form-item label="账号" prop="partyBAccount">
|
||||
<el-input v-model="form.partyBAccount" placeholder="从客户开票信息带出" maxlength="100" />
|
||||
</el-form-item>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -2108,10 +2076,6 @@ const loadSupplierList = async () => {
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
|
||||
:deep(.el-row + .el-row) {
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
:deep(.el-form-item) {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,9 @@
|
||||
ref="formRef"
|
||||
:model="form"
|
||||
:rules="rules"
|
||||
label-position="top"
|
||||
label-position="right"
|
||||
label-width="100px"
|
||||
class="crm-dialog-form"
|
||||
scroll-to-error
|
||||
:scroll-into-view-options="{ behavior: 'smooth', block: 'center' }"
|
||||
>
|
||||
|
||||
@@ -21,7 +21,9 @@
|
||||
ref="formRef"
|
||||
:model="form"
|
||||
:rules="rules"
|
||||
label-position="top"
|
||||
label-position="right"
|
||||
label-width="100px"
|
||||
class="crm-dialog-form"
|
||||
scroll-to-error
|
||||
:scroll-into-view-options="{ behavior: 'smooth', block: 'center' }"
|
||||
>
|
||||
|
||||
@@ -65,7 +65,6 @@
|
||||
class="list-table"
|
||||
stripe
|
||||
@selection-change="handleSelectionChange"
|
||||
@row-click="handleRowClick"
|
||||
:max-height="400"
|
||||
>
|
||||
<el-table-column type="selection" min-width="55" align="center" header-align="center" />
|
||||
@@ -308,13 +307,6 @@ const handleSelectionChange = (selection: ProductVO[]) => {
|
||||
selectedProducts.value = selection;
|
||||
};
|
||||
|
||||
/** 单击行选中/取消选中产品(点击复选框列时不重复切换) */
|
||||
const handleRowClick = (row: ProductVO, _column: unknown, event: MouseEvent) => {
|
||||
const target = event.target as HTMLElement
|
||||
if (target.closest('.el-checkbox')) return
|
||||
tableRef.value?.toggleRowSelection(row)
|
||||
}
|
||||
|
||||
/** 移除已选产品 */
|
||||
const handleRemoveSelection = (product: ProductVO) => {
|
||||
const index = selectedProducts.value.findIndex((p) => p.id === product.id);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<el-dialog v-model="visible" title="合同续签" width="800px" :close-on-click-modal="false" @close="handleClose">
|
||||
<el-alert title="提示" type="info" :closable="false" class="mb-4"> 系统将自动复制原合同信息,您可以修改金额、期限等字段 </el-alert>
|
||||
|
||||
<el-form ref="formRef" :model="form" :rules="rules" label-width="120px">
|
||||
<el-form ref="formRef" :model="form" :rules="rules" label-position="right" label-width="120px" class="crm-dialog-form">
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="原合同" prop="parentContractId">
|
||||
|
||||
Reference in new issue
Block a user