diff --git a/src/api/StockIn/index.ts b/src/api/StockIn/index.ts
index 92ecf91..396972d 100644
--- a/src/api/StockIn/index.ts
+++ b/src/api/StockIn/index.ts
@@ -147,36 +147,3 @@ export function TransferIn(params: any) {
data: params,
});
}
-
-/********** 批次 **************/
-export function createDelivery(params: any) {
- return request({
- url: '/api/api/delivery/create',
- method: 'post',
- data: params,
- });
-}
-
-export function getPurchase(params: any) {
- return request({
- url: '/api/api/delivery/getPurchase',
- method: 'post',
- data: params,
- });
-}
-
-export function getStoreDetail(params: any) {
- return request({
- url: '/api/api/delivery/getStoreDetail',
- method: 'post',
- data: params,
- });
-}
-
-export function getReceiveDetail(params: any) {
- return request({
- url: '/api/api/delivery/getReceiveDetail',
- method: 'post',
- data: params,
- });
-}
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,
});
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/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,
});
diff --git a/src/api/delivery/index.ts b/src/api/delivery/index.ts
new file mode 100644
index 0000000..0c34ef1
--- /dev/null
+++ b/src/api/delivery/index.ts
@@ -0,0 +1,49 @@
+import request from '@/utils/request';
+
+export function createDelivery(params: any) {
+ return request({
+ url: '/api/api/delivery/create',
+ method: 'post',
+ data: params,
+ });
+}
+
+export function getReceiveList(params: any) {
+ return request({
+ url: '/api/api/delivery/getReceiveList',
+ method: 'post',
+ data: params,
+ });
+}
+
+export function getStoreDetail(params: any) {
+ return request({
+ url: '/api/api/delivery/getStoreDetail',
+ method: 'post',
+ data: params,
+ });
+}
+
+export function getReceiveDetail(params: any) {
+ return request({
+ url: '/api/api/delivery/getReceiveDetail',
+ method: 'post',
+ data: params,
+ });
+}
+
+export function getDeliveryList(params: any) {
+ return request({
+ url: '/api/api/delivery/getDeliveryList',
+ method: 'post',
+ data: params,
+ });
+}
+
+export function delDelivery(params: any) {
+ return request({
+ url: '/api/api/delivery/delDelivery',
+ method: 'post',
+ data: params,
+ });
+}
\ No newline at end of file
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/api/materialSpec/index.ts b/src/api/materialSpec/index.ts
new file mode 100644
index 0000000..79655e7
--- /dev/null
+++ b/src/api/materialSpec/index.ts
@@ -0,0 +1,9 @@
+import request from '@/utils/request';
+
+export function editWareHouse(params: any) {
+ return request({
+ url: '/api/api/materialSpec/edit',
+ method: 'post',
+ data: params,
+ });
+}
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/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/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/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/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加载组件,失败时弹出提示
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/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();
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/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/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()
}
}
-
});
}
});
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 @@
-
-
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()
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/basics/flatWarehouse/materialMaint/drawer.vue b/src/views/basics/flatWarehouse/materialMaint/drawer.vue
new file mode 100644
index 0000000..d86b5dd
--- /dev/null
+++ b/src/views/basics/flatWarehouse/materialMaint/drawer.vue
@@ -0,0 +1,103 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取 消
+ 确 定
+
+
+
+
+
diff --git a/src/views/basics/flatWarehouse/materialMaint/index.vue b/src/views/basics/flatWarehouse/materialMaint/index.vue
index 9eb2244..9af9ee3 100644
--- a/src/views/basics/flatWarehouse/materialMaint/index.vue
+++ b/src/views/basics/flatWarehouse/materialMaint/index.vue
@@ -54,15 +54,7 @@
-
- 是
- 否
-
-
- 是
- 否
-
-
+
是
否
@@ -73,8 +65,9 @@
- 编辑
-
+
+ 编辑
@@ -133,6 +126,7 @@
+
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 @@
+
+
+ 编辑
+
+
+
+
\ No newline at end of file
diff --git a/src/views/stockIn/StockInByCharge/index.vue b/src/views/stockIn/StockInByCharge/index.vue
index ca89aa6..88848e2 100644
--- a/src/views/stockIn/StockInByCharge/index.vue
+++ b/src/views/stockIn/StockInByCharge/index.vue
@@ -203,7 +203,7 @@ export default {
import { reactive, ref, onMounted, toRefs } from 'vue'
import { ElForm, ElMessageBox, ElTable } from 'element-plus'
import { getQueryList } from '@/api/common'
-import { getStoreDetail } from '@/api/StockIn'
+import { getStoreDetail } from '@/api/delivery'
import { localStorage } from '@/utils/storage'
import { areAllNotEmpty, msToDate } from '@/utils/CommonUtil'
import {
@@ -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, '提醒框', {
diff --git a/src/views/stockIn/deliveryNote/index.vue b/src/views/stockIn/deliveryNote/index.vue
new file mode 100644
index 0000000..8acfcad
--- /dev/null
+++ b/src/views/stockIn/deliveryNote/index.vue
@@ -0,0 +1,196 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+ {{ item.label }}
+
+
+ {{ scope.row[col.field] }}
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file