|
|
@@ -48,7 +48,7 @@
|
|
|
v-if="isFloat()">
|
|
|
<a-form-item label="估算价"
|
|
|
name="PriceMove">
|
|
|
- <span>估算价估算价</span>
|
|
|
+ <span class="white">{{getPrice()}}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
|
|
|
@@ -76,12 +76,12 @@
|
|
|
<a-col :span="24"
|
|
|
class="mt-10">
|
|
|
<a-form-item>
|
|
|
- <a-slider ::min="0"
|
|
|
+ <a-slider :min="0"
|
|
|
v-model:value="formState.OrderQty"
|
|
|
- :max="99999999"
|
|
|
+ :max="getMaxNum()"
|
|
|
class="formSlider" />
|
|
|
<div class="unit">
|
|
|
- <span>{{selectedRow.minivalue}}</span>
|
|
|
+ <span>{{getMaxNum() ? selectedRow.minivalue : 0}}</span>
|
|
|
<span>{{getMaxNum()}}{{selectedRow.enumdicname}}</span>
|
|
|
</div>
|
|
|
</a-form-item>
|
|
|
@@ -149,7 +149,7 @@ import Drawer from '@/common/components/drawer/index.vue';
|
|
|
import { PlusOutlined, MinusOutlined } from '@ant-design/icons-vue';
|
|
|
import { hdWROrder } from '@/services/proto/warehousetrade';
|
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
-import {DGFactoryItems, WRGoodsInfo} from '@/services/proto/warehousetrade/interface';
|
|
|
+import { DGFactoryItems, WRGoodsInfo } from '@/services/proto/warehousetrade/interface';
|
|
|
import { getAccountTypeList, getUserId } from '@/services/bus/account';
|
|
|
import { v4 as uuidv4 } from 'uuid';
|
|
|
import moment, { Moment } from 'moment';
|
|
|
@@ -157,7 +157,7 @@ import { getMarketRunByTradeMode } from '@/services/bus/market';
|
|
|
import { WrOrderQuote } from '@/services/go/wrtrade/interface';
|
|
|
import { handleForm, handleNumAndPrice } from './setup';
|
|
|
import { validateAction } from '@/common/setup/form';
|
|
|
-import {FormParam, TempWrOrderQuoteDetail} from './interface';
|
|
|
+import { FormParam, TempWrOrderQuoteDetail } from './interface';
|
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
import { handleIs } from '../buy-sell-market/setup';
|
|
|
import { BuyOrSell } from '@/common/constants/enumCommon';
|
|
|
@@ -195,12 +195,11 @@ export default defineComponent({
|
|
|
}
|
|
|
formState.DeliveryMonth = props.selectedRow.deliverymonth ? moment(props.selectedRow.deliverymonth) : props.time;
|
|
|
|
|
|
- const { getMaxNum, getMoney, getMargin } = handleNumAndPrice(props.enumName, props.selectedRow);
|
|
|
+ const { getMaxNum, getMoney, getMargin, getPrice } = handleNumAndPrice(props.enumName, props.selectedRow);
|
|
|
function submit() {
|
|
|
const marketInfo = getMarketRunByTradeMode(17);
|
|
|
if (marketInfo) {
|
|
|
validateAction<FormParam>(formRef, formState).then((res) => {
|
|
|
-
|
|
|
// 现在增加一种挂牌求购的情况
|
|
|
// 这种求购模式会生成一种仓单贸易商品
|
|
|
|
|
|
@@ -253,15 +252,14 @@ export default defineComponent({
|
|
|
HasWr: isWR(), // 无仓单挂牌 是否有无仓单
|
|
|
DeliveryMonth: isWR() ? '' : moment(res.DeliveryMonth).format('YYYY-MM'),
|
|
|
FactoryItems: props.selectedRow.wrResult.flatMap((it) => {
|
|
|
- return {
|
|
|
- DGFactoryItemTypeID: it.dgfactoryitemtypeid, // uint64 要素项类型ID
|
|
|
- DGFactoryItemID: it.dgfactoryitemid, // uint64 预约要素项类型值
|
|
|
- ItemTypeMode: 1, // uint32 要素项类型模式
|
|
|
- }
|
|
|
- }
|
|
|
- ) // DGFactoryItems 要素类型明细集合(没有仓单要素ID填写)
|
|
|
+ return {
|
|
|
+ DGFactoryItemTypeID: it.dgfactoryitemtypeid, // uint64 要素项类型ID
|
|
|
+ DGFactoryItemID: it.dgfactoryitemid, // uint64 预约要素项类型值
|
|
|
+ ItemTypeMode: 1, // uint32 要素项类型模式
|
|
|
+ };
|
|
|
+ }), // DGFactoryItems 要素类型明细集合(没有仓单要素ID填写)
|
|
|
};
|
|
|
- debugger
|
|
|
+ debugger;
|
|
|
requestResultLoadingAndInfo(hdWROrder, param, loading, ['求购成功', '求购失败:']).then(() => {
|
|
|
cancel(true);
|
|
|
});
|
|
|
@@ -283,6 +281,7 @@ export default defineComponent({
|
|
|
getMargin,
|
|
|
getSelectedAccount,
|
|
|
getCanUseMoney,
|
|
|
+ getPrice,
|
|
|
};
|
|
|
},
|
|
|
});
|