|
@@ -101,25 +101,22 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
-import { defineComponent, PropType, reactive, Ref, ref, UnwrapRef } from 'vue';
|
|
|
|
|
import { Des } from '@/common/components/commonDes';
|
|
import { Des } from '@/common/components/commonDes';
|
|
|
-import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
|
|
import Drawer from '@/common/components/drawer/index.vue';
|
|
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 { 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 { 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 { 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 => {
|
|
const initTemp = (): PermanceTemp => {
|
|
@@ -289,12 +286,12 @@ export default defineComponent({
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
const performancesteps: PerfomanceStempTempInfo[] = res.domains.map((el, i) => {
|
|
const performancesteps: PerfomanceStempTempInfo[] = res.domains.map((el, i) => {
|
|
|
- const { steptypeid, stepvalue, stepdays, isauto, remark } = el;
|
|
|
|
|
|
|
+ const { steptypeid, stepvalue, stepdays, remark } = el;
|
|
|
return {
|
|
return {
|
|
|
steptypeid: steptypeid as number,
|
|
steptypeid: steptypeid as number,
|
|
|
stepvalue: stepvalue as number,
|
|
stepvalue: stepvalue as number,
|
|
|
stepdays: stepdays as number,
|
|
stepdays: stepdays as number,
|
|
|
- isauto,
|
|
|
|
|
|
|
+ isauto: 1,
|
|
|
remark,
|
|
remark,
|
|
|
stepindex: i + 1,
|
|
stepindex: i + 1,
|
|
|
};
|
|
};
|