|
@@ -253,7 +253,7 @@
|
|
import chooseWarehouse from '@/views/common/chooseWarehouse'
|
|
import chooseWarehouse from '@/views/common/chooseWarehouse'
|
|
import ProductBrand from '@/views/common/productBrand.js'
|
|
import ProductBrand from '@/views/common/productBrand.js'
|
|
import productTypeAll from '@/views/common/productTypeAll.js'
|
|
import productTypeAll from '@/views/common/productTypeAll.js'
|
|
- import { salesDetailList, salesDetailInsert, salesDetailUpdateQty, salesDetailDel, salesDetailBatchDel, deleteAll, updateWarehouse, salesBatchInsert } from '@/api/salesDetailNew'
|
|
|
|
|
|
+ import { salesDetailList, salesDetailPromoCount, salesDetailInsert, salesDetailUpdateQty, salesDetailDel, salesDetailBatchDel, deleteAll, updateWarehouse, salesBatchInsert } from '@/api/salesDetailNew'
|
|
export default {
|
|
export default {
|
|
name: 'ProductList',
|
|
name: 'ProductList',
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
@@ -301,6 +301,7 @@
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
this.disabled = true
|
|
this.disabled = true
|
|
this.queryParam.salesBillSn = this.salesBillSn || ''
|
|
this.queryParam.salesBillSn = this.salesBillSn || ''
|
|
|
|
+ // this.getCount()
|
|
return salesDetailList(Object.assign(parameter, this.queryParam, {
|
|
return salesDetailList(Object.assign(parameter, this.queryParam, {
|
|
showStock: true,
|
|
showStock: true,
|
|
promoRuleSn: this.promo.promoRuleSn,
|
|
promoRuleSn: this.promo.promoRuleSn,
|
|
@@ -343,7 +344,8 @@
|
|
openUpActiveModal: false,
|
|
openUpActiveModal: false,
|
|
descDetail: null,
|
|
descDetail: null,
|
|
promoProductClz: null, // 活动产品分类
|
|
promoProductClz: null, // 活动产品分类
|
|
- disablePromo: false
|
|
|
|
|
|
+ disablePromo: false,
|
|
|
|
+ countData: null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -409,6 +411,19 @@
|
|
this.resetSearchForm()
|
|
this.resetSearchForm()
|
|
this.disablePromo = true
|
|
this.disablePromo = true
|
|
},
|
|
},
|
|
|
|
+ // 统计
|
|
|
|
+ getCount(){
|
|
|
|
+ salesDetailPromoCount(Object.assign(this.queryParam, {
|
|
|
|
+ showStock: true,
|
|
|
|
+ promoRuleSn: this.promo.promoRuleSn,
|
|
|
|
+ promoSn: this.promo.promoSn,
|
|
|
|
+ salesPromoSn: this.promo.salesPromoSn
|
|
|
|
+ })).then(res => {
|
|
|
|
+ if(res.status == 200){
|
|
|
|
+ this.countData = res.data
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 重置
|
|
// 重置
|
|
resetSearchForm (flag) {
|
|
resetSearchForm (flag) {
|
|
this.queryParam.productCode = ''
|
|
this.queryParam.productCode = ''
|
|
@@ -419,6 +434,7 @@
|
|
this.queryParam.productTypeSn2 = ''
|
|
this.queryParam.productTypeSn2 = ''
|
|
this.queryParam.productTypeSn3 = ''
|
|
this.queryParam.productTypeSn3 = ''
|
|
this.productType = []
|
|
this.productType = []
|
|
|
|
+ this.$refs.table.clearSelected()
|
|
this.$refs.table.refresh(!!flag)
|
|
this.$refs.table.refresh(!!flag)
|
|
},
|
|
},
|
|
// 删除全部产品
|
|
// 删除全部产品
|