|
@@ -75,18 +75,14 @@
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
|
|
|
|
|
- <a-col :span="24">
|
|
|
|
|
|
|
+ <a-col :span="24"
|
|
|
|
|
+ @click="openPermance">
|
|
|
<a-form-item label="履约方式">
|
|
<a-form-item label="履约方式">
|
|
|
<span class="white ml8">选择履约模板</span>
|
|
<span class="white ml8">选择履约模板</span>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
- <a-col :span="24">
|
|
|
|
|
- <a-form-item label="指定朋友"
|
|
|
|
|
- @click="openFriend">
|
|
|
|
|
- <span class="white ml8">选择朋友</span>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="24">
|
|
|
|
|
|
|
+ <a-col :span="24"
|
|
|
|
|
+ @click="openFriend">
|
|
|
<a-form-item label="指定朋友">
|
|
<a-form-item label="指定朋友">
|
|
|
<span class="white ml8">选择朋友</span>
|
|
<span class="white ml8">选择朋友</span>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
@@ -121,11 +117,15 @@
|
|
|
</a-row>
|
|
</a-row>
|
|
|
</a-form>
|
|
</a-form>
|
|
|
</div>
|
|
</div>
|
|
|
- <Friend v-if="showFriend"
|
|
|
|
|
- @cancel="chooseFriend"
|
|
|
|
|
- @update="chooseFriend" />
|
|
|
|
|
</Drawer>
|
|
</Drawer>
|
|
|
-
|
|
|
|
|
|
|
+ <!-- 选择朋友 -->
|
|
|
|
|
+ <Friend v-if="showFriend"
|
|
|
|
|
+ @cancel="chooseFriend"
|
|
|
|
|
+ @update="chooseFriend" />
|
|
|
|
|
+ <!-- 选择履约模板 -->
|
|
|
|
|
+ <Permance v-if="showPermance"
|
|
|
|
|
+ @cancel="choosePermance"
|
|
|
|
|
+ @update="choosePermance" />
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
@@ -143,7 +143,7 @@ import { v4 as uuidv4 } from 'uuid';
|
|
|
import moment, { Moment } from 'moment';
|
|
import moment, { Moment } from 'moment';
|
|
|
import { getMarketRunByTradeMode } from '@/services/bus/market';
|
|
import { getMarketRunByTradeMode } from '@/services/bus/market';
|
|
|
import { QueryOrderQuoteMyqQsp, WrOrderQuote } from '@/services/go/wrtrade/interface';
|
|
import { QueryOrderQuoteMyqQsp, WrOrderQuote } from '@/services/go/wrtrade/interface';
|
|
|
-import { handleChooseFriend, handleForm } from './setup';
|
|
|
|
|
|
|
+import { handleForm, hanldeOpenAndCloseComponent } from './setup';
|
|
|
import { validateAction } from '@/common/setup/form';
|
|
import { validateAction } from '@/common/setup/form';
|
|
|
import { FormParam } from './interface';
|
|
import { FormParam } from './interface';
|
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
@@ -152,11 +152,12 @@ import { BuyOrSell } from '@/common/constants/enumCommon';
|
|
|
import { getCanUseMoney } from '@/services/bus/account';
|
|
import { getCanUseMoney } from '@/services/bus/account';
|
|
|
import { TempWrOrderQuoteDetail } from '@/views/market/spot_trade/components/post_buying/interface';
|
|
import { TempWrOrderQuoteDetail } from '@/views/market/spot_trade/components/post_buying/interface';
|
|
|
import Friend from './friend.vue';
|
|
import Friend from './friend.vue';
|
|
|
|
|
+import Permance from './permancePlanTmp.vue';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
emits: ['cancel', 'update'],
|
|
emits: ['cancel', 'update'],
|
|
|
name: ModalEnum.spot_trade_warehouse_post_buying,
|
|
name: ModalEnum.spot_trade_warehouse_post_buying,
|
|
|
- components: { Des, Drawer, PlusOutlined, MinusOutlined, Friend },
|
|
|
|
|
|
|
+ components: { Des, Drawer, PlusOutlined, MinusOutlined, Friend, Permance },
|
|
|
props: {
|
|
props: {
|
|
|
selectedRow: {
|
|
selectedRow: {
|
|
|
type: Object as PropType<TempWrOrderQuoteDetail>,
|
|
type: Object as PropType<TempWrOrderQuoteDetail>,
|
|
@@ -167,7 +168,9 @@ export default defineComponent({
|
|
|
const { visible, cancel } = _closeModal(context);
|
|
const { visible, cancel } = _closeModal(context);
|
|
|
const { rules, formState, formRef } = handleForm();
|
|
const { rules, formState, formRef } = handleForm();
|
|
|
// 选择朋友
|
|
// 选择朋友
|
|
|
- const { showFriend, frineds, chooseFriend, openFriend } = handleChooseFriend();
|
|
|
|
|
|
|
+ const { show: showFriend, selected: frineds, close: chooseFriend, open: openFriend } = hanldeOpenAndCloseComponent<number[]>();
|
|
|
|
|
+ // 履约模板
|
|
|
|
|
+ const { show: showPermance, selected: selectedPermance, close: choosePermance, open: openPermance } = hanldeOpenAndCloseComponent<number>();
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
const accountList = getAccountTypeList([2]);
|
|
const accountList = getAccountTypeList([2]);
|
|
|
if (accountList.length) {
|
|
if (accountList.length) {
|
|
@@ -258,6 +261,10 @@ export default defineComponent({
|
|
|
showFriend,
|
|
showFriend,
|
|
|
chooseFriend,
|
|
chooseFriend,
|
|
|
openFriend,
|
|
openFriend,
|
|
|
|
|
+
|
|
|
|
|
+ showPermance,
|
|
|
|
|
+ choosePermance,
|
|
|
|
|
+ openPermance,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|