|
@@ -470,6 +470,7 @@ import dismantleTable from './components/dismantleTable.vue';
|
|
|
import { templateDownload } from '@/api/assignPoints/currency/manList';
|
|
|
import { pointsData } from '@/const/crud/points';
|
|
|
import { tree1, tree2, tree3, tree7, pFlist } from '@/const/crud/taskTypeTree/index';
|
|
|
+import { debounce } from '@/util/util';
|
|
|
import store from '@/store';
|
|
|
import {
|
|
|
selectWmScorePackageLists,
|
|
@@ -1109,9 +1110,9 @@ export default {
|
|
|
)
|
|
|
.then((response) => {
|
|
|
this.tableData = [];
|
|
|
- response.data.data.records.forEach(item => {
|
|
|
- item.acceptSug = item.acceptSug ? Number(item.acceptSug) : ''
|
|
|
- })
|
|
|
+ response.data.data.records.forEach((item) => {
|
|
|
+ item.acceptSug = item.acceptSug ? Number(item.acceptSug) : '';
|
|
|
+ });
|
|
|
this.tableData = response.data.data.records;
|
|
|
this.page.total = response.data.data.total;
|
|
|
this.tableLoading = false;
|
|
@@ -1461,8 +1462,8 @@ export default {
|
|
|
return `${year}-${month}-${day}`;
|
|
|
},
|
|
|
// 新增按钮-提交
|
|
|
- submitForm(formName) {
|
|
|
- this.$refs[formName].validate((valid) => {
|
|
|
+ submitForm: debounce(function () {
|
|
|
+ this.$refs.distributionForm.validate((valid) => {
|
|
|
if (valid) {
|
|
|
// const date = this.formatDate(this.distributionForm.endTimeValue);
|
|
|
const date = this.distributionForm.endTimeValue;
|
|
@@ -1472,7 +1473,6 @@ export default {
|
|
|
let wmScoreTaskTypeList;
|
|
|
if (!this.IS_DLS) {
|
|
|
wmScoreTaskTypeList = this.getAllTaskTypeList();
|
|
|
- console.log('wmScoreTaskTypeList', wmScoreTaskTypeList);
|
|
|
}
|
|
|
let pkgTaskTypeQtyList;
|
|
|
|
|
@@ -1623,7 +1623,8 @@ export default {
|
|
|
}
|
|
|
this.buttonLoading = false;
|
|
|
});
|
|
|
- },
|
|
|
+ }, 500),
|
|
|
+
|
|
|
// 编辑回显
|
|
|
async updateBtn(row) {
|
|
|
// debugger
|