diff --git a/src/views/inout/InvoiceCkeck.vue b/src/views/inout/InvoiceCkeck.vue index aef041a..5abd0bf 100644 --- a/src/views/inout/InvoiceCkeck.vue +++ b/src/views/inout/InvoiceCkeck.vue @@ -349,7 +349,7 @@ export default { { required: true, message: "请输入发票编码", trigger: "blur" }, ], price: [{ required: true, message: "请输入发票价格", trigger: "blur" }], - remark: [{ required: true, message: "请输入备注", trigger: "blur" }], + invoiceDate: [{ required: true, message: "请输入备注", trigger: "blur" }], }, certFileUrl: "", Upinvoice: false, @@ -473,7 +473,7 @@ export default { components: { AcceptOrder, DialogInvoice, InvoiceRegister, ElImageViewer }, methods: { onSubmit() { - if (this.invoiceRow.length == 0) { + if (this.invoiceRow == null) { this.$message.error("请选择要登记的物资! "); return false; } @@ -493,8 +493,8 @@ export default { this.$message.error("发票价格不能为空!"); return; } - if (this.$isBlank(this.inputQuery.remark)) { - this.$message.error("备注不能为空!"); + if (this.$isBlank(this.inputQuery.invoiceDate)) { + this.$message.error("日期不能为空!"); return; } this.inputQuery.list = this.invoiceRow; diff --git a/src/views/inout/InvoiceRegistration.vue b/src/views/inout/InvoiceRegistration.vue index 3702053..8840a96 100644 --- a/src/views/inout/InvoiceRegistration.vue +++ b/src/views/inout/InvoiceRegistration.vue @@ -196,7 +196,7 @@