diff --git a/src/views/mailManagement/ContractMail.vue b/src/views/mailManagement/ContractMail.vue index 5d9f011..f2e14bb 100644 --- a/src/views/mailManagement/ContractMail.vue +++ b/src/views/mailManagement/ContractMail.vue @@ -75,7 +75,7 @@ 打印 - 邮寄 + 邮寄 修改 查看物流 @@ -162,6 +162,13 @@ export default { ) }, + { + title: '合同类型', + align: 'center', + width: 100, + dataIndex: 'contractType_dictText', + scopedSlots: { customRender: 'text' } + }, { title: '邮寄联系人', align: 'center', @@ -224,15 +231,21 @@ export default { }) window.open(routerUrl.href, '_blank') }, - handleAdd(id) { + handleAdd(record) { + if (record.contractType + '' === '1') { + this.$refs.modalForm.add(record.id) + this.$refs.modalForm.title = '邮寄' + this.$refs.modalForm.disableSubmit = false + return + } let param = { - id: id + id: record.id } checkCompanyAduit(param).then(res => { if (res.success) { // 企业审核未成功不可进行邮寄操作 if (res.result.indexOf('审核未成功') === -1) { - this.$refs.modalForm.add(id) + this.$refs.modalForm.add(record.id) this.$refs.modalForm.title = '邮寄' this.$refs.modalForm.disableSubmit = false } else {