|
@@ -107,7 +107,7 @@
|
|
|
</a-col>
|
|
|
</template>
|
|
|
<a-col :md="24" :sm="24" style="text-align:center;">
|
|
|
- <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="collectionDetail-refresh">查询</a-button>
|
|
|
+ <a-button type="primary" @click="searchForm" :disabled="disabled" id="collectionDetail-refresh">查询</a-button>
|
|
|
<a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="collectionDetail-reset">重置</a-button>
|
|
|
<a-button
|
|
|
style="margin-left: 10px"
|
|
@@ -128,16 +128,6 @@
|
|
|
</div>
|
|
|
</a-card>
|
|
|
<a-card size="small" :bordered="false" class="collectionDetail-wrap" style="margin-top:5px;">
|
|
|
- <div>
|
|
|
- <a-dropdown>
|
|
|
- <a-menu slot="overlay" @click="handleMenuClick">
|
|
|
- <a-menu-item key="1"> <a-icon type="printer" />批量允许打印 </a-menu-item>
|
|
|
- <a-menu-item key="2"> <a-icon type="block" />批量设置开票 </a-menu-item>
|
|
|
- </a-menu>
|
|
|
- <a-button type="primary" ghost> 批量处理 <a-icon type="down" /></a-button>
|
|
|
- </a-dropdown>
|
|
|
- <span style="margin-left:10px;">已选{{ selNums }}项</span>
|
|
|
- </div>
|
|
|
<div class="gatherMessage">
|
|
|
订单总金额:<strong> {{ toThousands(countData&&countData.orderAmount||0) }}</strong>;
|
|
|
收款总金额:<strong>{{ toThousands(countData&&countData.receiptAmount||0) }}</strong>;
|
|
@@ -146,6 +136,16 @@
|
|
|
余款抵扣总金额:<strong>{{ toThousands(countData&&countData.balanceAmount||0) }}</strong>;
|
|
|
跨月打款总金额:<strong>{{ toThousands(countData&&countData.nextMonthAmount||0) }}</strong>;
|
|
|
</div>
|
|
|
+ <div class="gatherMessage">
|
|
|
+ <a-dropdown>
|
|
|
+ <a-menu slot="overlay" @click="handleMenuClick">
|
|
|
+ <a-menu-item key="1"> <a-icon type="printer" />批量允许打印 </a-menu-item>
|
|
|
+ <a-menu-item key="2"> <a-icon type="block" />批量设置开票 </a-menu-item>
|
|
|
+ </a-menu>
|
|
|
+ <a-button type="primary" ghost> 批量处理 <a-icon type="down" /></a-button>
|
|
|
+ </a-dropdown>
|
|
|
+ <span v-if="selNums" style="margin-left:10px;">已选{{ selNums }}项</span>
|
|
|
+ </div>
|
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
|
<!-- 列表 -->
|
|
|
<s-table
|
|
@@ -333,7 +333,7 @@ export default {
|
|
|
this.invoiceIsShow = false
|
|
|
this.noteIsShow = false
|
|
|
this.printIsShow = false
|
|
|
- this.$refs.table.refresh(true)
|
|
|
+ this.searchForm()
|
|
|
},
|
|
|
getCount (params) {
|
|
|
financeBookReportDetailCount(params).then(res => {
|
|
@@ -342,6 +342,30 @@ export default {
|
|
|
},
|
|
|
handleMenuClick (e) {
|
|
|
console.log('click', e)
|
|
|
+ const _this = this
|
|
|
+ const rows = _this.rowSelectionInfo && _this.rowSelectionInfo.selectedRows || []
|
|
|
+ const slen = rows.length
|
|
|
+ if (!_this.rowSelectionInfo || (_this.rowSelectionInfo && slen < 1)) {
|
|
|
+ _this.$message.warning('请在列表勾选后再进行批量操作!')
|
|
|
+ return false
|
|
|
+ }
|
|
|
+
|
|
|
+ if(e.key == 1){ // 批量允许打印
|
|
|
+ const dataList = rows.filter(item => item.printStatus=='NO_PRINT' || item.printStatus=='PRINT')
|
|
|
+ this.$confirm({
|
|
|
+ title: '批量允许打印',
|
|
|
+ content: `已选有效数据 ${dataList.length} 条,确认将收款打印状态变更为允许打印吗?`,
|
|
|
+ okText: '确定',
|
|
|
+ centered: true,
|
|
|
+ cancelText: '取消',
|
|
|
+ onOk () {
|
|
|
+ // 批量允许打印接口
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if(e.key == 2){ // 批量开票
|
|
|
+
|
|
|
+ }
|
|
|
},
|
|
|
// 表格选中项
|
|
|
rowSelectionFun (obj) {
|
|
@@ -372,6 +396,10 @@ export default {
|
|
|
this.queryParam.auditBeginDate = date[0] ? date[0] : ''
|
|
|
this.queryParam.auditEndDate = date[1] ? date[1] : ''
|
|
|
},
|
|
|
+ searchForm(){
|
|
|
+ this.$refs.table.refresh(true)
|
|
|
+ this.$refs.table.clearSelected()
|
|
|
+ },
|
|
|
// 重置
|
|
|
resetSearchForm () {
|
|
|
// 审核日期
|
|
@@ -410,16 +438,18 @@ export default {
|
|
|
this.queryParam.invoiceDateType = undefined
|
|
|
this.queryParam.invoiceDate = ''
|
|
|
this.queryParam.payerType = undefined
|
|
|
- this.$refs.table.refresh(true)
|
|
|
+ this.searchForm()
|
|
|
},
|
|
|
// 导出
|
|
|
handleExport () {
|
|
|
const _this = this
|
|
|
_this.exportLoading = true
|
|
|
_this.spinning = true
|
|
|
+ _this.$store.state.app.curActionPermission = 'M_FC_Details_Export'
|
|
|
hdExportExcel(financeBookDetailExport, _this.queryParam, '财务收款明细统计', function () {
|
|
|
_this.exportLoading = false
|
|
|
_this.spinning = false
|
|
|
+ _this.$store.state.app.curActionPermission = ''
|
|
|
})
|
|
|
},
|
|
|
pageInit () {
|