|
@@ -41,10 +41,8 @@
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
- <a-form-model-item label="调拨类型名称">
|
|
|
|
- <a-select id="allocationDetailsList-allocateTypeSn" v-model="queryParam.allocateTypeSn" placeholder="请选择调拨类型名称" allowClear >
|
|
|
|
- <a-select-option v-for="item in allocateTypeList" :key="item.allocateTypeSn" :value="item.allocateTypeSn">{{ item.name }}</a-select-option>
|
|
|
|
- </a-select>
|
|
|
|
|
|
+ <a-form-model-item label="费用/调拨类型">
|
|
|
|
+ <AllocateType id="allocationDetailsList-allocateTypeSn" v-model="allocateTypeVal" :changeOnSelect="true" placeholder="请选择费用/调拨类型" @change="changeAllocatype"></AllocateType>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
@@ -165,11 +163,12 @@ import { allocateTypeAllList } from '@/api/allocateType'
|
|
import ProductBrand from '@/views/common/productBrand.js'
|
|
import ProductBrand from '@/views/common/productBrand.js'
|
|
import { hdExportExcel } from '@/libs/exportExcel'
|
|
import { hdExportExcel } from '@/libs/exportExcel'
|
|
import { userQueryList } from '@/api/power-user'
|
|
import { userQueryList } from '@/api/power-user'
|
|
|
|
+import AllocateType from '@/views/common/allocateType.js'
|
|
import { allocateReportDetailList, allocateReportDetailCount, allocateReportDetailExport } from '@/api/allocateReport'
|
|
import { allocateReportDetailList, allocateReportDetailCount, allocateReportDetailExport } from '@/api/allocateReport'
|
|
export default {
|
|
export default {
|
|
name: 'AllocationDetailsList',
|
|
name: 'AllocationDetailsList',
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
- components: { STable, VSelect, rangeDate, subarea, ProductBrand, reportModal },
|
|
|
|
|
|
+ components: { STable, VSelect, rangeDate, subarea, ProductBrand, reportModal, AllocateType },
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
spinning: false,
|
|
spinning: false,
|
|
@@ -177,6 +176,7 @@ export default {
|
|
exportLoading: false,
|
|
exportLoading: false,
|
|
tableHeight: 0,
|
|
tableHeight: 0,
|
|
showExport: false,
|
|
showExport: false,
|
|
|
|
+ allocateTypeVal: [],
|
|
queryParam: { // 查询条件
|
|
queryParam: { // 查询条件
|
|
time: [
|
|
time: [
|
|
getDate.getCurrMonthDays().starttime,
|
|
getDate.getCurrMonthDays().starttime,
|
|
@@ -188,7 +188,9 @@ export default {
|
|
productBrandTypeSn: undefined,
|
|
productBrandTypeSn: undefined,
|
|
productBrandSn: undefined, // 产品品牌
|
|
productBrandSn: undefined, // 产品品牌
|
|
productCode: '',
|
|
productCode: '',
|
|
- allocateTypeSn: undefined, // 调拨类型
|
|
|
|
|
|
+ costTypeSn: undefined, // 费用类型
|
|
|
|
+ allocateSortSn: undefined, // 调拨类型1
|
|
|
|
+ allocateTypeSn: undefined, // 调拨类型2
|
|
creatorId: undefined,
|
|
creatorId: undefined,
|
|
allocateNo: '',
|
|
allocateNo: '',
|
|
productTypeSn1: '', // 产品一级分类
|
|
productTypeSn1: '', // 产品一级分类
|
|
@@ -309,6 +311,12 @@ export default {
|
|
this.queryParam.beginDate = date[0] || ''
|
|
this.queryParam.beginDate = date[0] || ''
|
|
this.queryParam.endDate = date[1] || ''
|
|
this.queryParam.endDate = date[1] || ''
|
|
},
|
|
},
|
|
|
|
+ changeAllocatype (val, opts) {
|
|
|
|
+ this.allocateTypeVal = val || []
|
|
|
|
+ this.queryParam.costTypeSn = val && val[0] ? val[0] : ''
|
|
|
|
+ this.queryParam.allocateSortSn = val && val[1] ? val[1] : ''
|
|
|
|
+ this.queryParam.allocateTypeSn = val && val[2] ? val[2] : ''
|
|
|
|
+ },
|
|
// 合计
|
|
// 合计
|
|
getCount (params) {
|
|
getCount (params) {
|
|
allocateReportDetailCount(params).then(res => {
|
|
allocateReportDetailCount(params).then(res => {
|
|
@@ -344,6 +352,8 @@ export default {
|
|
this.queryParam.productBrandTypeSn = undefined
|
|
this.queryParam.productBrandTypeSn = undefined
|
|
this.queryParam.productBrandSn = undefined
|
|
this.queryParam.productBrandSn = undefined
|
|
this.queryParam.productCode = ''
|
|
this.queryParam.productCode = ''
|
|
|
|
+ this.queryParam.costTypeSn = undefined
|
|
|
|
+ this.queryParam.allocateSortSn = undefined
|
|
this.queryParam.allocateTypeSn = undefined
|
|
this.queryParam.allocateTypeSn = undefined
|
|
this.queryParam.creatorId = undefined
|
|
this.queryParam.creatorId = undefined
|
|
this.queryParam.allocateNo = ''
|
|
this.queryParam.allocateNo = ''
|
|
@@ -355,6 +365,7 @@ export default {
|
|
this.queryParam.subareaSn = undefined
|
|
this.queryParam.subareaSn = undefined
|
|
this.queryParam.dealerProvinceSn = undefined
|
|
this.queryParam.dealerProvinceSn = undefined
|
|
this.productType = []
|
|
this.productType = []
|
|
|
|
+ this.allocateTypeVal = []
|
|
this.$refs.ruleForm.resetFields()
|
|
this.$refs.ruleForm.resetFields()
|
|
this.totalData = null
|
|
this.totalData = null
|
|
this.$refs.table.clearTable()
|
|
this.$refs.table.clearTable()
|