zhangjie 1 year ago
parent
commit
bf6466a17f

+ 2 - 1
src/api/service-unit.js

@@ -95,9 +95,10 @@ export const serviceScopeUnbindCrmQueryApi = (data) =>
     url: '/api/service/service/scope/unbind/page',
     params: data,
   });
-export const serviceScopeSubTotalApi = () =>
+export const serviceScopeSubTotalApi = (data) =>
   request({
     url: '/api/service/service/scope/subTotal',
+    params: data,
   });
 export const serviceScopeBindBatchApi = (data) =>
   request({

+ 2 - 0
src/config/constants.js

@@ -186,6 +186,7 @@ export const WARN_FLOW_STATUS = {
   NOT_START: '待跟进',
   FOLLOW: '跟进中',
   CLOSE: '已关闭',
+  RESTART: '已重启',
 };
 
 //违规登记类型
@@ -199,6 +200,7 @@ export const VIOLATION_FLOW_STATUS = {
   NOT_START: '待跟进',
   FOLLOW: '跟进中',
   CLOSE: '已关闭',
+  RESTART: '已重启',
 };
 //项目计划变更-变更类型
 export const PLAN_CHANGE_TYPE = {

+ 1 - 3
src/views/service-unit/service-unit-manage/range-manage/index.vue

@@ -77,7 +77,6 @@ import { dictToOptionList } from '@/utils/tool';
 import { customerTypeFilter } from '@/utils/filter';
 import AddRangeDialog from './add-range-dialog.vue';
 
-const router = useRouter();
 const showAddRangeDialog = ref(false);
 
 const fields = ref([
@@ -174,12 +173,11 @@ let totalData = ref({
 });
 
 const getTotalData = async () => {
-  const res = await serviceScopeSubTotalApi();
+  const res = await serviceScopeSubTotalApi(params);
   totalData.value = res;
 };
 
 const handleAddRange = () => {
-  // router.push({ name: 'AddRange' });
   showAddRangeDialog.value = true;
 };
 const handleDelete = (row) => {

+ 1 - 0
src/views/sop/sop-monitor/delay-warning/index.vue

@@ -98,6 +98,7 @@ const statusTheme = {
   NOT_START: 'warning',
   FOLLOW: 'success',
   CLOSE: 'default',
+  RESTART: 'primary',
 };
 
 const handleFollow = (row) => {