|
@@ -72,8 +72,12 @@
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
- <a-form-item label="交易主体" name="subjecttype">
|
|
|
|
|
- <a-input class="subjecttype" style="width: 200px" v-model:value="formState.ContractNo" placeholder="请输入交易主体" />
|
|
|
|
|
|
|
+ <a-form-item label="交易主体" name="SubjectID">
|
|
|
|
|
+ <a-select class="inlineFormSelect" style="width: 200px" v-model:value="formState.SubjectID" placeholder="请选择主体">
|
|
|
|
|
+ <a-select-option :value="item.subjectid" v-for="item in subjectList" :key="item.subjectid">
|
|
|
|
|
+ {{ item.subjectname }}
|
|
|
|
|
+ </a-select-option>
|
|
|
|
|
+ </a-select>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
@@ -242,9 +246,7 @@
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
import { defineComponent, PropType, ref } from 'vue';
|
|
import { defineComponent, PropType, ref } from 'vue';
|
|
|
import { addContractReq } from './setup';
|
|
import { addContractReq } from './setup';
|
|
|
-import { getAreaUserName, getRootUserInfo, getUserName, getUserId } from '@/services/bus/user';
|
|
|
|
|
-import { getGoodsList } from '@/services/bus/goods';
|
|
|
|
|
-import { Goods } from '@/services/go/ermcp/goodsInfo/interface';
|
|
|
|
|
|
|
+import { getRootUserInfo, getUserName, getUserId } from '@/services/bus/user';
|
|
|
import { FormState } from '../interface';
|
|
import { FormState } from '../interface';
|
|
|
import { formatTime } from '@/common/methods/format';
|
|
import { formatTime } from '@/common/methods/format';
|
|
|
import { Ermcp3ContractRsp } from '@/services/go/ermcp/spot-contract/interface';
|
|
import { Ermcp3ContractRsp } from '@/services/go/ermcp/spot-contract/interface';
|
|
@@ -252,6 +254,8 @@ import { Moment } from 'moment';
|
|
|
import { handleFormRule, handleContract, handleDeliveryGoods, handleAmout, handlePrice, handleDate, handleFromState } from '../setup';
|
|
import { handleFormRule, handleContract, handleDeliveryGoods, handleAmout, handlePrice, handleDate, handleFromState } from '../setup';
|
|
|
import { validateAction } from '@/common/setup/form';
|
|
import { validateAction } from '@/common/setup/form';
|
|
|
import { ErmcpLoginUser } from '@/services/go/ermcp/account/interface';
|
|
import { ErmcpLoginUser } from '@/services/go/ermcp/account/interface';
|
|
|
|
|
+import { Ermcp3SubjectRsp } from '@/services/go/ermcp/subject/interface';
|
|
|
|
|
+import { QueryPaAreaSubject } from '@/services/go/ermcp/subject';
|
|
|
import { handlerManagerList } from '@/common/setup/user';
|
|
import { handlerManagerList } from '@/common/setup/user';
|
|
|
import { getUploadImg } from '@/common/setup/upload';
|
|
import { getUploadImg } from '@/common/setup/upload';
|
|
|
import UploadImg from '@/common/components/uploadImg/index.vue';
|
|
import UploadImg from '@/common/components/uploadImg/index.vue';
|
|
@@ -280,7 +284,7 @@ export default defineComponent({
|
|
|
const { contractType, isSell, contractChange, customList, queryCustomList } = handleContract(formState);
|
|
const { contractType, isSell, contractChange, customList, queryCustomList } = handleContract(formState);
|
|
|
|
|
|
|
|
// 处理现货商品
|
|
// 处理现货商品
|
|
|
- const { deliveryGoodsList, gblist, gmlist, numberUnit, WrStandardChange, getDeliveryGoods, deliveryGoodsChange } = handleDeliveryGoods(formState);
|
|
|
|
|
|
|
+ const { deliveryGoodsList,goodsList, gblist, gmlist, numberUnit, WrStandardChange, getDeliveryGoods, deliveryGoodsChange } = handleDeliveryGoods(formState);
|
|
|
// 价格信息
|
|
// 价格信息
|
|
|
const { priceType, payCurrency, payCurrencyUnit, parCurrencyChange } = handlePrice(formState);
|
|
const { priceType, payCurrency, payCurrencyUnit, parCurrencyChange } = handlePrice(formState);
|
|
|
// 日期
|
|
// 日期
|
|
@@ -294,14 +298,17 @@ export default defineComponent({
|
|
|
const businesserList = ref<ErmcpLoginUser[]>([]);
|
|
const businesserList = ref<ErmcpLoginUser[]>([]);
|
|
|
// 跟单员
|
|
// 跟单员
|
|
|
const merchandiserList = ref<ErmcpLoginUser[]>([]);
|
|
const merchandiserList = ref<ErmcpLoginUser[]>([]);
|
|
|
- // 现货商品列表
|
|
|
|
|
- const goodsList = ref<Goods[]>([]);
|
|
|
|
|
const { getFirstImg, uploadImgAction } = getUploadImg();
|
|
const { getFirstImg, uploadImgAction } = getUploadImg();
|
|
|
|
|
|
|
|
|
|
+ // 交易主体列表
|
|
|
|
|
+ const subjectList = ref<Ermcp3SubjectRsp[]>([]);
|
|
|
|
|
+ QueryPaAreaSubject().then((res) => {
|
|
|
|
|
+ subjectList.value = res;
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
queryCustomList();
|
|
queryCustomList();
|
|
|
getDeliveryGoods();
|
|
getDeliveryGoods();
|
|
|
queryTradeManager();
|
|
queryTradeManager();
|
|
|
- goodsList.value = getGoodsList();
|
|
|
|
|
queryBusinessManager().then(() => {
|
|
queryBusinessManager().then(() => {
|
|
|
businesserList.value = getBusinesserOrMerchandiser('22');
|
|
businesserList.value = getBusinesserOrMerchandiser('22');
|
|
|
merchandiserList.value = getBusinesserOrMerchandiser('23');
|
|
merchandiserList.value = getBusinesserOrMerchandiser('23');
|
|
@@ -380,6 +387,7 @@ export default defineComponent({
|
|
|
merchandiserList,
|
|
merchandiserList,
|
|
|
uploadImgAction,
|
|
uploadImgAction,
|
|
|
getRootUserInfo,
|
|
getRootUserInfo,
|
|
|
|
|
+ subjectList,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|