|
|
@@ -104,7 +104,7 @@ import Drawer from '@/common/components/drawer/index.vue';
|
|
|
import { PlusOutlined, MinusOutlined } from '@ant-design/icons-vue';
|
|
|
import { hdWROrder, wRListingCancelOrder } from '@/services/proto/warehousetrade';
|
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
-import { HdWROrderReq } from '@/services/proto/warehousetrade/interface';
|
|
|
+import {HdWROrderReq, WRGoodsInfo} from '@/services/proto/warehousetrade/interface';
|
|
|
import { getAccountTypeList, getInTaAccount, getUserId } from '@/services/bus/account';
|
|
|
import { v4 as uuidv4 } from 'uuid';
|
|
|
import moment from 'moment';
|
|
|
@@ -147,6 +147,15 @@ export default defineComponent({
|
|
|
if (marketInfo) {
|
|
|
validateAction<FormParam>(formRef, formState).then((res) => {
|
|
|
// 只有有仓单的有求购 无仓单不能求购
|
|
|
+
|
|
|
+ const wrGoodsInfo: WRGoodsInfo = {
|
|
|
+ GoodsID: props.selectedRow.goodsid, // uint32 配置商品ID
|
|
|
+ GoodsCode: props.selectedRow.goodscode, // string 配置商品代码
|
|
|
+ PriceFactor: 1, // double 商品价格系数
|
|
|
+ PriceMove: 0, // double 商品升贴水值
|
|
|
+ WeightRatio: 1, // double 商品重量系数
|
|
|
+ };
|
|
|
+
|
|
|
const param = {
|
|
|
AccountID: res.accountid, // 默认内部资金账号第一个
|
|
|
ClientSerialNo: uuidv4(), // 客户端流水号
|
|
|
@@ -182,7 +191,7 @@ export default defineComponent({
|
|
|
Attachment2: '', // 附件2
|
|
|
Remark: '222', // 备注
|
|
|
ApplyID: 0, // 申请ID
|
|
|
- WRTradeGoods: [],
|
|
|
+ WRTradeGoods: isFixed()?[] : [wrGoodsInfo],
|
|
|
CanPart: 1, // 是否允许部份摘牌0:不允许;1:允许
|
|
|
WRStandardID: props.selectedRow.wrstandardid,
|
|
|
HasWr: 1, // 无仓单挂牌 是否有无仓单
|