Przeglądaj źródła

修改新增履约模板 全部设置为自动

huangbin 4 lat temu
rodzic
commit
4f387aec37
1 zmienionych plików z 13 dodań i 16 usunięć
  1. 13 16
      src/common/components/permanceTemp/addPermanceTemp.vue

+ 13 - 16
src/common/components/permanceTemp/addPermanceTemp.vue

@@ -101,25 +101,22 @@
 </template>
 
 <script lang="ts">
-import { defineComponent, PropType, reactive, Ref, ref, UnwrapRef } from 'vue';
 import { Des } from '@/common/components/commonDes';
-import { _closeModal } from '@/common/setup/modal/modal';
 import Drawer from '@/common/components/drawer/index.vue';
-import { PlusOutlined, MinusOutlined, SearchOutlined, PlusCircleOutlined } from '@ant-design/icons-vue';
-import { QueryPermancePlanTmpRsp, QueryWrFriendApplyRsp, QueryWrPerformanceStepTypeRsp } from '@/services/go/wrtrade/interface';
-import { TempWrOrderQuoteDetail } from '@/views/market/spot_trade/components/post_buying/interface';
-import { queryQueryWrFriend, queryWrPerformanceStepType } from '@/services/go/wrtrade';
-import { message } from 'ant-design-vue';
-import { useQueryData } from '@/common/setup/request';
-import { AddPerformanceTemp, PerfomanceStempTempInfo } from '@/services/proto/performance/interface';
+import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
 import { validateAction } from '@/common/setup/form';
-import { PermanceTemp, PermanceTempForm } from './interface';
+import { _closeModal } from '@/common/setup/modal/modal';
+import { useQueryData } from '@/common/setup/request';
 import { getUserId } from '@/services/bus/account';
-import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
-import { addPerformanceTemp } from '@/services/proto/performance';
 import { geLoginID_number } from '@/services/bus/login';
-import { onMounted } from '@vue/runtime-core';
-import { RuleObject } from 'ant-design-vue/lib/form/interface';
+import { queryWrPerformanceStepType } from '@/services/go/wrtrade';
+import { QueryPermancePlanTmpRsp, QueryWrPerformanceStepTypeRsp } from '@/services/go/wrtrade/interface';
+import { addPerformanceTemp } from '@/services/proto/performance';
+import { AddPerformanceTemp, PerfomanceStempTempInfo } from '@/services/proto/performance/interface';
+import { MinusOutlined, PlusCircleOutlined, PlusOutlined, SearchOutlined } from '@ant-design/icons-vue';
+import { message } from 'ant-design-vue';
+import { defineComponent, PropType, reactive, Ref, ref, UnwrapRef } from 'vue';
+import { PermanceTemp, PermanceTempForm } from './interface';
 
 // 初始化 模板
 const initTemp = (): PermanceTemp => {
@@ -289,12 +286,12 @@ export default defineComponent({
                     return;
                 }
                 const performancesteps: PerfomanceStempTempInfo[] = res.domains.map((el, i) => {
-                    const { steptypeid, stepvalue, stepdays, isauto, remark } = el;
+                    const { steptypeid, stepvalue, stepdays, remark } = el;
                     return {
                         steptypeid: steptypeid as number,
                         stepvalue: stepvalue as number,
                         stepdays: stepdays as number,
-                        isauto,
+                        isauto: 1,
                         remark,
                         stepindex: i + 1,
                     };