|
|
@@ -27,11 +27,12 @@
|
|
|
style="width: 140px">
|
|
|
<a-select-option :value="1">一口价</a-select-option>
|
|
|
<a-select-option :value="2">浮动价</a-select-option>
|
|
|
+ <!-- <a-select-option :value="3">贸易圈</a-select-option> -->
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12"
|
|
|
- v-if="!isFloat()">
|
|
|
+ v-if="isFixed()">
|
|
|
<a-form-item label="挂牌价"
|
|
|
name="FixedPrice">
|
|
|
<a-input-number class="dialogInput"
|
|
|
@@ -42,6 +43,19 @@
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12"
|
|
|
+ v-if="isBlocs()">
|
|
|
+ <a-form-item label="挂牌价格"
|
|
|
+ name="FixedPrice"
|
|
|
+ class="inputIconBox">
|
|
|
+ <a-input-number class="commonInput"
|
|
|
+ style="width: 140px"
|
|
|
+ :min="0"
|
|
|
+ v-model:value="formState.FixedPrice" />
|
|
|
+ <a-checkbox class="commonCheckbox"
|
|
|
+ v-model:checked="priceCheck">可议价</a-checkbox>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12"
|
|
|
v-if="isFloat()">
|
|
|
<a-form-item label="基差"
|
|
|
name="PriceMove">
|
|
|
@@ -77,6 +91,35 @@
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
+ <a-col :span="12"
|
|
|
+ v-if="isBlocs()">
|
|
|
+ <a-form-item label="履约方式"
|
|
|
+ class="inputIconBox">
|
|
|
+ <span class="clickBox"
|
|
|
+ @click="openPermance">{{formState.permanceTempName ? formState.permanceTempName : '选择履约模板'}}</span>
|
|
|
+ <svg class="icon svg-icon"
|
|
|
+ aria-hidden="true"
|
|
|
+ @click="openPermance">
|
|
|
+ <use xlink:href="#icon-moban" />
|
|
|
+ </svg>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12"
|
|
|
+ v-if="isBlocs()">
|
|
|
+ <a-form-item label="指定朋友"
|
|
|
+ class="inputIconBox">
|
|
|
+ <span class="clickBox"
|
|
|
+ @click="openFriend">{{getFriendLength() ? `已选${getFriendLength() }人` : '选择朋友'}}</span>
|
|
|
+ <svg class="icon svg-icon"
|
|
|
+ aria-hidden="true"
|
|
|
+ @click="openFriend">
|
|
|
+ <use xlink:href="#icon-pengyou1" />
|
|
|
+ </svg>
|
|
|
+ <a-checkbox class="commonCheckbox"
|
|
|
+ v-model:checked="friendCheck"
|
|
|
+ @change="limiteFriends">不限</a-checkbox>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :span="12"
|
|
|
class="mt-20">
|
|
|
@@ -127,27 +170,23 @@
|
|
|
</a-row>
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :span="24"
|
|
|
+ v-if="isFloat()"
|
|
|
+ class="relative">
|
|
|
+ <a-form-item :label="'估算金额'">
|
|
|
+ <span class="white ml8">{{getMoney()}}</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="24"
|
|
|
+ v-if="isFixed()"
|
|
|
class="relative">
|
|
|
- <a-form-item :label="isFloat() ? '估算金额' : '挂牌金额'">
|
|
|
+ <a-form-item :label="'挂牌金额'">
|
|
|
<span class="white ml8">{{getMoney()}}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="24"
|
|
|
v-if="getMargin()">
|
|
|
<a-form-item :label="getMargin() ? '履约保证金' : ''">
|
|
|
- <!-- <a-row>
|
|
|
- <a-col :span="8">-->
|
|
|
<span class="white ml8">{{getMargin()}}</span>
|
|
|
- <!-- </a-col>
|
|
|
- <a-col :span="4" class="tr">-->
|
|
|
- <span class="grey1">可用资金</span>
|
|
|
- <!-- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <span
|
|
|
- class="white ml8"
|
|
|
- >{{getCanUseMoney(handleSelectedAccount())}}</span>
|
|
|
- </a-col>
|
|
|
- </a-row>-->
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="24">
|
|
|
@@ -189,7 +228,7 @@ import { v4 } from 'uuid';
|
|
|
import moment from 'moment';
|
|
|
import { ModalEnum } from '@/common/constants/modalNameEnum';
|
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
-import { handleGoods, handleForm, handleNumAndPrice } from './setup';
|
|
|
+import { handleGoods, handleForm, handleNumAndPrice, useMoney } from './setup';
|
|
|
import { validateAction } from '@/common/setup/form';
|
|
|
import { ListingForm } from './interface';
|
|
|
import { getMarketByTradeMode, getMarketRunByTradeMode } from '@/services/bus/market';
|
|
|
@@ -217,6 +256,8 @@ export default defineComponent({
|
|
|
const { visible, cancel } = _closeModal(context);
|
|
|
const { rules, formState, formRef } = handleForm(props.selectedRow);
|
|
|
|
|
|
+ const priceCheck = ref<boolean>(false); // 是否可议价
|
|
|
+
|
|
|
const { goodsGroup, goodsList, groupsChange, findGoodsCode } = handleGoods();
|
|
|
// 切换商品组
|
|
|
function handleGoodsGroups(value: number) {
|
|
|
@@ -237,7 +278,7 @@ export default defineComponent({
|
|
|
onMounted(() => {
|
|
|
removeSubscribeQuotation(uuid);
|
|
|
});
|
|
|
- const { getMoney, getMargin, isFloat } = handleNumAndPrice();
|
|
|
+ const { getMoney, getMargin, isFloat, isFixed, isBlocs } = handleNumAndPrice();
|
|
|
// 处理内部资金账号
|
|
|
function handleSelectedAccount() {
|
|
|
const item = getSelectedAccount();
|
|
|
@@ -319,13 +360,17 @@ export default defineComponent({
|
|
|
formRef,
|
|
|
goodsGroup,
|
|
|
goodsList,
|
|
|
+ ...useMoney(),
|
|
|
handleGoodsGroups,
|
|
|
handleGoodsChange,
|
|
|
isFloat,
|
|
|
+ isFixed,
|
|
|
+ isBlocs,
|
|
|
getMoney,
|
|
|
getMargin,
|
|
|
getCanUseMoney,
|
|
|
handleSelectedAccount,
|
|
|
+ priceCheck,
|
|
|
};
|
|
|
},
|
|
|
});
|