|
@@ -81,7 +81,8 @@
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="24">
|
|
<a-col :span="24">
|
|
|
- <a-form-item label="指定朋友">
|
|
|
|
|
|
|
+ <a-form-item label="指定朋友"
|
|
|
|
|
+ @click="openFriend">
|
|
|
<span class="white ml8">选择朋友</span>
|
|
<span class="white ml8">选择朋友</span>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
@@ -120,8 +121,11 @@
|
|
|
</a-row>
|
|
</a-row>
|
|
|
</a-form>
|
|
</a-form>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <Friend v-if="showFriend"
|
|
|
|
|
+ @cancel="chooseFriend"
|
|
|
|
|
+ @update="chooseFriend" />
|
|
|
</Drawer>
|
|
</Drawer>
|
|
|
- <Friend />
|
|
|
|
|
|
|
+
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
@@ -139,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 { handleForm } from './setup';
|
|
|
|
|
|
|
+import { handleChooseFriend, handleForm } 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';
|
|
@@ -162,6 +166,8 @@ export default defineComponent({
|
|
|
setup(props, context) {
|
|
setup(props, context) {
|
|
|
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 loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
const accountList = getAccountTypeList([2]);
|
|
const accountList = getAccountTypeList([2]);
|
|
|
if (accountList.length) {
|
|
if (accountList.length) {
|
|
@@ -248,6 +254,10 @@ export default defineComponent({
|
|
|
formRef,
|
|
formRef,
|
|
|
getSelectedAccount,
|
|
getSelectedAccount,
|
|
|
getCanUseMoney,
|
|
getCanUseMoney,
|
|
|
|
|
+
|
|
|
|
|
+ showFriend,
|
|
|
|
|
+ chooseFriend,
|
|
|
|
|
+ openFriend,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|