|
@@ -46,6 +46,19 @@
|
|
|
></el-date-picker>
|
|
|
<el-button class="search-btn" type="primary" @click="mixins_search()" icon="el-icon-search">搜索</el-button>
|
|
|
<div class="search-icon">
|
|
|
+ <el-dropdown type="primary" @command="addCommand">
|
|
|
+ <span class="zoniot_font zoniot-icon-tianjia2"></span>
|
|
|
+ <el-dropdown-menu slot="dropdown" hide-on-click="false" class="device-search-dropdown">
|
|
|
+ <el-dropdown-item command="batchAdd">
|
|
|
+ <div class="upload_div">
|
|
|
+ <xk-upload class="upload_class" @callback="mixins_search" :params="{ importType: 'BILL' }">
|
|
|
+ <span slot="content">批量导入</span>
|
|
|
+ </xk-upload>
|
|
|
+ </div>
|
|
|
+ </el-dropdown-item>
|
|
|
+ <el-dropdown-item command="template">下载模板</el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
<el-tooltip v-show="chargeStatus == 1" class="item" effect="light" placement="bottom" content="批量收款">
|
|
|
<i class="zoniot_font zoniot-icon-piliangshoukuan" @click="collections('bulk')"></i>
|
|
|
</el-tooltip>
|
|
@@ -313,6 +326,12 @@ export default {
|
|
|
this.Object_Set(['startTime', 'endTime', 'chargeStatus'], ['', '', this.chargeStatus]);
|
|
|
this.mixins_search();
|
|
|
},
|
|
|
+ addCommand(command) {
|
|
|
+ if (command === 'template') {
|
|
|
+ this.__exportExcel('/sc-community/excel/download/template', { importType: 'BILL' });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ },
|
|
|
exportExcel() {
|
|
|
this.__exportExcel('/sc-charge/charge/bill/export/excel', this.mixins_query);
|
|
|
},
|