mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-03 09:29:59 +08:00
update
This commit is contained in:
@@ -17,14 +17,21 @@
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!--<el-form-item label="开票总金额" prop="totalAmount">
|
||||
<el-input
|
||||
v-model="queryParams.totalAmount"
|
||||
placeholder="请输入开票总金额"
|
||||
<el-form-item label="状态" prop="status">
|
||||
<el-select
|
||||
v-model="queryParams.status"
|
||||
placeholder="开票状态"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>-->
|
||||
style="width: 140px"
|
||||
>
|
||||
<el-option
|
||||
v-for="dict in dict.type.invoice_status"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!--<el-form-item label="总服务费金额" prop="totalServiceAmount">
|
||||
<el-input
|
||||
v-model="queryParams.totalServiceAmount"
|
||||
@@ -98,17 +105,25 @@
|
||||
<!--<el-table-column label="" align="center" prop="id" />-->
|
||||
<el-table-column label="会员id" align="center" prop="memberId" />
|
||||
<el-table-column label="申请订单编号" align="center" prop="orderCodes" />
|
||||
<el-table-column label="状态" align="center" prop="status" />
|
||||
<el-table-column label="状态" align="center" prop="status" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag
|
||||
:options="dict.type.invoice_status"
|
||||
:value="scope.row.status"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="开票总金额" align="center" prop="totalAmount" />
|
||||
<el-table-column label="总服务费金额" align="center" prop="totalServiceAmount" />
|
||||
<el-table-column label="总电费金额" align="center" prop="totalElecAmount" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
v-if="scope.row.status === '0'"
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="clickInvoiceStatus(scope.$index)"
|
||||
@click="clickInvoiceStatus(scope.row.id)"
|
||||
v-hasPermi="['order:invoice:edit']"
|
||||
>已开发票</el-button>
|
||||
</template>
|
||||
@@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user