|
|
@@ -249,15 +249,16 @@
|
|
|
<!-- 以下是点价的价格信息 start -->
|
|
|
<template v-if="formState.PriceType === 2 || formState.PriceType === 3">
|
|
|
<a-col :span="12">
|
|
|
- <a-form-item label="点价合约">
|
|
|
+ <a-form-item label="点价合约"
|
|
|
+ name="GoodsID">
|
|
|
<a-select class="inlineFormSelect"
|
|
|
+ v-model:value="formState.GoodsID"
|
|
|
style="width: 200px"
|
|
|
placeholder="请选择点价合约">
|
|
|
- <a-select-option value="1">
|
|
|
- 合约一
|
|
|
- </a-select-option>
|
|
|
- <a-select-option value="2">
|
|
|
- 合约二
|
|
|
+ <a-select-option v-for="item in goodsList"
|
|
|
+ :key="item.goodsid"
|
|
|
+ :value="item.goodsid">
|
|
|
+ {{item.goodsname}}
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
@@ -432,6 +433,7 @@ import { closeModal } from '@/common/setup/modal/index';
|
|
|
import { initData } from '@/common/methods';
|
|
|
import { handleFromState, handleContract, handlevalidate, handleDeliveryGoods, handlePrice, handleDate } from './setup';
|
|
|
import { getUserName } from '@/services/bus/user';
|
|
|
+import { getGoodsList } from '@/services/bus/goods';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'add-spot-contract',
|
|
|
@@ -469,6 +471,8 @@ export default defineComponent({
|
|
|
const { priceType, payCurrency, payCurrencyUnit, parCurrencyChange } = handlePrice(formState);
|
|
|
// 日期
|
|
|
const { deliveryDate, disabledDate } = handleDate();
|
|
|
+ // 现货商品列表
|
|
|
+ const goodsList = getGoodsList();
|
|
|
function submit() {
|
|
|
loading.value = true;
|
|
|
setTimeout(() => {
|
|
|
@@ -506,6 +510,7 @@ export default defineComponent({
|
|
|
getUserName,
|
|
|
deliveryDate,
|
|
|
disabledDate,
|
|
|
+ goodsList,
|
|
|
};
|
|
|
},
|
|
|
});
|
|
|
@@ -513,7 +518,5 @@ export default defineComponent({
|
|
|
|
|
|
<style lang="less">
|
|
|
.add-spot-contract {
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
</style>;
|