|
|
@@ -2,19 +2,27 @@ import {buildProtoReq50, parseProtoRsp50} from "@/services/socket/protobuf/build
|
|
|
import APP from "@/services";
|
|
|
import {Callback} from "@/utils/websocket";
|
|
|
import {ErmcpContractOperateApplyReq} from "@/services/proto/contract/interface";
|
|
|
+import {getSelectedAccountId, getUserId} from "@/services/bus/account";
|
|
|
+import {getUUID} from "@/utils/qt/common";
|
|
|
|
|
|
/**
|
|
|
* 合同
|
|
|
* @param param
|
|
|
*/
|
|
|
export const operationContractReq = (param: ErmcpContractOperateApplyReq): Promise<any> => {
|
|
|
+
|
|
|
+ const OperateSrc = 2;
|
|
|
+ const UserID = getUserId()
|
|
|
+ const ClientTicket = getUUID()
|
|
|
+ const OperateApplyID = getUUID()
|
|
|
+
|
|
|
return new Promise((resolve, reject) => {
|
|
|
const params = {
|
|
|
protobufName: 'ErmcpContractOperateApplyReq',
|
|
|
funCodeName: 'ErmcpContractOperateApplyReq',
|
|
|
- reqParams: param,
|
|
|
+ reqParams: { OperateApplyID, OperateSrc, UserID, ClientTicket, ...param },
|
|
|
msgHeadParams: {
|
|
|
- AccountID: param.accountid,
|
|
|
+ AccountID: getSelectedAccountId(),
|
|
|
MarketID: 18,
|
|
|
GoodsID: 0,
|
|
|
}
|