diff --git a/src/views/mailManagement/BillMail.vue b/src/views/mailManagement/BillMail.vue index 58a720a..d9fd968 100644 --- a/src/views/mailManagement/BillMail.vue +++ b/src/views/mailManagement/BillMail.vue @@ -84,7 +84,7 @@ 打印 - 邮寄 + 邮寄 修改 查看物流 @@ -199,8 +199,8 @@ export default { const com = Number(record.sendMethod) === 1 && 'ems' || 'shunfeng' window.open(`https://www.kuaidi100.com/chaxun?com=${com}&nu=${record.postNo}`) }, - handleAdd: function () { - this.$refs.modalForm.add() + handleAdd: function (id) { + this.$refs.modalForm.add(id) this.$refs.modalForm.title = '邮寄' this.$refs.modalForm.disableSubmit = false }, diff --git a/src/views/mailManagement/ContractMail.vue b/src/views/mailManagement/ContractMail.vue index 3415de2..aec2ada 100644 --- a/src/views/mailManagement/ContractMail.vue +++ b/src/views/mailManagement/ContractMail.vue @@ -68,7 +68,7 @@ 打印 - 邮寄 + 邮寄 修改 查看物流 @@ -182,8 +182,8 @@ export default { const com = Number(record.sendMethod) === 1 && 'ems' || 'shunfeng' window.open(`https://www.kuaidi100.com/chaxun?com=${com}&nu=${record.postNo}`) }, - handleAdd: function () { - this.$refs.modalForm.add() + handleAdd: function (id) { + this.$refs.modalForm.add(id) this.$refs.modalForm.title = '邮寄' this.$refs.modalForm.disableSubmit = false }, diff --git a/src/views/mailManagement/modules/MailContractModal.vue b/src/views/mailManagement/modules/MailContractModal.vue index 08be1ce..7560da2 100644 --- a/src/views/mailManagement/modules/MailContractModal.vue +++ b/src/views/mailManagement/modules/MailContractModal.vue @@ -108,8 +108,8 @@ export default { } }, methods: { - add() { - this.edit({}) + add(id) { + this.edit({id}) }, edit(record) { this.form.resetFields() diff --git a/src/views/mailManagement/modules/MailModal.vue b/src/views/mailManagement/modules/MailModal.vue index c072e8e..2377b5b 100644 --- a/src/views/mailManagement/modules/MailModal.vue +++ b/src/views/mailManagement/modules/MailModal.vue @@ -109,8 +109,8 @@ export default { } }, methods: { - add() { - this.edit({}) + add(id) { + this.edit({id}) }, edit(record) { this.form.resetFields()