123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>预充值扣费记录-列表</title>
- <meta charset="utf-8">
- <meta name="viewport"
- content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <!-- 所有的 css & js 资源 -->
- <link rel="stylesheet" href="https://unpkg.com/element-ui@2.13.0/lib/theme-chalk/index.css">
- <link rel="stylesheet" href="../../static/sa.css">
- <script src="../../static/kj/vue.min.js"></script>
- <script src="../../static/kj/element-ui/index.js"></script>
- <script src="../../static/kj/httpVueLoader.js"></script>
- <script src="../../static/kj/jquery.min.js"></script>
- <script src="../../static/kj/layer/layer.js"></script>
- <script src="../../static/sa.js"></script>
- <style>
- .sum-div {
- text-align: right;
- padding: 10px 150px 10px;
- font-weight: bold;
- }
- .sum-title {
- color: darkred;
- font-weight: bold;
- }
- </style>
- </head>
- <body>
- <div class="vue-box" style="display: none;" :style="'display: block;'">
- <div class="c-panel">
- <!-- ------------- 检索参数 ------------- -->
- <div class="c-title">检索参数</div>
- <el-form ref="form" :model='p' @submit.native.prevent>
- <sa-item type="text" name="企业" v-model="p.customerName"></sa-item>
- <sa-item type="text" name="业务单号" v-model="p.businessNo"></sa-item>
- <sa-item type="text" name="车牌号" v-model="p.carNo"></sa-item>
- <sa-item type="enum" name="收费项目">
- <el-select v-model="p.feeType" clearable placeholder="请选择" filterable>
- <el-option label="核酸检测" value="1"></el-option>
- <el-option label="消杀作业" value="2"></el-option>
- <el-option label="装卸作业" value="3"></el-option>
- <el-option label="停车费" value="4"></el-option>
- <el-option label="过磅费" value="5"></el-option>
- <el-option label="入场管理费" value="6"></el-option>
- <el-option label="充电打冷作业" value="7"></el-option>
- </el-select>
- </sa-item>
- <sa-item type="enum" name="业务类型">
- <el-select v-model="p.itemTypeName" clearable placeholder="请选择" filterable>
- <el-option v-for="item in itemTypeList" :key="item.id" :label="item.name"
- :value="item.name">
- </el-option>
- </el-select>
- </sa-item>
- <sa-item type="text" name="扣款时间">
- <el-date-picker v-model="p.payTime" type="daterange" align="right" unlink-panels
- value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期"
- end-placeholder="结束日期" :picker-options="pickerOptions">
- </el-date-picker>
- </sa-item>
- <sa-item type="text" name="复核状态">
- <el-select v-model="p.reviewStatus" clearable placeholder="请选择">
- <el-option v-for="item in reviewStatusList" :key="item.id" :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- </sa-item>
- <sa-item type="text" name="订单状态">
- <el-select v-model="p.status" placeholder="请选择">
- <el-option label="全部" :value="-1">
- </el-option>
- <el-option label="正常" :value="1">
- </el-option>
- <el-option label="异常" :value="0">
- </el-option>
- </el-select>
- </sa-item>
- <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
- <sa-item type="fast-btn" show="reset" style="display: inline;"></sa-item>
- <el-button v-if="sa.isAuth('tb-deduction-record-export')" type="primary" icon="el-icon-download" @click="exportFn">导出</el-button>
- </el-form>
- <!-- ------------- 快捷按钮 ------------- -->
- <!-- ------------- 数据列表 ------------- -->
- <div class="sum-div">总共 <span class="sum-title">{{dataCount}}</span>条;扣款金额:<span
- class="sum-title">¥{{totalMoney.toFixed(2)}}</span>元</div>
- <el-table class="data-table" ref="data-table" :data="dataList">
- <sa-td type="index" name="序号"></sa-td>
- <sa-td name="企业" prop="customerName" width="150"></sa-td>
- <sa-td name="业务单号" prop="businessNo" width="150"></sa-td>
- <sa-td name="车牌号" prop="carNo" width="100"></sa-td>
- <sa-td name="收费项目" prop="feeType" type="enum"
- :jv="{1: '核酸检测',2: '消杀作业', 3: '装卸作业', 4: '停车业务', 5: '过磅费', 6: '入场管理费', 7: '充电打冷作业'}"></sa-td>
- <sa-td name="业务类型" prop="itemTypeName" width="150"></sa-td>
- <sa-td name="车型" prop="itemName" width="150"></sa-td>
- <sa-td name="原金额" prop="originalMoney" width="120"></sa-td>
- <sa-td name="扣除金额" prop="deductMoney" width="90"></sa-td>
- <sa-td name="余额" prop="totalMoney"></sa-td>
- <sa-td name="订单状态" prop="status" type="enum" :jv="{0: '异常',1: '正常'}"></sa-td>
- <sa-td name="结算状态" prop="isSettle" type="enum" :jv="{0: '未结算',1: '已结算'}"></sa-td>
- <sa-td name="复核状态" prop="reviewStatus" type="enum" :jv="{0: '未复核',1: '已复核'}"></sa-td>
- <sa-td name="税率%">
- <template slot-scope="s">
- <span>{{s.row.taxRate * 100}}</span>
- </template>
- </sa-td>
- <el-table-column label="税额(元)">
- <template slot-scope="s">
- <span>{{Number(s.row.taxPrice).toFixed(2)}}</span>
- </template>
- </el-table-column>
- <el-table-column label="不含税(元)" width="100">
- <template slot-scope="s">
- <span>{{Number(s.row.noTaxPrice).toFixed(2)}}</span>
- </template>
- </el-table-column>
- <!-- <sa-td name="生成时间" prop="createTime" width="150px"></sa-td> -->
- <sa-td name="扣款时间" prop="payTime" width="150px"></sa-td>
- <el-table-column label="操作" fixed="right" width="130px">
- <template slot-scope="s">
- <el-button class="c-btn" type="primary"
- v-if="s.row.reviewStatus!=1 && sa.isAuth('tb-deduction-record-list-review')"
- @click="toReview(s.row)">复审</el-button>
- <el-button class="c-btn" type="warning" v-if="sa.isAuth('tb-deduction-record-set-error')"
- @click="setError(s.row)">异常订单</el-button>
- </template>
- </el-table-column>
- </el-table>
- <!-- ------------- 分页 ------------- -->
- <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount" @change="f5()">
- </sa-item>
- </div>
- </div>
- <script>
- var app = new Vue({
- components: {
- "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
- "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
- },
- el: '.vue-box',
- data: {
- totalMoney:0,
- p: { // 查询参数
- id: '', // 主键
- businessId: '', // 业务id
- businessNo: '', // 业务单号
- carNo: '', // 车牌号
- feeType: '', // 收费类型
- itemTypeId: '', // 业务类型id
- itemTypeName: '', // 业务类型
- itemId: '', //
- itemName: '', // 业务项
- itemPrice: '', // 项目金额(元)
- unitPrice: '', //
- payDay: '', // 支付日期
- payTime: '', // 支付时间
- payType: '', // 支付方式(3=微信支付)
- payMode: '', //
- createTime: '', // 创建时间
- updateTime: '', // 更新时间
- businessItemId: '', //
- businessItemNo: '', // 业务项单号
- pickCustomerName: '', //
- customerName: '', // 客户名称
- entityName: '', // 主体名称
- taxRate: '', //
- noTaxPrice: '', //
- taxPrice: '', //
- weight: '', //
- num: '', //
- isSettle: '', // 是否结算
- remark: '', // 备注
- invoice: '', // 发票
- transactionId: '', // 微信交易单号
- outTradeNo: '', // 支付单号
- businessCarId: '', //
- businessCarNo: '', //
- kaiDanPerson: '', // 开单员
- diaoDuPerson: '', // 调度员
- jiChaPerson: '', // 稽查员
- customerId: '', // 客户id
- deductMoney: '', // 扣除金额
- feeDetailsId: '', // 收费明细id
- reviewBy: '', // 复核人员
- reviewTime: '', // 复核时间
- reviewStatus: '', // 复核状态,0-未复核、1-已复核
- partner: '', // 合作伙伴
- originalMoney: '', // 原金额
- totalMoney: '', // 余额
- pageNo: 1, // 当前页
- pageSize: 10, // 页大小
- sortType: 0, // 排序方式
- status:-1
- },
- pickerOptions: {
- shortcuts: [{
- text: '最近一周',
- onClick(picker) {
- const end = new Date();
- const start = new Date();
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
- picker.$emit('pick', [start, end]);
- }
- }, {
- text: '最近一个月',
- onClick(picker) {
- const end = new Date();
- const start = new Date();
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
- picker.$emit('pick', [start, end]);
- }
- }, {
- text: '最近三个月',
- onClick(picker) {
- const end = new Date();
- const start = new Date();
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
- picker.$emit('pick', [start, end]);
- }
- }]
- },
- reviewStatusList: [{
- id: 2,
- name: '全部'
- },
- {
- id: 0,
- name: '未复核'
- },
- {
- id: 1,
- name: '已复核'
- }
- ],
- dataCount: 0,
- dataList: [], // 数据集合
- itemTypeList: [],
- },
- methods: {
- getSum(){
- let p=this.p;
- if(p.payTime){
- p.startTime=p.payTime[0];
- p.endTime=p.payTime[1];
- }else{
- p.startTime='';
- p.endTime='';
- }
- sa.ajax('/TbDeductionRecord/getSum', sa.removeNull(this.p), function(res) {
- this.totalMoney=res.data;
- }.bind(this));
- },
- exportFn () {
- let p=this.p;
- if(p.payTime){
- p.startTime=p.payTime[0];
- p.endTime=p.payTime[1];
- }else{
- p.startTime='';
- p.endTime='';
- }
- sa.confirm('是否导出符合筛选条件的扣费记录', function() {
- sa.ajax('/TbDeductionRecord/export', sa.removeNull(this.p),
- function(res) {
- window.location.href=res.data;
- }.bind(this))
- }.bind(this));
- },
- setError(data) {
- let that = this;
- layer.prompt({
- title: '输入异常原因'
- }, function(pass, index) {
- layer.close(index);
- sa.ajax('/TbDeductionRecord/setError', {
- id: data.id,
- errorRemark: pass
- }, function(res) {
- layer.msg('成功');
- that.f5();
- })
- });
- },
- // 刷新
- f5: function() {
- let p=this.p;
- if(p.payTime){
- p.startTime=p.payTime[0];
- p.endTime=p.payTime[1];
- }else{
- p.startTime='';
- p.endTime='';
- }
- sa.ajax('/TbDeductionRecord/getList', sa.removeNull(this.p), function(res) {
- this.dataList = res.data; // 数据
- this.dataCount = res.dataCount; // 数据总数
- sa.f5TableHeight(); // 刷新表格高度
- this.getSum();
- }.bind(this));
- },
- // 查看
- get: function(data) {
- sa.showIframe('数据详情', 'tb-deduction-record-info.html?id=' + data.id, '1050px', '90%');
- },
- // 查看 - 根据选中的
- getBySelect: function(data) {
- var selection = this.$refs['data-table'].selection;
- if (selection.length == 0) {
- return sa.msg('请选择一条数据')
- }
- this.get(selection[0]);
- },
- // 修改
- update: function(data) {
- sa.showIframe('修改数据', 'tb-deduction-record-add.html?id=' + data.id, '1000px', '90%');
- },
- // 新增
- add: function(data) {
- sa.showIframe('新增数据', 'tb-deduction-record-add.html?id=-1', '1000px', '90%');
- },
- //复审
- toReview(data) {
- let ss = ',业务单号:' + data.businessNo + ')';
- sa.confirm('您确认对(' + data.customerName + ss + '复审吗?', function() {
- sa.ajax('/TbDeductionRecord/review?id=' + data.id, function(res) {
- sa.ok('复审成功');
- this.f5();
- sa.f5TableHeight(); // 刷新表格高度
- }.bind(this))
- }.bind(this));
- },
- getItemTypeList() {
- sa.ajax('/TbItemType/getList', {
- pageNo: 1,
- pageSize: 100
- }, function(resp) {
- this.itemTypeList = resp.data;
- }.bind(this));
- },
- },
- created: function() {
- this.f5();
- this.getItemTypeList();
- sa.onInputEnter();
- }
- })
- </script>
- </body>
- </html>
|