From e66f7726937b40524a726a4d2efdd026897a2b06 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com>
Date: Mon, 9 Sep 2024 09:17:35 +0800
Subject: [PATCH 1/4] =?UTF-8?q?HL-5833=20=E8=A3=85=E9=85=8D=E6=8A=A5?=
=?UTF-8?q?=E5=B7=A5bom=E4=BF=A1=E6=81=AF=E6=B7=BB=E5=8A=A0=E5=AF=BC?=
=?UTF-8?q?=E5=85=A5=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../wms/rawMaterialConsumptionInfo/index.ts | 4 ++++
.../rawMaterialConsumptionInfo/index.vue | 24 +++++++++++++++++++
2 files changed, 28 insertions(+)
diff --git a/src/api/wms/rawMaterialConsumptionInfo/index.ts b/src/api/wms/rawMaterialConsumptionInfo/index.ts
index 477158e1f..6acc4feef 100644
--- a/src/api/wms/rawMaterialConsumptionInfo/index.ts
+++ b/src/api/wms/rawMaterialConsumptionInfo/index.ts
@@ -54,4 +54,8 @@ export const exportAssemblyMaterialUsage = async (params) => {
}
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/wms/backflush-record-detailb/get-import-template-error' })
+}
diff --git a/src/views/wms/productionManage/productreceiptAssemble/rawMaterialConsumptionInfo/index.vue b/src/views/wms/productionManage/productreceiptAssemble/rawMaterialConsumptionInfo/index.vue
index 7839573f2..1a98248be 100644
--- a/src/views/wms/productionManage/productreceiptAssemble/rawMaterialConsumptionInfo/index.vue
+++ b/src/views/wms/productionManage/productreceiptAssemble/rawMaterialConsumptionInfo/index.vue
@@ -33,6 +33,10 @@
+
+
+
From c8639ed2e197187d2b05621cbd6fe97d9758d285 Mon Sep 17 00:00:00 2001
From: yufei_wang <2267742828@qq.com>
Date: Mon, 9 Sep 2024 09:42:13 +0800
Subject: [PATCH 2/4] HL-5269
---
src/views/login/components/LoginForm.vue | 57 ++++++++++++++++--------
1 file changed, 38 insertions(+), 19 deletions(-)
diff --git a/src/views/login/components/LoginForm.vue b/src/views/login/components/LoginForm.vue
index a6f47e85c..1cfff0c24 100644
--- a/src/views/login/components/LoginForm.vue
+++ b/src/views/login/components/LoginForm.vue
@@ -34,6 +34,11 @@
+
+
+
+
+
@@ -69,14 +74,8 @@
+
-
@@ -99,6 +98,8 @@
import { getTenant } from '@/utils/systemParam'
import { getSystermUpdateAlert,getSystermUpdateUrl,getNeedCode } from '@/utils/systemParam'
import {validateResetTime} from "@/api/system/password";
+ import { Verify } from '@/components/Verifition'
+
const needCode = ref(getNeedCode()==true||getNeedCode()=='true')
defineOptions({ name: 'LoginForm' })
@@ -115,8 +116,7 @@
const permissionStore = usePermissionStore()
const redirect = ref('')
const loginLoading = ref(false)
- const verify = ref()
- const captchaType = ref('blockPuzzle') // blockPuzzle 滑块 clickWord 点击文字
+ const VerifySlide = ref()
const getShow = computed(() => unref(getLoginState) === LoginStateEnum.LOGIN)
@@ -184,16 +184,18 @@
}
}
function getCode() {
+ console.log('getCode')
if(!needCode.value){
return
}
- getCodeImg().then(res => {
- captchaEnabled.value = res.captchaEnabled === undefined ? true : res.captchaEnabled;
- if (captchaEnabled.value) {
- codeUrl.value = "data:image/gif;base64," + res.img;
- loginData.loginForm.uuid = res.uuid;
- }
- });
+ VerifySlide.value.refresh()
+ // getCodeImg().then(res => {
+ // captchaEnabled.value = res.captchaEnabled === undefined ? true : res.captchaEnabled;
+ // if (captchaEnabled.value) {
+ // codeUrl.value = "data:image/gif;base64," + res.img;
+ // loginData.loginForm.uuid = res.uuid;
+ // }
+ // });
}
//获取租户ID
const getTenantId = async () => {
@@ -221,10 +223,23 @@
name: 'ForgetPassword',
})
};
+ // 滑块校验成功
+ const capctchaCheckSuccess = async ({captchaVerification})=>{
+ console.log('capctchaCheckSuccess',captchaVerification)
+ if(captchaVerification){
+ loginData.loginForm.code = captchaVerification
+ await handleLogin()
+ }
+ }
+ // 滑块校验失败
+ const capctchaCheckError = ()=>{
+ VerifySlide.value.refresh()
+ }
+
const loading = ref() // ElLoading.service 返回的实例
// 登录
- const handleLogin = async (params) => {
+ const handleLogin = async () => {
console.log('登录-185')
if(getSystermUpdateAlert()=='true'||getSystermUpdateAlert()===true){
await ElMessageBox.alert(
@@ -237,8 +252,10 @@
)
}
loginLoading.value = true
+
try {
await getTenantId()
+
const data = await validForm()
if (!data) {
return
@@ -249,6 +266,8 @@
}else{
res = await LoginApi.login(loginData.loginForm)
}
+
+ console.log('登陆res',res)
try{
await PassWordApi.validateResetTime(res.userId)
}catch (e) {
@@ -293,9 +312,9 @@
wsCache.set(CACHE_KEY.DEPT, await DeptApi.getSimpleDeptList())
}finally {
console.log('登录-224')
- getCode()
loginLoading.value = false
loading?.value?.close()
+ getCode()
}
}
// 社交登录
From 6352401bbf1e7e0abb27872dde3f21476d8506a9 Mon Sep 17 00:00:00 2001
From: yufei_wang <2267742828@qq.com>
Date: Mon, 9 Sep 2024 09:53:36 +0800
Subject: [PATCH 3/4] =?UTF-8?q?HL-5241=E5=9C=A8=E9=95=BF=E6=98=A5=E5=92=8C?=
=?UTF-8?q?=E6=88=90=E9=83=BD=E7=9A=84=E7=99=BB=E5=BD=95=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E5=90=84=E6=94=BE=E4=B8=80=E4=B8=AAPDA=E7=AB=AFAPK=E7=A8=8B?=
=?UTF-8?q?=E5=BA=8F=E4=B8=8B=E8=BD=BD=E7=9A=84=E4=BA=8C=E7=BB=B4=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.prod | 4 ++++
.env.test | 4 ++++
.env.test-scp | 3 +++
src/utils/systemParam.ts | 10 ++++++++++
src/views/login/components/QRCodePDA.vue | 6 +++++-
5 files changed, 26 insertions(+), 1 deletion(-)
diff --git a/.env.prod b/.env.prod
index be6b9a31d..06f2aa7cc 100644
--- a/.env.prod
+++ b/.env.prod
@@ -48,3 +48,7 @@ VITE_SYSTERM_UPDATE_URL = 'https://scptest.faway-hella.com/'
# 是否需要验证码
VITE_NEED_CODE = true
+
+
+# 是否需要下载PDA链接
+VITE_PDA_URL = false
diff --git a/.env.test b/.env.test
index c58a58c21..cb687a764 100644
--- a/.env.test
+++ b/.env.test
@@ -44,3 +44,7 @@ VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400'
# 是否需要验证码
VITE_NEED_CODE = true
+
+
+# 是否需要下载PDA链接
+VITE_PDA_URL = true
\ No newline at end of file
diff --git a/.env.test-scp b/.env.test-scp
index 8bb0eb982..218728c32 100644
--- a/.env.test-scp
+++ b/.env.test-scp
@@ -45,3 +45,6 @@ VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400'
# 是否需要验证码
VITE_NEED_CODE = false
+
+# 是否需要下载PDA链接
+VITE_PDA_URL = false
diff --git a/src/utils/systemParam.ts b/src/utils/systemParam.ts
index 3341cd539..9cb51bf51 100644
--- a/src/utils/systemParam.ts
+++ b/src/utils/systemParam.ts
@@ -7,6 +7,7 @@ const tenant = ref(import.meta.env.VITE_TENANT)
const systermUpdateAlert = ref(import.meta.env.VITE_SYSTERM_UPDATE_ALERT)
const systermUpdateUrl = ref(import.meta.env.VITE_SYSTERM_UPDATE_URL)
const needCode = ref(import.meta.env.VITE_NEED_CODE)
+const pdaUrl = ref(import.meta.env.VITE_PDA_URL)
const mode = ref(import.meta.env.MODE)
// 获取baseUrl
@@ -85,4 +86,13 @@ export const getNeedCode = () => {
}
}
+//是否需要PDA下载链接
+export const getPDAUrl = () => {
+ if(mode.value === 'prod') {
+ return systemConfig.pdaUrl
+ } else {
+ return pdaUrl.value
+ }
+}
+
diff --git a/src/views/login/components/QRCodePDA.vue b/src/views/login/components/QRCodePDA.vue
index 2b28194b0..d8d3b05fc 100644
--- a/src/views/login/components/QRCodePDA.vue
+++ b/src/views/login/components/QRCodePDA.vue
@@ -5,14 +5,18 @@
- PDA安装程序下载链接
+ PDA安装程序下载链接