فهرست منبع

commit 登记人错误问题

yu jie 4 سال پیش
والد
کامیت
56a5ad7166

+ 1 - 2
src/services/proto/contract/index.ts

@@ -12,10 +12,9 @@ import {getUserId} from "@/services/bus/account";
 export const operationContractReq = (param: ErmcpContractOperateApplyReq): Promise<any> => {
     const obj = {
         OperateSrc: 2,
-        OperatorID: Number(getLongTypeLoginID()),
         ClientTicket: getUUID(),
         OperateApplyID: getTimeValue(),
-        UserID: Number(getUserId())
+        UserID: getLongTypeLoginID()?.toNumber()
     }
     Object.assign(param, obj)
     return protoMiddleware<ErmcpContractOperateApplyReq>(param, 'ErmcpContractOperateApplyReq', 'ErmcpContractOperateApplyRsp', 2)

+ 12 - 0
src/views/business/exposure/list/futures/index.vue

@@ -11,6 +11,18 @@
              :pagination="false"
              rowKey="key"
              :data-source="tableList">
+        <template #totalydqty="{ record }">
+            <span>{{ record.totalydqty + " 手"  }}</span>
+        </template>
+        <template #increaseqty="{ record }">
+            <span>{{ record.increaseqty + " 手"  }}</span>
+        </template>
+        <template #decreaseqty="{ record }">
+            <span>{{ record.decreaseqty + " 手"  }}</span>
+        </template>
+        <template #totalcurqty="{ record }">
+            <span>{{ record.totalcurqty + " 手"  }}</span>
+        </template>
     </a-table>
     <!-- 明细 -->
     <Description v-if="visible"

+ 0 - 5
src/views/business/purchase/components/setup.ts

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