|
@@ -79,16 +79,12 @@ export function operationContractReqBuilder(req: Object, id: string, type: numbe
|
|
|
return {
|
|
return {
|
|
|
OperateType: 1, // uint32 操作类型-1:登记2:确认3:拒绝4:撤销
|
|
OperateType: 1, // uint32 操作类型-1:登记2:确认3:拒绝4:撤销
|
|
|
Remark: '',
|
|
Remark: '',
|
|
|
- OperateSrc: 2,
|
|
|
|
|
- ClientTicket: uuidv4(),
|
|
|
|
|
- OperateApplyID: getTimeValue(),
|
|
|
|
|
Info: {
|
|
Info: {
|
|
|
OperateApplyType: type, // uint32 操作申请类型-1:点价2:结算3:款项4:发票
|
|
OperateApplyType: type, // uint32 操作申请类型-1:点价2:结算3:款项4:发票
|
|
|
RelatedID: Long.fromString(id), // uint64 现货合同ID(602+Unix秒时间戳(10位)+xxxxxx)
|
|
RelatedID: Long.fromString(id), // uint64 现货合同ID(602+Unix秒时间戳(10位)+xxxxxx)
|
|
|
DetailJson: objectToUint8Array(req), // bytes 明细JSON {}
|
|
DetailJson: objectToUint8Array(req), // bytes 明细JSON {}
|
|
|
AttachUrl: attachUrl === undefined ? "" : objectToUint8Array(attachUrl as string) // bytes 附件
|
|
AttachUrl: attachUrl === undefined ? "" : objectToUint8Array(attachUrl as string) // bytes 附件
|
|
|
},
|
|
},
|
|
|
- UserID: getLongTypeLoginID()?.toNumber()
|
|
|
|
|
} as ErmcpContractOperateApplyReq
|
|
} as ErmcpContractOperateApplyReq
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -101,7 +97,6 @@ export function operationContractReqBuilder(req: Object, id: string, type: numbe
|
|
|
*/
|
|
*/
|
|
|
export function operationContractRsp(type: number, req: ErmcpContractOperateApplyReq, loading: Ref<boolean>): Promise<string> {
|
|
export function operationContractRsp(type: number, req: ErmcpContractOperateApplyReq, loading: Ref<boolean>): Promise<string> {
|
|
|
const sign = getRequestResultInfo(purchaseStateSign, type) // 接口请求后的返回提示 这里统一进行管理
|
|
const sign = getRequestResultInfo(purchaseStateSign, type) // 接口请求后的返回提示 这里统一进行管理
|
|
|
- debugger
|
|
|
|
|
const result = operationContractReq(req)
|
|
const result = operationContractReq(req)
|
|
|
return commonResultInfo(result, sign, loading)
|
|
return commonResultInfo(result, sign, loading)
|
|
|
}
|
|
}
|