From d97d79a15cf058383c8cca4ca6da7aef9b579794 Mon Sep 17 00:00:00 2001 From: Amjacks <1932302177@qq.com> Date: Wed, 2 Apr 2025 16:26:29 +0800 Subject: [PATCH 01/20] =?UTF-8?q?fix=20=E5=BA=93=E5=AD=98=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2-=E5=87=BA=E5=85=A5=E5=BA=93=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Query/StockQuery/StockTransaction/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/Query/StockQuery/StockTransaction/index.vue b/src/views/Query/StockQuery/StockTransaction/index.vue index 5884851..5c4fa8c 100644 --- a/src/views/Query/StockQuery/StockTransaction/index.vue +++ b/src/views/Query/StockQuery/StockTransaction/index.vue @@ -51,13 +51,13 @@ - - From af6637e86ee2d6e5ae8ba782228a553cf72f1f2f Mon Sep 17 00:00:00 2001 From: Amjacks <1932302177@qq.com> Date: Thu, 3 Apr 2025 10:47:27 +0800 Subject: [PATCH 02/20] =?UTF-8?q?fix=20=E5=9C=A8=E5=BA=93=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E3=80=81=E5=85=A5=E5=BA=93=E5=8D=95=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../materialBoxStockedQuery/index.vue | 12 +++------ src/views/Query/StockQuery/StockIn/index.vue | 26 ++++++++----------- 2 files changed, 14 insertions(+), 24 deletions(-) diff --git a/src/views/Query/BasicQuery/materialBoxStockedQuery/index.vue b/src/views/Query/BasicQuery/materialBoxStockedQuery/index.vue index 3779e98..150220a 100644 --- a/src/views/Query/BasicQuery/materialBoxStockedQuery/index.vue +++ b/src/views/Query/BasicQuery/materialBoxStockedQuery/index.vue @@ -313,7 +313,7 @@ const size = ref<'default' | 'large' | 'small'>('small');//formdata时间设置 const state = reactive({ orgNo:'', - PhaseList: [{ label: 'C', Value: 'C' }, { label: 'D', Value: 'D' }, { label: 'S', Value: 'S' }] as any, + PhaseList: [{ label: '全部', Value: '' }, { label: 'C', Value: 'C' }, { label: 'D', Value: 'D' }, { label: 'S', Value: 'S' }] as any, PackingGradeList:[{ label: '全部', Value: '' },{ label: '合格', Value: 'OK' }, { label: '不合格', Value: 'NG' }] as any, resultStateList:[{ label: '全部', Value: '' },{ label: '待质检', Value: 'PREOQA' },{ label: '质检完成', Value: 'END' }] as any, ChangeERPLocation: [], @@ -540,14 +540,8 @@ state.queryParams.version = 'WEB00034' await getQueryPageList(state.queryParams) .then((res: any) => { - if (res.data.list.length > 0) { - state.BoxHistoryList = res.data.list - state.total = res.data.total - } else { - state.BoxHistoryList = res.data.list - proxy.$ElMessage.success('查询结果为空'); - } - + state.BoxHistoryList = res.data.list + state.total = res.data.total }) state.queryParams.version = 'WEB00032' state.AllNumber = 0 diff --git a/src/views/Query/StockQuery/StockIn/index.vue b/src/views/Query/StockQuery/StockIn/index.vue index 23ce359..30c7d8a 100644 --- a/src/views/Query/StockQuery/StockIn/index.vue +++ b/src/views/Query/StockQuery/StockIn/index.vue @@ -237,6 +237,7 @@ function handleQuery() { state.loading = true state.list = [] state.list_d = [] + state.page_d.total = 0; queryFormRef.value.validate((isValid: boolean) => { if (isValid) { getQueryPageList({ @@ -249,27 +250,22 @@ function handleQuery() { pageNum: state.page.pageNum, pageSize: state.page.pageSize, }).then((res: any) => { - state.loading = false - if(res.data.list.length ==0 ){ - ElMessageBox.alert('查无数据', '提醒框', { - confirmButtonText: 'OK', - }) - } else { - state.list = res.data.list; - for(let i=0;i 0) { + for (const element of state.list) { + const dates = new Date(element.ORDERDATE).toJSON() + element.ORDERDATE = new Date(+new Date(dates) + 8 * 3600 * 1000) + .toISOString() + .replace(/T/g, ' ') + .replace(/\.[\d]{3}Z/, '') } - state.page.total = res.data.total; - state.loading = false state.active_row = state.list[0] if (state.active_row) { handleQuery_d() } } - }); } }); From 0c1d2a05b861b2a76b4fc777f241b73ab8527fbd Mon Sep 17 00:00:00 2001 From: Amjacks <1932302177@qq.com> Date: Thu, 3 Apr 2025 11:16:14 +0800 Subject: [PATCH 03/20] =?UTF-8?q?fix=20=E5=9C=A8=E5=BA=93=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E3=80=81=E5=85=A5=E5=BA=93=E5=8D=95=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/common/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/common/index.ts b/src/api/common/index.ts index 985cde7..1aeb12e 100644 --- a/src/api/common/index.ts +++ b/src/api/common/index.ts @@ -112,7 +112,7 @@ export function updateCAREER_ASSISTANCE(queryParams: any) { export function undoCommit(queryParams: any) { return request({ - url: '/api/MaterialUndo/commitUndo', + url: '/api/api/MaterialUndo/commitUndo', method: 'post', data: queryParams, }); From d2c15a6614445f38c620308148d41a92ef1ab52c Mon Sep 17 00:00:00 2001 From: Amjacks <1932302177@qq.com> Date: Thu, 3 Apr 2025 11:32:06 +0800 Subject: [PATCH 04/20] =?UTF-8?q?fix=20=E7=89=A9=E6=96=99=E5=86=B2?= =?UTF-8?q?=E9=94=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Query/StockQuery/Invoice/index.vue | 29 +++++++++---------- src/views/Query/StockQuery/UnDoInfo/index.vue | 19 +++++------- 2 files changed, 21 insertions(+), 27 deletions(-) diff --git a/src/views/Query/StockQuery/Invoice/index.vue b/src/views/Query/StockQuery/Invoice/index.vue index 2217679..196a86a 100644 --- a/src/views/Query/StockQuery/Invoice/index.vue +++ b/src/views/Query/StockQuery/Invoice/index.vue @@ -26,7 +26,7 @@ - + @@ -229,6 +229,7 @@ function handleQueryInfo() { state.page.pageNum = 1 state.page_d.pageNum = 1 state.page.total = 0 + state.page_d.total = 0; handleQuery() } function handleQuery() { @@ -247,22 +248,18 @@ function handleQuery() { pageNum: state.page.pageNum, pageSize: state.page.pageSize, }).then((res: any) => { - if(res.data.list.length == 0){ - ElMessageBox.alert('查无数据', '提醒框', { - confirmButtonText: 'OK', - }) - state.loading = false - } else { - - state.list = res.data.list; - for(let i=0;i 0) { + for (const element of state.list) { + let dates = new Date(element.ORDERDATE).toJSON() + element.ORDERDATE = new Date(+new Date(dates) + 8 * 3600 * 1000) + .toISOString() + .replace(/T/g, ' ') + .replace(/\.[\d]{3}Z/, '') + console.log(element.ORDERDATE) } - state.page.total = res.data.total; - state.loading = false state.active_row = state.list[0] if (state.active_row) { handleQuery_d() diff --git a/src/views/Query/StockQuery/UnDoInfo/index.vue b/src/views/Query/StockQuery/UnDoInfo/index.vue index 5b01e20..14718ae 100644 --- a/src/views/Query/StockQuery/UnDoInfo/index.vue +++ b/src/views/Query/StockQuery/UnDoInfo/index.vue @@ -189,7 +189,11 @@ function handleQueryInfo() { } function handleQuery() { state.list_d = [] + state.list = [] + state.page.total = 0; state.loading = true + state.page_d.total = 0; + state.loading_d = false queryFormRef.value.validate((isValid: boolean) => { if (isValid) { getQueryPageList({ @@ -202,17 +206,10 @@ function handleQuery() { pageNum: state.page.pageNum, pageSize: state.page.pageSize, }).then((res: any) => { - if(res.data.list.length == 0){ - ElMessageBox.alert('查无数据', '提醒框', { - confirmButtonText: 'OK', - }) - state.loading = false - state.list = [] - state.list_d = [] - } else { - state.list = res.data.list; - state.page.total = res.data.total; - state.loading = false + state.list = res.data.list; + state.page.total = res.data.total; + state.loading = false + if (state.list.length > 0) { state.active_row = state.list[0] if (state.active_row) { handleQuery_d() 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 05/20] =?UTF-8?q?fix=20=E7=8E=B0=E5=AD=98=E9=87=8F?= =?UTF-8?q?=E6=89=93=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' From 6396669db158e0fd725332e6fbf0ee4c9b49dec9 Mon Sep 17 00:00:00 2001 From: Amjacks <1932302177@qq.com> Date: Thu, 3 Apr 2025 13:21:49 +0800 Subject: [PATCH 06/20] =?UTF-8?q?fix=20=E5=BA=93=E5=AD=98=E4=BD=99?= =?UTF-8?q?=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BasicQuery/materialStockedQuery/index.vue | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/src/views/Query/BasicQuery/materialStockedQuery/index.vue b/src/views/Query/BasicQuery/materialStockedQuery/index.vue index e990311..33c50de 100644 --- a/src/views/Query/BasicQuery/materialStockedQuery/index.vue +++ b/src/views/Query/BasicQuery/materialStockedQuery/index.vue @@ -350,20 +350,13 @@ function handleQuery() { // state.queryParams.params.TODATE = str2.withoutTime; // console.log(state.queryParams.params); state.pageList = [] - getQueryPageList(state.queryParams) - .then((res: any) => { -if(res.data.list.length == 0){ - - ElMessageBox.alert('查无数据', '提醒框', { - confirmButtonText: 'OK', + state.pageList2 = []; + state.total1 = 0; + getQueryPageList(state.queryParams).then((res: any) => { + state.pageList = res.data.list; + state.total = res.data.total; + showCurrentTime(); }) -} else { - state.pageList = res.data.list; - state.total = res.data.total; - showCurrentTime(); -} - }) - .catch(() => { }); } function resetQuery() { queryFormRef.value.resetFields(); From 42994f6ecacf8402b29764526b387c92d226d200 Mon Sep 17 00:00:00 2001 From: Amjacks <1932302177@qq.com> Date: Thu, 3 Apr 2025 14:08:00 +0800 Subject: [PATCH 07/20] =?UTF-8?q?fix=20=E7=8E=B0=E5=AD=98=E9=87=8F?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E3=80=81=E6=88=90=E5=93=81=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E3=80=81=E5=BA=93=E5=AD=98=E4=BD=99=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Query/BasicQuery/reservedPreStockOut/index.vue | 4 +++- src/views/Query/StockQuery/XTZHInvoice/index.vue | 4 ++++ src/views/label/label/index.vue | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/Query/BasicQuery/reservedPreStockOut/index.vue b/src/views/Query/BasicQuery/reservedPreStockOut/index.vue index 358d266..57459ba 100644 --- a/src/views/Query/BasicQuery/reservedPreStockOut/index.vue +++ b/src/views/Query/BasicQuery/reservedPreStockOut/index.vue @@ -42,7 +42,7 @@
搜索 - 刷新 + 导出
@@ -258,6 +258,8 @@ const updateList = (col: any) => { function handleQueryInfo() { state.queryParams.pageNum = 1 state.queryParamsActivate.pageNum = 1; + state.BoxDetailList = []; + state.total1 = 0 HandleQuery() } function HandleQuery() { diff --git a/src/views/Query/StockQuery/XTZHInvoice/index.vue b/src/views/Query/StockQuery/XTZHInvoice/index.vue index e138ca7..82906d6 100644 --- a/src/views/Query/StockQuery/XTZHInvoice/index.vue +++ b/src/views/Query/StockQuery/XTZHInvoice/index.vue @@ -120,6 +120,10 @@ const state = reactive({ active_row: {}, StockStateList : [ + { + ENUMVALUE : "" , + DESCRIPTION : "全部" + }, { ENUMVALUE : "Created" , DESCRIPTION : "创建" diff --git a/src/views/label/label/index.vue b/src/views/label/label/index.vue index d47d060..f3f2708 100644 --- a/src/views/label/label/index.vue +++ b/src/views/label/label/index.vue @@ -36,7 +36,7 @@
搜索 - 打印 +
From 86cc8122cedebcc92801f752d7ff836f5947ad38 Mon Sep 17 00:00:00 2001 From: Amjacks <1932302177@qq.com> Date: Thu, 3 Apr 2025 14:09:06 +0800 Subject: [PATCH 08/20] =?UTF-8?q?fix=20=E5=B7=A6=E4=BE=A7=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E5=BA=95=E9=83=A8=E7=A9=BA=E7=99=BD=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Sidebar/SidebarItem.vue | 1 + src/router/route.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue index e810afe..e15ceca 100644 --- a/src/layout/components/Sidebar/SidebarItem.vue +++ b/src/layout/components/Sidebar/SidebarItem.vue @@ -2,6 +2,7 @@
+ + +
+ diff --git a/src/views/basics/flatWarehouse/materialMaint/index.vue b/src/views/basics/flatWarehouse/materialMaint/index.vue index 9eb2244..9bae961 100644 --- a/src/views/basics/flatWarehouse/materialMaint/index.vue +++ b/src/views/basics/flatWarehouse/materialMaint/index.vue @@ -73,8 +73,9 @@ @@ -133,6 +134,7 @@ + + + \ No newline at end of file