获取值

This commit is contained in:
JS-LM
2023-05-08 13:35:45 +08:00
parent 03e8c93fef
commit 26225b8b22

View File

@@ -108,7 +108,7 @@
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="clickInvoiceStatus(scope.row)" @click="clickInvoiceStatus(scope.$index)"
v-hasPermi="['order:invoice:edit']" v-hasPermi="['order:invoice:edit']"
>已开发票</el-button> >已开发票</el-button>
</template> </template>
@@ -159,7 +159,7 @@
点击确定将此记录更改为已开票状态 点击确定将此记录更改为已开票状态
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false"> </el-button> <el-button @click="dialogVisible = false"> </el-button>
<el-button type="primary" @click="updateInvoiceStatus()"> </el-button> <el-button type="primary" @click="updateInvoiceStatus"> </el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
@@ -172,6 +172,7 @@ export default {
name: "Invoice", name: "Invoice",
data() { data() {
return { return {
invoiceIndex:0,
// 遮罩层 // 遮罩层
loading: true, loading: true,
// 选中数组 // 选中数组
@@ -313,13 +314,16 @@ export default {
...this.queryParams ...this.queryParams
}, `invoice_${new Date().getTime()}.xlsx`) }, `invoice_${new Date().getTime()}.xlsx`)
}, },
clickInvoiceStatus(row) { clickInvoiceStatus(index) {
console.log("点击更改开票状态", row); console.log("点击更改开票状态",index);
this.invoiceIndex = index
this.dialogVisible = true; this.dialogVisible = true;
}, },
/** 修改申请开票状态 */ /** 修改申请开票状态 */
updateInvoiceStatus(row) { updateInvoiceStatus() {
console.log("修改申请开票状态", row); console.log("修改申请开票状态");
let _index = this.invoiceIndex
console.log(this.invoiceList[_index],'修改时获取当先项的值')
} }
} }
}; };