mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-02 13:07:57 +08:00
update
This commit is contained in:
@@ -17,14 +17,21 @@
|
|||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!--<el-form-item label="开票总金额" prop="totalAmount">
|
<el-form-item label="状态" prop="status">
|
||||||
<el-input
|
<el-select
|
||||||
v-model="queryParams.totalAmount"
|
v-model="queryParams.status"
|
||||||
placeholder="请输入开票总金额"
|
placeholder="开票状态"
|
||||||
clearable
|
clearable
|
||||||
@keyup.enter.native="handleQuery"
|
style="width: 140px"
|
||||||
/>
|
>
|
||||||
</el-form-item>-->
|
<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-form-item label="总服务费金额" prop="totalServiceAmount">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.totalServiceAmount"
|
v-model="queryParams.totalServiceAmount"
|
||||||
@@ -98,17 +105,25 @@
|
|||||||
<!--<el-table-column label="" align="center" prop="id" />-->
|
<!--<el-table-column label="" align="center" prop="id" />-->
|
||||||
<el-table-column label="会员id" align="center" prop="memberId" />
|
<el-table-column label="会员id" align="center" prop="memberId" />
|
||||||
<el-table-column label="申请订单编号" align="center" prop="orderCodes" />
|
<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="totalAmount" />
|
||||||
<el-table-column label="总服务费金额" align="center" prop="totalServiceAmount" />
|
<el-table-column label="总服务费金额" align="center" prop="totalServiceAmount" />
|
||||||
<el-table-column label="总电费金额" align="center" prop="totalElecAmount" />
|
<el-table-column label="总电费金额" align="center" prop="totalElecAmount" />
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
|
v-if="scope.row.status === '0'"
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="clickInvoiceStatus(scope.$index)"
|
@click="clickInvoiceStatus(scope.row.id)"
|
||||||
v-hasPermi="['order:invoice:edit']"
|
v-hasPermi="['order:invoice:edit']"
|
||||||
>已开发票</el-button>
|
>已开发票</el-button>
|
||||||
</template>
|
</template>
|
||||||
@@ -170,9 +185,11 @@ import { listInvoice, getInvoice, delInvoice, addInvoice, updateInvoice } from "
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Invoice",
|
name: "Invoice",
|
||||||
|
dicts: ["invoice_status"],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
invoiceIndex:0,
|
// 需要修改的id
|
||||||
|
updateInvoiceId: null,
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: true,
|
||||||
// 选中数组
|
// 选中数组
|
||||||
@@ -314,16 +331,21 @@ export default {
|
|||||||
...this.queryParams
|
...this.queryParams
|
||||||
}, `invoice_${new Date().getTime()}.xlsx`)
|
}, `invoice_${new Date().getTime()}.xlsx`)
|
||||||
},
|
},
|
||||||
clickInvoiceStatus(index) {
|
clickInvoiceStatus(id) {
|
||||||
console.log("点击更改开票状态",index);
|
console.log("点击更改开票状态",id);
|
||||||
this.invoiceIndex = index
|
this.updateInvoiceId = id
|
||||||
this.dialogVisible = true;
|
this.dialogVisible = true;
|
||||||
},
|
},
|
||||||
/** 修改申请开票状态 */
|
/** 修改申请开票状态 */
|
||||||
updateInvoiceStatus() {
|
updateInvoiceStatus() {
|
||||||
console.log("修改申请开票状态");
|
console.log('修改申请开票状态', this.updateInvoiceId);
|
||||||
let _index = this.invoiceIndex
|
this.form.id = this.updateInvoiceId;
|
||||||
console.log(this.invoiceList[_index],'修改时获取当先项的值')
|
this.form.status = "1";
|
||||||
|
updateInvoice(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.dialogVisible = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user