|
@@ -84,14 +84,26 @@
|
|
|
</sa-td>
|
|
|
<el-table-column label="操作" width="415px" fixed="right">
|
|
|
<template slot-scope="s">
|
|
|
- <el-button class="c-btn" type="success" @click="get(s.row)">查看</el-button>
|
|
|
- <el-button class="c-btn" type="primary"
|
|
|
- v-if="(currentCustomerId=='1'||sa.isAuth('tb-supplement-push'))&&(s.row.sendOa==0||s.row.oaResult==='审批驳回')"
|
|
|
- @click="applyFn(s.row)">发起审批</el-button>
|
|
|
+
|
|
|
+ <el-button class="c-btn" type="primary"
|
|
|
+ v-if="(currentCustomerId=='1'||sa.isAuth('tb-supplement-push'))&&(s.row.sendOa==0||s.row.oaResult==='审批驳回')"
|
|
|
+ @click="applyFn(s.row)">发起审批</el-button>
|
|
|
+ <el-button class="c-btn" type="primary" v-if="sa.isAuth('tb-flex-business-confirm')
|
|
|
+ &¤tCustomerId=='1'&&s.row.adminConfirmInput==0" @click="confirmFn(s.row)">账单确认</el-button>
|
|
|
<el-button class="c-btn" type="primary"
|
|
|
v-if="(currentCustomerId=='1'||sa.isAuth('tb-supplement-edit'))&&(s.row.sendOa==0||s.row.oaResult==='审批驳回')"
|
|
|
@click="update(s.row)">
|
|
|
修改</el-button>
|
|
|
+ <el-button class="c-btn" type="success" @click="get(s.row)">查看</el-button>
|
|
|
+ <el-button v-if="sa.isAuth('tb-flex-business-edit')" class="c-btn" type="primary"
|
|
|
+ @click="carFn(s.row)">车辆管理
|
|
|
+ </el-button>
|
|
|
+ <el-button class="c-btn" type="primary" v-if="(currentCustomerId=='1'||(sa.isAuth('tb-flex-business-pay')))
|
|
|
+ &&s.row.payStatus!=3" @click="handlerPay(s.row)">
|
|
|
+ 线下收费</el-button>
|
|
|
+ <el-button v-if="sa.isAuth('tb-business-car-bind')" class="c-btn" type="primary"
|
|
|
+ @click="businessFn(s.row)">绑定车辆
|
|
|
+ </el-button>
|
|
|
<el-button class="c-btn" type="danger"
|
|
|
v-if="(currentCustomerId=='1'||sa.isAuth('tb-supplement-del'))&&s.row.sendOa==0"
|
|
|
@click="del(s.row)">删除
|
|
@@ -150,6 +162,27 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
+ <el-dialog :title="confirm.title" :visible.sync="confirm.visible" width="650px">
|
|
|
+ <div class="confirm-info">
|
|
|
+ <el-row>
|
|
|
+ <sa-info name="订单号" br>{{confirm.form.no}}</sa-info>
|
|
|
+ <sa-info :name="item.itemName" br v-for="item in confirm.form.items">
|
|
|
+ {{item.itemPrice}}x{{item.num}}={{item.total}}元
|
|
|
+ </sa-info>
|
|
|
+ <sa-info name="创建时间" br>{{confirm.form.createTime}}</sa-info>
|
|
|
+ <sa-info name="总计费用" br>{{confirm.form.itemPrice}}(元)</sa-info>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <div v-if="confirm.form.adminConfirmInput==0">
|
|
|
+ <el-button @click="confirm.visible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="sureConfirmFn">确 认</el-button>
|
|
|
+ </div>
|
|
|
+ <div v-else>
|
|
|
+ <el-button @click="confirm.visible = false">关闭</el-button>
|
|
|
+ </div>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
<script>
|
|
|
var app = new Vue({
|
|
@@ -253,6 +286,27 @@
|
|
|
this.perCode = resp.data;
|
|
|
}.bind(this))
|
|
|
},
|
|
|
+ confirmFn(data) {
|
|
|
+ sa.ajax('/TbBusinessItem/getList', {
|
|
|
+ businessId: data.id
|
|
|
+ }, function(resp) {
|
|
|
+ data.items = resp.data;
|
|
|
+ Object.assign(this.confirm, {
|
|
|
+ visible: true,
|
|
|
+ title: '账单确认',
|
|
|
+ form: data,
|
|
|
+ })
|
|
|
+ this.confirm.form.ids = data.id;
|
|
|
+ }.bind(this));
|
|
|
+ },
|
|
|
+ sureConfirmFn() {
|
|
|
+ sa.ajax('/TbBusiness/confirm', {
|
|
|
+ ids: this.confirm.form.ids
|
|
|
+ }, function(resp) {
|
|
|
+ this.confirm.visible = false;
|
|
|
+ this.f5();
|
|
|
+ }.bind(this))
|
|
|
+ },
|
|
|
// 删除
|
|
|
del: function(data) {
|
|
|
sa.confirm('是否删除,此操作不可撤销', function() {
|