|
@@ -75,14 +75,18 @@
|
|
|
import { defineComponent, PropType, ref } from 'vue';
|
|
import { defineComponent, PropType, ref } from 'vue';
|
|
|
import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
|
|
import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
|
|
|
import Drawer from '@/common/components/drawer/index.vue';
|
|
import Drawer from '@/common/components/drawer/index.vue';
|
|
|
-import { QueryWrPositionReq, WrPosition } from '@/services/go/wrtrade/interface';
|
|
|
|
|
-import { getUserId } from '@/services/bus/account';
|
|
|
|
|
|
|
+import {QueryWrPositionReq, WrHoldLB, WrPosition, WrTradeDetail} from '@/services/go/wrtrade/interface';
|
|
|
|
|
+import {getSelectedAccountId, getUserId} from '@/services/bus/account';
|
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
-import { hdWROrder } from '@/services/proto/warehousetrade';
|
|
|
|
|
|
|
+import {hdWROrder, wROutApply} from '@/services/proto/warehousetrade';
|
|
|
import { v4 as uuidv4 } from 'uuid';
|
|
import { v4 as uuidv4 } from 'uuid';
|
|
|
import moment from 'moment';
|
|
import moment from 'moment';
|
|
|
import { ModalEnum } from '@/common/constants/modalNameEnum';
|
|
import { ModalEnum } from '@/common/constants/modalNameEnum';
|
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
|
|
+import {WROutInDetail} from "@/services/proto/warehousetrade/interface";
|
|
|
|
|
+import {getUUID} from "@/utils/qt/common";
|
|
|
|
|
+import {getLongTypeLoginID} from "@/services/bus/login";
|
|
|
|
|
+import * as Long from "long";
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: ModalEnum.spot_warrant_spot_details_pick_up,
|
|
name: ModalEnum.spot_warrant_spot_details_pick_up,
|
|
@@ -90,7 +94,7 @@ export default defineComponent({
|
|
|
emits: ['cancel'],
|
|
emits: ['cancel'],
|
|
|
props: {
|
|
props: {
|
|
|
selectedRow: {
|
|
selectedRow: {
|
|
|
- type: Object as PropType<WrPosition>,
|
|
|
|
|
|
|
+ type: Object as PropType<WrHoldLB>,
|
|
|
default: {},
|
|
default: {},
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -99,9 +103,30 @@ export default defineComponent({
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
const { visible, cancel } = _closeModal(context);
|
|
const { visible, cancel } = _closeModal(context);
|
|
|
// console.log(param);
|
|
// console.log(param);
|
|
|
- // requestResultLoadingAndInfo(hdWROrder, param, loading, ['挂牌成功', '挂牌失败:']).then(() => {
|
|
|
|
|
- // // cancel(true);
|
|
|
|
|
- // });
|
|
|
|
|
|
|
+
|
|
|
|
|
+ const param = {
|
|
|
|
|
+ ClientSerialID: getUUID(), // uint64 客户端唯一ID
|
|
|
|
|
+ WRStandardID: props.selectedRow.wrstandardid, // uint64 仓单标准ID
|
|
|
|
|
+ WarehouseID: props.selectedRow.warehouseid, // uint64 仓库ID
|
|
|
|
|
+ UserID: getUserId(), // uint64 申请人ID
|
|
|
|
|
+ AccountID: getSelectedAccountId()?.toString(), // uint64 申请人账户ID
|
|
|
|
|
+ AppointmentDate: "20200730", // string 预约出库时间(格式:20200101)
|
|
|
|
|
+ AppointmentModel: 3, // uint32 预约方式:1-物流,2-自送,3-自提
|
|
|
|
|
+ ContactName: "111", // string 收货人提货人
|
|
|
|
|
+ ContactNum: "131", // string 收货人提货人手机
|
|
|
|
|
+ AppointmentRemark: "", // string 预约备注
|
|
|
|
|
+ CreatorID: Number(getLongTypeLoginID()), // uint64 创建人ID
|
|
|
|
|
+ WROutInDetails: {
|
|
|
|
|
+ LadingBillID: props.selectedRow.ladingbillid, // string 提单ID
|
|
|
|
|
+ SubNum: props.selectedRow.subnum, // uint64 提单子单号
|
|
|
|
|
+ Qty: 1, // uint64 子提单总数量
|
|
|
|
|
+ OutQty: 1, // uint64 预约数量
|
|
|
|
|
+ } as WROutInDetail// WROutInDetail 仓单出库提单明细数据
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ requestResultLoadingAndInfo(wROutApply, param, loading, ['提货成功', '提货失败:']).then(() => {
|
|
|
|
|
+ // cancel(true);
|
|
|
|
|
+ });
|
|
|
return {
|
|
return {
|
|
|
visible,
|
|
visible,
|
|
|
cancel,
|
|
cancel,
|