|
@@ -181,6 +181,20 @@
|
|
|
</div>
|
|
</div>
|
|
|
<p class="detail-description">{{ form.remark }}</p>
|
|
<p class="detail-description">{{ form.remark }}</p>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 附件 -->
|
|
|
|
|
+ <div class="detail-section-card detail-section-card--gap">
|
|
|
|
|
+ <div class="detail-section-head">
|
|
|
|
|
+ <h3>附件</h3>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <fileMain
|
|
|
|
|
+ v-if="approvalFileIds.length"
|
|
|
|
|
+ v-model="approvalFileIds"
|
|
|
|
|
+ type="view"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ />
|
|
|
|
|
+ <p v-else class="detail-description">暂无附件</p>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</main>
|
|
</main>
|
|
|
</template>
|
|
</template>
|
|
@@ -307,7 +321,9 @@ export default {
|
|
|
/** 该员工最新入职物品领用单号 */
|
|
/** 该员工最新入职物品领用单号 */
|
|
|
receiptCode: '',
|
|
receiptCode: '',
|
|
|
/** 员工缓存:接收人 / 交接人姓名回显 */
|
|
/** 员工缓存:接收人 / 交接人姓名回显 */
|
|
|
- employeeMap: {}
|
|
|
|
|
|
|
+ employeeMap: {},
|
|
|
|
|
+ /** 附件文件 ID 列表 */
|
|
|
|
|
+ approvalFileIds: []
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -352,6 +368,8 @@ export default {
|
|
|
const detail = await getHandoverById(id);
|
|
const detail = await getHandoverById(id);
|
|
|
this.form = this.mapForm(detail);
|
|
this.form = this.mapForm(detail);
|
|
|
this.items = this.mapItems(detail);
|
|
this.items = this.mapItems(detail);
|
|
|
|
|
+ const attachId = pick(detail, ['approvalDocumentFileId', 'attachmentFileId']);
|
|
|
|
|
+ this.approvalFileIds = attachId ? [attachId] : [];
|
|
|
await Promise.all([
|
|
await Promise.all([
|
|
|
this.loadEmployee(this.form.userId),
|
|
this.loadEmployee(this.form.userId),
|
|
|
this.loadReceivers(detail),
|
|
this.loadReceivers(detail),
|
|
@@ -363,6 +381,7 @@ export default {
|
|
|
this.assetRows = [];
|
|
this.assetRows = [];
|
|
|
this.receiptCode = '';
|
|
this.receiptCode = '';
|
|
|
this.employeeMap = {};
|
|
this.employeeMap = {};
|
|
|
|
|
+ this.approvalFileIds = [];
|
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
|
console.warn('[ResignationHandoverOrderDetail] 加载交接单失败:', error);
|
|
console.warn('[ResignationHandoverOrderDetail] 加载交接单失败:', error);
|
|
|
}
|
|
}
|