|
@@ -7,48 +7,55 @@
|
|
|
@cancel="cancel">
|
|
@cancel="cancel">
|
|
|
<div class="listed">
|
|
<div class="listed">
|
|
|
<div class="condition">
|
|
<div class="condition">
|
|
|
- <a-button class="conditionBtn">螺纹钢</a-button>
|
|
|
|
|
- <a-button class="conditionBtn">12mm-江铜</a-button>
|
|
|
|
|
- <!-- <a-button class="conditionBtn">江铜</a-button> -->
|
|
|
|
|
- <a-button class="conditionBtn">华南仓库</a-button>
|
|
|
|
|
|
|
+ <a-button class="conditionBtn">{{selectedRow.deliverygoodsname}}</a-button>
|
|
|
|
|
+ <a-button class="conditionBtn">{{selectedRow.wrtypename}}</a-button>
|
|
|
|
|
+ <a-button class="conditionBtn">{{selectedRow.warehousename}}</a-button>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="formBar">
|
|
<div class="formBar">
|
|
|
<a-form class="inlineForm dialogForm"
|
|
<a-form class="inlineForm dialogForm"
|
|
|
- :form="form"
|
|
|
|
|
- @submit="handleSearch">
|
|
|
|
|
|
|
+ ref="formRef"
|
|
|
|
|
+ :model="formState"
|
|
|
|
|
+ :rules="rules">
|
|
|
<a-row :gutter="24">
|
|
<a-row :gutter="24">
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
- <a-form-item label="挂牌方式">
|
|
|
|
|
|
|
+ <a-form-item label="挂牌方式"
|
|
|
|
|
+ name="WRPriceType">
|
|
|
<a-select class="inlineFormSelect"
|
|
<a-select class="inlineFormSelect"
|
|
|
default-value="1"
|
|
default-value="1"
|
|
|
|
|
+ v-model:value="formState.WRPriceType"
|
|
|
style="width: 140px">
|
|
style="width: 140px">
|
|
|
- <a-select-option value="1">一口价</a-select-option>
|
|
|
|
|
- <a-select-option value="2">一口价2</a-select-option>
|
|
|
|
|
|
|
+ <a-select-option :value="1">一口价</a-select-option>
|
|
|
|
|
+ <a-select-option :value="2">浮动价</a-select-option>
|
|
|
</a-select>
|
|
</a-select>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
- <a-form-item label="挂牌价">
|
|
|
|
|
|
|
+ <a-form-item label="挂牌价"
|
|
|
|
|
+ name="FixedPrice">
|
|
|
<a-input class="commonInput"
|
|
<a-input class="commonInput"
|
|
|
|
|
+ v-model:value="formState.FixedPrice"
|
|
|
style="width: 140px" />
|
|
style="width: 140px" />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
|
<a-row :gutter="24">
|
|
<a-row :gutter="24">
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
- <a-form-item label="挂牌数量">
|
|
|
|
|
|
|
+ <a-form-item label="挂牌数量"
|
|
|
|
|
+ name="OrderQty">
|
|
|
<a-input class="commonInput"
|
|
<a-input class="commonInput"
|
|
|
- suffix="吨"
|
|
|
|
|
|
|
+ :suffix="selectedRow.enumdicname"
|
|
|
|
|
+ v-model:value="formState.OrderQty"
|
|
|
style="width: 140px" />
|
|
style="width: 140px" />
|
|
|
|
|
+
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
<a-form-item label="起摘数量"
|
|
<a-form-item label="起摘数量"
|
|
|
class="relative">
|
|
class="relative">
|
|
|
<a-input class="commonInput"
|
|
<a-input class="commonInput"
|
|
|
- suffix="吨"
|
|
|
|
|
|
|
+ :suffix="selectedRow.enumdicname"
|
|
|
style="width: 140px" />
|
|
style="width: 140px" />
|
|
|
- <div class="tip">最小单位:1吨</div>
|
|
|
|
|
|
|
+ <div class="tip">最小单位:1{{selectedRow.enumdicname}}</div>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
@@ -56,11 +63,14 @@
|
|
|
<a-col :span="12"
|
|
<a-col :span="12"
|
|
|
class="mt-20">
|
|
class="mt-20">
|
|
|
<a-form-item>
|
|
<a-form-item>
|
|
|
- <a-progress class="formProgress"
|
|
|
|
|
- :percent="30" />
|
|
|
|
|
|
|
+ <a-slider v-model:value="formState.OrderQty"
|
|
|
|
|
+ :min="0"
|
|
|
|
|
+ :max="selectedRow.enableqty" />
|
|
|
|
|
+ <!-- <a-progress class="formProgress"
|
|
|
|
|
+ :percent="30" /> -->
|
|
|
<div class="unit">
|
|
<div class="unit">
|
|
|
<span>0</span>
|
|
<span>0</span>
|
|
|
- <span>300吨</span>
|
|
|
|
|
|
|
+ <span>{{selectedRow.enableqty}}{{selectedRow.enumdicname}}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
@@ -114,6 +124,9 @@ import { v4 as uuidv4 } from 'uuid';
|
|
|
import moment from 'moment';
|
|
import moment from 'moment';
|
|
|
import { ModalEnum } from '@/common/constants/modalNameEnum';
|
|
import { ModalEnum } from '@/common/constants/modalNameEnum';
|
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
|
|
+import { handlePasswordForm } from './setup';
|
|
|
|
|
+import { validateAction } from '@/common/setup/form';
|
|
|
|
|
+import { ListingForm } from './interface';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: ModalEnum.spot_warrant_spot_details_listed,
|
|
name: ModalEnum.spot_warrant_spot_details_listed,
|
|
@@ -127,10 +140,13 @@ export default defineComponent({
|
|
|
},
|
|
},
|
|
|
setup(props, context) {
|
|
setup(props, context) {
|
|
|
const { visible, cancel } = _closeModal(context);
|
|
const { visible, cancel } = _closeModal(context);
|
|
|
|
|
+ console.log('selectedRow', props.selectedRow);
|
|
|
|
|
+ const { rules, formState, formRef } = handlePasswordForm();
|
|
|
const data = props.selectedRow;
|
|
const data = props.selectedRow;
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
function submit() {
|
|
function submit() {
|
|
|
- debugger;
|
|
|
|
|
|
|
+ // validateAction<ListingForm>(formRef, formState).then((res) => {
|
|
|
|
|
+ // debugger;
|
|
|
const param = {
|
|
const param = {
|
|
|
AccountID: data.accountid.toString(),
|
|
AccountID: data.accountid.toString(),
|
|
|
ClientSerialNo: uuidv4(), // 客户端流水号
|
|
ClientSerialNo: uuidv4(), // 客户端流水号
|
|
@@ -175,12 +191,16 @@ export default defineComponent({
|
|
|
requestResultLoadingAndInfo(hdWROrder, param, loading, ['挂牌成功', '挂牌失败:']).then(() => {
|
|
requestResultLoadingAndInfo(hdWROrder, param, loading, ['挂牌成功', '挂牌失败:']).then(() => {
|
|
|
// cancel(true);
|
|
// cancel(true);
|
|
|
});
|
|
});
|
|
|
|
|
+ // });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
|
submit,
|
|
submit,
|
|
|
visible,
|
|
visible,
|
|
|
cancel,
|
|
cancel,
|
|
|
|
|
+ rules,
|
|
|
|
|
+ formState,
|
|
|
|
|
+ formRef,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|