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/router/route.ts b/src/router/route.ts
index 669aef3..690cfed 100644
--- a/src/router/route.ts
+++ b/src/router/route.ts
@@ -25,12 +25,12 @@ const constRoutes = [
/**
* home路由,需要修改redirect使用
*/
-const homeRoute = { path: '/', hidden: true, redirect: '' };
+const homeRoute = { path: '/', root: true, redirect: '' };
/**
* 404兜底路由
*/
-const notFoundRoute = { path: '/:catchAll(.*)', redirect: '/404', hidden: true };
+const notFoundRoute = { path: '/:catchAll(.*)', redirect: '/404', root: true };
/**
* 使用require加载组件,失败时弹出提示
From 8a263193a0ceca1e3fcdc2739ca1f92618dae31b Mon Sep 17 00:00:00 2001
From: Amjacks <1932302177@qq.com>
Date: Mon, 7 Apr 2025 16:53:21 +0800
Subject: [PATCH 09/20] =?UTF-8?q?fix=20=E7=99=BB=E5=BD=95=E6=9C=AA?=
=?UTF-8?q?=E9=87=8D=E5=AE=9A=E5=90=91=EF=BC=8C=E5=89=8D=E7=AB=AF=E9=80=80?=
=?UTF-8?q?=E5=87=BA=E6=9C=AA=E6=B8=85=E7=A9=BA=E6=95=B0=E6=8D=AE=E3=80=81?=
=?UTF-8?q?=E7=99=BB=E5=BD=95=E9=87=8D=E5=A4=8D=E7=82=B9=E5=87=BB=E9=97=AE?=
=?UTF-8?q?=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/stockIn/StockInByCharge/index.vue | 32 ++++++++++++---------
1 file changed, 19 insertions(+), 13 deletions(-)
diff --git a/src/views/stockIn/StockInByCharge/index.vue b/src/views/stockIn/StockInByCharge/index.vue
index ca89aa6..06d1e8e 100644
--- a/src/views/stockIn/StockInByCharge/index.vue
+++ b/src/views/stockIn/StockInByCharge/index.vue
@@ -650,21 +650,27 @@ function handleQuery() {
return
}
getStoreDetail(state.queryParams).then((res: any)=> {
- state.MATERIALPACKINGLIST = res.resultObj.storeCharge
- state.MATERIALRECEIVEACT = res.resultObj.storeDetail
- if (state.MATERIALPACKINGLISTS != '') {
- for (const element of state.MATERIALRECEIVEACT) {
- if (
- element.MATERIALSPECNAME == state.MATERIALPACKINGLISTS.MATERIALSPECNAME &&
- element.DESC_CN == state.MATERIALPACKINGLISTS.DESC_CN
- ) {
- element.ERPLOCATION = state.MATERIALPACKINGLISTS.ERPLOCATION
- element.ERPLOCATION2 = state.MATERIALPACKINGLISTS.ERPLOCATION2
- element.LOCATIONNAME = state.MATERIALPACKINGLISTS.LOCATIONNAME
- element.LOCATIONNAME2 = state.MATERIALPACKINGLISTS.LOCATIONNAME2
+ if (res.resultObj) {
+ state.MATERIALPACKINGLIST = res.resultObj.storeCharge
+ state.MATERIALRECEIVEACT = res.resultObj.storeDetail
+ if (state.MATERIALPACKINGLISTS != '') {
+ for (const element of state.MATERIALRECEIVEACT) {
+ if (
+ element.MATERIALSPECNAME == state.MATERIALPACKINGLISTS.MATERIALSPECNAME &&
+ element.DESC_CN == state.MATERIALPACKINGLISTS.DESC_CN
+ ) {
+ element.ERPLOCATION = state.MATERIALPACKINGLISTS.ERPLOCATION
+ element.ERPLOCATION2 = state.MATERIALPACKINGLISTS.ERPLOCATION2
+ element.LOCATIONNAME = state.MATERIALPACKINGLISTS.LOCATIONNAME
+ element.LOCATIONNAME2 = state.MATERIALPACKINGLISTS.LOCATIONNAME2
+ }
}
+ state.MATERIALPACKINGLISTS
}
- state.MATERIALPACKINGLISTS
+ } else {
+ ElMessageBox.alert(res.message, '提醒框', {
+ confirmButtonText: 'OK'
+ })
}
}).catch((error: any) => {
ElMessageBox.alert(error.message, '提醒框', {
From 6fabd38953d88bdd5d0ec716f6961758ca4545e8 Mon Sep 17 00:00:00 2001
From: Amjacks <1932302177@qq.com>
Date: Mon, 7 Apr 2025 16:54:32 +0800
Subject: [PATCH 10/20] =?UTF-8?q?fix=20=E7=99=BB=E5=BD=95=E6=9C=AA?=
=?UTF-8?q?=E9=87=8D=E5=AE=9A=E5=90=91=EF=BC=8C=E5=89=8D=E7=AB=AF=E9=80=80?=
=?UTF-8?q?=E5=87=BA=E6=9C=AA=E6=B8=85=E7=A9=BA=E6=95=B0=E6=8D=AE=E3=80=81?=
=?UTF-8?q?=E7=99=BB=E5=BD=95=E9=87=8D=E5=A4=8D=E7=82=B9=E5=87=BB=E9=97=AE?=
=?UTF-8?q?=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/layout/components/Navbar/index.vue | 2 ++
src/router/guard.ts | 9 +++++++--
src/views/login/index.vue | 6 ++++--
3 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/src/layout/components/Navbar/index.vue b/src/layout/components/Navbar/index.vue
index 9c85f40..e0e5c6b 100644
--- a/src/layout/components/Navbar/index.vue
+++ b/src/layout/components/Navbar/index.vue
@@ -212,6 +212,8 @@ function logout() {
localStorage.removeItem('userId');
localStorage.removeItem('userName');
localStorage.removeItem('orgNo');
+ localStorage.removeItem('session');
+ localStorage.removeItem('token');
});
}
diff --git a/src/router/guard.ts b/src/router/guard.ts
index dc76927..24b00e8 100644
--- a/src/router/guard.ts
+++ b/src/router/guard.ts
@@ -13,7 +13,13 @@ function setGuard(router: any) {
const hasToken = user.getToken();
// 未登录
- if (!hasToken) {
+ if (hasToken) {
+ // 已登录
+ if (to.path === '/login') {
+ next('/');
+ return;
+ }
+ } else {
// 未登录时放通login
if (to.path === '/login') {
next();
@@ -27,7 +33,6 @@ function setGuard(router: any) {
const routes = app.getRoutes;
// 若没有设置routes
if (routes && routes.length === 0) {
- const { app } = useStore();
// 获取menuList
const menuList: any = await app.getMenuList();
// 如果menuList不存在或为空,则不走下面
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 95112f4..3e18be0 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -163,6 +163,7 @@ function handleLogin() {
localStorage.removeItem('ut');
localStorage.removeItem('userId');
localStorage.removeItem('userName');
+ state.loading = true
// 1、store请求
user.login(form)
.then((res) => {
@@ -172,8 +173,9 @@ function handleLogin() {
// 请求失败时的处理逻辑
console.log(res);
ElMessageBox.alert(res.response.data.message, '提醒框', {
- confirmButtonText: 'OK'
- })
+ confirmButtonText: 'OK'
+ })
+ state.loading = false
});
} else {
state.loading = false;
From 72119a3f4f58cd07052019f0750d0d5787c4138d Mon Sep 17 00:00:00 2001
From: Amjacks <1932302177@qq.com>
Date: Mon, 7 Apr 2025 18:12:23 +0800
Subject: [PATCH 11/20] =?UTF-8?q?feat=20=E7=89=A9=E6=96=99=E5=AE=A1?=
=?UTF-8?q?=E6=A0=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/basics/material/index.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/api/basics/material/index.ts b/src/api/basics/material/index.ts
index 44b455a..0121577 100644
--- a/src/api/basics/material/index.ts
+++ b/src/api/basics/material/index.ts
@@ -48,7 +48,7 @@ export function editMaterial(data: any) {
*/
export function checkMaterial(data: any) {
return request({
- url: '/api/materialMaint/checkMaterial',
+ url: '/api/api/materialMaint/checkMaterial',
method: 'post',
data: data,
});
From fe529041f7bfd7c51c8a8dc6bd1a1fa45f33980b Mon Sep 17 00:00:00 2001
From: Amjacks <1932302177@qq.com>
Date: Tue, 8 Apr 2025 13:09:09 +0800
Subject: [PATCH 12/20] =?UTF-8?q?feat=20=E5=88=B0=E8=B4=A7=E5=8D=95?=
=?UTF-8?q?=E8=AF=A6=E6=83=85=E6=A3=80=E7=B4=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/stockIn/StockInByCharge/drawer.vue | 128 +++++++++++++++++--
1 file changed, 115 insertions(+), 13 deletions(-)
diff --git a/src/views/stockIn/StockInByCharge/drawer.vue b/src/views/stockIn/StockInByCharge/drawer.vue
index 6dbc792..d4359b3 100644
--- a/src/views/stockIn/StockInByCharge/drawer.vue
+++ b/src/views/stockIn/StockInByCharge/drawer.vue
@@ -1,15 +1,57 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
搜索
重置
- 创建
+ 创建
@@ -22,8 +64,13 @@
-
-
+
+
+
+ {{ scope.row[col.field] }}
+
+
+
{
+ state.column = [
+ { header: "组织", field: "erpFactory", hide: false },
+ { header: "组织(CN)", field: "orgName", hide: false },
+ { header: "订单编号", field: "receiveRequestName", hide: false },
+ { header: "料号", field: "materialSpecName", hide: false },
+ { header: "品名", field: "descCn", hide: false },
+ { header: "出入库类型编码", field: "receiveRequestType", hide: false },
+ { header: "订单状态", field: "receiveRequestState", hide: false },
+ { header: "供应商编号", field: "supplierNo", hide: false },
+ { header: "单据日期" , field: "orderDate", hide: false},
+ { header: "供应商名称", field: "supplierName", hide: false },
+ { header: "创建日期", field: "createTime", hide: false },
+ { header: "最后操作名称", field: "lastEventName", hide: false },
+ { header: "最后操作时间", field: "lastEventTime", hide: false },
+ { header: "最后操作人", field: "lastEventUser", hide: false },
+ { header: "最后操作注释", field: "lastEventComment", hide: false },
+ ]
+ // 组织
+ getORG({ orgNo: null }).then((res: any) => {
+ state.orgList = res.resultObj
+ })
handleQuery()
})
// 多选
const handleSelection = (val: any) => {
- state.selection = val
- state.receiveLoading = true
if (val.length === 0) {
return
}
+ state.selection = val
+ state.receiveLoading = true
let nameList: any = []
val.forEach((item: any) => nameList.push(item.receiveRequestName))
// 加载详情
@@ -106,6 +200,7 @@ function queryInfo() {
// 查询
async function handleQuery() {
state.loading = true
+ state.receiveList = []
await getPurchase(state.queryParams).then((res: any) => {
state.dataList = res.resultObj.list
state.total = res.resultObj.total
@@ -139,6 +234,13 @@ function handleCreate() {
}
function resetQuery() {
queryFormRef.value.resetFields();
+ state.queryParams.params.erpFactory = '';
+ state.queryParams.params.receiveRequestName = '';
+ state.queryParams.params.receiveRequestState = '';
+ state.queryParams.params.materialSpecName = '';
+ state.queryParams.params.descCn = '';
+ state.queryParams.params.fromDate = '';
+ state.queryParams.params.toDate = '';
queryInfo();
}
\ No newline at end of file
From 736dbaa2e274ed8bbcd026c4200423e13f3b5d5c Mon Sep 17 00:00:00 2001
From: Amjacks <1932302177@qq.com>
Date: Wed, 9 Apr 2025 08:58:53 +0800
Subject: [PATCH 13/20] =?UTF-8?q?feat=20=E7=9B=98=E7=82=B9=E7=AE=A1?=
=?UTF-8?q?=E7=90=86-=E5=88=9B=E5=BB=BA=E7=9B=98=E7=82=B9=E5=8D=95?=
=?UTF-8?q?=E3=80=81=E7=9B=98=E7=82=B9=E5=AE=A1=E6=A0=B8=E3=80=81=E7=9B=98?=
=?UTF-8?q?=E7=82=B9=E6=9F=A5=E8=AF=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/check/index.ts | 2 +-
src/views/check/auditSheet/index.vue | 15 +++------------
src/views/stockIn/StockInByCharge/drawer.vue | 1 +
3 files changed, 5 insertions(+), 13 deletions(-)
diff --git a/src/api/check/index.ts b/src/api/check/index.ts
index b3593b8..139fd63 100644
--- a/src/api/check/index.ts
+++ b/src/api/check/index.ts
@@ -19,7 +19,7 @@ export function createcheckmark(data: any) {
// 提交审核
export function Auditcheckmark(data: any) {
return request({
- url: '/api/checkmark/Auditcheckmark',
+ url: '/api/api/checkmark/Auditcheckmark',
method: 'post',
data: data,
});
diff --git a/src/views/check/auditSheet/index.vue b/src/views/check/auditSheet/index.vue
index bea5b3a..97f7deb 100644
--- a/src/views/check/auditSheet/index.vue
+++ b/src/views/check/auditSheet/index.vue
@@ -272,18 +272,9 @@ function handleQuery2() {
pageSize: state.pageSize2,
}
getQueryPageList(query).then((res: any) => {
- if(res.data.list.length==0){
-
- ElMessageBox.alert('查无数据', '提醒框', {
- confirmButtonText: 'OK',
- })
- state.loading = false;
- } else {
-
- state.loading = false;
- state.list2 = res.data.list;
- state.total2 = res.data.total;
- }
+ state.loading = false;
+ state.list2 = res.data.list;
+ state.total2 = res.data.total;
});
}
state.loading = false;
diff --git a/src/views/stockIn/StockInByCharge/drawer.vue b/src/views/stockIn/StockInByCharge/drawer.vue
index d4359b3..35c94d9 100644
--- a/src/views/stockIn/StockInByCharge/drawer.vue
+++ b/src/views/stockIn/StockInByCharge/drawer.vue
@@ -180,6 +180,7 @@ onMounted(()=> {
// 多选
const handleSelection = (val: any) => {
if (val.length === 0) {
+ state.receiveList = []
return
}
state.selection = val
From 1d57b73bf408e7aa7f4e05021de365326381a7eb Mon Sep 17 00:00:00 2001
From: Amjacks <1932302177@qq.com>
Date: Wed, 9 Apr 2025 10:08:04 +0800
Subject: [PATCH 14/20] =?UTF-8?q?feat=20=E4=BB=93=E5=BA=93=E7=BC=96?=
=?UTF-8?q?=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/wareHouse/index.ts | 9 ++
.../basics/flatWarehouse/wareHouse/drawer.vue | 101 ++++++++++++++++++
.../basics/flatWarehouse/wareHouse/index.vue | 12 ++-
3 files changed, 120 insertions(+), 2 deletions(-)
create mode 100644 src/api/wareHouse/index.ts
create mode 100644 src/views/basics/flatWarehouse/wareHouse/drawer.vue
diff --git a/src/api/wareHouse/index.ts b/src/api/wareHouse/index.ts
new file mode 100644
index 0000000..0b1aa9f
--- /dev/null
+++ b/src/api/wareHouse/index.ts
@@ -0,0 +1,9 @@
+import request from '@/utils/request';
+
+export function editWareHouse(params: any) {
+ return request({
+ url: '/api/api/wareHouse/edit',
+ method: 'post',
+ data: params,
+ });
+}
diff --git a/src/views/basics/flatWarehouse/wareHouse/drawer.vue b/src/views/basics/flatWarehouse/wareHouse/drawer.vue
new file mode 100644
index 0000000..cd467f6
--- /dev/null
+++ b/src/views/basics/flatWarehouse/wareHouse/drawer.vue
@@ -0,0 +1,101 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取 消
+ 确 定
+
+
+
+
+
diff --git a/src/views/basics/flatWarehouse/wareHouse/index.vue b/src/views/basics/flatWarehouse/wareHouse/index.vue
index bc691b2..a2796a9 100644
--- a/src/views/basics/flatWarehouse/wareHouse/index.vue
+++ b/src/views/basics/flatWarehouse/wareHouse/index.vue
@@ -88,10 +88,17 @@
+
+
+ 编辑
+
+
+
+
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