182 行
6.9 KiB
HTML
可执行文件
182 行
6.9 KiB
HTML
可执行文件
<!--[1.7.90]-->
|
|
<style>
|
|
th {
|
|
background-color: #f5f7fa !important;
|
|
}
|
|
|
|
th > .cell {
|
|
white-space: nowrap !important;
|
|
text-align: center;
|
|
}
|
|
|
|
th, td {
|
|
text-align: center;
|
|
line-height: 30px;
|
|
padding: 0;
|
|
}
|
|
|
|
th > .cell, td > .cell {
|
|
text-align: center;
|
|
}
|
|
|
|
.el-pagination {
|
|
padding: 8px;
|
|
}
|
|
|
|
.el-table__row > td:last-child > .cell {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.center-content {
|
|
margin: 0 0 10px 0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.center-content .el-input__inner {
|
|
padding: 0 15px;
|
|
text-align: left;
|
|
}
|
|
|
|
.el-input {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.el-range-editor--small .el-range-separator {
|
|
line-height: 32px;
|
|
}
|
|
</style>
|
|
<div class="purchaseBox" id="sPurchaseCapitalApp" v-cloak>
|
|
<div class="center-content">
|
|
<div>
|
|
<el-input placeholder="批次号号"
|
|
type="text"
|
|
style="width: 200px"
|
|
size="small"
|
|
clearable
|
|
@keydown.enter.exact.native.prevent="search"
|
|
v-model="purchase_order_number"></el-input>
|
|
<template>
|
|
<date-picker-range :date-time.sync="add_time"></date-picker-range>
|
|
|
|
<el-select v-model="pay_type" placeholder="支付方式" size="small" clearable>
|
|
<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-select>
|
|
</template>
|
|
<el-button type="primary" plain @click="search" size="small">搜索</el-button>
|
|
<if condition="$global_store_jurisdiction && ($global_store_jurisdiction['data_export'] eq '2') && $identity eq 2">
|
|
<else/>
|
|
<if condition="$authArr['exportOperation'] eq true">
|
|
<el-button type="primary" plain @click="exportOperation" size="small">导出</el-button>
|
|
</if>
|
|
</if>
|
|
</div>
|
|
</div>
|
|
<div style="border: 1px solid #e6e6e6;max-width: calc(100vw - 208px);">
|
|
<el-table border :data="CapitalList" style="width: calc(100vw - 208px);border: none;"
|
|
size="mini"
|
|
max-height="500"
|
|
v-loading="loading"
|
|
element-loading-text="数据获取中"
|
|
element-loading-spinner="el-icon-loading">
|
|
<el-table-column prop="index" label="序号" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="order_number" label="付款单号" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="supplier_name" label="客户名称" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="purchase_order_number" label="批次号" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="pay_money" label="金额" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="pay_name" label="支付方式" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="bank_name" label="开户银行" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="bank_card" label="银行卡号" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="remarks" label="备注" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="pay_time" label="付款时间" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="add_time" label="操作时间" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="operator_name" label="操作人" show-overflow-tooltip></el-table-column>
|
|
</el-table>
|
|
<el-pagination
|
|
@size-change="handleSizeChange"
|
|
@current-change="handleCurrentChange"
|
|
:current-page="currentPage"
|
|
:page-sizes="[10, 15, 20, 25, 30, 35, 40, 45, 50]"
|
|
:page-size="100"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
:total="currentLen">
|
|
</el-pagination>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
var sPurchaseCapitalApp = new Vue({
|
|
el: "#sPurchaseCapitalApp",
|
|
data: function () {
|
|
return {
|
|
purchase_order_number: "",
|
|
add_time: "",
|
|
pay_type: "",
|
|
CapitalList: [],
|
|
currentPage: 1,
|
|
currentLimit: 10,
|
|
currentLen: 0,
|
|
loading: true,
|
|
}
|
|
},
|
|
methods: {
|
|
handleSizeChange: function (val) {
|
|
this.currentLimit = val;//切换每页数量
|
|
this.currentPage = 1;
|
|
this.getData();
|
|
},
|
|
handleCurrentChange: function (val) {
|
|
this.currentPage = val;
|
|
this.getData();//切换页数
|
|
},
|
|
//搜索
|
|
search: function () {
|
|
this.currentPage = 1;
|
|
this.getData();
|
|
},
|
|
//查询
|
|
getData: function () {
|
|
var that = this;
|
|
that.loading = true;
|
|
var page = that.currentPage;
|
|
var limit = that.currentLimit;
|
|
var purchase_order_number = that.purchase_order_number;
|
|
var add_time = that.add_time;
|
|
var pay_type = that.pay_type;
|
|
$.ajax({
|
|
url: "{:U('CapitalList')}",
|
|
type: "post",
|
|
data: {
|
|
page: page,
|
|
limit: limit,
|
|
purchase_order_number: purchase_order_number,
|
|
add_time: add_time,
|
|
pay_type: pay_type
|
|
},
|
|
success: function (res) {
|
|
that.CapitalList = res.data;
|
|
that.loading = false;
|
|
that.$nextTick(function () {
|
|
that.currentLen = parseInt(res.count);
|
|
})
|
|
}
|
|
})
|
|
},
|
|
//导出
|
|
exportOperation: function () {
|
|
var that = this;
|
|
var purchase_order_number = that.purchase_order_number;
|
|
var add_time = that.add_time;
|
|
var pay_type = that.pay_type;
|
|
window.location.href = "{:U('export')}?purchase_order_number=" + purchase_order_number + "&add_time=" + add_time + "&pay_type=" + pay_type
|
|
},
|
|
},
|
|
created: function () {
|
|
this.getData();
|
|
}
|
|
})
|
|
</script> |