|
@@ -243,32 +243,30 @@ export default {
|
|
this.queryParam.bizType = undefined
|
|
this.queryParam.bizType = undefined
|
|
this.queryParam.buyerSn = undefined
|
|
this.queryParam.buyerSn = undefined
|
|
this.$refs.dealer.resetForm()
|
|
this.$refs.dealer.resetForm()
|
|
- this.$refs.indirectDealer.resetForm()
|
|
|
|
- this.$refs.directDealer.resetForm()
|
|
|
|
this.$refs.ruleForm.resetFields()
|
|
this.$refs.ruleForm.resetFields()
|
|
this.totalData = null
|
|
this.totalData = null
|
|
this.$refs.table.clearTable()
|
|
this.$refs.table.clearTable()
|
|
},
|
|
},
|
|
// 导出
|
|
// 导出
|
|
- handleExport () {
|
|
|
|
- const _this = this
|
|
|
|
- this.$refs.ruleForm.validate(valid => {
|
|
|
|
- if (valid) {
|
|
|
|
- const params = _this.queryParam
|
|
|
|
- params.showCost = this.$hasPermissions('M_ShowAllCost') ? '1' : '0'
|
|
|
|
- _this.exportLoading = true
|
|
|
|
- _this.spinning = true
|
|
|
|
- reportSalesReturnExport(params).then(res => {
|
|
|
|
- downloadExcel(res, '销售退货报表')
|
|
|
|
- _this.exportLoading = false
|
|
|
|
- _this.spinning = false
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- console.log('error submit!!')
|
|
|
|
- return false
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
|
|
+ // handleExport () {
|
|
|
|
+ // const _this = this
|
|
|
|
+ // this.$refs.ruleForm.validate(valid => {
|
|
|
|
+ // if (valid) {
|
|
|
|
+ // const params = _this.queryParam
|
|
|
|
+ // params.showCost = this.$hasPermissions('M_ShowAllCost') ? '1' : '0'
|
|
|
|
+ // _this.exportLoading = true
|
|
|
|
+ // _this.spinning = true
|
|
|
|
+ // reportSalesReturnExport(params).then(res => {
|
|
|
|
+ // downloadExcel(res, '销售退货报表')
|
|
|
|
+ // _this.exportLoading = false
|
|
|
|
+ // _this.spinning = false
|
|
|
|
+ // })
|
|
|
|
+ // } else {
|
|
|
|
+ // console.log('error submit!!')
|
|
|
|
+ // return false
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ // },
|
|
setTableH () {
|
|
setTableH () {
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
this.tableHeight = window.innerHeight - tableSearchH - 250
|
|
this.tableHeight = window.innerHeight - tableSearchH - 250
|