feat: 销售出货处理平台路由修改
This commit is contained in:
parent
af1f482a0f
commit
b18039d539
98
src/api/wms/documentCommon.js
Normal file
98
src/api/wms/documentCommon.js
Normal file
@ -0,0 +1,98 @@
|
||||
import request from '@/router/axios'
|
||||
|
||||
export function getSubmitDocumentDetail(obj) {
|
||||
return request({
|
||||
url: '/mom-wms/document/detail/getSubmitDocumentDetail',
|
||||
method: 'get',
|
||||
params: obj
|
||||
})
|
||||
}
|
||||
|
||||
export function getCloseDocumentDetail(obj) {
|
||||
return request({
|
||||
url: '/mom-wms/document/detail/getCloseDocumentDetail',
|
||||
method: 'get',
|
||||
params: obj
|
||||
})
|
||||
}
|
||||
|
||||
export function getPickDocumentDetail(obj) {
|
||||
return request({
|
||||
url: '/mom-wms/document/detail/getPickDocumentDetail',
|
||||
method: 'get',
|
||||
params: obj
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function scanCode(obj) {
|
||||
return request({
|
||||
url: '/mom-wms/document/scanCode',
|
||||
method: 'get',
|
||||
params: obj
|
||||
})
|
||||
}
|
||||
|
||||
export function pickingSave(obj) {
|
||||
return request({
|
||||
url: '/mom-wms/document/picking/save',
|
||||
method: 'post',
|
||||
data: obj
|
||||
})
|
||||
}
|
||||
|
||||
export function pickingSavecheckingScanAll(obj) {
|
||||
return request({
|
||||
url: '/mom-wms/document/picking/save/checkingScanAll',
|
||||
method: 'post',
|
||||
data: obj
|
||||
})
|
||||
}
|
||||
|
||||
export function pickingClean(obj) {
|
||||
return request({
|
||||
url: '/mom-wms/document/picking/clean',
|
||||
method: 'delete',
|
||||
data: obj
|
||||
})
|
||||
}
|
||||
|
||||
export function rejectDocument(obj) {
|
||||
return request({
|
||||
url: '/mom-wms/document/rejectDocument',
|
||||
method: 'post',
|
||||
data: obj
|
||||
})
|
||||
}
|
||||
|
||||
export function submitDocument(obj) {
|
||||
return request({
|
||||
url: '/mom-wms/document/submitDocument',
|
||||
method: 'post',
|
||||
data: obj
|
||||
})
|
||||
}
|
||||
|
||||
export function postIn(obj) {
|
||||
return request({
|
||||
url: '/mom-wms/document/postIn',
|
||||
method: 'post',
|
||||
data: obj
|
||||
})
|
||||
}
|
||||
|
||||
export function postOut(obj) {
|
||||
return request({
|
||||
url: '/mom-wms/document/postOut',
|
||||
method: 'post',
|
||||
data: obj
|
||||
})
|
||||
}
|
||||
|
||||
export function postTransfer(obj) {
|
||||
return request({
|
||||
url: '/mom-wms/document/postTransfer',
|
||||
method: 'post',
|
||||
data: obj
|
||||
})
|
||||
}
|
||||
@ -50,7 +50,7 @@
|
||||
<el-table-column label="出货数量" prop="applicationsQuantity" align="center"></el-table-column>
|
||||
<el-table-column label="单位" prop="unitOfMeasure" align="center"></el-table-column>
|
||||
<el-table-column label="拣货数量" prop="pickQty" align="center"></el-table-column>
|
||||
<el-table-column label="出货批次" prop="salesBatch" align="center"></el-table-column>
|
||||
<el-table-column label="涂布批次" prop="salesBatch" align="center"></el-table-column>
|
||||
<el-table-column label="拣货状态" prop="pickStatus" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{formatterConst[scope.column.property][scope.row[scope.column.property]]}}
|
||||
@ -171,14 +171,17 @@
|
||||
import {
|
||||
pickingPost,
|
||||
pickingPrint,
|
||||
saleOutPost,
|
||||
selectPickingSuggest,
|
||||
selectSaleOutDetail,
|
||||
saleOutPostCancel,
|
||||
pickingPostCancel,
|
||||
pickingPrintA4
|
||||
} from '@/api/wms/sale-out-platform';
|
||||
import {fetchList as fetchProductionRequisitionList, pickingRemove} from "@/api/wms/picking";
|
||||
import {fetchList as fetchProductionRequisitionList} from "@/api/wms/picking";
|
||||
import {
|
||||
pickingClean,
|
||||
postOut
|
||||
} from "@/api/wms/documentCommon";
|
||||
import {getByCode} from '@/api/mes/sys/fast-code';
|
||||
import {inputShowDialog, inputCallBack} from '@/util/inputSelectDialogUtil';
|
||||
import {isBlank} from "@/util/string";
|
||||
@ -399,13 +402,16 @@
|
||||
return me.$message.error("第" + (i + 1) + "行拣货状态不允许清除");
|
||||
}
|
||||
}
|
||||
let param = {
|
||||
let param = /*{
|
||||
activityId: me.$route.query.ACTIVITY_ID,
|
||||
documentNo: me.saleOutListSelection[0].documentNo,
|
||||
seqList: me.saleOutListSelection.map(o => o.seq),
|
||||
};*/{
|
||||
str: me.saleOutListSelection[0].documentNo,
|
||||
list: me.saleOutListSelection.map(o => o.seq),
|
||||
};
|
||||
showLoading();
|
||||
pickingRemove(param).then(res => {
|
||||
pickingClean(param).then(res => {
|
||||
hideLoading();
|
||||
if (!res.data.data) {
|
||||
return me.$message.error("该单据无拣货记录");
|
||||
@ -489,8 +495,8 @@
|
||||
saleOutPost() {
|
||||
let me = this;
|
||||
showLoading();
|
||||
saleOutPost({
|
||||
documentNo: me.formObj.documentNo,
|
||||
postOut({
|
||||
str: me.formObj.documentNo,
|
||||
dateTime: dateFormat(me.formObj.dateTime)
|
||||
}).then(res => {
|
||||
hideLoading();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user