|
@@ -6,118 +6,47 @@
|
|
|
<a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
|
|
|
<a-row :gutter="15">
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="审核时间">
|
|
|
- <rangeDate ref="rangeAuditDate" :value="auditDate" @change="dateAuditChange" />
|
|
|
+ <a-form-item label="创建时间">
|
|
|
+ <rangeDate ref="rangeDate" :value="creatDate" @change="dateChange" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="销售单号">
|
|
|
- <a-input id="financialCollectionList-bizNo" v-model.trim="queryParam.bizNo" allowClear placeholder="请输入销售单号"/>
|
|
|
+ <a-form-item label="收款单号">
|
|
|
+ <a-input id="financialCollectionList-bookNo" v-model.trim="queryParam.bookNo" allowClear placeholder="请输入收款单号"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="备货单号">
|
|
|
+ <a-form-item label="关联备货单号">
|
|
|
<a-input id="financialCollectionList-dispatchBillNo" v-model.trim="queryParam.dispatchBillNo" allowClear placeholder="请输入备货单号"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<template v-if="advanced">
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="经销商名称">
|
|
|
- <a-input id="financialCollectionList-settleClientName" v-model.trim="queryParam.settleClientName" allowClear placeholder="请输入经销商名称"/>
|
|
|
+ <a-form-item label="申请人">
|
|
|
+ <employee style="width: 100%;" id="financialCollectionList-Employee" placeholder="请选择申请人" v-model="queryParam.applyPersonSn"></employee>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="商户级别">
|
|
|
- <v-select
|
|
|
- v-model="queryParam.dealerLevel"
|
|
|
- ref="dealerLevel"
|
|
|
- id="financialCollectionList-dealerLevel"
|
|
|
- code="DEALER_LEVEL"
|
|
|
- placeholder="请选择商户级别"
|
|
|
- allowClear></v-select>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="收款方式">
|
|
|
- <v-select
|
|
|
- v-model="queryParam.settleStyle"
|
|
|
- ref="settleStyle"
|
|
|
- id="financialCollectionList-settleStyle"
|
|
|
- code="SETTLE_STYLE"
|
|
|
- placeholder="请选择收款方式"
|
|
|
- allowClear></v-select>
|
|
|
+ <a-form-item label="收款事由">
|
|
|
+ <a-input id="financialCollectionList-bookReason" v-model.trim="queryParam.bookReason" allowClear placeholder="请输入收款事由"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="区域">
|
|
|
- <subarea id="financialCollectionList-subarea" v-model="queryParam.subareaSn"></subarea>
|
|
|
+ <a-form-item label="审核时间">
|
|
|
+ <rangeDate ref="rangeAuditDate" :value="auditDate" @change="dateAuditChange" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="业务状态">
|
|
|
+ <a-form-item label="状态">
|
|
|
<v-select
|
|
|
- v-model="queryParam.billStatus"
|
|
|
- ref="billStatus"
|
|
|
- id="financialCollectionList-billStatus"
|
|
|
- code="DISPATCH_BILL_STATUS"
|
|
|
- placeholder="请选择业务状态"
|
|
|
+ v-model="queryParam.status"
|
|
|
+ ref="status"
|
|
|
+ id="financialCollectionList-status"
|
|
|
+ code="FINANCE_BOOK_STATE"
|
|
|
+ placeholder="请选择状态"
|
|
|
allowClear></v-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="财务状态">
|
|
|
- <v-select
|
|
|
- v-model="queryParam.settleState"
|
|
|
- ref="settleState"
|
|
|
- id="financialCollectionList-settleState"
|
|
|
- code="FINANCIAL_RECEIVE_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.voidFlag"
|
|
|
- ref="voidFlag"
|
|
|
- id="financialCollectionList-voidFlag"
|
|
|
- code="VOID_FLAG"
|
|
|
- placeholder="请选择单据状态"
|
|
|
- allowClear></v-select>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="收款时间">
|
|
|
- <rangeDate ref="rangeSettleDate" @change="dateSettleChange" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :md="12" :sm="24">
|
|
|
- <a-row>
|
|
|
- <a-form-item label="经销商地区">
|
|
|
- <a-col span="7">
|
|
|
- <a-form-item prop="dealerProvinceSn" style="margin: 0;">
|
|
|
- <a-select v-model="queryParam.dealerProvinceSn" allowClear @change="getCityList" placeholder="请选择省">
|
|
|
- <a-select-option v-for="item in addrProvinceList" :value="item.id" :key="item.id + 'a'">{{ item.name }}</a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col span="7" offset="1">
|
|
|
- <a-form-item prop="dealerCitySn" style="margin: 0;">
|
|
|
- <a-select v-model="queryParam.dealerCitySn" allowClear @change="getAreaList" placeholder="请选择市">
|
|
|
- <a-select-option v-for="item in addrCityList" :value="item.id" :key="item.id + 'b'">{{ item.name }}</a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col span="7" offset="1">
|
|
|
- <a-form-item prop="dealerCountySn" style="margin: 0;">
|
|
|
- <a-select v-model="queryParam.dealerCountySn" allowClear placeholder="请选择区/县">
|
|
|
- <a-select-option v-for="item in addrDistrictList" :value="item.id" :key="item.id + 'c'">{{ item.name }}</a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-form-item>
|
|
|
- </a-row>
|
|
|
- </a-col>
|
|
|
</template>
|
|
|
<a-col :md="6" :sm="24" style="margin-bottom: 10px;">
|
|
|
<a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="financialCollectionList-refresh">查询</a-button>
|
|
@@ -130,6 +59,10 @@
|
|
|
</a-row>
|
|
|
</a-form>
|
|
|
</div>
|
|
|
+ <!-- 操作按钮 -->
|
|
|
+ <div class="table-operator" v-if="$hasPermissions('B_fc_new')">
|
|
|
+ <a-button type="primary" class="button-error" @click="handleAdd">新增</a-button>
|
|
|
+ </div>
|
|
|
<!-- 列表 -->
|
|
|
<s-table
|
|
|
class="sTable fixPagination"
|
|
@@ -143,77 +76,106 @@
|
|
|
:defaultLoadData="false"
|
|
|
bordered>
|
|
|
<!-- 单号 -->
|
|
|
- <template slot="bizNo" slot-scope="text, record">
|
|
|
- <span v-if="$hasPermissions('B_salesDetail')" class="link-bule" @click="handleDetail(record)">{{ record.bizNo }}</span>
|
|
|
- <span v-else>{{ record.bizNo }}</span>
|
|
|
+ <template slot="bookNo" slot-scope="text, record">
|
|
|
+ <span v-if="$hasPermissions('B_fc_detail')" class="link-bule" @click="handleDetail(record)">{{ record.bookNo }}</span>
|
|
|
+ <span v-else>{{ record.bookNo }}</span>
|
|
|
</template>
|
|
|
- <!-- 下推单号 -->
|
|
|
- <template slot="dispatchBillNo" slot-scope="text, record">
|
|
|
- <span v-if="$hasPermissions('B_dispatchDetail')" class="link-bule" @click="handleBhDetail(record)">{{ record.dispatchBillNo }}</span>
|
|
|
- <span v-else>{{ record.dispatchBillNo || '--' }}</span>
|
|
|
+ <!-- 关联备货单 -->
|
|
|
+ <template slot="dispatchNum" slot-scope="text, record">
|
|
|
+ <span v-if="$hasPermissions('B_glDispatch')&&record.dispatchNum" class="link-bule" @click="handleBhDetail(record)">{{ record.dispatchNum }}单</span>
|
|
|
+ <span v-else>--</span>
|
|
|
</template>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
<a-button
|
|
|
+ v-if="record.status=='WAIT_SUBMIT'&&$hasPermissions('B_fc_edit')"
|
|
|
size="small"
|
|
|
type="link"
|
|
|
- v-if="record.settleState=='WAIT' && record.voidFlag!=1 && $hasPermissions('B_financialCollection_receipt')"
|
|
|
- class="button-warning"
|
|
|
- @click="handleAudit(record)"
|
|
|
- id="financialCollectionList-audit-btn">收款</a-button>
|
|
|
- <span v-else>--</span>
|
|
|
+ class="button-info"
|
|
|
+ @click="handleEdit(record)"
|
|
|
+ >
|
|
|
+ 编辑
|
|
|
+ </a-button>
|
|
|
+ <a-button
|
|
|
+ v-if="record.status=='WAIT_SUBMIT'&&$hasPermissions('B_fc_del')"
|
|
|
+ size="small"
|
|
|
+ type="link"
|
|
|
+ class="button-error"
|
|
|
+ @click="handleDel(record)"
|
|
|
+ >
|
|
|
+ 删除
|
|
|
+ </a-button>
|
|
|
+ <a-button
|
|
|
+ v-if="record.status!='WAIT_SUBMIT'&&$hasPermissions('B_fc_Audit')"
|
|
|
+ size="small"
|
|
|
+ type="link"
|
|
|
+ class="button-info"
|
|
|
+ @click="handleSH(record)"
|
|
|
+ >
|
|
|
+ 审核进度
|
|
|
+ </a-button>
|
|
|
+ <a-button
|
|
|
+ v-if="record.status=='AUDIT_REJECT'&&$hasPermissions('B_againEdit')"
|
|
|
+ size="small"
|
|
|
+ type="link"
|
|
|
+ class="button-info"
|
|
|
+ @click="againEdit(record)"
|
|
|
+ >
|
|
|
+ 再次编辑
|
|
|
+ </a-button>
|
|
|
</template>
|
|
|
</s-table>
|
|
|
</a-spin>
|
|
|
+ <!-- 审核进度 -->
|
|
|
+ <verifyModal :openModal="openModal" :itemSn="itemSn" @close="openModal=false"></verifyModal>
|
|
|
+ <!-- 基础信息 -->
|
|
|
+ <baseModal :show="baseModal" @cancel="baseModal=false"></baseModal>
|
|
|
+ <!-- 关联备货单 -->
|
|
|
+ <dispatchModal ref="openDisModal" :openModal="openDisModal" :itemSn="itemSn" @close="openDisModal=false"></dispatchModal>
|
|
|
</a-card>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { commonMixin } from '@/utils/mixin'
|
|
|
-import moment from 'moment'
|
|
|
-import getDate from '@/libs/getDate.js'
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
-import subarea from '@/views/common/subarea.js'
|
|
|
-import { getArea } from '@/api/data'
|
|
|
-import { settleReceiptList, settleReceipt } from '@/api/settleReceipt'
|
|
|
+import baseModal from './baseModal.vue'
|
|
|
+import employee from '../../expenseManagement/expenseReimbursement/employee.js'
|
|
|
+import verifyModal from './verifyModal.vue'
|
|
|
+import dispatchModal from './dispatchModal.vue'
|
|
|
+import { financeBookQueryPage, financeBookDeleteBySn, financeBookDgainEditBySn } from '@/api/financeBook.js'
|
|
|
export default {
|
|
|
name: 'FinancialCollectionList',
|
|
|
mixins: [commonMixin],
|
|
|
- components: { STable, VSelect, subarea, rangeDate },
|
|
|
+ components: { STable, VSelect, rangeDate, baseModal, employee, verifyModal, dispatchModal },
|
|
|
data () {
|
|
|
return {
|
|
|
spinning: false,
|
|
|
+ openModal: false,
|
|
|
+ openDisModal: false,
|
|
|
+ baseModal: false,
|
|
|
tableHeight: 0,
|
|
|
queryParam: { // 查询条件
|
|
|
- beginDate: getDate.getThreeMonthDays().starttime + ' 00:00:00',
|
|
|
- endDate: getDate.getCurrMonthDays().endtime + ' 23:59:59',
|
|
|
- bizNo: '',
|
|
|
+ beginDate: '',
|
|
|
+ endDate: '',
|
|
|
+ bookNo: '',
|
|
|
dispatchBillNo: '',
|
|
|
- beginDateSettle: '',
|
|
|
- endDateSettle: '',
|
|
|
- settleClientName: '',
|
|
|
- dealerLevel: undefined,
|
|
|
- settleStyle: undefined,
|
|
|
- subareaSn: undefined,
|
|
|
- billStatus: undefined,
|
|
|
- settleState: undefined,
|
|
|
- voidFlag: undefined,
|
|
|
- dealerProvinceSn: undefined,
|
|
|
- dealerCitySn: undefined,
|
|
|
- dealerCountySn: undefined
|
|
|
+ auditBeginDate: '',
|
|
|
+ auditEndDate: '',
|
|
|
+ applyPersonSn: undefined,
|
|
|
+ bookReason: '',
|
|
|
+ status: undefined
|
|
|
},
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
|
- auditDate: [
|
|
|
- moment(getDate.getThreeMonthDays().starttime, 'YYYY-MM-DD'),
|
|
|
- moment(getDate.getCurrMonthDays().endtime, 'YYYY-MM-DD')
|
|
|
- ], // 审核时间
|
|
|
+ creatDate: [], // 创建时间
|
|
|
+ auditDate: [], // 审核时间
|
|
|
advanced: false,
|
|
|
+ itemSn: null,
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
|
this.disabled = true
|
|
|
this.spinning = true
|
|
|
- return settleReceiptList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
|
+ return financeBookQueryPage(Object.assign(parameter, this.queryParam)).then(res => {
|
|
|
let data
|
|
|
if (res.status == 200) {
|
|
|
data = res.data
|
|
@@ -228,89 +190,92 @@ export default {
|
|
|
return data
|
|
|
})
|
|
|
},
|
|
|
- total: 0, // 合计
|
|
|
- addrProvinceList: [], // 省下拉
|
|
|
- addrCityList: [], // 市下拉
|
|
|
- addrDistrictList: [] // 区下拉
|
|
|
+ total: 0 // 合计
|
|
|
}
|
|
|
},
|
|
|
// 根据权限显示列表字段
|
|
|
computed: {
|
|
|
columns () {
|
|
|
const arr = [
|
|
|
- { title: '审核时间', dataIndex: 'createDate', width: '9%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '销售单号', scopedSlots: { customRender: 'bizNo' }, width: '10%', align: 'center' },
|
|
|
- { title: '备货单号', scopedSlots: { customRender: 'dispatchBillNo' }, width: '10%', align: 'center' },
|
|
|
- { title: '经销商名称', dataIndex: 'settleClientName', align: 'left', width: '9%', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { title: '商户级别', dataIndex: 'dealerLevelDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '销售数量', dataIndex: 'qty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- // { title: '销售金额', dataIndex: 'totalAmount', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '收款时间', dataIndex: 'settleTime', width: '9%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '收款方式', dataIndex: 'settleStyleDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '备注', dataIndex: 'remark', width: '7%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { title: '业务状态', dataIndex: 'billStatusDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '财务状态', dataIndex: 'settleStateDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '单据状态', dataIndex: 'voidFlagDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '操作', scopedSlots: { customRender: 'action' }, width: '4%', align: 'center' }
|
|
|
+ { title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
|
+ { title: '创建时间', dataIndex: 'createDate', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '收款单号', scopedSlots: { customRender: 'bookNo' }, width: '8%', align: 'center' },
|
|
|
+ { title: '关联备货单', scopedSlots: { customRender: 'dispatchNum' }, width: '6%', align: 'center' },
|
|
|
+ { title: '申请人', dataIndex: 'applyPersonName', align: 'center', width: '6%', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
+ { title: '收款事由', dataIndex: 'bookReason', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '订单总金额', dataIndex: 'orderTotalAmount', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '收款总金额', dataIndex: 'receiptTotalAmount', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '使用授信总金额', dataIndex: 'useTotalAmount', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '授信还款总金额', dataIndex: 'payTotalAmount', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '余款抵扣总金额', dataIndex: 'balanceTotalAmount', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '审核时间', dataIndex: 'auditDate', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '状态', dataIndex: 'statusDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '操作', scopedSlots: { customRender: 'action' }, width: '12%', align: 'center' }
|
|
|
]
|
|
|
- if (this.$hasPermissions('B_isShowPrice')) { // 售价权限
|
|
|
- arr.splice(6, 0, { title: '销售金额', dataIndex: 'totalAmount', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } })
|
|
|
- }
|
|
|
return arr
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- // 审核时间 change
|
|
|
- dateAuditChange (date) {
|
|
|
+ // 创建时间 change
|
|
|
+ dateChange (date) {
|
|
|
this.queryParam.beginDate = date[0] ? date[0] + ' 00:00:00' : ''
|
|
|
this.queryParam.endDate = date[1] ? date[1] + ' 23:59:59' : ''
|
|
|
},
|
|
|
- // 收款时间 change
|
|
|
- dateSettleChange (date) {
|
|
|
- this.queryParam.beginDateSettle = date[0] ? date[0] + ' 00:00:00' : ''
|
|
|
- this.queryParam.endDateSettle = date[1] ? date[1] + ' 23:59:59' : ''
|
|
|
+ // 审核时间 change
|
|
|
+ dateAuditChange (date) {
|
|
|
+ this.queryParam.auditBeginDate = date[0] ? date[0] + ' 00:00:00' : ''
|
|
|
+ this.queryParam.auditEndDate = date[1] ? date[1] + ' 23:59:59' : ''
|
|
|
},
|
|
|
// 重置
|
|
|
resetSearchForm () {
|
|
|
- this.$refs.rangeAuditDate.resetDate(this.auditDate)
|
|
|
- if (this.advanced) { // 查询条件未展开时,该组件未渲染
|
|
|
- this.$refs.rangeSettleDate.resetDate()
|
|
|
+ this.creatDate = []
|
|
|
+ this.$refs.rangeDate.resetDate(this.creatDate)
|
|
|
+ this.queryParam.beginDate = ''
|
|
|
+ this.queryParam.endDate = ''
|
|
|
+ this.auditDate = []
|
|
|
+ if (this.advanced) {
|
|
|
+ this.$refs.rangeAuditDate.resetDate(this.auditDate)
|
|
|
}
|
|
|
- this.queryParam.beginDate = getDate.getThreeMonthDays().starttime + ' 00:00:00'
|
|
|
- this.queryParam.endDate = getDate.getCurrMonthDays().endtime + ' 23:59:59'
|
|
|
- this.queryParam.bizNo = ''
|
|
|
+ this.queryParam.auditBeginDate = ''
|
|
|
+ this.queryParam.auditEndDate = ''
|
|
|
+ this.queryParam.bookNo = ''
|
|
|
this.queryParam.dispatchBillNo = ''
|
|
|
- this.queryParam.beginDateSettle = ''
|
|
|
- this.queryParam.endDateSettle = ''
|
|
|
- this.queryParam.settleClientName = ''
|
|
|
- this.queryParam.dealerLevel = undefined
|
|
|
- this.queryParam.settleStyle = undefined
|
|
|
- this.queryParam.subareaSn = undefined
|
|
|
- this.queryParam.billStatus = undefined
|
|
|
- this.queryParam.settleState = undefined
|
|
|
- this.queryParam.voidFlag = undefined
|
|
|
- this.queryParam.dealerProvinceSn = undefined
|
|
|
- this.queryParam.dealerCitySn = undefined
|
|
|
- this.queryParam.dealerCountySn = undefined
|
|
|
+ this.queryParam.applyPersonSn = undefined
|
|
|
+ this.queryParam.bookReason = ''
|
|
|
+ this.queryParam.status = undefined
|
|
|
this.$refs.table.refresh(true)
|
|
|
},
|
|
|
+ // 新增
|
|
|
+ handleAdd () {
|
|
|
+ this.baseModal = true
|
|
|
+ },
|
|
|
+ // 查看关联备货单
|
|
|
+ handleBhDetail (row) {
|
|
|
+ this.openDisModal = true
|
|
|
+ this.itemSn = row.bookSn
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.openDisModal.setDetail(row)
|
|
|
+ })
|
|
|
+ },
|
|
|
// 详情
|
|
|
handleDetail (row) {
|
|
|
- this.$router.push({ name: 'salesDetail', params: { sn: row.bizSn, type: 'financialCollection' } })
|
|
|
+ this.$router.push({ name: 'financialCollectionDetail', params: { sn: row.bookSn } })
|
|
|
},
|
|
|
- handleBhDetail (row) {
|
|
|
- this.$router.push({ name: 'pushOrderDetail', params: { sn: row.dispatchBillSn, type: 'financialCollection' } })
|
|
|
+ // 编辑
|
|
|
+ handleEdit (row) {
|
|
|
+ this.$router.push({ name: 'financialCollectionEdit', params: { sn: row.bookSn } })
|
|
|
},
|
|
|
- // 收款
|
|
|
- handleAudit (row) {
|
|
|
+ // 删除
|
|
|
+ handleDel (row) {
|
|
|
const _this = this
|
|
|
this.$confirm({
|
|
|
title: '提示',
|
|
|
- content: '确认要收款吗?',
|
|
|
+ content: '确认要删除吗?',
|
|
|
centered: true,
|
|
|
+ closable: true,
|
|
|
onOk () {
|
|
|
_this.spinning = true
|
|
|
- settleReceipt({ sn: row.accountReceiptSn }).then(res => {
|
|
|
+ financeBookDeleteBySn({ bookSn: row.bookSn }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
_this.$message.success(res.message)
|
|
|
_this.$refs.table.refresh()
|
|
@@ -322,49 +287,28 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- // 获取城市列表
|
|
|
- getCityList (val) {
|
|
|
- this.addrCityList = []
|
|
|
- this.addrDistrictList = []
|
|
|
- this.queryParam.dealerCitySn = undefined
|
|
|
- this.queryParam.dealerCountySn = undefined
|
|
|
- if (val) {
|
|
|
- this.getArea('city', val)
|
|
|
- }
|
|
|
+ // 审核进度
|
|
|
+ handleSH (row) {
|
|
|
+ this.openModal = true
|
|
|
+ this.itemSn = row.bookSn
|
|
|
},
|
|
|
- // 获取区县列表
|
|
|
- getAreaList (val) {
|
|
|
- this.addrDistrictList = []
|
|
|
- this.queryParam.dealerCountySn = undefined
|
|
|
- if (val) {
|
|
|
- this.getArea('district', val)
|
|
|
- }
|
|
|
- },
|
|
|
- // 省/市/区
|
|
|
- getArea (leve, sn) {
|
|
|
- let params
|
|
|
- if (leve == 'province') {
|
|
|
- params = { type: '2' }
|
|
|
- } else {
|
|
|
- params = { parentId: sn, type: leve == 'city' ? '3' : '4' }
|
|
|
- }
|
|
|
- getArea(params).then(res => {
|
|
|
- if (res.status == 200) {
|
|
|
- if (leve == 'province') {
|
|
|
- this.addrProvinceList = res.data || []
|
|
|
- } else if (leve == 'city') {
|
|
|
- this.addrCityList = res.data || []
|
|
|
- } else if (leve == 'district') {
|
|
|
- this.addrDistrictList = res.data || []
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (leve == 'province') {
|
|
|
- this.addrProvinceList = []
|
|
|
- } else if (leve == 'city') {
|
|
|
- this.addrCityList = []
|
|
|
- } else if (leve == 'district') {
|
|
|
- this.addrDistrictList = []
|
|
|
- }
|
|
|
+ // 再次编辑
|
|
|
+ againEdit (row) {
|
|
|
+ const _this = this
|
|
|
+ this.$confirm({
|
|
|
+ title: '操作提示',
|
|
|
+ content: '系统将自动生成一个新的财务收款单,与原审核不通过的单据内容相同。您可以对新单据进行编辑、提交等操作,原单据保持不变,确认操作吗?',
|
|
|
+ centered: true,
|
|
|
+ closable: true,
|
|
|
+ onOk () {
|
|
|
+ _this.spinning = true
|
|
|
+ financeBookDgainEditBySn({ bookSn: row.bookSn }).then(res => {
|
|
|
+ if (res.status == 200) {
|
|
|
+ _this.$message.success(res.message)
|
|
|
+ _this.resetSearchForm()
|
|
|
+ }
|
|
|
+ _this.spinning = false
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -373,11 +317,10 @@ export default {
|
|
|
this.$nextTick(() => { // 页面渲染完成后的回调
|
|
|
_this.setTableH()
|
|
|
})
|
|
|
- this.getArea('province')
|
|
|
},
|
|
|
setTableH () {
|
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
|
- this.tableHeight = window.innerHeight - tableSearchH - 195
|
|
|
+ this.tableHeight = window.innerHeight - tableSearchH - 235
|
|
|
}
|
|
|
},
|
|
|
watch: {
|