|
@@ -18,23 +18,23 @@
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="收款打印状态">
|
|
|
<v-select
|
|
|
- v-model="queryParam.printStatus"
|
|
|
- code="PRINT_STATUS"
|
|
|
- placeholder="请选择收款打印状态"
|
|
|
- allowClear
|
|
|
- ></v-select>
|
|
|
+ v-model="queryParam.printStatus"
|
|
|
+ code="PRINT_STATUS"
|
|
|
+ placeholder="请选择收款打印状态"
|
|
|
+ allowClear
|
|
|
+ ></v-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="开票状态">
|
|
|
- <v-select
|
|
|
- v-model="queryParam.invoiceStatus"
|
|
|
- code="FINANCE_BOOK_INVOICE_STATUS"
|
|
|
- placeholder="请选择开票状态"
|
|
|
- allowClear
|
|
|
- ></v-select>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
+ <a-form-item label="开票状态">
|
|
|
+ <v-select
|
|
|
+ v-model="queryParam.invoiceStatus"
|
|
|
+ code="FINANCE_BOOK_INVOICE_STATUS"
|
|
|
+ placeholder="请选择开票状态"
|
|
|
+ allowClear
|
|
|
+ ></v-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="申请人">
|
|
|
<employee style="width: 100%;" id="collectionDetail-Employee" placeholder="请选择申请人" v-model="queryParam.applyPersonSn"></employee>
|
|
@@ -46,19 +46,19 @@
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="付款方类型">
|
|
|
- <v-select
|
|
|
- v-model="queryParam.payerType"
|
|
|
- code="PAYER_TYPE"
|
|
|
- placeholder="请选择付款方类型"
|
|
|
- ></v-select>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="付款方">
|
|
|
- <a-input id="financialCollectionList-payerName" v-model.trim="queryParam.payerName" allowClear placeholder="请输入付款方"/>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
+ <a-form-item label="付款方类型">
|
|
|
+ <v-select
|
|
|
+ v-model="queryParam.payerType"
|
|
|
+ code="PAYER_TYPE"
|
|
|
+ placeholder="请选择付款方类型"
|
|
|
+ ></v-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
+ <a-form-item label="付款方">
|
|
|
+ <a-input id="financialCollectionList-payerName" v-model.trim="queryParam.payerName" allowClear placeholder="请输入付款方"/>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
<template v-if="advanced">
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="财务编码">
|
|
@@ -113,6 +113,11 @@
|
|
|
<Area id="collectionDetail-provinceSn" v-model="queryParam.provinceSn" placeholder="请选择省"></Area>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
+ <a-col :md="6" :sm="24" v-if="isShowWarehouse">
|
|
|
+ <a-form-model-item label="仓库">
|
|
|
+ <chooseWarehouse ref="warehouse" v-model="queryParam.warehouseSn" :isPermission="true"></chooseWarehouse>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
</template>
|
|
|
<a-col :md="24" :sm="24" style="text-align:center;">
|
|
|
<a-button type="primary" @click="searchForm" :disabled="disabled" id="collectionDetail-refresh">查询</a-button>
|
|
@@ -214,11 +219,12 @@ import invoiceModal from './invoiceModal.vue'
|
|
|
import plInvoiceModal from './plInvoiceModal.vue'
|
|
|
import noteModal from './noteModal.vue'
|
|
|
import printModal from './printModal.vue'
|
|
|
+import chooseWarehouse from '@/views/common/chooseWarehouse'
|
|
|
import { financeBookDetailQueryPage, financeBookDetailExport, financeBookReportDetailCount, financeBookDetailUpdateBatch } from '@/api/financeBook.js'
|
|
|
export default {
|
|
|
name: 'CollectionDetailStaticList',
|
|
|
mixins: [commonMixin],
|
|
|
- components: { STable, VSelect, rangeDate, employee, dealerSubareaScopeList, subarea, Area, invoiceModal, plInvoiceModal, noteModal, printModal },
|
|
|
+ components: { STable, VSelect, rangeDate, employee, dealerSubareaScopeList, subarea, Area, invoiceModal, plInvoiceModal, noteModal, printModal, chooseWarehouse },
|
|
|
data () {
|
|
|
return {
|
|
|
spinning: false,
|
|
@@ -238,7 +244,7 @@ export default {
|
|
|
fullPaymentFlag: undefined,
|
|
|
bankAccount: undefined,
|
|
|
bankName: undefined,
|
|
|
- subareaArea:{
|
|
|
+ subareaArea: {
|
|
|
subareaSn: undefined,
|
|
|
subareaAreaSn: undefined
|
|
|
},
|
|
@@ -248,7 +254,8 @@ export default {
|
|
|
invoiceDateType: undefined,
|
|
|
invoiceBeginDate: '',
|
|
|
invoiceEndDate: '',
|
|
|
- payerType: undefined
|
|
|
+ payerType: undefined,
|
|
|
+ warehouseSn: undefined // 仓库
|
|
|
},
|
|
|
invoiceIsShow: false,
|
|
|
noteIsShow: false,
|
|
@@ -341,6 +348,9 @@ export default {
|
|
|
{ title: '收款打印状态', scopedSlots: { customRender: 'printStatus' }, align: 'center', width: '8%' },
|
|
|
{ title: '备注', scopedSlots: { customRender: 'note' }, align: 'center', width: '8%' }
|
|
|
]
|
|
|
+ if (this.isShowWarehouse) {
|
|
|
+ arr.splice(4, 0, { title: '仓库', dataIndex: 'warehouseName', width: '8%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true })
|
|
|
+ }
|
|
|
return arr
|
|
|
}
|
|
|
},
|
|
@@ -352,7 +362,7 @@ export default {
|
|
|
this.noteIsShow = false
|
|
|
this.printIsShow = false
|
|
|
this.plinvoiceIsShow = false
|
|
|
- if(flag === 1){
|
|
|
+ if (flag === 1) {
|
|
|
this.searchForm()
|
|
|
}
|
|
|
},
|
|
@@ -371,9 +381,9 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
- if(e.key == 1){ // 批量允许打印
|
|
|
- const dataList = rows.filter(item => !(item.printStatus=='NO_PRINT' || item.printStatus=='PRINT'))
|
|
|
- if(dataList.length){
|
|
|
+ if (e.key == 1) { // 批量允许打印
|
|
|
+ const dataList = rows.filter(item => !(item.printStatus == 'NO_PRINT' || item.printStatus == 'PRINT'))
|
|
|
+ if (dataList.length) {
|
|
|
this.$confirm({
|
|
|
title: '批量允许打印',
|
|
|
content: `已选有效数据 ${dataList.length} 条,确认将收款打印状态变更为允许打印吗?`,
|
|
@@ -384,37 +394,37 @@ export default {
|
|
|
// 批量允许打印接口
|
|
|
const data = []
|
|
|
dataList.map(item => {
|
|
|
- data.push({id: item.id, printStatus: 'NO_PRINT' })
|
|
|
+ data.push({ id: item.id, printStatus: 'NO_PRINT' })
|
|
|
})
|
|
|
_this.plUpdateStatus(data)
|
|
|
}
|
|
|
})
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
_this.$message.warning('没有可操作的有效数据!')
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if(e.key == 2){ // 批量开票
|
|
|
+ if (e.key == 2) { // 批量开票
|
|
|
const data = []
|
|
|
rows.map(item => {
|
|
|
- data.push({id: item.id, invoiceDate: '', remarks: '' })
|
|
|
+ data.push({ id: item.id, invoiceDate: '', remarks: '' })
|
|
|
})
|
|
|
_this.plinvoiceInfo = data
|
|
|
_this.plinvoiceIsShow = true
|
|
|
}
|
|
|
},
|
|
|
// 批量操作
|
|
|
- plUpdateStatus(data){
|
|
|
+ plUpdateStatus (data) {
|
|
|
this.spinning = true
|
|
|
financeBookDetailUpdateBatch(data).then(res => {
|
|
|
- if(res.status == 200){
|
|
|
+ if (res.status == 200) {
|
|
|
this.searchForm()
|
|
|
}
|
|
|
this.spinning = false
|
|
|
})
|
|
|
},
|
|
|
// 确定批量开票
|
|
|
- plinvoiceOk(data){
|
|
|
+ plinvoiceOk (data) {
|
|
|
this.plinvoiceInfo.map(item => {
|
|
|
item.invoiceDate = data.invoiceDate
|
|
|
item.remarks = data.remarks
|
|
@@ -450,11 +460,11 @@ export default {
|
|
|
this.queryParam.auditBeginDate = date[0] ? date[0] : ''
|
|
|
this.queryParam.auditEndDate = date[1] ? date[1] : ''
|
|
|
},
|
|
|
- searchForm(){
|
|
|
+ searchForm () {
|
|
|
this.$refs.table.refresh(true)
|
|
|
this.$refs.table.clearSelected()
|
|
|
},
|
|
|
- subareaChange(val){
|
|
|
+ subareaChange (val) {
|
|
|
this.queryParam.subareaArea.subareaSn = val[0] ? val[0] : undefined
|
|
|
this.queryParam.subareaArea.subareaAreaSn = val[1] ? val[1] : undefined
|
|
|
},
|
|
@@ -499,7 +509,7 @@ export default {
|
|
|
this.queryParam.printStatus = undefined
|
|
|
this.queryParam.invoiceStatus = undefined
|
|
|
this.queryParam.payerType = undefined
|
|
|
- if(this.advanced){
|
|
|
+ if (this.advanced) {
|
|
|
this.$refs.subarea.clearData()
|
|
|
}
|
|
|
this.searchForm()
|
|
@@ -533,7 +543,7 @@ export default {
|
|
|
payerName: con.payerName,
|
|
|
bookDetailSn: con.bookDetailSn,
|
|
|
invoiceDate: con.invoiceDate,
|
|
|
- remarks: con.remarks ? con.remarks : '',
|
|
|
+ remarks: con.remarks ? con.remarks : ''
|
|
|
}
|
|
|
this.invoiceInfo = obj
|
|
|
this.$nextTick(() => {
|