|
|
@@ -51,14 +51,14 @@
|
|
|
|
|
|
<a-col :span="24">
|
|
|
<a-form-item label="现货仓单"
|
|
|
- name="accountid">
|
|
|
+ name="LadingBillId">
|
|
|
<a-select class="inlineFormSelect"
|
|
|
style="width: 260px"
|
|
|
- v-model:value="formState.accountid"
|
|
|
+ v-model:value="formState.LadingBillId"
|
|
|
placeholder="请选择">
|
|
|
- <a-select-option v-for="item in accountList"
|
|
|
- :value="item.accountid"
|
|
|
- :key="item.accountid">{{item.accountid}}</a-select-option>
|
|
|
+ <a-select-option v-for="item in wrHoldList"
|
|
|
+ :value="item.id"
|
|
|
+ :key="item.id">{{item.name}}</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
@@ -157,7 +157,7 @@ import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
import { BuyOrSell } from '@/common/constants/enumCommon';
|
|
|
import { getCanUseMoney } from '@/services/bus/account';
|
|
|
import { TempWrOrderQuoteDetail } from '@/views/market/spot_trade/components/post_buying/interface';
|
|
|
-import { handleForm } from './setup';
|
|
|
+import { handleForm, handleSpotWarrant } from './setup';
|
|
|
|
|
|
export default defineComponent({
|
|
|
emits: ['cancel', 'update'],
|
|
|
@@ -165,9 +165,13 @@ export default defineComponent({
|
|
|
components: { Des, Drawer, PlusOutlined, MinusOutlined },
|
|
|
props: {
|
|
|
selectedRow: {
|
|
|
- type: Object as PropType<TempWrOrderQuoteDetail>,
|
|
|
+ type: Object as PropType<QueryOrderQuoteMyqQsp>,
|
|
|
default: {},
|
|
|
},
|
|
|
+ buyOrSell: {
|
|
|
+ type: Number as PropType<BuyOrSell>,
|
|
|
+ default: BuyOrSell.buy,
|
|
|
+ },
|
|
|
},
|
|
|
setup(props, context) {
|
|
|
const { visible, cancel } = _closeModal(context);
|
|
|
@@ -181,7 +185,11 @@ export default defineComponent({
|
|
|
return accountList.find((e) => e.accountid === formState.accountid);
|
|
|
}
|
|
|
function getMoney() {}
|
|
|
- function isBuy() {}
|
|
|
+ function isBuy() {
|
|
|
+ return props.buyOrSell === BuyOrSell.buy;
|
|
|
+ }
|
|
|
+ // 现货仓单
|
|
|
+ const { wrHoldList } = handleSpotWarrant(props.buyOrSell, props.selectedRow, loading);
|
|
|
function submit() {
|
|
|
// const marketInfo = getMarketRunByTradeMode(17);
|
|
|
// if (marketInfo) {
|
|
|
@@ -261,6 +269,7 @@ export default defineComponent({
|
|
|
getCanUseMoney,
|
|
|
getMoney,
|
|
|
isBuy,
|
|
|
+ wrHoldList,
|
|
|
};
|
|
|
},
|
|
|
});
|