|
|
@@ -72,8 +72,8 @@
|
|
|
v-model:value="formState.BuyUserID"
|
|
|
placeholder="请选择客户">
|
|
|
<!-- 客户资料列表 正常 -->
|
|
|
- <a-select-option :value="i"
|
|
|
- v-for="(item, i) in customList"
|
|
|
+ <a-select-option :value="item.userid"
|
|
|
+ v-for="item in customList"
|
|
|
:key="item.userid">
|
|
|
{{item.customername}}
|
|
|
</a-select-option>
|
|
|
@@ -267,11 +267,11 @@
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="升贴水"
|
|
|
name="PriceMove">
|
|
|
- <a-input class="dialogInput suffixGrey"
|
|
|
- v-model:value="formState.PriceMove"
|
|
|
- placeholder="请输入升贴水"
|
|
|
- :suffix="`${payCurrencyUnit}/${numberUnit}`"
|
|
|
- style="width: 200px" />
|
|
|
+ <a-input-number class="dialogInput suffixGrey"
|
|
|
+ v-model:value="formState.PriceMove"
|
|
|
+ placeholder="请输入升贴水"
|
|
|
+ :suffix="`${payCurrencyUnit}/${numberUnit}`"
|
|
|
+ style="width: 200px" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
@@ -423,10 +423,6 @@ import { Ermcp3ContractRsp } from '@/services/go/ermcp/spot-contract/interface';
|
|
|
import { handleAccountManager } from '../setup';
|
|
|
import { Moment } from 'moment';
|
|
|
import { handleFormRule, handleContract, handleDeliveryGoods, handleAmout, handlePrice, handleDate, handleFromState } from '../setup';
|
|
|
-import {requestResultLoadingAndInfo} from "@/common/methods/request/resultInfo";
|
|
|
-import {addDeliveryGoodsApply} from "@/services/proto/delivery";
|
|
|
-import {orderContract} from "@/services/proto/spotcontract";
|
|
|
-import {GldErmcpSpotContractOperateReq} from "@/services/proto/spotcontract/interface";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'add-spot-contract',
|
|
|
@@ -447,7 +443,7 @@ export default defineComponent({
|
|
|
const { formState, businessType } = handleFromState();
|
|
|
const { rules } = handleFormRule(formState);
|
|
|
// 合同类型
|
|
|
- const { contractType, isSell, contractChange, customList, queryCustomList } = handleContract();
|
|
|
+ const { contractType, isSell, contractChange, customList, queryCustomList } = handleContract(formState);
|
|
|
|
|
|
// 处理现货商品
|
|
|
const { deliveryGoodsList, gblist, gmlist, numberUnit, WrStandardChange, getDeliveryGoods, deliveryGoodsChange } = handleDeliveryGoods(formState);
|
|
|
@@ -463,8 +459,6 @@ export default defineComponent({
|
|
|
const goodsList = ref<Goods[]>([]);
|
|
|
|
|
|
function submit(OperateType: 1 | 2) {
|
|
|
- console.log('toRaw(formState);', toRaw(formState));
|
|
|
-
|
|
|
formRef.value
|
|
|
.validate()
|
|
|
.then(() => {
|