mirror of
https://github.com/hpd840321/craftlabs-authorization-sdk.git
synced 2026-06-09 10:00:30 +08:00
feat(m2): add signing/effective/end date fields to contracts
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
</el-tag>
|
||||
</div>
|
||||
<div v-if="contract && isDraft" class="head-actions">
|
||||
<el-button type="primary" :loading="saving" @click="saveHeader">保存</el-button>
|
||||
<el-button v-permission="'contract:rw'" type="primary" :loading="saving" @click="saveHeader">保存</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -39,6 +39,7 @@
|
||||
<div v-if="transitionButtons.length" class="transition-bar">
|
||||
<span class="label">状态操作:</span>
|
||||
<el-button
|
||||
v-permission="'contract:rw'"
|
||||
v-for="btn in transitionButtons"
|
||||
:key="btn.status"
|
||||
:type="btn.danger ? 'danger' : 'primary'"
|
||||
@@ -51,7 +52,7 @@
|
||||
|
||||
<h3 class="section-title">合同明细</h3>
|
||||
<div v-if="isDraft" class="line-toolbar">
|
||||
<el-button type="primary" @click="openLineDialog()">添加明细</el-button>
|
||||
<el-button v-permission="'contract:rw'" type="primary" @click="openLineDialog()">添加明细</el-button>
|
||||
</div>
|
||||
<el-table :data="lineRows" border stripe style="width: 100%">
|
||||
<el-table-column prop="itemName" label="标的/行项" min-width="200" show-overflow-tooltip />
|
||||
@@ -60,8 +61,8 @@
|
||||
<el-table-column prop="amount" label="金额" width="120" />
|
||||
<el-table-column v-if="isDraft" label="操作" width="140" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button type="primary" link @click="openLineDialog(row)">编辑</el-button>
|
||||
<el-button type="danger" link @click="onDeleteLine(row)">删除</el-button>
|
||||
<el-button v-permission="'contract:rw'" type="primary" link @click="openLineDialog(row)">编辑</el-button>
|
||||
<el-button v-permission="'contract:rw'" type="danger" link @click="onDeleteLine(row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -75,7 +76,7 @@
|
||||
:on-change="handleFileChange"
|
||||
:accept="'.pdf,.doc,.docx,.xls,.xlsx,.zip'"
|
||||
>
|
||||
<el-button type="primary" v-if="isDraft || isEffective">上传附件</el-button>
|
||||
<el-button v-permission="'contract:rw'" type="primary" v-if="isDraft || isEffective">上传附件</el-button>
|
||||
</el-upload>
|
||||
<el-table :data="attachments" stripe size="small" style="margin-top:8px">
|
||||
<el-table-column prop="fileName" label="文件名" min-width="200" />
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
<div class="footer-actions">
|
||||
<el-button v-if="step > 0" @click="step -= 1">上一步</el-button>
|
||||
<el-button v-if="step < 2" type="primary" @click="nextStep">下一步</el-button>
|
||||
<el-button v-if="step === 2" type="primary" :loading="submitting" @click="submit">提交创建(草稿)</el-button>
|
||||
<el-button v-permission="'contract:rw'" v-if="step === 2" type="primary" :loading="submitting" @click="submit">提交创建(草稿)</el-button>
|
||||
</div>
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user