|
@@ -19,12 +19,12 @@
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-form-item label="采购退货单号">
|
|
<a-form-item label="采购退货单号">
|
|
- <a-input id="bulkWarehousingOrderList-productCode" v-model.trim="queryParam.sparePartsReturnNo" allowClear placeholder="请输入采购退货单号"/>
|
|
|
|
|
|
+ <a-input v-model.trim="queryParam.sparePartsReturnNo" allowClear placeholder="请输入采购退货单号"/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-form-model-item label="供应商名称">
|
|
<a-form-model-item label="供应商名称">
|
|
- <custList id="salesReturnsReportList-dealerName" ref="custList" :itemSn="queryParam.dealerSn" @change="custChange"></custList>
|
|
|
|
|
|
+ <supplier v-model="queryParam.supplierSn" placeholder="请输入供应商名称"></supplier>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
<template v-if="advanced">
|
|
<template v-if="advanced">
|
|
@@ -33,7 +33,6 @@
|
|
<v-select
|
|
<v-select
|
|
v-model="queryParam.returnReason"
|
|
v-model="queryParam.returnReason"
|
|
ref="returnReason"
|
|
ref="returnReason"
|
|
- id="purchaseReturn-returnReason"
|
|
|
|
code="SPARE_PARTS_RETURN_REASON"
|
|
code="SPARE_PARTS_RETURN_REASON"
|
|
placeholder="请选择退货原因"
|
|
placeholder="请选择退货原因"
|
|
allowClear></v-select>
|
|
allowClear></v-select>
|
|
@@ -41,22 +40,22 @@
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="5" :sm="24">
|
|
<a-col :md="5" :sm="24">
|
|
<a-form-model-item label="产品编码">
|
|
<a-form-model-item label="产品编码">
|
|
- <a-input id="salesReturnDetailList-productCode" v-model.trim="queryParam.productCode" allowClear placeholder="请输入产品编码"/>
|
|
|
|
|
|
+ <a-input id="urchaseDetailReturn-productCode" v-model.trim="queryParam.productCode" allowClear placeholder="请输入产品编码"/>
|
|
</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-form-model-item label="产品名称">
|
|
- <a-input id="salesReturnDetailList-productName" v-model.trim="queryParam.productName" allowClear placeholder="请输入产品名称"/>
|
|
|
|
|
|
+ <a-input id="urchaseDetailReturn-productName" v-model.trim="queryParam.productName" allowClear placeholder="请输入产品名称"/>
|
|
</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-form-model-item label="产品品牌">
|
|
- <ProductBrand id="salesReturnDetailList-productBrandSn" v-model="queryParam.productBrandSn"></ProductBrand>
|
|
|
|
|
|
+ <ProductBrand id="urchaseDetailReturn-productBrandSn" v-model="queryParam.productBrandSn"></ProductBrand>
|
|
</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-form-model-item label="品牌分类">
|
|
- <v-select code="BRAND_TYPE" id="salesReturnDetailList-productBrandTypeSn" v-model="queryParam.productBrandTypeSn" allowClear placeholder="请选择品牌分类"></v-select>
|
|
|
|
|
|
+ <v-select code="BRAND_TYPE" id="urchaseDetailReturn-productBrandTypeSn" v-model="queryParam.productBrandTypeSn" allowClear placeholder="请选择品牌分类"></v-select>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
<!-- <a-col :md="6" :sm="24">
|
|
<!-- <a-col :md="6" :sm="24">
|
|
@@ -138,13 +137,36 @@
|
|
:defaultLoadData="false"
|
|
:defaultLoadData="false"
|
|
bordered>
|
|
bordered>
|
|
<template slot="footer">
|
|
<template slot="footer">
|
|
- <a-row :gutter="15">
|
|
|
|
- <a-col :md="4" :sm="24" v-if="$hasPermissions('B_isShowPrice')">入库单据量:{{ (totalData && (totalData.totalPrice || totalData.totalPrice==0)) ? totalData.totalPrice : '--' }}</a-col>
|
|
|
|
- <a-col :md="4" :sm="24" v-if="$hasPermissions('B_isShowPrice')">供应商数量:{{ (totalData && (totalData.totalRealAmount || totalData.totalRealAmount==0)) ? totalData.totalRealAmount : '--' }}</a-col>
|
|
|
|
- <a-col :md="4" :sm="24">产品款数:{{ (totalData && (totalData.receiveQty || totalData.receiveQty==0)) ? totalData.receiveQty : '--' }}</a-col>
|
|
|
|
- <a-col :md="4" :sm="24">入库数量:{{ (totalData && (totalData.totalBadQty || totalData.totalBadQty==0)) ? totalData.totalBadQty : '--' }}</a-col>
|
|
|
|
- <a-col :md="4" :sm="24">退货数量:{{ (totalData && (totalData.goodQty || totalData.goodQty==0)) ? totalData.goodQty : '--' }}</a-col>
|
|
|
|
- <a-col :md="4" :sm="24" v-if="$hasPermissions('B_isShowPrice')">退货金额:{{ (totalData && (totalData.totalNormalPrice || totalData.totalNormalPrice==0)) ? totalData.totalNormalPrice : '--' }}</a-col>
|
|
|
|
|
|
+ <a-row>
|
|
|
|
+ <a-col span="2">合计:</a-col>
|
|
|
|
+ <a-col span="22">
|
|
|
|
+ <a-row>
|
|
|
|
+ <a-col span="4">箭牌滤清器:{{ (totalData && (totalData.jpLqqAmount || totalData.jpLqqAmount==0)) ? totalData.jpLqqAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">箭牌变速箱滤清器:{{ (totalData && (totalData.jpBsxLqqAmount || totalData.jpBsxLqqAmount==0)) ? totalData.jpBsxLqqAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">箭牌雨刮片:{{ (totalData && (totalData.jpYgpAmount || totalData.jpYgpAmount==0)) ? totalData.jpYgpAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">箭牌喇叭:{{ (totalData && (totalData.jpLbAmount || totalData.jpLbAmount==0)) ? totalData.jpLbAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">箭牌刹车片:{{ (totalData && (totalData.jpScpAmount || totalData.jpScpAmount==0)) ? totalData.jpScpAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">箭牌感应线:{{ (totalData && (totalData.jpGyxAmount || totalData.jpGyxAmount==0)) ? totalData.jpGyxAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">冠牌滤清器:{{ (totalData && (totalData.gpLqqAmount || totalData.gpLqqAmount==0)) ? totalData.gpLqqAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">冠牌雨刮片:{{ (totalData && (totalData.gpYgpAmount || totalData.gpYgpAmount==0)) ? totalData.gpYgpAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">冠牌刹车片:{{ (totalData && (totalData.gpScpAmount || totalData.gpScpAmount==0)) ? totalData.gpScpAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">稳升点火线圈:{{ (totalData && (totalData.wsDhxqAmount || totalData.wsDhxqAmount==0)) ? totalData.wsDhxqAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">稳升灯泡:{{ (totalData && (totalData.wsDpAmount || totalData.wsDpAmount==0)) ? totalData.wsDpAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">汇箭:{{ (totalData && (totalData.hjAmount || totalData.hjAmount==0)) ? totalData.hjAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">德路斯:{{ (totalData && (totalData.dlsAmount || totalData.dlsAmount==0)) ? totalData.dlsAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">TBU:{{ (totalData && (totalData.tbuAmount || totalData.tbuAmount==0)) ? totalData.tbuAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">TBU-P:{{ (totalData && (totalData.tbupAmount || totalData.tbupAmount==0)) ? totalData.tbupAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">布瑞斯:{{ (totalData && (totalData.brsAmount || totalData.brsAmount==0)) ? totalData.brsAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">NGK:{{ (totalData && (totalData.ngkAmount || totalData.ngkAmount==0)) ? totalData.ngkAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">飞利浦:{{ (totalData && (totalData.flpAmount || totalData.flpAmount==0)) ? totalData.flpAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">车仆:{{ (totalData && (totalData.cpAmount || totalData.cpAmount==0)) ? totalData.cpAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">瓦尔塔:{{ (totalData && (totalData.wetAmount || totalData.wetAmount==0)) ? totalData.wetAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">雷贝斯托:{{ (totalData && (totalData.lbstAmount || totalData.lbstAmount==0)) ? totalData.lbstAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">德尔福:{{ (totalData && (totalData.defAmount || totalData.defAmount==0)) ? totalData.defAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="4">巴诺德:{{ (totalData && (totalData.bndAmount || totalData.bndAmount==0)) ? totalData.bndAmount : '--' }}</a-col>
|
|
|
|
+ <a-col span="6" v-if="$hasPermissions('B_isShowPrice')">实售销售合计金额:{{ (totalData && (totalData.totalAmount || totalData.totalAmount==0)) ? totalData.totalAmount : '--' }}</a-col>
|
|
|
|
+ </a-row>
|
|
|
|
+ </a-col>
|
|
</a-row>
|
|
</a-row>
|
|
</template>
|
|
</template>
|
|
</s-table>
|
|
</s-table>
|
|
@@ -160,7 +182,7 @@ import getDate from '@/libs/getDate.js'
|
|
import { STable, VSelect } from '@/components'
|
|
import { STable, VSelect } from '@/components'
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
import subarea from '@/views/common/subarea.js'
|
|
import subarea from '@/views/common/subarea.js'
|
|
-import custList from '@/views/common/custList.vue'
|
|
|
|
|
|
+import supplier from '@/views/common/supplier.js'
|
|
import reportModal from '@/views/common/reportModal.vue'
|
|
import reportModal from '@/views/common/reportModal.vue'
|
|
import { getArea } from '@/api/data'
|
|
import { getArea } from '@/api/data'
|
|
import { productBrandQuery } from '@/api/productBrand'
|
|
import { productBrandQuery } from '@/api/productBrand'
|
|
@@ -169,9 +191,9 @@ import ProductBrand from '@/views/common/productBrand.js'
|
|
import { hdExportExcel } from '@/libs/exportExcel'
|
|
import { hdExportExcel } from '@/libs/exportExcel'
|
|
import { reportSalesReturnDetailList, reportSalesReturnDetailCount, reportSalesReturnDetailExport } from '@/api/reportData'
|
|
import { reportSalesReturnDetailList, reportSalesReturnDetailCount, reportSalesReturnDetailExport } from '@/api/reportData'
|
|
export default {
|
|
export default {
|
|
- name: 'SalesReturnDetailReportList',
|
|
|
|
|
|
+ name: 'UrchaseDetailReturnList',
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
- components: { STable, VSelect, rangeDate, custList, subarea, ProductBrand, reportModal },
|
|
|
|
|
|
+ components: { STable, VSelect, rangeDate, supplier, subarea, ProductBrand, reportModal },
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
spinning: false,
|
|
spinning: false,
|
|
@@ -185,21 +207,21 @@ export default {
|
|
],
|
|
],
|
|
beginDate: getDate.getCurrMonthDays().starttime,
|
|
beginDate: getDate.getCurrMonthDays().starttime,
|
|
endDate: getDate.getCurrMonthDays().endtime,
|
|
endDate: getDate.getCurrMonthDays().endtime,
|
|
- salesReturnBillNo: '',
|
|
|
|
|
|
+ sparePartsReturnNo: '', // 采购退货单号
|
|
|
|
+ supplierSn: '', // 供应商sn
|
|
|
|
+ returnReason: '',
|
|
productCode: '',
|
|
productCode: '',
|
|
productName: '',
|
|
productName: '',
|
|
- dealerName: '',
|
|
|
|
- dealerLevel: undefined,
|
|
|
|
productBrandTypeSn: undefined,
|
|
productBrandTypeSn: undefined,
|
|
productBrandSn: undefined, // 产品品牌
|
|
productBrandSn: undefined, // 产品品牌
|
|
- productTypeSn1: '', // 产品一级分类
|
|
|
|
- productTypeSn2: '', // 产品二级分类
|
|
|
|
- productTypeSn3: '', // 产品三级分类
|
|
|
|
- subareaSn: undefined,
|
|
|
|
|
|
+ // productTypeSn1: '', // 产品一级分类
|
|
|
|
+ // productTypeSn2: '', // 产品二级分类
|
|
|
|
+ // productTypeSn3: '', // 产品三级分类
|
|
dealerProvinceSn: undefined,
|
|
dealerProvinceSn: undefined,
|
|
dealerCitySn: undefined,
|
|
dealerCitySn: undefined,
|
|
dealerCountySn: undefined
|
|
dealerCountySn: undefined
|
|
},
|
|
},
|
|
|
|
+
|
|
productType: [],
|
|
productType: [],
|
|
rules: {
|
|
rules: {
|
|
'time': [{ required: true, message: '请选择退货完成日期', trigger: 'change' }]
|
|
'time': [{ required: true, message: '请选择退货完成日期', trigger: 'change' }]
|