diff --git a/jsowell-ui/src/views/order/invoice/index.vue b/jsowell-ui/src/views/order/invoice/index.vue index b5ffa0936..47a8097a1 100644 --- a/jsowell-ui/src/views/order/invoice/index.vue +++ b/jsowell-ui/src/views/order/invoice/index.vue @@ -17,14 +17,21 @@ @keyup.enter.native="handleQuery" /> - + style="width: 140px" + > + + + - + + + @@ -170,9 +185,11 @@ import { listInvoice, getInvoice, delInvoice, addInvoice, updateInvoice } from " export default { name: "Invoice", + dicts: ["invoice_status"], data() { return { - invoiceIndex:0, + // 需要修改的id + updateInvoiceId: null, // 遮罩层 loading: true, // 选中数组 @@ -314,16 +331,21 @@ export default { ...this.queryParams }, `invoice_${new Date().getTime()}.xlsx`) }, - clickInvoiceStatus(index) { - console.log("点击更改开票状态",index); - this.invoiceIndex = index + clickInvoiceStatus(id) { + console.log("点击更改开票状态",id); + this.updateInvoiceId = id this.dialogVisible = true; }, /** 修改申请开票状态 */ updateInvoiceStatus() { - console.log("修改申请开票状态"); - let _index = this.invoiceIndex - console.log(this.invoiceList[_index],'修改时获取当先项的值') + console.log('修改申请开票状态', this.updateInvoiceId); + this.form.id = this.updateInvoiceId; + this.form.status = "1"; + updateInvoice(this.form).then(response => { + this.$modal.msgSuccess("修改成功"); + this.dialogVisible = false; + this.getList(); + }); } } };