|
@@ -262,6 +262,7 @@ export default {
|
|
|
mixins: [commonMixin],
|
|
|
components: { STable, supplier, VSelect, rangeDate, warehouse, lookUpCustomersModal, addModal, editActiveEndTime, creatorList, custList },
|
|
|
data () {
|
|
|
+ this.handleAuditModal = debounce(this.handleAuditModal, 800)
|
|
|
return {
|
|
|
spinning: false,
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
@@ -318,8 +319,7 @@ export default {
|
|
|
itemPromotionSn: '',
|
|
|
itemStatusType: '',
|
|
|
chooseDealerArr: [], // 所选择经销商列表
|
|
|
- loadingAudit: false,
|
|
|
- isInster: false
|
|
|
+ loadingAudit: false
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -408,18 +408,14 @@ export default {
|
|
|
_this.openAuditModal = true
|
|
|
},
|
|
|
handleAuditModal () {
|
|
|
- if (this.isInster) { // 防止多次点击
|
|
|
- return
|
|
|
- }
|
|
|
this.loadingAudit = true
|
|
|
- debounce(this.handleAudit({ promotionSn: this.itemSn, auditFlag: 1 }), 800)
|
|
|
+ this.handleAudit({ promotionSn: this.itemSn, auditFlag: 1 })
|
|
|
},
|
|
|
closeAuditModal () {
|
|
|
this.handleAudit({ promotionSn: this.itemSn, auditFlag: 0 })
|
|
|
},
|
|
|
handleAudit (ajaxData) {
|
|
|
const _this = this
|
|
|
- _this.isInster = true
|
|
|
_this.spinning = true
|
|
|
promotionAudit(ajaxData).then(res => {
|
|
|
if (res.status == 200) {
|
|
@@ -558,7 +554,6 @@ export default {
|
|
|
dealerAuditFlag: undefined,
|
|
|
dealerSn: undefined
|
|
|
}
|
|
|
- this.isInster = false
|
|
|
this.$refs.custList.resetForm()
|
|
|
this.$refs.rangeDate.resetDate()
|
|
|
this.$refs.table.refresh(true)
|