|
|
@@ -57,18 +57,20 @@
|
|
|
<a-input-number class="dialogInput"
|
|
|
style="width: 140px"
|
|
|
:min="0"
|
|
|
- :suffix="selectedRow.enumdicname"
|
|
|
v-model:value="formState.OrderQty"
|
|
|
placeholder="请输入挂牌数量" />
|
|
|
+ <span class="input-enumdicname">{{selectedRow.enumdicname}}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="起摘数量"
|
|
|
- class="relative">
|
|
|
- <a-input class="commonInput"
|
|
|
- :min="0"
|
|
|
- :suffix="selectedRow.enumdicname"
|
|
|
- style="width: 140px" />
|
|
|
+ class="relative"
|
|
|
+ name="DelistMinQty">
|
|
|
+ <a-input-number class="commonInput"
|
|
|
+ :min="0"
|
|
|
+ v-model:value="formState.DelistMinQty"
|
|
|
+ style="width: 140px" />
|
|
|
+ <span class="input-enumdicname">{{selectedRow.enumdicname}}</span>
|
|
|
<div class="tip">最小单位:1{{selectedRow.enumdicname}}</div>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
@@ -99,7 +101,7 @@
|
|
|
placeholder="请择交易所">
|
|
|
</a-select>-->
|
|
|
<a-select class="inlineFormSelect ml5"
|
|
|
- @change="groupsChange"
|
|
|
+ @change="handleGoodsGroups"
|
|
|
style="width: 135px"
|
|
|
v-model:value="formState.goodsgroupid"
|
|
|
placeholder="请选择商品">
|
|
|
@@ -110,6 +112,7 @@
|
|
|
</a-select>
|
|
|
<a-select class="inlineFormSelect ml5"
|
|
|
style="width: 135px"
|
|
|
+ @change="handleGoodsChange"
|
|
|
v-model:value="formState.goodsid"
|
|
|
placeholder="请选择合约">
|
|
|
<a-select-option v-for="item in goodsList"
|
|
|
@@ -174,11 +177,17 @@ export default defineComponent({
|
|
|
},
|
|
|
setup(props, context) {
|
|
|
const { visible, cancel } = _closeModal(context);
|
|
|
- console.log('selectedRow', props.selectedRow);
|
|
|
const { rules, formState, formRef } = handleForm(props.selectedRow);
|
|
|
const data = props.selectedRow;
|
|
|
const loading = ref<boolean>(false);
|
|
|
const { goodsGroup, goodsList, groupsChange, findGoodsCode } = handleGoods();
|
|
|
+ function handleGoodsGroups(value: number) {
|
|
|
+ groupsChange(value);
|
|
|
+ formRef.value.validate();
|
|
|
+ }
|
|
|
+ function handleGoodsChange() {
|
|
|
+ formRef.value.validate();
|
|
|
+ }
|
|
|
function submit() {
|
|
|
const marketInfo = getMarketRunByTradeMode(17);
|
|
|
if (marketInfo) {
|
|
|
@@ -232,8 +241,8 @@ export default defineComponent({
|
|
|
WRTradeGoods: [wrGoodsInfo],
|
|
|
wrstandardid: props.selectedRow.wrstandardid,
|
|
|
HasWr: 1,
|
|
|
+ DelistMinQty: res.DelistMinQty, // 起摘数量
|
|
|
};
|
|
|
- console.log(param);
|
|
|
requestResultLoadingAndInfo(hdWROrder, param, loading, ['挂牌成功', '挂牌失败:']).then(() => {
|
|
|
Bus.$emit('spotTrade', true);
|
|
|
cancel(true);
|
|
|
@@ -254,7 +263,8 @@ export default defineComponent({
|
|
|
formRef,
|
|
|
goodsGroup,
|
|
|
goodsList,
|
|
|
- groupsChange,
|
|
|
+ handleGoodsGroups,
|
|
|
+ handleGoodsChange,
|
|
|
};
|
|
|
},
|
|
|
});
|