|
@@ -177,8 +177,8 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<div class="btns" v-if="!IS_FWS && type">
|
|
|
- <el-button class="btn" type="danger" @click="passClick(index, false, item.id, item)">不通过</el-button>
|
|
|
- <el-button class="btn" type="primary" @click="passClick(index, true, item.id, item)">通过</el-button>
|
|
|
+ <el-button class="btn" type="danger" @click="passClick(index, false, item.id, item)">不同意</el-button>
|
|
|
+ <el-button class="btn" type="primary" @click="passClick(index, true, item.id, item)">同意</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -189,8 +189,8 @@
|
|
|
<el-form ref="allFormRef" :model="taskForm" label-width="120px" :rules="rules">
|
|
|
<el-form-item label="审批意见:" prop="supervision" class="formitem-box">
|
|
|
<el-radio-group v-model="taskForm.supervision">
|
|
|
- <el-radio :label="true">通过</el-radio>
|
|
|
- <el-radio :label="false">拒绝</el-radio>
|
|
|
+ <el-radio :label="true">同意</el-radio>
|
|
|
+ <el-radio :label="false">不同意</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
@@ -223,6 +223,8 @@ import ElImageViewer from 'element-ui/packages/image/src/image-viewer';
|
|
|
import { mapGetters } from 'vuex';
|
|
|
import ElQuarterPicker from '@/components/ElQuarterPicker/index';
|
|
|
import { getDictType } from '@/api/common';
|
|
|
+
|
|
|
+import { debounce } from '@/util/util';
|
|
|
export default {
|
|
|
components: { ElImageViewer, ElQuarterPicker },
|
|
|
data() {
|
|
@@ -341,7 +343,8 @@ export default {
|
|
|
};
|
|
|
this.dialogVisible = false;
|
|
|
},
|
|
|
- sureBtn() {
|
|
|
+
|
|
|
+ sureBtn: debounce(function () {
|
|
|
this.$refs.allFormRef.validate((valid) => {
|
|
|
if (valid) {
|
|
|
let args = {
|
|
@@ -361,6 +364,7 @@ export default {
|
|
|
item.show = false;
|
|
|
}
|
|
|
});
|
|
|
+ this.checkedIds = [];
|
|
|
this.$forceUpdate();
|
|
|
this.waterfallFlowCalculation();
|
|
|
}
|
|
@@ -370,7 +374,8 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
- },
|
|
|
+ }, 500),
|
|
|
+
|
|
|
monthrangeChange(e) {
|
|
|
if (e) {
|
|
|
let arr = this.getQuarterRange(e);
|
|
@@ -480,6 +485,12 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
this.list.push(...list);
|
|
|
+
|
|
|
+ if (this.list.length == 0) {
|
|
|
+ this.noData = true;
|
|
|
+ } else {
|
|
|
+ this.noData = false;
|
|
|
+ }
|
|
|
this.$forceUpdate();
|
|
|
this.getPageLoading = false;
|
|
|
this.$nextTick(() => {
|
|
@@ -581,7 +592,12 @@ export default {
|
|
|
return '';
|
|
|
},
|
|
|
|
|
|
- async passClick(index, type, id, item) {
|
|
|
+ passClick: debounce(function (index, type, id, item) {
|
|
|
+ if (this.debounceTimer) return;
|
|
|
+ this.debounceTimer = setTimeout(() => {
|
|
|
+ this.debounceTimer = null;
|
|
|
+ }, 500);
|
|
|
+
|
|
|
if (!type && !item.submitRemark) {
|
|
|
return this.$message.info('请填写异常原因');
|
|
|
}
|
|
@@ -592,16 +608,17 @@ export default {
|
|
|
supervision: type,
|
|
|
remarks: remarks
|
|
|
};
|
|
|
- try {
|
|
|
- const res = await supervisionTaskCreateApi(obj);
|
|
|
- this.list[index].show = false;
|
|
|
- this.list[index].checked = false;
|
|
|
- this.$forceUpdate();
|
|
|
- this.waterfallFlowCalculation();
|
|
|
- } catch (error) {
|
|
|
- console.error('Error:', error);
|
|
|
- }
|
|
|
- }
|
|
|
+ supervisionTaskCreateApi(obj)
|
|
|
+ .then(() => {
|
|
|
+ this.list[index].show = false;
|
|
|
+ this.list[index].checked = false;
|
|
|
+ this.$forceUpdate();
|
|
|
+ this.waterfallFlowCalculation();
|
|
|
+ })
|
|
|
+ .catch((error) => {
|
|
|
+ console.error('Error:', error);
|
|
|
+ });
|
|
|
+ }, 500)
|
|
|
}
|
|
|
};
|
|
|
</script>
|