...
|
...
|
@@ -2,35 +2,72 @@ |
|
|
<el-row>
|
|
|
<el-card style="background-color: #F5F7FA">
|
|
|
<!-- 搜索区域-->
|
|
|
<el-row class="toolbar">
|
|
|
<!-- <el-col :span="5">-->
|
|
|
<!-- <el-input v-model="queryInfo.companyId" prefix-icon="el-icon-search" size="small" style="width: 240px"-->
|
|
|
<!-- placeholder="公司ID" clearable>-->
|
|
|
<!-- <template slot="prepend">公司ID</template>-->
|
|
|
<!-- </el-input>-->
|
|
|
<!-- </el-col>-->
|
|
|
<!-- <el-col :span="5">-->
|
|
|
<!-- <el-input v-model="queryInfo.busnessType" prefix-icon="el-icon-search" size="small" style="width: 240px"-->
|
|
|
<!-- placeholder="业务类型" clearable>-->
|
|
|
<!-- <template slot="prepend">业务类型</template>-->
|
|
|
<!-- </el-input>-->
|
|
|
<!-- </el-col>-->
|
|
|
<!-- <el-col :span="5">-->
|
|
|
<!-- <div class="my-text-area">-->
|
|
|
<!-- <div class="el-input-group__prepend prepand">生效状态</div>-->
|
|
|
<!-- <el-select v-model="queryInfo.state" placeholder="生效状态" size="small" style="width: 140px">-->
|
|
|
<!-- <el-option label="生效" value="Y"></el-option>-->
|
|
|
<!-- <el-option label="失效" value="N"></el-option>-->
|
|
|
<!-- </el-select>-->
|
|
|
<!-- </div>-->
|
|
|
<!-- </el-col>-->
|
|
|
<el-col :span="5">
|
|
|
<el-button type="primary" icon="el-icon-search" size="small" @click="getList()">
|
|
|
<el-row class="toolbar" style ="height:110px;">
|
|
|
<el-row>
|
|
|
<el-col :span="6">
|
|
|
<el-input v-model="queryModel.billOwnerCompanyCode" prefix-icon="el-icon-search" style="width: 240px"
|
|
|
placeholder="客户简码如:BD" clearable>
|
|
|
<template slot="prepend">公司简码</template>
|
|
|
</el-input>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-input v-model="queryModel.billBusinessName" prefix-icon="el-icon-search" style="width: 240px"
|
|
|
placeholder="业务名称" clearable>
|
|
|
<template slot="prepend">业务名称</template>
|
|
|
</el-input>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-input v-model="queryModel.billType" prefix-icon="el-icon-search" style="width: 240px"
|
|
|
placeholder="业务类型" clearable>
|
|
|
<template slot="prepend">业务类型</template>
|
|
|
</el-input>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<div class="my-text-area">
|
|
|
<div class="el-input-group__prepend prepand">账单状态</div>
|
|
|
<el-select v-model="queryModel.billState" placeholder="账单状态" style="width: 140px" clearable>
|
|
|
<el-option label="未结算" value="000"></el-option>
|
|
|
<el-option label="已结算" value="001"></el-option>
|
|
|
<el-option label="作废" value="111"></el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
<el-row>
|
|
|
<el-col :span="6">
|
|
|
<el-input v-model="queryModel.billWaybiilno" prefix-icon="el-icon-search" style="width: 240px"
|
|
|
placeholder="单证号" clearable>
|
|
|
<template slot="prepend">单证号码</template>
|
|
|
</el-input>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<div class="my-text-area">
|
|
|
<div class="el-input-group__prepend prepand">计费时间</div>
|
|
|
<el-date-picker
|
|
|
v-model="queryDateSearch"
|
|
|
type="daterange"
|
|
|
align="right"
|
|
|
unlink-panels
|
|
|
range-separator="至"
|
|
|
start-placeholder="开始日期"
|
|
|
end-placeholder="结束日期"
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
:default-time="['00:00:00', '23:59:59']"
|
|
|
@blur="datePickerBlur"
|
|
|
:picker-options="pickerOptions">
|
|
|
</el-date-picker>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="6">
|
|
|
<el-button type="primary" icon="el-icon-search" @click="getList()">
|
|
|
查询
|
|
|
</el-button>
|
|
|
<!-- <el-button type="success" icon="el-icon-edit" size="small" @click="applyAdd()">新增</el-button>-->
|
|
|
<!-- <el-button type="success" icon="el-icon-edit" size="small" @click="applyAdd()">新增</el-button>-->
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-row>
|
|
|
<!-- 列表区域-->
|
|
|
<el-row>
|
|
|
<template>
|
...
|
...
|
@@ -112,6 +149,11 @@ |
|
|
width="160">
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="billCreatTime"
|
|
|
label="计费时间"
|
|
|
width="160">
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
fixed="right"
|
|
|
label="操作"
|
|
|
width="160">
|
...
|
...
|
@@ -127,8 +169,8 @@ |
|
|
<el-pagination
|
|
|
@size-change="handleSizeChange"
|
|
|
@current-change="handleCurrentChange"
|
|
|
:current-page="queryInfo.limitSize"
|
|
|
:page-size="queryInfo.pageSize"
|
|
|
:current-page="queryInfo.pageSize"
|
|
|
:page-size="queryInfo.limitSize"
|
|
|
:page-sizes="[10, 50, 100, 500]"
|
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
|
:total="total">
|
...
|
...
|
@@ -262,11 +304,21 @@ |
|
|
// companyId:'',
|
|
|
// busnessType:'',
|
|
|
// state:'',
|
|
|
// 当前页数
|
|
|
limitSize: 10,
|
|
|
// 每页大小
|
|
|
limitSize: 10,
|
|
|
// 当前页数
|
|
|
pageSize: 1,
|
|
|
},
|
|
|
queryModel:{
|
|
|
billState:'',
|
|
|
billType:'',
|
|
|
billBusinessName:'',
|
|
|
billOwnerCompanyCode:'',
|
|
|
billCreatTimeStart:undefined,
|
|
|
billCreatTimeEnd:undefined,
|
|
|
billWaybiilno:''
|
|
|
},
|
|
|
queryDateSearch:[],
|
|
|
total: 0,
|
|
|
tableData:[],
|
|
|
dialogMap: {
|
...
|
...
|
@@ -289,6 +341,33 @@ |
|
|
billCurrency: '',
|
|
|
billSource:'',
|
|
|
},
|
|
|
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]);
|
|
|
}
|
|
|
}]
|
|
|
},
|
|
|
formLabelWidth: '120px',
|
|
|
rules: {
|
|
|
companyId: [
|
...
|
...
|
@@ -315,9 +394,15 @@ |
|
|
this.queryInfo.pageSize = val
|
|
|
this.getList()
|
|
|
},
|
|
|
datePickerBlur(){
|
|
|
if (this.queryDateSearch && this.queryDateSearch.length>0){
|
|
|
this.queryModel.billCreatTimeStart = this.queryDateSearch[0]
|
|
|
this.queryModel.billCreatTimeEnd = this.queryDateSearch[1]
|
|
|
}
|
|
|
},
|
|
|
getList() {
|
|
|
const _this = this
|
|
|
list(this.queryInfo).then((response) => {
|
|
|
list(this.queryModel,this.queryInfo).then((response) => {
|
|
|
const res = response.data
|
|
|
console.log(response.data)
|
|
|
if (res.code !== '200') {
|
...
|
...
|
|