|
@@ -28,7 +28,7 @@
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="24"
|
|
<a-col :span="24"
|
|
|
- v-if="isFixed()">
|
|
|
|
|
|
|
+ v-if="isFixed(enumName)">
|
|
|
<a-form-item label="挂牌价格"
|
|
<a-form-item label="挂牌价格"
|
|
|
name="FixedPrice">
|
|
name="FixedPrice">
|
|
|
<a-input-number class="commonInput"
|
|
<a-input-number class="commonInput"
|
|
@@ -43,7 +43,6 @@
|
|
|
name="PriceMove">
|
|
name="PriceMove">
|
|
|
<a-input-number class="commonInput"
|
|
<a-input-number class="commonInput"
|
|
|
style="width: 260px"
|
|
style="width: 260px"
|
|
|
- :min="0"
|
|
|
|
|
v-model:value="formState.PriceMove" />
|
|
v-model:value="formState.PriceMove" />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
@@ -59,6 +58,16 @@
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="24"
|
|
<a-col :span="24"
|
|
|
|
|
+ v-if="!getHasWR(enumName)">
|
|
|
|
|
+ <a-form-item label="交收月"
|
|
|
|
|
+ name="DeliveryMonth">
|
|
|
|
|
+ <a-month-picker style="width: 260px"
|
|
|
|
|
+ v-model:value="formState.DeliveryMonth"
|
|
|
|
|
+ :allowClear="false"
|
|
|
|
|
+ class="commonDatePicker dialogDatePicker" />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="24"
|
|
|
class="mt-10">
|
|
class="mt-10">
|
|
|
<a-form-item>
|
|
<a-form-item>
|
|
|
<a-slider ::min="0"
|
|
<a-slider ::min="0"
|
|
@@ -77,9 +86,27 @@
|
|
|
<a-input class="commonInput"
|
|
<a-input class="commonInput"
|
|
|
:suffix="selectedRow.enumdicname"
|
|
:suffix="selectedRow.enumdicname"
|
|
|
style="width: 260px" />
|
|
style="width: 260px" />
|
|
|
- <!-- <div class="tip">最小单位:1吨</div> -->
|
|
|
|
|
|
|
+ <div class="tip">最小单位:1{{selectedRow.enumdicname}}</div>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
|
|
+ <!-- <a-col :span="24">
|
|
|
|
|
+ <a-form-item label="挂牌金额"
|
|
|
|
|
+ class="relative">
|
|
|
|
|
+ <a-input class="commonInput"
|
|
|
|
|
+ :suffix="selectedRow.enumdicname"
|
|
|
|
|
+ style="width: 260px" />
|
|
|
|
|
+ <div class="tip">最小单位:1{{selectedRow.enumdicname}}</div>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="24">
|
|
|
|
|
+ <a-form-item label="履约保证金"
|
|
|
|
|
+ class="relative">
|
|
|
|
|
+ <a-input class="commonInput"
|
|
|
|
|
+ :suffix="selectedRow.enumdicname"
|
|
|
|
|
+ style="width: 260px" />
|
|
|
|
|
+ <div class="tip">最小单位:1{{selectedRow.enumdicname}}</div>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col> -->
|
|
|
</a-row>
|
|
</a-row>
|
|
|
<a-row :gutter="24"
|
|
<a-row :gutter="24"
|
|
|
type="flex"
|
|
type="flex"
|
|
@@ -121,6 +148,7 @@ 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';
|
|
|
import { getHasWR } from '../buy-sell-market/setup';
|
|
import { getHasWR } from '../buy-sell-market/setup';
|
|
|
|
|
+import { isFixed } from '../buy-sell-market/setup';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
emits: ['cancel', 'update'],
|
|
emits: ['cancel', 'update'],
|
|
@@ -141,9 +169,6 @@ export default defineComponent({
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
const accountList = getAccountTypeList([2]);
|
|
const accountList = getAccountTypeList([2]);
|
|
|
const { rules, formState, formRef } = handleForm();
|
|
const { rules, formState, formRef } = handleForm();
|
|
|
- function isFixed() {
|
|
|
|
|
- return props.enumName === EnumRouterName.warehouse_receipt_trade_price || props.enumName === EnumRouterName.warehouse_pre_sale_price;
|
|
|
|
|
- }
|
|
|
|
|
function submit() {
|
|
function submit() {
|
|
|
const marketInfo = getMarketRunByTradeMode(17);
|
|
const marketInfo = getMarketRunByTradeMode(17);
|
|
|
if (marketInfo) {
|
|
if (marketInfo) {
|
|
@@ -175,7 +200,7 @@ export default defineComponent({
|
|
|
// MatchUserIDs: 0, // 仓单贸易对手资金账号ID集合(指定对手时填写) uint32
|
|
// MatchUserIDs: 0, // 仓单贸易对手资金账号ID集合(指定对手时填写) uint32
|
|
|
OrderQty: res.OrderQty, // 委托数量(可挂部分数据量) ======
|
|
OrderQty: res.OrderQty, // 委托数量(可挂部分数据量) ======
|
|
|
DeliveryGoodsID: props.selectedRow.deliverygoodsid, // 交割商品商品ID // 有仓单求购
|
|
DeliveryGoodsID: props.selectedRow.deliverygoodsid, // 交割商品商品ID // 有仓单求购
|
|
|
- WRPriceType: isFixed() ? 1 : 2, // 价格方式 1:固定价 2:浮动价
|
|
|
|
|
|
|
+ WRPriceType: isFixed(props.enumName) ? 1 : 2, // 价格方式 1:固定价 2:浮动价
|
|
|
FixedPrice: res.FixedPrice, // 固定价格
|
|
FixedPrice: res.FixedPrice, // 固定价格
|
|
|
PriceFactor: 1, // 价格系数(浮动价时填写)
|
|
PriceFactor: 1, // 价格系数(浮动价时填写)
|
|
|
PriceMove: res.PriceMove, // 升贴水(浮动价时填写)
|
|
PriceMove: res.PriceMove, // 升贴水(浮动价时填写)
|
|
@@ -193,14 +218,12 @@ export default defineComponent({
|
|
|
Attachment2: '', // 附件2
|
|
Attachment2: '', // 附件2
|
|
|
Remark: '', // 备注
|
|
Remark: '', // 备注
|
|
|
ApplyID: 0, // 申请ID
|
|
ApplyID: 0, // 申请ID
|
|
|
- WRTradeGoods: isFixed() ? [] : [wrGoodsInfo],
|
|
|
|
|
|
|
+ WRTradeGoods: isFixed(props.enumName) ? [] : [wrGoodsInfo],
|
|
|
CanPart: 1, // 是否允许部份摘牌0:不允许;1:允许
|
|
CanPart: 1, // 是否允许部份摘牌0:不允许;1:允许
|
|
|
WRStandardID: props.selectedRow.wrstandardid,
|
|
WRStandardID: props.selectedRow.wrstandardid,
|
|
|
HasWr: getHasWR(props.enumName), // 无仓单挂牌 是否有无仓单
|
|
HasWr: getHasWR(props.enumName), // 无仓单挂牌 是否有无仓单
|
|
|
|
|
+ DeliveryMonth: getHasWR(props.enumName) ? '' : moment(res.DeliveryMonth).format('YYYY-MM'),
|
|
|
};
|
|
};
|
|
|
- // if (!isFixed()) {
|
|
|
|
|
- // Object.assign(param, { WRTradeGoods: [wrGoodsInfo] });
|
|
|
|
|
- // }
|
|
|
|
|
requestResultLoadingAndInfo(hdWROrder, param, loading, ['求购成功', '求购失败:']).then(() => {
|
|
requestResultLoadingAndInfo(hdWROrder, param, loading, ['求购成功', '求购失败:']).then(() => {
|
|
|
cancel(true);
|
|
cancel(true);
|
|
|
});
|
|
});
|
|
@@ -216,6 +239,7 @@ export default defineComponent({
|
|
|
formState,
|
|
formState,
|
|
|
formRef,
|
|
formRef,
|
|
|
isFixed,
|
|
isFixed,
|
|
|
|
|
+ getHasWR,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|