| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- // @ts-ignore
- import request from '@/utils/request'
- // @ts-ignore
- import { calculateShelfLifeType, getCommodityRuleType, getIReceivingTaskType, getProductAttributeType, getReceivingAsnDetailsType, setProductAttributeDataType, setProductAttributeParamsType, setReceivingType} from '@/types/takeDelivery'
- /**
- * 获取收货任务详情以及当前员工收货信息
- * @param data
- */
- export function getIReceivingTask(data:getIReceivingTaskType) {
- return request({
- url: '/api/wms/receiving/getTask',
- method: 'post',
- data:JSON.stringify(data),
- })
- }
- /**
- * 待收货ASN详情
- * @param params
- */
- export function getReceivingAsnDetails(params:getReceivingAsnDetailsType) {
- return request({
- url: '/api/wms/receiving/get-asn-details',
- method: 'get',
- params
- })
- }
- /**
- * 获取商品物理属性
- * @param params
- */
- export function getProductAttribute(params:getProductAttributeType) {
- return request({
- url: '/api/basic/product/attribute',
- method: 'get',
- params
- })
- }
- /**
- * 获取商品物理属性
- * @param params
- */
- export function setProductAttribute(params:setProductAttributeParamsType,data:setProductAttributeDataType) {
- return request({
- url: '/api/basic/product/update-attribute',
- method: 'post',
- params,
- data
- })
- }
- /**
- * 获取商品批次属性
- * @param params
- */
- export function getProductLot(params:getProductAttributeType) {
- return request({
- url: '/api/basic/product/lot',
- method: 'get',
- params
- })
- }
- /**
- * 获取商品批次属性
- * @param params
- */
- export function calculateShelfLife(params:calculateShelfLifeType) {
- return request({
- url: '/api/basic/product/calculateShelfLife',
- method: 'get',
- params
- })
- }
- /**
- * 查询商品规则
- * @param params
- */
- export function getCommodityRule(params:getCommodityRuleType) {
- return request({
- url: '/api/base/commodity/rule/list',
- method: 'get',
- params
- })
- }
- /** 货主规则 */
- export function getOwnerRule(code: string) {
- return request({
- url: '/api/basic/owner/rule/get',
- method: 'get',
- params: { code },
- })
- }
- /** 组合商品外箱唯一码换子件唯一码 */
- export function getPanpassCodeRelation(params: { docNo: string; uniqueCode: string; customer: string }) {
- return request({
- url: '/api/wms/panpass/code-relation',
- method: 'post',
- params,
- })
- }
- /**
- * 完成收货
- * @param params
- */
- export function setReceiving(data:setReceivingType) {
- return request({
- url: '/api/wms/receiving',
- method: 'post',
- data
- })
- }
- /**
- * 完成收货
- * @param params
- */
- export function setBotReceiving(data:setReceivingType) {
- return request({
- url: '/api/wms/receiving/botReceiving',
- method: 'post',
- data
- })
- }
|