From a27f217e4de8e329bf93f89c5637f669f08d3a3f Mon Sep 17 00:00:00 2001 From: Amjacks <1932302177@qq.com> Date: Thu, 3 Apr 2025 11:51:38 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=8E=B0=E5=AD=98=E9=87=8F=E6=89=93?= =?UTF-8?q?=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/label/index.ts | 6 +-- src/views/label/modifyRemark/index.vue | 60 ++++++++++++++------------ 2 files changed, 35 insertions(+), 31 deletions(-) diff --git a/src/api/label/index.ts b/src/api/label/index.ts index 45e4964..dfa6591 100644 --- a/src/api/label/index.ts +++ b/src/api/label/index.ts @@ -46,7 +46,7 @@ export function Getprinter(data: any) { */ export function updateRemark(data: any) { return request({ - url: '/api/label/updateRemark', + url: '/api/api/label/updateRemark', method: 'post', data: data, }); @@ -57,7 +57,7 @@ export function updateRemark(data: any) { */ export function updateTruegg(data: any) { return request({ - url: '/api/label/updateTruegg', + url: '/api/api/label/updateTruegg', method: 'post', data: data, }); @@ -97,7 +97,7 @@ export function getSpecList(data: any) { export function labelMaterial(data: any) { return request({ - url: '/api/label/labelMaterial', + url: '/api/api/label/labelMaterial', method: 'post', data: data, }); diff --git a/src/views/label/modifyRemark/index.vue b/src/views/label/modifyRemark/index.vue index e9d9322..18c690a 100644 --- a/src/views/label/modifyRemark/index.vue +++ b/src/views/label/modifyRemark/index.vue @@ -505,17 +505,19 @@ const handleQuery = () => { function getStorageSpec() { state.queryParams.params.LOCATIONNAME = '' state.AllLocationList = [] - getQueryList({ - queryId: 'GetLocationList', - version: 'WEB00001', - params: { - SITENAME: 'SDK', - ERPLOCATION: state.queryParams.params.ERPLOCATION //PO - } as any - }).then((res: any) => { - state.AllLocationList = res.data - locatioNFilter('') - }) + if(state.queryParams.params.ERPLOCATION) { + getQueryList({ + queryId: 'GetLocationList', + version: 'WEB00001', + params: { + SITENAME: 'SDK', + ERPLOCATION: state.queryParams.params.ERPLOCATION //PO + } as any + }).then((res: any) => { + state.AllLocationList = res.data + locatioNFilter('') + }) + } } function getGetPrintLabelType() { @@ -547,21 +549,23 @@ function locatioNFilter(query: any) { function getERPLocation() { state.queryParams.params.LOCATIONNAME = '' state.queryParams.params.ERPLOCATION = '' - getQueryList({ - // queryId: "GetERPLocationForCreatePO", - queryId: 'GetErpLocationList', - version: 'WEB00001', - params: { - SITENAME: 'SDK', - ERPFACTORYNAME: state.queryParams.params.ERPFACTORY - } as any - }).then((res: any) => { - console.log(res.data) - state.ERPLocationList = res.data - state.ERPLocationList.unshift({ - VALUE: '全部' + if (state.queryParams.params.ERPFACTORY) { + getQueryList({ + // queryId: "GetERPLocationForCreatePO", + queryId: 'GetErpLocationList', + version: 'WEB00001', + params: { + SITENAME: 'SDK', + ERPFACTORYNAME: state.queryParams.params.ERPFACTORY + } as any + }).then((res: any) => { + console.log(res.data) + state.ERPLocationList = res.data + state.ERPLocationList.unshift({ + VALUE: '全部' + }) }) - }) + } } function ERPFactoryQuery() { @@ -611,9 +615,9 @@ function commitDESC_CN() { .then((res: any) => { console.log(res.success) if (res.success) { - // ElMessageBox.alert('修改实际规格成功', '提醒框', { - // confirmButtonText: 'OK', - // }) + ElMessageBox.alert('修改实际规格成功', '提醒框', { + confirmButtonText: 'OK', + }) } else { ElMessageBox.alert(res.message, '提醒框', { confirmButtonText: 'OK'