|
|
@@ -105,7 +105,7 @@ import { getSelectedAccountId, getUserId } from '@/services/bus/account';
|
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
import { wROutApply } from '@/services/proto/warehousetrade';
|
|
|
import { v4 as uuidv4 } from 'uuid';
|
|
|
-import moment from 'moment';
|
|
|
+import moment, {Moment} from 'moment';
|
|
|
import { ModalEnum } from '@/common/constants/modalNameEnum';
|
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
import { WROutInDetail } from '@/services/proto/warehousetrade/interface';
|
|
|
@@ -140,20 +140,19 @@ export default defineComponent({
|
|
|
WarehouseID: props.selectedRow.warehouseid, // uint64 仓库ID
|
|
|
UserID: getUserId(), // uint64 申请人ID
|
|
|
AccountID: getSelectedAccountId()?.toString(), // uint64 申请人账户ID
|
|
|
- AppointmentDate: '20200730', // string 预约出库时间(格式:20200101)
|
|
|
+ AppointmentDate: (res.AppointmentDate.value as Moment).format('YYYYMMDD'), // string 预约出库时间(格式:20200101)
|
|
|
AppointmentModel: 3, // uint32 预约方式:1-物流,2-自送,3-自提
|
|
|
- ContactName: '111', // string 收货人提货人
|
|
|
- ContactNum: '131', // string 收货人提货人手机
|
|
|
+ ContactName: res.ContactName, // string 收货人提货人
|
|
|
+ ContactNum: res.ContactNum, // 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 预约数量
|
|
|
+ Qty: res.OutQty, // uint64 子提单总数量
|
|
|
+ OutQty: res.OutQty, // uint64 预约数量
|
|
|
} as WROutInDetail, // WROutInDetail 仓单出库提单明细数据
|
|
|
};
|
|
|
-
|
|
|
requestResultLoadingAndInfo(wROutApply, param, loading, ['提货成功', '提货失败:']).then(() => {
|
|
|
cancel(true);
|
|
|
});
|