fix(wms): 修复参数名错误并移除无用导入

修复pendingAction接口中newCoilIds参数默认值问题
将createBy/updateBy统一改为createBys/updateBys
移除report模板中未使用的listCoilWithIds导入
This commit is contained in:
砂糖
2026-04-16 10:17:35 +08:00
parent c31dc4948e
commit 220a24da78
5 changed files with 10 additions and 14 deletions

View File

@@ -127,7 +127,7 @@ export function completeAction(actionId, newCoilIds) {
url: `/wms/coilPendingAction/complete/${actionId}`, url: `/wms/coilPendingAction/complete/${actionId}`,
method: 'put', method: 'put',
params: { params: {
newCoilIds: newCoilIds newCoilIds: newCoilIds || '-'
} }
}) })
} }

View File

@@ -1,7 +1,7 @@
export const dugeConfig = { export const dugeConfig = {
actionTypes: [505, 120], actionTypes: [505, 120],
actionQueryParams: { actionQueryParams: {
createBy: 'dugekuguan' createBys: 'dugekuguan'
}, },
baseQueryParams: { baseQueryParams: {
createBy: 'dugekuguan', createBy: 'dugekuguan',
@@ -19,7 +19,7 @@ export const dugeConfig = {
export const lajiaoConfig = { export const lajiaoConfig = {
actionTypes: [503, 120], actionTypes: [503, 120],
actionQueryParams: { actionQueryParams: {
updateBy: 'lajiaokuguan' updateBys: 'lajiaokuguan'
}, },
baseQueryParams: { baseQueryParams: {
createBy: 'lajiaokuguan', createBy: 'lajiaokuguan',
@@ -37,7 +37,7 @@ export const lajiaoConfig = {
export const shuangConfig = { export const shuangConfig = {
actionTypes: [504, 120], actionTypes: [504, 120],
actionQueryParams: { actionQueryParams: {
createBy: 'shuangkuguan' createBys: 'shuangkuguan'
}, },
baseQueryParams: { baseQueryParams: {
createBy: 'shuangkuguan', createBy: 'shuangkuguan',
@@ -55,7 +55,7 @@ export const shuangConfig = {
export const tuozhiConfig = { export const tuozhiConfig = {
actionTypes: [502, 120], actionTypes: [502, 120],
actionQueryParams: { actionQueryParams: {
createBy: 'tuozhikuguan' createBys: 'tuozhikuguan'
}, },
baseQueryParams: { baseQueryParams: {
createBy: 'tuozhikuguan', createBy: 'tuozhikuguan',
@@ -73,7 +73,7 @@ export const tuozhiConfig = {
export const suanzhaConfig = { export const suanzhaConfig = {
actionTypes: [11, 120], actionTypes: [11, 120],
actionQueryParams: { actionQueryParams: {
createBy: 'suanzhakuguan' createBys: 'suanzhakuguan,yuanliaoku'
}, },
baseQueryParams: { baseQueryParams: {
createBy: 'suanzhakuguan', createBy: 'suanzhakuguan',
@@ -94,7 +94,7 @@ export const suanzhaConfig = {
export const zincConfig = { export const zincConfig = {
actionTypes: [501, 120], actionTypes: [501, 120],
actionQueryParams: { actionQueryParams: {
createBy: 'duxinkuguan' createBys: 'duxinkuguan'
}, },
baseQueryParams: { baseQueryParams: {
createBy: 'duxinkuguan', createBy: 'duxinkuguan',
@@ -113,7 +113,7 @@ export const zincConfig = {
export const splitConfig = { export const splitConfig = {
actionTypes: [506], actionTypes: [506],
actionQueryParams: { actionQueryParams: {
createBy: 'fenjiankuguan' createBys: 'fenjiankuguan'
}, },
baseQueryParams: { baseQueryParams: {
createBy: 'fenjiankuguan', createBy: 'fenjiankuguan',

View File

@@ -42,7 +42,7 @@ export async function fetchLossList(actionTypes, queryParams, callback) {
return listPendingAction({ return listPendingAction({
actionStatus: 2, actionStatus: 2,
actionType, actionType,
createBy: queryParams.createBy, createBys: queryParams.createBys,
startTime: queryParams.byCreateTimeStart, startTime: queryParams.byCreateTimeStart,
endTime: queryParams.byCreateTimeEnd, endTime: queryParams.byCreateTimeEnd,
pageSize: 99999, pageSize: 99999,
@@ -63,6 +63,7 @@ export async function fetchLossList(actionTypes, queryParams, callback) {
...queryParams, ...queryParams,
byCreateTimeStart: undefined, byCreateTimeStart: undefined,
byCreateTimeEnd: undefined, byCreateTimeEnd: undefined,
createBys: undefined,
createBy: undefined, createBy: undefined,
actionIds: actionIds, actionIds: actionIds,
pageSize: 99999, pageSize: 99999,

View File

@@ -68,10 +68,6 @@
</template> </template>
<script> <script>
import { listCoilWithIds } from "@/api/wms/coil";
import {
listPendingAction,
} from '@/api/wms/pendingAction';
import ProductInfo from "@/components/KLPService/Renderer/ProductInfo"; import ProductInfo from "@/components/KLPService/Renderer/ProductInfo";
import RawMaterialInfo from "@/components/KLPService/Renderer/RawMaterialInfo"; import RawMaterialInfo from "@/components/KLPService/Renderer/RawMaterialInfo";
import CoilNo from "@/components/KLPService/Renderer/CoilNo.vue"; import CoilNo from "@/components/KLPService/Renderer/CoilNo.vue";

View File

@@ -68,7 +68,6 @@
</template> </template>
<script> <script>
import { listCoilWithIds } from "@/api/wms/coil";
import ProductInfo from "@/components/KLPService/Renderer/ProductInfo"; import ProductInfo from "@/components/KLPService/Renderer/ProductInfo";
import RawMaterialInfo from "@/components/KLPService/Renderer/RawMaterialInfo"; import RawMaterialInfo from "@/components/KLPService/Renderer/RawMaterialInfo";
import CoilNo from "@/components/KLPService/Renderer/CoilNo.vue"; import CoilNo from "@/components/KLPService/Renderer/CoilNo.vue";